blob: a64af50f4c535dc51dea8f14569efccd5eb502a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/mkpkg
# description: JSON implementation in C
# url: https://github.com/json-c/json-c
name=json-c
version=0.19
release=1
makedeps=(cmake ninja)
source=(https://s3.amazonaws.com/json-c_releases/releases/$name-$version.tar.gz)
sha256sums=(
"37ad0249902e301bd9052bf712e511fcc6acff4ecaad4b5900aad9ce564e26de"
)
build() {
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_TESTING=OFF \
-D CMAKE_POLICY_VERSION_MINIMUM=3.5
cmake --build build
DESTDIR=$PKG cmake --install build
}
signify() {
untrusted comment: public key
RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}
# vim: filetype=sh
|