mirror of
https://github.com/Ponce/slackbuilds
synced 2024-09-29 17:37:55 +02:00
games/stockfish: Updated for version 14.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
457c0ba4f2
commit
df8e573045
2 changed files with 16 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue