aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-dbd-sqlite/APKBUILD
blob: 571fa79b0fdd6c9bdda54a21c79473ae528f9c8b (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
37
38
39
40
41
42
43
44
45
46
47
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-dbd-sqlite
_realpkgname=DBD-SQLite
pkgver=1.46
pkgrel=0
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 sqlite-dev"
source="http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/${_realpkgname}-$pkgver.tar.gz
	perl-DBD-SQLite-bz543982.patch
	"
subpackages="$pkgname-dev"

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

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	CC="${CC:-gcc}" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make OPTIMIZE="$CFLAGS" || return 1
}

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

md5sums="9c27d4b6c1b76caa54e7504649594ad7  DBD-SQLite-1.46.tar.gz
1e4c06fb631f6357f21d0acb5e3027bc  perl-DBD-SQLite-bz543982.patch"
sha256sums="b2b179136cd7c0df7b0e4840ff3f46330f161e5fc646279748afa7a3144f7cc0  DBD-SQLite-1.46.tar.gz
e0491021edd7234276d222f79be6be9987cde463707efdd0b4dfa857b3721568  perl-DBD-SQLite-bz543982.patch"
sha512sums="1fbec00d99de9766450003716c8ef6eccdd08b3bc4523180d3fe1046404e3cdcdc3b893146cabf695dfb98bc3484018436412d47c134ce4a89c5348f0edc6012  DBD-SQLite-1.46.tar.gz
00961932f9f89d9b46e6134150c2628aadd4cfa7159cb1604de023fedc919087fbf982b72fd51610e1ca390234cd939e74430b270131d0b30cedb97ba6203b49  perl-DBD-SQLite-bz543982.patch"