blob: b715636d9f6a38ae6dae0182b4b85263d2cf3a2d (
plain)
1 # Description: JSON implementation in C
2 # URL: https://github.com/json-c/json-c/wiki
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: cmake
5
6 name=json-c
7 version=0.16
8 release=1
9 source=(https://s3.amazonaws.com/json-c_releases/releases/$name-$version.tar.gz)
10
11 build() {
12 cmake -S $name-$version -B build \
13 -D CMAKE_INSTALL_PREFIX=/usr \
14 -D CMAKE_INSTALL_LIBDIR=/usr/lib \
15 -D CMAKE_BUILD_TYPE=Release \
16 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
17 -D BUILD_TESTING=OFF
18 cmake --build build
19 DESTDIR=$PKG cmake --install build
20 }
|