From 59044922c91efcfc38f27342991d6b8228d422a8 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Thu, 25 Mar 2021 20:06:24 -0400 Subject: [PATCH] boost: Write build script Script is meant to be run on a machine with access to Docker. --- boost/build_boost.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 boost/build_boost.sh diff --git a/boost/build_boost.sh b/boost/build_boost.sh new file mode 100644 index 0000000..a38744a --- /dev/null +++ b/boost/build_boost.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# This script is meant to make it easy to rebuild Boost using the linux-fresh +# yuzu-emu container. + +# Run this from within boost_[version] directory +# Downloaded source archive must come from https://www.boost.org/ + +THIS=$(readlink -e $0) +USER_ID=`id -u` +GROUP_ID=`id -g` +BASE_NAME=`readlink -e $(pwd) | sed 's/.*\///g'` + +docker run -v $(pwd):/boost -w /boost -u root -t yuzuemu/build-environments:linux-fresh /bin/bash /boost/bootstrap.sh +docker run -v $(pwd):/boost -w /boost -u root -t yuzuemu/build-environments:linux-fresh /boost/b2 +docker run -v $(pwd):/boost -w /boost -u root -t yuzuemu/build-environments:linux-fresh /bin/chown -R ${USER_ID}:${GROUP_ID} . + +mkdir -pv $BASE_NAME/ +mkdir -pv $BASE_NAME/include/ +mv -v boost $BASE_NAME/include/ +mv -v stage/lib $BASE_NAME/ +cp -v $THIS $BASE_NAME/ + +tar cv $BASE_NAME | xz -c > $BASE_NAME.tar.xz + +if [ -e $BASE_NAME.tar.xz ]; then + echo "Boost package can be found at $(readlink -e $BASE_NAME.tar.xz)" +fi +