diff --git a/boost/boost-1_79_0.tar.xz b/boost/boost-1_79_0.tar.xz new file mode 100644 index 0000000..eefe696 Binary files /dev/null and b/boost/boost-1_79_0.tar.xz differ diff --git a/boost/build.sh b/boost/build.sh new file mode 100755 index 0000000..255ef93 --- /dev/null +++ b/boost/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# This script is meant to make it easy to build a package using a Docker container. + +# Run this from the same directory as source directory + +THIS=$(readlink -e $0) +USER_ID=`id -u` +GROUP_ID=`id -g` +VERSION=1_79_0 +PKG_NAME=boost + +mkdir -p $PKG_NAME-$VERSION + +docker run -v $(pwd):/src -w /src -u root -t yuzuemu/build-environments:linux-fresh /bin/bash -ex /src/docker.sh $PKG_NAME $VERSION + +cp -v $THIS $PKG_NAME-$VERSION/ +tar cv $PKG_NAME-$VERSION | xz -T0 -c > $PKG_NAME-$VERSION.tar.xz diff --git a/boost/build_boost.sh b/boost/build_boost.sh deleted file mode 100644 index a38744a..0000000 --- a/boost/build_boost.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/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 - diff --git a/boost/docker.sh b/boost/docker.sh new file mode 100755 index 0000000..76e6456 --- /dev/null +++ b/boost/docker.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +THIS=$(readlink -e $0) +PKG_NAME=$1 +VERSION=$2 + +cd /src/${PKG_NAME}_${VERSION} +/bin/bash /src/${PKG_NAME}_${VERSION}/bootstrap.sh +./b2 --prefix=/src/${PKG_NAME}-${VERSION}/usr/local install + +cp $THIS /src/${PKG_NAME}-${VERSION}