blob: 822cdf1152fad82967033f817748d05ca6d02cd6 (
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.171.0
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 OR Artistic-1.0-Perl"
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-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-v$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="c1fcb636400cadba1bc4fa2970b995be623c212261aa363c4881442b477968ca09810f028edc2e5e46134b1032e579afa54a14fcd5cb3d8cf3b9e31ecc2e5bd6 Test-MockModule-v0.171.0.tar.gz"
|