From ed89cd93aa254dae8395fd7afb3668158e181056 Mon Sep 17 00:00:00 2001 From: Egor Ananyin Date: Mon, 31 May 2021 19:36:16 +0300 Subject: [PATCH] Ports: Add Simon Tatham's Puzzle Collection --- Ports/AvailablePorts.md | 1 + Ports/stpuzzles/package.sh | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 Ports/stpuzzles/package.sh diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 50f1050317..9069f5bcaf 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -116,6 +116,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`sed`](sed/) | GNU sed | 4.2.1 | https://www.gnu.org/software/sed/ | | [`sl`](sl/) | Steam Locomotive (SL) | | https://github.com/mtoyoda/sl | | [`sqlite`](sqlite/) | SQLite | 3350300 | https://www.sqlite.org/ | +| [`stpuzzles`](stpuzzles/) | Simon Tatham's Portable Puzzle Collection | | https://www.chiark.greenend.org.uk/~sgtatham/puzzles/ | | [`stress-ng`](stress-ng/) | stress-ng | 0.11.23 | https://github.com/ColinIanKing/stress-ng | | [`Super-Mario`](Super-Mario/) | Super-Mario Clone | | https://github.com/Bennyhwanggggg/Super-Mario-Clone-Cpp | | [`tcl`](tcl/) | Tcl | 8.6.11 | https://www.tcl-lang.org/ | diff --git a/Ports/stpuzzles/package.sh b/Ports/stpuzzles/package.sh new file mode 100755 index 0000000000..b30b02dfa7 --- /dev/null +++ b/Ports/stpuzzles/package.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=SimonTathamsPuzzles +useconfigure=true +version=git +workdir=stpuzzles-main +configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt" +files="https://github.com/SerenityOS/stpuzzles/archive/refs/heads/main.zip stpuzzles.zip 425addbfa4949f6f7341f476359789a33f3826c50f3dc2f6aa734c423a8926e7" +auth_type=sha256 + +configure() { + run cmake $configopts -DCMAKE_CXX_FLAGS="-std=c++2a -O2" +} + +install() { + run make install +}