aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-dbd-pg/APKBUILD
blob: 1cc18e1d455d2f809c6948718af6cb8f670f7858 (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
40
41
# 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.4.2
pkgrel=0
pkgdesc="DBI PostgreSQL interface"
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"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

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

md5sums="e8e92d86e6fd99f702da9a51d9970d87  DBD-Pg-3.4.2.tar.gz"
sha256sums="7b76930cec143b90a068e1e64a3beb6f640c10b22d0a41f9a032516683892f24  DBD-Pg-3.4.2.tar.gz"
sha512sums="290f8e19d6920c1a514305a943ec4f63da14dd321e93a6e9cc4f6fce6737f308a3931135ec9ed0d4577f1ab97358106ca2def7ccb28a7c5c169a80ca5cda1d85  DBD-Pg-3.4.2.tar.gz"