wok diff monkey/receipt @ rev 24465

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 17 12:02:46 2022 +0000 (2022-02-17)
parents c6796c6304f6
children 01ed9626bb94
line diff
     1.1 --- a/monkey/receipt	Wed May 06 09:10:52 2020 +0000
     1.2 +++ b/monkey/receipt	Thu Feb 17 12:02:46 2022 +0000
     1.3 @@ -7,12 +7,19 @@
     1.4  MAINTAINER="necrophcodr@necrophcodr.me"
     1.5  LICENSE="APL2"
     1.6  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.7 -WEB_SITE="https://web.archive.org/web/20200229054452/http://monkey-project.com/"
     1.8 +WEB_SITE="http://monkey-project.com/"
     1.9  WGET_URL="$WEB_SITE/releases/${VERSION%.*}/$TARBALL"
    1.10  
    1.11  DEPENDS=""
    1.12  BUILD_DEPENDS="findutils"
    1.13  
    1.14 +# What is the latest version available today?
    1.15 +current_version()
    1.16 +{
    1.17 +	wget -O - http://monkey-project.com/downloads/ 2>/dev/null | \
    1.18 +	sed "/latest/d;/$PACKAGE-[0-9]/!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  {