Requested by @fieker
I think this would amount to something roughly like this (??)
UPDATED based on comments by @thofma
git clone https://github.com/JuliaPackaging/Yggdrasil
cd Yggdrasil
# record the base path
BASEPATH=$(pwd)
# ensure building macOS binaries will work (you can omit this if you only
# want to build for Linux)
export BINARYBUILDER_AUTOMATIC_APPLE=true
# change into the directory containing the `build_tarballs.jl` we want to build
cd PATH/TO/PACKAGE
# ensure BinaryBuilder etc. is installed in the right version
# (ideally use the same Julia version as specified in `.ci/Manifest.toml`)
julia --project=$BASEPATH/.ci -e 'using Pkg; Pkg.instantiate()'
# get list of platforms etc.
julia --project=$BASEPATH/.ci build_tarballs.jl --help
# build and deploy the JLL locally. If you omit the comma-separated
# list of PLATFORMS then it will build for *all* platforms
julia --project=$BASEPATH/.ci build_tarballs.jl PLATFORMS --deploy=local