opt/json-c/Pkgfile

21 lines
542 B
Plaintext
Raw Normal View History

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
# Depends on: cmake
2012-01-15 16:30:56 +01:00
name=json-c
2022-04-15 12:45:14 +02:00
version=0.16
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 \
-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
}