PKGBUILDs/community/perl-dbd-pg/PKGBUILD
2009-10-09 21:15:33 -05:00

23 lines
697 B
Bash

# Contributor: François Charette <firmicus ατ gmx δοτ net>
pkgname=perl-dbd-pg
pkgver=2.15.1
pkgrel=1
pkgdesc="Postgres Driver for DBI"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/DBD-Pg"
license=('GPL' 'PerlArtistic')
depends=('perl-dbi>=1.52')
makedepends=('postgresql-libs')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-$pkgver.tar.gz)
md5sums=('b1c5488a68fa61cc3694b0cd4e413e25')
build() {
cd $srcdir/DBD-Pg-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
make install DESTDIR=$pkgdir || return 1
find $pkgdir -name '.packlist' -delete
find $pkgdir -name '*.pod' -delete
}