set -eux
echo "---> install Pistache dependencies..."
-if type -P python3 > /dev/null 2>&1
-then
- echo "Python3 is installed"
-else
- sudo apt-get install python3
-fi
+export PATH=$PATH:~/.local/bin
+export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
-sudo apt-get update && sudo apt-get install rapidjson-dev libssl-dev
-python3.8 -m pip install meson
+sudo apt-get update && sudo apt-get -y install rapidjson-dev libssl-dev
+python3 -m pip install meson
-echo "---> install Pistache library.."
-
-LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
git clone https://github.com/pistacheio/pistache.git && cd pistache && meson setup build \
--buildtype=release \
-DPISTACHE_BUILD_EXAMPLES=false \
-DPISTACHE_BUILD_TESTS=false \
-DPISTACHE_BUILD_DOCS=false \
- --prefix="$PWD/prefix" \
+ --prefix="$PWD/prefix" && \
meson install -C build && \
sudo cp -rf prefix/include/pistache /usr/include/pistache && \
sudo cp prefix/lib/x86_64-linux-gnu/libpistache.so.0.0.3 $LIBRARY_PATH && \