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.SlackBuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/games/stockfish/stockfish.SlackBuild b/games/stockfish/stockfish.SlackBuild
index a604080946..2158a88690 100644
--- a/games/stockfish/stockfish.SlackBuild
+++ b/games/stockfish/stockfish.SlackBuild
@@ -22,6 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220221 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - fix incorrect github download filename.
+# - binary in /usr/games.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=stockfish
@@ -38,9 +42,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -70,7 +71,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf Stockfish-sf_$VERSION
-tar vxf $CWD/sf_$VERSION.tar.gz
+tar vxf $CWD/Stockfish-sf_$VERSION.tar.gz
cp $CWD/nn-13406b1dcbe0.nnue Stockfish-sf_$VERSION/src/
cd Stockfish-sf_$VERSION
@@ -93,7 +94,7 @@ case $ARCH in
*) make build ARCH=general-32 COMP=gcc;;
esac
-make PREFIX="$PKG/usr" install
+make PREFIX="$PKG/usr" BINDIR=$PKG/usr/games install
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \