2012-01-15 16:30:56 +01:00
|
|
|
# Description: JSON implementation in C
|
2013-06-11 18:00:31 +02:00
|
|
|
# URL: https://github.com/json-c/json-c/wiki
|
2012-01-15 16:30:56 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2020-04-20 15:23:13 +02:00
|
|
|
# Depends on: cmake
|
2012-01-15 16:30:56 +01:00
|
|
|
|
|
|
|
name=json-c
|
2020-07-27 13:23:18 +02:00
|
|
|
version=0.15
|
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() {
|
2020-07-27 13:23:18 +02:00
|
|
|
cmake -S $name-$version -B build \
|
|
|
|
-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
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2012-01-15 16:30:56 +01:00
|
|
|
}
|