wok diff gnustep-base/receipt @ rev 24436
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 13 13:09:42 2022 +0000 (2022-02-13) |
parents | 2ef5a275ca9b |
children | 40920382097c |
line diff
1.1 --- a/gnustep-base/receipt Fri Mar 06 17:04:10 2020 +0100 1.2 +++ b/gnustep-base/receipt Sun Feb 13 13:09:42 2022 +0000 1.3 @@ -9,12 +9,19 @@ 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="gnutls icu libbfd libcrypto libffi libobjc libssl libtasn1 libxslt" 1.11 BUILD_DEPENDS="gnustep-make gnutls-dev icu-dev libcrypto-dev libffi-dev 1.12 libgnutls libtasn1-dev libxslt-dev openssl-dev" 1.13 1.14 +# What is the latest version available today? 1.15 +current_version() 1.16 +{ 1.17 + wget -O - ${WGET_URL%/*} 2>/dev/null | \ 1.18 + sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.19 +} 1.20 + 1.21 # Rules to configure and make the package. 1.22 compile_rules() 1.23 {