wok diff pth/receipt @ rev 24415

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 18:04:02 2022 +0000 (2022-02-10)
parents bf4a09ef1d2e
children 1805f71c5d9f
line diff
     1.1 --- a/pth/receipt	Fri Oct 18 22:13:53 2013 +0000
     1.2 +++ b/pth/receipt	Thu Feb 10 18:04:02 2022 +0000
     1.3 @@ -8,10 +8,17 @@
     1.4  LICENSE="LGPL2.1"
     1.5  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.6  WEB_SITE="http://www.gnu.org/software/pth/"
     1.7 -WGET_URL="ftp://ftp.ossp.org/pkg/lib/pth/$TARBALL" 
     1.8 +WGET_URL="http://ftp.ossp.org/pkg/lib/pth/$TARBALL" 
     1.9  
    1.10  DEPENDS="libltdl"
    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-||;s|.tar.*||" | sort -Vr | sed q
    1.17 +}
    1.18 +
    1.19  # Rules to configure and make the package.
    1.20  compile_rules()
    1.21  {