opt/json-c/Pkgfile

20 lines
513 B
Plaintext

# Description: JSON implementation in C
# URL: https://github.com/json-c/json-c/wiki
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: cmake
name=json-c
version=0.15
release=1
source=(https://s3.amazonaws.com/json-c_releases/releases/$name-$version.tar.gz)
build() {
cmake -S $name-$version -B build \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=/usr/lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_TESTING=OFF
cmake --build build
DESTDIR=$PKG cmake --install build
}