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

Evangelos Foutras foutrelis at archlinux.org
Sun Jun 14 15:45:26 UTC 2015


    Date: Sunday, June 14, 2015 @ 17:45:26
  Author: foutrelis
Revision: 135300

upgpkg: mod_perl 2.0.8-5

Perl 5.22 rebuild.

Modified:
  mod_perl/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-14 15:44:50 UTC (rev 135299)
+++ PKGBUILD	2015-06-14 15:45:26 UTC (rev 135300)
@@ -5,7 +5,7 @@
 
 pkgname=mod_perl
 pkgver=2.0.8
-pkgrel=4
+pkgrel=5
 pkgdesc='Apache module that embeds the Perl interpreter within the server'
 arch=(i686 x86_64)
 url='http://perl.apache.org/'
@@ -35,4 +35,12 @@
 package() {
   cd mod_perl
   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