aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-dbd-pg/APKBUILD
blob: 90279ab75bdc597ac6eb7e5bb02137c0a3320e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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=3.0.0
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="58c2613bcb241279aca4c111ba16db48  DBD-Pg-3.0.0.tar.gz"
sha256sums="c841f4e7ab294a6f78888240158bebff85dadc7f8622348220d4e1de2f6c4183  DBD-Pg-3.0.0.tar.gz"
sha512sums="38118c9b34f841d868e5ab776e5b91e5e1db34bfc4d0b66d3954ad1a9472838e0f44295fd5e870607730880a669e638ced0bcf9f7cb4b4d0f43680c898200cb2  DBD-Pg-3.0.0.tar.gz"