Date: Thursday, August 24, 2017 @ 13:50:58 Author: foutrelis Revision: 303462
archrelease: copy trunk to staging-i686, staging-x86_64 Added: perl-dbd-mysql/repos/staging-i686/ perl-dbd-mysql/repos/staging-i686/PKGBUILD (from rev 303461, perl-dbd-mysql/trunk/PKGBUILD) perl-dbd-mysql/repos/staging-x86_64/ perl-dbd-mysql/repos/staging-x86_64/PKGBUILD (from rev 303461, perl-dbd-mysql/trunk/PKGBUILD) -------------------------+ staging-i686/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++ staging-x86_64/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+) Copied: perl-dbd-mysql/repos/staging-i686/PKGBUILD (from rev 303461, perl-dbd-mysql/trunk/PKGBUILD) =================================================================== --- staging-i686/PKGBUILD (rev 0) +++ staging-i686/PKGBUILD 2017-08-24 13:50:58 UTC (rev 303462) @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> +# Contributor: kevin <ke...@archlinux.org> +# Contributor: Eric Johnson <e...@coding-zone.com> + +pkgname=perl-dbd-mysql +pkgver=4.043 +pkgrel=2 +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/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/M/MI/MICHIELB/DBD-mysql-${pkgver}.tar.gz) +sha512sums=('ef845052caabba7060e2e21d81f0791003509ec56741d92ff3a82196b528f81245ce1562539d89bc6e12584769739012325046b5e1c4e56febef108a7d2ae9ba') + +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" +# template start; name=perl-binary-module-dependency; version=1; +if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then + _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);') + _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);') + depends+=("perl>=$_perlver_min" "perl<$_perlver_max") +fi +# template end; +} Copied: perl-dbd-mysql/repos/staging-x86_64/PKGBUILD (from rev 303461, perl-dbd-mysql/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2017-08-24 13:50:58 UTC (rev 303462) @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> +# Contributor: kevin <ke...@archlinux.org> +# Contributor: Eric Johnson <e...@coding-zone.com> + +pkgname=perl-dbd-mysql +pkgver=4.043 +pkgrel=2 +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/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/M/MI/MICHIELB/DBD-mysql-${pkgver}.tar.gz) +sha512sums=('ef845052caabba7060e2e21d81f0791003509ec56741d92ff3a82196b528f81245ce1562539d89bc6e12584769739012325046b5e1c4e56febef108a7d2ae9ba') + +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" +# template start; name=perl-binary-module-dependency; version=1; +if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then + _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);') + _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);') + depends+=("perl>=$_perlver_min" "perl<$_perlver_max") +fi +# template end; +}