aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-21 15:49:06 -0500
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:53 +0000
commit1218ad207e757e2c5019886c1af1ae2c1fcb2d21 (patch)
treee4e28256400e05e44e76d064167b2a0ae938abfa
parent85af419901c5c602ed4dcb7807fb074e5c851d00 (diff)
downloadaports-1218ad207e757e2c5019886c1af1ae2c1fcb2d21.tar.gz
aports-1218ad207e757e2c5019886c1af1ae2c1fcb2d21.tar.bz2
aports-1218ad207e757e2c5019886c1af1ae2c1fcb2d21.tar.xz
main/which: add test suite, modernise
-rw-r--r--main/which/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/main/which/APKBUILD b/main/which/APKBUILD
index 1f40f5ad0e..a9decf9288 100644
--- a/main/which/APKBUILD
+++ b/main/which/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=which
pkgver=2.21
-pkgrel=0
+pkgrel=1
pkgdesc="A utility to show the full path of commands"
url="http://savannah.gnu.org/projects/which"
arch="all"
@@ -20,14 +20,18 @@ build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
- --prefix=/usr \
- || return 1
- make || return 1
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
md5sums="097ff1a324ae02e0a3b0369f07a7544a which-2.21.tar.gz"