get-scripts rev 66

flash-plugin: update wget_url
author Richard Dunbar <mojo@slitaz.org>
date Fri Feb 10 19:09:09 2017 -0500 (2017-02-10)
parents 65ed4f4d5384
children b24160a193be
files flash-plugin
line diff
     1.1 --- a/flash-plugin	Fri Feb 10 13:14:15 2017 +0100
     1.2 +++ b/flash-plugin	Fri Feb 10 19:09:09 2017 -0500
     1.3 @@ -2,12 +2,13 @@
     1.4  WEB_SITE="http://www.adobe.com/products/flash/"
     1.5  # end of get.list data
     1.6  
     1.7 +VERSION="$(wget -q -O - http://www.adobe.com/software/flash/about/ | sed -n '/Linux/,/<\/tr/s/[^>]*>\([0-9].*\)<.*/\1/p')"
     1.8  TARBALL="flash_player_npapi_linux.i386.tar.gz"
     1.9 -WGET_URL=https://fpdownload.macromedia.com/get/flashplayer/current/licensing/linux/$TARBALL
    1.10 +WGET_URL=https://fpdownload.adobe.com/get/flashplayer/pdc/$VERSION/$TARBALL
    1.11  wget --no-check-certificate -O $TARBALL $WGET_URL
    1.12  [ -f $TARBALL ] || abort_package
    1.13  tar xzf $TARBALL
    1.14 -VERSION="$(strings libflashplayer.so | sed '/FlashPlayer_/!d;s/.*yer_\(.*\)_Flash.*/\1/;s/_/./g')"
    1.15 +
    1.16  
    1.17  # Install files
    1.18  chmod 755 libflashplayer.so