# HG changeset patch # User Pascal Bellard # Date 1402052297 -7200 # Node ID a469956cbdf81763aa227ade09baf87303019e19 # Parent 587ada03bde01f05197c915d9348fd271a5c757c Add teamviewer diff -r 587ada03bde0 -r a469956cbdf8 teamviewer --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/teamviewer Fri Jun 06 12:58:17 2014 +0200 @@ -0,0 +1,40 @@ +WEB_SITE=http://www.$PACKAGE.com/ +TARBALL=${PACKAGE}_linux.deb +WGET_URL=http://download.$PACKAGE.com/download/$TARBALL +DEPENDS="bash ncurses alsa-lib zlib xorg-libXext" + +wget -O $TARBALL $WGET_URL + +[ -f $TARBALL ] || abort_package "Could not download $TARBALL. Exiting." + +mkdir $PACKAGE +dpkg-deb -e $TARBALL $PACKAGE/meta +dpkg-deb -x $TARBALL $PACKAGE/fs + +# extracted pkg can be removed: Save RAM +rm -f $TARBALL + +sed '/^Description:/,$!d;s/^Description://' \ + < $PACKAGE/meta/control > $PACKAGE/description.txt + +SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)" +MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)" +VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)" +mv $PACKAGE $PACKAGE-$VERSION + +cd $PACKAGE-$VERSION/fs +ln -s $(cd usr/bin ; ls $PACKAGE*) usr/bin/$PACKAGE 2> /dev/null || true +mkdir -p usr/share/applications +sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \ + < $(find opt | grep -E '(desktop.template|\.desktop$)') \ + > usr/share/applications/$PACKAGE.desktop +sed -i 's/readlink -e/readlink $0 || echo /' $(find opt | grep /$PACKAGE$) +mkdir -p etc/init.d +ln -s /$(find opt | grep /teamviewerd$) etc/init.d/teamviewerd +cd ../.. + +# Web viewer (needs flash): https://go.teamviewer.com/v${VERSION%%.*}/ + + +cd $TMP_DIR +set +e