wok annotate perl-file-basedir/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 8a801a6c0e8a
rev   line source
paul@3233 1 # SliTaz package receipt.
paul@3233 2
paul@3233 3 PACKAGE="perl-file-basedir"
paul@3233 4 VERSION="0.03"
paul@3233 5 CATEGORY="development"
paul@3233 6 SHORT_DESC="File::BaseDir module is a Perl extension."
paul@3233 7 MAINTAINER="paul@slitaz.org"
pascal@14702 8 LICENSE="GPL"
paul@3233 9 DEPENDS="perl"
paul@3233 10 BUILD_DEPENDS="perl"
paul@3233 11 SOURCE="File-BaseDir"
paul@3233 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@24103 13 WEB_SITE="https://metacpan.org/dist/File-BaseDir"
pascal@20682 14 WGET_URL="https://metacpan.org/CPAN/authors/id/P/PA/PARDUS/$TARBALL"
paul@3233 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
paul@3233 22 # Rules to configure and make the package.
paul@3233 23 compile_rules()
paul@3233 24 {
paul@3233 25 cd $src
paul@3233 26 perl Makefile.PL &&
paul@3233 27 make &&
pascal@14702 28 make DESTDIR=$DESTDIR install
paul@3233 29 }
paul@3233 30
paul@3233 31 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@3233 32 genpkg_rules()
paul@3233 33 {
paul@3233 34 mkdir -p $fs/usr
pascal@14702 35 cp -a $install/usr/lib $fs/usr
paul@3233 36 }
paul@3233 37