summaryrefslogblamecommitdiff
path: root/user/perl-dbd-pg/APKBUILD
blob: 27099028d5208fae7f8ed7fc0fe63895e0918466 (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.9.1
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="ef322012d25c46784ef9e25eb332f2fe57c6bc2102a7e7cf2f423ae6d77ec78d338e91f08734a932f46a0bc028e358a6cf84b6b41b5f9723905b240db24582f0  DBD-Pg-3.9.1.tar.gz
f7032e7e63eb403778e3f42e1b7f7d472695175d3d8c30bc10062ffee6275b8f46635ea2a82ca2cc5c9de48f7bfa64cdfce56ce58846302bb32db0e4657dcee7  fix-tests.patch
3ff842f949e4c1805eb3c86ea8f52b12adbe65b966137c33e6b29eb1565f9983808fffacac8bda160be3bdfce0dd1cdbc79903bad0443335b48bf456dd7adb6c  ppc32.patch"