diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-05-30 20:33:28 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-05-30 20:33:28 (GMT) |
commit | c1094fbdd45e06847953f671b416cf58f66f45ad (patch) | |
tree | 67cfe41b6adac385fb4d89400ed5c4d854ed46a6 /abs/core/perl_modules | |
parent | be6be4e7063e9f330c6dbd926043bbec1bfe9121 (diff) | |
download | linhes_pkgbuild-c1094fbdd45e06847953f671b416cf58f66f45ad.zip linhes_pkgbuild-c1094fbdd45e06847953f671b416cf58f66f45ad.tar.gz linhes_pkgbuild-c1094fbdd45e06847953f671b416cf58f66f45ad.tar.bz2 |
perl-dbd-mysql: update to 4.046
Diffstat (limited to 'abs/core/perl_modules')
-rw-r--r-- | abs/core/perl_modules/perl-dbd-mysql/PKGBUILD | 45 |
1 files 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 <kevin@archlinux.org> +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Contributor: kevin <kevin@archlinux.org> # Contributor: Eric Johnson <eric@coding-zone.com> 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') |