[arch-commits] Commit in perl-dbd-mariadb/repos (extra-x86_64 extra-x86_64/PKGBUILD)
Christian Hesse
eworm at archlinux.org
Wed Oct 7 06:56:58 UTC 2020
Date: Wednesday, October 7, 2020 @ 06:56:58
Author: eworm
Revision: 397461
archrelease: copy trunk to extra-x86_64
Added:
perl-dbd-mariadb/repos/extra-x86_64/
perl-dbd-mariadb/repos/extra-x86_64/PKGBUILD
(from rev 397460, perl-dbd-mariadb/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: perl-dbd-mariadb/repos/extra-x86_64/PKGBUILD (from rev 397460, perl-dbd-mariadb/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2020-10-07 06:56:58 UTC (rev 397461)
@@ -0,0 +1,43 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname=perl-dbd-mariadb
+pkgver=1.21
+pkgrel=1
+pkgdesc='MariaDB and MySQL driver for the Perl5 Database Interface (DBI)'
+arch=('x86_64')
+license=('GPL' 'PerlArtistic')
+url='https://metacpan.org/release/DBD-MariaDB'
+depends=('mariadb-libs' 'perl-dbi')
+makedepends=('perl-devel-checklib')
+checkdepends=('mariadb' 'perl-test-deep')
+source=("https://cpan.metacpan.org/authors/id/P/PA/PALI/DBD-MariaDB-${pkgver}.tar.gz")
+sha512sums=('0378b33e9cd31ced6f2331967c7ea63a233340bb4a60ef2bbece4843b3a62624875aa1a5e61a9fa1b709ecc8d67810c6fa4fb9ccc01df341e6d94325078f360a')
+
+build() {
+ cd DBD-MariaDB-${pkgver}
+
+ perl Makefile.PL INSTALLDIRS=vendor --testsocket=/tmp/socket.mysql
+ make
+}
+
+check() {
+ cd DBD-MariaDB-${pkgver}
+
+ mkdir -p /tmp/mysql_test
+ mariadb-install-db \
+ --basedir=/usr \
+ --datadir=/tmp/mysql_test
+ mariadbd -P 17999 \
+ --socket=/tmp/socket.mysql \
+ --datadir=/tmp/mysql_test &
+ sleep 10
+ DAEMON_PORT=$!
+ make test
+ kill -9 $DAEMON_PORT
+}
+
+package() {
+ cd DBD-MariaDB-${pkgver}
+
+ make install DESTDIR="${pkgdir}"
+}
More information about the arch-commits
mailing list