From a5039932aeedf8ef448e62c0855d61a6f2a5a4cd Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 21 Feb 2022 13:30:29 -0500 Subject: [PATCH] games/stockfish: Fix download URL. Signed-off-by: B. Watson --- games/stockfish/stockfish.SlackBuild | 11 ++++++----- games/stockfish/stockfish.info | 6 +++--- 2 files changed, 9 insertions(+), 8 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 \ diff --git a/games/stockfish/stockfish.info b/games/stockfish/stockfish.info index 04e9966ff0..6aeb1a5c6c 100644 --- a/games/stockfish/stockfish.info +++ b/games/stockfish/stockfish.info @@ -1,10 +1,10 @@ PRGNAM="stockfish" VERSION="14.1" HOMEPAGE="https://stockfishchess.org/" -DOWNLOAD="https://github.com/official-stockfish/Stockfish/archive/refs/tags/sf_14.1.tar.gz \ - https://tests.stockfishchess.org/api/nn/nn-13406b1dcbe0.nnue" +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" + 895f02663c92cb8f093ea5c74208c94a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES=""