diff options
author | Zach van Rijn <me@zv.io> | 2022-04-20 00:53:30 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-05-01 17:05:58 -0500 |
commit | 2275080eee0bb326f59bb535b7965d05a66add32 (patch) | |
tree | 0bca3eec0e069b48d831e0081760396d6b45f02a /user/json-c | |
parent | c4381450be0e99a334742162464db3f3797286a0 (diff) | |
download | packages-2275080eee0bb326f59bb535b7965d05a66add32.tar.gz packages-2275080eee0bb326f59bb535b7965d05a66add32.tar.bz2 packages-2275080eee0bb326f59bb535b7965d05a66add32.tar.xz packages-2275080eee0bb326f59bb535b7965d05a66add32.zip |
system/{cryptsetup,json-c}: move from { 'system/' --> 'legacy/' } per policy.
Diffstat (limited to 'user/json-c')
-rw-r--r-- | user/json-c/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/user/json-c/APKBUILD b/user/json-c/APKBUILD new file mode 100644 index 000000000..c05a7d9b7 --- /dev/null +++ b/user/json-c/APKBUILD @@ -0,0 +1,36 @@ +# Maintainer: +pkgname=json-c +pkgver=0.15 +pkgrel=0 +pkgdesc="A JSON implementation in C" +url="https://github.com/json-c/json-c/wiki" +arch="all" +license="MIT" +depends="" +makedepends="cmake doxygen" +subpackages="$pkgname-dev" +source="https://s3.amazonaws.com/${pkgname}_releases/releases/$pkgname-${pkgver}.tar.gz + " + +# secfixes: +# 0.15-r0: +# - CVE-2020-12762 + +build() { + cmake -B "$builddir" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=ON + make + make doc +} + +check() { + make test +} + +package() { + make -j1 DESTDIR="$pkgdir" install +} + +sha512sums="dc01298bcc78f0f31a34f5fcfe45c0feebfd88518e97fb4f96f1a652f71ccdd303415a4c7bf5b573bdcbcca80428281f0dfccefc6545ea3a7f18dbb819332f34 json-c-0.15.tar.gz" |