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

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


    Date: Wednesday, June 3, 2015 @ 04:38:16
  Author: fyan
Revision: 134651

upgpkg: perl-mouse 2.4.2-2

perl 5.22 rebuild

Modified:
  perl-mouse/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-03 02:35:34 UTC (rev 134650)
+++ PKGBUILD	2015-06-03 02:38:16 UTC (rev 134651)
@@ -3,7 +3,7 @@
 
 pkgname=perl-mouse
 pkgver=2.4.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Moose minus the antlers"
 arch=('i686' 'x86_64')
 url="http://search.cpan.org/dist/Mouse"
@@ -30,4 +30,11 @@
 package() {
   cd Mouse-$pkgver
   ./Build 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