games/stockfish: Fix download URL.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2022-02-21 13:30:29 -05:00 committed by Robby Workman
parent 441a125d5d
commit a5039932ae
2 changed files with 9 additions and 8 deletions

View file

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

View file

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