summaryrefslogtreecommitdiff
path: root/user/perl-cgi/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-cgi/APKBUILD')
-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"