aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorFranzen <slackbuilds@schoepfer.info>2022-02-06 13:45:12 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-06 13:45:12 +0700
commitdf8e573045ff971dde8094b64559575f828cbe32 (patch)
treea54ed632d93654e455913c104d86d39b2aca5ff1 /games
parent457c0ba4f2b63ebedbe748d19056a123f06a7649 (diff)
games/stockfish: Updated for version 14.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/stockfish/stockfish.SlackBuild21
-rw-r--r--games/stockfish/stockfish.info10
2 files changed, 16 insertions, 15 deletions
diff --git a/games/stockfish/stockfish.SlackBuild b/games/stockfish/stockfish.SlackBuild
index 944ce0bacdbbd..a604080946258 100644
--- a/games/stockfish/stockfish.SlackBuild
+++ b/games/stockfish/stockfish.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for stockfish
-# Copyright 2016 - 2020 Johannes Schoepfer, Germany
+# Copyright 2016 - 2022 Johannes Schoepfer, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=stockfish
-VERSION=${VERSION:-11}
+VERSION=${VERSION:-14.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -70,7 +70,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf Stockfish-sf_$VERSION
-tar vxf $CWD/Stockfish-$VERSION.tar.gz
+tar vxf $CWD/sf_$VERSION.tar.gz
+cp $CWD/nn-13406b1dcbe0.nnue Stockfish-sf_$VERSION/src/
cd Stockfish-sf_$VERSION
chown -R root:root .
@@ -85,14 +86,13 @@ cd src
# [ "$ARCH" = x86_64 ] && grep -w popcnt /proc/cpuinfo && ARCH=x86-64-modern
export CXXFLAGS="$SLKCFLAGS"
case $ARCH in
- x86_64) make profile-build ARCH=x86-64 ;;
- x86-64-modern) make profile-build ARCH=$ARCH ;;
- i?86) make profile-build ARCH=x86-32 ;;
- arm) make profile-build ARCH=armv7 ;;
- *) make profile-build ARCH=general-32 ;;
+ x86_64) make build ARCH=x86-64 COMP=gcc;;
+ x86-64-modern) make build ARCH=$ARCH COMP=gcc;;
+ i?86) make build ARCH=x86-32 COMP=gcc;;
+ arm) make build ARCH=armv7 COMP=gcc;;
+ *) make build ARCH=general-32 COMP=gcc;;
esac
-make strip
make PREFIX="$PKG/usr" install
cd ..
@@ -102,9 +102,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-# Docs
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-mv AUTHORS Copying.txt Readme.md $PKG/usr/doc/$PRGNAM-$VERSION/
+mv AUTHORS Copying.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cd $PKG
diff --git a/games/stockfish/stockfish.info b/games/stockfish/stockfish.info
index 6fa13698baa8f..04e9966ff078c 100644
--- a/games/stockfish/stockfish.info
+++ b/games/stockfish/stockfish.info
@@ -1,10 +1,12 @@
PRGNAM="stockfish"
-VERSION="11"
+VERSION="14.1"
HOMEPAGE="https://stockfishchess.org/"
-DOWNLOAD="https://github.com/official-stockfish/Stockfish/archive/sf_11/Stockfish-11.tar.gz"
-MD5SUM="dd5b554e66c249343b674d45453a8bba"
+DOWNLOAD="https://github.com/official-stockfish/Stockfish/archive/refs/tags/sf_14.1.tar.gz \
+ https://tests.stockfishchess.org/api/nn/nn-13406b1dcbe0.nnue"
+MD5SUM="2280661e63d69386c882c5ccc0585fcb \
+ 895f02663c92cb8f093ea5c74208c94a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Johannes Schoepfer"
-EMAIL="slackbuilds@schoepfer.info"
+EMAIL="slackbuilds at schoepfer dot info"