2012-01-15 16:30:56 +01:00
|
|
|
# Description: JSON implementation in C
|
2022-04-15 12:45:14 +02:00
|
|
|
# URL: https://github.com/json-c/json-c/wiki
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2012-01-15 16:30:56 +01:00
|
|
|
|
|
|
|
name=json-c
|
2023-08-14 09:51:00 +02:00
|
|
|
version=0.17
|
2012-01-15 16:30:56 +01:00
|
|
|
release=1
|
2015-05-07 15:40:12 +02:00
|
|
|
source=(https://s3.amazonaws.com/json-c_releases/releases/$name-$version.tar.gz)
|
2012-01-15 16:30:56 +01:00
|
|
|
|
|
|
|
build() {
|
2023-08-14 09:51:00 +02:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
2020-07-27 13:23:18 +02:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-11-22 11:30:07 +01:00
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-07-27 13:23:18 +02:00
|
|
|
-D BUILD_TESTING=OFF
|
2023-08-14 09:51:00 +02:00
|
|
|
cmake --build build -j ${JOBS:-1}
|
2020-07-27 13:23:18 +02:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2012-01-15 16:30:56 +01:00
|
|
|
}
|