diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/perl-dbd-pg/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
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 <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +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" |