diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-07-23 12:10:42 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-07-23 12:13:22 +0000 |
commit | 85f30a4028dc1eaca9602c64900cd7218a0d527a (patch) | |
tree | 2cc1a77fae153d35c9e9874253963181c33ae188 /main/perl-db | |
parent | 906d2b900cc88929d0fb42cf968ac88075cbe830 (diff) | |
download | aports-85f30a4028dc1eaca9602c64900cd7218a0d527a.tar.bz2 aports-85f30a4028dc1eaca9602c64900cd7218a0d527a.tar.xz |
main/perl-db: upgrade to 0.63
Modernize APKBUILD, add check()
Diffstat (limited to 'main/perl-db')
-rw-r--r-- | main/perl-db/APKBUILD | 33 |
1 files changed, 19 insertions, 14 deletions
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 <rnalrd@alpinelinux.org> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> 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" |