aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-mockmodule/APKBUILD
blob: 76aff55732c05d66a3b6e274a548525fdc42b0cf (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
# Automatically generated by apkbuild-cpan, template 3
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-test-mockmodule
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Test-MockModule
pkgver=0.177.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 perl-super"
makedepends="perl-module-build"
checkdepends="perl-test-warnings perl-sub-identify"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/G/GF/GFRANKS/Test-MockModule-v0.177.0.tar.gz"
builddir="$srcdir/$_pkgreal-v0.177.0"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
d28523202ba4dbf040e26a3cb0795297c2c4fc65598e7717a51ed8678bce308eec7eb3b5d5d35d71418b21c2c81833679cf1624e0e07c6b1e26e8f7605eb98b3  Test-MockModule-v0.177.0.tar.gz
"