diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-09 18:47:43 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-10 02:52:33 +0000 |
commit | bd9191eae4fb99e6c3ca4c7752286668d2fc46e7 (patch) | |
tree | cf00850d6e5a6e2674c8476539f1f52ff1eeec3a /main/json-c/APKBUILD | |
parent | 5959472019538854106ccea67c6351bd8e3976ca (diff) | |
download | aports-bd9191eae4fb99e6c3ca4c7752286668d2fc46e7.tar.bz2 aports-bd9191eae4fb99e6c3ca4c7752286668d2fc46e7.tar.xz |
main/json-c: add test suite, modernise
Diffstat (limited to 'main/json-c/APKBUILD')
-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() { |