unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#44658] Add new package
@ 2020-11-15 13:18 luhux
  2020-11-15 21:08 ` bug#44658: " Julien Lepiller
  0 siblings, 1 reply; 2+ messages in thread
From: luhux @ 2020-11-15 13:18 UTC (permalink / raw)
  To: 44658

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: 0001-gnu-Add-curseofwar.patch --]
[-- Type: text/plain, Size: 2315 bytes --]

From 00558ff186ede619704b7e4df8da3b87c4b002c7 Mon Sep 17 00:00:00 2001
From: luhux <luhux@outlook.com>
Date: Sun, 15 Nov 2020 21:15:33 +0800
Subject: [PATCH] gnu: Add curseofwar

---
 gnu/packages/games.scm | 43 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 439e369fe4..f6072370aa 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -54,6 +54,7 @@
 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
+;;; Copyright © 2020 Lu hux <luhux@outlook.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -11942,3 +11943,45 @@ inside the Zenith Colony.")
 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
 game FPS.")
       (license license:unlicense))))
+
+(define-public curseofwar
+  (package
+    (name "curseofwar")
+    (version "1.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/a-nikolaev/curseofwar")
+             (commit (string-append "v" version))))
+       (sha256
+        (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))
+       (file-name (git-file-name name version))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases
+           %standard-phases
+         (replace 'configure
+           (lambda _
+             ;; no need configure
+             #t))
+         (replace 'build
+           (lambda _
+             (invoke "make" "CC=gcc")
+             #t))
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (invoke "make" "install"
+                       (string-append "DESTDIR=" out)
+                       (string-append "PREFIX="))))))))
+    (inputs
+     `(("ncurses" ,ncurses)))
+    (home-page "https://a-nikolaev.github.io/curseofwar/")
+    (synopsis "Fast-paced action strategy game")
+    (description "\
+Curse of War is a fast-paced action strategy game for Linux originally
+implemented using ncurses user")
+    (license license:gpl3)))
-- 
2.29.2


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

* bug#44658: Add new package
  2020-11-15 13:18 [bug#44658] Add new package luhux
@ 2020-11-15 21:08 ` Julien Lepiller
  0 siblings, 0 replies; 2+ messages in thread
From: Julien Lepiller @ 2020-11-15 21:08 UTC (permalink / raw)
  To: luhux; +Cc: 44658-done

[-- Attachment #1: Type: text/plain, Size: 394 bytes --]

Pushed as 15929beb5f1cd2bf96c53eef0f5da3e986c30530, thank you!

I did some small changes to the package definition, so I attach the
actual patch I pushed, so you can review it and hopefully learn from it
:)

When you don't need a phase, you can delete it, instead of replacing it
with a procedure that does nothing. To pass arguments to the make
command, you can use the #:make-flags argument.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-curseofwar.patch --]
[-- Type: text/x-patch, Size: 2071 bytes --]

From 15929beb5f1cd2bf96c53eef0f5da3e986c30530 Mon Sep 17 00:00:00 2001
From: luhux <luhux@outlook.com>
Date: Sun, 15 Nov 2020 21:15:33 +0800
Subject: [PATCH] gnu: Add curseofwar

Signed-off-by: Julien Lepiller <julien@lepiller.eu>
---
 gnu/packages/games.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 439e369fe4..4ab7436daf 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -54,6 +54,7 @@
 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
+;;; Copyright © 2020 Lu hux <luhux@outlook.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -11942,3 +11943,32 @@ inside the Zenith Colony.")
 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
 game FPS.")
       (license license:unlicense))))
+
+(define-public curseofwar
+  (package
+    (name "curseofwar")
+    (version "1.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/a-nikolaev/curseofwar")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f; no tests
+       #:make-flags
+       (list "CC=gcc" "PREFIX="
+             (string-append "DESTDIR=" (assoc-ref %outputs "out")))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (inputs `(("ncurses" ,ncurses)))
+    (home-page "https://a-nikolaev.github.io/curseofwar/")
+    (synopsis "Fast-paced action strategy game")
+    (description "Curse of War is a fast-paced action strategy game for
+Linux originally implemented using ncurses user interface.")
+    (license license:gpl3)))
-- 
2.29.2


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

end of thread, other threads:[~2020-11-15 21:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-15 13:18 [bug#44658] Add new package luhux
2020-11-15 21:08 ` bug#44658: " Julien Lepiller

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