summaryrefslogtreecommitdiff
path: root/Ports/stockfish/package.sh
blob: e6f6580e477f17506ab9b77bd65c9038e29cd530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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/"
}