blob: 7264491a23e376909bc690564adadba8d974e946 (
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.42
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 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="86cfaf477cb9ddc39508f74f4268fc79 DBD-SQLite-1.42.tar.gz
1e4c06fb631f6357f21d0acb5e3027bc perl-DBD-SQLite-bz543982.patch"
sha256sums="ab3b653c1ab4dd316f06be40b49ccc612e9670c40b34654353e837c4b464a993 DBD-SQLite-1.42.tar.gz
e0491021edd7234276d222f79be6be9987cde463707efdd0b4dfa857b3721568 perl-DBD-SQLite-bz543982.patch"
sha512sums="a78a7317e6495606af70ce4d64bf3a43f9bb01d2dbb7de8199ccdd929c4b0ddcef0409e95f1c13cf4ca69584a184554fc751b72adba12968e4ddc3687fb44acf DBD-SQLite-1.42.tar.gz
00961932f9f89d9b46e6134150c2628aadd4cfa7159cb1604de023fedc919087fbf982b72fd51610e1ca390234cd939e74430b270131d0b30cedb97ba6203b49 perl-DBD-SQLite-bz543982.patch"
|