aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-db_file/APKBUILD
blob: 4860ed5945fb856c99cfbe4d4a6a67100a9bcdcc (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_file
_realname=DB_File
pkgver=1.840
pkgrel=1
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/$_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="8a2e98d457a216840ac893913c24141e  DB_File-1.840.tar.gz"
sha256sums="b7864707fad0f2d1488c748c4fa08f1fb8bcfd3da247c36909fd42f20bfab2c4  DB_File-1.840.tar.gz"
sha512sums="c9af4382a6759fcf2ad4982d922d5be3bf026927bd103204c9c38666e6a26afc06ee5456a567c396806d0ca3762af146b60c10998b17343a3bfd47bda4ec3fe2  DB_File-1.840.tar.gz"