[arch-commits] Commit in mod_perl/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sun Jun 28 09:25:00 UTC 2015


    Date: Sunday, June 28, 2015 @ 11:25:00
  Author: foutrelis
Revision: 135935

upgpkg: mod_perl 2.0.9-2

- Update mod_perl to 2.0.9 in [community] with versioned dep on Perl.
- Remove mod_perl from [community-testing]; it's incompatible with Perl 5.22.

Modified:
  mod_perl/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-28 09:21:14 UTC (rev 135934)
+++ PKGBUILD	2015-06-28 09:25:00 UTC (rev 135935)
@@ -5,7 +5,7 @@
 
 pkgname=mod_perl
 pkgver=2.0.9
-pkgrel=1
+pkgrel=2
 pkgdesc='Apache module that embeds the Perl interpreter within the server'
 arch=(i686 x86_64)
 url='http://perl.apache.org/'
@@ -40,4 +40,12 @@
 package() {
   cd mod_perl-$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;
 }



More information about the arch-commits mailing list