1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 03:37:36 +00:00

Ports: Add stockfish port

This commit is contained in:
Tim Ledbetter 2023-04-03 19:13:57 +01:00 committed by Andrew Kaster
parent ad5cbdc51b
commit 44dd824764
2 changed files with 18 additions and 0 deletions

17
Ports/stockfish/package.sh Executable file
View file

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