Date: Wednesday, June 3, 2015 @ 04:15:05 Author: fyan Revision: 240257
upgpkg: perl-xml-libxml 2.0121-2 perl 5.22 rebuild Modified: perl-xml-libxml/trunk/PKGBUILD ----------+ PKGBUILD | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-06-03 02:12:14 UTC (rev 240256) +++ PKGBUILD 2015-06-03 02:15:05 UTC (rev 240257) @@ -6,7 +6,7 @@ pkgname=perl-xml-libxml pkgver=2.0121 -pkgrel=1 +pkgrel=2 pkgdesc="Interface to the libxml library" arch=('i686' 'x86_64') url="http://search.cpan.org/dist/XML-LibXML" @@ -33,4 +33,11 @@ package() { cd "$srcdir"/XML-LibXML-$pkgver make pure_install doc_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; }