diff options
Diffstat (limited to 'main/perl-dbd-mysql/APKBUILD')
-rw-r--r-- | main/perl-dbd-mysql/APKBUILD | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/main/perl-dbd-mysql/APKBUILD b/main/perl-dbd-mysql/APKBUILD index b4e5c305b3..8f6d4c05d6 100644 --- a/main/perl-dbd-mysql/APKBUILD +++ b/main/perl-dbd-mysql/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-dbd-mysql _realpkgname=DBD-mysql pkgver=4.042 -pkgrel=0 +pkgrel=1 pkgdesc="Perl CPAN DBD::Mysql module" url="http://search.cpan.org/~capttofu/DBD-mysql/" arch="all" @@ -12,23 +12,30 @@ license="GPL PerlArtistic" depends="perl perl-dbi" makedepends="perl perl-dev mariadb-dev zlib-dev perl-devel-checklib" source="http://search.cpan.org/CPAN/authors/id/M/MI/MICHIELB/DBD-mysql-$pkgver.tar.gz" - -_builddir="$srcdir"/${_realpkgname}-$pkgver +options="!check" +builddir="$srcdir"/${_realpkgname}-$pkgver prepare() { return 0 } build() { - cd "$_builddir" + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 make || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" -name perllocal.pod -delete } +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + sha512sums="fe3c9e1e325f7056da783e0ea33f9a7810f25f3d9cd2c9a4bf4037b20a2148f2291b2f90d44730e63c7902b45e26993a7f9fcf1b3bf8d1bc5d3fca99893a019e DBD-mysql-4.042.tar.gz" |