# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-cgi-emulate-psgi #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=CGI-Emulate-PSGI pkgver=0.23 pkgrel=4 pkgdesc="PSGI adapter for CGI" url="https://metacpan.org/release/CGI-Emulate-PSGI/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-http-message perl-cgi" makedepends="perl-dev" checkdepends="perl-test-requires" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/CGI-Emulate-PSGI-$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=" 0e1017175ccab53ef50993c9884990dc85c7cdb30744f4bac2df4486a63fd5fd24e7f4b0e473d39b1f2b4dfdcf12756016edbc39e0fb725c6c610c21e6a7f96a CGI-Emulate-PSGI-0.23.tar.gz "