diff options
author | Franzen <slackbuilds@schoepfer.info> | 2022-02-06 13:45:12 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-06 13:45:12 +0700 |
commit | df8e573045ff971dde8094b64559575f828cbe32 (patch) | |
tree | a54ed632d93654e455913c104d86d39b2aca5ff1 /games/stockfish/stockfish.SlackBuild | |
parent | 457c0ba4f2b63ebedbe748d19056a123f06a7649 (diff) |
games/stockfish: Updated for version 14.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/stockfish/stockfish.SlackBuild')
-rw-r--r-- | games/stockfish/stockfish.SlackBuild | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/games/stockfish/stockfish.SlackBuild b/games/stockfish/stockfish.SlackBuild index 944ce0bacd..a604080946 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 |