wok-current rev 13597

Up get-flash-plugin (1.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 09 13:13:08 2012 +0100 (2012-11-09)
parents e2fcb326c3a5
children 40cff6ec79f7
files get-flash-plugin/receipt get-flash-plugin/stuff/get-flash-plugin
line diff
     1.1 --- a/get-flash-plugin/receipt	Thu Nov 08 16:52:28 2012 +0000
     1.2 +++ b/get-flash-plugin/receipt	Fri Nov 09 13:13:08 2012 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="get-flash-plugin"
     1.7 -VERSION="1.3"
     1.8 +VERSION="1.4"
     1.9  CATEGORY="non-free"
    1.10  SHORT_DESC="Get Adobe Flash Player."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
     2.1 --- a/get-flash-plugin/stuff/get-flash-plugin	Thu Nov 08 16:52:28 2012 +0000
     2.2 +++ b/get-flash-plugin/stuff/get-flash-plugin	Fri Nov 09 13:13:08 2012 +0100
     2.3 @@ -21,18 +21,21 @@
     2.4    [ -d $INSTALLED/$PACKAGE ] && exit 1
     2.5  fi
     2.6  
     2.7 +VERSION=$(echo " $@ " | sed '/ [0-9]* /!d;s/.* \([0-9]*\) .*/\1/')
     2.8 +[ -n "$VERSION" ] && [ $VERSION -lt 100 ] && VERSION=${VERSION}0
     2.9 +
    2.10  URL=
    2.11 -for i in $(seq 112 999); do
    2.12 +for i in $(seq 111 999); do
    2.13  	n="$(busybox wget -O - "http://get.adobe.com/fr/flashplayer/completion/?installer=Flash_Player_${i:0:2}.${i:2:1}_for_other_Linux_(.tar.gz)_32-bit" | \
    2.14  	     sed "/gz/!d;s/.* '//;s/'.*//")"
    2.15 -	[ -n "$n" ] && URL="$n" && continue
    2.16 -	break
    2.17 +	[ -n "$n" ] && URL="$n" && [ "$i" != "${VERSION/./}" ] && continue
    2.18 +	[ -n "$URL" ] && break
    2.19  done
    2.20  [ -z "$URL" ] && for i in $(seq 11 99); do
    2.21  	n="$(busybox wget -O - "http://get.adobe.com/fr/flashplayer/completion/?installer=Flash_Player_${i}_for_other_Linux_(.tar.gz)_32-bit" | \
    2.22  	     sed "/gz/!d;s/.* '//;s/'.*//")"
    2.23 -	[ -n "$n" ] && URL="$n" && continue
    2.24 -	break
    2.25 +	[ -n "$n" ] && URL="$n" && [ "$i" != "${VERSION:0:2}" ] && continue
    2.26 +	[ -n "$URL" ] && break
    2.27  done
    2.28  
    2.29  if [ -z "$URL" ]; then