| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Maintainer: Leonardo Arena <[email protected]> |
| 3 | pkgname=perl-test-without-module |
| 4 | pkgver=0.23 |
| 5 | pkgrel=0 |
| 6 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 7 | _pkgreal=Test-Without-Module |
| 8 | pkgdesc="Test fallback behaviour in absence of modules" |
| 9 | url="https://metacpan.org/release/Test-Without-Module/" |
| 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/C/CO/CORION/Test-Without-Module-$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 | sha512sums=" |
| 36 | fae39cbaa4c6b990eea1aeca23464b90840579252929be72d5523642f30b7f644051f106eb4ed9f4cc96ddd584b734853b3aff0c98074ca5d81a4173dbf6d54a Test-Without-Module-0.23.tar.gz |
| 37 | " |