aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-test-api/APKBUILD
blob: b19e0c931c109e1be6814b30ea0ba18eb86bea1c (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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-test-api
_pkgreal=Test-API
pkgver=0.010
pkgrel=0
pkgdesc="Test a list of subroutines provided by a module"
url="https://metacpan.org/release/Test-API"
arch="noarch"
license="Apache-2.0"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Test-API-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

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

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

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

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

sha512sums="52d22fc23af83197ea795ebeb5d0e2380347bc78b25f7b325601ef168532f75eb04ddd61edbc8ab78dc6894375681885130d8008275b4345c779e6adcae9e732  Test-API-0.010.tar.gz"