get-scripts rev 33

Update teamviewer (thanks llev)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 20 11:34:46 2015 +0100 (2015-03-20)
parents 890d312f93cf
children 6ca05e6839e1
files teamviewer
line diff
     1.1 --- a/teamviewer	Mon Jan 26 11:21:08 2015 +0100
     1.2 +++ b/teamviewer	Fri Mar 20 11:34:46 2015 +0100
     1.3 @@ -1,8 +1,9 @@
     1.4  WEB_SITE=http://www.$PACKAGE.com/
     1.5 -TARBALL=${PACKAGE}_linux.deb
     1.6 -WGET_URL=http://download.$PACKAGE.com/download/$TARBALL
     1.7 +WGET_URL=${WEB_SITE}en/download/linux.aspx
     1.8  DEPENDS="bash ncurses alsa-lib zlib xorg-libXext"
     1.9  
    1.10 +WGET_URL=$(wget -O - $WGET_URL | sed '/i386/!d;s/.*"\([^"]*i386[^"]*\).*/\1/')
    1.11 +TARBALL="$(basename $WGET_URL)"
    1.12  wget -O $TARBALL $WGET_URL
    1.13  
    1.14  [ -f $TARBALL ] || abort_package "Could not download $TARBALL. Exiting."
    1.15 @@ -23,18 +24,20 @@
    1.16  mv $PACKAGE $PACKAGE-$VERSION
    1.17  
    1.18  cd $PACKAGE-$VERSION/fs
    1.19 -ln -s $(cd usr/bin ; ls $PACKAGE*) usr/bin/$PACKAGE 2> /dev/null || true
    1.20 +[ -e usr/bin/$PACKAGE ] ||
    1.21 +ln -s $(cd usr/bin ; ls $PACKAGE* 2> /dev/null) \
    1.22 +	usr/bin/$PACKAGE 2> /dev/null || true
    1.23  mkdir -p usr/share/applications
    1.24  sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \
    1.25  	< $(find opt | grep -E '(desktop.template|\.desktop$)') \
    1.26  	> usr/share/applications/$PACKAGE.desktop
    1.27 -sed -i 's/readlink -e/readlink $0 || echo /' $(find opt | grep /$PACKAGE$)
    1.28 +sed -i 's/readlink -e/readlink $0 || echo /' \
    1.29 +	$(find opt -type f | grep /$PACKAGE$)
    1.30  mkdir -p etc/init.d
    1.31  ln -s /$(find opt | grep /teamviewerd$) etc/init.d/teamviewerd
    1.32  cd ../..
    1.33  
    1.34  # Web viewer (needs flash): https://go.teamviewer.com/v${VERSION%%.*}/
    1.35  
    1.36 -
    1.37  cd $TMP_DIR
    1.38  set +e