APKBUILD 988 Bytes
Newer Older
1
2
3
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-dbi
Síle Ekaterin Aman's avatar
Síle Ekaterin Aman committed
4
5
6
7
_pkgreal=DBI
_author=TIMB
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
8
pkgver=1.642
9
10
pkgrel=0
pkgdesc="Database independent interface for Perl"
A. Wilcox's avatar
A. Wilcox committed
11
url="https://metacpan.org/release/DBI"
12
13
arch="all"
license="GPL-2.0-only OR Artistic-1.0-Perl"
Síle Ekaterin Aman's avatar
Síle Ekaterin Aman committed
14
15
depends="perl"
makedepends="perl-dev"
16
subpackages="$pkgname-doc"
Síle Ekaterin Aman's avatar
Síle Ekaterin Aman committed
17
18
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check () {
	make test
}

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

35
sha512sums="088161a004893a495b740c323acdfe096936812f8f1b12c0ae4b5b23a6dced01761be5589be5e2e66661bdeffd043504097213e713c0258fe1db2a60156ea079  DBI-1.642.tar.gz"