wok view perl-test-mockmodule/receipt @ rev 24221
updated perl-io (1.42 -> 1.48)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 16:58:14 2021 +0100 (2021-12-31) |
parents | 4c990c14a0c8 |
children | fb93ed2f2940 |
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-test-mockmodule"
4 VERSION="0.172.0"
5 CATEGORY="development"
6 SHORT_DESC="Perl extension Test::MockModule."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://metacpan.org/release/Test-MockModule"
11 SOURCE="Test-MockModule"
12 TARBALL="$SOURCE-v$VERSION.tar.gz"
13 WGET_URL="https://www.cpan.org/modules/by-module/Test/$TARBALL"
15 DEPENDS="perl-sub-identify perl-super perl-test-warnings"
16 BUILD_DEPENDS="$DEPENDS"
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 perl Build.PL &&
28 ./Build &&
29 ./Build test &&
30 ./Build --destdir $DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/lib $fs/usr
38 }