wok diff perl-datetime-format-strptime/receipt @ rev 24102

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 17 10:35:57 2021 +0000 (2021-09-17)
parents 74e74aefd5c2
children a7e2437aa2bf
line diff
     1.1 --- a/perl-datetime-format-strptime/receipt	Mon Mar 30 14:47:03 2020 +0100
     1.2 +++ b/perl-datetime-format-strptime/receipt	Fri Sep 17 10:35:57 2021 +0000
     1.3 @@ -12,10 +12,15 @@
     1.4  TARBALL="$SOURCE-$VERSION.tar.gz"
     1.5  WGET_URL="https://www.cpan.org/modules/by-module/DateTime/$TARBALL"
     1.6  
     1.7 -
     1.8  DEPENDS="perl"
     1.9  BUILD_DEPENDS="perl-datetime perl-params-validate perl-test-simple"
    1.10  
    1.11 +current_version()
    1.12 +{
    1.13 +	wget -O - $WEB_SITE 2>/dev/null | \
    1.14 +	sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
    1.15 +}
    1.16 +
    1.17  # Rules to configure and make the package.
    1.18  compile_rules()
    1.19  {