1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:57:44 +00:00

Ports: Add port for Brogue (BrogueCE)

This commit is contained in:
nooga 2021-05-15 01:21:59 +02:00 committed by Linus Groh
parent 08c55b7606
commit da4928feea
3 changed files with 39 additions and 0 deletions

16
Ports/brogue/package.sh Executable file
View file

@ -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"
}

View file

@ -0,0 +1,22 @@
:100644 100644 0000000000 0000000000 M config.mk.orig
diff --git a/config.mk.orig b/config.mk
index b33967bf2c..d2b07a8ade 100644
--- a/config.mk.orig
+++ b/config.mk
@@ -1,5 +1,5 @@
# Where to look for game data files (found in 'bin'). Must be without trailing slashes!
-DATADIR := .
+DATADIR := /usr/local/share/games/brogue
# Include terminal support. Requires ncurses
TERMINAL := NO
@@ -7,7 +7,7 @@ TERMINAL := NO
# Include graphical support. Requires SDL2 and SDL2_image
GRAPHICS := YES
# Path to sdl2-config script
-SDL_CONFIG := sdl2-config
+SDL_CONFIG := pkg-config sdl2
# Select web brogue mode. Requires POSIX system.
WEBBROGUE := NO