Date: Wednesday, June 3, 2015 @ 04:02:07 Author: fyan Revision: 240243
upgpkg: perl-libintl-perl 1.24-2 perl 5.22 rebuild Modified: perl-libintl-perl/trunk/PKGBUILD ----------+ PKGBUILD | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-06-03 01:59:52 UTC (rev 240242) +++ PKGBUILD 2015-06-03 02:02:07 UTC (rev 240243) @@ -6,12 +6,12 @@ pkgname=perl-libintl-perl _realname=libintl-perl pkgver=1.24 -pkgrel=1 +pkgrel=2 pkgdesc="Perl Module: Localization support" arch=('i686' 'x86_64') license=('LGPL') url="http://search.cpan.org/dist/${_realname}/" -depends=('gettext' 'perl') +depends=('coreutils' 'gettext' 'perl') options=('!emptydirs') source=(http://www.cpan.org/authors/id/G/GU/GUIDO/${_realname}-$pkgver.tar.gz) md5sums=('66f989c07541e32325b0557b89aead8f') @@ -30,4 +30,11 @@ package() { cd "${srcdir}/${_realname}-$pkgver" make 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; }