wok diff memo/receipt @ rev 24308
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 18:18:17 2022 +0000 (2022-01-17) |
parents | 626c3828c08f |
children | 241fb98cab1c |
line diff
1.1 --- a/memo/receipt Thu May 02 18:27:43 2019 +0200 1.2 +++ b/memo/receipt Mon Jan 17 18:18:17 2022 +0000 1.3 @@ -7,12 +7,19 @@ 1.4 MAINTAINER="paul@slitaz.org" 1.5 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.6 LICENSE="GPL3" 1.7 -WEB_SITE="https://github.com/mrVanDalo/memo/" 1.8 +WEB_SITE="https://github.com/mrVanDalo/memo" 1.9 WGET_URL="http://www.ideabyte.net/memo/$TARBALL" 1.10 1.11 DEPENDS="ncurses" 1.12 BUILD_DEPENDS="ncurses-dev" 1.13 1.14 +# What is the latest version available today? 1.15 +current_version() 1.16 +{ 1.17 + wget -O - $WEB_SITE/tags 2>/dev/null | \ 1.18 + sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' 1.19 +} 1.20 + 1.21 # Rules to configure and make the package. 1.22 compile_rules() 1.23 {