wok diff gnustep-make/receipt @ rev 24425

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 11 17:50:36 2022 +0000 (2022-02-11)
parents 3a42ed2154cd
children b0a19fe55cb0
line diff
     1.1 --- a/gnustep-make/receipt	Fri Feb 21 14:29:40 2020 +0100
     1.2 +++ b/gnustep-make/receipt	Fri Feb 11 17:50:36 2022 +0000
     1.3 @@ -9,10 +9,17 @@
     1.4  WEB_SITE="http://www.gnustep.org/"
     1.5  
     1.6  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.7 -WGET_URL="ftp://ftp.gnustep.org/pub/gnustep/core/$TARBALL"
     1.8 +WGET_URL="http://ftp.gnustep.org/pub/gnustep/core/$TARBALL"
     1.9  
    1.10  DEPENDS="make"
    1.11  
    1.12 +# What is the latest version available today?
    1.13 +current_version()
    1.14 +{
    1.15 +	wget -O - ${WGET_URL%/*} 2>/dev/null | \
    1.16 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    1.17 +}
    1.18 +
    1.19  # Rules to configure and make the package.
    1.20  compile_rules()
    1.21  {