wok-6.x diff linuxdcpp/receipt @ rev 24453
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 15 18:29:48 2022 +0000 (2022-02-15) |
parents | 051931e905b0 |
children | 55841ecdccb4 |
line diff
1.1 --- a/linuxdcpp/receipt Fri Dec 06 10:39:07 2013 +0000 1.2 +++ b/linuxdcpp/receipt Tue Feb 15 18:29:48 2022 +0000 1.3 @@ -11,6 +11,14 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.5 WEB_SITE="https://launchpad.net/linuxdcpp" 1.6 WGET_URL="http://mirror.slitaz.org/sources/packages/l/$TARBALL" 1.7 + 1.8 +# What is the latest version available today? 1.9 +current_version() 1.10 +{ 1.11 + wget -O - $WEB_SITE 2>/dev/null | \ 1.12 + sed '/Latest version is/!d;s|.*is ||' 1.13 +} 1.14 + 1.15 # Rules to configure and make the package. 1.16 compile_rules() 1.17 {