From fca9fce45b42d2ee2551c697c544869078062168 Mon Sep 17 00:00:00 2001 From: shtayerc Date: Sun, 6 Sep 2020 11:28:28 +0200 Subject: [PATCH] stockfish: update to 12 --- srcpkgs/stockfish/template | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/srcpkgs/stockfish/template b/srcpkgs/stockfish/template index d8919d79766..8e0225e0df7 100644 --- a/srcpkgs/stockfish/template +++ b/srcpkgs/stockfish/template @@ -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 " 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 }