aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-test-modern/APKBUILD
blob: a9c5eb8ab8e2df97ca95288ec9ed40d254c6b7d7 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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-modern
_pkgreal=Test-Modern
pkgver=0.013
pkgrel=2
pkgdesc="precision testing for modern perl"
url="https://metacpan.org/release/Test-Modern/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-exporter-tiny perl-import-into perl-test-warnings perl-test-fatal perl-try-tiny perl-test-deep perl-test-api perl-module-runtime"
cpanmakedepends=""
cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare || return 1

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

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

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

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

sha512sums="b59f897662bfecb1781959fb93bcb7b8090e13fe98beb50cf55b240d9a8e731c16a46ce6db1172953f2c86fad8c201a760ce918be03259d87218023be4438896  Test-Modern-0.013.tar.gz"