diff --git a/srcpkgs/stockfish/patches/makefile.patch b/srcpkgs/stockfish/patches/makefile.patch index 62b436ed5fd..44a5f7099e8 100644 --- a/srcpkgs/stockfish/patches/makefile.patch +++ b/srcpkgs/stockfish/patches/makefile.patch @@ -1,6 +1,6 @@ ---- a/src/Makefile 2023-07-02 17:28:33.297238434 +0200 -+++ b/src/Makefile 2023-07-02 17:28:50.820207636 +0200 -@@ -377,29 +377,7 @@ +--- a/src/Makefile 2024-02-24 18:59:34.151734872 +0000 ++++ b/src/Makefile 2024-02-24 19:01:49.798743474 +0000 +@@ -397,31 +397,7 @@ endif ifeq ($(COMP),gcc) comp=gcc @@ -15,6 +15,8 @@ - ifeq ($(ARCH),riscv64) - CXXFLAGS += -latomic - endif +- else ifeq ($(ARCH),loongarch64) +- CXXFLAGS += -latomic - else - CXXFLAGS += -m$(bits) - LDFLAGS += -m$(bits) diff --git a/srcpkgs/stockfish/template b/srcpkgs/stockfish/template index 0d2b2e1145c..e8c96f45951 100644 --- a/srcpkgs/stockfish/template +++ b/srcpkgs/stockfish/template @@ -1,8 +1,9 @@ # Template file for 'stockfish' pkgname=stockfish -version=16 +version=16.1 revision=1 -_net_file=nn-5af11540bbfe.nnue +_net_file_big=nn-b1a57edbea57.nnue +_net_file_small=nn-baff1ede1f90.nnue build_wrksrc=src build_style=gnu-makefile make_build_target=build @@ -13,10 +14,12 @@ maintainer="shtayerc " license="GPL-3.0-or-later" homepage="http://stockfishchess.org/" distfiles="https://github.com/official-stockfish/Stockfish/archive/sf_${version}.tar.gz - https://tests.stockfishchess.org/api/nn/${_net_file}" -checksum="a1600ebdaf4e324ba3e10cec2e0c9a810dc64c6f0db5cc955b2fd5e1eefa1cc6 - 5af11540bbfefcb54e38c5dd000cab4b469dfa7599a1d55be5d2722c20a8929b" -skip_extraction="${_net_file}" + https://tests.stockfishchess.org/api/nn/${_net_file_big} + https://tests.stockfishchess.org/api/nn/${_net_file_small}" +checksum="a5f94793b5d4155310397ba89e9c4266570ef0f24cd47de41a9103556f811b82 + b1a57edbea574ca8b88d6837473845791beb53d885f87f86d5ccdd5659fbf3b2 + baff1ede1f90c1dd1b4f772f1eff29848821801e8186345da7f0eb4121bd6f63" +skip_extraction="${_net_file_big} ${_net_file_small}" LDFLAGS+="-lpthread -Wl,-z,stack-size=2097152" @@ -35,7 +38,8 @@ case $XBPS_TARGET_MACHINE in esac post_extract() { - cp $XBPS_SRCDISTDIR/${pkgname}-${version}/${_net_file} ./src + cp $XBPS_SRCDISTDIR/${pkgname}-${version}/${_net_file_big} ./src + cp $XBPS_SRCDISTDIR/${pkgname}-${version}/${_net_file_small} ./src } do_install() {