get-scripts diff geogebra @ rev 47

firefox-official: fix paths
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 04 18:56:03 2015 +0200 (2015-06-04)
parents 6ca05e6839e1
children 2cdf3e534506
line diff
     1.1 --- a/geogebra	Mon Mar 23 08:59:52 2015 +0100
     1.2 +++ b/geogebra	Thu Jun 04 18:56:03 2015 +0200
     1.3 @@ -2,8 +2,12 @@
     1.4  WEB_SITE="http://www.geogebra.org/cms/en/"
     1.5  # end of get.list data
     1.6  DEPENDS="bash java-jre ncurses"
     1.7 -WGET_URL=http://www.geogebra.org/installers/deb.php
     1.8 -TARBALL=geogebra.deb
     1.9 +WGET_URL="http://www.geogebra.net/linux/pool/main/g/"
    1.10 +WGET_URL="$WGET_URL$(wget -O - "$WGET_URL?C=M;O=D" | \
    1.11 +	  sed '/href="g/!d;s/.*href="\([^"]*\).*/\1/;q')"
    1.12 +WGET_URL="$WGET_URL$(wget -O - "$WGET_URL?C=M;O=D" | \
    1.13 +	  sed '/href/!d;/i386/!d;s/.*href="\([^"]*\).*/\1/;q')"
    1.14 +TARBALL=$(basename $WGET_URL)
    1.15  
    1.16  wget -O $TARBALL $WGET_URL
    1.17