Skip to content

Commit

Permalink
Ports: Add stockfish port
Browse files Browse the repository at this point in the history
  • Loading branch information
tcl3 authored and ADKaster committed Apr 7, 2023
1 parent ad5cbdc commit 44dd824
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions Ports/AvailablePorts.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`speexdsp`](speexdsp/) | Speex audio processing library | 1.2.1 | https://www.speex.org/ |
| [`sqlite`](sqlite/) | SQLite | 3410200 | https://www.sqlite.org/ |
| [`stb`](stb/) | stb single-file public domain libraries for C/C++ | af1a5bc | https://github.com/nothings/stb |
| [`stockfish`](stockfish/) | Stockfish: A free and strong UCI chess engine | 15.1 | https://github.com/official-stockfish/Stockfish |
| [`stpuzzles`](stpuzzles/) | Simon Tatham's Portable Puzzle Collection | | https://www.chiark.greenend.org.uk/~sgtatham/puzzles/ |
| [`stress-ng`](stress-ng/) | stress-ng | 0.14.03 | https://github.com/ColinIanKing/stress-ng |
| [`Super-Mario`](Super-Mario/) | Super-Mario Clone | | https://github.com/Bennyhwanggggg/Super-Mario-Clone-Cpp |
Expand Down
17 changes: 17 additions & 0 deletions Ports/stockfish/package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='stockfish'
version='15.1'
useconfigure='false'
files="https://github.com/official-stockfish/Stockfish/archive/refs/tags/sf_${version}.tar.gz sf_${version}.tar.gz d4272657905319328294355973faee40a8c28e3eecb0e7b266ed34ff33383b76"
auth_type='sha256'
workdir="Stockfish-sf_${version}/src/"
makeopts+=(ARCH="${SERENITY_ARCH}" SUPPORTED_ARCH=true COMPCXX="${CXX}")

build() {
run make build "${makeopts[@]}"
}

install() {
run mkdir -p "${SERENITY_INSTALL_ROOT}/usr/local/bin/"
run cp stockfish "${SERENITY_INSTALL_ROOT}/usr/local/bin/"
}

0 comments on commit 44dd824

Please sign in to comment.