wok rev 17362

get-flash-plugin: no hardcoded version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 19 16:35:54 2014 +0100 (2014-11-19)
parents b30e264381c7
children 0d61f0b796d6
files get-flash-plugin/stuff/get-flash-plugin
line diff
     1.1 --- a/get-flash-plugin/stuff/get-flash-plugin	Wed Nov 19 11:46:06 2014 +0100
     1.2 +++ b/get-flash-plugin/stuff/get-flash-plugin	Wed Nov 19 16:35:54 2014 +0100
     1.3 @@ -21,13 +21,11 @@
     1.4    [ -d $INSTALLED/$PACKAGE ] && exit 1
     1.5  fi
     1.6  
     1.7 -VERSION=11.2.202.350
     1.8 -
     1.9 -URL=http://fpdownload.macromedia.com/get/flashplayer/pdc/$VERSION/install_flash_player_11_linux.i386.tar.gz
    1.10 +TARBALL="install_flash_player_11_linux.i386.tar.gz"
    1.11 +URL=http://fpdownload.macromedia.com/get/flashplayer/current/licensing/linux/$TARBALL
    1.12  TMP_DIR=/tmp/get-$PACKAGE-$$-$RANDOM
    1.13  CUR_DIR=$(pwd)
    1.14  mkdir -p $TMP_DIR && cd $TMP_DIR
    1.15 -TARBALL="install_flash_player_11_linux.i386.tar.gz"
    1.16  busybox wget -O $TARBALL $URL
    1.17  
    1.18  if [ ! -f $TARBALL ]; then
    1.19 @@ -36,6 +34,7 @@
    1.20  fi
    1.21  
    1.22  tar xzf $TARBALL
    1.23 +VERSION="$(strings libflashplayer.so | sed '/FlashPlayer_/!d;s/.*yer_\(.*\)_Flash.*/\1/;s/_/./g')"
    1.24  
    1.25  # Install files
    1.26  chmod 755 libflashplayer.so