games/stockfish: Updated for version 15.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Johannes Schoepfer 2023-01-12 19:25:01 +00:00 committed by Willy Sudiarto Raharjo
parent afff71797b
commit a3a9b91f9d
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 15 additions and 18 deletions

View file

@ -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

View file

@ -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"