summaryrefslogtreecommitdiff
path: root/Ports/brogue/package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Ports/brogue/package.sh')
-rwxr-xr-xPorts/brogue/package.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/Ports/brogue/package.sh b/Ports/brogue/package.sh
new file mode 100755
index 0000000000..553c393375
--- /dev/null
+++ b/Ports/brogue/package.sh
@@ -0,0 +1,16 @@
+#!/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"
+}