You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libshit/get_boost.sh

28 lines
809 B
Bash

#! /bin/bash
set -ex
cd "$(dirname "$0")"
VER=1.84.0
_VER=$(echo $VER | sed 's/\./_/g')
TGT=ext/boost/boost
# whoever came up with the clever idea of needing a fucking JS page to download
# a fucking file should eat shit
# DL="https://boostorg.jfrog.io/ui/api/v1/download?repoKey=main&path=release%252F$VER%252Fsource%252Fboost_$_VER.tar.bz2"
DL="https://sourceforge.net/projects/boost/files/boost/$VER/boost_$_VER.tar.bz2/download"
BZ2_FILE=ext/boost/boost_$_VER.tar.bz2
SHA256=cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c24109454
if [ -e "$TGT" ]; then
echo "$(pwd)/$TGT exists, refusing to continue" >&2
exit 1
fi
wget "$DL" -O "$BZ2_FILE"
echo "$SHA256 *$BZ2_FILE" | sha256sum -c
mkdir "$TGT"
tar -xf "$BZ2_FILE" -C "$TGT" --strip-components 1
echo "Successfully unpacked boost"