[arch-commits] Commit in perl-dbd-mysql/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Florian Pritz
bluewind at archlinux.org
Wed Aug 1 09:47:11 UTC 2018
Date: Wednesday, August 1, 2018 @ 09:47:10
Author: bluewind
Revision: 330129
archrelease: copy trunk to staging-x86_64
Added:
perl-dbd-mysql/repos/staging-x86_64/
perl-dbd-mysql/repos/staging-x86_64/PKGBUILD
(from rev 330128, perl-dbd-mysql/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: perl-dbd-mysql/repos/staging-x86_64/PKGBUILD (from rev 330128, perl-dbd-mysql/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-08-01 09:47:10 UTC (rev 330129)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: kevin <kevin at archlinux.org>
+# Contributor: Eric Johnson <eric at coding-zone.com>
+
+pkgname=perl-dbd-mysql
+pkgver=4.046
+pkgrel=2
+pkgdesc='Perl/CPAN DBD::mysql module for interacting with MySQL via DBD'
+arch=('x86_64')
+license=('GPL' 'PerlArtistic')
+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/DBD-mysql-${pkgver}.tar.gz)
+sha512sums=('57b3243a724ac21a11b6eea10aa1cfc821f295cb5bf44f9eaabeb979d3f8e1f7f5e00d40b144a16688d0a358c82c2bb00f630e925e176f29a9ca84b8ee7fb9cc')
+
+build() {
+ cd DBD-mysql-$pkgver
+ perl Makefile.PL INSTALLDIRS=vendor --testsocket=/tmp/socket.mysql
+ make
+}
+
+check() {
+ cd DBD-mysql-$pkgver
+ mkdir -p /tmp/mysql_test
+ mysql_install_db \
+ --basedir=/usr \
+ --datadir=/tmp/mysql_test
+ mysqld -P 17999 \
+ --socket=/tmp/socket.mysql \
+ --datadir=/tmp/mysql_test &
+ sleep 10
+ DAEMON_PORT=$!
+ make test
+ kill -9 $DAEMON_PORT
+}
+
+package() {
+ cd DBD-mysql-$pkgver
+ make install DESTDIR="$pkgdir"
+}
More information about the arch-commits
mailing list