blob: 9e466cd422cffa0927d70226c31f46e0790e7492 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-test-mockmodule
_pkgname=Test-MockModule
pkgver=0.15
pkgrel=0
pkgdesc="Override subroutines in a module for unit testing"
url="https://metacpan.org/release/Test-MockModule"
arch="noarch"
license="GPL-1.0-or-later PerlArtistic"
depends="perl"
makedepends="perl-dev perl-module-build perl-test-warnings perl-super
perl-sub-identify"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/G/GF/GFRANKS/Test-MockModule-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Build.PL installdirs=vendor prefix=/usr
}
build() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Build
}
check() {
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Build test
}
package() {
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="20f64f9984010ee0b3c26532a8835156b7cc8837e436c0785a2d3b7959cb01f07584b816d754da9f9205e457fe5d4a8316d984bf215d242000704fe0c52284a7 Test-MockModule-0.15.tar.gz"
|