OCaml 4.14.0 rebuild
[arch-packages.git] / perl-dbd-mysql / repos / extra-x86_64 / PKGBUILD
blob4216205c091cc7d407a7bbb449c9bb724bd88959
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>
6 pkgname=perl-dbd-mysql
7 pkgver=4.050
8 pkgrel=8
9 pkgdesc='Perl/CPAN DBD::mysql module for interacting with MySQL via DBD'
10 arch=('x86_64')
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')
22 prepare() {
23   cd DBD-mysql-$pkgver
25   # https://github.com/perl5-dbi/DBD-mysql/issues/304
26   patch -Np1 -i ../mariadb-10.3.13-zerofill.patch
29 build() {
30   cd DBD-mysql-$pkgver
31   perl Makefile.PL INSTALLDIRS=vendor --testsocket=/tmp/socket.mysql
32   make
35 check() {
36   cd DBD-mysql-$pkgver
37   mkdir -p /tmp/mysql_test
38   mysql_install_db \
39      --basedir=/usr \
40      --datadir=/tmp/mysql_test
41   mysqld -P 17999 \
42      --socket=/tmp/socket.mysql \
43      --datadir=/tmp/mysql_test &
44   sleep 10
45   DAEMON_PORT=$!
46   make test
47   kill -9 $DAEMON_PORT
50 package() {
51   cd DBD-mysql-$pkgver
52   make install DESTDIR="$pkgdir"