# Contributor: Jeff Bilyk # Maintainer: Leonardo Arena pkgname=perl-dbd-sqlite _realpkgname=DBD-SQLite pkgver=1.50 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 $pkgname-doc" _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="d56eebfb5f2a14be9413b025e7dca9fe DBD-SQLite-1.50.tar.gz 1e4c06fb631f6357f21d0acb5e3027bc perl-DBD-SQLite-bz543982.patch" sha256sums="3ac513ab73944fd7d4b672e1fe885dc522b6369d38f46a68e67e0045bf159ce1 DBD-SQLite-1.50.tar.gz e0491021edd7234276d222f79be6be9987cde463707efdd0b4dfa857b3721568 perl-DBD-SQLite-bz543982.patch" sha512sums="6ef903ef5a08511caf962d255d1245d83398ca0c807d86463eae86d7408b8ec271e9d7176c120cf6843a12d3670114c1856c85bb737acad9ef79e630dd253c82 DBD-SQLite-1.50.tar.gz 00961932f9f89d9b46e6134150c2628aadd4cfa7159cb1604de023fedc919087fbf982b72fd51610e1ca390234cd939e74430b270131d0b30cedb97ba6203b49 perl-DBD-SQLite-bz543982.patch"