wok-6.x diff prboom/receipt @ rev 24565

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 25 22:15:31 2022 +0000 (2022-02-25)
parents 5fcb050fa8cd
children 7dd01dedad38
line diff
     1.1 --- a/prboom/receipt	Sun Sep 20 12:57:15 2015 +0200
     1.2 +++ b/prboom/receipt	Fri Feb 25 22:15:31 2022 +0000
     1.3 @@ -15,6 +15,14 @@
     1.4  BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mesa-dev libglu-mesa \
     1.5  libpng-dev"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - https://sourceforge.net/projects/prboom/files/prboom%20stable/ 2>/dev/null | \
    1.11 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    1.12 +	sed '/scope="row/!d;s|.*/prboom%20stable/||;s|/.*||;q'
    1.13 +}
    1.14 +
    1.15  # Rules to configure and make the package.
    1.16  compile_rules()
    1.17  {