updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / perl-apache-dbi / PKGBUILD
blob413e5de3e4f597bc91316cfb57f4effcbebf845d
1 # Contributor: Elis Hughes <elishughes@googlemail.com>
2 pkgname=perl-apache-dbi
3 pkgver=1.07
4 pkgrel=1
5 pkgdesc="Apache::DBI - Initiate a persistent database connection"
6 arch=('i686' 'x86_64')
7 url="http://search.cpan.org/~pgollucci/Apache-DBI/"
8 license=("GPL")
9 depends=('perl-dbi')
10 options=('!emptydirs')
11 source=("http://search.cpan.org/CPAN/authors/id/P/PG/PGOLLUCCI/Apache-DBI-$pkgver.tar.gz")
12 md5sums=('a8161e5c1083afa0ecb6ac94491481e0')
14 build() {
15   cd $startdir/src/Apache-DBI-$pkgver
16   eval `perl -V:archname`
17   /usr/bin/perl Makefile.PL \
18       INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
19       INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
20       INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
21   /usr/bin/make || return 1
22   /usr/bin/make DESTDIR=$startdir/pkg install
23   /usr/bin/find $startdir/pkg -name '.packlist' -delete
24   /usr/bin/find $startdir/pkg -name '*.pod' -delete