#!/bin/sh -e patch -p1 < libressl.patch # This package mimics the download process of rust's 'x.py' # bootstrap library to allow for the removal of the internet # connection requirement per build. { mkdir -p "${cache_dir:=build/cache/2020-08-27}" for tarball in *.tar.xz\?no-extract; do mv -f "$tarball" "$cache_dir/${tarball%%\?no-extract}" done } # We modified openssl-sys. sed -i 's/\("files":{\)[^}]*/\1/' \ vendor/openssl-sys/.cargo-checksum.json sed -i 's/crt_static_default = true/crt_static_default = false/' \ src/librustc_target/spec/linux_musl_base.rs cat > config.toml <