From 7acffc1bd7724bc0e22baa5d6ed0af1c1a4b1dc8 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 18 Nov 2018 03:07:32 +0000 Subject: user/perl-dbd-pg: new package --- user/perl-dbd-pg/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/perl-dbd-pg/APKBUILD (limited to 'user/perl-dbd-pg/APKBUILD') diff --git a/user/perl-dbd-pg/APKBUILD b/user/perl-dbd-pg/APKBUILD new file mode 100644 index 000000000..bf7d3b2a2 --- /dev/null +++ b/user/perl-dbd-pg/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: A. Wilcox +# Maintainer: Adélie Perl Team +pkgname=perl-dbd-pg +_pkgname=DBD-Pg +pkgver=3.7.4 +pkgrel=0 +pkgdesc="PostgreSQL interface for Perl DBI" +url="https://metacpan.org/release/DBD-Pg" +arch="all" +license="Artistic-1.0-Perl OR GPL-2.0-only" +depends="perl-dbi" +makedepends="perl-dev postgresql-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-$pkgver.tar.gz" +builddir="$srcdir/DBD-Pg-$pkgver" + +build() { + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="77c629ce89233345f7893b0cc2799a5efc646e86b62ee91986678f196380ac772ece7b9f6c98dae588fbf8f29def1f997335fa85874562ab648af8665cd9add8 DBD-Pg-3.7.4.tar.gz" -- cgit v1.2.3-70-g09d2