wok diff pce/receipt @ rev 24626

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 07 17:32:18 2022 +0000 (2022-03-07)
parents d8e92fa2a4b1
children 38ce238104db
line diff
     1.1 --- a/pce/receipt	Thu Oct 08 18:29:10 2015 +0200
     1.2 +++ b/pce/receipt	Mon Mar 07 17:32:18 2022 +0000
     1.3 @@ -14,6 +14,13 @@
     1.4  DEPENDS="readline ncurses libsdl xorg-libX11 libxcb xorg-libXau xorg-libXdmcp"
     1.5  BUILD_DEPENDS="readline-dev ncurses-dev libsdl-dev xorg-dev"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - http://www.hampa.ch/pce/download.html 2>/dev/null | \
    1.11 +	sed "/latest/d;/$PACKAGE-[0-9]/!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  {