From e760c62840e31395faae27b41f77d910feec4a80 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Wed, 30 May 2018 20:38:50 +0000
Subject: perl-fcgi: update to 0.78

---
 abs/core/perl_modules/perl-fcgi/PKGBUILD | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git a/abs/core/perl_modules/perl-fcgi/PKGBUILD b/abs/core/perl_modules/perl-fcgi/PKGBUILD
index a03c4ba..1eee9e4 100644
--- a/abs/core/perl_modules/perl-fcgi/PKGBUILD
+++ b/abs/core/perl_modules/perl-fcgi/PKGBUILD
@@ -1,18 +1,18 @@
-# $Id: PKGBUILD 160531 2012-06-02 10:27:39Z bluewind $
+# $Id$
 # Maintainer: Giovanni Scafora <giovanni@archlinux.org>
 # Contributor: François Charette <firmicus ατ gmx δοτ net>
 
 pkgname=perl-fcgi
-pkgver=0.74
-pkgrel=3
+pkgver=0.78
+pkgrel=5
 pkgdesc="Fast CGI"
-arch=('i686' 'x86_64')
+arch=('x86_64')
 url="http://search.cpan.org/dist/FCGI"
 license=('GPL' 'PerlArtistic')
 depends=('perl')
 options=('!emptydirs')
-source=("http://www.cpan.org/CPAN/authors/id/F/FL/FLORA/FCGI-${pkgver}.tar.gz")
-md5sums=('462a77a0072480fea791a4d3095eb486')
+source=("http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/FCGI-${pkgver}.tar.gz")
+md5sums=('916cd2887b27265cd8dcfd3280135270')
 
 build() {
   cd  "${srcdir}/FCGI-${pkgver}"
@@ -28,4 +28,12 @@ check() {
 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;
 }
-- 
cgit v0.12

