wok diff diffutils/receipt @ rev 24373

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 05 16:12:08 2022 +0000 (2022-02-05)
parents 3a83121a1137
children 73d8fca57fa5
line diff
     1.1 --- a/diffutils/receipt	Tue Feb 19 17:34:52 2019 +0100
     1.2 +++ b/diffutils/receipt	Sat Feb 05 16:12:08 2022 +0000
     1.3 @@ -11,6 +11,13 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.xz"
     1.5  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - ${WGET_URL%/*} 2>/dev/null | \
    1.11 +	sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    1.12 +}
    1.13 +
    1.14  # Rules to configure and make the package.
    1.15  compile_rules()
    1.16  {