aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-db_file/APKBUILD
blob: 36ee81c79248ed2d09da7691e49bfdd575fbb2d1 (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.838
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/$_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="1b489d4c85784135df72836d491a2217  DB_File-1.838.tar.gz"
sha256sums="097ab1fd5996c439a2980d950677b7070f835789cf1fd8ba796936947f69e57a  DB_File-1.838.tar.gz"
sha512sums="1e74d4472649a43b9bda821d39cdae372b34e8ab3b0d21c8a70087f8ada4b4ae2425683d72003854802b6afdba3acce1ea0a5065c07acb9fa45458f6aa6f0aa9  DB_File-1.838.tar.gz"