[arch-commits] Commit in perl-linux-pid/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sun Jun 14 15:32:07 UTC 2015


    Date: Sunday, June 14, 2015 @ 17:32:06
  Author: foutrelis
Revision: 135290

upgpkg: perl-linux-pid 0.04-5

Perl 5.22 rebuild.

Modified:
  perl-linux-pid/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-14 12:52:35 UTC (rev 135289)
+++ PKGBUILD	2015-06-14 15:32:06 UTC (rev 135290)
@@ -5,7 +5,7 @@
 
 pkgname='perl-linux-pid'
 pkgver=0.04
-pkgrel=4
+pkgrel=5
 pkgdesc="Interface to Linux getpp?id functions"
 arch=('i686' 'x86_64')
 license=('PerlArtistic' 'GPL')
@@ -38,5 +38,13 @@
 package() {
   cd Linux-Pid-$pkgver
   make DESTDIR="$pkgdir" install
+
+# 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