get-scripts view teamviewer @ rev 34

Add sublime-text-3
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 23 08:59:52 2015 +0100 (2015-03-23)
parents 0aac769ef758
children 138433e8cb19
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 -O - $WGET_URL | sed '/i386/!d;s/.*"\([^"]*i386[^"]*\).*/\1/')
8 TARBALL="$(basename $WGET_URL)"
9 wget -O $TARBALL $WGET_URL
11 [ -f $TARBALL ] || abort_package "Could not download $TARBALL. Exiting."
13 mkdir $PACKAGE
14 dpkg-deb -e $TARBALL $PACKAGE/meta
15 dpkg-deb -x $TARBALL $PACKAGE/fs
17 # extracted pkg can be removed: Save RAM
18 rm -f $TARBALL
20 sed '/^Description:/,$!d;s/^Description://' \
21 < $PACKAGE/meta/control > $PACKAGE/description.txt
23 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
24 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
25 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
26 mv $PACKAGE $PACKAGE-$VERSION
28 cd $PACKAGE-$VERSION/fs
29 [ -e usr/bin/$PACKAGE ] ||
30 ln -s $(cd usr/bin ; ls $PACKAGE* 2> /dev/null) \
31 usr/bin/$PACKAGE 2> /dev/null || true
32 mkdir -p usr/share/applications
33 sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \
34 < $(find opt | grep -E '(desktop.template|\.desktop$)') \
35 > usr/share/applications/$PACKAGE.desktop
36 sed -i 's/readlink -e/readlink $0 || echo /' \
37 $(find opt -type f | grep /$PACKAGE$)
38 mkdir -p etc/init.d
39 ln -s /$(find opt | grep /teamviewerd$) etc/init.d/teamviewerd
40 cd ../..
42 # Web viewer (needs flash): https://go.teamviewer.com/v${VERSION%%.*}/
44 cd $TMP_DIR
45 set +e