blob: d9aac31c57295ee41215e05ddcc722abf82c3edf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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=1
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"
|