aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-14 23:25:53 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:44 +0000
commit9e62c347c7516dcf498ced692df6e08966b65223 (patch)
tree9d806279a7d196f5f1df32f137312f342883a834 /main
parent10039e6c0d9acb75f30ea3135fcf581b2f9b2891 (diff)
downloadaports-9e62c347c7516dcf498ced692df6e08966b65223.tar.bz2
aports-9e62c347c7516dcf498ced692df6e08966b65223.tar.xz
main/check: add tests and modernise
Diffstat (limited to 'main')
-rw-r--r--main/check/APKBUILD16
1 files changed, 9 insertions, 7 deletions
diff --git a/main/check/APKBUILD b/main/check/APKBUILD
index abad38a09c..7ca0353070 100644
--- a/main/check/APKBUILD
+++ b/main/check/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=check
pkgver=0.11.0
-pkgrel=0
+pkgrel=1
pkgdesc="A unit test framework for C"
url="https://libcheck.github.io/check/"
arch="all"
@@ -21,16 +21,18 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
-md5sums="9b90522b31f5628c2e0f55dda348e558 check-0.11.0.tar.gz"
-sha256sums="24f7a48aae6b74755bcbe964ce8bc7240f6ced2141f8d9cf480bc3b3de0d5616 check-0.11.0.tar.gz"
sha512sums="69209487b6cae8ad143532d3a965f9d17762a0e09df781792f9307ad8a279ee8fc39be7cb7b8e08f4d88606c449e9a2e33bea2216e31d9eb82e8b778df69cd13 check-0.11.0.tar.gz"