Date: Wednesday, June 3, 2015 @ 23:10:27 Author: heftig Revision: 240307
perl 5.22 Modified: perl-compress-bzip2/trunk/PKGBUILD ----------+ PKGBUILD | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-06-03 21:08:12 UTC (rev 240306) +++ PKGBUILD 2015-06-03 21:10:27 UTC (rev 240307) @@ -4,7 +4,7 @@ pkgname=perl-compress-bzip2 _realname=Compress-Bzip2 pkgver=2.20 -pkgrel=1 +pkgrel=2 pkgdesc="Interface to Bzip2 compression library" arch=(i686 x86_64) license=(GPL2) @@ -21,6 +21,14 @@ } package() { +# 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; + cd "$srcdir/$_realname-$pkgver" make DESTDIR="$pkgdir" install }