# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-cgi-psgi #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=CGI-PSGI pkgver=0.15 pkgrel=5 pkgdesc="Adapt CGI.pm to the PSGI protocol" url="https://metacpan.org/release/CGI-PSGI/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-cgi" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/CGI-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=" 5cdb32846dab5e35a81b52611bb109c66c72db98ddc6fe93a5b91335a1f03cc6ed396c415fb5ee311ce78d72e45e4986b5809569b6394d601af24d4d117fe96f CGI-PSGI-0.15.tar.gz "