wok-current diff afuse/receipt @ rev 24565
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 25 22:15:31 2022 +0000 (2022-02-25) |
parents | ca81ff4a83e8 |
children | 232c9b0ea779 |
line diff
1.1 --- a/afuse/receipt Mon Mar 18 12:06:16 2019 +0100 1.2 +++ b/afuse/receipt Fri Feb 25 22:15:31 2022 +0000 1.3 @@ -7,12 +7,19 @@ 1.4 MAINTAINER="pascal.bellard@slitaz.org" 1.5 LICENSE="GPL2" 1.6 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.7 -WEB_SITE="https://github.com/pcarrier/afuse/" 1.8 +WEB_SITE="https://github.com/pcarrier/afuse" 1.9 WGET_URL="${WEB_SITE}archive/v$VERSION.tar.gz" 1.10 1.11 DEPENDS="fuse" 1.12 BUILD_DEPENDS="fuse-dev perl-getopt-long autoconf automake libtool " 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 {