wok-current annotate perl-test-mockmodule/receipt @ rev 24142

linux-aufs: git checkout problem ?
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 15 08:46:59 2021 +0000 (2021-11-15)
parents 4c990c14a0c8
children fb93ed2f2940
rev   line source
pascal@20470 1 # SliTaz package receipt.
pascal@20470 2
pascal@20470 3 PACKAGE="perl-test-mockmodule"
Hans-G?nter@23397 4 VERSION="0.172.0"
pascal@20470 5 CATEGORY="development"
Hans-G?nter@23397 6 SHORT_DESC="Perl extension Test::MockModule."
pascal@20470 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20470 8 LICENSE="GPL"
Hans-G?nter@23397 9 WEB_SITE="https://metacpan.org/release/Test-MockModule"
Hans-G?nter@23397 10
pascal@20470 11 SOURCE="Test-MockModule"
pascal@20470 12 TARBALL="$SOURCE-v$VERSION.tar.gz"
Hans-G?nter@23397 13 WGET_URL="https://www.cpan.org/modules/by-module/Test/$TARBALL"
Hans-G?nter@23397 14
Hans-G?nter@23397 15 DEPENDS="perl-sub-identify perl-super perl-test-warnings"
Hans-G?nter@23397 16 BUILD_DEPENDS="$DEPENDS"
pascal@20470 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
pascal@20470 24 # Rules to configure and make the package.
pascal@20470 25 compile_rules()
pascal@20470 26 {
pascal@20470 27 perl Build.PL &&
pascal@20470 28 ./Build &&
pascal@20470 29 ./Build test &&
pascal@20470 30 ./Build --destdir $DESTDIR install
pascal@20470 31 }
pascal@20470 32
pascal@20470 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20470 34 genpkg_rules()
pascal@20470 35 {
pascal@20470 36 mkdir -p $fs/usr
Hans-G?nter@23397 37 cp -a $install/usr/lib $fs/usr
pascal@20470 38 }