diff options
-rw-r--r-- | main/json-c/APKBUILD | 12 |
1 files changed, 8 insertions, 4 deletions
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 <ncopa@alpinelinux.org> 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() { |