From db0a4daf6e611a78ae8fc0e9e361985a3631ee9c Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Tue, 31 Oct 2017 23:18:28 +0100 Subject: testing/check_postgres: modernize abuild --- testing/check_postgres/APKBUILD | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/testing/check_postgres/APKBUILD b/testing/check_postgres/APKBUILD index ebc5063de2..16177bc171 100644 --- a/testing/check_postgres/APKBUILD +++ b/testing/check_postgres/APKBUILD @@ -1,5 +1,6 @@ # Contributor: G.J.R. Timmer # Maintainer: G.J.R. Timmer +# TODO: run tests! pkgname=check_postgres pkgver=2.22.0 pkgrel=0 @@ -10,30 +11,28 @@ license="BSD" depends="postgresql perl" makedepends="perl-dev" subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/bucardo/check_postgres/archive/${pkgver}.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/bucardo/$pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" + perl Makefile.PL \ INSTALL_BASE=/usr \ INSTALLMAN1DIR=/usr/share/man \ INSTALLSITEMAN1DIR=/usr/share/man \ INSTALLMAN3DIR=/usr/share/man \ - INSTALLSITEMAN3DIR=/usr/share/man \ - || return 1 - make || return 1 + INSTALLSITEMAN3DIR=/usr/share/man + make } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install # Fix file extension because MakeMaker cannot do this mv "$pkgdir"/usr/bin/check_postgres.pl "$pkgdir"/usr/bin/check_postgres } -md5sums="40c1636e73b08908fc4a36a8e70d8543 check_postgres-2.22.0.tar.gz" -sha256sums="a70004a397ac9561e096974b43ba1dfda09d04af16ae7285d10d20bc4f80f0bf check_postgres-2.22.0.tar.gz" sha512sums="d49b11df2c64c052ba67adabdcd12d0fff1a9aacd443efa8a884104678e84abf62fa89cfe0546fcd37313abdddb28d3123c556b1ceecd90f8dd50e16dec3c62c check_postgres-2.22.0.tar.gz" -- cgit v1.2.3