summaryrefslogtreecommitdiff
path: root/libre/perl-fcgi/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-08 00:42:27 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-08 00:42:27 -0300
commitf7a1904a45a3b3d47372ad17a8d2b7b17e5a4934 (patch)
treec0720f132ceb9f8a406b3f852252496375b55048 /libre/perl-fcgi/PKGBUILD
parentd0790f3d00adfae74d5b1e945bfef6022e265381 (diff)
downloadabslibre-f7a1904a45a3b3d47372ad17a8d2b7b17e5a4934.tar.gz
abslibre-f7a1904a45a3b3d47372ad17a8d2b7b17e5a4934.tar.bz2
abslibre-f7a1904a45a3b3d47372ad17a8d2b7b17e5a4934.zip
perl-fcgi: add new package to [libre] until Arch upgrade it to 0.78 version
Diffstat (limited to 'libre/perl-fcgi/PKGBUILD')
-rw-r--r--libre/perl-fcgi/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/libre/perl-fcgi/PKGBUILD b/libre/perl-fcgi/PKGBUILD
new file mode 100644
index 000000000..d0fead4e2
--- /dev/null
+++ b/libre/perl-fcgi/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 240285 2015-06-03 08:15:34Z fyan $
+# Maintainer (Arch): Giovanni Scafora <giovanni@archlinux.org>
+# Contributor (Arch): François Charette <firmicus ατ gmx δοτ net>
+
+pkgname=perl-fcgi
+pkgver=0.78
+pkgrel=0.parabola1
+pkgdesc="Fast CGI"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/FCGI"
+license=('custom')
+depends=('perl')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/FCGI-${pkgver}.tar.gz")
+md5sums=('916cd2887b27265cd8dcfd3280135270')
+
+build() {
+ cd "${srcdir}/FCGI-${pkgver}"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "${srcdir}/FCGI-${pkgver}"
+ make test
+}
+
+package() {
+ cd "${srcdir}/FCGI-${pkgver}"
+ make install DESTDIR="${pkgdir}"
+
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+ depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}