[arch-commits] Commit in perl-async-interrupt/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Tue Jun 2 14:47:06 UTC 2015
Date: Tuesday, June 2, 2015 @ 16:47:05
Author: fyan
Revision: 240199
upgpkg: perl-async-interrupt 1.21-2
perl 5.22 rebuild
Modified:
perl-async-interrupt/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-06-02 14:14:20 UTC (rev 240198)
+++ PKGBUILD 2015-06-02 14:47:05 UTC (rev 240199)
@@ -5,7 +5,7 @@
pkgname=perl-async-interrupt
_ver=1.21
pkgver=1.21
-pkgrel=1
+pkgrel=2
pkgdesc='allow C/XS libraries to interrupt perl asynchronously'
arch=(i686 x86_64)
license=(PerlArtistic GPL)
@@ -34,6 +34,13 @@
cd "$srcdir/Async-Interrupt-$_ver"
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+# 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