[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: Add wesnoth-server.
From: |
Arun Isaac |
Subject: |
01/02: gnu: Add wesnoth-server. |
Date: |
Fri, 9 Feb 2018 04:51:40 -0500 (EST) |
arunisaac pushed a commit to branch master
in repository guix.
commit 75abd864fc504491c665d0375360452b0d9fc669
Author: Arun Isaac <address@hidden>
Date: Sun Jan 21 21:08:41 2018 +0530
gnu: Add wesnoth-server.
* gnu/packages/games.scm (wesnoth-server): New variable.
---
gnu/packages/games.scm | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index e2f855a..286d0fe 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -25,7 +25,7 @@
;;; Copyright © 2016 Jan Nieuwenhuizen <address@hidden>
;;; Copyright © 2016 Steve Webber <address@hidden>
;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira
<https://libreplanet.org/wiki/User:Adfeno> <address@hidden>
-;;; Copyright © 2017 Arun Isaac <address@hidden>
+;;; Copyright © 2017, 2018 Arun Isaac <address@hidden>
;;; Copyright © 2017 Tobias Geerinckx-Rice <address@hidden>
;;; Copyright © 2017 nee <address@hidden>
;;; Copyright © 2017 Clément Lassieur <address@hidden>
@@ -1890,6 +1890,29 @@ experience and advance levels, and are carried over from
one scenario to the
next campaign.")
(license license:gpl2+)))
+(define-public wesnoth-server
+ (package
+ (inherit wesnoth)
+ (name "wesnoth-server")
+ (inputs
+ `(("boost" ,boost)
+ ("sdl-net" ,sdl-net)))
+ (arguments
+ (append
+ (substitute-keyword-arguments (package-arguments wesnoth)
+ ((#:configure-flags configure-flags)
+ `(append ,configure-flags (list "-DENABLE_GAME=OFF"))))
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; Delete game assets not required by the server.
+ (add-after 'install 'delete-data
+ (lambda* (#:key outputs #:allow-other-keys)
+ (delete-file-recursively (string-append (assoc-ref outputs "out")
+ "/share/wesnoth"))))))))
+ (synopsis "Dedicated @emph{Battle for Wesnoth} server")
+ (description "This package contains a dedicated server for @emph{The
+Battle for Wesnoth}.")))
+
(define-public dosbox
(package
(name "dosbox")