wok-current diff openttd/receipt @ rev 24982
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 08 13:06:36 2022 +0000 (2022-05-08) |
parents | be1594cae466 |
children | 9981cfce1dd8 |
line diff
1.1 --- a/openttd/receipt Thu Apr 18 12:08:43 2019 +0200 1.2 +++ b/openttd/receipt Sun May 08 13:06:36 2022 +0000 1.3 @@ -13,6 +13,13 @@ 1.4 DEPENDS="libsdl lzo zlib libpng icu" 1.5 BUILD_DEPENDS="libsdl-dev lzo-dev zlib-dev libpng-dev liblzma-dev icu-dev" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - https://www.openttd.org/downloads/openttd-releases/latest 2>/dev/null | \ 1.11 + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q 1.12 +} 1.13 + 1.14 # Rules to configure and make the package. 1.15 compile_rules() 1.16 {