get-scripts view teamviewer @ rev 25

jd-gui: no hardcoded version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 19 12:47:36 2014 +0100 (2014-11-19)
parents
children 0aac769ef758
line source
1 WEB_SITE=http://www.$PACKAGE.com/
2 TARBALL=${PACKAGE}_linux.deb
3 WGET_URL=http://download.$PACKAGE.com/download/$TARBALL
4 DEPENDS="bash ncurses alsa-lib zlib xorg-libXext"
6 wget -O $TARBALL $WGET_URL
8 [ -f $TARBALL ] || abort_package "Could not download $TARBALL. Exiting."
10 mkdir $PACKAGE
11 dpkg-deb -e $TARBALL $PACKAGE/meta
12 dpkg-deb -x $TARBALL $PACKAGE/fs
14 # extracted pkg can be removed: Save RAM
15 rm -f $TARBALL
17 sed '/^Description:/,$!d;s/^Description://' \
18 < $PACKAGE/meta/control > $PACKAGE/description.txt
20 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
21 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
22 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
23 mv $PACKAGE $PACKAGE-$VERSION
25 cd $PACKAGE-$VERSION/fs
26 ln -s $(cd usr/bin ; ls $PACKAGE*) usr/bin/$PACKAGE 2> /dev/null || true
27 mkdir -p usr/share/applications
28 sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \
29 < $(find opt | grep -E '(desktop.template|\.desktop$)') \
30 > usr/share/applications/$PACKAGE.desktop
31 sed -i 's/readlink -e/readlink $0 || echo /' $(find opt | grep /$PACKAGE$)
32 mkdir -p etc/init.d
33 ln -s /$(find opt | grep /teamviewerd$) etc/init.d/teamviewerd
34 cd ../..
36 # Web viewer (needs flash): https://go.teamviewer.com/v${VERSION%%.*}/
39 cd $TMP_DIR
40 set +e