wok annotate perl-class-singleton/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 | 6e8b1bcb30e2 |
children | 68df3e2fffec |
rev | line source |
---|---|
nneul@18451 | 1 # SliTaz package receipt. |
nneul@18451 | 2 |
nneul@18451 | 3 PACKAGE="perl-class-singleton" |
nneul@18451 | 4 VERSION="1.5" |
nneul@18451 | 5 CATEGORY="development" |
nneul@18451 | 6 SHORT_DESC="Class::Singleton is a perl module" |
nneul@18451 | 7 MAINTAINER="nneul@neulinger.org" |
nneul@18451 | 8 LICENSE="GPL" |
pascal@20671 | 9 WEB_SITE="https://metacpan.org/release/Class-Singleton" |
nneul@18451 | 10 SOURCE="Class-Singleton" |
nneul@18451 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
nneul@18451 | 12 WGET_URL="http://www.cpan.org/authors/id/S/SH/SHAY/$TARBALL" |
nneul@18451 | 13 |
nneul@18451 | 14 DEPENDS="perl" |
nneul@18451 | 15 BUILD_DEPENDS="$DEPENDS" |
nneul@18451 | 16 |
pascal@24102 | 17 current_version() |
pascal@24102 | 18 { |
pascal@24102 | 19 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24102 | 20 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24102 | 21 } |
pascal@24102 | 22 |
nneul@18451 | 23 # Rules to configure and make the package. |
nneul@18451 | 24 compile_rules() |
nneul@18451 | 25 { |
nneul@18451 | 26 cd $src |
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 { |
nneul@18451 | 35 cp -a $install/usr $fs |
nneul@18451 | 36 } |