diff options
author | Timothy Legge <timlegge@gmail.com> | 2019-03-23 13:32:11 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-03-25 21:25:48 +0000 |
commit | 3eeaf30b64eb33e0ff990d01d3c16942704495ad (patch) | |
tree | adbe0660e40284e20027f9a18f3f08fc051de82e /testing/perl-berkeleydb | |
parent | 9a5387aca8869e13adc5c84b2663d7afc1ce5b42 (diff) | |
download | aports-3eeaf30b64eb33e0ff990d01d3c16942704495ad.tar.bz2 aports-3eeaf30b64eb33e0ff990d01d3c16942704495ad.tar.xz |
perl-berkeleydb new aport
Diffstat (limited to 'testing/perl-berkeleydb')
-rw-r--r-- | testing/perl-berkeleydb/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/perl-berkeleydb/APKBUILD b/testing/perl-berkeleydb/APKBUILD new file mode 100644 index 0000000000..85bec3cc6c --- /dev/null +++ b/testing/perl-berkeleydb/APKBUILD @@ -0,0 +1,36 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timothy Legge <timlegge@gmail.com> +# Maintainer: Timothy Legge <timlegge@gmail.com> +pkgname=perl-berkeleydb +_pkgreal=BerkeleyDB +pkgver=0.55 +pkgrel=0 +pkgdesc="Perl extension for Berkeley DB version 2, 3, 4 or 5" +url="https://metacpan.org/release/BerkeleyDB/" +arch="all" +license="GPL PerlArtistic" +makedepends="perl-dev db-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/P/PM/PMQS/BerkeleyDB-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="a9bee92b0168918eaf6fb38b7b66005cfbb360ce89a9ae9feeb022e3d27fa7e627412b5c19233840571ed60568729d4bd83d279f84a0c7db921b8eed9f73afea BerkeleyDB-0.55.tar.gz" |