blob: ef6e9165431fb561849d8c941d1377b35340fad9 (
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
37
38
39
40
41
42
43
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-db_file
_pkgname=DB_File
pkgver=1.842
pkgrel=0
pkgdesc="Perl5 access to Berkeley DB"
url="http://search.cpan.org/~pmqs/DB_File-1.820/"
arch="all"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev db-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
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="038eca153b49deaf7336699509ea48ec77f783655394e040ac93c5898c1a656f0cc2ff9799c279a20633df37ce2d2b9f251cdd8daccdaa7913b8f59defe0fea6 DB_File-1.842.tar.gz"
|