wok-current annotate perl-fcgi/receipt @ rev 24308
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 18:18:17 2022 +0000 (2022-01-17) |
parents | 15650f5d595b |
children |
rev | line source |
---|---|
nneul@17870 | 1 # SliTaz package receipt. |
nneul@17870 | 2 |
nneul@17870 | 3 PACKAGE="perl-fcgi" |
Hans-G?nter@24206 | 4 VERSION="0.82" |
nneul@17870 | 5 CATEGORY="development" |
Hans-G?nter@24206 | 6 SHORT_DESC="A Fast CGI module for Perl." |
nneul@17870 | 7 MAINTAINER="nneul@neulinger.org" |
Hans-G?nter@24206 | 8 LICENSE="GPL" |
Hans-G?nter@24206 | 9 WEB_SITE="https://metacpan.org/pod/FCGI" |
Hans-G?nter@24206 | 10 REPOLOGY="perl:fcgi" |
Hans-G?nter@23326 | 11 |
Hans-G?nter@23326 | 12 SOURCE="FCGI" |
Hans-G?nter@23326 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23326 | 14 WGET_URL="https://www.cpan.org/modules/by-module/FCGI/$TARBALL" |
Hans-G?nter@23326 | 15 |
nneul@17870 | 16 DEPENDS="perl" |
nneul@17870 | 17 BUILD_DEPENDS="perl" |
nneul@17870 | 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@17870 | 25 # Rules to configure and make the package. |
nneul@17870 | 26 compile_rules() |
nneul@17870 | 27 { |
nneul@17870 | 28 perl Makefile.PL && |
nneul@17870 | 29 make && |
Hans-G?nter@24206 | 30 make install DESTDIR=$DESTDIR |
nneul@17870 | 31 } |
nneul@17870 | 32 |
nneul@17870 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@17870 | 34 genpkg_rules() |
nneul@17870 | 35 { |
Hans-G?nter@24206 | 36 cook_copy_folders lib |
nneul@17870 | 37 # remove perllocal.pod and .packlist |
Hans-G?nter@23326 | 38 find $fs -name perllocal.pod -delete |
Hans-G?nter@23326 | 39 find $fs -name .packlist -delete |
nneul@17870 | 40 } |