wok annotate perl-class-singleton/receipt @ rev 25113
Use https://download.tuxfamily.org/ for some broken wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 25 14:36:45 2022 +0000 (2022-06-25) |
parents | 15650f5d595b |
children | b27d8c263cba |
rev | line source |
---|---|
nneul@18451 | 1 # SliTaz package receipt. |
nneul@18451 | 2 |
nneul@18451 | 3 PACKAGE="perl-class-singleton" |
Hans-G?nter@24184 | 4 VERSION="1.6" |
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" |
Hans-G?nter@24184 | 9 WEB_SITE="https://metacpan.org/pod/Class::Singleton" |
Hans-G?nter@24184 | 10 REPOLOGY="perl:class-singleton" |
nneul@18451 | 11 SOURCE="Class-Singleton" |
nneul@18451 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@24184 | 13 WGET_URL="https://cpan.metacpan.org/authors/id/S/SH/SHAY/$TARBALL" |
nneul@18451 | 14 |
nneul@18451 | 15 DEPENDS="perl" |
Hans-G?nter@24184 | 16 BUILD_DEPENDS="perl perl-extutils-makemaker" |
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 && |
Hans-G?nter@24184 | 29 make install DESTDIR=$DESTDIR |
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@24184 | 35 cook_copy_folders lib |
nneul@18451 | 36 } |