Subject: bug#25695: angband [new package]

From: Christopher Allan Webber <[email-masked]>
Date: Sun, 12 Feb 2017 08:00:46 -0600

This patch adds Angband, one of those delightfully life-destroying
roguelikes.  Now you too can ruin your life chasing an @ around a screen
for hours at a time.  Horray!

From c167b96d38acf580e42a618b6211c007760949f0 Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <[email-masked]>
Date: Fri, 10 Feb 2017 16:45:11 -0600
Subject: [PATCH] gnu: Add angband.

* gnu/packages/games.scm (angband): New variable.
---
 gnu/packages/games.scm | 37 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 0867089d5..0df1f69e5 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -10,7 +10,7 @@
 ;;; Copyright © 2014, 2015 Mark H Weaver <[email-masked]>
 ;;; Copyright © 2015, 2016 Andreas Enge <[email-masked]>
 ;;; Copyright © 2015 David Hashe <[email-masked]>
-;;; Copyright © 2015 Christopher Allan Webber <[email-masked]>
+;;; Copyright © 2015, 2017 Christopher Allan Webber <[email-masked]>
 ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <[email-masked]>
 ;;; Copyright © 2015, 2016, 2017 Alex Kost <[email-masked]>
 ;;; Copyright © 2015 Paul van der Walt <[email-masked]>
@@ -227,6 +227,41 @@ them, called Jean Raymond, found an old church in which to hide, not knowing
 that beneath its ruins lay buried an ancient evil.")
     (license license:gpl3)))
 
+(define-public angband
+  (package
+    (name "angband")
+    (version "4.0.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://rephial.org/downloads/4.0/"
+                           "angband-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0lpq2kms7hp421vrasx2bkkn9w08kr581ldwik3v0hlq6h7rlxhd"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f                                 ;no check target
+       ;; #:configure-flags '("--enable-sdl")
+       #:configure-flags (list (string-append "--bindir=" %output "/bin"))
+       #:phases (modify-phases %standard-phases
+                  (add-after
+                   'unpack 'autogen.sh
+                   (lambda _
+                     (substitute* "acinclude.m4"
+                       (("ncursesw5-config") "ncursesw6-config"))
+                     (zero? (system* "sh" "autogen.sh"))))))) 
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)))
+    (inputs `(("ncurses" ,ncurses)))
+    (home-page "http://rephial.org/")
+    (synopsis "Dungeon exploration roguelike")
+    (description "Classic dungeon exploration roguelike.  Explore the depths
+below Angband, seeking riches, fighting monsters, and preparing to fight
+Morgoth, the Lord of Darkness.")
+    (license license:gpl2)))
+
 (define-public pingus
   (package
     (name "pingus")
-- 
2.11.0