aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-dbd-sqlite/APKBUILD
blob: 541f20e1d3fc36bf9f4ca7af7fbd730dee305865 (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
34
35
36
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-dbd-sqlite
_realpkgname=DBD-SQLite
pkgver=1.40
pkgrel=1
pkgdesc="Perl CPAN DBD::SQLite module"
url="http://search.cpan.org/dist/${_realpkgname}"
arch="all"
license="GPL PerlArtistic"
depends="perl-dbi"
makedepends="perl perl-dev"
source="http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/${_realpkgname}-$pkgver.tar.gz"

_builddir="$srcdir"/${_realpkgname}-$pkgver

prepare() {
	return 0
}

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

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

md5sums="b9876882186499583428b14cf5c0e29c  DBD-SQLite-1.40.tar.gz"
sha256sums="21fb65e740b6265512c82232b4ad8f75c19ac84c216830112656274eb8e375fb  DBD-SQLite-1.40.tar.gz"
sha512sums="4d7af59eca0a168d8ce2d2fafe83f24eb3f4eefa8b621ef92d7fab00edc3a1452247b2e4b3f230f88aa29add74581fb2546a47d440a127a5eee7a67aa2999acc  DBD-SQLite-1.40.tar.gz"