wok diff p4wn/receipt @ rev 24391

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 18:01:05 2022 +0000 (2022-02-07)
parents 2a5cc8208d36
children 04e644032779
line diff
     1.1 --- a/p4wn/receipt	Sun Oct 20 22:08:25 2013 +0000
     1.2 +++ b/p4wn/receipt	Mon Feb 07 18:01:05 2022 +0000
     1.3 @@ -9,6 +9,14 @@
     1.4  WEB_SITE="http://p4wn.sourceforge.net/"
     1.5  TARBALL="sven_vehars_fancy_version.zip"
     1.6  WGET_URL="$WEB_SITE/downloads/$TARBALL"
     1.7 +
     1.8 +# What is the latest version available today?
     1.9 +current_version()
    1.10 +{
    1.11 +	wget -O - https://sourceforge.net/projects/p4wn/files/ 2>/dev/null | \
    1.12 +	sed '/scope="row/!d;/tar/!d;s|.*/p4wn-||;s|.tar.*||;q'
    1.13 +}
    1.14 +
    1.15  # Rules to configure and make the package.
    1.16  compile_rules()
    1.17  {