wok-6.x annotate perl-exporter-tiny/receipt @ rev 24727
cookutils: add repo-cooking (used by tank)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 15 10:59:31 2022 +0000 (2022-03-15) |
parents | 15650f5d595b |
children | d88ce536755a |
rev | line source |
---|---|
nneul@18451 | 1 # SliTaz package receipt. |
nneul@18451 | 2 |
nneul@18451 | 3 PACKAGE="perl-exporter-tiny" |
Hans-G?nter@24203 | 4 VERSION="1.002002" |
nneul@18451 | 5 CATEGORY="development" |
Hans-G?nter@23323 | 6 SHORT_DESC="Perl extension Exporter::Tiny." |
nneul@18451 | 7 MAINTAINER="nneul@neulinger.org" |
nneul@18451 | 8 LICENSE="GPL" |
Hans-G?nter@24203 | 9 WEB_SITE="https://metacpan.org/pod/Exporter::Tiny" |
Hans-G?nter@24203 | 10 REPOLOGY="perl:exporter-tiny" |
Hans-G?nter@23323 | 11 |
nneul@18451 | 12 SOURCE="Exporter-Tiny" |
nneul@18451 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23323 | 14 WGET_URL="https://www.cpan.org/modules/by-module/Exporter/$TARBALL" |
nneul@18451 | 15 |
nneul@18451 | 16 DEPENDS="perl" |
nneul@18451 | 17 BUILD_DEPENDS="$DEPENDS" |
nneul@18451 | 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 |
nneul@18451 | 25 # Rules to configure and make the package. |
nneul@18451 | 26 compile_rules() |
nneul@18451 | 27 { |
nneul@18451 | 28 perl Makefile.PL && |
nneul@18451 | 29 make && |
Hans-G?nter@24203 | 30 make install DESTDIR=$DESTDIR |
nneul@18451 | 31 } |
nneul@18451 | 32 |
nneul@18451 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@18451 | 34 genpkg_rules() |
nneul@18451 | 35 { |
Hans-G?nter@24203 | 36 cook_copy_folders lib |
nneul@18451 | 37 } |