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

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 17 14:12:38 2021 +0000 (2021-09-17)
parents 20661c276bcf
children dffab21eed42
rev   line source
erjo@12034 1 # SliTaz package receipt.
erjo@12034 2
erjo@12034 3 PACKAGE="perl-file-listing"
erjo@12034 4 VERSION="6.04"
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"
erjo@12034 9 DEPENDS="perl"
erjo@12034 10 BUILD_DEPENDS="perl"
erjo@12034 11 SOURCE="File-Listing"
erjo@12034 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@24103 13 WEB_SITE="https://metacpan.org/pod/File::Listing"
pascal@20682 14 WGET_URL="https://metacpan.org/CPAN/authors/id/G/GA/GAAS/$TARBALL"
erjo@12034 15
pascal@24103 16 current_version()
pascal@24103 17 {
pascal@24103 18 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24103 19 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
pascal@24103 20 }
pascal@24103 21
erjo@12034 22 # Rules to configure and make the package.
erjo@12034 23 compile_rules()
erjo@12034 24 {
erjo@12034 25 cd $src
erjo@12034 26 perl Makefile.PL &&
erjo@12034 27 make &&
pascal@14702 28 make DESTDIR=$DESTDIR install
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 {
erjo@12034 34 mkdir -p $fs/usr
pascal@14702 35 cp -a $install/usr/lib $fs/usr
erjo@12034 36 }
erjo@12034 37