2023-04-03 19:13:57 +01:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port='stockfish'
|
2024-04-06 23:51:21 +01:00
|
|
|
version='16.1'
|
2023-04-03 19:13:57 +01:00
|
|
|
useconfigure='false'
|
2023-07-10 13:10:29 +02:00
|
|
|
files=(
|
2024-04-06 23:51:21 +01:00
|
|
|
"https://github.com/official-stockfish/Stockfish/archive/refs/tags/sf_${version}.tar.gz#a5f94793b5d4155310397ba89e9c4266570ef0f24cd47de41a9103556f811b82"
|
2023-07-10 13:10:29 +02:00
|
|
|
)
|
2023-04-03 19:13:57 +01:00
|
|
|
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/"
|
|
|
|
}
|