unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#46311] [PATCH] gnu: Add cockatrice.
@ 2021-02-04 23:33 Leo Prikler
  2021-02-05 15:31 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Prikler @ 2021-02-04 23:33 UTC (permalink / raw)
  To: 46311

* gnu/packages/games.scm (cockatrice): New variable.
---
 gnu/packages/games.scm | 46 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index e3e18bf09e..953fd317ed 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -857,6 +857,52 @@ things far stranger and deadlier, and against the others like yourself, that
 want what you have.")
     (license license:cc-by-sa3.0)))
 
+(define-public cockatrice
+  (let ((release-date "2021-01-26"))
+    (package
+      (name "cockatrice")
+      (version "2.8.0")
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/Cockatrice/Cockatrice")
+               (commit (string-append release-date "-Release-" version))))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "0q8ffcklb2b7hcqhy3d2f9kz9aw22pp04pc9y4sslyqmf17pwnz9"))
+         (modules '((guix build utils)))
+         (snippet
+          ;; Strip image URLs as they point towards non-free web services
+          '(substitute* "cockatrice/src/settings/downloadsettings.cpp"
+             (("downloadURLs.append\\(\".*\"\\);") "")))))
+      (build-system cmake-build-system)
+      (arguments
+       `(#:configure-flags '("-DWITH_SERVER=1"
+                             "-DWITH_CLIENT=1"
+                             "-DWITH_ORACLE=1"
+                             "-DTEST=1")))
+      (native-inputs
+       `(("googletest" ,googletest)
+         ("pkg-config" ,pkg-config)))
+      (inputs
+       `(("protobuf" ,protobuf)
+         ("qtbase" ,qtbase)
+         ("qtmultimedia" ,qtmultimedia)
+         ("qtsvg" ,qtsvg)
+         ("qttools" ,qttools)
+         ("qtwebsockets" ,qtwebsockets)
+         ("xz" ,xz)
+         ("zlib" ,zlib)))
+      (home-page "https://cockatrice.github.io")
+      (synopsis "Tabletop card game simulator")
+      (description "Cockatrice is an open-source, multiplatform program for
+playing tabletop card games over a network.  The program's server design
+prevents users from manipulating the game for unfair advantage.  The client
+also provides a single-player mode, which allows users to brew while offline.")
+      (license license:gpl2))))
+
 (define-public corsix-th
   (package
     (name "corsix-th")
-- 
2.30.0





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#46311] [PATCH] gnu: Add cockatrice.
  2021-02-04 23:33 [bug#46311] [PATCH] gnu: Add cockatrice Leo Prikler
@ 2021-02-05 15:31 ` Nicolas Goaziou
  2021-02-05 16:39   ` bug#46311: " Leo Prikler
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2021-02-05 15:31 UTC (permalink / raw)
  To: Leo Prikler; +Cc: 46311

Hello,

Leo Prikler <leo.prikler@student.tugraz.at> writes:

> +      (description "Cockatrice is an open-source, multiplatform program for
> +playing tabletop card games over a network.  

I suggest to remove "open-source" and "multiplatform" from the
description.

Otherwise, LGTM!

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#46311: [PATCH] gnu: Add cockatrice.
  2021-02-05 15:31 ` Nicolas Goaziou
@ 2021-02-05 16:39   ` Leo Prikler
  0 siblings, 0 replies; 3+ messages in thread
From: Leo Prikler @ 2021-02-05 16:39 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 46311-done

Hello,

Am Freitag, den 05.02.2021, 16:31 +0100 schrieb Nicolas Goaziou:
> I suggest to remove "open-source" and "multiplatform" from the
> description.
> 
> Otherwise, LGTM!
Changed and pushed.  Thanks!





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-05 16:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 23:33 [bug#46311] [PATCH] gnu: Add cockatrice Leo Prikler
2021-02-05 15:31 ` Nicolas Goaziou
2021-02-05 16:39   ` bug#46311: " Leo Prikler

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).