diff options
author | Jeff Bilyk <jbilyk@gmail.com> | 2011-06-18 21:40:52 +0000 |
---|---|---|
committer | Jeff Bilyk <jbilyk@gmail.com> | 2011-06-18 21:40:52 +0000 |
commit | 027837b40ee4747111e75c5a2ab235fa71bb81d8 (patch) | |
tree | 6bed12b092aaf60bf557031f61e6ed91226140cc /main | |
parent | 4a36373037b9c95ebe1a198b080424e75d3741e1 (diff) | |
download | aports-027837b40ee4747111e75c5a2ab235fa71bb81d8.tar.bz2 aports-027837b40ee4747111e75c5a2ab235fa71bb81d8.tar.xz |
main/perl-dbd-pg: moved from testing
Diffstat (limited to 'main')
-rw-r--r-- | main/perl-dbd-pg/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/main/perl-dbd-pg/APKBUILD b/main/perl-dbd-pg/APKBUILD new file mode 100644 index 0000000000..2b28d96f47 --- /dev/null +++ b/main/perl-dbd-pg/APKBUILD @@ -0,0 +1,37 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-dbd-pg +_pkgreal=DBD-Pg +pkgver=2.18.1 +pkgrel=0 +pkgdesc="PostgreSQL database driver for the DBI module" +url="http://search.cpan.org/dist/DBD-Pg/" +arch="all" +license="GPL PerlArtistic" +cpandepends="perl-dbi" +cpanmakedepends="" +depends="$cpandepends" +makedepends="perl-dev postgresql-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="1f4a837b3d79789ad6854443fce7a901 DBD-Pg-2.18.1.tar.gz" |