aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-mockobject/APKBUILD
blob: 3ee756466e57dfe39827e20173ed37a2d8a4ad3b (plain) (blame)
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
# Contributor:  Jeff Bilyk <jbilyk@gmail.com>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-test-mockobject
_pkgname=Test-MockObject
pkgver=1.20191002
pkgrel=2
pkgdesc="Perl Mock part of an object or class"
url="https://metacpan.org/release/Test-MockObject/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-warn perl-test-exception perl-universal-isa perl-universal-can"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="43e8f081e0f5ca71b66739718e3e18be84900aaf74b91e2b41f2e652ee5f4b6c1534abb68e51617ce0e15a1369acd0c4ffbf80dea0af32d0bf6f9e45348c784f  Test-MockObject-1.20191002.tar.gz"