diff options
Diffstat (limited to 'main/perl-dbd-pg/APKBUILD')
-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" |