wok diff pyhn/receipt @ rev 24326
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 27 12:16:00 2022 +0000 (2022-01-27) |
parents | 8618581aa857 |
children | 076f424196b2 |
line diff
1.1 --- a/pyhn/receipt Mon May 29 17:32:03 2017 +0100 1.2 +++ b/pyhn/receipt Thu Jan 27 12:16:00 2022 +0000 1.3 @@ -13,6 +13,13 @@ 1.4 DEPENDS="python python-urwid" 1.5 BUILD_DEPENDS="python-dev python-urwid git bzip2" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - $WEB_SITE 2>/dev/null | \ 1.11 + sed '/Release/!d;s|.*>Release ||;s|<.*||;q' 1.12 +} 1.13 + 1.14 # Rules to configure and make the package. 1.15 compile_rules() 1.16 {