Subject: [bug#44658] Add new package

From: luhux <[email-masked]>
Date: Sun, 15 Nov 2020 13:18:40 +0000

>From 00558ff186ede619704b7e4df8da3b87c4b002c7 Mon Sep 17 00:00:00 2001
From: luhux <[email-masked]>
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 <[email-masked]>
 ;;; Copyright © 2020 Trevor Hass <[email-masked]>
 ;;; Copyright © 2020 Leo Prikler <[email-masked]>
+;;; Copyright © 2020 Lu hux <[email-masked]>
 ;;;
 ;;; 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