diff options
author | nooga <xnooga@gmail.com> | 2021-05-15 01:21:59 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-15 10:13:43 +0100 |
commit | da4928feea91c681be0d2494e03a3660926e361e (patch) | |
tree | 7e1ccecdba27f9322e6e13d4e4c216ddd3a75578 /Ports | |
parent | 08c55b7606469bc9f1e8f9623a1bddc4de730864 (diff) | |
download | serenity-da4928feea91c681be0d2494e03a3660926e361e.zip |
Ports: Add port for Brogue (BrogueCE)
Diffstat (limited to 'Ports')
-rw-r--r-- | Ports/AvailablePorts.md | 1 | ||||
-rwxr-xr-x | Ports/brogue/package.sh | 16 | ||||
-rw-r--r-- | Ports/brogue/patches/config.patch | 22 |
3 files changed, 39 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index eea255dade..d0e1700728 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -8,6 +8,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`bc`](bc/) | bc | 2.5.1 | https://github.com/gavinhoward/bc | | [`binutils`](binutils/) | GNU Binutils | 2.36.1 | https://www.gnu.org/software/binutils/ | | [`bison`](bison/) | GNU Bison | 1.25 | https://www.gnu.org/software/bison/ | +| [`brogue`](brogue/) | BrogueCE | 1.9.3 | https://github.com/tmewett/BrogueCE | | [`byacc`](byacc/) | Berkeley Yacc | 20191125 | https://invisible-island.net/byacc/byacc.html | | [`bzip2`](bzip2/) | bzip2 | 1.0.8 | https://sourceware.org/bzip2/ | | [`carl`](carl/) | Crypto Ancienne Resource Loader | 1.5 | https://github.com/classilla/cryanc | 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" +} diff --git a/Ports/brogue/patches/config.patch b/Ports/brogue/patches/config.patch new file mode 100644 index 0000000000..8397770fdf --- /dev/null +++ b/Ports/brogue/patches/config.patch @@ -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 |