aboutsummaryrefslogtreecommitdiff
path: root/extra/json-c/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-02-09 16:26:03 +0300
committerCem Keylan <cem@ckyln.com>2021-02-09 16:26:03 +0300
commit4ffd98335e6e3004f497dc2b6dd151605f9770f2 (patch)
tree42e81de9e1a5ab69cc6fd33bc5641e7912938b68 /extra/json-c/build
parentb034053ccf90f1e66d26523c43efdb97fb3988ee (diff)
downloadrepository-4ffd98335e6e3004f497dc2b6dd151605f9770f2.tar.gz
json-c: add new package at 0.15
Diffstat (limited to 'extra/json-c/build')
-rwxr-xr-xextra/json-c/build12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/json-c/build b/extra/json-c/build
new file mode 100755
index 00000000..7f4f480b
--- /dev/null
+++ b/extra/json-c/build
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+export DESTDIR="$1"
+
+cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_TESTING=OFF
+
+cmake --build build
+cmake --install build