get-scripts view teamviewer @ rev 58
Add vivaldi & plop
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 14 15:32:56 2016 +0200 (2016-07-14) |
parents | 138433e8cb19 |
children | 62d94e6800db |
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 "Could not download $TARBALL. Exiting."
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
41 cd ../..
43 # Web viewer (needs flash): https://go.teamviewer.com/v${VERSION%%.*}/
45 cd $tmp_dir