wok annotate perl-text-template/receipt @ rev 25770
dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 11:29:23 2024 +0000 (2 months ago) |
parents | 49261384c207 |
children |
rev | line source |
---|---|
pascal@1662 | 1 # SliTaz package receipt. |
pascal@1662 | 2 |
pascal@1662 | 3 PACKAGE="perl-text-template" |
Hans-G?nter@24262 | 4 VERSION="1.60" |
pascal@1662 | 5 CATEGORY="development" |
Hans-G?nter@23406 | 6 SHORT_DESC="Perl extension Text::Template." |
pascal@1662 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pascal@25663 | 9 WEB_SITE="https://metacpan.org/dist/Text-Template" |
Hans-G?nter@24262 | 10 REPOLOGY="perl:text-template" |
Hans-G?nter@23406 | 11 |
pascal@1662 | 12 SOURCE="Text-Template" |
pascal@1662 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23406 | 14 WGET_URL="https://www.cpan.org/modules/by-module/Text/$TARBALL" |
pascal@1662 | 15 |
pascal@15002 | 16 DEPENDS="perl" |
pascal@15002 | 17 BUILD_DEPENDS="perl" |
pascal@15002 | 18 |
pascal@24102 | 19 current_version() |
pascal@24102 | 20 { |
pascal@24102 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24102 | 22 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24102 | 23 } |
pascal@24102 | 24 |
pascal@1662 | 25 # Rules to configure and make the package. |
pascal@1662 | 26 compile_rules() |
pascal@1662 | 27 { |
pascal@1662 | 28 perl Makefile.PL && |
pascal@1662 | 29 make && |
Hans-G?nter@24262 | 30 make install DESTDIR=$DESTDIR |
pascal@1662 | 31 } |
pascal@1662 | 32 |
pascal@1662 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1662 | 34 genpkg_rules() |
pascal@1662 | 35 { |
Hans-G?nter@24262 | 36 cook_copy_folders lib |
pascal@1662 | 37 } |