summaryrefslogtreecommitdiff
path: root/system/perl-dbi/APKBUILD
blob: fb928fa0ab3162e9249ad2fb32964690e78695b5 (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
36
37
38
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-dbi
_pkgreal=DBI
_author=TIMB
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.643
pkgrel=1
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="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz
	CVE-2014-10402.patch
	"
builddir="$srcdir/$_pkgreal-$pkgver"

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
}

sha512sums="03812f3eb1e43c8290dadb8cb14bbced9ec6e237228ea2a2ba91f22e52143906a91a7e82945dab30b1d1b9fc925073721111adafd9a09fac070808ab88f908b8  DBI-1.643.tar.gz
03abd86921c98a1d0b5fbe67af4e7b613832f7a29be544f1399b8a4ce93574e80313feba42a5ba650c42507670b1d528bb03e05c12520e369975e8e1a2292cc8  CVE-2014-10402.patch"