From 79eb113ebfa6ec1e789c855a044f526ea56c29e6 Mon Sep 17 00:00:00 2001 From: Johannes Schoepfer Date: Thu, 29 Feb 2024 00:08:37 +0700 Subject: games/stockfish: Updated for version 16.1. Signed-off-by: Willy Sudiarto Raharjo --- games/stockfish/stockfish.SlackBuild | 21 ++++++++------------- games/stockfish/stockfish.info | 12 +++++++----- 2 files changed, 15 insertions(+), 18 deletions(-) (limited to 'games') diff --git a/games/stockfish/stockfish.SlackBuild b/games/stockfish/stockfish.SlackBuild index ad0f3324c8..5753faa630 100644 --- a/games/stockfish/stockfish.SlackBuild +++ b/games/stockfish/stockfish.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for stockfish -# Copyright 2016-2023 Johannes Schoepfer, Germany +# Copyright 2016-2024 Johannes Schoepfer, Germany # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,15 +22,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# 20220221 bkw: Modified by SlackBuilds.org, BUILD=2: -# - fix incorrect github download filename. -# - binary in /usr/games. - cd $(dirname $0) ; CWD=$(pwd) PRGNAM=stockfish -NNUE="nn-5af11540bbfe.nnue" -VERSION=${VERSION:-16} +VERSION=${VERSION:-16.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -69,24 +64,24 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf Stockfish-sf_$VERSION tar vxf $CWD/Stockfish-sf_$VERSION.tar.gz -cp $CWD/$NNUE Stockfish-sf_$VERSION/src/ +cp $CWD/*.nnue Stockfish-sf_$VERSION/src/ cd Stockfish-sf_$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} + -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} + cd src # More optimized, but may not run on all x86_64 hardware # [ "$ARCH" = x86_64 ] && grep -w popcnt /proc/cpuinfo && OPT="-modern" export CXXFLAGS="$SLKCFLAGS" case $ARCH in - x86_64) make profile-build ARCH=x86-64$OPT;; - i?86) make profile-build ARCH=x86-32 ;; - arm) make profile-build ARCH=armv7 ;; + x86_64) unshare -n make profile-build ARCH=x86-64$OPT;; + i?86) unshare -n make profile-build ARCH=x86-32 ;; + arm) unshare -n make profile-build ARCH=armv7 ;; esac make strip diff --git a/games/stockfish/stockfish.info b/games/stockfish/stockfish.info index db502e944a..771dfd9036 100644 --- a/games/stockfish/stockfish.info +++ b/games/stockfish/stockfish.info @@ -1,10 +1,12 @@ PRGNAM="stockfish" -VERSION="16" +VERSION="16.1" HOMEPAGE="https://stockfishchess.org/" -DOWNLOAD="https://github.com/official-stockfish/Stockfish/archive/sf_16/Stockfish-sf_16.tar.gz \ - https://tests.stockfishchess.org/api/nn/nn-5af11540bbfe.nnue" -MD5SUM="4b0f16a4f0b8624da9aba5a6cb14bb49 \ - af175cce8a8e5a12fb84f2218adcf61f" +DOWNLOAD="https://github.com/official-stockfish/Stockfish/archive/sf_16.1/Stockfish-sf_16.1.tar.gz \ + https://tests.stockfishchess.org/api/nn/nn-b1a57edbea57.nnue \ + https://tests.stockfishchess.org/api/nn/nn-baff1ede1f90.nnue" +MD5SUM="500fe25527ea52a55983527e1e25979b \ + 87d18077c911cc0b540734267fd68864 \ + 64a4816d6420a588490ee284077a2334" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3-79-gdb01