aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-test-lib/APKBUILD
blob: 024ac68ded491e11f0d5c730d5711824376f038e (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
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-test-lib
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Test-Lib
pkgver=0.003
pkgrel=1
pkgdesc="use libraries from a t/lib directory"
url="https://metacpan.org/release/Test-Lib/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Test-Lib-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. 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="
f7c8aca697d07fe05bac38c8dd509eed32ea5698d4d449af73106ba0b0a17e297396aa656097e8e1027c9254e890b1a5d9da75e62fa888ecd52d74caa5f7e718  Test-Lib-0.003.tar.gz
"