| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Timothy Legge <[email protected]> |
| 3 | # Maintainer: Timothy Legge <[email protected]> |
| 4 | pkgname=perl-mixin-linewise |
| 5 | pkgver=0.111 |
| 6 | pkgrel=3 |
| 7 | # _pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=Mixin-Linewise |
| 9 | pkgdesc="write your linewise code for handles; this does the rest" |
| 10 | url="https://metacpan.org/release/Mixin-Linewise/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends="perl perl-perlio-utf8_strict perl-sub-exporter" |
| 14 | subpackages="$pkgname-doc" |
| 15 | source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Mixin-Linewise-$pkgver.tar.gz" |
| 16 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 17 | |
| 18 | build() { |
| 19 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 20 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ |
| 21 | INSTALLDIRS=vendor \ |
| 22 | NO_PACKLIST=1 \ |
| 23 | NO_PERLLOCAL=1 |
| 24 | make |
| 25 | } |
| 26 | |
| 27 | check() { |
| 28 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 29 | make test |
| 30 | } |
| 31 | |
| 32 | package() { |
| 33 | make DESTDIR="$pkgdir" install |
| 34 | } |
| 35 | |
| 36 | sha512sums=" |
| 37 | 282c9bbb825ee05f1d916fdfb1caad6c04a917a26c10ae18dc9883706e612915186c49a96209af254329f346bc731547a20ff2db136f0ceaf1edd5d21b120195 Mixin-Linewise-0.111.tar.gz |
| 38 | " |