summaryrefslogblamecommitdiff
path: root/user/perl-dbd-pg/APKBUILD
blob: 770a052a2561c4c37c532cfc984a00f4eedc2ece (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                   
             



                                           
                                                              


                                           
                                    
                          

                                                                                
                   
         


                                 




                                                                 



                 



                                                                           
                                                                                                                                                                  

                                                                                                                                                 
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-dbd-pg
pkgver=3.10.0
pkgrel=0
pkgdesc="PostgreSQL interface for Perl DBI"
url="https://metacpan.org/release/DBD-Pg"
arch="all"
options="!check"  # https://github.com/bucardo/dbdpg/issues/56
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl-dbi"
makedepends="perl-dev postgresql-dev"
checkdepends="cmd:locale postgresql"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-$pkgver.tar.gz
	fix-tests.patch
	ppc32.patch
	"
builddir="$srcdir/DBD-Pg-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="46c985bbdeeed4ef60d6fe06034fa0959df288f2b9bbd434e2716676a3cb7a1ded168a3cf87a6a82eb397eb8edcc023c0b85483e948ce31abcac64a1919580ba  DBD-Pg-3.10.0.tar.gz
f7032e7e63eb403778e3f42e1b7f7d472695175d3d8c30bc10062ffee6275b8f46635ea2a82ca2cc5c9de48f7bfa64cdfce56ce58846302bb32db0e4657dcee7  fix-tests.patch
3ff842f949e4c1805eb3c86ea8f52b12adbe65b966137c33e6b29eb1565f9983808fffacac8bda160be3bdfce0dd1cdbc79903bad0443335b48bf456dd7adb6c  ppc32.patch"