# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-html-mason-psgihandler
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=HTML-Mason-PSGIHandler
pkgver=0.53
pkgrel=3
pkgdesc="PSGI handler for HTML::Mason"
url="https://metacpan.org/release/HTML-Mason-PSGIHandler/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-cgi-psgi perl-html-mason"
checkdepends="perl-plack"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RU/RUZ/HTML-Mason-PSGIHandler-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="d8fe27ff0b25e41b7e64e83c277d323f5207b66e7630e3f688d586c375c63b1837935934a67e630c54fe8219e7b44fe084875e1530d36044fac85884ea62da40  HTML-Mason-PSGIHandler-0.53.tar.gz"
