wok diff buffer/receipt @ rev 25591
enet: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 22 11:01:59 2023 +0000 (14 months ago) |
parents | a511baf85854 |
children |
line diff
1.1 --- a/buffer/receipt Wed Jul 06 10:09:09 2016 +0300 1.2 +++ b/buffer/receipt Thu Jun 22 11:01:59 2023 +0000 1.3 @@ -8,11 +8,18 @@ 1.4 LICENSE="GPL2" 1.5 WEB_SITE="http://www.mondorescue.org/" 1.6 TARBALL="$PACKAGE-$VERSION.tgz" 1.7 -WGET_URL="ftp://ftp.mondorescue.org/src/$TARBALL" 1.8 +WGET_URL="http://ftp.mondorescue.org/src/$TARBALL" 1.9 1.10 DEPENDS="" 1.11 BUILD_DEPENDS="" 1.12 1.13 +# What is the latest version available today? 1.14 +current_version() 1.15 +{ 1.16 + wget -O - ${WGET_URL%/*} 2>/dev/null | \ 1.17 + sed "/latest/d;/$PACKAGE-/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*\".*|\\1|" | sort -Vr | sed q 1.18 +} 1.19 + 1.20 # Rules to configure and make the package. 1.21 compile_rules() 1.22 {