# Contributor: A. Wilcox # Maintainer: Adélie Perl Team pkgname=perl-cgi _pkgreal=CGI _author=LEEJO _au=${_author%%"${_author#??}"} _a=${_author%%"${_author#?}"} pkgver=4.50 pkgrel=0 pkgdesc="Handle CGI requests and responses in Perl" url="https://metacpan.org/release/CGI" arch="noarch" license="Artistic-1.0-Perl" depends="perl-html-parser" checkdepends="perl-test-deep perl-test-nowarnings perl-test-warn" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="c8f898404ef8fb341ea741229939748b82ca94b231591b67f29ca2f06cfbab363653753289a795a2eb0b0a145eafc8e8a303e92fd90795071b123e0fb8cb79c6 CGI-4.50.tar.gz"