aboutsummaryrefslogtreecommitdiff
path: root/games/stockfish/stockfish.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/stockfish/stockfish.SlackBuild')
-rw-r--r--games/stockfish/stockfish.SlackBuild21
1 files changed, 9 insertions, 12 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