From 85f30a4028dc1eaca9602c64900cd7218a0d527a Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Tue, 23 Jul 2019 12:10:42 +0000 Subject: main/perl-db: upgrade to 0.63 Modernize APKBUILD, add check() --- main/perl-db/APKBUILD | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'main/perl-db') diff --git a/main/perl-db/APKBUILD b/main/perl-db/APKBUILD index 39b5e797f6..ae659e29cf 100644 --- a/main/perl-db/APKBUILD +++ b/main/perl-db/APKBUILD @@ -1,31 +1,36 @@ # Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-db -_realname=BerkeleyDB -pkgver=0.61 -pkgrel=1 +_pkgname=BerkeleyDB +pkgver=0.63 +pkgrel=0 pkgdesc="Perl extension for Berkeley DB version 2, 3 or 4" url="http://search.cpan.org/dist/BerkeleyDB/" arch="all" -license="GPL PerlArtistic" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev db-dev" -install= subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/$_realname-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" -build() { - cd "$srcdir/$_realname-$pkgver" +prepare() { + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 +check() { + make test +} + +build() { + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make } package() { - cd "$srcdir/$_realname-$pkgver" make DESTDIR="$pkgdir" install - # creates file collision among perl modules - find "$pkgdir" -name perllocal.pod -delete + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -sha512sums="b2ca317472901e92b452f943e618dd17c1dceb196515ad42830f4119872355a953bd96586b7839a16f99cc38b0c441617429bacdcf39f3deef7252cb61ca9929 BerkeleyDB-0.61.tar.gz" +sha512sums="43edf4eb3650e7b03dfc45ead834ea766d458cf3bc9b6405646142ad0ab223bdb3267815be5a92ddbf3958e5507d39f193d749d9ff6fe83a3beb9e02e8f6c66b BerkeleyDB-0.63.tar.gz" -- cgit v1.2.3