wok-current diff warmux/receipt @ rev 24708
updated ldm (0.3 -> 0.8)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 14 16:37:52 2022 +0100 (2022-03-14) |
parents | 05c8d8d9d934 |
children | 2b0142c9f248 |
line diff
1.1 --- a/warmux/receipt Wed Oct 28 15:17:00 2020 +0000 1.2 +++ b/warmux/receipt Mon Mar 14 16:37:52 2022 +0100 1.3 @@ -6,7 +6,7 @@ 1.4 SHORT_DESC="Warmux game" 1.5 MAINTAINER="slaxemulator@gmail.com" 1.6 LICENSE="GPL2" 1.7 -WEB_SITE="https://www.wormux.org/" 1.8 +WEB_SITE="https://www.warmux.org/" 1.9 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.10 WGET_URL="http://download.gna.org/warmux/$TARBALL" 1.11 PROVIDE="wormux" 1.12 @@ -18,6 +18,13 @@ 1.13 libsdl-net-dev libsdl-ttf-dev curl-dev freetype-dev libxml2-dev libxml++-dev \ 1.14 pkg-config" 1.15 1.16 +# What is the latest version available today? 1.17 +current_version() 1.18 +{ 1.19 + wget -O - $WEB_SITE 2>/dev/null | \ 1.20 + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q 1.21 +} 1.22 + 1.23 # Rules to configure and make the package. 1.24 compile_rules() 1.25 {