diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 01:24:18 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 01:24:18 -0500 |
commit | b95de892f5a2573e7586db5c7578994330ab49c7 (patch) | |
tree | 9700ec185743bfef13f4373b926862764f57ec54 /system/json-c | |
parent | f37f6ba19db229119ba3bd209dc10814dacf07b0 (diff) | |
download | packages-b95de892f5a2573e7586db5c7578994330ab49c7.tar.gz packages-b95de892f5a2573e7586db5c7578994330ab49c7.tar.bz2 packages-b95de892f5a2573e7586db5c7578994330ab49c7.tar.xz packages-b95de892f5a2573e7586db5c7578994330ab49c7.zip |
system/json-c: pull in for cryptsetup
Diffstat (limited to 'system/json-c')
-rw-r--r-- | system/json-c/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/system/json-c/APKBUILD b/system/json-c/APKBUILD new file mode 100644 index 000000000..a70257ed7 --- /dev/null +++ b/system/json-c/APKBUILD @@ -0,0 +1,55 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=json-c +pkgver=0.13.1 +pkgrel=0 +pkgdesc="A JSON implementation in C" +url="https://github.com/json-c/json-c/wiki" +arch="all" +license="MIT" +depends="" +depends_dev="" +makedepends="$depends_dev autoconf automake libtool" +install="" +subpackages="$pkgname-static $pkgname-dev" +source="https://s3.amazonaws.com/${pkgname}_releases/releases/$pkgname-${pkgver}.tar.gz + " + +prepare() { + cd "$builddir" + default_prepare + autoreconf -f -v -i +} + +build() { + cd "$builddir" + export CFLAGS="${CFLAGS} -Wno-error=unused-but-set-variable" + ./configure --prefix=/usr \ + --build=$CBUILD \ + --host=$CHOST \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --enable-shared \ + ac_cv_func_malloc_0_nonnull=yes \ + ac_cv_func_realloc_0_nonnull=yes + make -j1 +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make -j1 DESTDIR="$pkgdir" install +} + +static() { + pkgdesc="Static json-c library" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/ +} + +sha512sums="e984db2a42b9c95b52c798b2e8dd1b79951a8dcba27370af30c43b9549fbb00008dbcf052a535c528209aaee38e6d1f760168b706905ae72f3e704ed20f8a1a1 json-c-0.13.1.tar.gz" |