get-scripts view teamviewer @ rev 75

Update teamviewer
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 09 13:40:10 2018 +0100 (2018-02-09)
parents 62d94e6800db
children
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/;q')
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
17 find $PACKAGE/fs | grep /script/ | xargs sed -i 's|--append|-a|'
19 # extracted pkg can be removed: Save RAM
20 rm -f $TARBALL
22 sed '/^Description:/,$!d;s/^Description://' \
23 < $PACKAGE/meta/control > $PACKAGE/description.txt
25 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
26 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
27 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
28 mv $PACKAGE $PACKAGE-$VERSION
30 cd $PACKAGE-$VERSION/fs
31 [ -e usr/bin/$PACKAGE ] ||
32 ln -s $(cd usr/bin ; ls $PACKAGE* 2> /dev/null) \
33 usr/bin/$PACKAGE 2> /dev/null || true
34 mkdir -p usr/share/applications
35 sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \
36 < $(find opt | grep -E '(desktop.template|\.desktop$)') \
37 > usr/share/applications/$PACKAGE.desktop
38 sed -i 's/readlink -e/readlink $0 || echo /' \
39 $(find opt -type f | grep /$PACKAGE$)
40 mkdir -p etc/init.d
41 ln -s /$(find opt | grep /teamviewerd$) etc/init.d/teamviewerd
43 # Web viewer (needs flash): https://go.teamviewer.com/v${VERSION%%.*}/