2023-04-03 21:13:57 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port='stockfish'
|
2023-07-01 00:08:55 +03:00
|
|
|
version='16'
|
2023-04-03 21:13:57 +03:00
|
|
|
useconfigure='false'
|
2023-07-10 14:10:29 +03:00
|
|
|
files=(
|
2023-08-07 22:10:39 +03:00
|
|
|
"https://github.com/official-stockfish/Stockfish/archive/refs/tags/sf_${version}.tar.gz a1600ebdaf4e324ba3e10cec2e0c9a810dc64c6f0db5cc955b2fd5e1eefa1cc6"
|
2023-07-10 14:10:29 +03:00
|
|
|
)
|
2023-04-03 21:13:57 +03: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/"
|
|
|
|
}
|