From 0baf80298f0b7d8cad662ff18de2e295143660e6 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 1 Oct 2018 19:29:38 +0000 Subject: user/perl-cgi: new package --- user/perl-cgi/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/perl-cgi/APKBUILD diff --git a/user/perl-cgi/APKBUILD b/user/perl-cgi/APKBUILD new file mode 100644 index 000000000..09fca609f --- /dev/null +++ b/user/perl-cgi/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: A. Wilcox +# Maintainer: Adélie Perl Team +pkgname=perl-cgi +pkgver=4.40 +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" +makedepends="perl-dev" +checkdepends="perl-test-deep 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/CGI-$pkgver" + +build() { + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="317cc410d8cc630067759cc05b8643e0c3fe4e55307c437176892a625b88d46443c3e0ff4361e066c54f95c3573e5fa8c21e23069071fa0dc74fc2d93dca13c1 CGI-4.40.tar.gz" -- cgit v1.2.3-70-g09d2