wok-6.x diff libwww-perl/receipt @ rev 24500
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 19:01:32 2022 +0000 (2022-02-19) |
parents | 4c03e8b3a67f |
children | 00dfb3b8e79d |
line diff
1.1 --- a/libwww-perl/receipt Fri Mar 13 09:05:23 2020 +0100 1.2 +++ b/libwww-perl/receipt Sat Feb 19 19:01:32 2022 +0000 1.3 @@ -6,7 +6,7 @@ 1.4 SHORT_DESC="A simple and consistent API to the WWW in PERL." 1.5 MAINTAINER="pascal.bellard@slitaz.org" 1.6 LICENSE="GPL" 1.7 -WEB_SITE="http://cpan.org/" 1.8 +WEB_SITE="https://metacpan.org/dist/libwww-perl" 1.9 1.10 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.11 WGET_URL="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/$TARBALL" 1.12 @@ -14,6 +14,12 @@ 1.13 DEPENDS="perl-io perl-module-metadata" 1.14 BUILD_DEPENDS="$DEPENDS" 1.15 1.16 +current_version() 1.17 +{ 1.18 + wget -O - $WEB_SITE 2>/dev/null | \ 1.19 + sed '/release-name/!d;s|.*-v*||;s|<.*||;q' 1.20 +} 1.21 + 1.22 # Rules to configure and make the package. 1.23 compile_rules() 1.24 {