From e01c968d00e11e4ed688d92b120aae263d47f2d6 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Mon, 27 Sep 2021 00:33:31 +0200 Subject: [PATCH] Ports: Add an Angband port :^) --- Ports/AvailablePorts.md | 1 + Ports/angband/package.sh | 17 +++++++++++++++++ Ports/angband/patches/config-sub.patch | 12 ++++++++++++ 3 files changed, 30 insertions(+) create mode 100755 Ports/angband/package.sh create mode 100644 Ports/angband/patches/config-sub.patch diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 1ce6536c81..8d14e309fc 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -5,6 +5,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | Port | Name | Version | Website | |----------------------------------------|-----------------------------------------------------------------|--------------------------|--------------------------------------------------------------------------------| | [`Another-World`](Another-World/) | Another World Bytecode Interpreter | | https://github.com/fabiensanglard/Another-World-Bytecode-Interpreter | +| [`angband`](angband/) | Angband | 4.2.3 | https://rephial.org | | [`bash`](bash/) | GNU Bash | 5.1.8 | https://www.gnu.org/software/bash/ | | [`bass`](bass/) | Beneath a Steel Sky | cd-1.2 | https://www.scummvm.org/games | | [`bc`](bc/) | bc | 2.5.1 | https://github.com/gavinhoward/bc | diff --git a/Ports/angband/package.sh b/Ports/angband/package.sh new file mode 100755 index 0000000000..699a721c4e --- /dev/null +++ b/Ports/angband/package.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=angband +version=4.2.3 +workdir="Angband-${version}" +useconfigure=true +files="https://github.com/angband/angband/releases/download/${version}/Angband-${version}.tar.gz Angband-${version}.tar.gz 833c4f8cff2aee61ad015f9346fceaa4a8c739fe2dbe5bd1acd580c91818e6bb" +auth_type=sha256 +depends=("ncurses") +configopts=( + "--prefix=/usr/local" + "--bindir=/usr/local/bin" + "--disable-x11" + "--enable-curses" + "--with-ncurses-prefix=${SERENITY_INSTALL_ROOT}/usr/local" + "CFLAGS=--sysroot=${SERENITY_INSTALL_ROOT} -I${SERENITY_INSTALL_ROOT}/usr/local/include/ncursesw" + "LIBS=-lncursesw" +) diff --git a/Ports/angband/patches/config-sub.patch b/Ports/angband/patches/config-sub.patch new file mode 100644 index 0000000000..bbf0e1e1db --- /dev/null +++ b/Ports/angband/patches/config-sub.patch @@ -0,0 +1,12 @@ +diff -ur Angband-4.2.3-orig/config.sub Angband-4.2.3/config.sub +--- Angband-4.2.3-orig/config.sub 2021-08-01 01:29:20.000000000 +0200 ++++ Angband-4.2.3/config.sub 2021-09-04 19:01:55.625519348 +0200 +@@ -1337,7 +1337,7 @@ + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. +- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ ++ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -serenity* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* \