get-scripts view teamviewer @ rev 70

opera: 404, update $URL
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Sep 26 17:34:12 2017 +0200 (2017-09-26)
parents 2cdf3e534506
children a5139b147553
line source
1 SHORT_DESC="Remote Control Application"
2 WEB_SITE="http://www.teamviewer.com/"
3 # end of get.list data
4 WGET_URL=${WEB_SITE}en/download/linux.aspx
5 DEPENDS="bash ncurses alsa-lib zlib xorg-libXext"
7 WGET_URL=$(wget --no-check-certificate -O - $WGET_URL | \
8 sed '/i386/!d;s/.*"\([^"]*i386[^"]*\).*/\1/')
9 TARBALL="$(basename $WGET_URL)"
10 wget --no-check-certificate -O $TARBALL $WGET_URL
12 [ -f $TARBALL ] || abort_package
14 mkdir $PACKAGE
15 dpkg-deb -e $TARBALL $PACKAGE/meta
16 dpkg-deb -x $TARBALL $PACKAGE/fs
18 # extracted pkg can be removed: Save RAM
19 rm -f $TARBALL
21 sed '/^Description:/,$!d;s/^Description://' \
22 < $PACKAGE/meta/control > $PACKAGE/description.txt
24 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
25 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
26 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
27 mv $PACKAGE $PACKAGE-$VERSION
29 cd $PACKAGE-$VERSION/fs
30 [ -e usr/bin/$PACKAGE ] ||
31 ln -s $(cd usr/bin ; ls $PACKAGE* 2> /dev/null) \
32 usr/bin/$PACKAGE 2> /dev/null || true
33 mkdir -p usr/share/applications
34 sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \
35 < $(find opt | grep -E '(desktop.template|\.desktop$)') \
36 > usr/share/applications/$PACKAGE.desktop
37 sed -i 's/readlink -e/readlink $0 || echo /' \
38 $(find opt -type f | grep /$PACKAGE$)
39 mkdir -p etc/init.d
40 ln -s /$(find opt | grep /teamviewerd$) etc/init.d/teamviewerd
42 # Web viewer (needs flash): https://go.teamviewer.com/v${VERSION%%.*}/