get-scripts rev 25

jd-gui: no hardcoded version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 19 12:47:36 2014 +0100 (2014-11-19)
parents b46e1ac792fb
children 34ec09ef65ca
files jd-gui
line diff
     1.1 --- a/jd-gui	Wed Nov 19 10:27:22 2014 +0100
     1.2 +++ b/jd-gui	Wed Nov 19 12:47:36 2014 +0100
     1.3 @@ -1,10 +1,8 @@
     1.4  WEB_SITE="http://jd.benow.ca/"
     1.5 -VERSION="0.3.5"
     1.6 -TARBALL="$PACKAGE-$VERSION.linux.i686.tar.gz"
     1.7 -CATEGORY="non-free"
     1.8 -LICENSE="other"
     1.9 -WGET_URL="$WEB_SITE$PACKAGE/downloads/$TARBALL"
    1.10  SHORT_DESC="Yet another fast Java decompiler."
    1.11 +WGET_URL="$(wget -O - $WEB_SITE | sed "/linux.i686/!d;s/.*href=.\([^'\"]*\).*/\1/")"
    1.12 +TARBALL="$(basename $WGET_URL)"
    1.13 +VERSION="$(echo $TARBALL | sed 's/.*-\(.*\).linux.*/\1/')"
    1.14  
    1.15  wget -O $TARBALL $WGET_URL
    1.16  [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."