Commit e1d2b1f1 authored by Leonardo Arena's avatar Leonardo Arena

main/perl-dbd-mysql: update APKBUILD

parent d186e1f7
......@@ -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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment