diff options
Diffstat (limited to 'libs/json-c/MAKEPKG')
| -rw-r--r-- | libs/json-c/MAKEPKG | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libs/json-c/MAKEPKG b/libs/json-c/MAKEPKG new file mode 100644 index 0000000..a64af50 --- /dev/null +++ b/libs/json-c/MAKEPKG @@ -0,0 +1,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 |
