# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-cgi #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=CGI pkgver=4.57 pkgrel=1 pkgdesc="Handle Common Gateway Interface requests and responses" url="https://metacpan.org/release/CGI/" arch="noarch" license="Artistic-2.0" depends="perl perl-html-parser" makedepends="perl-dev" checkdepends="perl-test-nowarnings perl-test-warn" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/L/LE/LEEJO/CGI-$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=" c6e6746afcac3b945ac445d4fad37b9abc6ea91f1f2969fe2287170da9b42df6a46f705efb8315b2292ee9f389d4342d70326d53085fa372e3287edbe7b51d6e CGI-4.57.tar.gz "