diff options
Diffstat (limited to 'abs/core/perl_modules')
-rw-r--r-- | abs/core/perl_modules/perl-cgi/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/abs/core/perl_modules/perl-cgi/PKGBUILD b/abs/core/perl_modules/perl-cgi/PKGBUILD new file mode 100644 index 0000000..e94e393 --- /dev/null +++ b/abs/core/perl_modules/perl-cgi/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Florian Pritz <bluewind@xinu.at> + +pkgname=perl-cgi +pkgver=4.38 +pkgrel=1 +pkgdesc='Handle Common Gateway Interface requests and responses' +arch=(any) +license=(PerlArtistic GPL) +options=(!emptydirs) +depends=('perl>=5.8.1' perl-html-parser) +checkdepends=('perl-test-deep>=0.11' perl-test-nowarnings + 'perl-test-warn>=0.3') +url=https://metacpan.org/release/CGI +source=("http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/CGI-$pkgver.tar.gz") +md5sums=(0aeb8563d533e7f83724ed068b5bfc37) +sha512sums=(c035a24b228105786828a4c9ae9c6aab9f22e311dc73871dc25497c5b4b84e77b096e570059a9d7cadc2916bfba582d5c093b6f029ccf0d826870629e36be04e) +_ddir="CGI-$pkgver" + +build() +( + cd "$srcdir/$_ddir" + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + unset PERL5LIB PERL_MM_OPT + /usr/bin/perl Makefile.PL + make +) + +check() +( + cd "$srcdir/$_ddir" + export PERL_MM_USE_DEFAULT=1 + unset PERL5LIB + make test +) + +package() +( + cd "$srcdir/$_ddir" + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +) + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: |