[arch-commits] Commit in perl-dbd-mysql/repos (3 files)

Florian Pritz bluewind at archlinux.org
Sun May 27 07:43:05 UTC 2012


    Date: Sunday, May 27, 2012 @ 03:43:04
  Author: bluewind
Revision: 159877

db-move: moved perl-dbd-mysql from [staging] to [testing] (x86_64)

Added:
  perl-dbd-mysql/repos/testing-x86_64/
  perl-dbd-mysql/repos/testing-x86_64/PKGBUILD
    (from rev 159819, perl-dbd-mysql/repos/staging-x86_64/PKGBUILD)
Deleted:
  perl-dbd-mysql/repos/staging-x86_64/

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: perl-dbd-mysql/repos/testing-x86_64/PKGBUILD (from rev 159819, perl-dbd-mysql/repos/staging-x86_64/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-05-27 07:43:04 UTC (rev 159877)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: kevin <kevin at archlinux.org>
+# Contributor: Eric Johnson <eric at coding-zone.com>
+
+pkgname=perl-dbd-mysql
+_realname=DBD-mysql
+pkgver=4.020
+pkgrel=3
+pkgdesc="Perl/CPAN DBD::mysql module for interacting with MySQL via DBD"
+arch=(i686 x86_64)
+license=('GPL' 'PerlArtistic')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('libmysqlclient' 'perl-dbi' 'perl>=5.14.0')
+makedepends=('mysql')
+options=(!emptydirs)
+source=(http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/${_realname}-${pkgver}.tar.gz)
+md5sums=('a2bf8808bbd45298e84dde06afbd58e9')
+
+build() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+
+  # install module in vendor directories.
+  perl Makefile.PL INSTALLDIRS=vendor --testsocket=/tmp/socket.mysql
+  make
+}
+
+check() {
+  cd "${srcdir}/${_realname}-${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 || true
+  kill -9 $DAEMON_PORT
+}
+
+package() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  make install DESTDIR="${pkgdir}"
+}




More information about the arch-commits mailing list