| 1 | # Automatically generated by apkbuild-cpan, template 3 |
| 2 | # Contributor: Timo Teräs <[email protected]> |
| 3 | # Maintainer: Timo Teräs <[email protected]> |
| 4 | pkgname=perl-html-mason-psgihandler |
| 5 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 6 | _pkgreal=HTML-Mason-PSGIHandler |
| 7 | pkgver=0.53 |
| 8 | pkgrel=3 |
| 9 | pkgdesc="PSGI handler for HTML::Mason" |
| 10 | url="https://metacpan.org/release/HTML-Mason-PSGIHandler/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends="perl perl-cgi-psgi perl-html-mason" |
| 14 | checkdepends="perl-plack" |
| 15 | subpackages="$pkgname-doc" |
| 16 | source="https://cpan.metacpan.org/authors/id/R/RU/RUZ/HTML-Mason-PSGIHandler-$pkgver.tar.gz" |
| 17 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 18 | |
| 19 | build() { |
| 20 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 21 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor |
| 22 | make |
| 23 | } |
| 24 | |
| 25 | check() { |
| 26 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 27 | make test |
| 28 | } |
| 29 | |
| 30 | package() { |
| 31 | make DESTDIR="$pkgdir" install |
| 32 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete |
| 33 | } |
| 34 | |
| 35 | sha512sums="d8fe27ff0b25e41b7e64e83c277d323f5207b66e7630e3f688d586c375c63b1837935934a67e630c54fe8219e7b44fe084875e1530d36044fac85884ea62da40 HTML-Mason-PSGIHandler-0.53.tar.gz" |