Date: Wednesday, June 3, 2015 @ 03:57:18 Author: fyan Revision: 240239
upgpkg: perl-guard 1.023-2 perl 5.22 rebuild Modified: perl-guard/trunk/PKGBUILD ----------+ PKGBUILD | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-06-03 01:20:40 UTC (rev 240238) +++ PKGBUILD 2015-06-03 01:57:18 UTC (rev 240239) @@ -4,12 +4,12 @@ pkgname=perl-guard pkgver=1.023 -pkgrel=1 +pkgrel=2 pkgdesc='safe cleanup blocks' arch=('i686' 'x86_64') url='https://metacpan.org/release/Guard' license=('GPL' 'PerlArtistic') -depends=('perl') +makedepends=('perl') options=('!emptydirs') source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Guard-${pkgver}.tar.gz") md5sums=('dbbb944601a31f60ee58954ad4cb65b4') @@ -37,6 +37,13 @@ package() { cd "${srcdir}/Guard-${pkgver}" make DESTDIR="$pkgdir" install +# 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: