diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-02-08 09:08:39 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-02-08 09:08:39 +0000 |
commit | cd20482e0254bd3000c50fb1a0fb5ea193e85c41 (patch) | |
tree | 7f46b573fadc95ebbb96851b87b292fae55894a1 /main/perl-dbd-mysql | |
parent | 3bb6858aff988546af833aadbf73ab5abafc394f (diff) | |
download | aports-cd20482e0254bd3000c50fb1a0fb5ea193e85c41.tar.bz2 aports-cd20482e0254bd3000c50fb1a0fb5ea193e85c41.tar.xz |
main/perl-dbd-mysql: upgrade to 4.045
Modernize, add doc subpkg
Diffstat (limited to 'main/perl-dbd-mysql')
-rw-r--r-- | main/perl-dbd-mysql/APKBUILD | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/main/perl-dbd-mysql/APKBUILD b/main/perl-dbd-mysql/APKBUILD index 702eb01578..79e93e018d 100644 --- a/main/perl-dbd-mysql/APKBUILD +++ b/main/perl-dbd-mysql/APKBUILD @@ -2,8 +2,8 @@ # Contributor: Jeff Bilyk <jbilyk at gmail> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=perl-dbd-mysql -_realpkgname=DBD-mysql -pkgver=4.043 +_pkgname=DBD-mysql +pkgver=4.045 pkgrel=0 pkgdesc="Perl CPAN DBD::Mysql module" url="http://search.cpan.org/~capttofu/DBD-mysql/" @@ -11,24 +11,25 @@ arch="all" 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" -options="!check" -builddir="$srcdir"/${_realpkgname}-$pkgver +source="http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-$pkgver.tar.gz" +subpackages="$pkgname-doc" +options="!check" # requires a running dbms +builddir="$srcdir"/${_pkgname}-$pkgver prepare() { - return 0 + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { 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 + make } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" -name perllocal.pod -delete } @@ -38,4 +39,4 @@ check() { make test } -sha512sums="ef845052caabba7060e2e21d81f0791003509ec56741d92ff3a82196b528f81245ce1562539d89bc6e12584769739012325046b5e1c4e56febef108a7d2ae9ba DBD-mysql-4.043.tar.gz" +sha512sums="7f73f6ce37df635bb860c5ab4be09d65db59dc637e9a2eb3b9a35682d9c2032ca848bbf3aa916ac97e065f380101bab4ff63a6132bfb8a5451018a43d88803fd DBD-mysql-4.045.tar.gz" |