1 # Maintainer: Christian Hesse <mail@eworm.de>
3 pkgname=perl-dbd-mariadb
6 pkgdesc='MariaDB and MySQL driver for the Perl5 Database Interface (DBI)'
8 license=('GPL' 'PerlArtistic')
9 url='https://metacpan.org/release/DBD-MariaDB'
10 depends=('mariadb-libs' 'perl-dbi')
11 makedepends=('perl-devel-checklib')
12 checkdepends=('mariadb' 'perl-test-deep')
13 source=("https://cpan.metacpan.org/authors/id/P/PA/PALI/DBD-MariaDB-${pkgver}.tar.gz")
14 sha512sums=('0378b33e9cd31ced6f2331967c7ea63a233340bb4a60ef2bbece4843b3a62624875aa1a5e61a9fa1b709ecc8d67810c6fa4fb9ccc01df341e6d94325078f360a')
17 cd DBD-MariaDB-${pkgver}
19 perl Makefile.PL INSTALLDIRS=vendor --testsocket=/tmp/socket.mysql
24 cd DBD-MariaDB-${pkgver}
26 mkdir -p /tmp/mysql_test
29 --datadir=/tmp/mysql_test
31 --socket=/tmp/socket.mysql \
32 --datadir=/tmp/mysql_test &
40 cd DBD-MariaDB-${pkgver}
42 make install DESTDIR="${pkgdir}"