From c1094fbdd45e06847953f671b416cf58f66f45ad Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 30 May 2018 20:33:28 +0000 Subject: perl-dbd-mysql: update to 4.046 --- abs/core/perl_modules/perl-dbd-mysql/PKGBUILD | 45 ++++++++++++++++----------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/abs/core/perl_modules/perl-dbd-mysql/PKGBUILD b/abs/core/perl_modules/perl-dbd-mysql/PKGBUILD index 5794b3e..e0f591a 100644 --- a/abs/core/perl_modules/perl-dbd-mysql/PKGBUILD +++ b/abs/core/perl_modules/perl-dbd-mysql/PKGBUILD @@ -1,30 +1,31 @@ -# $Id: PKGBUILD 161944 2012-06-16 19:18:00Z eric $ -# Maintainer: kevin +# $Id$ +# Maintainer: Felix Yan +# Contributor: Bartłomiej Piotrowski +# Contributor: kevin # Contributor: Eric Johnson pkgname=perl-dbd-mysql -_realname=DBD-mysql -pkgver=4.022 +pkgver=4.046 pkgrel=1 -pkgdesc="Perl/CPAN DBD::mysql module for interacting with MySQL via DBD" -arch=('i686' 'x86_64') +pkgdesc='Perl/CPAN DBD::mysql module for interacting with MySQL via DBD' +arch=('x86_64') license=('GPL' 'PerlArtistic') -url="http://search.cpan.org/dist/${_realname}/" -depends=('libmysqlclient' 'perl-dbi') -makedepends=('mysql') +url="http://search.cpan.org/dist/DBD-mysql/" +depends=('libmariadbclient' 'perl-dbi') +makedepends=('perl-devel-checklib') +checkdepends=('mariadb' 'perl-test-deep') options=('!emptydirs') -source=(http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/${_realname}-${pkgver}.tar.gz) +source=(http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-${pkgver}.tar.gz) +sha512sums=('57b3243a724ac21a11b6eea10aa1cfc821f295cb5bf44f9eaabeb979d3f8e1f7f5e00d40b144a16688d0a358c82c2bb00f630e925e176f29a9ca84b8ee7fb9cc') build() { - cd "${srcdir}/${_realname}-${pkgver}" - - # install module in vendor directories. + cd DBD-mysql-$pkgver perl Makefile.PL INSTALLDIRS=vendor --testsocket=/tmp/socket.mysql make } -_check() { - cd "${srcdir}/${_realname}-${pkgver}" +check() { + cd DBD-mysql-$pkgver mkdir -p /tmp/mysql_test mysql_install_db \ --basedir=/usr \ @@ -34,12 +35,18 @@ _check() { --datadir=/tmp/mysql_test & sleep 10 DAEMON_PORT=$! - make test || true + make test kill -9 $DAEMON_PORT } package() { - cd "${srcdir}/${_realname}-${pkgver}" - make install DESTDIR="${pkgdir}" + 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; } -md5sums=('20fb571245e3b9ac275b8329025c4bf6') -- cgit v0.12