wok annotate perl-datetime-locale/receipt @ rev 24411
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 09 17:57:59 2022 +0000 (2022-02-09) |
parents | ca4a422cce07 |
children | b27d8c263cba |
rev | line source |
---|---|
pascal@9281 | 1 # SliTaz package receipt. |
pascal@9281 | 2 |
pascal@9281 | 3 PACKAGE="perl-datetime-locale" |
Hans-G?nter@24196 | 4 VERSION="1.33" |
pascal@9281 | 5 CATEGORY="development" |
pascal@9281 | 6 SHORT_DESC="DateTime::Locale module is a Perl extension." |
pascal@9281 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@24196 | 9 WEB_SITE="https://metacpan.org/pod/DateTime::Locale" |
Hans-G?nter@24196 | 10 REPOLOGY="perl:datetime-locale" |
Hans-G?nter@24196 | 11 |
pascal@9281 | 12 SOURCE="DateTime-Locale" |
pascal@9281 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@24196 | 14 WGET_URL="https://www.cpan.org/modules/by-module/DateTime/$TARBALL" |
Hans-G?nter@24196 | 15 |
Hans-G?nter@24196 | 16 DEPENDS="perl" |
Hans-G?nter@24196 | 17 BUILD_DEPENDS="perl perl-file-sharedir-install" |
pascal@9281 | 18 |
pascal@24103 | 19 current_version() |
pascal@24103 | 20 { |
pascal@24103 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24103 | 22 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24103 | 23 } |
pascal@24103 | 24 |
pascal@9281 | 25 # Rules to configure and make the package. |
pascal@9281 | 26 compile_rules() |
pascal@9281 | 27 { |
pascal@9281 | 28 perl Makefile.PL && |
pascal@9281 | 29 make && |
Hans-G?nter@24196 | 30 make install DESTDIR=$DESTDIR |
pascal@9281 | 31 } |
pascal@9281 | 32 |
pascal@9281 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@9281 | 34 genpkg_rules() |
pascal@9281 | 35 { |
Hans-G?nter@24196 | 36 cook_copy_folders lib |
pascal@9281 | 37 } |