summaryrefslogtreecommitdiffstats
path: root/games/stockfish
diff options
context:
space:
mode:
Diffstat (limited to 'games/stockfish')
-rw-r--r--games/stockfish/README2
-rw-r--r--games/stockfish/stockfish.SlackBuild34
-rw-r--r--games/stockfish/stockfish.info14
3 files changed, 21 insertions, 29 deletions
diff --git a/games/stockfish/README b/games/stockfish/README
index dd14db8255..07b5a4a1d4 100644
--- a/games/stockfish/README
+++ b/games/stockfish/README
@@ -1,3 +1,5 @@
+stockfish (UCI chess engine)
+
Stockfish is a free UCI chess engine derived from Glaurung 2.1.
It is not a complete chess program and requires some UCI-compatible GUI
(e.g. XBoard/eboard with PolyGlot) in order to be used comfortably.
diff --git a/games/stockfish/stockfish.SlackBuild b/games/stockfish/stockfish.SlackBuild
index 2158a88690..5753faa630 100644
--- a/games/stockfish/stockfish.SlackBuild
+++ b/games/stockfish/stockfish.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for stockfish
-# Copyright 2016 - 2022 Johannes Schoepfer, Germany
+# Copyright 2016-2024 Johannes Schoepfer, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,14 +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
-VERSION=${VERSION:-14.1}
+VERSION=${VERSION:-16.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -53,16 +49,12 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
fi
set -e
@@ -72,39 +64,35 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf Stockfish-sf_$VERSION
tar vxf $CWD/Stockfish-sf_$VERSION.tar.gz
-cp $CWD/nn-13406b1dcbe0.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 && ARCH=x86-64-modern
+# [ "$ARCH" = x86_64 ] && grep -w popcnt /proc/cpuinfo && OPT="-modern"
export CXXFLAGS="$SLKCFLAGS"
case $ARCH in
- 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;;
+ 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
make PREFIX="$PKG/usr" BINDIR=$PKG/usr/games install
cd ..
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
mkdir $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-mv AUTHORS Copying.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION/
+cp 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 6aeb1a5c6c..771dfd9036 100644
--- a/games/stockfish/stockfish.info
+++ b/games/stockfish/stockfish.info
@@ -1,12 +1,14 @@
PRGNAM="stockfish"
-VERSION="14.1"
+VERSION="16.1"
HOMEPAGE="https://stockfishchess.org/"
-DOWNLOAD="https://github.com/official-stockfish/Stockfish/archive/sf_14.1/Stockfish-sf_14.1.tar.gz \
- https://tests.stockfishchess.org/api/nn/nn-13406b1dcbe0.nnue"
-MD5SUM="2280661e63d69386c882c5ccc0585fcb \
- 895f02663c92cb8f093ea5c74208c94a"
+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=""
MAINTAINER="Johannes Schoepfer"
-EMAIL="slackbuilds at schoepfer dot info"
+EMAIL="slackbuilds@schoepfer.info"