aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/perl-dbd-pg/APKBUILD39
1 files changed, 23 insertions, 16 deletions
diff --git a/main/perl-dbd-pg/APKBUILD b/main/perl-dbd-pg/APKBUILD
index b8b8b6d239..1510cf6b7a 100644
--- a/main/perl-dbd-pg/APKBUILD
+++ b/main/perl-dbd-pg/APKBUILD
@@ -1,41 +1,48 @@
-# Automatically generated by apkbuild-cpan, template 1
+# Automatically generated by apkbuild-cpan, template 2
# 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.5.3
-pkgrel=1
+pkgver=3.6.0
+pkgrel=0
pkgdesc="DBI PostgreSQL interface"
url="http://search.cpan.org/dist/DBD-Pg/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl-dbi"
-cpanmakedepends="perl-dbi "
+cpanmakedepends="perl-dbi"
+cpancheckdepends=""
depends="$cpandepends"
-makedepends="perl-dev postgresql-dev $cpanmakedepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/$_pkgreal-$pkgver.tar.gz"
-
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ default_prepare || return 1
+
+ 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
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="21cdf31a8d1f77466920375aa766c164 DBD-Pg-3.5.3.tar.gz"
-sha256sums="7e98a9b975256a4733db1c0e974cad5ad5cb821489323e395ed97bd058e0a90e DBD-Pg-3.5.3.tar.gz"
-sha512sums="7a564e5c86fa41719289f6e391f0cd39f01df7d088892fca11175c60fec8a3af884f9204ae834caac2024ff0d45dcc013e314ec0c09a07fe7ee76170ec3a634f DBD-Pg-3.5.3.tar.gz"
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="3bfdf8de36ee389be6b296d89ef01eaa25ce2149d43651359237c55588e36af1db3488031dfc7b61e1479f1e4e0e63e640fc6e44836c463fab7d698ad574cf94 DBD-Pg-3.6.0.tar.gz"