wok-current annotate perl-template-toolkit/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 | 1452ca636580 |
children | 3026aad208f2 |
rev | line source |
---|---|
nneul@17852 | 1 # SliTaz package receipt. |
nneul@17852 | 2 |
nneul@17852 | 3 PACKAGE="perl-template-toolkit" |
Hans-G?nter@23392 | 4 VERSION="3.008" |
nneul@17852 | 5 CATEGORY="development" |
Hans-G?nter@23392 | 6 SHORT_DESC="Perl Module Template Toolkit." |
nneul@17852 | 7 MAINTAINER="nneul@neulinger.org" |
nneul@17852 | 8 LICENSE="Artistic" |
Hans-G?nter@23392 | 9 WEB_SITE="https://metacpan.org/release/Template-Toolkit/" |
Hans-G?nter@23392 | 10 |
Hans-G?nter@23392 | 11 SOURCE="Template-Toolkit" |
Hans-G?nter@23392 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23392 | 13 WGET_URL="https://www.cpan.org/modules/by-module/Template/$TARBALL" |
Hans-G?nter@23392 | 14 |
nneul@17852 | 15 DEPENDS="perl perl-appconfig" |
nneul@17852 | 16 BUILD_DEPENDS="perl-appconfig" |
nneul@17852 | 17 |
pascal@24102 | 18 current_version() |
pascal@24102 | 19 { |
pascal@24102 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24102 | 21 sed '/release-name/!d;s|.*-||;s|<.*||;q' |
pascal@24102 | 22 } |
pascal@24102 | 23 |
nneul@17852 | 24 # Rules to configure and make the package. |
nneul@17852 | 25 compile_rules() |
nneul@17852 | 26 { |
nneul@17852 | 27 perl Makefile.PL TT_XS_ENABLE=y TT_XS_DEFAULT=y TT_ACCEPT=y TT_QUIET=n && |
nneul@17852 | 28 make && |
nneul@17852 | 29 make DESTDIR=$DESTDIR install |
nneul@17852 | 30 } |
nneul@17852 | 31 |
nneul@17852 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@17852 | 33 genpkg_rules() |
nneul@17852 | 34 { |
nneul@17852 | 35 mkdir -p $fs/usr |
Hans-G?nter@23392 | 36 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@23392 | 37 |
nneul@17852 | 38 # remove perllocal.pod and .packlist |
Hans-G?nter@23392 | 39 find $fs -name perllocal.pod -delete |
Hans-G?nter@23392 | 40 find $fs -name .packlist -delete |
nneul@17852 | 41 } |