wok rev 17795

Update get-teamviewer (thanks llev)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 20 11:36:16 2015 +0100 (2015-03-20)
parents 019e831466f7
children 54273920f51d
files get-LibreOffice/stuff/get-LibreOffice get-teamviewer/stuff/get-teamviewer
line diff
     1.1 --- a/get-LibreOffice/stuff/get-LibreOffice	Tue Mar 17 18:44:10 2015 +0100
     1.2 +++ b/get-LibreOffice/stuff/get-LibreOffice	Fri Mar 20 11:36:16 2015 +0100
     1.3 @@ -168,7 +168,7 @@
     1.4  mv usr/bin $PACKAGE-$VERSION/fs/usr
     1.5  
     1.6  # relocalized libexec directory
     1.7 -bin=$(ls $PACKAGE-$VERSION/fs/usr/bin/libreoffice???)
     1.8 +bin=$(echo $PACKAGE-$VERSION/fs/usr/bin/libreoffice???)
     1.9  if [ -L $bin ]; then
    1.10  	target=$(readlink $bin)
    1.11  	rm -f $bin
     2.1 --- a/get-teamviewer/stuff/get-teamviewer	Tue Mar 17 18:44:10 2015 +0100
     2.2 +++ b/get-teamviewer/stuff/get-teamviewer	Fri Mar 20 11:36:16 2015 +0100
     2.3 @@ -2,7 +2,7 @@
     2.4  
     2.5  PACKAGE="teamviewer"
     2.6  WEB_SITE="http://www.$PACKAGE.com/"
     2.7 -URL=${WEB_SITE}download/${PACKAGE}_linux.deb
     2.8 +URL=${WEB_SITE}en/download/linux.aspx
     2.9  DEPENDS="bash alsa-lib zlib xorg-libXext"
    2.10  ROOT="$1"
    2.11  [ -d "$ROOT" ] || ROOT=""
    2.12 @@ -24,6 +24,7 @@
    2.13  mkdir -p $TMP_DIR && cd $TMP_DIR
    2.14  
    2.15  # Download deb
    2.16 +URL=$(wget -O - $URL | sed '/i386/!d;s/.*"\([^"]*i386[^"]*\).*/\1/')
    2.17  wget $URL
    2.18  FILE=$(basename $URL)
    2.19  
    2.20 @@ -48,12 +49,15 @@
    2.21  mv $PACKAGE $PACKAGE-$VERSION
    2.22  
    2.23  cd $PACKAGE-$VERSION/fs
    2.24 -ln -s $(cd usr/bin ; ls $PACKAGE*) usr/bin/$PACKAGE 2> /dev/null || true
    2.25 +[ -e usr/bin/$PACKAGE ] ||
    2.26 +ln -s $(cd usr/bin ; ls $PACKAGE* 2> /dev/null) \
    2.27 +	usr/bin/$PACKAGE 2> /dev/null || true
    2.28  mkdir -p usr/share/applications
    2.29  sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \
    2.30  	< $(find opt | grep -E '(desktop.template|\.desktop$)') \
    2.31  	> usr/share/applications/$PACKAGE.desktop
    2.32 -sed -i 's/readlink -e/readlink $0 || echo /' $(find opt | grep /$PACKAGE$)
    2.33 +sed -i 's/readlink -e/readlink $0 || echo /' \
    2.34 +	$(find opt -type f | grep /$PACKAGE$)
    2.35  cd ../..
    2.36  
    2.37  cat > $PACKAGE-$VERSION/receipt <<EOT