1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: kevin <kevin@archlinux.org>
4 # Contributor: Eric Johnson <eric@coding-zone.com>
9 pkgdesc='Perl/CPAN DBD::mysql module for interacting with MySQL via DBD'
11 license=('GPL' 'PerlArtistic')
12 url="http://search.cpan.org/dist/DBD-mysql/"
13 depends=('mariadb-libs' 'perl-dbi')
14 makedepends=('perl-devel-checklib')
15 checkdepends=('mariadb' 'perl-test-deep')
16 options=('!emptydirs')
17 source=(https://search.cpan.org/CPAN/authors/id/D/DV/DVEEDEN/DBD-mysql-${pkgver}.tar.gz
18 mariadb-10.3.13-zerofill.patch)
19 sha512sums=('910f5b4ba7a7890d50a79f37d04ec8971a4f62acd0fe30bf3ab634f66e3128f0cd6513e5c9da8c807a0f4477d0cc766682ea8dd0d8072d02821b78df51f37879'
20 '090039d383d05958c5d0cf23f13b8062ba89158583ca6dad9ce7c72b28bc3eccc039d4f815aef13592ea35a57662c80156b25aaa04ace171d64a15f5ac489a09')
25 # https://github.com/perl5-dbi/DBD-mysql/issues/304
26 patch -Np1 -i ../mariadb-10.3.13-zerofill.patch
31 perl Makefile.PL INSTALLDIRS=vendor --testsocket=/tmp/socket.mysql
37 mkdir -p /tmp/mysql_test
40 --datadir=/tmp/mysql_test
42 --socket=/tmp/socket.mysql \
43 --datadir=/tmp/mysql_test &
52 make install DESTDIR="$pkgdir"