description="Boost provides a set of free peer-reviewed portable C++ source libraries."
url="http://boost.sourceforge.net/"

packager="Tnut <tnut@nutyx.org>"
contributors="Rems,Spiky"

makedepends=(icu python)

name=boost
version=1.81.0
release=3

source=(https://boostorg.jfrog.io/artifactory/main/release/$version/source/${name}_${version//./_}.tar.bz2)
prepare() {
 sed -i '/#include.*phoenix.*tuple.hpp.*/d' \
 ${name}_${version//./_}/boost/phoenix/stl.hpp
}
build() {
cd ${name}_${version//./_}

./bootstrap.sh --prefix=$PKG/usr --with-toolset=gcc --with-python=python3

./b2 stage -j8 variant=release threading=multi \
	link=shared,static debug-symbols=off -j ${JOBS-1}

./b2 install threading=multi link=shared
ln -svf detail/sha1.hpp $PKG/usr/include/boost/uuid/sha1.hpp
}
