diff options
author | root <root@rshg047.dnsready.net> | 2011-06-29 23:10:39 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-06-29 23:10:39 +0000 |
commit | 5e8a6a470237711ad18f12dde87deea6f2b8b0e0 (patch) | |
tree | 438c05155823f16b71f4277fef949610bf6fe826 /extra/perl-dbd-mysql | |
parent | 108636e69eaeef67f4e7263c7f26105e25979e89 (diff) |
Wed Jun 29 23:10:38 UTC 2011
Diffstat (limited to 'extra/perl-dbd-mysql')
-rw-r--r-- | extra/perl-dbd-mysql/PKGBUILD | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/extra/perl-dbd-mysql/PKGBUILD b/extra/perl-dbd-mysql/PKGBUILD index ed01cefd8..42d22d211 100644 --- a/extra/perl-dbd-mysql/PKGBUILD +++ b/extra/perl-dbd-mysql/PKGBUILD @@ -1,29 +1,44 @@ -# $Id: PKGBUILD 115053 2011-03-16 15:26:25Z andrea $ +# $Id: PKGBUILD 125309 2011-05-25 19:54:00Z remy $ # Maintainer: kevin <kevin@archlinux.org> # Contributor: Eric Johnson <eric@coding-zone.com> pkgname=perl-dbd-mysql _realname=DBD-mysql -pkgver=4.018 -pkgrel=2 +pkgver=4.019 +pkgrel=1 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.10.0') +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=('d1d4ee2f20910d6491d1b6216471b2f1') +md5sums=('566d98ab8ffac9626a31f6f6d455558e') build() { cd ${srcdir}/${_realname}-${pkgver} # install module in vendor directories. - perl Makefile.PL INSTALLDIRS=vendor + 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} |