[arch-commits] Commit in perl-list-moreutils/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Wed Jun 3 02:02:58 UTC 2015


    Date: Wednesday, June 3, 2015 @ 04:02:58
  Author: fyan
Revision: 240245

upgpkg: perl-list-moreutils 0.412-2

perl 5.22 rebuild

Modified:
  perl-list-moreutils/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-03 02:02:53 UTC (rev 240244)
+++ PKGBUILD	2015-06-03 02:02:58 UTC (rev 240245)
@@ -5,7 +5,7 @@
 
 pkgname=perl-list-moreutils
 pkgver=0.412
-pkgrel=1
+pkgrel=2
 pkgdesc="Provide the stuff missing in List::Util"
 arch=('i686' 'x86_64')
 license=('PerlArtistic' 'GPL')
@@ -38,6 +38,13 @@
 package() {
     cd "${srcdir}/List-MoreUtils-${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;
 }
 
 # Local Variables:



More information about the arch-commits mailing list