stockfish: update to 12

This commit is contained in:
shtayerc 2020-09-06 11:28:28 +02:00 committed by Andrew J. Hesford
parent 2e5a8f9c8f
commit 0463275b3d

View file

@ -1,7 +1,8 @@
# Template file for 'stockfish'
pkgname=stockfish
version=11
revision=2
version=12
revision=1
_net_file=nn-82215d0fd0df.nnue
wrksrc="Stockfish-sf_${version}"
build_wrksrc=src
build_style=gnu-makefile
@ -11,8 +12,11 @@ short_desc="Free UCI chess engine derived from Glaurung"
maintainer="cipr3s <cipr3s@gmx.com>"
license="GPL-3.0-or-later"
homepage="http://stockfishchess.org/"
distfiles="https://github.com/official-stockfish/Stockfish/archive/sf_${version}.tar.gz"
checksum=802261cc601b67bed00c0ef7d21e2125959630f0852a06db9fc9bd74f440b199
distfiles="https://github.com/official-stockfish/Stockfish/archive/sf_${version}.tar.gz
https://tests.stockfishchess.org/api/nn/${_net_file}"
checksum="d1ec11d1cb8dfc5b33bcd6ec89ed0bafb3951cc1690851448a2696caa2022899
82215d0fd0df3cde17fc47ac024c5b5736823ec390200abdd705c44660c69ee4"
skip_extraction="${_net_file}"
LDFLAGS+="-lpthread -Wl,-z,stack-size=2097152"
@ -31,6 +35,10 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
LDFLAGS+=" -latomic"
fi
post_extract() {
cp $XBPS_SRCDISTDIR/${pkgname}-${version}/${_net_file} ./src
}
do_install() {
vbin stockfish
}