get-scripts annotate teamviewer @ rev 80
libreoffice: fix menu entries (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 09 11:40:00 2019 +0200 (2019-06-09) |
parents | 62d94e6800db |
children |
rev | line source |
---|---|
pascal@34 | 1 SHORT_DESC="Remote Control Application" |
pascal@34 | 2 WEB_SITE="http://www.teamviewer.com/" |
pascal@34 | 3 # end of get.list data |
pascal@33 | 4 WGET_URL=${WEB_SITE}en/download/linux.aspx |
pascal@19 | 5 DEPENDS="bash ncurses alsa-lib zlib xorg-libXext" |
pascal@19 | 6 |
pascal@35 | 7 WGET_URL=$(wget --no-check-certificate -O - $WGET_URL | \ |
pascal@75 | 8 sed '/i386/!d;s/.*"\([^"]*i386[^"]*\).*/\1/;q') |
pascal@33 | 9 TARBALL="$(basename $WGET_URL)" |
pascal@35 | 10 wget --no-check-certificate -O $TARBALL $WGET_URL |
pascal@19 | 11 |
pascal@63 | 12 [ -f $TARBALL ] || abort_package |
pascal@19 | 13 |
pascal@19 | 14 mkdir $PACKAGE |
pascal@19 | 15 dpkg-deb -e $TARBALL $PACKAGE/meta |
pascal@19 | 16 dpkg-deb -x $TARBALL $PACKAGE/fs |
pascal@75 | 17 find $PACKAGE/fs | grep /script/ | xargs sed -i 's|--append|-a|' |
pascal@19 | 18 |
pascal@19 | 19 # extracted pkg can be removed: Save RAM |
pascal@19 | 20 rm -f $TARBALL |
pascal@19 | 21 |
pascal@19 | 22 sed '/^Description:/,$!d;s/^Description://' \ |
pascal@19 | 23 < $PACKAGE/meta/control > $PACKAGE/description.txt |
pascal@19 | 24 |
pascal@19 | 25 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)" |
pascal@19 | 26 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)" |
pascal@19 | 27 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)" |
pascal@19 | 28 mv $PACKAGE $PACKAGE-$VERSION |
pascal@19 | 29 |
pascal@19 | 30 cd $PACKAGE-$VERSION/fs |
pascal@33 | 31 [ -e usr/bin/$PACKAGE ] || |
pascal@33 | 32 ln -s $(cd usr/bin ; ls $PACKAGE* 2> /dev/null) \ |
pascal@33 | 33 usr/bin/$PACKAGE 2> /dev/null || true |
pascal@19 | 34 mkdir -p usr/share/applications |
pascal@19 | 35 sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \ |
pascal@19 | 36 < $(find opt | grep -E '(desktop.template|\.desktop$)') \ |
pascal@19 | 37 > usr/share/applications/$PACKAGE.desktop |
pascal@33 | 38 sed -i 's/readlink -e/readlink $0 || echo /' \ |
pascal@33 | 39 $(find opt -type f | grep /$PACKAGE$) |
pascal@19 | 40 mkdir -p etc/init.d |
pascal@19 | 41 ln -s /$(find opt | grep /teamviewerd$) etc/init.d/teamviewerd |
pascal@19 | 42 |
pascal@19 | 43 # Web viewer (needs flash): https://go.teamviewer.com/v${VERSION%%.*}/ |