#!/bin/sh
INSTALL_DIR=/usr/local/boost

cd /tmp
git clone --single-branch --branch master --depth=1 --recursive https://github.com/boostorg/boost.git
cd boost \
  && ./bootstrap.sh \
  && sudo ./b2 -j8 install link=static threading=multi runtime-link=static --prefix=$INSTALL_DIR --without-python
cd /tmp/boost/tools/build \
  && ./bootstrap.sh \
  && sudo ./b2 -j8 install link=static threading=multi runtime-link=static --prefix=$INSTALL_DIR
