wok diff TiMidity++/receipt @ rev 24540

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 16:54:57 2022 +0000 (2022-02-23)
parents ecebedde2c92
children ad0bc3efbf37
line diff
     1.1 --- a/TiMidity++/receipt	Fri Dec 27 15:19:18 2019 +0100
     1.2 +++ b/TiMidity++/receipt	Wed Feb 23 16:54:57 2022 +0000
     1.3 @@ -16,6 +16,12 @@
     1.4  BUILD_DEPENDS="alsa-lib-dev flac-dev gtk+-dev jack-audio-connection-kit-dev \
     1.5  	libao-dev libogg-dev libvorbis-dev portaudio-dev xorg-libXaw3d-dev"
     1.6  
     1.7 +current_version()
     1.8 +{
     1.9 +	wget -O - $WEB_SITE/files/ 2>/dev/null | sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | \
    1.10 +	xargs wget -O - 2>/dev/null | sed "/${PACKAGE}-/!d;s|.*${PACKAGE}-\\([0-9\\.]*\\)*\".*|\\1|" | sed '/^[0-9]/!d;q'
    1.11 +}
    1.12 +
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {