wok annotate perl-file-listing/receipt @ rev 24304

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 17 11:01:52 2022 +0000 (2022-01-17)
parents ca4a422cce07
children 083af5061d39
rev   line source
erjo@12034 1 # SliTaz package receipt.
erjo@12034 2
erjo@12034 3 PACKAGE="perl-file-listing"
Hans-G?nter@24208 4 VERSION="6.14"
erjo@12034 5 CATEGORY="development"
erjo@12034 6 SHORT_DESC="File::Listing - parse directory listing."
erjo@12034 7 MAINTAINER="erjo@slitaz.org"
pascal@14702 8 LICENSE="GPL"
Hans-G?nter@24208 9 WEB_SITE="https://metacpan.org/pod/File::Listing"
Hans-G?nter@24208 10 REPOLOGY="perl:file-listing"
Hans-G?nter@24208 11 SOURCE="File-Listing"
Hans-G?nter@24208 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@24208 13 WGET_URL="https://www.cpan.org/modules/by-module/File/$TARBALL"
erjo@12034 14 DEPENDS="perl"
erjo@12034 15 BUILD_DEPENDS="perl"
erjo@12034 16
pascal@24103 17 current_version()
pascal@24103 18 {
pascal@24103 19 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24103 20 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
pascal@24103 21 }
pascal@24103 22
erjo@12034 23 # Rules to configure and make the package.
erjo@12034 24 compile_rules()
erjo@12034 25 {
erjo@12034 26 perl Makefile.PL &&
erjo@12034 27 make &&
Hans-G?nter@24208 28 make install DESTDIR=$DESTDIR
erjo@12034 29 }
erjo@12034 30
erjo@12034 31 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@12034 32 genpkg_rules()
erjo@12034 33 {
Hans-G?nter@24208 34 cook_copy_folders lib
erjo@12034 35 }