| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Maintainer: Leonardo Arena <[email protected]> |
| 3 | pkgname=perl-specio |
| 4 | pkgver=0.53 |
| 5 | pkgrel=0 |
| 6 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 7 | _pkgreal=Specio |
| 8 | pkgdesc="Type constraints and coercions for Perl" |
| 9 | url="https://metacpan.org/release/Specio/" |
| 10 | arch="noarch" |
| 11 | license="Artistic-2.0" |
| 12 | depends=" |
| 13 | perl perl-sub-quote perl-devel-stacktrace perl-role-tiny perl-mro-compat perl-try-tiny |
| 14 | perl-test-fatal perl-eval-closure perl-module-runtime perl-clone |
| 15 | perl-module-implementation |
| 16 | " |
| 17 | checkdepends="perl-test-needs" |
| 18 | subpackages="$pkgname-doc" |
| 19 | source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Specio-$pkgver.tar.gz" |
| 20 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 21 | |
| 22 | build() { |
| 23 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 24 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ |
| 25 | INSTALLDIRS=vendor \ |
| 26 | NO_PACKLIST=1 \ |
| 27 | NO_PERLLOCAL=1 |
| 28 | make |
| 29 | } |
| 30 | |
| 31 | check() { |
| 32 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 33 | make test |
| 34 | } |
| 35 | |
| 36 | package() { |
| 37 | make DESTDIR="$pkgdir" install |
| 38 | } |
| 39 | |
| 40 | sha512sums=" |
| 41 | 3d410bb957564309d84c9b70e1d672e9e6f47dc7e9d1c8f921771aaceebd997631971313aaf7d2e77fe7b3c1561381e4eb70dfc5fccb64f75be27f023cc2c96e Specio-0.53.tar.gz |
| 42 | " |