summaryrefslogtreecommitdiff
path: root/user/perl-cgi
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 19:29:38 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 19:29:38 +0000
commit0baf80298f0b7d8cad662ff18de2e295143660e6 (patch)
tree96cd746c321af7af9a90ecb7a805d934990cc314 /user/perl-cgi
parentc818bc83d2974e4e711398d112243931f31861b3 (diff)
downloadpackages-0baf80298f0b7d8cad662ff18de2e295143660e6.tar.gz
packages-0baf80298f0b7d8cad662ff18de2e295143660e6.tar.bz2
packages-0baf80298f0b7d8cad662ff18de2e295143660e6.tar.xz
packages-0baf80298f0b7d8cad662ff18de2e295143660e6.zip
user/perl-cgi: new package
Diffstat (limited to 'user/perl-cgi')
-rw-r--r--user/perl-cgi/APKBUILD34
1 files changed, 34 insertions, 0 deletions
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 <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+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"