blob: 1c8af4e30176848105948031080f09199ced21b4 (
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.15
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 -DNDEBUG" \
17 -D BUILD_TESTING=OFF
18 cmake --build build
19 DESTDIR=$PKG cmake --install build
20 }
|