diff options
author | Johannes Schoepfer <slackbuilds@schoepfer.info> | 2023-01-12 19:25:01 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-14 08:50:06 +0700 |
commit | a3a9b91f9d84f9f4ecc0d56c454e692b844f12a0 (patch) | |
tree | cef8e8761c982b8b4e29089281742dd569146e9f | |
parent | afff71797ba6bac0c9f33f2a6ee317f993fba86d (diff) |
games/stockfish: Updated for version 15.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/stockfish/stockfish.SlackBuild | 21 | ||||
-rw-r--r-- | games/stockfish/stockfish.info | 12 |
2 files changed, 15 insertions, 18 deletions
diff --git a/games/stockfish/stockfish.SlackBuild b/games/stockfish/stockfish.SlackBuild index 2158a8869014..0bc23997e828 100644 --- a/games/stockfish/stockfish.SlackBuild +++ b/games/stockfish/stockfish.SlackBuild @@ -29,7 +29,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=stockfish -VERSION=${VERSION:-14.1} +NNUE="nn-ad9b42354671.nnue" +VERSION=${VERSION:-15.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -72,7 +73,7 @@ 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 . @@ -84,27 +85,23 @@ find -L . \ 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) make profile-build ARCH=x86-64$OPT;; + i?86) make profile-build ARCH=x86-32 ;; + arm) 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 6aeb1a5c6c9f..d70a9b537f85 100644 --- a/games/stockfish/stockfish.info +++ b/games/stockfish/stockfish.info @@ -1,12 +1,12 @@ PRGNAM="stockfish" -VERSION="14.1" +VERSION="15.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_15.1/Stockfish-sf_15.1.tar.gz \ + https://tests.stockfishchess.org/api/nn/nn-ad9b42354671.nnue" +MD5SUM="59be43846a60ee550c26f6e4ebf02d3a \ + 3625867d1d6ac21dc8d8046afa0ddb58" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" MAINTAINER="Johannes Schoepfer" -EMAIL="slackbuilds at schoepfer dot info" +EMAIL="slackbuilds@schoepfer.info" |