| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Maintainer: Natanael Copa <[email protected]> |
| 3 | pkgname=perl-test-inter |
| 4 | pkgver=1.12 |
| 5 | pkgrel=0 |
| 6 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 7 | _pkgreal=Test-Inter |
| 8 | pkgdesc="framework for more readable interactive test scripts" |
| 9 | url="https://metacpan.org/release/Test-Inter/" |
| 10 | arch="noarch" |
| 11 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 12 | depends="perl" |
| 13 | subpackages="$pkgname-doc" |
| 14 | source="https://cpan.metacpan.org/authors/id/S/SB/SBECK/Test-Inter-$pkgver.tar.gz" |
| 15 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 16 | |
| 17 | build() { |
| 18 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 19 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ |
| 20 | INSTALLDIRS=vendor \ |
| 21 | NO_PACKLIST=1 \ |
| 22 | NO_PERLLOCAL=1 |
| 23 | make |
| 24 | } |
| 25 | |
| 26 | check() { |
| 27 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 28 | make test |
| 29 | } |
| 30 | |
| 31 | package() { |
| 32 | make DESTDIR="$pkgdir" install |
| 33 | } |
| 34 | |
| 35 | doc() { |
| 36 | local file; find "$pkgdir" -name "*.pod" | while read -r file; do |
| 37 | amove "${file#"$pkgdir"}" |
| 38 | done |
| 39 | default_doc |
| 40 | } |
| 41 | |
| 42 | sha512sums=" |
| 43 | 8db6572ed863458d741b0dad78b3a09d83bf3c0f53e5512f8721c64fc1de675a78d16a58465cf16acb6059a49a735e6d0e1e1781d2cbc9421df4ab7026c01460 Test-Inter-1.12.tar.gz |
| 44 | " |