ladybird/Ports/brogue/package.sh
Tim Schumacher c07f91474d Ports: Make array-like settings actual arrays
We may need entries with spaces in makeopts, installopts, and
configopts, and at that point we should also convert depends and
auth_opts to avoid confusion.
2021-10-05 02:13:08 +02:00

16 lines
604 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=brogue
depends=("SDL2" "SDL2_image")
version=1.9.3
workdir="BrogueCE-${version}"
files="https://github.com/tmewett/BrogueCE/archive/refs/tags/v${version}.tar.gz brogue.tar.gz 441182916a16114bedfee614b09a198b4877a25db2544c5e087c86038aae2452"
auth_type=sha256
makeopts=("bin/brogue")
install() {
datadir="$SERENITY_INSTALL_ROOT/usr/local/share/games/brogue/assets"
mkdir -p "${SERENITY_INSTALL_ROOT}/usr/local/bin"
mkdir -p $datadir
cp $workdir/bin/assets/* $datadir
cp "${workdir}/bin/brogue" "${SERENITY_INSTALL_ROOT}/usr/local/bin"
}