wok-6.x annotate perl-exporter-tiny/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 | 14e29cd36fd8 |
children | 4998a2f5cae5 |
rev | line source |
---|---|
nneul@18451 | 1 # SliTaz package receipt. |
nneul@18451 | 2 |
nneul@18451 | 3 PACKAGE="perl-exporter-tiny" |
Hans-G?nter@23323 | 4 VERSION="1.002001" |
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" |
pascal@20671 | 9 WEB_SITE="https://metacpan.org/release/Exporter-Tiny" |
Hans-G?nter@23323 | 10 |
nneul@18451 | 11 SOURCE="Exporter-Tiny" |
nneul@18451 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23323 | 13 WGET_URL="https://www.cpan.org/modules/by-module/Exporter/$TARBALL" |
nneul@18451 | 14 |
nneul@18451 | 15 DEPENDS="perl" |
nneul@18451 | 16 BUILD_DEPENDS="$DEPENDS" |
nneul@18451 | 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|.*-v*||;s|<.*||;q' |
pascal@24102 | 22 } |
pascal@24102 | 23 |
nneul@18451 | 24 # Rules to configure and make the package. |
nneul@18451 | 25 compile_rules() |
nneul@18451 | 26 { |
nneul@18451 | 27 perl Makefile.PL && |
nneul@18451 | 28 make && |
nneul@18451 | 29 make DESTDIR=$DESTDIR install |
nneul@18451 | 30 } |
nneul@18451 | 31 |
nneul@18451 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@18451 | 33 genpkg_rules() |
nneul@18451 | 34 { |
Hans-G?nter@23323 | 35 cp -a $install/usr $fs |
nneul@18451 | 36 } |