aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-10-25 14:58:52 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-10-25 15:03:19 +0000
commit9f6224331043d4d6eebb9e282b9e874d8f5ca507 (patch)
treea45a815183b7cf47d9f7a64f5d27c72221bd7907 /main
parent3d9e0f29770e01469454a6d3aa79dde7d7bcc662 (diff)
downloadaports-9f6224331043d4d6eebb9e282b9e874d8f5ca507.tar.bz2
aports-9f6224331043d4d6eebb9e282b9e874d8f5ca507.tar.xz
main/perl-dbi: upgrade to 1.637
Add check(), modernize APKBUILD
Diffstat (limited to 'main')
-rw-r--r--main/perl-dbi/APKBUILD26
1 files changed, 12 insertions, 14 deletions
diff --git a/main/perl-dbi/APKBUILD b/main/perl-dbi/APKBUILD
index 274b5cabc8..d4384cfddc 100644
--- a/main/perl-dbi/APKBUILD
+++ b/main/perl-dbi/APKBUILD
@@ -2,8 +2,8 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-dbi
_realpkgname=DBI
-pkgver=1.636
-pkgrel=1
+pkgver=1.637
+pkgrel=0
pkgdesc="Database independent interface for Perl"
url="http://search.cpan.org/dist/${_realpkgname}"
arch="all"
@@ -12,26 +12,24 @@ depends=
makedepends="perl perl-dev"
subpackages="$pkgname-doc"
source="http://www.cpan.org/authors/id/T/TI/TIMB/${_realpkgname}-$pkgver.tar.gz"
+builddir="$srcdir"/${_realpkgname}-$pkgver
-_builddir="$srcdir"/${_realpkgname}-$pkgver
-
-prepare() {
- return 0
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
}
-build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+check () {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
# creates file collision among perl modules
find "$pkgdir" -name perllocal.pod -delete
}
-md5sums="60f291e5f015550dde71d1858dfe93ba DBI-1.636.tar.gz"
-sha256sums="8f7ddce97c04b4b7a000e65e5d05f679c964d62c8b02c94c1a7d815bb2dd676c DBI-1.636.tar.gz"
-sha512sums="8d541ada1fabb7e82dd4f47c43edf79cc70c783ef3582a9911b13239734876aee9f27095f2526e6923d07b7ac86df48ee081af1ca6000df0559a13c75b6f6ed3 DBI-1.636.tar.gz"
+sha512sums="48002d77d40c40f0514d464a83f78255dc1a4c5ebb721fc18bcffa06d5f19ad7aec51084d5d8a032e37c6867b5f63176a9b11b5bdf08426f903b841139698240 DBI-1.637.tar.gz"