From: shtayerc <shtayerc@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] stockfish: update to 12
Date: Sun, 06 Sep 2020 11:29:17 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24708@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 453 bytes --]
There is a new pull request by shtayerc against master on the void-packages repository
https://github.com/shtayerc/void-packages stockfish
https://github.com/void-linux/void-packages/pull/24708
stockfish: update to 12
Net file is fetched with distifiles, otherwise curl is required https://github.com/official-stockfish/Stockfish/blob/master/src/Makefile#L754
A patch file from https://github.com/void-linux/void-packages/pull/24708.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-stockfish-24708.patch --]
[-- Type: text/x-diff, Size: 1623 bytes --]
From fca9fce45b42d2ee2551c697c544869078062168 Mon Sep 17 00:00:00 2001
From: shtayerc <david.murko@mailbox.org>
Date: Sun, 6 Sep 2020 11:28:28 +0200
Subject: [PATCH] stockfish: update to 12
---
srcpkgs/stockfish/template | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/stockfish/template b/srcpkgs/stockfish/template
index d8919d79766..8e0225e0df7 100644
--- a/srcpkgs/stockfish/template
+++ b/srcpkgs/stockfish/template
@@ -1,7 +1,8 @@
# Template file for 'stockfish'
pkgname=stockfish
-version=11
-revision=2
+version=12
+revision=1
+_net_file=nn-82215d0fd0df.nnue
wrksrc="Stockfish-sf_${version}"
build_wrksrc=src
build_style=gnu-makefile
@@ -11,8 +12,11 @@ short_desc="Free UCI chess engine derived from Glaurung"
maintainer="cipr3s <cipr3s@gmx.com>"
license="GPL-3.0-or-later"
homepage="http://stockfishchess.org/"
-distfiles="https://github.com/official-stockfish/Stockfish/archive/sf_${version}.tar.gz"
-checksum=802261cc601b67bed00c0ef7d21e2125959630f0852a06db9fc9bd74f440b199
+distfiles="https://github.com/official-stockfish/Stockfish/archive/sf_${version}.tar.gz
+ https://tests.stockfishchess.org/api/nn/${_net_file}"
+checksum="d1ec11d1cb8dfc5b33bcd6ec89ed0bafb3951cc1690851448a2696caa2022899
+ 82215d0fd0df3cde17fc47ac024c5b5736823ec390200abdd705c44660c69ee4"
+skip_extraction="${_net_file}"
LDFLAGS+="-lpthread -Wl,-z,stack-size=2097152"
@@ -31,6 +35,10 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
LDFLAGS+=" -latomic"
fi
+post_extract() {
+ cp $XBPS_SRCDISTDIR/${pkgname}-${version}/${_net_file} ./src
+}
+
do_install() {
vbin stockfish
}
reply other threads:[~2020-09-06 9:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24708@inbox.vuxu.org \
--to=shtayerc@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).