aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-db/APKBUILD
blob: ee697c0f7c2381abd9820d8e1860ffbdf48a4a68 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-db
_realname=BerkeleyDB
pkgver=0.54
pkgrel=3
pkgdesc="Perl extension for Berkeley DB version 2, 3 or 4"
url="http://search.cpan.org/dist/BerkeleyDB/"
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/$_realname-$pkgver.tar.gz"

build() {
	cd "$srcdir/$_realname-$pkgver"

	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd "$srcdir/$_realname-$pkgver"
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

md5sums="7efc0aaaf6ca4a2a629eadea24d34fad  BerkeleyDB-0.54.tar.gz"
sha256sums="010e66d0034b93a8397c600da320611149aef7861eaf1f93b95e49ae37b825b8  BerkeleyDB-0.54.tar.gz"
sha512sums="c9529f2682b269db1c5f5c5535b9497b5859530f7fb283003cf3f6990ae311b73221b14202fa9fd6870a0d3f5c66750cb1c4905a5599ba5313e752b5dba3b47c  BerkeleyDB-0.54.tar.gz"