summaryrefslogtreecommitdiff
path: root/system/perl-dbi/APKBUILD
blob: 007506a47398146a282c593619d75cbbe7cd596b (plain) (blame)
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
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-dbi
_realpkgname=DBI
pkgver=1.641
pkgrel=0
pkgdesc="Database independent interface for Perl"
url="https://metacpan.org/release/DBI"
arch="all"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends=
makedepends="perl perl-dev"
subpackages="$pkgname-doc"
source="http://www.cpan.org/authors/id/T/TI/TIMB/${_realpkgname}-$pkgver.tar.gz"
builddir="$srcdir"/${_realpkgname}-$pkgver

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check () {
	cd "$builddir"
	make test
}

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

sha512sums="093eb28526e8290c0599437cd624b3e670cfff0ec149c1e8ad942f9f7facdafd2a8225bbf4efdb0d40ecf5a6088093ff9faec826cd4ec88bd0abd6125812137a  DBI-1.641.tar.gz"