From bd9191eae4fb99e6c3ca4c7752286668d2fc46e7 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 9 Feb 2018 18:47:43 -0600 Subject: main/json-c: add test suite, modernise --- main/json-c/APKBUILD | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'main') diff --git a/main/json-c/APKBUILD b/main/json-c/APKBUILD index 08a3918dd8..85c7a49771 100644 --- a/main/json-c/APKBUILD +++ b/main/json-c/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa pkgname=json-c pkgver=0.12.1 -pkgrel=2 +pkgrel=3 pkgdesc="A JSON implementation in C" url="https://github.com/json-c/json-c/wiki" arch="all" @@ -16,7 +16,6 @@ source="https://s3.amazonaws.com/${pkgname}_releases/releases/$pkgname-${pkgver} builddir="$srcdir"/json-c-$pkgver prepare() { - local i cd "$builddir" default_prepare autoreconf -f -v -i @@ -34,12 +33,17 @@ build() { --enable-shared \ ac_cv_func_malloc_0_nonnull=yes \ ac_cv_func_realloc_0_nonnull=yes - make -j1 || return 1 + make -j1 +} + +check() { + cd "$builddir" + make check } package() { cd "$builddir" - make -j1 DESTDIR="$pkgdir" install || return 1 + make -j1 DESTDIR="$pkgdir" install } static() { -- cgit v1.2.3