2020-12-11 19:05:42 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-12-11 19:08:45 +00:00
|
|
|
set -eu
|
2018-05-05 15:37:45 +00:00
|
|
|
|
|
|
|
TEMPDIR=$(mktemp -d)
|
|
|
|
(
|
2020-12-11 17:19:53 +00:00
|
|
|
cd "$TEMPDIR"
|
2021-09-24 12:37:51 +00:00
|
|
|
jsoncpp_version="1.7.4"
|
|
|
|
jsoncpp_package="jsoncpp-${jsoncpp_version}.tar.gz"
|
|
|
|
wget -O "$jsoncpp_package" https://github.com/open-source-parsers/jsoncpp/archive/${jsoncpp_version}.tar.gz
|
|
|
|
tar xvzf "$jsoncpp_package"
|
|
|
|
cd "jsoncpp-${jsoncpp_version}"
|
2018-05-05 15:37:45 +00:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
cmake -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ..
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
)
|
2020-12-11 17:19:53 +00:00
|
|
|
rm -rf "$TEMPDIR"
|