get-scripts rev 19

Add teamviewer
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 06 12:58:17 2014 +0200 (2014-06-06)
parents 587ada03bde0
children 377ade2bcf0c
files palemoon teamviewer
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/teamviewer	Fri Jun 06 12:58:17 2014 +0200
     1.3 @@ -0,0 +1,40 @@
     1.4 +WEB_SITE=http://www.$PACKAGE.com/
     1.5 +TARBALL=${PACKAGE}_linux.deb
     1.6 +WGET_URL=http://download.$PACKAGE.com/download/$TARBALL
     1.7 +DEPENDS="bash ncurses alsa-lib zlib xorg-libXext"
     1.8 +
     1.9 +wget -O $TARBALL $WGET_URL
    1.10 +
    1.11 +[ -f $TARBALL ] || abort_package "Could not download $TARBALL. Exiting."
    1.12 +
    1.13 +mkdir $PACKAGE
    1.14 +dpkg-deb -e $TARBALL $PACKAGE/meta
    1.15 +dpkg-deb -x $TARBALL $PACKAGE/fs
    1.16 +
    1.17 +# extracted pkg can be removed: Save RAM
    1.18 +rm -f $TARBALL
    1.19 +
    1.20 +sed '/^Description:/,$!d;s/^Description://' \
    1.21 +	< $PACKAGE/meta/control > $PACKAGE/description.txt
    1.22 +
    1.23 +SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.24 +MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.25 +VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
    1.26 +mv $PACKAGE $PACKAGE-$VERSION
    1.27 +
    1.28 +cd $PACKAGE-$VERSION/fs
    1.29 +ln -s $(cd usr/bin ; ls $PACKAGE*) usr/bin/$PACKAGE 2> /dev/null || true
    1.30 +mkdir -p usr/share/applications
    1.31 +sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \
    1.32 +	< $(find opt | grep -E '(desktop.template|\.desktop$)') \
    1.33 +	> usr/share/applications/$PACKAGE.desktop
    1.34 +sed -i 's/readlink -e/readlink $0 || echo /' $(find opt | grep /$PACKAGE$)
    1.35 +mkdir -p etc/init.d
    1.36 +ln -s /$(find opt | grep /teamviewerd$) etc/init.d/teamviewerd
    1.37 +cd ../..
    1.38 +
    1.39 +# Web viewer (needs flash): https://go.teamviewer.com/v${VERSION%%.*}/
    1.40 +
    1.41 +
    1.42 +cd $TMP_DIR
    1.43 +set +e