From be6be4e7063e9f330c6dbd926043bbec1bfe9121 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 30 May 2018 20:32:25 +0000 Subject: perl-dbi: update to 1.641 --- abs/core/perl_modules/perl-dbi/PKGBUILD | 36 +++++++++++++++++---------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/abs/core/perl_modules/perl-dbi/PKGBUILD b/abs/core/perl_modules/perl-dbi/PKGBUILD index 602acd0..ef4b9d0 100644 --- a/abs/core/perl_modules/perl-dbi/PKGBUILD +++ b/abs/core/perl_modules/perl-dbi/PKGBUILD @@ -1,36 +1,38 @@ -# $Id: PKGBUILD 163571 2012-07-16 03:09:15Z eric $ -# Maintainer: kevin -# Contributor: Matt Thompson +# $Id$ +# Maintainer: Felix Yan pkgname=perl-dbi -_realname=DBI -pkgver=1.622 +pkgver=1.641 pkgrel=1 pkgdesc="Database independent interface for Perl" -arch=('i686' 'x86_64') +arch=('x86_64') +url="http://search.cpan.org/dist/DBI/" license=('GPL' 'PerlArtistic') -url="http://search.cpan.org/dist/${_realname}/" depends=('perl') +checkdepends=('perl-test-pod' 'perl-test-pod-coverage') options=('!emptydirs') -source=(http://www.cpan.org/authors/id/T/TI/TIMB/${_realname}-${pkgver}.tar.gz) -md5sums=('9836bcf1b9acc842089aa10b16736909') +source=(http://www.cpan.org/authors/id/T/TI/TIMB/DBI-$pkgver.tar.gz) +sha512sums=('093eb28526e8290c0599437cd624b3e670cfff0ec149c1e8ad942f9f7facdafd2a8225bbf4efdb0d40ecf5a6088093ff9faec826cd4ec88bd0abd6125812137a') build() { - cd "${srcdir}/${_realname}-${pkgver}" - - # install module in vendor directories. + cd DBI-$pkgver perl Makefile.PL INSTALLDIRS=vendor make } check() { - cd "${srcdir}/${_realname}-${pkgver}" + cd DBI-$pkgver make test } package() { - cd "${srcdir}/${_realname}-${pkgver}" - make install DESTDIR="${pkgdir}" + cd DBI-$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; } - -# vim: ts=2 sw=2 et ft=sh -- cgit v0.12