PKGBUILDs/extra/perl-dbd-sqlite/PKGBUILD
2009-10-09 21:23:22 -05:00

27 lines
884 B
Bash

# Maintainer: Tom Killian <tomk@runbox.com>
# Contributor: Generated by the CPANPLUS::Dist::Pacman plugin
pkgname=perl-dbd-sqlite
_realname=DBD-SQLite
pkgver=1.25
pkgrel=1
pkgdesc="Self contained RDBMS in a DBI driver"
arch=('i686' 'x86_64')
license=('PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl-dbi' 'sqlite3' 'perl>=5.10.0')
options=(!emptydirs)
source=(http://www.cpan.org/authors/id/A/AD/ADAMK/${_realname}-$pkgver.tar.gz)
md5sums=('3bc9c8f141cb6c9256ea6dbcddbb9fe7')
build() {
cd $startdir/src/${_realname}-$pkgver
# install module in vendor directories.
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
make install DESTDIR=${startdir}/pkg || return 1
# remove perllocal.pod and .packlist
find ${startdir}/pkg -name perllocal.pod -delete
find ${startdir}/pkg -name .packlist -delete
}