Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] stockfish: update to 12
@ 2020-09-06  9:29 shtayerc
  0 siblings, 0 replies; only message in thread
From: shtayerc @ 2020-09-06  9:29 UTC (permalink / raw)
  To: ml

[-- 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
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-06  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-06  9:29 [PR PATCH] stockfish: update to 12 shtayerc

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).