Date: Tuesday, June 2, 2015 @ 18:28:52 Author: fyan Revision: 240207 upgpkg: perl-dbd-mysql 4.031-2
perl 5.22 rebuild Modified: perl-dbd-mysql/trunk/PKGBUILD ----------+ PKGBUILD | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-06-02 16:28:17 UTC (rev 240206) +++ PKGBUILD 2015-06-02 16:28:52 UTC (rev 240207) @@ -1,11 +1,12 @@ # $Id$ -# Maintainer: Bartłomiej Piotrowski <[email protected]> +# Maintainer: Felix Yan <[email protected]> +# Contributor: Bartłomiej Piotrowski <[email protected]> # Contributor: kevin <[email protected]> # Contributor: Eric Johnson <[email protected]> pkgname=perl-dbd-mysql pkgver=4.031 -pkgrel=1 +pkgrel=2 pkgdesc='Perl/CPAN DBD::mysql module for interacting with MySQL via DBD' arch=('i686' 'x86_64') license=('GPL' 'PerlArtistic') @@ -40,4 +41,11 @@ package() { cd DBD-mysql-$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; }
