gnu: wesnoth: Update to 1.14.16.
[jackhill/guix/guix.git] / gnu / packages / games.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Eric Bavier <bavier@posteo.net>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015, 2019 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015, 2017, 2018 Christopher Lemmer Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2021 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017, 2019 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
35 ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
36 ;;; Copyright © 2018 Madalin Ionel-Patrascu <madalinionel.patrascu@mdc-berlin.de>
37 ;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
38 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
39 ;;; Copyright © 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
40 ;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
41 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
42 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
43 ;;; Copyright © 2019, 2020 Jesse Gibbons <jgibbons2357+guix@gmail.com>
44 ;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
45 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
46 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
47 ;;; Copyright © 2019 Josh Holland <josh@inv.alid.pw>
48 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
49 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
50 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
51 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
52 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
53 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
54 ;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020, 2021 Leo Prikler <leo.prikler@student.tugraz.at>
57 ;;; Copyright © 2020 Lu hux <luhux@outlook.com>
58 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
59 ;;; Copyright © 2021 Olivier Rojon <o.rojon@posteo.net>
60 ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
61 ;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
62 ;;;
63 ;;; This file is part of GNU Guix.
64 ;;;
65 ;;; GNU Guix is free software; you can redistribute it and/or modify it
66 ;;; under the terms of the GNU General Public License as published by
67 ;;; the Free Software Foundation; either version 3 of the License, or (at
68 ;;; your option) any later version.
69 ;;;
70 ;;; GNU Guix is distributed in the hope that it will be useful, but
71 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
72 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
73 ;;; GNU General Public License for more details.
74 ;;;
75 ;;; You should have received a copy of the GNU General Public License
76 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
77
78 (define-module (gnu packages games)
79 #:use-module (ice-9 match)
80 #:use-module ((guix licenses) #:prefix license:)
81 #:use-module (guix utils)
82 #:use-module (guix packages)
83 #:use-module (guix download)
84 #:use-module (guix git-download)
85 #:use-module (guix svn-download)
86 #:use-module (guix gexp)
87 #:use-module (gnu packages)
88 #:use-module (gnu packages adns)
89 #:use-module (gnu packages algebra)
90 #:use-module (gnu packages autotools)
91 #:use-module (gnu packages backup)
92 #:use-module (gnu packages base)
93 #:use-module (gnu packages build-tools)
94 #:use-module (gnu packages admin)
95 #:use-module (gnu packages audio)
96 #:use-module (gnu packages avahi)
97 #:use-module (gnu packages assembly)
98 #:use-module (gnu packages bash)
99 #:use-module (gnu packages bison)
100 #:use-module (gnu packages boost)
101 #:use-module (gnu packages check)
102 #:use-module (gnu packages cmake)
103 #:use-module (gnu packages compression)
104 #:use-module (gnu packages cpp)
105 #:use-module (gnu packages curl)
106 #:use-module (gnu packages crypto)
107 #:use-module (gnu packages cyrus-sasl)
108 #:use-module (gnu packages documentation)
109 #:use-module (gnu packages docbook)
110 #:use-module (gnu packages emulators)
111 #:use-module (gnu packages flex)
112 #:use-module (gnu packages fltk)
113 #:use-module (gnu packages fonts)
114 #:use-module (gnu packages fontutils)
115 #:use-module (gnu packages freedesktop)
116 #:use-module (gnu packages fribidi)
117 #:use-module (gnu packages game-development)
118 #:use-module (gnu packages gcc)
119 #:use-module (gnu packages gettext)
120 #:use-module (gnu packages ghostscript)
121 #:use-module (gnu packages gimp)
122 #:use-module (gnu packages gl)
123 #:use-module (gnu packages glib)
124 #:use-module (gnu packages gnome)
125 #:use-module (gnu packages gnu-doc)
126 #:use-module (gnu packages gnupg)
127 #:use-module (gnu packages gnuzilla)
128 #:use-module (gnu packages gperf)
129 #:use-module (gnu packages graphics)
130 #:use-module (gnu packages gsasl)
131 #:use-module (gnu packages gstreamer)
132 #:use-module (gnu packages gtk)
133 #:use-module (gnu packages guile)
134 #:use-module (gnu packages haskell)
135 #:use-module (gnu packages haskell-crypto)
136 #:use-module (gnu packages haskell-xyz)
137 #:use-module (gnu packages icu4c)
138 #:use-module (gnu packages image)
139 #:use-module (gnu packages imagemagick)
140 #:use-module (gnu packages javascript)
141 #:use-module (gnu packages kde)
142 #:use-module (gnu packages kde-frameworks)
143 #:use-module (gnu packages less)
144 #:use-module (gnu packages libcanberra)
145 #:use-module (gnu packages libedit)
146 #:use-module (gnu packages libunwind)
147 #:use-module (gnu packages linux)
148 #:use-module (gnu packages llvm)
149 #:use-module (gnu packages lua)
150 #:use-module (gnu packages man)
151 #:use-module (gnu packages maths)
152 #:use-module (gnu packages messaging)
153 #:use-module (gnu packages mp3)
154 #:use-module (gnu packages music)
155 #:use-module (gnu packages multiprecision)
156 #:use-module (gnu packages ncurses)
157 #:use-module (gnu packages netpbm)
158 #:use-module (gnu packages networking)
159 #:use-module (gnu packages ocaml)
160 #:use-module (gnu packages opencl)
161 #:use-module (gnu packages pcre)
162 #:use-module (gnu packages perl)
163 #:use-module (gnu packages perl-check)
164 #:use-module (gnu packages perl-compression)
165 #:use-module (gnu packages pkg-config)
166 #:use-module (gnu packages protobuf)
167 #:use-module (gnu packages pulseaudio)
168 #:use-module (gnu packages python)
169 #:use-module (gnu packages python-xyz)
170 #:use-module (gnu packages qt)
171 #:use-module (gnu packages readline)
172 #:use-module (gnu packages ruby)
173 #:use-module (gnu packages shells)
174 #:use-module (gnu packages sdl)
175 #:use-module (gnu packages serialization)
176 #:use-module (gnu packages sqlite)
177 #:use-module (gnu packages squirrel)
178 #:use-module (gnu packages swig)
179 #:use-module (gnu packages tcl)
180 #:use-module (gnu packages terminals)
181 #:use-module (gnu packages texinfo)
182 #:use-module (gnu packages textutils)
183 #:use-module (gnu packages tls)
184 #:use-module (gnu packages upnp)
185 #:use-module (gnu packages video)
186 #:use-module (gnu packages vulkan)
187 #:use-module (gnu packages web)
188 #:use-module (gnu packages wget)
189 #:use-module (gnu packages wxwidgets)
190 #:use-module (gnu packages xdisorg)
191 #:use-module (gnu packages xorg)
192 #:use-module (gnu packages xiph)
193 #:use-module (gnu packages xml)
194 #:use-module (guix build-system copy)
195 #:use-module (guix build-system cmake)
196 #:use-module (guix build-system glib-or-gtk)
197 #:use-module (guix build-system gnu)
198 #:use-module (guix build-system go)
199 #:use-module (guix build-system meson)
200 #:use-module (guix build-system perl)
201 #:use-module (guix build-system python)
202 #:use-module (guix build-system qt)
203 #:use-module (guix build-system scons)
204 #:use-module (guix build-system trivial)
205 #:use-module ((srfi srfi-1) #:hide (zip))
206 #:use-module (srfi srfi-26))
207
208 (define-public abe
209 (package
210 (name "abe")
211 (version "1.1")
212 (source
213 (origin
214 (method url-fetch)
215 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
216 "/abe-" version ".tar.gz"))
217 (sha256
218 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
219 (build-system gnu-build-system)
220 (arguments
221 `(#:configure-flags
222 (list (string-append "--with-data-dir="
223 (assoc-ref %outputs "out")
224 "/share/abe"))
225 #:phases
226 (modify-phases %standard-phases
227 (replace 'bootstrap
228 (lambda _ (invoke "sh" "autogen.sh")))
229 (add-before 'build 'set-SDL
230 ;; Set correct environment for SDL.
231 (lambda* (#:key inputs #:allow-other-keys)
232 (setenv "CPATH"
233 (string-append
234 (assoc-ref inputs "sdl") "/include/SDL:"
235 (or (getenv "CPATH") "")))
236 #t))
237 (add-after 'install 'finalize-install
238 (lambda* (#:key outputs #:allow-other-keys)
239 (let ((share (string-append (assoc-ref outputs "out") "/share")))
240 ;; Installation script does not copy game data files.
241 (let ((data (string-append share "/abe")))
242 (for-each (lambda (dir)
243 (let ((target (string-append data "/" dir)))
244 (mkdir-p target)
245 (copy-recursively dir target)))
246 '("images" "maps" "sounds")))
247 ;; Create desktop file.
248 (let ((apps (string-append share "/applications")))
249 (mkdir-p apps)
250 (make-desktop-entry-file
251 (string-append apps "/abe.desktop")
252 #:name "Abe's Amazing Adventure"
253 #:exec ,name
254 #:categories '("AdventureGame" "Game")
255 #:keywords
256 '("side-scrolling" "adventure" "pyramid" "singleplayer")
257 #:comment
258 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
259 (#f "Side-scrolling game")))))
260 #t)))))
261 (native-inputs
262 `(("autoconf" ,autoconf)
263 ("automake" ,automake)))
264 (inputs
265 `(("libxi" ,libxi)
266 ("libxmu" ,libxmu)
267 ("libxt" ,libxt)
268 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
269 (home-page "http://abe.sourceforge.net")
270 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
271 (description
272 "Abe's Amazing Adventure is a scrolling,
273 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
274 the style of similar games for the Commodore+4.")
275 (license license:gpl2+)))
276
277 ;; Data package for adanaxisgpl.
278 (define adanaxis-mush
279 (let ((version "1.1.0"))
280 (origin
281 (method url-fetch)
282 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
283 version ".tar.gz"))
284 (sha256
285 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
286
287 (define-public adanaxisgpl
288 (package
289 (name "adanaxisgpl")
290 (version "1.2.5")
291 (source
292 (origin
293 (method url-fetch)
294 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
295 version ".tar.gz"))
296 (sha256
297 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
298 (modules '((guix build utils)))
299 (snippet
300 '(begin
301 ;; Necessary for building with gcc >=4.7.
302 (substitute* "src/Mushcore/MushcoreSingleton.h"
303 (("SingletonPtrSet\\(new SingletonType\\);")
304 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
305 ;; Avoid an "invalid conversion from const char* to char*" error.
306 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
307 (("char \\*end, \\*result;")
308 (string-append "const char *end;"
309 "\n"
310 "char *result;")))
311 #t))))
312 (build-system gnu-build-system)
313 (arguments
314 `(#:tests? #f ; no check target
315 #:phases
316 (modify-phases %standard-phases
317 (add-after 'install 'install-data
318 (lambda* (#:key inputs outputs #:allow-other-keys)
319 (let ((data (assoc-ref inputs "adanaxis-mush"))
320 (share (string-append (assoc-ref outputs "out")
321 "/share/" ,name "-" ,version)))
322 (mkdir-p share)
323 (invoke "tar" "xvf" data "-C" share)))))))
324 (native-inputs
325 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
326 (inputs
327 `(("expat" ,expat)
328 ("freeglut" ,freeglut)
329 ("glu" ,glu)
330 ("libjpeg" ,libjpeg-turbo)
331 ("libogg" ,libogg)
332 ("libtiff" ,libtiff)
333 ("libvorbis" ,libvorbis)
334 ("libx11" ,libx11)
335 ("libxext" ,libxext)
336 ("pcre" ,pcre)
337 ("sdl" ,sdl)
338 ("sdl-mixer" ,sdl-mixer)))
339 (home-page "https://www.mushware.com")
340 (synopsis "Action game in four spatial dimensions")
341 (description
342 "Adanaxis is a fast-moving first person shooter set in deep space, where
343 the fundamentals of space itself are changed. By adding another dimension to
344 space this game provides an environment with movement in four directions and
345 six planes of rotation. Initially the game explains the 4D control system via
346 a graphical sequence, before moving on to 30 levels of gameplay with numerous
347 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
348 mouse and joystick control, and original music.")
349 (license license:gpl2)))
350
351 (define-public alex4
352 (package
353 (name "alex4")
354 (version "1.2.1")
355 (source
356 (origin
357 (method git-fetch)
358 (uri (git-reference
359 (url "https://github.com/carstene1ns/alex4")
360 (commit version)))
361 (file-name (git-file-name name version))
362 (sha256
363 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
364 (build-system gnu-build-system)
365 (arguments
366 `(#:tests? #f ; no check target
367 #:make-flags
368 (list "CC=gcc"
369 "CFLAGS=-D_FILE_OFFSET_BITS=64"
370 (string-append "PREFIX=" (assoc-ref %outputs "out")))
371 #:phases
372 (modify-phases %standard-phases
373 (delete 'configure) ; no configure script
374 (add-after 'install 'install-data
375 (lambda* (#:key outputs #:allow-other-keys)
376 (let ((share (string-append (assoc-ref outputs "out")
377 "/share/" ,name)))
378 (install-file "alex4.ini" share)
379 #t))))))
380 (inputs
381 `(("allegro" ,allegro-4)
382 ("dumb" ,dumb-allegro4)))
383 (home-page "http://allegator.sourceforge.net/")
384 (synopsis "Retro platform game")
385 (description
386 "Guide Alex the Allegator through the jungle in order to save his
387 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
388 Plenty of classic platforming in four nice colors guaranteed!
389
390 The game includes a built-in editor so you can design and share your own maps.")
391 (license license:gpl2+)))
392
393 (define-public armagetronad
394 (package
395 (name "armagetronad")
396 (version "0.2.9.0.1")
397 (source (origin
398 (method url-fetch)
399 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
400 version "/armagetronad-" version ".tbz"))
401 (sha256
402 (base32
403 "19rfhlg4gp0r7k1j8v4iw20325ciy156nmzax4xikmw22c6nmxcz"))))
404 (build-system gnu-build-system)
405 (native-inputs
406 `(("pkg-config" ,pkg-config)))
407 (inputs
408 `(("libxml2" ,libxml2)
409 ("sdl" ,sdl)
410 ("sdl-image" ,sdl-image)
411 ("freeglut" ,freeglut)
412 ("libpng" ,libpng)
413 ("libjpeg-turbo" ,libjpeg-turbo)))
414 (home-page "http://www.armagetronad.org")
415 (synopsis "Tron clone in 3D")
416 (description "Armagetron Advanced is a multiplayer game in 3d that
417 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
418 It's an old school arcade game slung into the 21st century. Highlights
419 include a customizable playing arena, HUD, unique graphics, and AI bots. For
420 the more advanced player there are new game modes and a wide variety of
421 physics settings to tweak as well.")
422 (license license:gpl2+)))
423
424 (define-public astromenace
425 (package
426 (name "astromenace")
427 (version "1.4.1")
428 (source
429 (origin
430 (method git-fetch)
431 (uri (git-reference
432 (url "https://github.com/viewizard/astromenace")
433 (commit (string-append "v" version))))
434 (file-name (git-file-name name version))
435 (sha256
436 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
437 (build-system cmake-build-system)
438 (arguments
439 `(#:tests? #f ;no test
440 #:configure-flags (list (string-append "-DDATADIR="
441 (assoc-ref %outputs "out")
442 "/share/astromenace"))
443 #:phases
444 (modify-phases %standard-phases
445 (replace 'install
446 ;; Upstream provides no install phase.
447 (lambda* (#:key inputs outputs #:allow-other-keys)
448 (let* ((out (assoc-ref outputs "out"))
449 (bin (string-append out "/bin"))
450 (share (string-append out "/share"))
451 (apps (string-append share "/applications"))
452 (data (string-append share "/astromenace"))
453 (icons (string-append share "/icons/hicolor/64x64/apps")))
454 (install-file "astromenace" bin)
455 (install-file "gamedata.vfs" data)
456 (let ((source (assoc-ref inputs "source")))
457 (with-directory-excursion (string-append source "/share")
458 (install-file "astromenace.desktop" apps)
459 (mkdir-p icons)
460 (copy-file "astromenace_64.png"
461 (string-append icons "/astromenace.png")))))
462 #t)))))
463 (inputs
464 `(("freealut" ,freealut)
465 ("freetype" ,freetype)
466 ("glu" ,glu)
467 ("libogg" ,libogg)
468 ("libvorbis" ,libvorbis)
469 ("openal" ,openal)
470 ("sdl2" ,sdl2)))
471 (home-page "https://www.viewizard.com/")
472 (synopsis "3D space shooter with spaceship upgrade possibilities")
473 (description
474 "Space is a vast area, an unbounded territory where it seems there is
475 a room for everybody, but reversal of fortune put things differently. The
476 hordes of hostile creatures crawled out from the dark corners of the universe,
477 craving to conquer your homeland. Their force is compelling, their legions
478 are interminable. However, humans didn't give up without a final showdown and
479 put their best pilot to fight back. These malicious invaders chose the wrong
480 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
481 regret their insolence.")
482 ;; Game is released under GPL3+ terms. Artwork is subject to CC
483 ;; BY-SA 4.0, and fonts to OFL1.1.
484 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
485
486 (define-public bastet
487 (package
488 (name "bastet")
489 (version "0.43.2")
490 (source
491 (origin
492 (method git-fetch)
493 (uri (git-reference
494 (url "https://github.com/fph/bastet")
495 (commit version)))
496 (file-name (git-file-name name version))
497 (sha256
498 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
499 (patches
500 (search-patches "bastet-change-source-of-unordered_set.patch"))))
501 (build-system gnu-build-system)
502 (arguments
503 `(#:make-flags
504 (list (string-append "CXXFLAGS=-I"
505 (assoc-ref %build-inputs "boost") "/include"))
506 #:phases
507 (modify-phases %standard-phases
508 (delete 'configure) ; no configure script
509 (replace 'check
510 ;; The 'Test' target builds the tests, but doesn't actually run them.
511 (lambda* (#:key make-flags #:allow-other-keys)
512 (apply invoke "make" "Test" make-flags)
513 (setenv "HOME" ".")
514 (invoke "./Test")))
515 (replace 'install
516 (lambda* (#:key outputs #:allow-other-keys)
517 (let* ((out (assoc-ref outputs "out"))
518 (share (string-append out "/share"))
519 (hicolor (string-append share "/icons/hicolor")))
520 (install-file "bastet"
521 (string-append out "/bin"))
522
523 (install-file "bastet.desktop"
524 (string-append share "/applications"))
525 (install-file "bastet.svg"
526 (string-append hicolor "/scalable/apps"))
527
528 (install-file "bastet.appdata.xml"
529 (string-append share "/appdata"))
530
531 (install-file "bastet.6"
532 (string-append out "/share/man/man6"))
533 #t))))))
534 (native-inputs
535 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
536 (inputs
537 `(("boost" ,boost)
538 ("ncurses" ,ncurses)))
539 (home-page "https://fph.altervista.org/prog/bastet.html")
540 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
541 (description
542 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
543 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
544 Instead, it uses a special algorithm to choose the worst brick possible.
545
546 Playing bastet can be a painful experience, especially if you usually make
547 canyons and wait for the long I-shaped block to clear four rows at a time.")
548 (license license:gpl3+)))
549
550 (define-public vitetris
551 (package
552 (name "vitetris")
553 (version "0.59.1")
554 (source
555 (origin
556 (method git-fetch)
557 (uri (git-reference
558 (url "https://github.com/vicgeralds/vitetris")
559 (commit (string-append "v" version))))
560 (sha256
561 (base32 "1ah1c5g7abksif0n8v5rb7r4pn2az20c3mkp4ak13vgs23ddmds5"))
562 (file-name (git-file-name name version))))
563 (build-system gnu-build-system)
564 (arguments
565 `(#:tests? #f ;no test
566 #:make-flags
567 (list ,(string-append "CC=" (cc-for-target))
568 (string-append "DESTDIR=" (assoc-ref %outputs "out")))
569 #:phases
570 (modify-phases %standard-phases
571 (replace 'configure
572 (lambda _
573 ;; the non standard configure script does not accept
574 ;; standard parameters -> invoke configure by hand
575 (invoke "./configure" "prefix=")
576 ;; src/src-conf.mk must be writable for the build step
577 (make-file-writable "src/src-conf.mk"))))))
578 (home-page "http://victornils.net/tetris/")
579 (synopsis "Terminal-based Tetris clone")
580 (description "Vitetris is a classic multiplayer Tetris clone for the
581 terminal.")
582 (license license:bsd-2)))
583
584 (define-public blobwars
585 (package
586 (name "blobwars")
587 (version "2.00")
588 (source
589 (origin
590 (method url-fetch)
591 (uri (string-append "mirror://sourceforge/blobwars/"
592 "blobwars-" version ".tar.gz"))
593 (sha256
594 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
595 (build-system gnu-build-system)
596 (arguments
597 `(#:tests? #f ;no test
598 #:make-flags
599 (let ((out (assoc-ref %outputs "out")))
600 (list (string-append "PREFIX=" out)
601 (string-append "BINDIR=" out "/bin/")
602 "USEPAK=1"
603 "RELEASE=1"))
604 #:phases
605 (modify-phases %standard-phases
606 (add-after 'unpack 'werror-begone
607 (lambda _
608 (substitute* "Makefile" (("-Werror") ""))
609 #t))
610 (delete 'configure)))) ;no configure script
611 (native-inputs
612 `(("gettext" ,gettext-minimal)
613 ("pkg-config" ,pkg-config)))
614 (inputs
615 `(("hicolor-icon-theme" ,hicolor-icon-theme)
616 ("sdl" ,(sdl-union (list sdl2
617 sdl2-image
618 sdl2-mixer
619 sdl2-ttf
620 sdl2-net)))))
621 (home-page "https://sourceforge.net/projects/blobwars/")
622 (synopsis "Platform action game featuring a blob with a lot of weapons")
623 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
624 in the Blobwars series. You take on the role of a fearless Blob agent. Your
625 mission is to infiltrate various enemy bases and rescue as many MIAs as
626 possible, while battling many vicious aliens.")
627 (license (list license:gpl2 ; For code and graphics
628 license:cc0 ; Music and sounds have specific licenses
629 license:cc-by3.0 ; see /doc/readme
630 license:cc-by-sa3.0
631 license:lgpl2.1+
632 license:bsd-2))))
633
634 (define-public bsd-games
635 (package
636 (name "bsd-games")
637 (version "2.17.0")
638 (source
639 (origin
640 (method url-fetch)
641 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
642 (sha256
643 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
644 (patches
645 (search-patches
646 ;; thanks Arch, and Debian
647 "bsd-games-2.17-64bit.patch"
648 "bsd-games-bad-ntohl-cast.patch"
649 "bsd-games-gamescreen.h.patch"
650 "bsd-games-getline.patch"
651 "bsd-games-null-check.patch"
652 "bsd-games-number.c-and-test.patch"
653 "bsd-games-stdio.h.patch"
654 "bsd-games-prevent-name-collisions.patch"
655 ;; Guix customizations
656 "bsd-games-add-configure-config.patch"
657 "bsd-games-dont-install-empty-files.patch"
658 "bsd-games-add-wrapper.patch"))))
659 (build-system gnu-build-system)
660 (native-inputs
661 `(("flex" ,flex)
662 ("bison" ,bison)))
663 (inputs
664 `(("curses" ,ncurses)
665 ("pager" ,less)
666 ("miscfiles" ,miscfiles)
667 ("openssl" ,openssl))) ;used only by 'factor'
668 (arguments
669 `(#:phases
670 (modify-phases %standard-phases
671 (replace 'configure
672 (lambda* (#:key outputs inputs #:allow-other-keys)
673 (let* ((out (assoc-ref outputs "out"))
674 (bin (string-append out "/bin"))
675 (doc (string-append out "/share/doc/bsd-games-" ,version))
676 (man (string-append out "/share/man"))
677 (word-list (string-append (assoc-ref inputs "miscfiles")
678 "/share/web2"))
679 (static-data (string-append out "/share/games/bsd-games"))
680 ;; Not a "./" because of substitute* in 'patch-install
681 ;; below. The .// allow us not to mess with the games'
682 ;; code any further: we just use a wrapper script that
683 ;; cd's to a BSD_GAMES_DIR. :]
684 (save-files ".//"))
685 (substitute* "configure"
686 (("/usr/share/man") man)
687 (("/usr/share/doc/bsd-games") doc)
688 (("/usr/share/[^\n/]*") static-data)
689 (("/var/games") save-files)
690 (("/usr/bin/less") (which "less"))
691 (("(/usr/bin|/usr/games)") bin))
692 (substitute* "config.params" (("WORD_LIST") word-list))
693 (substitute* "wrapper" (("STATIC_DATA") static-data))
694 (invoke "./configure"))
695 #t))
696 (add-before 'install 'patch-install
697 ;; Some games need a writable directory containing pre-maded files.
698 ;; The files get installed to the Store. Then the wrapper kicks in.
699 (lambda* (#:key outputs #:allow-other-keys)
700 (let* ((out (assoc-ref outputs "out"))
701 (static-data (string-append out "/share/games/bsd-games"))
702 (save-files ".//"))
703 (substitute* "Makeconfig" ((save-files) static-data)))
704 #t))
705 (add-after 'install 'install-documents
706 (lambda* (#:key outputs #:allow-other-keys)
707 (let* ((out (assoc-ref outputs "out"))
708 (doc (string-append out "/share/doc/bsd-games-" ,version)))
709 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
710 (for-each
711 (lambda(file) (install-file file doc))
712 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
713 "phantasia-COPYRIGHT")))
714 #t)))))
715 (home-page "https://github.com/vattam/BSDGames")
716 (synopsis "Collection of the old text-based games and amusements")
717 (description
718 "These are the BSD games. See the fortune-mod package for fortunes.
719
720 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
721 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
722 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
723 the $$ from the cave, anger the snake, and get out alive), tetris (game of
724 lining up the falling bricks of different shapes), and worm (eat, grow big,
725 and neither bite your tail, nor ram the wall).
726
727 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
728 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
729 the input), factor (factorizes a number), number (translates numbers into
730 text), pig (translates from English to Pig Latin), pom (should print the
731 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
732 in terminal), random (prints randomly chosen lines from files, or returns a
733 random exit-code), and wtf (explains what do some acronyms mean).
734
735 Board: backgammon (lead the men out of board faster than the friend do),
736 boggle (find the words in the square of letters), dab (game of dots and
737 boxes), gomoku (game of five in a row), hangman (guess a word before man is
738 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
739 canfield, cribbage, fish (juniors game), and mille.
740
741 Quests: adventure (search for treasures with the help of wizard),
742 battlestar (explore the world around, starting from dying spaceship),
743 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
744 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
745
746 Quizes: arithmetic, and quiz.")
747 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
748 ;; not bearing copyright notices, probably fall under the terms of the UCB
749 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
750 ;; warning in regard to the fortune databases."
751 (license (list
752 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
753 ;; lib/strlcpy.c, wargames/wargames.6
754 license:bsd-3
755 ;; dab and hunt. Files: adventure/extern.h,
756 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
757 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
758 ;; hack/extern.h, robots/auto.c, sail/display.h,
759 ;; sail/restart.h, wargames/wargames
760 license:bsd-4
761 ;; wtf (the game)
762 license:public-domain
763 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
764 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
765
766
767 (define-public bzflag
768 (package
769 (name "bzflag")
770 (version "2.4.22")
771 (source
772 (origin
773 (method url-fetch)
774 (uri (string-append "https://download.bzflag.org/bzflag/source/"
775 version "/bzflag-" version ".tar.bz2"))
776 (sha256
777 (base32 "0kba0011nswc2csqlzkd7bas307zm5813zlnby5vsmxn08rnar4y"))))
778 (build-system gnu-build-system)
779 (arguments
780 `(#:phases
781 (modify-phases %standard-phases
782 (add-after 'install 'install-desktop-file-and-icons
783 (lambda* (#:key outputs #:allow-other-keys)
784 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
785 (data (string-append share "/bzflag"))
786 (hicolor (string-append share "/icons/hicolor"))
787 (applications (string-append share "/applications")))
788 ;; Move desktop file.
789 (install-file (string-append data "/bzflag.desktop")
790 applications)
791 ;; Install icons.
792 (for-each (lambda (size)
793 (let* ((dim (string-append size "x" size))
794 (dir (string-append hicolor "/" dim "/apps")))
795 (mkdir-p dir)
796 (copy-file
797 (string-append data "/bzflag-" dim ".png")
798 (string-append dir "/bzflag.png"))))
799 '("48" "256")))
800 #t)))))
801 (native-inputs
802 `(("pkg-config" ,pkg-config)))
803 (inputs
804 `(("c-ares" ,c-ares)
805 ("curl" ,curl)
806 ("glew" ,glew)
807 ("glu" ,glu)
808 ("sdl2" ,sdl2)
809 ("zlib" ,zlib)))
810 (home-page "https://www.bzflag.org/")
811 (synopsis "3D first person tank battle game")
812 (description
813 "BZFlag is a 3D multi-player multiplatform tank battle game that
814 allows users to play against each other in a network environment.
815 There are five teams: red, green, blue, purple and rogue (rogue tanks
816 are black). Destroying a player on another team scores a win, while
817 being destroyed or destroying a teammate scores a loss. Rogues have
818 no teammates (not even other rogues), so they cannot shoot teammates
819 and they do not have a team score.
820
821 There are two main styles of play: capture-the-flag and free-for-all.
822 In capture-the-flag, each team (except rogues) has a team base and
823 each team with at least one player has a team flag. The object is to
824 capture an enemy team's flag by bringing it to your team's base. This
825 destroys every player on the captured team, subtracts one from that
826 team's score, and adds one to your team's score. In free-for-all,
827 there are no team flags or team bases. The object is simply to get as
828 high a score as possible.")
829 ;; The game is dual-licensed.
830 (license (list license:lgpl2.1 license:mpl2.0))))
831
832 (define-public cataclysm-dda
833 (package
834 (name "cataclysm-dda")
835 (version "0.E-3")
836 (source
837 (origin
838 (method git-fetch)
839 (uri (git-reference
840 (url "https://github.com/CleverRaven/Cataclysm-DDA")
841 (commit version)))
842 (sha256
843 (base32 "108cs6vp99qmqqfnmczad0xjgcl82bypm5xszwnlfcswdsrfs4da"))
844 (file-name (git-file-name name version))))
845 (build-system gnu-build-system)
846 (arguments
847 '(#:make-flags
848 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
849 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
850 "LOCALIZE=1" "LANGUAGES=all")
851 #:phases
852 (modify-phases %standard-phases
853 (delete 'configure)
854 (add-after 'build 'build-tiles
855 (lambda* (#:key make-flags outputs #:allow-other-keys)
856 ;; Change prefix directory and enable tile graphics and sound.
857 (apply invoke "make" "TILES=1" "SOUND=1"
858 (string-append "PREFIX="
859 (assoc-ref outputs "tiles"))
860 (cdr make-flags))))
861 (add-after 'install 'install-tiles
862 (lambda* (#:key make-flags outputs #:allow-other-keys)
863 (apply invoke "make" "install" "TILES=1" "SOUND=1"
864 (string-append "PREFIX="
865 (assoc-ref outputs "tiles"))
866 (cdr make-flags)))))
867 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
868 ;; input in order to support tests.
869 #:tests? #f))
870 (outputs '("out"
871 "tiles")) ;for tile graphics and sound support
872 (native-inputs
873 `(("gettext" ,gettext-minimal)
874 ("pkg-config" ,pkg-config)))
875 (inputs
876 `(("freetype" ,freetype)
877 ("libogg" ,libogg)
878 ("libvorbis" ,libvorbis)
879 ("ncurses" ,ncurses)
880 ("sdl2" ,sdl2)
881 ("sdl2-image" ,sdl2-image)
882 ("sdl2-ttf" ,sdl2-ttf)
883 ("sdl2-mixer" ,sdl2-mixer)))
884 (home-page "https://cataclysmdda.org/")
885 (synopsis "Survival horror roguelike video game")
886 (description
887 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
888 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
889 procedurally generated world. Scavenge the remnants of a dead civilization
890 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
891 to get you out of Dodge. Fight to defeat or escape from a wide variety of
892 powerful monstrosities, from zombies to giant insects to killer robots and
893 things far stranger and deadlier, and against the others like yourself, that
894 want what you have.")
895 (license license:cc-by-sa3.0)))
896
897 (define-public cockatrice
898 (let ((release-date "2021-01-26"))
899 (package
900 (name "cockatrice")
901 (version "2.8.0")
902 (source
903 (origin
904 (method git-fetch)
905 (uri (git-reference
906 (url "https://github.com/Cockatrice/Cockatrice")
907 (commit (string-append release-date "-Release-" version))))
908 (file-name (git-file-name name version))
909 (sha256
910 (base32
911 "0q8ffcklb2b7hcqhy3d2f9kz9aw22pp04pc9y4sslyqmf17pwnz9"))
912 (modules '((guix build utils)))
913 (snippet
914 ;; Strip image URLs as they point towards non-free web services
915 '(substitute* "cockatrice/src/settings/downloadsettings.cpp"
916 (("downloadURLs.append\\(\".*\"\\);") "")))))
917 (build-system cmake-build-system)
918 (arguments
919 `(#:configure-flags '("-DWITH_SERVER=1"
920 "-DWITH_CLIENT=1"
921 "-DWITH_ORACLE=1"
922 "-DTEST=1")))
923 (native-inputs
924 `(("googletest" ,googletest)
925 ("pkg-config" ,pkg-config)))
926 (inputs
927 `(("protobuf" ,protobuf)
928 ("qtbase" ,qtbase)
929 ("qtmultimedia" ,qtmultimedia)
930 ("qtsvg" ,qtsvg)
931 ("qttools" ,qttools)
932 ("qtwebsockets" ,qtwebsockets)
933 ("xz" ,xz)
934 ("zlib" ,zlib)))
935 (home-page "https://cockatrice.github.io")
936 (synopsis "Tabletop card game simulator")
937 (description "Cockatrice is a program for playing tabletop card games
938 over a network. Its server design prevents users from manipulating the game
939 for unfair advantage. The client also provides a single-player mode, which
940 allows users to brew while offline.")
941 (license license:gpl2))))
942
943 (define-public corsix-th
944 (package
945 (name "corsix-th")
946 (version "0.64")
947 (source
948 (origin
949 (method git-fetch)
950 (uri (git-reference
951 (url "https://github.com/CorsixTH/CorsixTH")
952 (commit (string-append "v" version))))
953 (file-name (git-file-name name version))
954 (sha256
955 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
956 (build-system cmake-build-system)
957 (arguments
958 `(#:phases
959 (modify-phases %standard-phases
960 (add-after 'install 'wrap-binary
961 (lambda _
962 ;; Set Lua module paths and default MIDI soundfont on startup.
963 (let* ((out (assoc-ref %outputs "out"))
964 (fluid (assoc-ref %build-inputs "fluid-3"))
965 (lua-version ,(version-major+minor (package-version lua)))
966 (lua-cpath
967 (map (lambda (lib)
968 (string-append
969 (assoc-ref %build-inputs (string-append "lua-" lib))
970 "/lib/lua/" lua-version "/?.so"))
971 '("filesystem" "lpeg"))))
972 (wrap-program (string-append out "/bin/corsix-th")
973 `("LUA_CPATH" ";" = ,lua-cpath)
974 `("SDL_SOUNDFONTS" ":" suffix
975 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
976 #t)))
977 #:tests? #f)) ; TODO need busted package to run tests
978 ;; Omit Lua-Socket dependency to disable automatic updates.
979 (inputs
980 `(("ffmpeg" ,ffmpeg)
981 ("fluid-3" ,fluid-3)
982 ("freetype" ,freetype)
983 ("lua" ,lua)
984 ("lua-filesystem" ,lua-filesystem)
985 ("lua-lpeg" ,lua-lpeg)
986 ("sdl2" ,sdl2)
987 ("sdl2-mixer" ,sdl2-mixer)))
988 (home-page "https://corsixth.com")
989 (synopsis "Implementation of the @i{Theme Hospital} game engine")
990 (description
991 "This package provides a reimplementation of the 1997 Bullfrog business
992 simulation game @i{Theme Hospital}. As well as faithfully recreating the
993 original engine, CorsixTH adds support for high resolutions, custom levels and
994 more. This package does @emph{not} provide the game assets.")
995 (license (list
996 license:expat ; main license
997 license:bsd-3)))) ; CorsixTH/Src/random.c
998
999 (define-public cowsay
1000 (package
1001 (name "cowsay")
1002 (version "3.04")
1003 (source (origin
1004 (method git-fetch)
1005 (uri (git-reference
1006 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
1007 (commit (string-append name "-" version))))
1008 (file-name (git-file-name name version))
1009 (sha256
1010 (base32
1011 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
1012 (build-system gnu-build-system)
1013 (arguments
1014 `(#:phases
1015 (modify-phases %standard-phases
1016 (delete 'configure) ; no configure script
1017 (delete 'build) ; nothing to be built
1018 (replace 'install
1019 (lambda* (#:key outputs #:allow-other-keys)
1020 (invoke "sh" "install.sh"
1021 (assoc-ref outputs "out"))))
1022 (delete 'check)
1023 (add-after 'install 'check
1024 (lambda* (#:key outputs #:allow-other-keys)
1025 (invoke (string-append (assoc-ref outputs "out")
1026 "/bin/cowsay")
1027 "We're done!"))))))
1028 (inputs
1029 `(("perl" ,perl)))
1030 (home-page (string-append "https://web.archive.org/web/20071026043648/"
1031 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
1032 (synopsis "Speaking cow text filter")
1033 (description "Cowsay is basically a text filter. Send some text into it,
1034 and you get a cow saying your text. If you think a talking cow isn't enough,
1035 cows can think too: all you have to do is run @command{cowthink}. If you're
1036 tired of cows, a variety of other ASCII-art messengers are available.")
1037 (license license:gpl3+)))
1038
1039 (define-public lolcat
1040 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
1041 (revision "0"))
1042 (package
1043 (name "lolcat")
1044 (version (git-version "1.0" revision commit))
1045 (source
1046 (origin
1047 (method git-fetch)
1048 (uri (git-reference
1049 (url "https://github.com/jaseg/lolcat")
1050 (commit commit)))
1051 (sha256
1052 (base32
1053 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
1054 (file-name (git-file-name name version))))
1055 (build-system gnu-build-system)
1056 (arguments
1057 `(#:tests? #f ; no check target
1058 #:make-flags
1059 (list ,(string-append "CC=" (cc-for-target)))
1060 #:phases
1061 (modify-phases %standard-phases
1062 (delete 'bootstrap)
1063 (delete 'configure)
1064 (replace 'install
1065 (lambda* (#:key outputs #:allow-other-keys)
1066 (let* ((out (assoc-ref outputs "out"))
1067 (dest (string-append out "/bin")))
1068 (mkdir-p dest)
1069 (install-file "lolcat" dest)
1070 (install-file "censor" dest)
1071 #t))))))
1072 (home-page "https://github.com/jaseg/lolcat")
1073 (synopsis "Rainbow coloring effect for text console display")
1074 (description "@command{lolcat} concatenates files and streams like
1075 regular @command{cat}, but it also adds terminal escape codes between
1076 characters and lines resulting in a rainbow effect.")
1077 (license license:wtfpl2))))
1078
1079 (define-public foobillard++
1080 ;; Even though this latest revision is old already, stable release is
1081 ;; lagging way behind it, and has issues with textures rendering.
1082 (let ((svn-revision 170))
1083 (package
1084 (name "foobillard++")
1085 (version (string-append "3.43-r" (number->string svn-revision)))
1086 (source
1087 (origin
1088 (method svn-fetch)
1089 (uri (svn-reference
1090 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1091 (revision svn-revision)))
1092 (file-name (git-file-name name version))
1093 (sha256
1094 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1095 (patches
1096 (search-patches "foobillard++-pkg-config.patch"))
1097 (modules '((guix build utils)))
1098 (snippet
1099 '(begin
1100 ;; Unfortunately, the game includes background music with
1101 ;; a non-commercial clause. Delete it.
1102 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1103 #t))))
1104 (build-system gnu-build-system)
1105 (arguments
1106 `(#:configure-flags
1107 (list
1108 ;; Install data in a less exotic location.
1109 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1110 ;; Prevent a build error about undefined trigonometric functions.
1111 "--enable-fastmath=no")
1112 #:phases
1113 (modify-phases %standard-phases
1114 (add-after 'unpack 'fix-makefile
1115 ;; Remove hard-coded directories. Also fix installation
1116 ;; rule: it tries to move around non-existent files or
1117 ;; files already moved.
1118 (lambda* (#:key outputs #:allow-other-keys)
1119 (substitute* "Makefile.am"
1120 (("/usr") (assoc-ref outputs "out"))
1121 (("cp .*?/foobillardplus\\.desktop.*") "")
1122 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1123 ""))
1124 #t))
1125 (add-after 'unpack 'unbundle-font
1126 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1127 ;; LinBiolinum_aS.ttf, which are not provided by
1128 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1129 ;; them yet.
1130 (lambda* (#:key inputs #:allow-other-keys)
1131 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1132 "/share/fonts/truetype/")))
1133 (with-directory-excursion "data"
1134 (for-each (lambda (f)
1135 (delete-file f)
1136 (symlink (string-append dejavu f) f))
1137 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1138 #t))
1139 (replace 'bootstrap
1140 (lambda _
1141 (invoke "aclocal" "--force")
1142 (invoke "autoconf" "-f")
1143 (invoke "autoheader" "-f")
1144 (invoke "automake" "-a" "-c" "-f")))
1145 (add-before 'build 'prepare-build
1146 ;; Set correct environment for SDL.
1147 (lambda* (#:key inputs #:allow-other-keys)
1148 (setenv "CPATH"
1149 (string-append (assoc-ref inputs "sdl")
1150 "/include/SDL:"
1151 (or (getenv "CPATH") "")))
1152 #t))
1153 (add-before 'build 'fix-settings-directory
1154 ;; Hide foobillardplus settings directory in $HOME.
1155 (lambda _
1156 (substitute* "src/history.c"
1157 (("/foobillardplus-data") "/.foobillardplus"))
1158 #t))
1159 (add-before 'install 'create-directories
1160 ;; Install process does not create directories before
1161 ;; trying to move file in it.
1162 (lambda* (#:key outputs #:allow-other-keys)
1163 (let ((out (assoc-ref outputs "out")))
1164 (mkdir-p (string-append out "/share/icons"))
1165 (mkdir-p (string-append out "/share/applications")))
1166 #t))
1167 (add-after 'install 'symlink-executable
1168 ;; Symlink executable to $out/bin.
1169 (lambda* (#:key outputs #:allow-other-keys)
1170 (let* ((out (assoc-ref outputs "out"))
1171 (bin (string-append out "/bin")))
1172 (mkdir-p bin)
1173 (with-directory-excursion bin
1174 (symlink "../share/foobillardplus/bin/foobillardplus"
1175 "foobillardplus"))
1176 #t))))))
1177 (native-inputs
1178 `(("autoconf" ,autoconf)
1179 ("automake" ,automake)
1180 ("pkg-config" ,pkg-config)))
1181 (inputs
1182 `(("font-dejavu" ,font-dejavu)
1183 ("freetype" ,freetype)
1184 ("glu" ,glu)
1185 ("libpng" ,libpng)
1186 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1187 (home-page "http://foobillardplus.sourceforge.net/")
1188 (synopsis "3D billiard game")
1189 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1190 based on the original foobillard 3.0a sources from Florian Berger.
1191 You can play it with one or two players or against the computer.
1192
1193 The game features:
1194
1195 @itemize
1196 @item Wood paneled table with gold covers and gold diamonds.
1197 @item Reflections on balls.
1198 @item Zoom in and out, rotation, different angles and bird's eye view.
1199 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1200 @item Tournaments. Compete against other players.
1201 @item Animated cue with strength and eccentric hit adjustment.
1202 @item Jump shots and snipping.
1203 @item Realistic gameplay and billiard sounds.
1204 @item Red-Green stereo.
1205 @item And much more.
1206 @end itemize")
1207 (license (list license:gpl2 license:silofl1.1)))))
1208
1209 (define-public freedoom
1210 (package
1211 (name "freedoom")
1212 (version "0.12.1")
1213 (source
1214 (origin
1215 (method git-fetch)
1216 (uri (git-reference
1217 (url "https://github.com/freedoom/freedoom")
1218 (commit (string-append "v" version))))
1219 (file-name (git-file-name name version))
1220 (sha256
1221 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1222 (build-system gnu-build-system)
1223 (arguments
1224 '(#:make-flags
1225 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1226 #:tests? #f ; no check target
1227 #:phases
1228 (modify-phases %standard-phases
1229 (delete 'bootstrap)
1230 (replace 'configure
1231 (lambda* (#:key inputs outputs #:allow-other-keys)
1232 (let* ((freedoom (assoc-ref outputs "out"))
1233 (wad-dir (string-append freedoom "/share/games/doom")))
1234 ;; Make sure that the install scripts know where to find
1235 ;; the appropriate WAD files.
1236 (substitute* "dist/freedoom"
1237 (("IWAD=freedm.wad")
1238 (string-append "IWAD=" wad-dir "/freedm.wad"))
1239 (("IWAD=freedoom1.wad")
1240 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1241 (("IWAD=freedoom2.wad")
1242 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1243 #t))))))
1244 (native-inputs
1245 `(("asciidoc" ,asciidoc)
1246 ("deutex" ,deutex)
1247 ("python" ,python)
1248 ("python-pillow" ,python-pillow)))
1249 (home-page "https://freedoom.github.io/")
1250 (synopsis "Free content game based on the Doom engine")
1251 (native-search-paths
1252 (list (search-path-specification
1253 (variable "DOOMWADDIR")
1254 (files '("share/games/doom")))
1255 (search-path-specification
1256 (variable "DOOMWADPATH")
1257 (files '("share/games/doom")))))
1258 (description
1259 "The Freedoom project aims to create a complete free content first person
1260 shooter game. Freedoom by itself is just the raw material for a game: it must
1261 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1262 played. Freedoom complements the Doom engine with free levels, artwork, sound
1263 effects and music to make a completely free game.")
1264 (license license:bsd-3)))
1265
1266 (define-public freedroidrpg
1267 (package
1268 (name "freedroidrpg")
1269 (version "0.16.1")
1270 (source
1271 (origin
1272 (method url-fetch)
1273 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1274 "freedroidRPG-" (version-major+minor version) "/"
1275 "freedroidRPG-" version ".tar.gz"))
1276 (sha256
1277 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1278 (build-system gnu-build-system)
1279 (arguments
1280 `(#:configure-flags
1281 (list
1282 (string-append "CFLAGS="
1283 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1284 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1285 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1286 "--enable-opengl")
1287 ;; FIXME: the test suite fails with the following error output:
1288 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1289 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1290 #:tests? #f))
1291 (native-inputs
1292 `(("pkg-config" ,pkg-config)))
1293 (inputs
1294 `(("glu" ,glu)
1295 ("libjpeg" ,libjpeg-turbo)
1296 ("libogg" ,libogg)
1297 ("libpng" ,libpng)
1298 ("libvorbis" ,libvorbis)
1299 ("mesa" ,mesa)
1300 ("python" ,python-wrapper)
1301 ("sdl" ,sdl)
1302 ("sdl-gfx" ,sdl-gfx)
1303 ("sdl-image" ,sdl-image)
1304 ("sdl-mixer" ,sdl-mixer)
1305 ("zlib" ,zlib)))
1306 (home-page "https://www.freedroid.org/")
1307 (synopsis "Isometric role-playing game against killer robots")
1308 (description
1309 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1310 The game tells the story of a world destroyed by a conflict between robots and
1311 their human masters. To restore peace to humankind, the player must complete
1312 numerous quests while fighting off rebelling robots---either by taking control
1313 of them, or by simply blasting them to pieces with melee and ranged weapons in
1314 real-time combat.")
1315 (license (list license:expat ; lua/
1316 license:gpl3 ; src/gen_savestruct.py
1317 license:gpl2+)))) ; the rest
1318
1319 (define-public golly
1320 (package
1321 (name "golly")
1322 (version "3.3")
1323 (source (origin
1324 (method url-fetch)
1325 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1326 version "/golly-" version
1327 "-src.tar.gz"))
1328 (sha256
1329 (base32
1330 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1331 (build-system gnu-build-system)
1332 (arguments
1333 '(#:make-flags (list "CC=gcc"
1334 (string-append "GOLLYDIR="
1335 (assoc-ref %outputs "out")
1336 "/share/golly"))
1337 #:tests? #f ; no check target
1338 #:phases
1339 (modify-phases %standard-phases
1340 (replace 'configure
1341 (lambda* (#:key inputs #:allow-other-keys)
1342 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1343 ;; properly set the path to the Python shared library. This
1344 ;; substitution acheives the same end by different means.
1345 (substitute* "gui-wx/wxprefs.cpp"
1346 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1347 (string-append "pythonlib = \""
1348 (assoc-ref inputs "python")
1349 "/lib/libpython-2.7.so\"")))
1350 #t))
1351 (replace 'build
1352 (lambda* (#:key make-flags outputs #:allow-other-keys)
1353 (with-directory-excursion "gui-wx"
1354 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1355 (replace 'install
1356 (lambda* (#:key outputs #:allow-other-keys)
1357 (let* ((out (assoc-ref outputs "out"))
1358 (bin (string-append out "/bin"))
1359 (doc (string-append out "/share/doc/golly"))
1360 (pixmaps (string-append out "/share/pixmaps"))
1361 (share (string-append out "/share/golly")))
1362 (for-each (lambda (binary)
1363 (install-file binary bin))
1364 '("bgolly" "golly"))
1365 (for-each (lambda (document)
1366 (install-file
1367 (string-append "docs/" document ".html")
1368 doc))
1369 '("License" "ReadMe" "ToDo"))
1370 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1371 (for-each (lambda (folder)
1372 (copy-recursively
1373 folder
1374 (string-append share "/" folder)))
1375 '("Help" "Patterns" "Rules" "Scripts")))
1376 #t)))))
1377 (native-inputs
1378 `(("lua" ,lua)))
1379 (inputs
1380 `(("glu" ,glu)
1381 ("mesa" ,mesa)
1382 ("python" ,python-2)
1383 ("wxwidgets" ,wxwidgets-gtk2)
1384 ("zlib" ,zlib)))
1385 (home-page "http://golly.sourceforge.net/")
1386 (synopsis "Software for exploring cellular automata")
1387 (description
1388 "Golly simulates Conway's Game of Life and many other types of cellular
1389 automata. The following features are available:
1390 @enumerate
1391 @item Support for bounded and unbounded universes, with cells of up to 256
1392 states.
1393 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1394 algorithm.
1395 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1396 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1397 @item Scriptable via Lua or Python.
1398 @item Extracting patterns, rules and scripts from zip files.
1399 @item Downloading patterns, rules and scripts from online archives.
1400 @item Pasting patterns from the clipboard.
1401 @item Unlimited undo/redo.
1402 @item Configurable keyboard shortcuts.
1403 @item Auto fit option to keep patterns within the view.
1404 @end enumerate")
1405 (license license:gpl2+)))
1406
1407 (define-public julius
1408 (package
1409 (name "julius")
1410 (version "1.6.0")
1411 (source
1412 (origin
1413 (method git-fetch)
1414 (uri (git-reference
1415 (url "https://github.com/bvschaik/julius")
1416 (commit (string-append "v" version))))
1417 (file-name (git-file-name name version))
1418 (sha256
1419 (base32 "0nfdn8n6ywhm69ckz9a1chl5xxiqyaj3l337wadsbppnpscjihrc"))
1420 ;; Remove unused bundled libraries.
1421 (modules '((guix build utils)))
1422 (snippet
1423 '(begin
1424 (with-directory-excursion "ext"
1425 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1426 #t))))
1427 (build-system cmake-build-system)
1428 (inputs
1429 `(("libpng" ,libpng)
1430 ("sdl2" ,sdl2)
1431 ("sdl2-mixer" ,sdl2-mixer)))
1432 (home-page "https://github.com/bvschaik/julius")
1433 (synopsis "Re-implementation of Caesar III game engine")
1434 (description
1435 "Engine for Caesar III, a city-building real-time strategy game.
1436 Julius includes some UI enhancements while preserving the logic (including
1437 bugs) of the original game, so that saved games are compatible. This package
1438 does not include game data.")
1439 (license (list license:agpl3
1440 license:zlib)))) ; ext/tinyfiledialogs
1441
1442 (define-public augustus
1443 (package
1444 (inherit julius)
1445 (name "augustus")
1446 (version "2.0.1")
1447 (source
1448 (origin
1449 (method git-fetch)
1450 (uri (git-reference
1451 (url "https://github.com/Keriew/augustus")
1452 (commit (string-append "v" version))))
1453 (file-name (git-file-name name version))
1454 (sha256
1455 (base32 "0czazw8mc3fbvdazs2nzvgxd1dpzjc8z5fwiv89vv4nd7laz3jkj"))
1456 ;; Remove unused bundled libraries.
1457 (modules '((guix build utils)))
1458 (snippet
1459 '(begin
1460 (with-directory-excursion "ext"
1461 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1462 #t))))
1463 (arguments
1464 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1465 `(#:tests? #f))
1466 (home-page "https://github.com/Keriew/augustus")
1467 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1468 (description
1469 "Fork of Julius, an engine for the a city-building real-time strategy
1470 game Caesar III. Gameplay enhancements include:
1471
1472 @itemize
1473 @item roadblocks;
1474 @item market special orders;
1475 @item global labour pool;
1476 @item partial warehouse storage;
1477 @item increased game limits;
1478 @item zoom controls.
1479 @end itemize\n")))
1480
1481 (define-public meandmyshadow
1482 (package
1483 (name "meandmyshadow")
1484 (version "0.5a")
1485 (source (origin
1486 (method url-fetch)
1487 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1488 version "/meandmyshadow-" version
1489 "-src.tar.gz"))
1490 (sha256
1491 (base32
1492 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1493 (build-system cmake-build-system)
1494 (arguments
1495 `(#:tests? #f)) ; there are no tests
1496 (native-inputs
1497 `(("pkg-config" ,pkg-config)))
1498 (inputs
1499 `(("curl" ,curl)
1500 ("libarchive" ,libarchive)
1501 ("lua" ,lua)
1502 ("sdl" ,(sdl-union (list sdl2
1503 sdl2-image
1504 sdl2-mixer
1505 sdl2-ttf)))))
1506 (home-page "https://acmepjz.github.io/meandmyshadow/")
1507 (synopsis "Puzzle/platform game")
1508 (description "Me and My Shadow is a puzzle/platform game in which you try
1509 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1510 and much more stand between you and the exit. Record your moves and let your
1511 shadow mimic them to reach blocks you couldn't reach alone.")
1512 (license license:gpl3+)))
1513
1514 (define-public opensurge
1515 (package
1516 (name "opensurge")
1517 (version "0.5.1.2")
1518 (source
1519 (origin
1520 (method git-fetch)
1521 (uri (git-reference
1522 (url "https://github.com/alemart/opensurge")
1523 (commit (string-append "v" version))))
1524 (file-name (git-file-name name version))
1525 (sha256
1526 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1527 (build-system cmake-build-system)
1528 (arguments
1529 `(#:tests? #f ;there are no tests
1530 #:configure-flags
1531 (let* ((out (assoc-ref %outputs "out"))
1532 (share (string-append out "/share")))
1533 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1534 (string-append "-DGAME_DATADIR=" share "/" ,name)
1535 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1536 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1537 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1538 #:phases
1539 (modify-phases %standard-phases
1540 (add-after 'unpack 'fix-xdg-open-path
1541 (lambda* (#:key inputs #:allow-other-keys)
1542 ;; Look for xdg-open in the store.
1543 (substitute* "src/core/web.c"
1544 (("/usr(/bin/xdg-open)" _ bin)
1545 (string-append (assoc-ref inputs "xdg-utils") bin)))
1546 #t))
1547 (add-after 'unpack 'unbundle-fonts
1548 (lambda* (#:key inputs #:allow-other-keys)
1549 ;; Replace bundled Roboto fonts with links to the store.
1550 (with-directory-excursion "fonts"
1551 (let ((roboto-dir (string-append
1552 (assoc-ref inputs "font-google-roboto")
1553 "/share/fonts/truetype/")))
1554 (for-each
1555 (lambda (font)
1556 (delete-file font)
1557 (symlink (string-append roboto-dir font) font))
1558 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1559 #t))))))
1560 (inputs
1561 `(("allegro" ,allegro)
1562 ("font-google-roboto" ,font-google-roboto)
1563 ("surgescript" ,surgescript)
1564 ("xdg-utils" ,xdg-utils)))
1565 (home-page "https://opensurge2d.org")
1566 (synopsis "2D retro side-scrolling game")
1567 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1568 inspired by the Sonic games. The player runs at high speeds through each
1569 level while collecting items and avoiding obstacles. The game includes a
1570 built-in level editor.")
1571 (license
1572 ;; Code is under GPL 3+, assets are under various licenses.
1573 ;; See src/misc/credits.c for details.
1574 (list license:gpl3+
1575 license:cc0
1576 license:cc-by3.0
1577 license:cc-by-sa3.0
1578 license:expat
1579 license:public-domain
1580 license:silofl1.1))))
1581
1582 (define-public knights
1583 (package
1584 (name "knights")
1585 (version "025")
1586 (source (origin
1587 (method url-fetch)
1588 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1589 version "_src.tar.gz"))
1590 (sha256
1591 (base32
1592 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1593 (build-system gnu-build-system)
1594 (arguments
1595 '(#:make-flags
1596 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1597 "CXXFLAGS=-lpthread")
1598 #:phases
1599 (modify-phases %standard-phases
1600 ;; No configure script.
1601 (delete 'configure))
1602 #:tests? #f)) ;; No check target.
1603 (inputs
1604 `(("boost" ,boost)
1605 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1606 ("freetype" ,freetype)
1607 ("fontconfig" ,fontconfig)
1608 ("curl" ,curl)))
1609 (native-inputs
1610 `(("pkg-config" ,pkg-config)))
1611 (home-page "http://www.knightsgame.org.uk/")
1612 (synopsis "Multiplayer dungeon game involving knights and quests")
1613 (description "Knights is a multiplayer game involving several knights who
1614 must run around a dungeon and complete various quests. Each game revolves
1615 around a quest – for example, you might have to find some items and carry them
1616 back to your starting point. This may sound easy, but as there are only
1617 enough items in the dungeon for one player to win, you may end up having to
1618 kill your opponents to get their stuff! Other quests involve escaping from
1619 the dungeon, fighting a duel to the death against the enemy knights, or
1620 destroying an ancient book using a special wand.")
1621 ;; This package includes modified sources of lua (X11), enet (Expat), and
1622 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1623 ;; license. The whole package is released under GPLv3+.
1624 (license license:gpl3+)))
1625
1626 (define-public gnome-chess
1627 (package
1628 (name "gnome-chess")
1629 (version "3.37.3")
1630 (source (origin
1631 (method url-fetch)
1632 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1633 (version-major+minor version) "/"
1634 "gnome-chess-" version ".tar.xz"))
1635 (sha256
1636 (base32
1637 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1638 (build-system meson-build-system)
1639 (arguments
1640 '(#:glib-or-gtk? #t
1641 #:phases
1642 (modify-phases %standard-phases
1643 (add-after 'unpack 'skip-gtk-update-icon-cache
1644 ;; Don't create 'icon-theme.cache'.
1645 (lambda _
1646 (substitute* "meson_post_install.py"
1647 (("gtk-update-icon-cache") "true"))
1648 #t)))))
1649 (inputs
1650 `(("gtk+" ,gtk+)
1651 ("librsvg" ,librsvg)))
1652 (native-inputs
1653 `(("gettext" ,gettext-minimal)
1654 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1655 ("itstool" ,itstool)
1656 ("pkg-config" ,pkg-config)
1657 ("vala" ,vala)))
1658 (home-page "https://wiki.gnome.org/Apps/Chess")
1659 (synopsis "Chess board for GNOME")
1660 (description "GNOME Chess provides a 2D board for playing chess games
1661 against human or computer players. It supports loading and saving games in
1662 Portable Game Notation. To play against a computer, install a chess engine
1663 such as chess or stockfish.")
1664 (license license:gpl3+)))
1665
1666 (define-public gnubg
1667 (package
1668 (name "gnubg")
1669 (version "1.06.002")
1670 (source
1671 (origin
1672 (method url-fetch)
1673 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1674 version "-sources.tar.gz"))
1675 (sha256
1676 (base32
1677 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1678 (build-system gnu-build-system)
1679 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1680 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1681 ("pango" ,pango-1.42)
1682
1683 ("glib" ,glib)
1684 ("readline" ,readline)
1685 ("gtk+" ,gtk+-2)
1686 ("mesa" ,mesa)
1687 ("glu" ,glu)
1688 ("gtkglext" ,gtkglext)
1689 ("sqlite" ,sqlite)
1690 ("libcanberra" ,libcanberra)))
1691 (native-inputs `(("python-2" ,python-2)
1692 ("pkg-config" ,pkg-config)))
1693 (arguments
1694 `(#:configure-flags
1695 ;; SSE instructions are available on Intel systems only.
1696 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1697 (%current-system)))
1698 '("x86_64" "i686"))
1699 '("--enable-simd=sse2") ; prevent avx instructions
1700 '()))
1701 #:phases
1702 (modify-phases %standard-phases
1703 (add-after 'install 'install-desktop-file
1704 (lambda* (#:key outputs #:allow-other-keys)
1705 (let* ((out (assoc-ref outputs "out"))
1706 (apps (string-append out "/share/applications")))
1707 (mkdir-p apps)
1708 (with-output-to-file (string-append apps "/gnubg.desktop")
1709 (lambda _
1710 (format #t
1711 "[Desktop Entry]~@
1712 Name=GNU Backgammon~@
1713 Exec=~a/bin/gnubg -w~@
1714 Icon=gnubg~@
1715 Categories=Game;~@
1716 Terminal=false~@
1717 Type=Application~%"
1718 out))))
1719 #t)))))
1720 (home-page "https://www.gnu.org/software/gnubg/")
1721 (synopsis "Backgammon game")
1722 (description "The GNU backgammon application (also known as \"gnubg\") can
1723 be used for playing, analyzing and teaching the game. It has an advanced
1724 evaluation engine based on artificial neural networks suitable for both
1725 beginners and advanced players. In addition to a command-line interface, it
1726 also features an attractive, 3D representation of the playing board.")
1727 (license license:gpl3+)))
1728
1729 (define-public gnubik
1730 (package
1731 (name "gnubik")
1732 (version "2.4.3")
1733 (source
1734 (origin
1735 (method url-fetch)
1736 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1737 version ".tar.gz"))
1738 (sha256
1739 (base32
1740 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1741 (build-system gnu-build-system)
1742 (arguments
1743 '(#:phases (modify-phases %standard-phases
1744 (add-after 'unpack 'skip-gtk-update-icon-cache
1745 (lambda _
1746 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1747 ;; unnecessary and causes a needless dependency on glib.
1748 (substitute* "Makefile.in"
1749 (("gtk-update-icon-cache")
1750 "true"))
1751 #t)))))
1752 (inputs `(("gtk+" ,gtk+-2)
1753 ("mesa" ,mesa)
1754 ("glu" ,glu)
1755 ("libx11" ,libx11)
1756 ("guile" ,guile-2.0)
1757 ("gtkglext" ,gtkglext)))
1758 (native-inputs `(("gettext" ,gettext-minimal)
1759 ("pkg-config" ,pkg-config)))
1760 (home-page "https://www.gnu.org/software/gnubik/")
1761 (synopsis "3d Rubik's cube game")
1762 (description
1763 "GNUbik is a puzzle game in which you must manipulate a cube to make
1764 each of its faces have a uniform color. The game is customizable, allowing
1765 you to set the size of the cube (the default is 3x3) or to change the colors.
1766 You may even apply photos to the faces instead of colors. The game is
1767 scriptable with Guile.")
1768 (license license:gpl3+)))
1769
1770 (define-public gnushogi
1771 (package
1772 (name "gnushogi")
1773 (version "1.4.2")
1774 (source
1775 (origin
1776 (method url-fetch)
1777 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1778 version ".tar.gz"))
1779 (sha256
1780 (base32
1781 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1782 (arguments `(#:tests? #f)) ;; No check target.
1783 (build-system gnu-build-system)
1784 (home-page "https://www.gnu.org/software/gnushogi/")
1785 (synopsis "The game of Shogi (Japanese chess)")
1786 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1787 Chess). It is similar to standard chess but this variant is far more complicated.")
1788 (license license:gpl3+)))
1789
1790 (define-public ltris
1791 (package
1792 (name "ltris")
1793 (version "1.2.1")
1794 (source
1795 (origin
1796 (method url-fetch)
1797 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1798 "ltris-" version ".tar.gz"))
1799 (sha256
1800 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1801 (build-system gnu-build-system)
1802 (arguments
1803 '(;; The code in LTris uses traditional GNU semantics for inline functions
1804 #:configure-flags '("CFLAGS=-fgnu89-inline")
1805 #:phases
1806 (modify-phases %standard-phases
1807 (add-after 'set-paths 'set-sdl-paths
1808 (lambda* (#:key inputs #:allow-other-keys)
1809 (setenv "CPATH"
1810 (string-append (assoc-ref inputs "sdl-union")
1811 "/include/SDL:"
1812 (or (getenv "CPATH") "")))
1813 #t)))))
1814 (inputs
1815 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1816 (home-page "http://lgames.sourceforge.net/LTris/")
1817 (synopsis "Tetris clone based on the SDL library")
1818 (description
1819 "LTris is a tetris clone: differently shaped blocks are falling down the
1820 rectangular playing field and can be moved sideways or rotated by 90 degree
1821 units with the aim of building lines without gaps which then disappear (causing
1822 any block above the deleted line to fall down). LTris has three game modes: In
1823 Classic you play until the stack of blocks reaches the top of the playing field
1824 and no new blocks can enter. In Figures the playing field is reset to a new
1825 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1826 up to three players (either human or CPU) compete with each other sending
1827 removed lines to all opponents. There is also a Demo mode in which you can
1828 watch your CPU playing while enjoying a cup of tea!")
1829 (license license:gpl2+)))
1830
1831 (define-public nethack
1832 (package
1833 (name "nethack")
1834 (version "3.6.6")
1835 (source
1836 (origin
1837 (method url-fetch)
1838 (uri
1839 (string-append "https://www.nethack.org/download/" version "/nethack-"
1840 (string-join (string-split version #\.) "") "-src.tgz"))
1841 (sha256
1842 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1843 (native-inputs
1844 `(("bison" ,bison)
1845 ("flex" ,flex)))
1846 (inputs
1847 `(("ncurses" ,ncurses)
1848 ("less" ,less)))
1849 (build-system gnu-build-system)
1850 (arguments
1851 '(#:make-flags
1852 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1853 #:phases
1854 (modify-phases %standard-phases
1855 (add-before 'configure 'patch-paths
1856 (lambda _
1857 (substitute* "sys/unix/nethack.sh"
1858 (("^ *cd .*$") ""))
1859 (substitute* "sys/unix/Makefile.utl"
1860 (("^YACC *=.*$") "YACC = bison -y\n")
1861 (("^LEX *=.*$") "LEX = flex\n")
1862 (("^# CC = gcc") "CC = gcc"))
1863 (substitute* "sys/unix/hints/linux"
1864 (("/bin/gzip") (string-append
1865 (assoc-ref %build-inputs "gzip")
1866 "/bin/gzip"))
1867 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1868 (substitute* "include/config.h"
1869 (("^.*define CHDIR.*$") "")
1870 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1871 ;; Honor SOURCE_DATE_EPOCH.
1872 "#define REPRODUCIBLE_BUILD"))
1873
1874 ;; Note: 'makedefs' rejects and ignores dates that are too old
1875 ;; or too new, so we must choose something reasonable here.
1876 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1877
1878 (substitute* "sys/unix/Makefile.src"
1879 (("^# CC = gcc") "CC = gcc"))
1880 #t))
1881 (replace 'configure
1882 (lambda _
1883 (let ((bash (string-append
1884 (assoc-ref %build-inputs "bash")
1885 "/bin/bash")))
1886 (with-directory-excursion "sys/unix"
1887 (substitute* "setup.sh" (("/bin/sh") bash))
1888 (invoke bash "setup.sh" "hints/linux"))
1889 #t)))
1890 (add-after 'install 'fixup-paths
1891 (lambda _
1892 (let* ((output (assoc-ref %outputs "out"))
1893 (nethack-script (string-append output "/bin/nethack")))
1894 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1895 (for-each
1896 (lambda (file)
1897 (rename-file
1898 (string-append output "/games/lib/nethackdir/" file)
1899 (string-append output "/games/lib/nethackuserdir/"
1900 file)))
1901 '("xlogfile" "logfile" "perm" "record" "save"))
1902 (mkdir-p (string-append output "/bin"))
1903 (call-with-output-file nethack-script
1904 (lambda (port)
1905 (format port "#!~a/bin/sh
1906 PATH=~a:$PATH
1907 if [ ! -d ~~/.config/nethack ]; then
1908 mkdir -p ~~/.config/nethack
1909 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1910 chmod -R +w ~~/.config/nethack
1911 fi
1912
1913 RUNDIR=$(mktemp -d)
1914
1915 cleanup() {
1916 rm -rf $RUNDIR
1917 }
1918 trap cleanup EXIT
1919
1920 cd $RUNDIR
1921 for i in ~~/.config/nethack/*; do
1922 ln -s $i $(basename $i)
1923 done
1924 for i in ~a/games/lib/nethackdir/*; do
1925 ln -s $i $(basename $i)
1926 done
1927 ~a/games/nethack"
1928 (assoc-ref %build-inputs "bash")
1929 (list->search-path-as-string
1930 (list
1931 (string-append
1932 (assoc-ref %build-inputs "coreutils") "/bin")
1933 (string-append
1934 (assoc-ref %build-inputs "less") "/bin"))
1935 ":")
1936 output
1937 output
1938 output)))
1939 (chmod nethack-script #o555)
1940 #t)))
1941 (delete 'check))))
1942 (home-page "https://nethack.org")
1943 (synopsis "Classic dungeon crawl game")
1944 (description "NetHack is a single player dungeon exploration game that runs
1945 on a wide variety of computer systems, with a variety of graphical and text
1946 interfaces all using the same game engine. Unlike many other Dungeons &
1947 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1948 the dungeon and not simply killing everything in sight - in fact, killing
1949 everything in sight is a good way to die quickly. Each game presents a
1950 different landscape - the random number generator provides an essentially
1951 unlimited number of variations of the dungeon and its denizens to be discovered
1952 by the player in one of a number of characters: you can pick your race, your
1953 role, and your gender.")
1954 (license
1955 (license:fsdg-compatible
1956 "https://nethack.org/common/license.html"))))
1957
1958 (define-public pipewalker
1959 (package
1960 (name "pipewalker")
1961 (version "0.9.4")
1962 (source
1963 (origin
1964 (method url-fetch)
1965 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
1966 version "/pipewalker-" version ".tar.gz"))
1967 (sha256
1968 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1969 (build-system gnu-build-system)
1970 (arguments
1971 `(#:configure-flags
1972 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1973 "/share/doc/" ,name "-" ,version))
1974 #:phases
1975 (modify-phases %standard-phases
1976 (add-after 'configure 'patch-docdir
1977 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1978 (lambda _
1979 (substitute* "Makefile"
1980 (("(pkgdocdatadir = ).*" _ assignment)
1981 (string-append assignment "$(docdir)\n")))
1982 #t)))))
1983 (inputs
1984 `(("libpng" ,libpng)
1985 ("mesa" ,mesa)
1986 ("sdl" ,sdl)))
1987 (home-page "http://pipewalker.sourceforge.net/")
1988 (synopsis "Logical tile puzzle")
1989 (description
1990 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1991 computers to one network server, bring water from a source to the taps, etc.
1992 The underlying mechanism is always the same: you must turn each tile in the
1993 grid in the right direction to combine all components into a single circuit.
1994 Every puzzle has a complete solution, although there may be more than one.")
1995 (license license:gpl3+)))
1996
1997 (define-public prboom-plus
1998 (package
1999 (name "prboom-plus")
2000 (version "2.5.1.4")
2001 (source (origin
2002 (method url-fetch)
2003 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
2004 version "/prboom-plus-" version ".tar.gz"))
2005 (sha256
2006 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
2007 (modules '((guix build utils)))
2008 (snippet
2009 '(begin
2010 (substitute* "src/version.c"
2011 (("__DATE__") "")
2012 (("__TIME__") ""))
2013 #t))))
2014 (build-system gnu-build-system)
2015 (arguments
2016 '(#:configure-flags '("--disable-cpu-opt")
2017 #:make-flags `(,(string-append "gamesdir="
2018 (assoc-ref %outputs "out") "/bin"))
2019 #:phases
2020 (modify-phases %standard-phases
2021 (add-after 'set-paths 'set-sdl'paths
2022 (lambda* (#:key inputs #:allow-other-keys)
2023 (setenv "CPATH"
2024 (string-append (assoc-ref inputs "sdl-union")
2025 "/include/SDL:"
2026 (or (getenv "CPATH") "")))
2027 #t)))))
2028 (inputs
2029 `(("fluidsynth" ,fluidsynth)
2030 ("glu" ,glu)
2031 ("libmad" ,libmad)
2032 ("libpng" ,libpng)
2033 ("libvorbis" ,libvorbis)
2034 ("pcre" ,pcre)
2035 ("portmidi" ,portmidi)
2036 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
2037 (home-page "http://prboom-plus.sourceforge.net/")
2038 (synopsis "Version of the classic 3D shoot'em'up game Doom")
2039 (description
2040 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
2041 (license license:gpl2+)))
2042
2043 (define-public retux
2044 (let ((release "1.4.1")
2045 (revision 1))
2046 (package
2047 (name "retux")
2048 (version (if (zero? revision)
2049 release
2050 (string-append release "-"
2051 (number->string revision))))
2052 (source (origin
2053 (method url-fetch)
2054 (uri (string-append "https://github.com/retux-game/retux/"
2055 "releases/download/v"
2056 version "/retux-"
2057 release "-src.tar.gz"))
2058 (sha256
2059 (base32
2060 "1vrldg2qh2gqfswj7vkpc589ldrrjd903j6cnfdik9zh0jhlq4h2"))))
2061 (build-system python-build-system)
2062 (arguments
2063 `(#:tests? #f ; no check target
2064 #:phases
2065 (modify-phases %standard-phases
2066 ;; no setup.py script
2067 (delete 'build)
2068 (replace 'install
2069 (lambda* (#:key outputs #:allow-other-keys)
2070 (let* ((out (assoc-ref outputs "out"))
2071 (bin (string-append out "/bin"))
2072 (data (string-append out "/share/retux")))
2073 (mkdir-p bin)
2074
2075 (substitute* "retux.py"
2076 ;; Use the correct data directory.
2077 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
2078 (string-append "\"" data "\",")))
2079
2080 (copy-file "retux.py" (string-append bin "/retux"))
2081 (copy-recursively "data" data)
2082 #t))))))
2083 (inputs
2084 `(("python-sge-pygame" ,python-sge-pygame)
2085 ("python-six" ,python-six)
2086 ("python-xsge" ,python-xsge)))
2087 (home-page "https://retux-game.github.io/")
2088 (synopsis "Action platformer game")
2089 (description
2090 "ReTux is an action platformer loosely inspired by the Mario games,
2091 utilizing the art assets from the @code{SuperTux} project.")
2092 ;; GPL version 3 or later is the license for the code and some art.
2093 ;; The rest of the licenses are for the art exclusively, as listed in
2094 ;; data/LICENSES.
2095 (license (list license:cc0
2096 license:cc-by3.0
2097 license:cc-by-sa3.0
2098 license:cc-by-sa4.0
2099 license:gpl2+
2100 license:gpl3+)))))
2101
2102 (define-public roguebox-adventures
2103 (package
2104 (name "roguebox-adventures")
2105 (version "3.0.1")
2106 (source
2107 (origin
2108 (method url-fetch)
2109 (uri (string-append
2110 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2111 (string-join (string-split version #\.) "_") "_Source.zip"))
2112 (file-name (string-append name "-" version ".zip"))
2113 (sha256
2114 (base32
2115 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2116 (build-system python-build-system)
2117 (arguments
2118 `(#:tests? #f ; no check target
2119 #:phases
2120 (modify-phases %standard-phases
2121 (replace 'unpack
2122 (lambda* (#:key source #:allow-other-keys)
2123 (and (invoke "unzip" source)
2124 ;; The actual source is buried a few directories deep.
2125 (chdir (string-append "RogueBoxAdventures_v"
2126 (string-join
2127 (string-split ,version #\.) "_")
2128 "_Source")))))
2129 ;; no setup.py script
2130 (replace 'build
2131 (lambda* (#:key outputs #:allow-other-keys)
2132 (let* ((out (assoc-ref outputs "out"))
2133 (data (string-append
2134 out "/share/games/roguebox-adventures")))
2135 ;; Use the correct data directory.
2136 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2137 (("basic_path + os\\.sep + 'DATA'")
2138 (string-append "'" data "'"))
2139 (("^basic_path.*$")
2140 (string-append "basic_path ='" data "'\n")))
2141 (substitute* "LIB/dialog.py"
2142 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2143 (string-append "d_path = '" data "'")))
2144 (substitute* "LIB/gra_files.py"
2145 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2146 (string-append "basic_path ='" data "'\n")))
2147
2148 ;; The game must save in the user's home directory because
2149 ;; the store is read-only.
2150 (substitute* "main.py"
2151 (("home_save = False") "home_save = True")
2152 (("'icon_small.png'")
2153 (string-append "'" data "/icon_small.png'"))))
2154 #t))
2155 (replace 'install
2156 (lambda* (#:key outputs #:allow-other-keys)
2157 (let* ((out (assoc-ref outputs "out"))
2158 (bin (string-append out "/bin"))
2159 (roguebox-adventures
2160 (string-append bin "/roguebox-adventures"))
2161 (data (string-append
2162 out "/share/games/roguebox-adventures"))
2163 (lib (string-append data "/LIB"))
2164 (doc (string-append
2165 out "/share/doc/roguebox-adventures")))
2166 (mkdir-p bin)
2167 (mkdir-p doc)
2168
2169 (for-each (lambda (file)
2170 (copy-recursively file
2171 (string-append data "/" file)))
2172 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2173 "icon_big.png" "icon_small.png"))
2174 (for-each (lambda (file)
2175 (chmod file #o555)
2176 (install-file file lib))
2177 '("main.py" "run.py"))
2178
2179 (copy-recursively "DOC" doc)
2180
2181 (call-with-output-file
2182 roguebox-adventures
2183 (lambda (p)
2184 (format p "\
2185 #!~a
2186 export PYTHONPATH=~a/LIB:~a
2187 exec -a \"~a\" ~a \"$@\"\n"
2188 (which "bash") data (getenv "PYTHONPATH")
2189 (which "python3")
2190 (string-append lib "/main.py"))))
2191 (chmod roguebox-adventures #o555))
2192 #t)))))
2193 (native-inputs
2194 `(("unzip" ,unzip)))
2195 (inputs
2196 `(("python-pygame" ,python-pygame)
2197 ("python-tmx" ,python-tmx)))
2198 (home-page "https://rogueboxadventures.tuxfamily.org")
2199 (synopsis "A classical roguelike/sandbox game")
2200 (description
2201 "RogueBox Adventures is a graphical roguelike with strong influences
2202 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2203 Adventures is to offer the player a kind of roguelike toy-world. This world
2204 can be explored and changed freely.")
2205 ;; The GPL3+ is for code, the rest are for art.
2206 (license (list license:cc0
2207 license:cc-by3.0
2208 license:gpl3+
2209 license:silofl1.1))))
2210
2211 (define-public seahorse-adventures
2212 (package
2213 (name "seahorse-adventures")
2214 (version "1.3")
2215 (source
2216 (origin
2217 (method git-fetch)
2218 (uri (git-reference
2219 (url "https://github.com/dulsi/seahorse-adventures")
2220 (commit (string-append "release-" version))))
2221 (file-name (git-file-name name version))
2222 (sha256
2223 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2224 (modules '((guix build utils)
2225 (ice-9 ftw)
2226 (srfi srfi-1)))
2227 ;; Remove non-free (non-commercial) font.
2228 (snippet
2229 `(begin
2230 (for-each delete-file (find-files "data/fonts" "."))
2231 #t))))
2232 (build-system python-build-system)
2233 (arguments
2234 `(#:tests? #f ;no test
2235 #:phases
2236 (modify-phases %standard-phases
2237 (delete 'build) ;pure Python
2238 (replace 'install ;no install script
2239 (lambda* (#:key outputs #:allow-other-keys)
2240 (let* ((out (assoc-ref outputs "out"))
2241 (bin (string-append out "/bin"))
2242 (share (string-append out "/share"))
2243 (applications (string-append share "/applications"))
2244 (data (string-append share "/seahorse-adventures")))
2245 ;; Install data.
2246 (for-each (lambda (f)
2247 (chmod f #o555)
2248 (install-file f data))
2249 '("leveledit.py" "run_game.py" "tileedit.py"))
2250 (for-each (lambda (dir)
2251 (let ((target (string-append data "/" dir)))
2252 (mkdir-p target)
2253 (copy-recursively dir target)))
2254 '("data" "lib"))
2255 ;; Create executable.
2256 (mkdir-p bin)
2257 (let ((executable (string-append bin "/seahorse-adventures")))
2258 (call-with-output-file executable
2259 (lambda (p)
2260 (format p
2261 "#!~a~@
2262 export PYTHONPATH=~a:~a~@
2263 exec -a \"~a\" ~a \"$@\"~%"
2264 (which "bash") data (getenv "PYTHONPATH")
2265 (which "python3")
2266 (string-append data "/run_game.py"))))
2267 (chmod executable #o555))
2268 ;; Add desktop file.
2269 (mkdir-p applications)
2270 (make-desktop-entry-file
2271 (string-append applications "/seahorse-adventures.desktop")
2272 #:name "Seahorse Adventures"
2273 #:comment
2274 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2275 #:exec ,name
2276 #:icon ,name
2277 #:categories '("Game" "ActionGame")
2278 #:keywords '("game" "retro" "platform"))
2279 ;; Add icons.
2280 (for-each
2281 (lambda (size)
2282 (let ((dir (string-append share "/icons/hicolor/"
2283 size "x" size "/apps")))
2284 (mkdir-p dir)
2285 (copy-file
2286 (string-append "icon" size ".png")
2287 (string-append dir "/searhorse-adventures.png"))))
2288 '("32" "64" "128")))
2289 #t))
2290 (add-after 'install 'unbundle-fonts
2291 ;; Unbundle Bitstream Vera font and replace deleted one.
2292 (lambda* (#:key outputs inputs #:allow-other-keys)
2293 (let* ((out (assoc-ref outputs "out"))
2294 (data (string-append out "/share/seahorse-adventures"))
2295 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2296 "/share/fonts/truetype/Vera.ttf")))
2297 (let ((themes-dir (string-append data "/data/themes/")))
2298 (for-each
2299 (lambda (theme)
2300 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2301 (delete-file target)
2302 (symlink vera target)))
2303 '("default" "gray")))
2304 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2305 (substitute* (string-append data "/lib/main.py")
2306 (("f_scale = 0.35") "f_scale = 0.47")))
2307 #t)))))
2308 (inputs
2309 `(("font-bitstream-vera" ,font-bitstream-vera)
2310 ("python-pygame" ,python-pygame)))
2311 (home-page "http://www.imitationpickles.org/barbie/")
2312 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2313 (description
2314 "Barbie Seahorse Adventures is a retro style platform arcade game.
2315 You are Barbie the seahorse who travels through the jungle, up to the
2316 volcano until you float on bubbles to the moon. On the way to your
2317 final destination you will encounter various enemies, servants of the
2318 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2319 and defeat them with your bubbles!")
2320 ;; GPL2+ is for code, CC0 is for art.
2321 (license (list license:gpl2+ license:cc0))))
2322
2323 (define-public solarus
2324 (package
2325 (name "solarus")
2326 ;; XXX: When updating this package, please also update hash in
2327 ;; `solarus-quest-editor' below.
2328 (version "1.6.4")
2329 (source
2330 (origin
2331 (method git-fetch)
2332 (uri (git-reference
2333 (url "https://gitlab.com/solarus-games/solarus")
2334 (commit (string-append "v" version))))
2335 (file-name (git-file-name name version))
2336 (sha256
2337 (base32 "1n6l91yyqjx0pz4w1lp3yybpq0fs2yjswfcm8c1wjfkxwiznbdxi"))))
2338 (build-system cmake-build-system)
2339 (arguments
2340 `(#:phases
2341 (modify-phases %standard-phases
2342 (add-after 'unpack 'disable-failing-tests
2343 ;; The following tests fail reporting a missing "/dev/dri"
2344 ;; file.
2345 (lambda _
2346 (substitute* "tests/cmake/AddTestMaps.cmake"
2347 ((".*1200_create_shader_from_source.*" all)
2348 (string-append "#" all))
2349 ((".*1210_shader_scaling_factor.*" all)
2350 (string-append "#" all)))
2351 #t))
2352 (add-before 'check 'set-home
2353 ;; Tests fail without setting the following environment
2354 ;; variables.
2355 (lambda _
2356 (setenv "HOME" (getcwd))
2357 (setenv "XDG_RUNTIME_DIR" (getcwd))
2358 #t)))))
2359 (native-inputs
2360 `(("pkg-config" ,pkg-config)
2361 ("qttools" ,qttools)))
2362 (inputs
2363 `(("glm" ,glm)
2364 ("libmodplug" ,libmodplug)
2365 ("libogg" ,libogg)
2366 ("libvorbis" ,libvorbis)
2367 ("luajit" ,luajit)
2368 ("openal" ,openal)
2369 ("physfs" ,physfs)
2370 ("qtbase" ,qtbase)
2371 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2372 (home-page "https://www.solarus-games.org/")
2373 (synopsis "Lightweight game engine for Action-RPGs")
2374 (description
2375 "Solarus is a 2D game engine written in C++, that can run games
2376 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2377 in mind.")
2378 ;; The source code is licensed under the terms of GPL-3.0.
2379 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2380 ;; CC-BY-SA 4.0.
2381 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2382
2383 (define-public solarus-quest-editor
2384 (package
2385 (inherit solarus)
2386 (name "solarus-quest-editor")
2387 (version (package-version solarus))
2388 (source
2389 (origin
2390 (method git-fetch)
2391 (uri (git-reference
2392 (url "https://gitlab.com/solarus-games/solarus-quest-editor")
2393 (commit (string-append "v" version))))
2394 (file-name (git-file-name name version))
2395 (sha256
2396 (base32 "1qbc2j9kalk7xqk9j27s7wnm5zawiyjs47xqkqphw683idmzmjzn"))))
2397 (arguments
2398 `(#:tests? #false ;no test
2399 #:phases
2400 (modify-phases %standard-phases
2401 (add-after 'unpack 'fix-qt-build
2402 ;; XXX: Fix build with Qt 5.15. It has been applied upstream as
2403 ;; 81d5c7f1 and can be removed at next upgrade.
2404 (lambda _
2405 (substitute* "src/entities/jumper.cpp"
2406 (("#include <QPainter>" all)
2407 (string-append all "\n" "#include <QPainterPath>\n")))
2408 #t)))))
2409 (inputs
2410 `(("solarus" ,solarus)
2411 ,@(package-inputs solarus)))
2412 (synopsis "Create and modify quests for the Solarus engine")
2413 (description
2414 "Solarus Quest Editor is a graphical user interface to create and
2415 modify quests for the Solarus engine.")))
2416
2417 (define-public superstarfighter
2418 (package
2419 (name "superstarfighter")
2420 (version "0.6.4")
2421 (source
2422 (origin
2423 (method git-fetch)
2424 (uri (git-reference
2425 (url "https://github.com/notapixelstudio/superstarfighter")
2426 (commit (string-append "v" version))))
2427 (file-name (git-file-name name version))
2428 (sha256
2429 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2430 (build-system gnu-build-system)
2431 (arguments
2432 `(#:tests? #f ;there are no tests
2433 #:phases
2434 (modify-phases %standard-phases
2435 (replace 'configure
2436 (lambda _
2437 (chdir "godot")
2438 (setenv "HOME" (getcwd))
2439 (with-output-to-file "export_presets.cfg"
2440 (lambda ()
2441 (display
2442 "[preset.0]
2443 name=\"Guix\"
2444 platform=\"Linux/X11\"
2445 runnable=true
2446 [preset.0.options]")))
2447 #t))
2448 (replace 'build
2449 (lambda _
2450 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2451 (invoke (string-append godot "/bin/godot_server")
2452 "--export-pack" "Guix"
2453 "superstarfighter.pck" "project.godot"))
2454 #t))
2455 (replace 'install
2456 (lambda* (#:key inputs outputs #:allow-other-keys)
2457 (let* ((out (assoc-ref outputs "out"))
2458 (bin (string-append out "/bin"))
2459 (share (string-append out "/share"))
2460 (data (string-append share "/superstarfighter"))
2461 (icons (string-append share "/icons/hicolor/256x256/apps")))
2462 (install-file "superstarfighter.pck" data)
2463 (mkdir-p bin)
2464 (call-with-output-file (string-append bin "/superstarfighter")
2465 (lambda (port)
2466 (format port
2467 "#!/bin/sh~@
2468 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2469 (assoc-ref inputs "godot")
2470 data)
2471 (chmod port #o755)))
2472 (mkdir-p icons)
2473 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2474 (make-desktop-entry-file
2475 (string-append share "/applications/" ,name ".desktop")
2476 #:name "SuperStarfighter"
2477 #:comment "Fast-paced arcade combat game"
2478 #:exec ,name
2479 #:icon ,name
2480 #:categories '("Game" "ArcadeGame")))
2481 #t)))))
2482 (native-inputs
2483 `(("godot-headless" ,godot "headless")))
2484 (inputs
2485 `(("godot" ,godot)))
2486 (home-page "https://notapixel.itch.io/superstarfighter")
2487 (synopsis "Fast-paced local multiplayer arcade game")
2488 (description "In SuperStarfighter, up to four local players compete in a
2489 2D arena with fast-moving ships and missiles. Different game types are
2490 available, as well as a single-player mode with AI-controlled ships.")
2491 (license (list license:expat ; game
2492 license:silofl1.1)))) ; fonts
2493
2494 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2495 (define %ufoai-revision "0")
2496 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2497 (define ufoai-source
2498 (origin
2499 (method git-fetch)
2500 (uri (git-reference
2501 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2502 (commit %ufoai-commit)))
2503 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2504 (sha256
2505 (base32
2506 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2507 (modules '((guix build utils)
2508 (srfi srfi-1)
2509 (ice-9 ftw)))
2510 (snippet
2511 '(begin
2512 ;; Delete ~32MiB of bundled dependencies.
2513 (with-directory-excursion "src/libs"
2514 (for-each delete-file-recursively
2515 (lset-difference equal? (scandir ".")
2516 '("." ".." "gtest" "mumble"))))
2517
2518 ;; Use relative path to Lua headers.
2519 (substitute* "src/common/scripts_lua.h"
2520 (("\\.\\./libs/lua/") ""))
2521
2522 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2523 ;; it as a separate package. This way we don't need to make the same
2524 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2525 (substitute* "build/maps.mk"
2526 (("\\./ufo2map") "ufo2map")
2527 (("maps: ufo2map") "maps:"))
2528 (substitute* "build/modules/testall.mk"
2529 (("testall: ufo2map") "testall:"))
2530
2531 ;; If no cURL headers are found, the build system will try to include
2532 ;; the bundled version, even when not required. Prevent that.
2533 (substitute* "build/default.mk"
2534 (("^include src/libs/curl/lib/Makefile\\.inc")
2535 ""))
2536
2537 ;; While here, improve reproducibility by adding the '-X' flag to the
2538 ;; zip command used to create the map files, in order to prevent time
2539 ;; stamps from making it into the generated archives.
2540 (substitute* "build/data.mk"
2541 (("\\$\\(call ZIP\\)")
2542 "$(call ZIP) -X"))
2543 #t))))
2544
2545 (define-public trigger-rally
2546 (package
2547 (name "trigger-rally")
2548 (version "0.6.6.1")
2549 (source
2550 (origin
2551 (method url-fetch)
2552 (uri (string-append "mirror://sourceforge/trigger-rally/"
2553 "trigger-" version "/"
2554 "trigger-rally-" version ".tar.gz"))
2555 (sha256
2556 (base32
2557 "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z"))))
2558 (build-system gnu-build-system)
2559 (inputs
2560 `(("freealut" ,freealut)
2561 ("glew" ,glew)
2562 ("glu" ,glu)
2563 ("mesa" ,mesa)
2564 ("openal" ,openal)
2565 ("physfs" ,physfs)
2566 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))
2567 ("tinyxml2" ,tinyxml2)))
2568 (arguments
2569 `(#:make-flags (list (string-append "prefix=" %output)
2570 "bindir=$(prefix)/bin"
2571 "datadir=$(datarootdir)"
2572 "OPTIMS=-Ofast")
2573 #:tests? #f ; No tests present
2574 #:phases
2575 (modify-phases %standard-phases
2576 (delete 'configure)
2577 (add-before 'build 'cd-src
2578 (lambda _ (chdir "src")))
2579 (add-before 'build 'remove-timestamps
2580 (lambda _
2581 (substitute* (list "Trigger/menu.cpp"
2582 "PEngine/app.cpp")
2583 ((".*__DATE__.*") ""))))
2584 (add-before 'build 'make-verbose
2585 (lambda _
2586 (substitute* "GNUmakefile"
2587 (("@\\$\\(CXX\\)") "$(CXX)"))))
2588 (add-after 'build 'set-data-path
2589 (lambda* (#:key outputs #:allow-other-keys)
2590 (let ((out (assoc-ref outputs "out")))
2591 (substitute* "../bin/trigger-rally.config.defs"
2592 (("<data path=\"C:[^\"]*\"")
2593 (string-append "<data path=\"" out "/share/trigger-rally\""))))))
2594 (add-after 'install 'create-desktop-entry
2595 (lambda* (#:key outputs #:allow-other-keys)
2596 (let* ((out (assoc-ref outputs "out"))
2597 (apps (string-append out "/share/applications")))
2598 (mkdir-p apps)
2599 (with-output-to-file
2600 (string-append apps "/trigger-rally.desktop")
2601 (lambda ()
2602 (format #t ; Borrowed from Debian package
2603 "[Desktop Entry]~@
2604 Name=Trigger Rally~@
2605 Icon=trigger-rally~@
2606 Comment=3D rally racing car game~@
2607 Comment[de]=3D Rally-Autorennen~@
2608 Comment[fr_FR]=un jeu de rally en 3D~@
2609 Comment[ro_RO]=Un joc în 3D cu curse de raliu~@
2610 Exec=~a/bin/trigger-rally~@
2611 Terminal=false~@
2612 StartupNotify=false~@
2613 Type=Application~@
2614 TryExec=~:*~a/bin/trigger-rally~@
2615 Categories=Game;ArcadeGame;~@
2616 Keywords=racing;tracks;~@
2617 Keywords[de]=Rennstrecke;~%"
2618 out)))))))))
2619 (home-page "http://trigger-rally.sourceforge.net")
2620 (synopsis "Fast-paced single-player racing game")
2621 (description "Trigger-rally is a 3D rally simulation with great physics
2622 for drifting on over 200 maps. Different terrain materials like dirt,
2623 asphalt, sand, ice, etc. and various weather, light, and fog conditions give
2624 this rally simulation the edge over many other games. You need to make it
2625 through the maps in often tight time limits and can further improve by beating
2626 the recorded high scores. All attached single races must be finished in time
2627 in order to win an event, unlocking additional events and cars. Most maps are
2628 equipped with spoken co-driver notes and co-driver icons.")
2629 (license (list license:cc0 ;textures and audio in data.zip
2630 license:gpl2+))))
2631
2632 (define-public ufo2map
2633 (package
2634 (name "ufo2map")
2635 (version %ufoai-version)
2636 (home-page "https://ufoai.org/")
2637 (source ufoai-source)
2638 (build-system gnu-build-system)
2639 (arguments
2640 '(#:configure-flags '("CC=gcc" "CXX=g++"
2641 "--enable-release"
2642 "--enable-ufo2map"
2643 "--disable-uforadiant"
2644 "--disable-cgame-campaign"
2645 "--disable-cgame-multiplayer"
2646 "--disable-cgame-skirmish"
2647 "--disable-game"
2648 "--disable-memory"
2649 "--disable-testall"
2650 "--disable-ufoded"
2651 "--disable-ufo"
2652 "--disable-ufomodel"
2653 "--disable-ufoslicer")
2654 #:tests? #f ;no tests
2655 #:phases (modify-phases %standard-phases
2656 (replace 'configure
2657 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2658 ;; The home-made configure script does not understand
2659 ;; some of the default flags of gnu-build-system.
2660 (apply invoke "./configure" configure-flags)))
2661 (replace 'install
2662 (lambda* (#:key outputs #:allow-other-keys)
2663 (let ((out (assoc-ref outputs "out")))
2664 (install-file "ufo2map" (string-append out "/bin"))
2665 (install-file "debian/ufo2map.6"
2666 (string-append out "/share/man/man6"))
2667 #t))))))
2668 (native-inputs
2669 `(("pkg-config" ,pkg-config)))
2670 (inputs
2671 `(("libjpeg" ,libjpeg-turbo)
2672 ("libpng" ,libpng)
2673 ("lua" ,lua-5.1)
2674 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2675 (synopsis "UFO: AI map generator")
2676 (description
2677 "This package provides @command{ufo2map}, a program used to generate
2678 maps for the UFO: Alien Invasion strategy game.")
2679 (license license:gpl2+)))
2680
2681 (define ufoai-data
2682 (package
2683 (name "ufoai-data")
2684 (version %ufoai-version)
2685 (home-page "https://ufoai.org/")
2686 (source ufoai-source)
2687 (build-system gnu-build-system)
2688 (arguments
2689 '(#:tests? #f
2690 #:configure-flags '("CC=gcc" "CXX=g++")
2691 #:phases (modify-phases %standard-phases
2692 (replace 'configure
2693 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2694 (apply invoke "./configure" configure-flags)))
2695 (replace 'build
2696 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2697 (invoke "make"
2698 "-j" (if parallel-build?
2699 (number->string (parallel-job-count))
2700 "1")
2701 "maps")))
2702 (add-after 'build 'pack
2703 (lambda _
2704 (invoke "make" "pk3")))
2705 (replace 'install
2706 (lambda* (#:key outputs #:allow-other-keys)
2707 (let ((out (assoc-ref outputs "out")))
2708 (for-each (lambda (file)
2709 (install-file file out))
2710 (find-files "base" "\\.pk3$"))
2711 #t))))))
2712 (native-inputs
2713 `(("python" ,python-2)
2714 ("ufo2map" ,ufo2map)
2715 ("which" ,which)
2716 ("zip" ,zip)))
2717 (synopsis "UFO: AI data files")
2718 (description
2719 "This package contains maps and other assets for UFO: Alien Invasion.")
2720 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2721 ;; licenses, see LICENSES for details.
2722 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2723 license:cc-by-sa3.0 license:public-domain))))
2724
2725 (define-public ufoai
2726 (package
2727 (name "ufoai")
2728 (version %ufoai-version)
2729 (home-page "https://ufoai.org/")
2730 (source ufoai-source)
2731 (build-system gnu-build-system)
2732 (arguments
2733 `(#:configure-flags
2734 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2735 (string-append "--datadir=" (assoc-ref %outputs "out")
2736 "/share/games/ufo")
2737 "CC=gcc" "CXX=g++"
2738 "--enable-release"
2739 "--enable-game"
2740 "--disable-ufo2map"
2741 "--disable-dependency-tracking"
2742
2743 ;; Disable hard links to prevent huge NARs.
2744 "--disable-hardlinkedgame"
2745 "--disable-hardlinkedcgame")
2746 #:phases (modify-phases %standard-phases
2747 (add-after 'unpack 'symlink-data-files
2748 (lambda* (#:key inputs #:allow-other-keys)
2749 (let ((data (assoc-ref inputs "ufoai-data")))
2750 ;; Symlink the data files to where the build system
2751 ;; expects to find them. Ultimately these files are
2752 ;; copied to $out/share/games/ufoai/base, losing the
2753 ;; symlinks; we could fix that after install, but it
2754 ;; does not make a big difference in practice due to
2755 ;; deduplication.
2756 (with-directory-excursion "base"
2757 (for-each (lambda (file)
2758 (symlink file (basename file)))
2759 (find-files data "\\.pk3$")))
2760 #t)))
2761 (add-before 'configure 'create-language-files
2762 (lambda _
2763 (invoke "make" "lang")))
2764 (replace 'configure
2765 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2766 (apply invoke "./configure" configure-flags)))
2767 (replace 'check
2768 (lambda* (#:key tests? #:allow-other-keys)
2769 (if tests?
2770 (invoke "./testall")
2771 (format #t "test suite not run~%"))
2772 #t))
2773 (add-after 'install 'install-man-pages
2774 (lambda* (#:key outputs #:allow-other-keys)
2775 (let* ((out (assoc-ref outputs "out"))
2776 (man6 (string-append out "/share/man/man6")))
2777 (install-file "debian/ufo.6" man6)
2778 (install-file "debian/ufoded.6" man6)
2779 #t))))
2780
2781 ;; TODO: Some map tests occasionally fail because of randomness issues,
2782 ;; e.g. not enough generated aliens. The test runner also fails early
2783 ;; in the build container with 'failed to shutdown server'?
2784 #:tests? #f))
2785 (native-inputs
2786 `(("gettext" ,gettext-minimal)
2787 ("pkg-config" ,pkg-config)
2788 ("python" ,python-2)
2789 ("ufo2map" ,ufo2map)
2790 ("ufoai-data" ,ufoai-data)))
2791 (inputs
2792 `(("curl" ,curl)
2793 ("libjpeg" ,libjpeg-turbo)
2794 ("libogg" ,libogg)
2795 ("libpng" ,libpng)
2796 ("libtheora" ,libtheora)
2797 ("libvorbis" ,libvorbis)
2798 ("libxml2" ,libxml2)
2799 ("lua" ,lua-5.1)
2800 ("mesa" ,mesa)
2801 ("minixml" ,minixml)
2802 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2803 ("zlib" ,zlib)))
2804 (synopsis "Turn-based tactical strategy game")
2805 (description
2806 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2807 You control a secret organisation charged with defending Earth from a brutal
2808 alien enemy. Build up your bases, prepare your team, and dive head-first into
2809 the fast and flowing turn-based combat.
2810
2811 Over the long term you will need to conduct research into the alien threat to
2812 figure out their mysterious goals and use their powerful weapons for your own
2813 ends. You will produce unique items and use them in combat against your
2814 enemies.
2815
2816 You can also use them against your friends with the multiplayer functionality.
2817
2818 Warning: This is a pre-release version of UFO: AI! Some things may not work
2819 properly.")
2820
2821 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2822 ;; because some assets do not use the "or later" clause. Many individual
2823 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2824 (license (delete license:gpl2+ (package-license ufoai-data)))))
2825
2826 (define-public xshogi
2827 (package
2828 (name "xshogi")
2829 (version "1.4.2")
2830 (source
2831 (origin
2832 (method url-fetch)
2833 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2834 version ".tar.gz"))
2835 (sha256
2836 (base32
2837 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2838 (build-system gnu-build-system)
2839 (inputs
2840 `(("libxaw" ,libxaw)
2841 ("libxt" ,libxt)))
2842 (home-page "https://www.gnu.org/software/gnushogi/")
2843 (synopsis "User interface for gnushogi")
2844 (description "A graphical user interface for the package @code{gnushogi}.")
2845 ;; Contains a copy of GPLv3 but the licence notices simply
2846 ;; state "GNU General Public Licence" without specifying a version.
2847 (license license:gpl1+)))
2848
2849 (define-public abbaye
2850 (package
2851 (name "abbaye")
2852 (version "2.0.1")
2853 (source
2854 (origin
2855 (method git-fetch)
2856 (uri (git-reference
2857 (url "https://github.com/nevat/abbayedesmorts-gpl")
2858 (commit (string-append "v" version))))
2859 (file-name (git-file-name name version))
2860 (sha256
2861 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2862 (modules '((guix build utils)))
2863 (snippet
2864 ;; Unbundle fonts.
2865 '(begin
2866 (delete-file-recursively "fonts")
2867 #t))))
2868 (build-system gnu-build-system)
2869 (arguments
2870 '(#:make-flags '("CC=gcc")
2871 #:phases (modify-phases %standard-phases
2872 (add-after 'set-paths 'set-sdl-paths
2873 (lambda* (#:key inputs #:allow-other-keys)
2874 (setenv "CPATH"
2875 (string-append (assoc-ref inputs "sdl-union")
2876 "/include/SDL:"
2877 (or (getenv "CPATH") "")))))
2878 (add-after 'patch-source-shebangs 'patch-makefile
2879 (lambda* (#:key outputs #:allow-other-keys)
2880 ;; Replace /usr with package output directory.
2881 (substitute* "Makefile"
2882 (("/usr") (assoc-ref outputs "out")))))
2883 (add-before 'install 'make-install-dirs
2884 (lambda* (#:key outputs #:allow-other-keys)
2885 (let ((prefix (assoc-ref outputs "out")))
2886 ;; Create directories that the makefile assumes exist.
2887 (mkdir-p (string-append prefix "/bin"))
2888 (mkdir-p (string-append prefix "/share/applications"))
2889 (mkdir-p (string-append prefix "/share/pixmaps")))))
2890 ;; No configure script.
2891 (delete 'configure))
2892 #:tests? #f)) ;; No check target.
2893 (native-inputs `(("pkg-config" ,pkg-config)))
2894 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2895 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2896 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2897 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2898 France. The Cathars, who preach about good Christian beliefs, were being
2899 expelled by the Catholic Church out of the Languedoc region in France. One of
2900 them, called Jean Raymond, found an old church in which to hide, not knowing
2901 that beneath its ruins lay buried an ancient evil.")
2902 (license license:gpl3)))
2903
2904 (define-public angband
2905 (package
2906 (name "angband")
2907 (version "4.2.1")
2908 (source
2909 (origin
2910 (method url-fetch)
2911 (uri (string-append "https://rephial.org/downloads/"
2912 (version-major+minor version)
2913 "/angband-" version ".tar.gz"))
2914 (sha256
2915 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2916 (modules '((guix build utils)))
2917 (snippet
2918 ;; So, some of the sounds/graphics/tilesets are under different
2919 ;; licenses... some of them even nonfree! This is a console-only
2920 ;; version of this package so we just remove them.
2921 ;; In the future, if someone tries to make a graphical variant of
2922 ;; this package, they can deal with that mess themselves. :)
2923 '(begin
2924 (for-each (lambda (subdir)
2925 (let ((lib-subdir (string-append "lib/" subdir)))
2926 (delete-file-recursively lib-subdir)))
2927 '("fonts" "icons" "sounds" "tiles"))
2928 (substitute* "lib/Makefile"
2929 ;; And don't try to invoke makefiles in the directories we removed.
2930 (("gamedata customize help screens fonts tiles sounds icons user")
2931 "gamedata customize help screens user"))
2932 #t))))
2933 (build-system gnu-build-system)
2934 (arguments
2935 `(#:tests? #f ; no check target
2936 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2937 #:phases
2938 (modify-phases %standard-phases
2939 (replace 'bootstrap
2940 (lambda _
2941 (substitute* "acinclude.m4"
2942 (("ncursesw5-config") "ncursesw6-config"))
2943 (invoke "sh" "autogen.sh"))))))
2944 (native-inputs
2945 `(("autoconf" ,autoconf)
2946 ("automake" ,automake)))
2947 (inputs `(("ncurses" ,ncurses)))
2948 (home-page "https://rephial.org/")
2949 (synopsis "Dungeon exploration roguelike")
2950 (description "Angband is a Classic dungeon exploration roguelike. Explore
2951 the depths below Angband, seeking riches, fighting monsters, and preparing to
2952 fight Morgoth, the Lord of Darkness.")
2953 (license license:gpl2)))
2954
2955 (define-public pingus
2956 (package
2957 (name "pingus")
2958 (version "0.7.6")
2959 (source
2960 (origin
2961 (method git-fetch)
2962 (uri (git-reference
2963 (url "https://gitlab.com/pingus/pingus.git")
2964 (commit (string-append "v" version))))
2965 (file-name (git-file-name name version))
2966 (sha256
2967 (base32
2968 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2969 (patches (search-patches "pingus-boost-headers.patch"
2970 "pingus-sdl-libs-config.patch"))
2971 (modules '((guix build utils)))
2972 (snippet
2973 '(begin
2974 (substitute* "src/pingus/screens/demo_session.cpp"
2975 (("#include <iostream>")
2976 ;; std::function moved to <functional> with C++ 11.
2977 ;; Remove this for versions newer than 0.7.6.
2978 "#include <iostream>\n#include <functional>"))
2979 #t))))
2980 (build-system gnu-build-system)
2981 (native-inputs `(("pkg-config" ,pkg-config)
2982 ("scons-python2" ,scons-python2)))
2983 (inputs `(("sdl" ,sdl)
2984 ("sdl-image" ,sdl-image)
2985 ("sdl-mixer" ,sdl-mixer)
2986 ("mesa" ,mesa)
2987 ("glu" ,glu)
2988 ("libpng" ,libpng)
2989 ("boost" ,boost)))
2990 (arguments
2991 '(#:make-flags (list (string-append "PREFIX=" %output))
2992 #:tests? #f ; no check target
2993 #:phases
2994 (modify-phases %standard-phases
2995 (delete 'configure)))) ; no configure script
2996 (home-page "https://pingus.seul.org/")
2997 (synopsis "Lemmings clone")
2998 (description
2999 "Pingus is a free Lemmings-like puzzle game in which the player takes
3000 command of a bunch of small animals and has to guide them through levels.
3001 Since the animals walk on their own, the player can only influence them by
3002 giving them commands, like build a bridge, dig a hole, or redirect all animals
3003 in the other direction. Multiple such commands are necessary to reach the
3004 level's exit. The game is presented in a 2D side view.")
3005 ;; Some source files are under bsd-3 and gpl2+ licenses.
3006 (license license:gpl3+)))
3007
3008 (define-public talkfilters
3009 (package
3010 (name "talkfilters")
3011 (version "2.3.8")
3012 (source
3013 (origin
3014 (method url-fetch)
3015 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
3016 "talkfilters-" version ".tar.gz"))
3017 (sha256
3018 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
3019 (build-system gnu-build-system)
3020 (home-page "https://www.gnu.org/software/talkfilters/")
3021 (synopsis "Convert English text to humorous dialects")
3022 (description "The GNU Talk Filters are programs that convert English text
3023 into stereotyped or otherwise humorous dialects. The filters are provided as
3024 a C library, so they can easily be integrated into other programs.")
3025 (license license:gpl2+)))
3026
3027 (define-public taisei
3028 (package
3029 (name "taisei")
3030 (version "1.3.1")
3031 (source
3032 (origin
3033 (method url-fetch)
3034 (uri (string-append "https://github.com/taisei-project/"
3035 "taisei/releases/download/v" version
3036 "/taisei-v" version ".tar.xz"))
3037 (sha256
3038 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
3039 (build-system meson-build-system)
3040 (arguments
3041 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
3042 #:configure-flags
3043 (list "-Dr_default=gles30"
3044 "-Dr_gles20=true"
3045 "-Dr_gles30=true"
3046 "-Dshader_transpiler=true")))
3047 (native-inputs
3048 `(("pkg-config" ,pkg-config)
3049 ("python" ,python)
3050 ("python-docutils" ,python-docutils)
3051 ("python-pygments" ,python-pygments)))
3052 (inputs
3053 `(("freetype" ,freetype)
3054 ("libpng" ,libpng)
3055 ("libwebp" ,libwebp)
3056 ("libzip" ,libzip)
3057 ("mesa" ,mesa)
3058 ("openssl" ,openssl)
3059 ("opusfile" ,opusfile)
3060 ("sdl2" ,sdl2)
3061 ("sdl2-mixer" ,sdl2-mixer)
3062 ("shaderc" ,shaderc)
3063 ("spirv-cross" ,spirv-cross)
3064 ("zlib" ,zlib)))
3065 (home-page "https://taisei-project.org/")
3066 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
3067 (description
3068 "The player controls a character (one of three: Good, Bad, and Dead),
3069 dodges the missiles (lots of it cover the screen, but the character's hitbox
3070 is very small), and shoot at the adversaries that keep appear on the screen.")
3071 (license (list ;;game
3072 license:expat
3073 ;;resources/00-taisei.pkgdir/bgm/
3074 ;;atlas/portraits/
3075 license:cc-by4.0
3076 ;;miscellaneous
3077 license:cc0
3078 license:public-domain))))
3079
3080 (define-public cmatrix
3081 (package
3082 (name "cmatrix")
3083 (version "2.0")
3084 (source
3085 (origin
3086 (method git-fetch)
3087 (uri (git-reference
3088 (url "https://github.com/abishekvashok/cmatrix")
3089 (commit (string-append "v" version))))
3090 (file-name (git-file-name name version))
3091 (sha256
3092 (base32
3093 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
3094 (build-system gnu-build-system)
3095 (native-inputs
3096 `(("autoconf" ,autoconf)
3097 ("automake" ,automake)))
3098 (arguments
3099 '(#:phases
3100 (modify-phases %standard-phases
3101 (replace 'configure
3102 (lambda* (#:key outputs #:allow-other-keys)
3103 ;; This old ‘configure’ script doesn't support
3104 ;; variables passed as arguments.
3105 (let ((out (assoc-ref outputs "out")))
3106 (setenv "CONFIG_SHELL" (which "bash"))
3107 (invoke "./configure"
3108 (string-append "--prefix=" out))))))))
3109 (inputs `(("ncurses" ,ncurses)))
3110 (home-page "http://www.asty.org/cmatrix")
3111 (synopsis "Simulate the display from \"The Matrix\"")
3112 (description "CMatrix simulates the display from \"The Matrix\" and is
3113 based on the screensaver from the movie's website. It works with terminal
3114 settings up to 132x300 and can scroll lines all at the same rate or
3115 asynchronously and at a user-defined speed.")
3116 (license license:gpl2+)))
3117
3118 (define-public chess
3119 (package
3120 (name "chess")
3121 (version "6.2.7")
3122 (source
3123 (origin
3124 (method url-fetch)
3125 (uri (string-append "mirror://gnu/chess/gnuchess-" version
3126 ".tar.gz"))
3127 (sha256
3128 (base32
3129 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
3130 (build-system gnu-build-system)
3131 (home-page "https://www.gnu.org/software/chess/")
3132 (synopsis "Full chess implementation")
3133 (description "GNU Chess is a chess engine. It allows you to compete
3134 against the computer in a game of chess, either through the default terminal
3135 interface or via an external visual interface such as GNU XBoard.")
3136 (properties '((upstream-name . "gnuchess")
3137 (ftp-directory . "/chess")))
3138 (license license:gpl3+)))
3139
3140 (define-public freedink-engine
3141 (package
3142 (name "freedink-engine")
3143 (version "109.6")
3144 (source (origin
3145 (method url-fetch)
3146 (uri (string-append "mirror://gnu/freedink/freedink-" version
3147 ".tar.gz"))
3148 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
3149 (sha256
3150 (base32
3151 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
3152 (build-system gnu-build-system)
3153 (arguments
3154 `(#:configure-flags '("--disable-embedded-resources")
3155 #:phases
3156 (modify-phases %standard-phases
3157 (add-after 'unpack 'disable-graphical-tests
3158 (lambda _
3159 ;; These tests require a graphical interface.
3160 (substitute* "src/Makefile.am"
3161 (("test_gfx_fonts TestIOGfxDisplay") ""))
3162 #t))
3163 (add-before 'bootstrap 'autoreconf
3164 (lambda _
3165 ;; automake is out of date in the source
3166 ;; autoreconf updates the automake scripts
3167 (invoke "autoreconf")
3168 ;; Build fails when autom4te.cache exists.
3169 (delete-file-recursively "autom4te.cache")
3170 #t))
3171 (add-after 'install 'delete-freedinkedit-desktop
3172 (lambda* (#:key outputs #:allow-other-keys)
3173 (let ((out (assoc-ref outputs "out")))
3174 ;; freedinkedit does not know where to find freedink data
3175 ;; freedink data is read-only, so it cannot be edited anyway.
3176 ;; TODO: fix freedink.desktop
3177 (delete-file-recursively (string-append
3178 out "/share/applications"))
3179 #t))))))
3180 (native-inputs `(("autoconf" ,autoconf)
3181 ("automake" ,automake)
3182 ("cxxtest" ,cxxtest)
3183 ("gettext" ,gettext-minimal)
3184 ("help2man" ,help2man)
3185 ("pkg-config" ,pkg-config)))
3186 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
3187 sdl2-ttf sdl2-gfx)))
3188 ("fontconfig" ,fontconfig)
3189 ("glm" ,glm)))
3190 (properties '((ftp-directory . "/freedink")
3191 (upstream-name . "freedink")))
3192 (home-page "https://www.gnu.org/software/freedink/")
3193 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
3194 (description
3195 "GNU FreeDink is a free and portable re-implementation of the engine
3196 for the role-playing game Dink Smallwood. It supports not only the original
3197 game data files but it also supports user-produced game mods or \"D-Mods\".
3198 To that extent, it also includes a front-end for managing all of your D-Mods.")
3199 (license license:gpl3+)))
3200
3201 (define-public freedink-data
3202 (package
3203 (name "freedink-data")
3204 (version "1.08.20190120")
3205 (source (origin
3206 (method url-fetch)
3207 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3208 version ".tar.gz"))
3209 (sha256
3210 (base32
3211 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3212 (build-system gnu-build-system)
3213 (arguments
3214 `(#:phases
3215 (modify-phases %standard-phases
3216 (delete 'configure) ; no configure script
3217 (delete 'check)) ; no tests
3218 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3219 (properties '((ftp-directory . "/freedink")))
3220 (home-page "https://www.gnu.org/software/freedink/")
3221 (synopsis "Game data for GNU Freedink")
3222 (description
3223 "This package contains the game data of GNU Freedink.")
3224 (license license:gpl3+)))
3225
3226 (define-public freedink-dfarc
3227 (package
3228 (name "freedink-dfarc")
3229 (version "3.14")
3230 (source (origin
3231 (method url-fetch)
3232 (uri (string-append "mirror://gnu/freedink/dfarc-"
3233 version ".tar.gz"))
3234 (sha256
3235 (base32
3236 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3237 (build-system gnu-build-system)
3238 (native-inputs
3239 `(("intltool" ,intltool)))
3240 (inputs
3241 `(("bzip2" ,bzip2)
3242 ("wxwidgets" ,wxwidgets)))
3243 (properties '((ftp-directory . "/freedink")
3244 (upstream-name . "dfarc")))
3245 (home-page "https://www.gnu.org/software/freedink/")
3246 (synopsis "Front-end for managing and playing Dink Modules")
3247 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3248 and its numerous D-Mods.")
3249 (license license:gpl3+)))
3250
3251 (define-public freedink
3252 ;; This is a wrapper that tells the engine where to find the data.
3253 (package (inherit freedink-engine)
3254 (name "freedink")
3255 (build-system trivial-build-system)
3256 (arguments
3257 '(#:builder (begin
3258 (use-modules (guix build utils))
3259
3260 (let* ((output (assoc-ref %outputs "out"))
3261 (bin (string-append output "/bin"))
3262 (executable (string-append bin "/freedink")))
3263 (mkdir-p bin)
3264 (call-with-output-file executable
3265 (lambda (port)
3266 (format port "#!~a/bin/sh
3267 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3268 (assoc-ref %build-inputs "bash")
3269 (assoc-ref %build-inputs "engine")
3270 (assoc-ref %build-inputs "data"))
3271 (chmod port #o777)))
3272 #t))
3273 #:modules ((guix build utils))))
3274 (inputs `(("engine" ,freedink-engine)
3275 ("data" ,freedink-data)
3276 ("bash" ,bash)))
3277 (native-inputs '())))
3278
3279 (define-public xboard
3280 (package
3281 (name "xboard")
3282 (version "4.9.1")
3283 (source
3284 (origin
3285 (method url-fetch)
3286 (uri (string-append "mirror://gnu/xboard/xboard-" version
3287 ".tar.gz"))
3288 (sha256
3289 (base32
3290 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3291 (build-system gnu-build-system)
3292 (inputs
3293 `(("gtk+" ,gtk+-2)
3294 ("librsvg" ,librsvg)))
3295 (native-inputs
3296 `(("texinfo" ,texinfo)
3297 ("pkg-config" ,pkg-config)))
3298 (home-page "https://www.gnu.org/software/xboard/")
3299 (synopsis "Graphical user interface for chess programs")
3300 (description "GNU XBoard is a graphical board for all varieties of chess,
3301 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3302 and Makruk. Several lesser-known variants are also supported. It presents a
3303 fully interactive graphical interface and it can load and save games in the
3304 Portable Game Notation.")
3305 (license license:gpl3+)))
3306
3307 (define-public gtypist
3308 (package
3309 (name "gtypist")
3310 (version "2.9.5")
3311 (source (origin
3312 (method url-fetch)
3313 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3314 version ".tar.xz"))
3315 (sha256
3316 (base32
3317 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3318 (modules '((guix build utils)))
3319 (snippet
3320 ;; We do not provide `ncurses.h' within an `ncursesw'
3321 ;; sub-directory, so patch the source accordingly. See
3322 ;; <http://bugs.gnu.org/19018>.
3323 '(begin
3324 (for-each (lambda (file)
3325 (substitute* file
3326 (("ncursesw/ncurses.h")
3327 "ncurses.h")))
3328 (find-files "." "configure$|\\.c$"))
3329 #t))))
3330 (build-system gnu-build-system)
3331 (inputs `(("ncurses" ,ncurses)
3332 ("perl" ,perl)))
3333 (home-page "https://www.gnu.org/software/gtypist/")
3334 (synopsis "Typing tutor")
3335 (description
3336 "GNU Typist is a universal typing tutor. It can be used to learn and
3337 practice touch-typing. Several tutorials are included; in addition to
3338 tutorials for the standard QWERTY layout, there are also tutorials for the
3339 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3340 are primarily in English, however some in other languages are provided.")
3341 (license license:gpl3+)))
3342
3343 (define-public irrlicht
3344 (package
3345 (name "irrlicht")
3346 (version "1.8.4")
3347 (source (origin
3348 (method url-fetch)
3349 (uri (string-append
3350 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3351 (version-major+minor version)
3352 "/" version "/irrlicht-" version ".zip"))
3353 (sha256
3354 (base32
3355 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3356 (patches (search-patches "irrlicht-use-system-libs.patch"))
3357 (modules '((guix build utils)))
3358 (snippet
3359 '(begin
3360 (for-each delete-file-recursively
3361 '("bin" ; bundled compiled Windows binaries"
3362 "source/Irrlicht/MacOSX"
3363 "source/Irrlicht/bzip2"
3364 "source/Irrlicht/jpeglib"
3365 "source/Irrlicht/libpng"
3366 "source/Irrlicht/lzma"
3367 "source/Irrlicht/zlib"))
3368 (delete-file "source/Irrlicht/glext.h")
3369 (delete-file "source/Irrlicht/glxext.h")
3370 (delete-file "source/Irrlicht/wglext.h")
3371 #t))))
3372 (build-system gnu-build-system)
3373 (arguments
3374 `(#:phases
3375 (modify-phases %standard-phases
3376 (add-after 'unpack 'chdir-to-source
3377 (lambda _
3378 ;; The actual source is buried a few directories deep.
3379 (chdir "source/Irrlicht/")
3380 #t))
3381 (add-after 'chdir-to-source 'fix-build-env
3382 (lambda* (#:key outputs #:allow-other-keys)
3383 (let ((out (assoc-ref outputs "out")))
3384 (substitute* "Makefile"
3385 (("INSTALL_DIR = /usr/local/lib")
3386 (string-append "INSTALL_DIR = " out "/lib"))
3387 ;; Add '-fpermissive' to the CXXFLAGS
3388 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3389 ;; The Makefile assumes these directories exist.
3390 (mkdir-p (string-append out "/lib"))
3391 (mkdir-p (string-append out "/include")))))
3392 (delete 'configure)) ; no configure script
3393 #:tests? #f ; no check target
3394 #:make-flags '("CC=gcc" "sharedlib")))
3395 (inputs
3396 `(("bzip2" ,bzip2)
3397 ("libjpeg" ,libjpeg-turbo)
3398 ("libpng" ,libpng)
3399 ("libx11" ,libx11)
3400 ("libxxf86vm" ,libxxf86vm)
3401 ("mesa" ,mesa)))
3402 (synopsis "3D game engine written in C++")
3403 (description
3404 "The Irrlicht Engine is a high performance realtime 3D engine written in
3405 C++. Features include an OpenGL renderer, extensible materials, scene graph
3406 management, character animation, particle and other special effects, support
3407 for common mesh file formats, and collision detection.")
3408 (home-page "http://irrlicht.sourceforge.net/")
3409 (license license:zlib)))
3410
3411 (define-public mars
3412 ;; The latest release on SourceForge relies on an unreleased version of SFML
3413 ;; with a different API, so we take the latest version from the official
3414 ;; repository on Github.
3415 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3416 (revision "1"))
3417 (package
3418 (name "mars")
3419 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3420 (source (origin
3421 (method git-fetch)
3422 (uri (git-reference
3423 (url "https://github.com/thelaui/M.A.R.S.")
3424 (commit commit)))
3425 (file-name (git-file-name name version))
3426 (sha256
3427 (base32
3428 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3429 (patches (search-patches "mars-sfml-2.3.patch"
3430 "mars-install.patch"))))
3431 (build-system cmake-build-system)
3432 (arguments
3433 `(#:tests? #f ; There are no tests
3434 #:phases
3435 (modify-phases %standard-phases
3436 (add-after 'unpack 'fix-install-path
3437 (lambda _
3438 (substitute* "src/CMakeLists.txt"
3439 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3440 "${CMAKE_INSTALL_PREFIX}/bin"))
3441 #t))
3442 (add-after 'unpack 'fix-data-path
3443 (lambda* (#:key outputs #:allow-other-keys)
3444 (substitute* "src/System/settings.cpp"
3445 (("C_dataPath = \"./data/\";")
3446 (string-append "C_dataPath = \""
3447 (assoc-ref outputs "out")
3448 "/share/games/marsshooter/\";")))
3449 #t)))))
3450 (inputs
3451 `(("mesa" ,mesa)
3452 ("fribidi" ,fribidi)
3453 ("taglib" ,taglib)
3454 ("sfml" ,sfml)))
3455 (home-page "http://mars-game.sourceforge.net/")
3456 (synopsis "2D space shooter")
3457 (description
3458 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3459 attractive physics. Players can battle each other or computer controlled
3460 enemies in different game modes such as space ball, death match, team death
3461 match, cannon keep, and grave-itation pit.")
3462 (license license:gpl3+))))
3463
3464 (define-public minetest
3465 (package
3466 (name "minetest")
3467 (version "5.3.0")
3468 (source (origin
3469 (method git-fetch)
3470 (uri (git-reference
3471 (url "https://github.com/minetest/minetest")
3472 (commit version)))
3473 (file-name (git-file-name name version))
3474 (sha256
3475 (base32
3476 "03ga3j3cg38w4lg4d4qxasmnjdl8n3lbizidrinanvyfdyvznyh6"))
3477 (modules '((guix build utils)))
3478 (snippet
3479 '(begin
3480 ;; Delete bundled libraries.
3481 (delete-file-recursively "lib")
3482 #t))))
3483 (build-system cmake-build-system)
3484 (arguments
3485 '(#:configure-flags
3486 (list "-DRUN_IN_PLACE=0"
3487 "-DENABLE_FREETYPE=1"
3488 "-DENABLE_GETTEXT=1"
3489 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3490 (string-append "-DIRRLICHT_INCLUDE_DIR="
3491 (assoc-ref %build-inputs "irrlicht")
3492 "/include/irrlicht")
3493 (string-append "-DCURL_INCLUDE_DIR="
3494 (assoc-ref %build-inputs "curl")
3495 "/include/curl"))
3496 #:tests? #f)) ;no check target
3497 (native-search-paths
3498 (list (search-path-specification
3499 (variable "MINETEST_SUBGAME_PATH")
3500 (files '("share/minetest/games")))))
3501 (native-inputs
3502 `(("pkg-config" ,pkg-config)))
3503 (inputs
3504 `(("curl" ,curl)
3505 ("freetype" ,freetype)
3506 ("gettext" ,gettext-minimal)
3507 ("gmp" ,gmp)
3508 ("irrlicht" ,irrlicht)
3509 ("jsoncpp" ,jsoncpp)
3510 ("libjpeg" ,libjpeg-turbo)
3511 ("libpng" ,libpng)
3512 ("libogg" ,libogg)
3513 ("libvorbis" ,libvorbis)
3514 ("libxxf86vm" ,libxxf86vm)
3515 ("luajit" ,luajit)
3516 ("mesa" ,mesa)
3517 ("ncurses" ,ncurses)
3518 ("openal" ,openal)
3519 ("sqlite" ,sqlite)))
3520 (propagated-inputs
3521 `(("minetest-data" ,minetest-data)))
3522 (synopsis "Infinite-world block sandbox game")
3523 (description
3524 "Minetest is a sandbox construction game. Players can create and destroy
3525 various types of blocks in a three-dimensional open world. This allows
3526 forming structures in every possible creation, on multiplayer servers or as a
3527 single player. Mods and texture packs allow players to personalize the game
3528 in different ways.")
3529 (home-page "https://www.minetest.net/")
3530 (license license:lgpl2.1+)))
3531
3532 (define minetest-data
3533 (package
3534 (name "minetest-data")
3535 (version (package-version minetest))
3536 (source (origin
3537 (method git-fetch)
3538 (uri (git-reference
3539 (url "https://github.com/minetest/minetest_game")
3540 (commit version)))
3541 (file-name (git-file-name name version))
3542 (sha256
3543 (base32
3544 "1liciwlh013z5h08ib0psjbwn5wkvlr937ir7kslfk4vly984cjx"))))
3545 (build-system trivial-build-system)
3546 (native-inputs
3547 `(("source" ,source)))
3548 (arguments
3549 `(#:modules ((guix build utils))
3550 #:builder (begin
3551 (use-modules (guix build utils))
3552 (let ((install-dir (string-append
3553 %output
3554 "/share/minetest/games/minetest_game")))
3555 (mkdir-p install-dir)
3556 (copy-recursively
3557 (assoc-ref %build-inputs "source")
3558 install-dir)
3559 #t))))
3560 (synopsis "Main game data for the Minetest game engine")
3561 (description
3562 "Game data for the Minetest infinite-world block sandbox game.")
3563 (home-page "https://www.minetest.net/")
3564 (license license:lgpl2.1+)))
3565
3566 (define-public minetest-mineclone
3567 (package
3568 (name "minetest-mineclone")
3569 (version "0.66.2")
3570 (source (origin
3571 (method git-fetch)
3572 (uri (git-reference
3573 (url "https://git.minetest.land/Wuzzy/MineClone2")
3574 (commit version)))
3575 (file-name (git-file-name name version))
3576 (sha256
3577 (base32
3578 "0miszzlzplpvaj0j1yii9867ydr42wsaqa9g6grxdrci75p05g00"))))
3579 (build-system copy-build-system)
3580 (arguments
3581 `(#:install-plan
3582 '(("." "share/minetest/games/mineclone"))))
3583 (synopsis "Minecraft clone based on Minetest engine")
3584 (description
3585 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3586 closely as the engine allows.")
3587 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3588 (license license:gpl3+)))
3589
3590 (define glkterm
3591 (package
3592 (name "glkterm")
3593 (version "1.0.4")
3594 (source
3595 (origin
3596 (method url-fetch)
3597 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3598 "glk/implementations/glkterm-104.tar.gz"))
3599 (sha256
3600 (base32
3601 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3602 (build-system gnu-build-system)
3603 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3604 (arguments
3605 '(#:tests? #f ; no check target
3606 #:phases
3607 (modify-phases %standard-phases
3608 (replace 'install
3609 (lambda* (#:key outputs #:allow-other-keys)
3610 (let* ((out (assoc-ref outputs "out"))
3611 (inc (string-append out "/include"))
3612 (lib (string-append out "/lib")))
3613 (for-each
3614 (lambda (file)
3615 (install-file file inc))
3616 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3617 (install-file "libglkterm.a" lib))
3618 #t))
3619 (delete 'configure)))) ; no configure script
3620 (home-page "http://www.eblong.com/zarf/glk/")
3621 (synopsis "Curses Implementation of the Glk API")
3622 (description
3623 "Glk defines a portable API for applications with text UIs. It was
3624 primarily designed for interactive fiction, but it should be suitable for many
3625 interactive text utilities, particularly those based on a command line.
3626 This is an implementation of the Glk library which runs in a terminal window,
3627 using the @code{curses.h} library for screen control.")
3628 (license (license:fsf-free "file://README"))))
3629
3630 (define-public glulxe
3631 (package
3632 (name "glulxe")
3633 (version "0.5.4")
3634 (source
3635 (origin
3636 (method url-fetch)
3637 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3638 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3639 (sha256
3640 (base32
3641 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3642 (build-system gnu-build-system)
3643 (inputs `(("glk" ,glkterm)))
3644 (arguments
3645 '(#:tests? #f ; no check target
3646 #:make-flags
3647 (let* ((glk (assoc-ref %build-inputs "glk")))
3648 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3649 (string-append "GLKLIBDIR=" glk "/lib")
3650 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3651 #:phases
3652 (modify-phases %standard-phases
3653 (replace 'install
3654 (lambda* (#:key outputs #:allow-other-keys)
3655 (let* ((out (assoc-ref outputs "out"))
3656 (bin (string-append out "/bin")))
3657 (install-file "glulxe" bin))
3658 #t))
3659 (delete 'configure)))) ; no configure script
3660 (home-page "https://www.eblong.com/zarf/glulx/")
3661 (synopsis "Interpreter for Glulx VM")
3662 (description
3663 "Glulx is a 32-bit portable virtual machine intended for writing and
3664 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3665 some of the restrictions in the venerable Z-machine format. This is the
3666 reference interpreter, using the Glk API.")
3667 (license license:expat)))
3668
3669 (define-public fifechan
3670 (package
3671 (name "fifechan")
3672 (version "0.1.5")
3673 (source (origin
3674 (method url-fetch)
3675 (uri (string-append "https://codeload.github.com/fifengine/"
3676 "fifechan/tar.gz/" version))
3677 (file-name (string-append name "-" version ".tar.gz"))
3678 (sha256
3679 (base32
3680 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3681 (build-system cmake-build-system)
3682 (inputs
3683 `(("sdl2" ,sdl2)
3684 ("sdl2-image" ,sdl2-image)
3685 ("mesa" ,mesa)))
3686 (arguments
3687 '(#:tests? #f)) ; No included tests
3688 (home-page "https://fifengine.github.io/fifechan/")
3689 (synopsis "Cross platform GUI library specifically for games")
3690 (description
3691 "Fifechan is a lightweight cross platform GUI library written in C++
3692 specifically designed for games. It has a built in set of extendable GUI
3693 Widgets, and allows users to create more.")
3694 (license license:lgpl2.1+)))
3695
3696 (define-public fifengine
3697 (package
3698 (name "fifengine")
3699 (version "0.4.2")
3700 (source (origin
3701 (method url-fetch)
3702 (uri (string-append "https://codeload.github.com/fifengine/"
3703 "fifengine/tar.gz/" version))
3704 (file-name (string-append name "-" version ".tar.gz"))
3705 (patches (search-patches "fifengine-swig-compat.patch"))
3706 (sha256
3707 (base32
3708 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3709 (build-system cmake-build-system)
3710 (arguments
3711 `(#:tests? #f ; TODO The test running fails to run some tests.
3712 #:modules ((srfi srfi-1)
3713 (guix build cmake-build-system)
3714 (guix build utils))
3715 #:configure-flags
3716 (list
3717 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3718 (assoc-ref %build-inputs "openal")
3719 "/include/AL")
3720 (string-append "-DPYTHON_SITE_PACKAGES="
3721 (assoc-ref %outputs "out")
3722 "/lib/python"
3723 ,(version-major+minor (package-version python))
3724 "/site-packages"))
3725 #:phases
3726 (modify-phases %standard-phases
3727 (add-after 'unpack 'patch-run_tests.py
3728 (lambda _
3729 ;; Patch the test runner to exit with a status of 1 if any test
3730 ;; fails, to allow detecting failures.
3731 (substitute* "run_tests.py"
3732 (("ERROR\\. One or more tests failed!'\\)")
3733 "ERROR. One or more tests failed!')
3734 \t\texit(1)"))
3735 #t))
3736 ;; Run tests after installation so that we can make use of the built
3737 ;; python modules.
3738 (delete 'check)
3739 (add-after 'install 'check
3740 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3741 (define python-version
3742 (let* ((version (last (string-split
3743 (assoc-ref inputs "python")
3744 #\-)))
3745 (components (string-split version #\.))
3746 (major+minor (take components 2)))
3747 (string-join major+minor ".")))
3748
3749 (when tests?
3750 ;; Set PYTHONPATH so that python finds the installed modules.
3751 (setenv "PYTHONPATH"
3752 (string-append (getenv "PYTHONPATH") ":"
3753 (assoc-ref outputs "out")
3754 "/lib/python"
3755 python-version
3756 "/site-packages"))
3757 ;; The tests require an X server.
3758 (system "Xvfb :1 &")
3759 (setenv "DISPLAY" ":1")
3760 (setenv "XDG_RUNTIME_DIR" "/tmp")
3761 ;; Run tests
3762 (chdir ,(string-append "../" name "-" version))
3763 (invoke "python3" "run_tests.py" "-a"))
3764 #t)))))
3765 (inputs
3766 `(("sdl2" ,sdl2)
3767 ("sdl2-image" ,sdl2-image)
3768 ("sdl2-ttf" ,sdl2-ttf)
3769 ("tinyxml" ,tinyxml)
3770 ("openal" ,openal)
3771 ("libogg" ,libogg)
3772 ("glew" ,glew)
3773 ("libvorbis" ,libvorbis)
3774 ("boost" ,boost)
3775 ("fifechan" ,fifechan)
3776 ("swig" ,swig)
3777 ("python" ,python)))
3778 (native-inputs
3779 `(("python" ,python)
3780 ("swig" ,swig)
3781 ("xvfb" ,xorg-server)))
3782 (propagated-inputs
3783 `(("python-future" ,python-future)))
3784 (home-page "https://www.fifengine.net/")
3785 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3786 (description
3787 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3788 isometric game engine. Python bindings are included allowing users to create
3789 games using Python as well as C++.")
3790 (license license:lgpl2.1+)))
3791
3792 (define-public fizmo
3793 (package
3794 (name "fizmo")
3795 (version "0.8.5")
3796 (source (origin
3797 (method url-fetch)
3798 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3799 "fizmo-" version ".tar.gz"))
3800 (sha256
3801 (base32
3802 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3803 (build-system gnu-build-system)
3804 (arguments
3805 '(#:configure-flags
3806 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3807 (ncurses (assoc-ref %build-inputs "ncurses")))
3808 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3809 (native-inputs
3810 `(("pkg-config" ,pkg-config)))
3811 (inputs
3812 `(("freetype" ,freetype)
3813 ("libjpeg" ,libjpeg-turbo)
3814 ("libpng" ,libpng)
3815 ("libsndfile" ,libsndfile)
3816 ("libxml2" ,libxml2)
3817 ("ncurses" ,ncurses)
3818 ("sdl2" ,sdl2)))
3819 (home-page "https://fizmo.spellbreaker.org/")
3820 (synopsis "Z-machine interpreter")
3821 (description
3822 "Fizmo is a console-based Z-machine interpreter. It is used to play
3823 interactive fiction, also known as text adventures, which were implemented
3824 either by Infocom or created using the Inform compiler.")
3825 (license license:bsd-3)))
3826
3827 (define-public gnugo
3828 (package
3829 (name "gnugo")
3830 (version "3.8")
3831 (source (origin
3832 (method url-fetch)
3833 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3834 ".tar.gz"))
3835 (sha256
3836 (base32
3837 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3838 (build-system gnu-build-system)
3839 (inputs `(("readline" ,readline)))
3840 (synopsis "Play the game of Go")
3841 (description
3842 "GNU Go is a program that plays the game of Go, in which players
3843 place stones on a grid to form territory or capture other stones. While
3844 it can be played directly from the terminal, rendered in ASCII characters,
3845 it is also possible to play GNU Go with 3rd party graphical interfaces or
3846 even in Emacs. It supports the standard game storage format (SGF, Smart
3847 Game Format) and inter-process communication format (GMP, Go Modem
3848 Protocol).")
3849 (home-page "https://www.gnu.org/software/gnugo/")
3850 (license license:gpl3+)))
3851
3852 (define-public extremetuxracer
3853 (package
3854 (name "extremetuxracer")
3855 (version "0.8.0")
3856 (source (origin
3857 (method url-fetch)
3858 (uri (string-append
3859 "mirror://sourceforge/extremetuxracer/releases/"
3860 version "/etr-" version ".tar.xz"))
3861 (sha256
3862 (base32
3863 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3864 (build-system gnu-build-system)
3865 (native-inputs
3866 `(("pkg-config" ,pkg-config)))
3867 (inputs
3868 `(("glu" ,glu)
3869 ("sfml" ,sfml)))
3870 (synopsis "High-speed arctic racing game based on Tux Racer")
3871 ;; Snarfed straight from Debian.
3872 (description "Extreme Tux Racer, or etracer as it is called for short, is
3873 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3874 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3875 avoiding the trees and rocks that will slow you down.
3876
3877 Collect herrings and other goodies while sliding down the hill, but avoid fish
3878 bones.
3879
3880 This game is based on the GPL version of the famous game TuxRacer.")
3881 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3882 (license license:gpl2+)))
3883
3884 (define-public supertuxkart
3885 (package
3886 (name "supertuxkart")
3887 (version "1.2")
3888 (source
3889 (origin
3890 (method url-fetch)
3891 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3892 version "/SuperTuxKart-" version "-src.tar.xz"))
3893 (sha256
3894 (base32
3895 "0dvx56hmy6wdhl7m9dw8zc1n3jqfp05gnxl6zs1rbfdyzl5dybh5"))
3896 (modules '((guix build utils)))
3897 (snippet
3898 ;; Delete bundled library sources
3899 '(begin
3900 ;; Supertuxkart uses modified versions of the Irrlicht engine
3901 ;; and the bullet library. The developers gave an explanation
3902 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3903 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3904 (for-each delete-file-recursively
3905 '("lib/glew"
3906 "lib/wiiuse"
3907 "lib/enet"))
3908 #t))))
3909 (build-system cmake-build-system)
3910 (arguments
3911 `(#:tests? #f ; no check target
3912 #:configure-flags
3913 (list "-DUSE_WIIUSE=0"
3914 "-DUSE_SYSTEM_GLEW=TRUE"
3915 "-DUSE_SYSTEM_ENET=TRUE"
3916 ;; In order to use the system ENet library, IPv6 support (added in
3917 ;; SuperTuxKart version 1.1) must be disabled.
3918 "-DUSE_IPV6=FALSE"
3919 ;; FIXME: needs libopenglrecorder
3920 "-DBUILD_RECORDER=0")))
3921 (inputs
3922 `(("curl" ,curl)
3923 ("freetype" ,freetype)
3924 ("fribidi" ,fribidi)
3925 ("glew" ,glew)
3926 ("harfbuzz" ,harfbuzz)
3927 ("libvorbis" ,libvorbis)
3928 ("libx11" ,libx11)
3929 ("libxrandr" ,libxrandr)
3930 ("mesa" ,mesa)
3931 ("openal" ,openal)
3932 ("sdl2" ,sdl2)
3933 ("zlib" ,zlib)
3934 ;; The following input is needed to build the bundled and modified
3935 ;; version of irrlicht.
3936 ("enet" ,enet)
3937 ("libjpeg" ,libjpeg-turbo)
3938 ("openssl" ,openssl)))
3939 (native-inputs
3940 `(("pkg-config" ,pkg-config)))
3941 (home-page "https://supertuxkart.net/Main_Page")
3942 (synopsis "3D kart racing game")
3943 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3944 having fun over realism. You can play with up to 4 friends on one PC, racing
3945 against each other or just trying to beat the computer; single-player mode is
3946 also available.")
3947 (license license:gpl3+)))
3948
3949 (define-public unknown-horizons
3950 (package
3951 (name "unknown-horizons")
3952 (version "2019.1")
3953 (source (origin
3954 (method url-fetch)
3955 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3956 "unknown-horizons/tar.gz/" version))
3957 (file-name (string-append name "-" version ".tar.gz"))
3958 (sha256
3959 (base32
3960 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
3961 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
3962 (build-system python-build-system)
3963 (arguments
3964 '(#:phases
3965 (modify-phases %standard-phases
3966 (add-before 'build 'set-HOME
3967 (lambda _
3968 (setenv "HOME" "/tmp")
3969 #t))
3970 (add-after 'build 'build-extra
3971 (lambda _
3972 (invoke "python3" "./setup.py" "build_i18n")
3973 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3974 #t))
3975 (add-after 'install 'patch
3976 (lambda* (#:key outputs #:allow-other-keys)
3977 (let ((out (assoc-ref outputs "out")))
3978 (substitute* (string-append out "/bin/unknown-horizons")
3979 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3980 (string-append "os.chdir(\""
3981 (assoc-ref outputs "out")
3982 "/share/unknown-horizons\")"))))
3983 #t))
3984 (add-before 'check 'fix-tests-with-pytest>=4
3985 (lambda _
3986 (substitute* "tests/conftest.py"
3987 (("pytest_namespace")
3988 "pytest_configure")
3989 (("get_marker")
3990 "get_closest_marker"))
3991 #t))
3992 ;; TODO: Run GUI tests as well
3993 (replace 'check
3994 (lambda _
3995 (substitute* "horizons/constants.py"
3996 (("IS_DEV_VERSION = False")
3997 "IS_DEV_VERSION = True"))
3998 (invoke "pytest" "tests")
3999 (substitute* "horizons/constants.py"
4000 (("IS_DEV_VERSION = True")
4001 "IS_DEV_VERSION = False"))
4002 #t)))))
4003 (inputs
4004 `(("fifengine" ,fifengine)
4005 ("python:tk" ,python "tk")
4006 ("python-pillow" ,python-pillow)
4007 ("python-pyyaml" ,python-pyyaml)))
4008 (native-inputs
4009 `(("intltool" ,intltool)
4010 ("python-distro" ,python-distro)
4011
4012 ;; Required for tests
4013 ("python-greenlet" ,python-greenlet)
4014 ("python-polib" ,python-polib)
4015 ("python-pytest" ,python-pytest)
4016 ("python-pytest-mock" ,python-pytest-mock)))
4017 (home-page "https://unknown-horizons.org/")
4018 (synopsis "Isometric realtime strategy, economy and city building simulation")
4019 (description
4020 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
4021 on economy and city building. Expand your small settlement to a strong and
4022 wealthy colony, collect taxes and supply your inhabitants with valuable
4023 goods. Increase your power with a well balanced economy and with strategic
4024 trade and diplomacy.")
4025 (license (list
4026 license:gpl2+ ; Covers code
4027 license:expat ; tests/dummy.py, ext/polib.py
4028 license:cc-by-sa3.0 ; Covers some media content
4029 license:cc-by3.0 ; Covers some media content
4030 license:bsd-3)))) ; horizons/ext/speaklater.py
4031
4032 (define-public gnujump
4033 (package
4034 (name "gnujump")
4035 (version "1.0.8")
4036 (source (origin
4037 (method url-fetch)
4038 (uri (string-append "mirror://gnu/gnujump/gnujump-"
4039 version ".tar.gz"))
4040 (sha256
4041 (base32
4042 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
4043 (build-system gnu-build-system)
4044 (arguments
4045 '(#:phases
4046 (modify-phases %standard-phases
4047 (add-before
4048 'configure 'link-libm
4049 (lambda _ (setenv "LIBS" "-lm")))
4050 (add-after 'install 'create-desktop-entry
4051 (lambda* (#:key outputs #:allow-other-keys)
4052 (let* ((out (assoc-ref outputs "out"))
4053 (apps (string-append out "/share/applications")))
4054 (mkdir-p apps)
4055 (with-output-to-file
4056 (string-append apps "/gnujump.desktop")
4057 (lambda _
4058 (format #t
4059 "[Desktop Entry]~@
4060 Name=GNUjump~@
4061 Comment=Jump up the tower to survive~@
4062 Exec=~a/bin/gnujump~@
4063 Terminal=false~@
4064 Type=Application~@
4065 Categories=Game;ArcadeGame~%"
4066 out)))))))))
4067 (inputs
4068 `(("glu" ,glu)
4069 ("mesa" ,mesa)
4070 ("sdl" ,sdl)
4071 ("sdl-image" ,sdl-image)
4072 ("sdl-mixer" ,sdl-mixer)))
4073 (home-page "http://gnujump.es.gnu.org/")
4074 (synopsis
4075 "Game of jumping to the next floor, trying not to fall")
4076 (description
4077 "GNUjump is a simple, yet addictive game in which you must jump from
4078 platform to platform to avoid falling, while the platforms drop at faster rates
4079 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
4080 falling, themeable graphics and sounds, and replays.")
4081 (license license:gpl3+)))
4082
4083 (define-public wesnoth
4084 (package
4085 (name "wesnoth")
4086 (version "1.14.16")
4087 (source (origin
4088 (method url-fetch)
4089 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
4090 (version-major+minor version)
4091 "/wesnoth-" version "/"
4092 "wesnoth-" version ".tar.bz2"))
4093 (sha256
4094 (base32
4095 "1d9hq3dcx0sgs2v4400rg2nw98v46m7bwiqqjv8z8n7vw8kx8lhg"))))
4096 (build-system cmake-build-system)
4097 (arguments
4098 `(#:tests? #f)) ;no check target
4099 (native-inputs
4100 `(("gettext" ,gettext-minimal)
4101 ("pkg-config" ,pkg-config)))
4102 (inputs
4103 `(("boost" ,boost)
4104 ("dbus" ,dbus)
4105 ("fribidi" ,fribidi)
4106 ("libvorbis" ,libvorbis)
4107 ("openssl" ,openssl)
4108 ("pango" ,pango)
4109 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
4110 (home-page "https://www.wesnoth.org/")
4111 (synopsis "Turn-based strategy game")
4112 (description
4113 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
4114 with several single player campaigns, and multiplayer games (both networked and
4115 local).
4116
4117 Battle for control on a range of maps, using variety of units which have
4118 advantages and disadvantages against different types of attacks. Units gain
4119 experience and advance levels, and are carried over from one scenario to the
4120 next campaign.")
4121 (license license:gpl2+)))
4122
4123 (define-public wesnoth-server
4124 (package
4125 (inherit wesnoth)
4126 (name "wesnoth-server")
4127 (inputs
4128 `(("boost" ,boost)
4129 ("icu4c" ,icu4c)
4130 ("openssl" ,openssl)
4131 ("sdl2" ,sdl2)))
4132 (arguments
4133 `(#:configure-flags '("-DENABLE_GAME=OFF")
4134 ,@(package-arguments wesnoth)))
4135 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
4136 (description "This package contains a dedicated server for @emph{The
4137 Battle for Wesnoth}.")))
4138
4139 (define-public gamine
4140 (package
4141 (name "gamine")
4142 (version "1.6")
4143 (source (origin
4144 (method url-fetch)
4145 (uri (string-append "mirror://sourceforge/gamine-game/"
4146 "gamine-" version ".tar.gz"))
4147 (sha256
4148 (base32
4149 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
4150 (build-system gnu-build-system)
4151 (native-inputs
4152 `(("pkg-config" ,pkg-config)
4153 ("intltool" ,intltool)))
4154 (inputs
4155 `(("gstreamer" ,gstreamer)
4156 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
4157 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
4158 ("gtk+" ,gtk+)))
4159 (arguments
4160 `(#:tests? #f
4161 #:make-flags
4162 (let ((out (assoc-ref %outputs "out")))
4163 (list (string-append "PREFIX=" out)
4164 (string-append "SYSCONFDIR=" out "/etc")))
4165 #:phases
4166 (modify-phases %standard-phases
4167 (delete 'configure)
4168 (add-after
4169 'install 'wrap-gamine
4170 (lambda* (#:key outputs #:allow-other-keys)
4171 (let ((out (assoc-ref outputs "out"))
4172 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4173 (wrap-program (string-append out "/bin/gamine")
4174 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4175 #t)))))
4176 (home-page "http://gamine-game.sourceforge.net/")
4177 (synopsis "Mouse and keyboard discovery for children")
4178 (description
4179 "Gamine is a game designed for young children who are learning to use the
4180 mouse and keyboard. The child uses the mouse to draw colored dots and lines
4181 on the screen and keyboard to display letters.")
4182 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
4183 (license license:gpl3)))
4184
4185 (define-public manaplus
4186 (package
4187 (name "manaplus")
4188 (version "1.9.3.23")
4189 (source (origin
4190 (method url-fetch)
4191 (uri (string-append
4192 "https://repo.manaplus.org/manaplus/download/"
4193 version "/manaplus-" version ".tar.xz"))
4194 (sha256
4195 (base32
4196 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
4197 (build-system gnu-build-system)
4198 (arguments
4199 '(#:configure-flags
4200 (list (string-append "CPPFLAGS=-I"
4201 (assoc-ref %build-inputs "sdl-union")
4202 "/include/SDL"))))
4203 (native-inputs
4204 `(("pkg-config" ,pkg-config)))
4205 (inputs
4206 `(("glu" ,glu)
4207 ("curl" ,curl)
4208 ("libxml2" ,libxml2)
4209 ("mesa" ,mesa)
4210 ("sdl-union" ,(sdl-union))))
4211 (home-page "https://manaplus.org")
4212 (synopsis "Client for 'The Mana World' and similar games")
4213 (description
4214 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4215 fully supported client for @uref{http://www.themanaworld.org, The mana
4216 world}, @uref{http://evolonline.org, Evol Online} and
4217 @uref{http://landoffire.org, Land of fire}.")
4218 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4219 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4220 ;; The rest is under GPL2+.
4221 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4222
4223 (define openttd-engine
4224 (package
4225 (name "openttd-engine")
4226 (version "1.10.3")
4227 (source
4228 (origin (method url-fetch)
4229 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4230 version "/openttd-" version "-source.tar.xz"))
4231 (sha256
4232 (base32
4233 "0fxmfz1mm95a2x0rnzfff9wb8q57w0cvsdd0z7agdcbyakph25n1"))))
4234 (build-system gnu-build-system)
4235 (arguments
4236 `(#:tests? #f ; no "check" target
4237 #:phases
4238 (modify-phases %standard-phases
4239 ;; The build process fails if the configure script is passed the
4240 ;; option "--enable-fast-install".
4241 (replace 'configure
4242 (lambda* (#:key inputs outputs (configure-flags '())
4243 #:allow-other-keys)
4244 (let ((out (assoc-ref outputs "out"))
4245 (lzo (assoc-ref inputs "lzo")))
4246 (apply invoke "./configure"
4247 (string-append "--prefix=" out)
4248 ;; Provide the "lzo" path.
4249 (string-append "--with-liblzo2="
4250 lzo "/lib/liblzo2.a")
4251 ;; Put the binary in 'bin' instead of 'games'.
4252 "--binary-dir=bin"
4253 configure-flags)))))))
4254 (native-inputs `(("pkg-config" ,pkg-config)))
4255 (inputs
4256 `(("allegro" ,allegro)
4257 ("fontconfig" ,fontconfig)
4258 ("freetype" ,freetype)
4259 ("icu4c" ,icu4c)
4260 ("libpng" ,libpng)
4261 ("lzo" ,lzo)
4262 ("sdl" ,sdl)
4263 ("xz" ,xz)
4264 ("zlib" ,zlib)))
4265 (synopsis "Transportation economics simulator game")
4266 (description "OpenTTD is a game in which you transport goods and
4267 passengers by land, water and air. It is a re-implementation of Transport
4268 Tycoon Deluxe with many enhancements including multiplayer mode,
4269 internationalization support, conditional orders and the ability to clone,
4270 autoreplace and autoupdate vehicles. This package only includes the game
4271 engine. When you start it you will be prompted to download a graphics set.")
4272 (home-page "https://www.openttd.org/")
4273 ;; This package is GPLv2, except for a few files located in
4274 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4275 ;; licenses. In addition, this software contains an in-game downloader
4276 ;; from which the user may find non-functional data licensed under
4277 ;; different terms.
4278 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4279
4280 (define openttd-opengfx
4281 (package
4282 (name "openttd-opengfx")
4283 (version "0.6.0")
4284 (source
4285 (origin
4286 (method url-fetch)
4287 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4288 version "/opengfx-" version "-source.tar.xz"))
4289 (sha256
4290 (base32
4291 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
4292 (build-system gnu-build-system)
4293 (arguments
4294 '(#:make-flags (list "CC=gcc"
4295 (string-append "INSTALL_DIR="
4296 (assoc-ref %outputs "out")
4297 "/share/games/openttd/baseset/opengfx"))
4298 #:phases
4299 (modify-phases %standard-phases
4300 (replace 'configure
4301 (lambda _
4302 ;; Make sure HOME is writable for GIMP.
4303 (setenv "HOME" (getcwd))
4304
4305 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4306 ;; dos2unix from receiving its version information as a flag.
4307 (substitute* "Makefile"
4308 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4309 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4310 ;; The check phase for this package only checks the md5sums of the built
4311 ;; GRF files against the md5sums of the release versions. Because we use
4312 ;; different software versions than upstream does, some of the md5sums
4313 ;; are different. However, the package is still reproducible, it's safe
4314 ;; to disable this test.
4315 #:tests? #f
4316 #:parallel-build? #f))
4317 (native-inputs `(("dos2unix" ,dos2unix)
4318 ("gimp" ,gimp)
4319 ("grfcodec" ,grfcodec)
4320 ("nml" ,nml)
4321 ("which" ,which)
4322 ("python" ,python-2)))
4323 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4324 (synopsis "Base graphics set for OpenTTD")
4325 (description
4326 "The OpenGFX project is an implementation of the OpenTTD base graphics
4327 set that aims to ensure the best possible out-of-the-box experience.
4328
4329 OpenGFX provides you with...
4330 @enumerate
4331 @item All graphics you need to enjoy OpenTTD.
4332 @item Uniquely drawn rail vehicles for every climate.
4333 @item Completely snow-aware rivers.
4334 @item Different river and sea water.
4335 @item Snow-aware buoys.
4336 @end enumerate")
4337 (license license:gpl2)))
4338
4339 (define openttd-opensfx
4340 (package
4341 (name "openttd-opensfx")
4342 (version "0.2.3")
4343 (source
4344 (origin
4345 (method url-fetch)
4346 (uri (string-append
4347 "https://binaries.openttd.org/extra/opensfx/"
4348 version "/opensfx-" version "-source.tar.gz"))
4349 (sha256
4350 (base32
4351 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
4352 (build-system gnu-build-system)
4353 (native-inputs
4354 `(("catcodec" ,catcodec)
4355 ("python" ,python-2)))
4356 (arguments
4357 `(#:make-flags
4358 (list (string-append "INSTALL_DIR=" %output
4359 "/share/games/openttd/baseset/opensfx"))
4360 #:phases
4361 (modify-phases %standard-phases
4362 (add-after 'unpack 'make-reproducible
4363 (lambda _
4364 ;; Remove the time dependency of the installed tarball by setting
4365 ;; the modification times if its members to 0.
4366 (substitute* "scripts/Makefile.def"
4367 (("-cf") " --mtime=@0 -cf"))
4368 #t))
4369 (delete 'configure))))
4370 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4371 (synopsis "Base sounds for OpenTTD")
4372 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4373 it possible to play OpenTTD without requiring the proprietary sound files from
4374 the original Transport Tycoon Deluxe.")
4375 (license license:cc-sampling-plus-1.0)))
4376
4377 (define openttd-openmsx
4378 (package
4379 (name "openttd-openmsx")
4380 (version "0.3.1")
4381 (source
4382 (origin
4383 (method url-fetch)
4384 (uri (string-append
4385 "https://binaries.openttd.org/extra/openmsx/"
4386 version "/openmsx-" version "-source.tar.gz"))
4387 (sha256
4388 (base32
4389 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
4390 (build-system gnu-build-system)
4391 (native-inputs
4392 `(("python" ,python-2)))
4393 (arguments
4394 `(#:make-flags
4395 (list (string-append "INSTALL_DIR=" %output
4396 "/share/games/openttd/baseset"))
4397 #:phases
4398 (modify-phases %standard-phases
4399 (delete 'configure)
4400 (add-after 'install 'post-install
4401 ;; Rename openmsx-version to openmsx
4402 (lambda* (#:key outputs #:allow-other-keys)
4403 (let ((install-directory (string-append (assoc-ref outputs "out")
4404 "/share/games/openttd/baseset")))
4405 (rename-file (string-append install-directory "/openmsx-" ,version)
4406 (string-append install-directory "/openmsx"))
4407 #t))))))
4408 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4409 (synopsis "Music set for OpenTTD")
4410 (description "OpenMSX is a music set for OpenTTD which makes it possible
4411 to play OpenTTD without requiring the proprietary music from the original
4412 Transport Tycoon Deluxe.")
4413 (license license:gpl2)))
4414
4415 (define-public openttd
4416 (package
4417 (inherit openttd-engine)
4418 (name "openttd")
4419 (arguments
4420 `(#:configure-flags
4421 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4422 "/bin/timidity"))
4423 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4424 ((#:phases phases)
4425 `(modify-phases ,phases
4426 (add-after 'install 'install-data
4427 (lambda* (#:key inputs outputs #:allow-other-keys)
4428 (for-each
4429 (lambda (input)
4430 (copy-recursively (assoc-ref inputs input)
4431 (assoc-ref outputs "out")))
4432 (list "opengfx" "openmsx" "opensfx"))
4433 #t)))))))
4434 (inputs
4435 `(("timidity++" ,timidity++)
4436 ,@(package-inputs openttd-engine)))
4437 (native-inputs
4438 `(("opengfx" ,openttd-opengfx)
4439 ("openmsx" ,openttd-openmsx)
4440 ("opensfx" ,openttd-opensfx)
4441 ,@(package-native-inputs openttd-engine)))))
4442
4443 (define openrct2-title-sequences
4444 (package
4445 (name "openrct2-title-sequences")
4446 (version "0.1.2")
4447 (source
4448 (origin
4449 (method url-fetch)
4450 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4451 version "/title-sequence-v" version ".zip"))
4452 (file-name (string-append name "-" version ".zip"))
4453 (sha256
4454 (base32
4455 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4456 (build-system trivial-build-system)
4457 (native-inputs
4458 `(("bash" ,bash)
4459 ("coreutils" ,coreutils)
4460 ("unzip" ,unzip)))
4461 (arguments
4462 `(#:modules ((guix build utils))
4463 #:builder
4464 (begin
4465 (use-modules (guix build utils))
4466 (let* ((out (assoc-ref %outputs "out"))
4467 (openrct2-title-sequences (string-append out
4468 "/share/openrct2/title-sequences"))
4469 (source (assoc-ref %build-inputs "source"))
4470 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4471 (copy-file source (string-append ,name "-" ,version ".zip"))
4472 (invoke unzip (string-append ,name "-" ,version ".zip"))
4473 (delete-file (string-append ,name "-" ,version ".zip"))
4474 (mkdir-p openrct2-title-sequences)
4475 (copy-recursively "."
4476 openrct2-title-sequences)
4477 #t))))
4478 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4479 (synopsis "Title sequences for OpenRCT2")
4480 (description
4481 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4482 (license license:gpl3+)))
4483
4484 (define openrct2-objects
4485 (package
4486 (name "openrct2-objects")
4487 (version "1.0.20")
4488 (source
4489 (origin
4490 (method url-fetch)
4491 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4492 version "/objects.zip"))
4493 (file-name (string-append name "-" version ".zip"))
4494 (sha256
4495 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4496 (build-system trivial-build-system)
4497 (native-inputs
4498 `(("bash" ,bash)
4499 ("coreutils" ,coreutils)
4500 ("unzip" ,unzip)))
4501 (arguments
4502 `(#:modules ((guix build utils))
4503 #:builder
4504 (begin
4505 (use-modules (guix build utils))
4506 (let* ((out (assoc-ref %outputs "out"))
4507 (openrct2-objects (string-append out
4508 "/share/openrct2/objects"))
4509 (source (assoc-ref %build-inputs "source"))
4510 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4511 (copy-file source (string-append ,name "-" ,version ".zip"))
4512 (invoke unzip (string-append ,name "-" ,version ".zip"))
4513 (delete-file (string-append ,name "-" ,version ".zip"))
4514 (mkdir-p openrct2-objects)
4515 (copy-recursively "."
4516 openrct2-objects)
4517 #t))))
4518 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4519 (synopsis "Objects for OpenRCT2")
4520 (description
4521 "openrct2-objects is a set of objects for OpenRCT2.")
4522 (license license:gpl3+)))
4523
4524 (define-public openrct2
4525 (package
4526 (name "openrct2")
4527 (version "0.3.2")
4528 (source
4529 (origin
4530 (method git-fetch)
4531 (uri (git-reference
4532 (url "https://github.com/OpenRCT2/OpenRCT2")
4533 (commit (string-append "v" version))))
4534 (file-name (git-file-name name version))
4535 (sha256
4536 (base32 "1fd32wniiy6qz2046ppqfj2sb3rf2qf086rf9v1bdhyj254d0b1z"))))
4537 (build-system cmake-build-system)
4538 (arguments
4539 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4540 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4541 #:tests? #f ; tests require network access
4542 #:phases
4543 (modify-phases %standard-phases
4544 (add-after 'unpack 'fix-usr-share-paths&add-data
4545 (lambda* (#:key inputs outputs #:allow-other-keys)
4546 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4547 (objects (assoc-ref inputs "openrct2-objects")))
4548 ;; Fix some references to /usr/share.
4549 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4550 (("/usr/share")
4551 (string-append (assoc-ref %outputs "out") "/share")))
4552 (copy-recursively
4553 (string-append titles "/share/openrct2/title-sequences")
4554 "data/title")
4555 (copy-recursively
4556 (string-append objects "/share/openrct2/objects")
4557 "data/object"))))
4558 (add-before 'configure 'get-rid-of-errors
4559 (lambda _
4560 ;; Don't treat warnings as errors.
4561 (substitute* "CMakeLists.txt"
4562 (("-Werror") ""))
4563 #t)))))
4564 (inputs `(("curl" ,curl)
4565 ("duktape" ,duktape)
4566 ("fontconfig" ,fontconfig)
4567 ("freetype" ,freetype)
4568 ("icu4c" ,icu4c)
4569 ("jansson" ,jansson)
4570 ("libpng" ,libpng)
4571 ("libzip" ,libzip)
4572 ("mesa" ,mesa)
4573 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4574 ("openrct2-objects" ,openrct2-objects)
4575 ("openrct2-title-sequences" ,openrct2-title-sequences)
4576 ("openssl" ,openssl)
4577 ("sdl2" ,sdl2)
4578 ("speexdsp" ,speexdsp)
4579 ("zlib" ,zlib)))
4580 (native-inputs
4581 `(("pkg-config" ,pkg-config)))
4582 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4583 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4584 (description "OpenRCT2 is a free software re-implementation of
4585 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4586 maintaining an amusement park containing attractions, shops and facilities.
4587
4588 Note that this package does @emph{not} provide the game assets (sounds,
4589 images, etc.)")
4590 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4591 ;; regarding assets.
4592 (license license:gpl3+)))
4593
4594 (define-public pinball
4595 (package
4596 (name "pinball")
4597 (version "0.3.1")
4598 (source
4599 (origin (method url-fetch)
4600 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4601 "pinball-" version "/"
4602 "pinball-" version ".tar.gz"))
4603 (sha256
4604 (base32
4605 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4606 (patches (search-patches "pinball-const-fix.patch"
4607 "pinball-cstddef.patch"
4608 "pinball-missing-separators.patch"
4609 "pinball-src-deps.patch"
4610 "pinball-system-ltdl.patch"))))
4611 (build-system gnu-build-system)
4612 (inputs
4613 `(("glu" ,glu)
4614 ("mesa" ,mesa)
4615 ("sdl" ,sdl)
4616 ("sdl-image" ,sdl-image)
4617 ("sdl-mixer" ,sdl-mixer)))
4618 (arguments
4619 '(#:configure-flags
4620 (list (string-append "CPPFLAGS=-I"
4621 (assoc-ref %build-inputs "sdl-image")
4622 "/include/SDL -I"
4623 (assoc-ref %build-inputs "sdl-mixer")
4624 "/include/SDL"))))
4625 (home-page "http://pinball.sourceforge.net")
4626 (synopsis "Pinball simulator")
4627 (description "The Emilia Pinball Project is a pinball simulator. There
4628 are only two levels to play with, but they are very addictive.")
4629 (license license:gpl2)))
4630
4631 (define-public pioneers
4632 (package
4633 (name "pioneers")
4634 (version "15.6")
4635 (source (origin
4636 (method url-fetch)
4637 (uri (string-append "https://downloads.sourceforge.net/pio/"
4638 "pioneers-" version ".tar.gz"))
4639 (sha256
4640 (base32
4641 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4642 (build-system gnu-build-system)
4643 (inputs `(("avahi" ,avahi)
4644 ("gtk+" ,gtk+)
4645 ("librsvg" ,librsvg)))
4646 (native-inputs `(("intltool" ,intltool)
4647 ("itstool" ,itstool)
4648 ("libxml2" ,libxml2)
4649 ("pkg-config" ,pkg-config)))
4650 (synopsis "Board game inspired by The Settlers of Catan")
4651 (description "Pioneers is an emulation of the board game The Settlers of
4652 Catan. It can be played on a local network, on the internet, and with AI
4653 players.")
4654 (home-page "http://pio.sourceforge.net/")
4655 (license license:gpl2+)))
4656
4657 (define-public einstein
4658 (package
4659 (name "einstein")
4660 (version "2.0")
4661 (source (origin
4662 (method url-fetch)
4663 (uri (string-append "mirror://debian/pool/main/e/"
4664 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4665 (sha256
4666 (base32
4667 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4668 (patches (search-patches "einstein-build.patch"))))
4669 (build-system gnu-build-system)
4670 (inputs
4671 `(("freetype" ,freetype)
4672 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4673 ("zlib" ,zlib)))
4674 (native-inputs
4675 `(("font-dejavu" ,font-dejavu)))
4676 (arguments
4677 `(#:tests? #f ; no check target
4678 #:phases
4679 (modify-phases %standard-phases
4680 (replace 'configure
4681 (lambda* (#:key outputs inputs #:allow-other-keys)
4682 (let ((out (assoc-ref outputs "out"))
4683 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4684 "/share/fonts/truetype/DejaVuSans.ttf")))
4685 (substitute* "Makefile"
4686 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4687 ;; The patch above registers a free font for use by the binary,
4688 ;; but the font is copied during the compile phase into a
4689 ;; resources file, so we need to make the ttf file available.
4690 (symlink dejavu "res/DejaVuSans.ttf")
4691 #t))))))
4692 (synopsis "Logic puzzle game")
4693 (description "The goal of this logic game is to open all cards in a 6x6
4694 grid, using a number of hints as to their relative position. The game idea
4695 is attributed to Albert Einstein.")
4696 ;; The original home page has disappeared.
4697 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4698 "http://games.flowix.com/en/index.html"))
4699 ;; License according to
4700 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4701 ;; The source code is a DFSG-sanitized tarball and does not contain any
4702 ;; license information.
4703 (license license:gpl3+)))
4704
4705 (define-public powwow
4706 (package
4707 (name "powwow")
4708 (version "1.2.22")
4709 (source (origin
4710 (method url-fetch)
4711 (uri (string-append
4712 "https://www.hoopajoo.net/static/projects/powwow-"
4713 version ".tar.gz"))
4714 (sha256
4715 (base32
4716 "12i11b8zxg8vdb9d6ims8qy2lmwwr42rcqbwq3vsa1x94s51bcbp"))))
4717 (inputs
4718 `(("ncurses" ,ncurses)))
4719 (build-system gnu-build-system)
4720 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4721 (synopsis "MUD and telnet client")
4722 (description
4723 "POWWOW is a client software which can be used for telnet as well as for
4724 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4725 the chat server psyced with the specific config located at
4726 http://lavachat.symlynx.com/unix/")
4727 (license license:gpl2+)))
4728
4729 (define-public red-eclipse
4730 (let ((release "2.0.0")
4731 (revision 0))
4732 (package
4733 (name "red-eclipse")
4734 (version (if (zero? revision)
4735 release
4736 (string-append release "-"
4737 (number->string revision))))
4738 (source
4739 (origin
4740 (method git-fetch)
4741 (uri (git-reference
4742 (url "https://github.com/redeclipse/base")
4743 (commit (string-append "v" release))
4744 (recursive? #t))) ; for game data
4745 (file-name (git-file-name name version))
4746 (sha256
4747 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4748 (modules '((guix build utils)))
4749 (snippet
4750 ;; Remove proprietary libraries and other pre-compiled binaries.
4751 '(begin
4752 (delete-file-recursively "bin")
4753 #t))))
4754 (build-system gnu-build-system)
4755 (arguments
4756 `(#:tests? #f ; no check target
4757 #:make-flags (list "CC=gcc" "-Csrc"
4758 (string-append "INSTDIR="
4759 (assoc-ref %outputs "out") "/bin")
4760 (string-append "prefix="
4761 (assoc-ref %outputs "out")))
4762 #:phases
4763 (modify-phases %standard-phases
4764 (add-after 'unpack 'add-store-data-package-path-as-default
4765 (lambda* (#:key outputs #:allow-other-keys)
4766 (substitute* "src/engine/server.cpp"
4767 (("data = \"data\"")
4768 (string-append "data = \""
4769 (assoc-ref outputs "out")
4770 "/share/redeclipse/data\"")))
4771 #t))
4772 (delete 'configure) ; no configure script
4773 (add-after 'set-paths 'set-sdl-paths
4774 (lambda* (#:key inputs #:allow-other-keys)
4775 (setenv "CPATH"
4776 (string-append (assoc-ref inputs "sdl-union")
4777 "/include/SDL2:"
4778 (or (getenv "CPATH") "")))
4779 #t))
4780 (add-after 'install 'copy-data
4781 (lambda* (#:key outputs #:allow-other-keys)
4782 (let ((out (assoc-ref outputs "out")))
4783 (copy-recursively "config"
4784 (string-append out "/config"))
4785 (copy-file "doc/examples/servinit.cfg"
4786 (string-append out "/config/servinit.cfg"))
4787 (copy-recursively "data"
4788 (string-append out "/share/redeclipse/data"))
4789 (mkdir-p (string-append out "/lib/redeclipse"))
4790 (symlink (string-append out "/share/redeclipse/data")
4791 (string-append out "/lib/redeclipse/data")))
4792 #t))
4793 (add-after 'copy-data 'wrap-program
4794 (lambda* (#:key inputs outputs #:allow-other-keys)
4795 (let* ((out (assoc-ref outputs "out"))
4796 (bin (string-append out "/bin")))
4797 (with-directory-excursion bin
4798 (rename-file "redeclipse_linux"
4799 ".redeclipse_linux-real")
4800 (rename-file "redeclipse_server_linux"
4801 ".redeclipse_server_linux-real")
4802 (call-with-output-file "redeclipse_linux"
4803 (lambda (port)
4804 (format port "#!~a/bin/sh
4805 # Run the thing from its home, otherwise it just bails out.
4806 cd \"~a\"
4807 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4808 (assoc-ref inputs "bash") ;implicit input
4809 (string-append out)
4810 (string-append bin))))
4811 (call-with-output-file "redeclipse_server_linux"
4812 (lambda (port)
4813 (format port "#!~a/bin/sh
4814 # Run the thing from its home, otherwise it just bails out.
4815 cd \"~a\"
4816 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4817 (assoc-ref inputs "bash") ;implicit input
4818 (string-append out)
4819 (string-append bin))))
4820 (chmod "redeclipse_linux" #o555)
4821 (chmod "redeclipse_server_linux" #o555)))
4822 #t)))))
4823 (native-inputs
4824 `(("pkg-config" ,pkg-config)))
4825 (inputs
4826 `(("curl" ,curl)
4827 ("freetype" ,freetype)
4828 ("glu" ,glu)
4829 ("sdl-union" ,(sdl-union (list sdl2
4830 sdl2-image
4831 sdl2-mixer)))))
4832 (home-page "https://redeclipse.net/")
4833 (synopsis "Arena shooter derived from the Cube 2 engine")
4834 (description
4835 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4836 Offering an innovative parkour system and distinct but all potent weapons,
4837 Red Eclipse provides fast paced and accessible gameplay.")
4838 ;; The engine is under Zlib; data files are covered by the other
4839 ;; licenses. More details at file:///doc/all-licenses.txt.
4840 (license (list license:expat
4841 license:zlib
4842 license:cc-by-sa4.0
4843 license:cc-by-sa3.0
4844 license:cc-by3.0
4845 license:cc0
4846 license:public-domain
4847 license:silofl1.1)))))
4848
4849 (define-public grue-hunter
4850 (package
4851 (name "grue-hunter")
4852 (version "1.0")
4853 (source (origin
4854 (method url-fetch)
4855 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4856 (sha256
4857 (base32
4858 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4859 (build-system trivial-build-system) ; no Makefile.PL
4860 (arguments `(#:modules ((guix build utils))
4861 #:builder
4862 (begin
4863 (use-modules (guix build utils))
4864 (use-modules (srfi srfi-1))
4865
4866 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4867 (perl (string-append (assoc-ref %build-inputs
4868 "perl")
4869 "/bin"))
4870 (gzip (string-append (assoc-ref %build-inputs
4871 "gzip")
4872 "/bin/gzip"))
4873 (tar (string-append (assoc-ref %build-inputs
4874 "tar")
4875 "/bin/tar"))
4876 (out (assoc-ref %outputs "out"))
4877 (bin (string-append out "/bin"))
4878 (doc (string-append out
4879 "/share/doc/grue-hunter")))
4880 (copy-file tarball "grue-hunter.tar.gz")
4881 (invoke gzip "-d" "grue-hunter.tar.gz")
4882 (invoke tar "xvf" "grue-hunter.tar")
4883
4884 (mkdir-p bin)
4885 (copy-file "grue-hunter/gh.pl"
4886 (string-append bin "/grue-hunter"))
4887 (patch-shebang (string-append bin "/grue-hunter")
4888 (list perl))
4889
4890 (install-file "grue-hunter/AGPLv3.txt" doc)
4891
4892 #t))))
4893 (inputs `(("perl" ,perl)
4894 ("tar" ,tar)
4895 ("gzip" ,gzip)
4896 ("tarball" ,source)))
4897 (home-page "https://jxself.org/grue-hunter.shtml")
4898 (synopsis "Text adventure game")
4899 (description
4900 "Grue Hunter is a text adventure game written in Perl. You must make
4901 your way through an underground cave system in search of the Grue. Can you
4902 capture it and get out alive?")
4903 (license license:agpl3+)))
4904
4905 (define-public lierolibre
4906 (package
4907 (name "lierolibre")
4908 (version "0.5")
4909 (source (origin
4910 (method url-fetch)
4911 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4912 version "/+download/lierolibre-"
4913 version ".tar.xz"))
4914 (sha256
4915 (base32
4916 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4917 (patches
4918 (search-patches "lierolibre-check-unaligned-access.patch"
4919 "lierolibre-try-building-other-arch.patch"
4920 "lierolibre-remove-arch-warning.patch"
4921 "lierolibre-newer-libconfig.patch"
4922 "lierolibre-is-free-software.patch"))
4923 (modules '((guix build utils)))
4924 (snippet
4925 '(begin
4926 ;; Delete pre-compiled files.
4927 (delete-file "data/LIERO.CHR")
4928 (delete-file "data/LIERO.SND")
4929 #t))))
4930 (build-system gnu-build-system)
4931 (native-inputs
4932 `(("imagemagick" ,imagemagick)
4933 ("pkg-config" ,pkg-config)
4934 ("util-linux" ,util-linux)
4935 ("sox" ,sox)))
4936 (inputs
4937 `(("boost" ,boost)
4938 ("libconfig" ,libconfig)
4939 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4940 ("zlib" ,zlib)))
4941 (home-page "https://gitlab.com/lierolibre/lierolibre")
4942 (synopsis "Old-school earthworm action game")
4943 (description
4944 "lierolibre is an earthworm action game where you fight another player
4945 (or the computer) underground using a wide array of weapons.
4946
4947 Features:
4948 @itemize
4949 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4950 and Game of Tag, plus AI-players without true intelligence!
4951 @item Dat nostalgia.
4952 @item Extensions via a hidden F1 menu:
4953 @itemize
4954 @item Replays
4955 @item Game controller support
4956 @item Powerlevel palettes
4957 @end itemize
4958 @item Ability to write game variables to plain text files.
4959 @item Ability to load game variables from both EXE and plain text files.
4960 @item Scripts to extract and repack graphics, sounds and levels.
4961 @end itemize
4962
4963 To switch between different window sizes, use F6, F7 and F8, to switch to
4964 fullscreen, use F5 or Alt+Enter.")
4965 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4966 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4967
4968 (define-public tennix
4969 (package
4970 (name "tennix")
4971 (version "1.3.1")
4972 (source
4973 (origin
4974 (method git-fetch)
4975 (uri (git-reference
4976 (url "https://repo.or.cz/tennix.git")
4977 (commit (string-append "tennix-" version))))
4978 (file-name (git-file-name name version))
4979 (sha256
4980 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4981 ;; Remove non-free images.
4982 (modules '((guix build utils)))
4983 (snippet
4984 '(begin
4985 (for-each delete-file
4986 '("data/loc_training_camp.png"
4987 "data/loc_austrian_open.png"
4988 "data/loc_olympic_green_tennis.png"))
4989 #t))))
4990 (build-system gnu-build-system)
4991 (arguments
4992 `(#:tests? #f ;no test
4993 #:phases
4994 (modify-phases %standard-phases
4995 (add-after 'unpack 'fix-include
4996 (lambda _
4997 (substitute* '("src/graphics.h" "src/sound.h")
4998 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
4999 (string-append "#include \"SDL/" header "\"")))
5000 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
5001 (("#include <SDL.h>") "#include <SDL/SDL.h>")
5002 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
5003 #t))
5004 (add-after 'unpack 'locate-install
5005 ;; Build process cannot expand "$(INSTALL)" in Makefile.
5006 (lambda _
5007 (substitute* "makefile"
5008 (("^CONFIGURE_OUTPUT :=.*" all)
5009 (string-append "INSTALL := install -c\n" all)))
5010 #t))
5011 (replace 'configure
5012 ;; The "configure" script is picky about the arguments it
5013 ;; gets. Call it ourselves.
5014 (lambda _
5015 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
5016 (native-inputs
5017 `(("which" ,which)))
5018 (inputs
5019 `(("python" ,python-wrapper)
5020 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
5021 (home-page "http://icculus.org/tennix/")
5022 (synopsis "Play tennis against the computer or a friend")
5023 (description "Tennix is a 2D tennis game. You can play against the
5024 computer or against another player using the keyboard. The game runs
5025 in-window at 640x480 resolution or fullscreen.")
5026 ;; Project is licensed under GPL2+ terms. It includes images
5027 ;; released under Public Domain terms, and SDL_rotozoom, released
5028 ;; under LGPL2.1 terms.
5029 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
5030
5031 (define-public warzone2100
5032 (package
5033 (name "warzone2100")
5034 (version "3.4.1")
5035 (source
5036 (origin
5037 (method url-fetch)
5038 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
5039 version
5040 "/warzone2100_src.tar.xz"))
5041 (sha256
5042 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
5043 (modules '((guix build utils)))
5044 (snippet
5045 '(begin
5046 (with-directory-excursion "3rdparty"
5047 (for-each
5048 delete-file-recursively
5049 '("discord-rpc"
5050 "miniupnp"
5051 "utfcpp")))
5052 #t))))
5053 (build-system cmake-build-system)
5054 (arguments
5055 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
5056 "-DENABLE_DISCORD=off")
5057 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
5058 #:phases
5059 (modify-phases %standard-phases
5060 (add-after 'unpack 'fix-utfcpp-include
5061 (lambda _
5062 (substitute* "lib/framework/wzstring.cpp"
5063 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
5064 #t))
5065 (add-after 'unpack 'link-tests-with-qt
5066 (lambda _
5067 (substitute* "tests/Makefile.am"
5068 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
5069 (string-append prefix "$(QT5_LIBS) ")))
5070 #t))
5071 (add-after 'unpack 'fix-ivis-linktest
5072 (lambda _
5073 (substitute* "tests/ivis_linktest.cpp"
5074 (("iV_DrawTextRotated.*;")
5075 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
5076 "100, 100, 0.0f, font_regular);")))
5077 #t)))))
5078 (native-inputs `(("asciidoc" ,asciidoc)
5079 ("asciidoctor" ,ruby-asciidoctor)
5080 ("gettext" ,gettext-minimal)
5081 ("pkg-config" ,pkg-config)
5082 ("unzip" ,unzip)
5083 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
5084 ("p7zip" ,p7zip)))
5085 (inputs `(("curl" ,curl)
5086 ("fontconfig" ,fontconfig)
5087 ("freetype" ,freetype)
5088 ("glew" ,glew)
5089 ("harfbuzz" ,harfbuzz)
5090 ("libtheora" ,libtheora)
5091 ("libvorbis" ,libvorbis)
5092 ("libxrandr" ,libxrandr)
5093 ("libsodium" ,libsodium)
5094 ("miniupnpc" ,miniupnpc)
5095 ("openal" ,openal)
5096 ("physfs" ,physfs)
5097 ("qtbase" ,qtbase)
5098 ("qtscript" ,qtscript)
5099 ("openssl" ,openssl)
5100 ("sdl2" ,sdl2)
5101 ("utfcpp" ,utfcpp)))
5102 (home-page "https://wz2100.net")
5103 (synopsis "3D Real-time strategy and real-time tactics game")
5104 (description
5105 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
5106 modes. An extensive tech tree with over 400 different technologies, combined
5107 with the unit design system, allows for a wide variety of possible units and
5108 tactics.")
5109 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
5110 (license (list license:bsd-3
5111 license:cc0
5112 license:cc-by-sa3.0
5113 license:expat
5114 license:gpl2+
5115 license:lgpl2.1+))))
5116
5117 (define-public widelands
5118 (package
5119 (name "widelands")
5120 (version "21")
5121 (source
5122 (origin
5123 (method url-fetch)
5124 (uri (string-append "https://launchpad.net/widelands/"
5125 "build" version "/build" version "/+download/"
5126 "widelands-build" version "-source.tar.gz"))
5127 (sha256
5128 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
5129 (modules '((guix build utils)))
5130 (snippet
5131 '(begin
5132 (delete-file-recursively "src/third_party/minizip")
5133 #t))
5134 (patches
5135 ;; Use system Minizip. Patch is provided by Debian, and discussed
5136 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
5137 (search-patches "widelands-system-wide_minizip.patch"))))
5138 (build-system cmake-build-system)
5139 (arguments
5140 `(#:configure-flags
5141 (let* ((out (assoc-ref %outputs "out"))
5142 (share (string-append out "/share")))
5143 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
5144 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
5145 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
5146 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
5147 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
5148 ;; type. When used, no game data is installed!
5149 "-DCMAKE_BUILD_TYPE=Release"))
5150 #:phases
5151 (modify-phases %standard-phases
5152 (add-after 'unpack 'unbundle-fonts
5153 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
5154 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
5155 (lambda* (#:key inputs #:allow-other-keys)
5156 (with-directory-excursion "data/i18n/fonts"
5157 (for-each (lambda (font)
5158 (delete-file-recursively font)
5159 (symlink (string-append (assoc-ref inputs font)
5160 "/share/fonts/truetype")
5161 font))
5162 '("DejaVu" "MicroHei")))
5163 #t)))))
5164 (native-inputs
5165 `(("gettext" ,gettext-minimal)
5166 ("python" ,python-wrapper)))
5167 (inputs
5168 `(("boost" ,boost)
5169 ("glew" ,glew)
5170 ("icu4c" ,icu4c)
5171 ("libpng" ,libpng)
5172 ("minizip" ,minizip)
5173 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5174 ("zlib" ,zlib)
5175 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
5176 ("DejaVu" ,font-dejavu)
5177 ("MicroHei" ,font-wqy-microhei)))
5178 (home-page "https://www.widelands.org/")
5179 (synopsis "Fantasy real-time strategy game")
5180 (description
5181 "In Widelands, you are the regent of a small clan. You start out with
5182 nothing but your headquarters, where all your resources are stored.
5183
5184 In the course of the game, you will build an ever growing settlement. Every
5185 member of your clan will do his or her part to produce more resources---wood,
5186 food, iron, gold and more---to further this growth. The economic network is
5187 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
5188 Frisians).
5189
5190 As you are not alone in the world, you will meet other clans sooner or later.
5191 Some of them may be friendly and you may eventually trade with them. However,
5192 if you want to rule the world, you will have to train soldiers and fight.
5193
5194 Widelands offers single-player mode with different campaigns; the campaigns
5195 all tell stories of tribes and their struggle in the Widelands universe!
5196 However, settling really starts when you unite with friends over the Internet
5197 or LAN to build up new empires together---or to crush each other in the dusts
5198 of war. Widelands also offers an Artificial Intelligence to challenge you.")
5199 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
5200 ;; different licenses.
5201 (license (list license:gpl2+
5202 license:expat ;src/third_party/eris
5203 license:silofl1.1 ;Widelands.ttf
5204 license:cc-by-sa3.0)))) ;some music files
5205
5206 (define-public starfighter
5207 (package
5208 (name "starfighter")
5209 (version "2.4")
5210 (source (origin
5211 (method url-fetch)
5212 (uri (string-append
5213 "https://github.com/pr-starfighter/starfighter/releases"
5214 "/download/v" version "/starfighter-"
5215 version "-src.tar.gz"))
5216 (sha256
5217 (base32
5218 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5219 (build-system gnu-build-system)
5220 (native-inputs
5221 `(("pkg-config" ,pkg-config)))
5222 (inputs
5223 `(("pango" ,pango)
5224 ("sdl2" ,sdl2)
5225 ("sdl2-image" ,sdl2-image)
5226 ("sdl2-mixer" ,sdl2-mixer)
5227 ("sdl2-ttf" ,sdl2-ttf)))
5228 (home-page "https://pr-starfighter.github.io/")
5229 (synopsis "2D scrolling shooter game")
5230 (description
5231 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5232 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5233 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5234 way, you will encounter new foes, make new allies, and assist local rebels
5235 in strikes against the evil corporation.")
5236 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5237 (license (list license:gpl3+
5238 license:cc-by3.0
5239 license:cc-by-sa3.0
5240 license:cc0
5241 license:public-domain))))
5242
5243 (define-public chromium-bsu
5244 (package
5245 (name "chromium-bsu")
5246 (version "0.9.16.1")
5247 (source (origin
5248 (method url-fetch)
5249 (uri (string-append "mirror://sourceforge/chromium-bsu"
5250 "/Chromium B.S.U. source code/"
5251 "chromium-bsu-" version ".tar.gz"))
5252 (sha256
5253 (base32
5254 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5255 (build-system gnu-build-system)
5256 (native-inputs `(("pkg-config" ,pkg-config)))
5257 (inputs `(("gettext" ,gettext-minimal)
5258 ("glu" ,glu)
5259 ("quesoglc" ,quesoglc)
5260 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5261 (home-page "http://chromium-bsu.sourceforge.net/")
5262 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5263 (description
5264 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5265 are responsible for delivering supplies to the troops on the front line. Your
5266 ship has a small fleet of robotic fighters which you control from the relative
5267 safety of the Chromium vessel.")
5268 ;; Clarified Artistic License for everything but sound, which is covered
5269 ;; by the Expat License.
5270 (license (list license:clarified-artistic license:expat))))
5271
5272 (define-public tuxpaint
5273 (package
5274 (name "tuxpaint")
5275 (version "0.9.23") ;keep VER_DATE below in sync
5276 (source
5277 (origin
5278 (method url-fetch)
5279 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5280 version "/tuxpaint-" version ".tar.gz"))
5281 (sha256
5282 (base32
5283 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5284 (modules '((guix build utils)))
5285 (snippet
5286 '(begin
5287 ;; Remove win32 directory which contains binary dll's and the
5288 ;; deprecated visualc directory.
5289 (for-each delete-file-recursively '("win32" "visualc"))
5290 (substitute* "Makefile"
5291 ;; Do not rely on $(GPERF) being an absolute file name
5292 (("\\[ -x \\$\\(GPERF\\) \\]")
5293 "$(GPERF) --version >/dev/null 2>&1"))
5294 #t))
5295 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5296 (build-system gnu-build-system)
5297 (native-inputs
5298 `(("gperf" ,gperf)
5299 ("pkg-config" ,pkg-config)))
5300 (inputs
5301 `(("cairo" ,cairo)
5302 ("fribidi" ,fribidi)
5303 ("gettext" ,gettext-minimal)
5304 ("libpng" ,libpng)
5305 ("librsvg" ,librsvg)
5306 ("libpaper" ,libpaper)
5307 ("netpbm" ,netpbm)
5308 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5309 ;; TODO: Use system fonts rather than those in data/fonts
5310 (arguments
5311 `(#:make-flags `("VER_DATE=2018-09-02"
5312 "GPERF=gperf" "CC=gcc"
5313 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5314 ,(string-append "PREFIX=" %output)
5315 "KDE_PREFIX=$(PREFIX)/share/applications"
5316 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5317 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5318 #:parallel-build? #f ;fails on some systems
5319 #:tests? #f ;No tests
5320 #:phases (modify-phases %standard-phases
5321 (delete 'configure) ;no configure phase
5322 (add-before 'install 'no-sys-cache
5323 (lambda _ ;do not rebuild system conf cache
5324 (substitute* "Makefile"
5325 (("kbuildsycoca4") ""))
5326 #t))
5327 (add-after 'install 'fix-import
5328 (lambda* (#:key inputs outputs #:allow-other-keys)
5329 (let* ((out (assoc-ref outputs "out"))
5330 (net (assoc-ref inputs "netpbm"))
5331 (tpi (string-append out "/bin/tuxpaint-import")))
5332 (substitute* tpi
5333 ;; Point to installation prefix so that the default
5334 ;; configure file is found.
5335 (("/usr/local") out))
5336 ;; tuxpaint-import uses a bunch of programs from
5337 ;; netpbm, so make sure it knows where those are
5338 (wrap-program tpi
5339 `("PATH" ":" prefix
5340 (,(string-append net "/bin"))))))))))
5341 (native-search-paths
5342 (list (search-path-specification
5343 (variable "TUXPAINT_STAMPS_PATH")
5344 (files '("share/tuxpaint/stamps")))))
5345 (home-page "http://www.tuxpaint.org")
5346 (synopsis "Drawing software for children")
5347 (description
5348 "Tux Paint is a free drawing program designed for young children (kids
5349 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5350 and an encouraging cartoon mascot who helps guide children as they use the
5351 program. It provides a blank canvas and a variety of drawing tools to help
5352 your child be creative.")
5353 (license license:gpl2+)))
5354
5355 (define-public tuxpaint-stamps
5356 (package
5357 (name "tuxpaint-stamps")
5358 (version "2018.09.01")
5359 (source
5360 (origin
5361 (method url-fetch)
5362 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5363 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5364 "/tuxpaint-stamps-" version ".tar.gz"))
5365 (sha256
5366 (base32
5367 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5368 (build-system trivial-build-system)
5369 (native-inputs
5370 `(("tar" ,tar)
5371 ("gzip" ,gzip)))
5372 (arguments
5373 `(#:modules ((guix build utils))
5374 #:builder (begin
5375 (use-modules (guix build utils))
5376 (setenv "PATH"
5377 (string-append
5378 (assoc-ref %build-inputs "tar") "/bin" ":"
5379 (assoc-ref %build-inputs "gzip") "/bin"))
5380 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5381 (chdir (string-append ,name "-" ,version))
5382 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5383 (mkdir-p dir)
5384 (copy-recursively "stamps" dir))
5385 #t)))
5386 (home-page (package-home-page tuxpaint))
5387 (synopsis "Stamp images for Tux Paint")
5388 (description
5389 "This package contains a set of \"Rubber Stamp\" images which can be used
5390 with the \"Stamp\" tool within Tux Paint.")
5391 (license license:gpl2+)))
5392
5393 (define-public tuxpaint-config
5394 (package
5395 (name "tuxpaint-config")
5396 (version "0.0.14") ;keep VER_DATE below in sync
5397 (source
5398 (origin
5399 (method url-fetch)
5400 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5401 version "/tuxpaint-config-" version ".tar.gz"))
5402 (sha256
5403 (base32
5404 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5405 (build-system gnu-build-system)
5406 (native-inputs
5407 `(("gettext" ,gettext-minimal)))
5408 (inputs
5409 `(("fltk" ,fltk)
5410 ("libpaper" ,libpaper)
5411 ;; TODO: Should the following be propagated by fltk?
5412 ("libx11" ,libx11)
5413 ("libxft" ,libxft)
5414 ("mesa" ,mesa)))
5415 (arguments
5416 `(#:make-flags `("VER_DATE=2018-09-01"
5417 "CONFDIR=/etc/tuxpaint" ;don't write to store
5418 ,(string-append "PREFIX=" %output)
5419 "GNOME_PREFIX=$(PREFIX)")
5420 #:parallel-build? #f ;race conditions
5421 #:tests? #f ;no tests
5422 #:phases (modify-phases %standard-phases
5423 (delete 'configure) ;no configure phase
5424 (add-before 'install 'gzip-no-name
5425 (lambda* _
5426 (substitute* "Makefile"
5427 ;; tuxpaint-config compresses its own documentation;
5428 ;; make sure it uses flags for reproducibility.
5429 (("gzip") "gzip --no-name"))))
5430 (add-before 'install 'make-install-dirs
5431 (lambda* (#:key outputs #:allow-other-keys)
5432 (let ((out (assoc-ref outputs "out")))
5433 (mkdir-p (string-append out "/bin"))
5434 #t))))))
5435 (home-page (package-home-page tuxpaint))
5436 (synopsis "Configure Tux Paint")
5437 (description
5438 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5439 (license license:gpl2))) ;no "or later" present
5440
5441 (define-public supertux
5442 (package
5443 (name "supertux")
5444 (version "0.6.2")
5445 (source (origin
5446 (method url-fetch)
5447 (uri (string-append "https://github.com/SuperTux/supertux/"
5448 "releases/download/v" version "/SuperTux-v"
5449 version "-Source.tar.gz"))
5450 (file-name (string-append name "-" version ".tar.gz"))
5451 (sha256
5452 (base32
5453 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5454 (patches
5455 (search-patches "supertux-unbundle-squirrel.patch"))))
5456 (arguments
5457 '(#:tests? #f
5458 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5459 "-DUSE_SYSTEM_PHYSFS=ON")
5460 #:phases
5461 (modify-phases %standard-phases
5462 (add-after 'unpack 'patch-squirrel-path
5463 (lambda* (#:key inputs #:allow-other-keys)
5464 (let ((squirrel (assoc-ref inputs "squirrel")))
5465 (substitute* "CMakeLists.txt"
5466 (("set\\(SQUIRREL_PREFIX.*")
5467 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5468 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5469 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5470 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5471 #t)))))
5472 (build-system cmake-build-system)
5473 (inputs `(("sdl2" ,sdl2)
5474 ("sdl2-image" ,sdl2-image)
5475 ("sdl2-mixer" ,sdl2-mixer)
5476 ("openal" ,openal)
5477 ("mesa" ,mesa)
5478 ("glew" ,glew)
5479 ("libvorbis" ,libvorbis)
5480 ("libogg" ,libogg)
5481 ("physfs" ,physfs)
5482 ("curl" ,curl)
5483 ("boost" ,boost)
5484 ("freetype" ,freetype)
5485 ("squirrel" ,squirrel)))
5486 (native-inputs
5487 `(("pkg-config" ,pkg-config)))
5488 (synopsis "2D platformer game")
5489 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5490 a style similar to the original Super Mario games.")
5491 (home-page "https://supertux.org/")
5492 (license license:gpl3+)))
5493
5494 (define-public tintin++
5495 (package
5496 (name "tintin++")
5497 (version "2.02.05")
5498 (source
5499 (origin
5500 (method url-fetch)
5501 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5502 (string-drop-right version 1)
5503 "/tintin-" version ".tar.gz"))
5504 (sha256
5505 (base32 "18fm9ga08mxqmblahmnlzwnl387i8mbkj4n0gffxc91d299019v3"))))
5506 (inputs
5507 `(("gnutls" ,gnutls)
5508 ("pcre" ,pcre)
5509 ("readline" ,readline)
5510 ("zlib" ,zlib)))
5511 (arguments
5512 '(#:tests? #f ; no test suite
5513 #:phases
5514 (modify-phases %standard-phases
5515 ;; The source is in tt/src.
5516 (add-before 'configure 'chdir
5517 (lambda _
5518 (chdir "src")
5519 #t)))))
5520 (build-system gnu-build-system)
5521 (home-page "https://tintin.mudhalla.net/")
5522 (synopsis "MUD client")
5523 (description
5524 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5525 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5526 options used by MUDs, as well as those required to login via telnet on
5527 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5528 (license license:gpl3+)))
5529
5530 (define-public laby
5531 (package
5532 (name "laby")
5533 (version "0.7.0")
5534 (source
5535 (origin (method git-fetch)
5536 (uri (git-reference
5537 (url "https://github.com/sgimenez/laby")
5538 (commit (string-append name "-" version))))
5539 (file-name (git-file-name name version))
5540 (sha256
5541 (base32
5542 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5543 (patches (search-patches "laby-make-install.patch"))))
5544 (build-system gnu-build-system)
5545 (inputs
5546 `(("lablgtk" ,lablgtk)
5547 ("ocaml" ,ocaml)
5548 ("ocaml-findlib" ,ocaml-findlib)
5549 ("ocamlbuild" ,ocamlbuild)))
5550 (arguments
5551 '(#:phases
5552 (modify-phases %standard-phases
5553 (delete 'configure)
5554 (add-before 'build 'allow-unsafe-strings
5555 ;; Fix a build failure with ocaml >=4.06.0.
5556 ;; See <https://github.com/sgimenez/laby/issues/53>.
5557 (lambda _
5558 (setenv "OCAMLPARAM" "safe-string=0,_")
5559 #t))
5560 (add-before 'build 'set-library-path
5561 (lambda* (#:key inputs #:allow-other-keys)
5562 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5563 (setenv "LD_LIBRARY_PATH"
5564 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5565 #:tests? #f ; no 'check' target
5566 #:make-flags
5567 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5568 (home-page "https://sgimenez.github.io/laby/")
5569 (synopsis "Programming game")
5570 (description "Learn programming, playing with ants and spider webs ;-)
5571 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5572 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5573 programmers may also add their own favorite language.")
5574 (license license:gpl3+)))
5575
5576 (define-public bambam
5577 (package
5578 (name "bambam")
5579 (version "1.0.0")
5580 (source
5581 (origin
5582 (method git-fetch)
5583 (uri (git-reference
5584 (url "https://github.com/porridge/bambam")
5585 (commit (string-append "v" version))))
5586 (file-name (git-file-name name version))
5587 (sha256
5588 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5589 (build-system python-build-system)
5590 (arguments
5591 `(#:tests? #f ; no tests
5592 #:phases
5593 (modify-phases %standard-phases
5594 (delete 'build) ; nothing to build
5595 (replace 'install
5596 (lambda* (#:key outputs #:allow-other-keys)
5597 (let* ((out (assoc-ref outputs "out"))
5598 (bin (string-append out "/bin"))
5599 (share (string-append out "/share")))
5600 (mkdir-p bin)
5601 (copy-file "bambam.py" (string-append bin "/bambam"))
5602 (install-file "bambam.6" (string-append share "/man/man6"))
5603 (copy-recursively "data" (string-append share "/bambam/data")))
5604 #t)))))
5605 (inputs
5606 `(("python-pygame" ,python-pygame)))
5607 (home-page "https://github.com/porridge/bambam")
5608 (synopsis "Keyboard mashing and doodling game for babies")
5609 (description "Bambam is a simple baby keyboard (and gamepad) masher
5610 application that locks the keyboard and mouse and instead displays bright
5611 colors, pictures, and sounds.")
5612 (license license:gpl3+)))
5613
5614 (define-public mrrescue
5615 (package
5616 (name "mrrescue")
5617 (version "1.02e")
5618 (source (origin
5619 (method url-fetch)
5620 (uri (string-append
5621 "https://github.com/SimonLarsen/mrrescue/releases/"
5622 "download/" version "/mrrescue" version ".love"))
5623 (file-name (string-append name "-" version ".love"))
5624 (sha256
5625 (base32
5626 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5627 (build-system trivial-build-system)
5628 (arguments
5629 `(#:modules ((guix build utils))
5630 #:builder
5631 (begin
5632 (use-modules (guix build utils))
5633 (let* ((out (assoc-ref %outputs "out"))
5634 (script (string-append out "/bin/" ,name))
5635 (data (string-append out "/share/" ,name))
5636 (source (assoc-ref %build-inputs "source"))
5637 (unzip (string-append (assoc-ref %build-inputs "unzip")
5638 "/bin/unzip"))
5639 (patch (string-append (assoc-ref %build-inputs "patch")
5640 "/bin/patch"))
5641 (bash (string-append (assoc-ref %build-inputs "bash")
5642 "/bin/bash"))
5643 (love (string-append (assoc-ref %build-inputs "love")
5644 "/bin/love")))
5645
5646 (mkdir-p (dirname script))
5647 (with-output-to-file script
5648 (lambda ()
5649 (format #t "#!~a~%" bash)
5650 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5651 (chmod script #o755)
5652
5653 ;; The better way to package this game would be to install *only* the
5654 ;; script above, pointing to the unextracted .love file in the store.
5655 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5656 ;; Instead of extracting the .love file, patching it, and re-zipping
5657 ;; it to the store, simply point the script to the extracted patched
5658 ;; data directory directly.
5659 (mkdir-p data)
5660 (with-directory-excursion data
5661 (invoke unzip source)
5662 (invoke patch "-p1" "-i"
5663 (assoc-ref %build-inputs "love-11.patch")))
5664 #t))))
5665 (native-inputs
5666 `(("unzip" ,unzip)
5667 ("patch" ,patch)
5668 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5669 (inputs
5670 `(("bash" ,bash)
5671 ("love" ,love)))
5672 (home-page "https://tangramgames.dk/games/mrrescue")
5673 (synopsis "Arcade-style fire fighting game")
5674 (description
5675 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5676 civilians from burning buildings. The game features fast-paced fire
5677 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5678 throwing people around in pseudo-randomly generated buildings.")
5679 (license (list license:zlib ; for source code
5680 license:cc-by-sa3.0)))) ; for graphics and music assets
5681
5682 (define-public hyperrogue
5683 (package
5684 (name "hyperrogue")
5685 (version "11.3a")
5686 ;; When updating this package, be sure to update the "hyperrogue-data"
5687 ;; origin in native-inputs.
5688 (source (origin
5689 (method url-fetch)
5690 (uri (string-append
5691 "https://www.roguetemple.com/z/hyper/hyperrogue"
5692 (string-join (string-split version #\.) "")
5693 "-src.tgz"))
5694 (sha256
5695 (base32
5696 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5697 (build-system gnu-build-system)
5698 (arguments
5699 `(#:tests? #f ; no check target
5700 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5701 "HYPERROGUE_USE_PNG=1")
5702 #:phases
5703 (modify-phases %standard-phases
5704 (add-after 'set-paths 'set-sdl-paths
5705 (lambda* (#:key inputs #:allow-other-keys)
5706 (setenv "CPATH"
5707 (string-append (or (getenv "CPATH") "") ":"
5708 (assoc-ref inputs "sdl-union")
5709 "/include/SDL"))))
5710 (replace 'configure
5711 (lambda* (#:key inputs outputs #:allow-other-keys)
5712 (let* ((out (assoc-ref outputs "out"))
5713 (share-dir (string-append out "/share/hyperrogue"))
5714 (dejavu-dir (string-append
5715 (assoc-ref inputs "font-dejavu")
5716 "/share/fonts/truetype"))
5717 (dejavu-font "DejaVuSans-Bold.ttf")
5718 (music-file "hyperrogue-music.txt"))
5719 ;; Fix font and music paths.
5720 (substitute* "basegraph.cpp"
5721 ((dejavu-font)
5722 (string-append dejavu-dir "/" dejavu-font)))
5723 (substitute* music-file
5724 (("\\*/")
5725 (string-append share-dir "/sounds/")))
5726 (substitute* "sound.cpp"
5727 (("musicfile = \"\"")
5728 (string-append "musicfile = \""
5729 share-dir "/" music-file "\"")))
5730 ;; Disable build machine CPU optimizations and warnings treated
5731 ;; as errors.
5732 (substitute* "Makefile"
5733 (("-march=native") "")
5734 (("-Werror") "")))
5735 #t))
5736 (replace 'install
5737 (lambda* (#:key inputs outputs #:allow-other-keys)
5738 (let* ((out (assoc-ref outputs "out"))
5739 (bin (string-append out "/bin"))
5740 (share-dir (string-append out "/share/hyperrogue")))
5741 (mkdir-p bin)
5742 (install-file "hyperrogue" bin)
5743 (install-file "hyperrogue-music.txt" share-dir))
5744 #t))
5745 (add-after 'install 'install-data
5746 (lambda* (#:key inputs outputs #:allow-other-keys)
5747 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5748 (out (assoc-ref outputs "out"))
5749 (sounds (string-append out "/share/hyperrogue/sounds"))
5750 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5751 ;; Extract media license information into sounds directory.
5752 (invoke unzip "-j" data
5753 (string-append
5754 "hyperrogue"
5755 (string-join (string-split ,version #\.) "")
5756 "/sounds/credits.txt") "-d" sounds)
5757 ;; Extract sounds and music into sounds directory.
5758 (invoke "unzip" "-j" data
5759 (string-append
5760 "hyperrogue"
5761 (string-join (string-split ,version #\.) "")
5762 "/*.ogg") "-d" sounds)))))))
5763 (native-inputs
5764 `(("hyperrogue-data"
5765 ,(origin
5766 (method url-fetch)
5767 (uri
5768 (string-append
5769 "https://www.roguetemple.com/z/hyper/hyperrogue"
5770 (string-join (string-split version #\.) "")
5771 "-win.zip"))
5772 (sha256
5773 (base32
5774 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5775 ("unzip" ,unzip)))
5776 (inputs
5777 `(("font-dejavu" ,font-dejavu)
5778 ("glew" ,glew)
5779 ("libpng" ,libpng)
5780 ("sdl-union" ,(sdl-union (list sdl
5781 sdl-gfx
5782 sdl-mixer
5783 sdl-ttf)))))
5784 (home-page "https://www.roguetemple.com/z/hyper/")
5785 (synopsis "Non-euclidean graphical rogue-like game")
5786 (description
5787 "HyperRogue is a game in which the player collects treasures and fights
5788 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5789 plane and not in euclidean space.
5790
5791 In HyperRogue, the player can move through different parts of the world, which
5792 are home to particular creatures and may be subject to their own rules of
5793 \"physics\".
5794
5795 While the game can use ASCII characters to display the the classical rogue
5796 symbols, it still needs graphics to render the non-euclidean world.")
5797 (license (list license:bsd-3 ; glew.c, mtrand.*
5798 license:cc-by-sa3.0 ; music
5799 license:cc-by-sa4.0 ; sounds
5800 license:cc0
5801 license:public-domain ; direntx.*, some sounds
5802 license:zlib ; savepng.*
5803 license:gpl2+)))) ; remaining files
5804
5805 (define-public kobodeluxe
5806 (package
5807 (name "kobodeluxe")
5808 (version "0.5.1")
5809 (source (origin
5810 (method url-fetch)
5811 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5812 version ".tar.bz2"))
5813 (sha256
5814 (base32
5815 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5816 (patches (search-patches
5817 "kobodeluxe-const-charp-conversion.patch"
5818 "kobodeluxe-enemies-pipe-decl.patch"
5819 "kobodeluxe-graphics-window-signed-char.patch"
5820 "kobodeluxe-manpage-minus-not-hyphen.patch"
5821 "kobodeluxe-midicon-segmentation-fault.patch"
5822 "kobodeluxe-paths.patch"))))
5823 (build-system gnu-build-system)
5824 (arguments
5825 '(#:configure-flags
5826 (list (string-append "CPPFLAGS=-I"
5827 (assoc-ref %build-inputs "sdl-union")
5828 "/include/SDL"))))
5829 (inputs
5830 `(("glu" ,glu)
5831 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5832 (synopsis "Shooter with space station destruction")
5833 (description
5834 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5835 for Un*x systems with X11.")
5836 (home-page "http://olofson.net/kobodl/")
5837 (license license:gpl2+)))
5838
5839 (define-public freeciv
5840 (package
5841 (name "freeciv")
5842 (version "2.6.3")
5843 (source
5844 (origin
5845 (method url-fetch)
5846 (uri (list (string-append
5847 "http://files.freeciv.org/stable/freeciv-"
5848 version ".tar.bz2")
5849 (string-append
5850 "mirror://sourceforge/freeciv/Freeciv%20"
5851 (version-major+minor version) "/" version
5852 "/freeciv-" version ".tar.bz2")))
5853 (sha256
5854 (base32 "1lgq7wcbhwpy2yqdw4biwfmp5q8fh7lhlwxcgm0fpaapfl12whvp"))))
5855 (build-system gnu-build-system)
5856 (inputs
5857 `(("curl" ,curl)
5858 ("cyrus-sasl" ,cyrus-sasl)
5859 ("gtk+" ,gtk+)
5860 ("sdl-mixer" ,sdl-mixer)
5861 ("zlib" ,zlib)))
5862 (native-inputs
5863 `(("pkg-config" ,pkg-config)))
5864 (home-page "http://www.freeciv.org/")
5865 (synopsis "Turn-based empire building strategy game")
5866 (description "Freeciv is a turn-based empire building strategy game
5867 inspired by the history of human civilization. The game commences in
5868 prehistory and your mission is to lead your tribe from the Stone Age
5869 into the Space Age.")
5870 (license license:gpl2+)))
5871
5872 (define-public no-more-secrets
5873 (package
5874 (name "no-more-secrets")
5875 (version "0.3.3")
5876 (source
5877 (origin
5878 (method git-fetch)
5879 (uri (git-reference
5880 (url "https://github.com/bartobri/no-more-secrets")
5881 (commit (string-append "v" version))))
5882 (file-name (git-file-name name version))
5883 (sha256
5884 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5885 (build-system gnu-build-system)
5886 (arguments
5887 `(#:tests? #f
5888 #:make-flags (list "CC=gcc" "all-ncurses"
5889 (string-append "prefix="
5890 (assoc-ref %outputs "out")))
5891 #:phases
5892 (modify-phases %standard-phases
5893 (delete 'configure))))
5894 (inputs
5895 `(("ncurses" ,ncurses)))
5896 (home-page "https://github.com/bartobri/no-more-secrets")
5897 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5898 (description
5899 "@code{No More Secrets} provides a command line tool called \"nms\"
5900 that recreates the famous data decryption effect seen on screen in the 1992
5901 movie \"Sneakers\".
5902
5903 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5904 it will apply the hollywood effect, initially showing encrypted data, then
5905 starting a decryption sequence to reveal the original plaintext characters.")
5906 (license license:expat)))
5907
5908 (define-public megaglest-data
5909 (package
5910 (name "megaglest-data")
5911 (version "3.13.0")
5912 (source
5913 (origin
5914 (method url-fetch)
5915 (uri (string-append
5916 "https://github.com/MegaGlest/megaglest-data"
5917 "/releases/download/" version "/megaglest-data-"
5918 version ".tar.xz"))
5919 (sha256
5920 (base32
5921 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5922 (build-system cmake-build-system)
5923 (arguments
5924 `(#:tests? #f))
5925 (home-page "https://megaglest.org/")
5926 (synopsis "Data files for MegaGlest")
5927 (description "This package contains the data files required for MegaGlest.")
5928 (license license:cc-by-sa3.0)))
5929
5930 (define-public megaglest
5931 (package
5932 (name "megaglest")
5933 (version "3.13.0")
5934 (source
5935 (origin
5936 (method url-fetch)
5937 (uri (string-append
5938 "https://github.com/MegaGlest/megaglest-source"
5939 "/releases/download/" version "/megaglest-source-"
5940 version ".tar.xz"))
5941 (sha256
5942 (base32
5943 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5944 (build-system cmake-build-system)
5945 (inputs
5946 `(("curl" ,curl)
5947 ("fontconfig" ,fontconfig)
5948 ("ftgl" ,ftgl)
5949 ("glew" ,glew)
5950 ("libjpeg-turbo" ,libjpeg-turbo)
5951 ("megaglest-data" ,megaglest-data)
5952 ("mesa" ,mesa)
5953 ("miniupnpc" ,miniupnpc)
5954 ("openal" ,openal)
5955 ("libircclient" ,libircclient)
5956 ("libpng" ,libpng)
5957 ("libvorbis" ,libvorbis)
5958 ("lua" ,lua)
5959 ("sdl2" ,sdl2)
5960 ("wxwidgets" ,wxwidgets)))
5961 (native-inputs
5962 `(("cppunit" ,cppunit)
5963 ("pkg-config" ,pkg-config)))
5964 (arguments
5965 `(#:configure-flags
5966 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5967 (assoc-ref %build-inputs "megaglest-data")
5968 "/share/megaglest")
5969 "-DBUILD_MEGAGLEST_TESTS=ON")
5970 #:phases
5971 (modify-phases %standard-phases
5972 (add-after 'unpack 'fix-ini-search-path
5973 (lambda* (#:key outputs #:allow-other-keys)
5974 (substitute* "source/glest_game/global/config.cpp"
5975 (("/usr/share/megaglest/")
5976 (string-append (assoc-ref outputs "out")
5977 "/share/megaglest/"))))))
5978 #:test-target "megaglest_tests"))
5979 (home-page "https://megaglest.org/")
5980 (synopsis "3D real-time strategy (RTS) game")
5981 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5982 game, where you control the armies of one of seven different factions: Tech,
5983 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5984 (license license:gpl2+)))
5985
5986 (define-public freegish
5987 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5988 (revision "1"))
5989 (package
5990 (name "freegish")
5991 (version (string-append "0-" revision "." (string-take commit 9)))
5992 (source (origin
5993 (method git-fetch)
5994 (uri (git-reference
5995 (url "https://github.com/freegish/freegish")
5996 (commit commit)))
5997 (file-name (git-file-name name version))
5998 (sha256
5999 (base32
6000 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
6001 (modules '((guix build utils)))
6002 ;; The audio files in the "music" directory are licensed under
6003 ;; CC-BY-NC, so we delete them.
6004 (snippet
6005 '(begin
6006 (delete-file-recursively "music")
6007 #t))))
6008 (build-system cmake-build-system)
6009 (arguments
6010 `(#:tests? #f ; no tests included
6011 #:configure-flags
6012 (list "-DCMAKE_INSTALL_FHS=ON")
6013 #:phases
6014 (modify-phases %standard-phases
6015 (add-after 'unpack 'set-DATAPATH
6016 (lambda* (#:key outputs #:allow-other-keys)
6017 (substitute* "CMakeLists.txt"
6018 (("^option\\(INSTALL_FHS" line)
6019 (string-append "add_definitions(-DDATAPATH=\""
6020 (assoc-ref outputs "out") "/share/freegish\")\n"
6021 line)))
6022 #t)))))
6023 (inputs
6024 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
6025 ("openal" ,openal)
6026 ("libvorbis" ,libvorbis)
6027 ("libogg" ,libogg)
6028 ("mesa" ,mesa)
6029 ("libpng" ,libpng)
6030 ("zlib" ,zlib)))
6031 (home-page "https://github.com/freegish/freegish")
6032 (synopsis "Side-scrolling physics platformer with a ball of tar")
6033 (description "In FreeGish you control Gish, a ball of tar who lives
6034 happily with his girlfriend Brea, until one day a mysterious dark creature
6035 emerges from a sewer hole and pulls her below ground.")
6036 ;; The textures are available under the Expat license. All other assets
6037 ;; (including levels) are covered under CC-BY-SA or public domain. The
6038 ;; source code is under GPLv2+.
6039 (license (list license:gpl2+
6040 license:expat
6041 license:public-domain
6042 license:cc-by-sa3.0)))))
6043
6044 (define-public cdogs-sdl
6045 (package
6046 (name "cdogs-sdl")
6047 (version "0.8.0")
6048 (source
6049 (origin
6050 (method git-fetch)
6051 (uri (git-reference
6052 (url "https://github.com/cxong/cdogs-sdl")
6053 (commit version)))
6054 (file-name (git-file-name name version))
6055 (sha256
6056 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
6057 (build-system cmake-build-system)
6058 (arguments
6059 `(#:configure-flags
6060 (list (string-append "-DCDOGS_DATA_DIR="
6061 (assoc-ref %outputs "out")
6062 "/share/cdogs-sdl/"))))
6063 (native-inputs
6064 `(("pkg-config" ,pkg-config)))
6065 (inputs
6066 `(("gtk+" ,gtk+)
6067 ("mesa" ,mesa)
6068 ("sdl2" ,sdl2)
6069 ("sdl2-image" ,sdl2-image)
6070 ("sdl2-mixer" ,sdl2-mixer)))
6071 (home-page "https://cxong.github.io/cdogs-sdl/")
6072 (synopsis "Classic overhead run-and-gun game")
6073 (description "C-Dogs SDL is a classic overhead run-and-gun game,
6074 supporting up to 4 players in co-op and deathmatch modes. Customize your
6075 player, choose from many weapons, and blast, slide and slash your way through
6076 over 100 user-created campaigns.")
6077 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
6078 ;; CC0/CC-BY/CC-BY-SA for assets.
6079 (license (list license:gpl2+
6080 license:bsd-2
6081 license:bsd-3
6082 license:cc0
6083 license:cc-by3.0
6084 license:cc-by-sa3.0))))
6085
6086 (define-public kiki
6087 (package
6088 (name "kiki")
6089 (version "1.0.2")
6090 (source (origin
6091 (method url-fetch)
6092 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
6093 version "/kiki-" version "-src.tgz"))
6094 (sha256
6095 (base32
6096 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
6097 (modules '((guix build utils)))
6098 (snippet
6099 '(begin
6100 (for-each delete-file (find-files "." "\\.dll$"))
6101 #t))
6102 (patches
6103 (search-patches "kiki-level-selection-crash.patch"
6104 "kiki-makefile.patch"
6105 "kiki-missing-includes.patch"
6106 "kiki-portability-64bit.patch"))))
6107 (build-system gnu-build-system)
6108 (arguments
6109 `(#:tests? #f ; there are no tests
6110 #:make-flags '("CXX=g++")
6111 #:phases
6112 (modify-phases %standard-phases
6113 (replace 'configure
6114 (lambda* (#:key inputs outputs #:allow-other-keys)
6115 (setenv "CPLUS_INCLUDE_PATH"
6116 (string-append (assoc-ref inputs "sdl-union")
6117 "/include/SDL:"
6118 (assoc-ref inputs "python")
6119 "/include/python2.7:"
6120 (or (getenv "CPLUS_INCLUDE_PATH") "")))
6121 (substitute* "src/main/main.cpp"
6122 (("#include <SDL.h>" line)
6123 (string-append line "
6124 #define K_INCLUDE_GLUT
6125 #include \"KIncludeTools.h\""))
6126 (("// initialize SDL" line)
6127 (string-append "glutInit(&argc,argv);\n" line)))
6128 (substitute* "src/main/KikiController.cpp"
6129 (("getenv\\(\"KIKI_HOME\"\\)")
6130 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
6131 (substitute* "linux/Makefile"
6132 (("CXXOPTS =" line)
6133 (string-append line " -fpermissive"))
6134 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
6135 (("PYTHONHOME =.*")
6136 (string-append "PYTHONHOME = "
6137 (assoc-ref inputs "python")
6138 "/lib/python2.7/"))
6139 (("\\$\\(GLLIBS\\)" line)
6140 (string-append line " -lm -lpython2.7")))
6141 (substitute* "src/main/KikiPythonWidget.h"
6142 (("#define __KikiPythonWidget" line)
6143 (string-append line "\n#include \"KikiPython.h\"")))
6144 #t))
6145 (add-before 'build 'build-kodilib
6146 (lambda* (#:key make-flags #:allow-other-keys)
6147 (with-directory-excursion "kodilib/linux"
6148 (apply invoke "make" make-flags))))
6149 (add-after 'build-kodilib 'chdir
6150 (lambda _ (chdir "linux") #t))
6151 (replace 'install
6152 (lambda* (#:key outputs #:allow-other-keys)
6153 (let* ((out (assoc-ref outputs "out"))
6154 (bin (string-append out "/bin"))
6155 (share (string-append out "/share/kiki")))
6156 (mkdir-p bin)
6157 (mkdir-p share)
6158 (install-file "kiki" bin)
6159 (copy-recursively "../py" (string-append share "/py"))
6160 (copy-recursively "../sound" (string-append share "/sound"))
6161 #t))))))
6162 (inputs
6163 `(("glu" ,glu)
6164 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
6165 ("freeglut" ,freeglut-2.8)
6166 ("sdl-union" ,(sdl-union (list sdl
6167 sdl-mixer
6168 sdl-image)))
6169 ("python" ,python-2)))
6170 (native-inputs
6171 `(("swig" ,swig)))
6172 (home-page "http://kiki.sourceforge.net/")
6173 (synopsis "3D puzzle game")
6174 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
6175 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
6176 small robot living in the nano world, repair its maker.")
6177 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
6178 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
6179 ;; for a statement from the author.
6180 (license license:public-domain)))
6181
6182 (define-public teeworlds
6183 (package
6184 (name "teeworlds")
6185 (version "0.7.5")
6186 (source (origin
6187 (method git-fetch)
6188 (uri (git-reference
6189 (url "https://github.com/teeworlds/teeworlds")
6190 (commit version)
6191 ;; There are two submodules in datasrc/{languages,maps}
6192 (recursive? #t)))
6193 (file-name (git-file-name name version))
6194 (sha256
6195 (base32
6196 "1l19ksmimg6b8zzjy0skyhh7z11ql7n5gvilkv7ay5x2b9ndbqwz"))
6197 (modules '((guix build utils)
6198 (ice-9 ftw)
6199 (ice-9 regex)
6200 (srfi srfi-1)
6201 (srfi srfi-26)))
6202 (snippet ; remove bundled libraries except md5
6203 '(let ((base-dir "src/engine/external/"))
6204 (for-each (compose (cut delete-file-recursively <>)
6205 (cut string-append base-dir <>))
6206 (remove (cut string-match "(^.)|(^md5$)" <>)
6207 (scandir base-dir)))
6208 #t))))
6209 (build-system cmake-build-system)
6210 (arguments
6211 `(#:tests? #f ; no tests included
6212 #:phases
6213 (modify-phases %standard-phases
6214 (add-after 'unpack 'patch-paths
6215 (lambda* (#:key outputs #:allow-other-keys)
6216 ;; Embed path to assets.
6217 (substitute* "src/engine/shared/storage.cpp"
6218 (("#define DATA_DIR.*")
6219 (string-append "#define DATA_DIR \""
6220 (assoc-ref outputs "out")
6221 "/share/teeworlds/data"
6222 "\"")))
6223 #t)))))
6224 (inputs
6225 `(("freetype" ,freetype)
6226 ("glu" ,glu)
6227 ("json-parser" ,json-parser)
6228 ("mesa" ,mesa)
6229 ("pnglite" ,pnglite)
6230 ("sdl2" ,sdl2)
6231 ("sdl2-image" ,sdl2-image)
6232 ("sdl2-mixer" ,sdl2-mixer)
6233 ("wavpack" ,wavpack)
6234 ("openssl" ,openssl)
6235 ("zlib" ,zlib)))
6236 (native-inputs
6237 `(("python" ,python-wrapper)
6238 ("pkg-config" ,pkg-config)))
6239 (home-page "https://www.teeworlds.com")
6240 (synopsis "2D retro multiplayer shooter game")
6241 (description "Teeworlds is an online multiplayer game. Battle with up to
6242 16 players in a variety of game modes, including Team Deathmatch and Capture
6243 The Flag. You can even design your own maps!")
6244 (license (list license:bsd-3 license:cc-by-sa3.0)))) ; game+maps&languages
6245
6246 (define-public enigma
6247 (package
6248 (name "enigma")
6249 (version "1.21")
6250 (source (origin
6251 (method url-fetch)
6252 (uri (string-append "mirror://sourceforge/enigma-game/"
6253 "Release%20" version "/enigma-"
6254 version ".tar.gz"))
6255 (sha256
6256 (base32
6257 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6258 (build-system gnu-build-system)
6259 (arguments
6260 `(#:configure-flags
6261 (list "--with-system-enet")
6262 #:phases
6263 (modify-phases %standard-phases
6264 (add-after 'unpack 'fix-build-with-new-gcc
6265 (lambda _
6266 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6267 ;; to NULL. Can be removed for versions > 1.21.
6268 (substitute* "src/lev/Proxy.cc"
6269 (("ifs != NULL")
6270 "ifs"))
6271 #t))
6272 (add-after 'unpack 'find-sdl
6273 (lambda _
6274 (substitute* "configure"
6275 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6276 (substitute* '("tools/ttf2bmf.cc"
6277 "lib-src/enigma-core/ecl_font.cc"
6278 "lib-src/enigma-core/ecl_video.cc"
6279 "lib-src/enigma-core/ecl_buffer.hh"
6280 "src/SoundEngine.cc"
6281 "src/SoundEngine.hh"
6282 "src/MusicManager.cc"
6283 "src/MusicManager.hh"
6284 "src/d_models.cc"
6285 "src/main.cc"
6286 "src/network.cc")
6287 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6288 (string-append "#include \"SDL/SDL_" header ".h\"")))
6289 (substitute* "src/main.cc"
6290 (("#include <SDL_(image|ttf|mixer).h>" line header)
6291 (string-append "#include \"SDL/SDL_" header ".h\"")))
6292 #t)))))
6293 (inputs
6294 `(("xerces-c" ,xerces-c)
6295 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6296 ("curl" ,curl)
6297 ("enet" ,enet)))
6298 (native-inputs
6299 `(("pkg-config" ,pkg-config)
6300 ("imagemagick" ,imagemagick)))
6301 (home-page "https://www.nongnu.org/enigma")
6302 (synopsis "Puzzle game with a dexterity component")
6303 (description "Enigma is a puzzle game with 550 unique levels. The object
6304 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6305 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6306 and most of all, countless hairy puzzles usually block your direct way to the
6307 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6308 get bored) interact in many unexpected ways, and since many of them follow the
6309 laws of physics (Enigma’s special laws of physics, that is), controlling them
6310 with the mouse isn’t always trivial.")
6311 (license license:gpl2+)))
6312
6313 (define-public chroma
6314 (package
6315 (name "chroma")
6316 (version "1.18")
6317 (source (origin
6318 (method url-fetch)
6319 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6320 version ".tar.bz2"))
6321 (sha256
6322 (base32
6323 "12bjisf5nlqinw8n4r223vld52p0p2mw3fca92vi175c46bycbzn"))))
6324 (build-system gnu-build-system)
6325 (arguments
6326 `(#:tests? #f ; no tests included
6327 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6328 (inputs
6329 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6330 ("freetype" ,freetype)
6331 ("ncurses" ,ncurses)
6332 ("fontconfig" ,fontconfig)
6333 ("libxft" ,libxft)))
6334 (native-inputs
6335 `(("pkg-config" ,pkg-config)))
6336 (home-page "http://level7.org.uk/chroma/")
6337 (synopsis "Abstract puzzle game")
6338 (description "Chroma is an abstract puzzle game. A variety of colourful
6339 shapes are arranged in a series of increasingly complex patterns, forming
6340 fiendish traps that must be disarmed and mysterious puzzles that must be
6341 manipulated in order to give up their subtle secrets. Initially so
6342 straightforward that anyone can pick it up and begin to play, yet gradually
6343 becoming difficult enough to tax even the brightest of minds.")
6344 (license license:gpl2+)))
6345
6346 (define-public fillets-ng
6347 (package
6348 (name "fillets-ng")
6349 (version "1.0.1")
6350 (source (origin
6351 (method url-fetch)
6352 (uri (string-append "mirror://sourceforge/fillets/"
6353 "Fish%20Fillets%20-%20Next%20Generation/"
6354 version "/fillets-ng-" version ".tar.gz"))
6355 (sha256
6356 (base32
6357 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6358 (build-system gnu-build-system)
6359 (arguments
6360 `(#:configure-flags
6361 (list (string-append "--with-lua="
6362 (assoc-ref %build-inputs "lua")))
6363 #:make-flags
6364 (list (string-append "CFLAGS=-I"
6365 (assoc-ref %build-inputs "sdl-union")
6366 "/include/SDL")
6367 (string-append "CXXFLAGS=-I"
6368 (assoc-ref %build-inputs "sdl-union")
6369 "/include/SDL"))
6370 #:phases
6371 (modify-phases %standard-phases
6372 ;; Lua 5.1 does not provide it.
6373 (add-after 'unpack 'do-not-link-with-lualib
6374 (lambda _
6375 (substitute* "configure"
6376 (("-llualib") ""))
6377 #t))
6378 (add-after 'install 'install-data
6379 (lambda* (#:key inputs outputs #:allow-other-keys)
6380 (let ((data (string-append (assoc-ref outputs "out")
6381 "/share/games/fillets-ng")))
6382 (mkdir-p data)
6383 (invoke "tar" "-xvf"
6384 (assoc-ref inputs "fillets-ng-data")
6385 "--strip-components=1"
6386 "-C" data)))))))
6387 (inputs
6388 `(("sdl-union" ,(sdl-union (list sdl
6389 sdl-mixer
6390 sdl-image
6391 sdl-ttf)))
6392 ("fribidi" ,fribidi)
6393 ("libx11" ,libx11)
6394 ("lua" ,lua-5.1)))
6395 (native-inputs
6396 `(("pkg-config" ,pkg-config)
6397 ("fillets-ng-data"
6398 ,(origin
6399 (method url-fetch)
6400 (uri (string-append "mirror://sourceforge/fillets/"
6401 "Fish%20Fillets%20-%20Next%20Generation/"
6402 version "/fillets-ng-data-" version ".tar.gz"))
6403 (sha256
6404 (base32
6405 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6406 (home-page "http://fillets.sourceforge.net/")
6407 (synopsis "Puzzle game")
6408 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6409 every of the seventy levels is always the same: find a safe way out. The fish
6410 utter witty remarks about their surroundings, the various inhabitants of their
6411 underwater realm quarrel among themselves or comment on the efforts of your
6412 fish. The whole game is accompanied by quiet, comforting music.")
6413 (license license:gpl2+)))
6414
6415 (define-public crawl
6416 (package
6417 (name "crawl")
6418 (version "0.26.1")
6419 (source
6420 (origin
6421 (method url-fetch)
6422 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6423 version "/stone_soup-" version "-nodeps.tar.xz"))
6424 (sha256
6425 (base32 "1d8p2np2q5951wqphq2f4dyvv976m2lh82b0qp7w9pp1h8zzi1ff"))
6426 (patches (search-patches "crawl-upgrade-saves.patch"))))
6427 (build-system gnu-build-system)
6428 (inputs
6429 `(("lua51" ,lua-5.1)
6430 ("ncurses" ,ncurses)
6431 ("sqlite" ,sqlite)
6432 ("zlib" ,zlib)))
6433 (native-inputs
6434 `(("bison" ,bison)
6435 ("flex" ,flex)
6436 ("perl" ,perl)
6437 ("python" ,python-wrapper)
6438 ("python-pyyaml" ,python-pyyaml)
6439 ("pkg-config" ,pkg-config)))
6440 (arguments
6441 `(#:make-flags
6442 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6443 (out (assoc-ref %outputs "out")))
6444 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6445 (string-append "prefix=" out)
6446 "SAVEDIR=~/.crawl"
6447 ;; Don't compile with SSE on systems which don't have it.
6448 ,@(match (%current-system)
6449 ((or "i686-linux" "x86_64-linux")
6450 '())
6451 (_ '("NOSSE=TRUE")))
6452 ;; don't build any bundled dependencies
6453 "BUILD_LUA="
6454 "BUILD_SQLITE="
6455 "BUILD_ZLIB="
6456 "-Csource"))
6457 #:phases
6458 (modify-phases %standard-phases
6459 (add-after 'unpack 'find-SDL-image
6460 (lambda _
6461 (substitute* "source/windowmanager-sdl.cc"
6462 (("SDL_image.h") "SDL2/SDL_image.h"))
6463 #t))
6464 (delete 'configure)
6465 (replace 'check
6466 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6467 (setenv "HOME" (getcwd))
6468 ;; Fake a terminal for the test cases.
6469 (setenv "TERM" "xterm-256color")
6470 ;; Run the tests that don't require a debug build.
6471 (apply invoke "make" "nondebugtest"
6472 (format #f "-j~d" (parallel-job-count))
6473 ;; Force command line build for test cases.
6474 (append make-flags '("GAME=crawl" "TILES="))))))))
6475 (synopsis "Roguelike dungeon crawler game")
6476 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6477 for short) is a roguelike adventure through dungeons filled with dangerous
6478 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6479 (home-page "https://crawl.develz.org")
6480 (license (list license:gpl2+
6481 license:bsd-2
6482 license:bsd-3
6483 license:cc0
6484 license:expat
6485 license:zlib
6486 license:asl2.0))))
6487
6488 ;; The linter here claims that patch file names should start with the package
6489 ;; name. But, in this case, the patches are inherited from crawl with the
6490 ;; "crawl-" prefix instead of "crawl-tiles-".
6491 (define-public crawl-tiles
6492 (package
6493 (inherit crawl)
6494 (name "crawl-tiles")
6495 (arguments
6496 (substitute-keyword-arguments
6497 (package-arguments crawl)
6498 ((#:make-flags flags)
6499 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6500 (cons*
6501 (string-append "PROPORTIONAL_FONT=" dejavu
6502 "/share/fonts/truetype/DejaVuSans.ttf")
6503 (string-append "MONOSPACED_FONT=" dejavu
6504 "/share/fonts/truetype/DejaVuSansMono.ttf")
6505 "TILES=y"
6506 ;; Rename the executable to allow parallel installation with crawl.
6507 "GAME=crawl-tiles"
6508 ,flags)))))
6509 (inputs
6510 `(,@(package-inputs crawl)
6511 ("font-dejavu" ,font-dejavu)
6512 ("freetype6" ,freetype)
6513 ("glu" ,glu)
6514 ("libpng" ,libpng)
6515 ("sdl2" ,sdl2)
6516 ("sdl2-image" ,sdl2-image)
6517 ("sdl2-mixer" ,sdl2-mixer)))
6518 (native-inputs
6519 `(,@(package-native-inputs crawl)
6520 ("pngcrush" ,pngcrush)
6521 ("which" ,which)))
6522 (synopsis "Graphical roguelike dungeon crawler game")))
6523
6524 (define-public lugaru
6525 (package
6526 (name "lugaru")
6527 (version "1.2")
6528 (source (origin
6529 (method url-fetch)
6530 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6531 "lugaru-" version ".tar.xz"))
6532 (sha256
6533 (base32
6534 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6535 (build-system cmake-build-system)
6536 (arguments
6537 `(#:configure-flags
6538 (list "-DSYSTEM_INSTALL=ON")
6539 ;; no test target
6540 #:tests? #f))
6541 (native-inputs
6542 `(("pkg-config" ,pkg-config)))
6543 (inputs
6544 `(("sdl2" ,sdl2)
6545 ("glu" ,glu)
6546 ("libjpeg" ,libjpeg-turbo)
6547 ("libpng" ,libpng)
6548 ("openal" ,openal)
6549 ("vorbis" ,libvorbis)
6550 ("zlib" ,zlib)))
6551 (home-page "https://osslugaru.gitlab.io")
6552 (synopsis "Cross-platform third-person action game")
6553 (description "Lugaru is a third-person action game. The main character,
6554 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6555 In his quest to find those responsible for slaughtering his village, he uncovers
6556 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6557 and the starving wolves from a nearby den. Turner takes it upon himself to
6558 fight against their plot and save his fellow rabbits from slavery.")
6559 (license (list license:gpl2+ ; code
6560 ;; assets:
6561 license:cc-by-sa3.0
6562 license:cc-by-sa4.0))))
6563
6564 (define-public 0ad-data
6565 (package
6566 (name "0ad-data")
6567 (version "0.0.23b-alpha")
6568 (source
6569 (origin
6570 (method url-fetch)
6571 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6572 version "-unix-data.tar.xz"))
6573 (file-name (string-append name "-" version ".tar.xz"))
6574 (sha256
6575 (base32
6576 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6577 (modules '((guix build utils)))
6578 (snippet
6579 #~(begin
6580 (for-each (lambda (name)
6581 (let* ((dir (string-append "binaries/data/mods/" name))
6582 (file (string-append dir "/" name ".zip"))
6583 (unzip #$(file-append unzip "/bin/unzip")))
6584 (invoke unzip "-d" dir file)
6585 (delete-file file)))
6586 '("mod" "public"))
6587 #t))))
6588 (build-system trivial-build-system)
6589 (native-inputs `(("tar" ,tar)
6590 ("xz" ,xz)))
6591 (arguments
6592 `(#:modules ((guix build utils))
6593 #:builder
6594 (begin
6595 (use-modules (guix build utils))
6596 (let ((out (assoc-ref %outputs "out"))
6597 (source (assoc-ref %build-inputs "source"))
6598 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6599 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6600 (setenv "PATH" xz-path)
6601 (mkdir out)
6602 (invoke tar "xvf" source "-C" out "--strip=3")))))
6603 (synopsis "Data files for 0ad")
6604 (description "0ad-data provides the data files required by the game 0ad.")
6605 (home-page "https://play0ad.com")
6606 (license (list (license:fsdg-compatible
6607 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6608 "Similar to the license of the Bitstream Vera fonts.")
6609 (license:fsdg-compatible
6610 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6611 license:cc-by-sa3.0
6612 license:expat
6613 license:gfl1.0
6614 license:gpl2+
6615 license:gpl3+))))
6616
6617 (define-public 0ad
6618 (package
6619 (name "0ad")
6620 (version "0.0.23b-alpha")
6621 (source
6622 (origin
6623 (method url-fetch)
6624 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6625 version "-unix-build.tar.xz"))
6626 (file-name (string-append name "-" version ".tar.xz"))
6627 (sha256
6628 (base32
6629 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6630 ;; A snippet here would cause a build failure because of timestamps
6631 ;; reset. See https://bugs.gnu.org/26734.
6632 (inputs
6633 `(("0ad-data" ,0ad-data)
6634 ("curl" ,curl)
6635 ("enet" ,enet)
6636 ("gloox" ,gloox)
6637 ("icu4c" ,icu4c)
6638 ("libpng" ,libpng)
6639 ("libsodium" ,libsodium)
6640 ("libvorbis" ,libvorbis)
6641 ("libxcursor" ,libxcursor)
6642 ("libxml2" ,libxml2)
6643 ("miniupnpc" ,miniupnpc)
6644 ("mozjs-38" ,mozjs-38)
6645 ("openal" ,openal)
6646 ("sdl2" ,sdl2)
6647 ("wxwidgets" ,wxwidgets)
6648 ("zlib" ,zlib)))
6649 (native-inputs
6650 `(("boost" ,boost)
6651 ("cmake" ,cmake-minimal)
6652 ("mesa" ,mesa)
6653 ("pkg-config" ,pkg-config)
6654 ("python-2" ,python-2)))
6655 (build-system gnu-build-system)
6656 (arguments
6657 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6658 #:phases
6659 (modify-phases %standard-phases
6660 (add-after 'unpack 'delete-bundles
6661 (lambda _
6662 (delete-file-recursively "libraries/source/spidermonkey")
6663 #t))
6664 (add-after 'unpack 'fix-x11-includes
6665 (lambda _
6666 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6667 (("<Xlib.h>") "<X11/Xlib.h>"))
6668 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6669 (("<Xatom.h>") "<X11/Xatom.h>"))
6670 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6671 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6672 #t))
6673 (replace 'configure
6674 (lambda* (#:key inputs outputs #:allow-other-keys)
6675 (let* ((jobs (number->string (parallel-job-count)))
6676 (out (assoc-ref outputs "out"))
6677 (lib (string-append out "/lib"))
6678 (data (string-append out "/share/0ad")))
6679 (setenv "JOBS" (string-append "-j" jobs))
6680 (setenv "CC" "gcc")
6681 (with-directory-excursion "build/workspaces"
6682 (invoke "./update-workspaces.sh"
6683 (string-append "--libdir=" lib)
6684 (string-append "--datadir=" data)
6685 ;; TODO: "--with-system-nvtt"
6686 "--with-system-mozjs38")))))
6687 (delete 'check)
6688 (replace 'install
6689 (lambda* (#:key inputs outputs #:allow-other-keys)
6690 (chdir "binaries")
6691 (let* ((out (assoc-ref outputs "out"))
6692 (bin (string-append out "/bin"))
6693 (lib (string-append out "/lib"))
6694 (data (string-append out "/share/0ad"))
6695 (applications (string-append out "/share/applications"))
6696 (pixmaps (string-append out "/share/pixmaps"))
6697 (0ad-data (assoc-ref inputs "0ad-data")))
6698 ;; data
6699 (copy-recursively "data" data)
6700 (for-each (lambda (file)
6701 (symlink (string-append 0ad-data "/" file)
6702 (string-append data "/" file)))
6703 '("config" "mods/mod" "mods/public" "tools"))
6704 ;; libraries
6705 (for-each (lambda (file)
6706 (install-file file lib))
6707 (find-files "system" "\\.so$"))
6708 ;; binaries
6709 (install-file "system/pyrogenesis" bin)
6710 (with-directory-excursion bin
6711 (symlink "pyrogenesis" "0ad"))
6712 ;; resources
6713 (with-directory-excursion "../build/resources"
6714 (install-file "0ad.desktop" applications)
6715 (install-file "0ad.png" pixmaps))
6716 #t)))
6717 (add-after 'install 'check
6718 (lambda _
6719 (with-directory-excursion "system"
6720 (invoke "./test")))))))
6721 (home-page "https://play0ad.com")
6722 (synopsis "3D real-time strategy game of ancient warfare")
6723 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6724 warfare. It's a historically-based war/economy game that allows players to
6725 relive or rewrite the history of twelve ancient civilizations, each depicted
6726 at their peak of economic growth and military prowess.
6727
6728 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6729 (license (list license:bsd-2
6730 license:bsd-3
6731 license:expat
6732 license:gpl2+
6733 license:ibmpl1.0
6734 license:isc
6735 license:lgpl2.1
6736 license:lgpl3
6737 license:mpl2.0
6738 license:zlib))))
6739
6740 (define-public open-adventure
6741 (package
6742 (name "open-adventure")
6743 (version "1.9")
6744 (source
6745 (origin
6746 (method git-fetch)
6747 (uri (git-reference
6748 (url "https://gitlab.com/esr/open-adventure")
6749 (commit version)))
6750 (file-name (git-file-name name version))
6751 (sha256
6752 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6753 (build-system gnu-build-system)
6754 (arguments
6755 `(#:make-flags (list "CC=gcc")
6756 #:phases
6757 (modify-phases %standard-phases
6758 (delete 'configure) ;no configure script
6759 (add-before 'build 'use-echo
6760 (lambda _
6761 (substitute* "tests/Makefile"
6762 (("/bin/echo") (which "echo")))
6763 #t))
6764 (add-after 'build 'build-manpage
6765 (lambda _
6766 ;; This target is missing a dependency
6767 (substitute* "Makefile"
6768 ((".adoc.6:" line)
6769 (string-append line " advent.adoc")))
6770 (invoke "make" ".adoc.6")))
6771 ;; There is no install target.
6772 (replace 'install
6773 (lambda* (#:key outputs #:allow-other-keys)
6774 (let* ((out (assoc-ref outputs "out"))
6775 (bin (string-append out "/bin"))
6776 (man (string-append out "/share/man/man6")))
6777 (install-file "advent" bin)
6778 (install-file "advent.6" man))
6779 #t)))))
6780 (native-inputs
6781 `(("asciidoc" ,asciidoc)
6782 ("libedit" ,libedit)
6783 ("pkg-config" ,pkg-config)
6784 ("python" ,python-wrapper)
6785 ("python-pyyaml" ,python-pyyaml)))
6786 (home-page "https://gitlab.com/esr/open-adventure")
6787 (synopsis "Colossal Cave Adventure")
6788 (description
6789 "The original Colossal Cave Adventure from 1976 was the origin of all
6790 text adventures, dungeon-crawl (computer) games, and computer-hosted
6791 roleplaying games. This is a forward port of the last version released by
6792 Crowther & Woods, its original authors, in 1995. It has been known as
6793 ``adventure 2.5'' and ``430-point adventure''.")
6794 (license license:bsd-2)))
6795
6796 (define-public open-adventure-2.5
6797 (package
6798 (inherit open-adventure)
6799 (version "2.5")
6800 (properties `((superseded . ,open-adventure)))))
6801
6802 (define-public tome4
6803 (package
6804 (name "tome4")
6805 (version "1.7.2")
6806 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6807 (source
6808 (origin
6809 (method url-fetch)
6810 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6811 version ".tar.bz2"))
6812 (sha256
6813 (base32 "1xa0pdn9pggwf7hnqb87ya2qxqhjahkdjwf8cr2y01gixgrkj9lv"))
6814 (modules '((guix build utils)))
6815 (snippet
6816 '(begin
6817 (substitute* '("src/music.h" "src/tSDL.h")
6818 (("#elif defined(__FreeBSD__)" line)
6819 (string-append
6820 line " || defined(__GNUC__)")))
6821 (substitute* '("src/tgl.h")
6822 (("#include <GL/glext.h>") ""))
6823 #t))))
6824 (build-system gnu-build-system)
6825 (native-inputs
6826 `(("unzip" ,unzip)))
6827 (inputs
6828 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6829 ("glu" ,glu)
6830 ("premake4" ,premake4)
6831 ("openal" ,openal)
6832 ("vorbis" ,libvorbis)
6833 ("luajit" ,luajit)))
6834 (arguments
6835 `(#:make-flags
6836 (list (string-append "CC=" ,(cc-for-target))
6837 "config=release")
6838 ;; XXX: Building in parallel occasionally causes this build failure:
6839 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6840 ;; No such file or directory
6841 #:parallel-build? #f
6842 #:phases (modify-phases %standard-phases
6843 (delete 'bootstrap)
6844 (replace 'configure
6845 (lambda _
6846 (invoke "premake4" "gmake")
6847 #t))
6848 (add-after 'set-paths 'set-sdl-paths
6849 (lambda* (#:key inputs #:allow-other-keys)
6850 (setenv "CPATH"
6851 (string-append (assoc-ref inputs "sdl-union")
6852 "/include/SDL2:"
6853 (or (getenv "CPATH") "")))
6854 #t))
6855 (delete 'check)
6856 ;; premake doesn't provide install target
6857 (replace 'install
6858 (lambda* (#:key inputs outputs #:allow-other-keys)
6859 (let* ((out (assoc-ref outputs "out"))
6860 (usr (string-append out "/usr"))
6861 (bin (string-append out "/bin"))
6862 (licenses (string-append out "/share/licenses"))
6863 (documents (string-append out "/share/doc"))
6864 (pixmaps (string-append out "/share/pixmaps"))
6865 (icon "te4-icon.png")
6866 (data (string-append out "/share/" ,name))
6867 (applications (string-append
6868 out "/share/applications"))
6869 (unzip (string-append
6870 (assoc-ref inputs "unzip") "/bin/unzip"))
6871 (wrapper (string-append bin "/" ,name)))
6872 ;; icon
6873 (mkdir-p pixmaps)
6874 (invoke unzip "-j"
6875 (string-append
6876 "game/engines/te4-" ,version ".teae")
6877 (string-append
6878 "data/gfx/" icon) "-d" pixmaps)
6879 ;; game executable
6880 (install-file "t-engine" data)
6881 (mkdir-p bin)
6882 (with-output-to-file wrapper
6883 (lambda ()
6884 (display
6885 (string-append
6886 "#!/bin/sh\n"
6887 ;; No bootstrap code found,
6888 ;; defaulting to working directory
6889 ;; for engine code!
6890 "cd " data "\n"
6891 "exec -a tome4 ./t-engine \"$@\"\n"))))
6892 (chmod wrapper #o555)
6893 ;; licenses
6894 (for-each (lambda (file)
6895 (install-file file licenses))
6896 '("COPYING" "COPYING-MEDIA"))
6897 ;; documents
6898 (for-each (lambda (file)
6899 (install-file file documents))
6900 '("CONTRIBUTING" "CREDITS"))
6901 ;; data
6902 (copy-recursively "bootstrap" (string-append
6903 data "/bootstrap"))
6904 (copy-recursively "game" (string-append data "/game"))
6905 ;; launcher
6906 (mkdir-p applications)
6907 (make-desktop-entry-file
6908 (string-append applications "/" ,name ".desktop")
6909 #:name "ToME4"
6910 #:comment ,synopsis
6911 #:exec ,name
6912 #:icon icon
6913 #:categories '("Game" "RolePlaying")))
6914 #t)))))
6915 (home-page "https://te4.org")
6916 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6917 combat and advanced character building. Play as one of many unique races and
6918 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6919 challenging battles, and developing characters with your own tailored mix of
6920 abilities and powers. With a modern graphical and customisable interface,
6921 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6922 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6923 (license license:gpl3+)))
6924
6925 (define-public quakespasm
6926 (package
6927 (name "quakespasm")
6928 (version "0.93.2")
6929 (source
6930 (origin
6931 (method url-fetch)
6932 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6933 version ".tgz"))
6934 (sha256
6935 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6936 (arguments
6937 `(#:tests? #f
6938 #:make-flags '("CC=gcc"
6939 "MP3LIB=mpg123"
6940 "USE_CODEC_FLAC=1"
6941 "USE_CODEC_MIKMOD=1"
6942 "USE_SDL2=1"
6943 "-CQuake")
6944 #:phases (modify-phases %standard-phases
6945 (delete 'configure)
6946 (add-after 'unpack 'fix-makefile-paths
6947 (lambda* (#:key outputs #:allow-other-keys)
6948 (let ((out (assoc-ref outputs "out")))
6949 (mkdir-p (string-append out "/bin"))
6950 (substitute* "Quake/Makefile"
6951 (("/usr/local/games")
6952 (string-append out "/bin")))
6953 #t))))))
6954 (build-system gnu-build-system)
6955 (inputs `(("libmikmod" ,libmikmod)
6956 ("libvorbis" ,libvorbis)
6957 ("flac" ,flac)
6958 ("mesa" ,mesa)
6959 ("mpg123" ,mpg123)
6960 ("sdl2" ,sdl2)))
6961 (synopsis "First person shooter engine for Quake 1")
6962 (description "Quakespasm is a modern engine for id software's Quake 1.
6963 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6964 some graphical niceities, and numerous bug-fixes and other improvements.")
6965 (home-page "http://quakespasm.sourceforge.net/")
6966 (license license:gpl2+)))
6967
6968 (define-public vkquake
6969 (package
6970 (inherit quakespasm)
6971 (name "vkquake")
6972 (version "1.01.0")
6973 (source
6974 (origin
6975 (method git-fetch)
6976 (uri (git-reference
6977 (url "https://github.com/Novum/vkQuake")
6978 (commit version)))
6979 (file-name (git-file-name name version))
6980 (sha256
6981 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6982 (arguments
6983 `(#:make-flags
6984 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6985 "vulkan-loader") "/lib")))
6986 (list "CC=gcc"
6987 "MP3LIB=mpg123"
6988 "USE_CODEC_FLAC=1"
6989 "USE_CODEC_MIKMOD=1"
6990 "USE_SDL2=1"
6991 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
6992 "-CQuake"))
6993 #:phases (modify-phases %standard-phases
6994 (add-after 'unpack 'patch-for-new-vulkan
6995 (lambda _
6996 ;; Mimic upstream commit a869a22d9b51c68e for
6997 ;; compatibility with newer vulkan-headers.
6998 (substitute* "Quake/gl_rmisc.c"
6999 (("VK_DYNAMIC_STATE_RANGE_SIZE")
7000 "3"))
7001 #t))
7002 (delete 'configure)
7003 (add-after 'unpack 'fix-makefile-paths
7004 (lambda* (#:key outputs #:allow-other-keys)
7005 (let ((vulkan (assoc-ref %build-inputs
7006 "vulkan-loader"))
7007 (out (assoc-ref outputs "out")))
7008 (mkdir-p (string-append out "/bin"))
7009 (substitute* "Quake/Makefile" ((" /usr")
7010 (string-append " " out)))
7011 (substitute* "Quake/Makefile" (("/games")
7012 (string-append "/bin")))
7013 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
7014 #t))))
7015 ,@(strip-keyword-arguments '(#:make-flags #:phases)
7016 (package-arguments quakespasm))))
7017 (inputs `(("vulkan-headers" ,vulkan-headers)
7018 ("vulkan-loader" ,vulkan-loader)
7019 ,@(package-inputs quakespasm)))
7020 (description "vkquake is a modern engine for id software's Quake 1.
7021 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
7022 some graphical niceities, and numerous bug-fixes and other improvements.")
7023 (home-page "https://github.com/Novum/vkQuake")))
7024
7025 (define-public yamagi-quake2
7026 (package
7027 (name "yamagi-quake2")
7028 (version "7.45")
7029 (source
7030 (origin
7031 (method url-fetch)
7032 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
7033 version ".tar.xz"))
7034 (sha256
7035 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
7036 (build-system gnu-build-system)
7037 (arguments
7038 `(#:tests? #f
7039 #:make-flags
7040 (list "CC=gcc"
7041 ;; link openAL instead of using dlopen at runtime
7042 "DLOPEN_OPENAL=\"no\""
7043 ;; an optional directory where it will look for quake2 data files
7044 ;; in addition to the current working directory
7045 "WITH_SYSTEMWIDE=yes"
7046 "WITH_SYSTEMDIR=\"/opt/quake2\"")
7047 #:phases
7048 (modify-phases %standard-phases
7049 (delete 'configure)
7050 (replace 'install
7051 (lambda* (#:key outputs #:allow-other-keys)
7052 (let ((out (assoc-ref outputs "out")))
7053 (mkdir-p (string-append out "/lib"))
7054 (mkdir-p (string-append out "/bin"))
7055 ;; The yamagi-quake2 binary must be in the same directory
7056 ;; as it's engine libraries, but symlinking it to /bin is okay
7057 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
7058 (copy-recursively "release"
7059 (string-append out "/lib/yamagi-quake2"))
7060 (symlink (string-append out "/lib/yamagi-quake2/quake2")
7061 (string-append out "/bin/yamagi-quake2"))
7062 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
7063 (string-append out "/bin/yamagi-q2ded"))))))))
7064 (native-inputs
7065 `(("pkg-config" ,pkg-config)))
7066 (inputs
7067 `(("curl" ,curl-minimal)
7068 ("libvorbis" ,libvorbis)
7069 ("mesa" ,mesa)
7070 ("openal" ,openal)
7071 ("sdl2" ,sdl2)
7072 ("zlib" ,zlib)))
7073 (synopsis "First person shooter engine based on quake2")
7074 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
7075 The main focus is an unchanged single player experience like back in 1997,
7076 thus the gameplay and the graphics are unaltered. However the user may use one
7077 of the unofficial retexturing packs. In comparison with the official client,
7078 over 1000 bugs were fixed and an extensive code audit done,
7079 making Yamagi Quake II one of the most solid Quake II implementations available.")
7080 (home-page "https://www.yamagi.org/quake2/")
7081 (license (list license:gpl2+ ; game and server
7082 (license:non-copyleft ; info-zip
7083 "file://LICENSE"
7084 "See Info-Zip section.")
7085 license:public-domain)))) ; stb
7086
7087 (define-public nudoku
7088 (package
7089 (name "nudoku")
7090 (version "2.1.0")
7091 (source
7092 (origin
7093 (method git-fetch)
7094 (uri (git-reference
7095 (url "https://github.com/jubalh/nudoku")
7096 (commit version)))
7097 (file-name (git-file-name name version))
7098 (sha256
7099 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
7100 (build-system gnu-build-system)
7101 (native-inputs
7102 `(("autoconf" ,autoconf)
7103 ("automake" ,automake)
7104 ("gettext" ,gettext-minimal)
7105 ("pkg-config" ,pkg-config)))
7106 (inputs
7107 `(("ncurses" ,ncurses)))
7108 (home-page "https://jubalh.github.io/nudoku/")
7109 (synopsis "Sudoku for your terminal")
7110 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
7111 (license license:gpl3+)))
7112
7113 (define-public the-butterfly-effect
7114 (package
7115 (name "the-butterfly-effect")
7116 (version "0.9.3.1")
7117 (source
7118 (origin
7119 (method git-fetch)
7120 (uri (git-reference
7121 (url "https://github.com/the-butterfly-effect/tbe")
7122 (commit (string-append "v" version))))
7123 (file-name (git-file-name name version))
7124 (sha256
7125 (base32
7126 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
7127 (build-system gnu-build-system)
7128 (arguments
7129 `(#:phases
7130 (modify-phases %standard-phases
7131 (delete 'configure)
7132 ;; There is no "install" phase. By default, tbe is installed
7133 ;; in the build directory. Provide our own installation.
7134 (replace 'install
7135 (lambda* (#:key outputs #:allow-other-keys)
7136 (let* ((out (assoc-ref outputs "out"))
7137 (bin (string-append out "/bin"))
7138 (share (string-append out "/share")))
7139 (install-file "usr/games/tbe" bin)
7140 (mkdir-p share)
7141 (copy-recursively "usr/share" share)
7142 #t))))
7143 ;; Test suite requires a running Xorg server. Even when
7144 ;; provided, it fails with "D-Bus library appears to be
7145 ;; incorrectly set up; failed to read machine uuid: Failed to
7146 ;; open "/etc/machine-id": No such file or directory" along
7147 ;; with multiple "QPainter:: ... Painter not active" warnings.
7148 #:tests? #f))
7149 (inputs
7150 `(("qtbase" ,qtbase)
7151 ("qtsvg" ,qtsvg)))
7152 (native-inputs
7153 `(("cmake" ,cmake-minimal)
7154 ("gettext-minimal" ,gettext-minimal)
7155 ("qttools" ,qttools)))
7156 (synopsis "Realistic physics puzzle game")
7157 (description "The Butterfly Effect (tbe) is a game that uses
7158 realistic physics simulations to combine lots of simple mechanical
7159 elements to achieve a simple goal in the most complex way possible.")
7160 (home-page "http://the-butterfly-effect.org/")
7161 ;; Main license is GPL2-only. However, artwork is distributed
7162 ;; under various licenses, listed here.
7163 (license (list license:gpl2 license:public-domain license:expat
7164 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7165
7166 (define-public pioneer
7167 (package
7168 (name "pioneer")
7169 (version "20210203")
7170 (source (origin
7171 (method git-fetch)
7172 (uri (git-reference
7173 (url "https://github.com/pioneerspacesim/pioneer")
7174 (commit version)))
7175 (file-name (git-file-name name version))
7176 (sha256
7177 (base32
7178 "1zyi1xyghj99hz8fa6dywpscj6flp04fspnlgxbivf3rgmnxflg7"))))
7179 (build-system cmake-build-system)
7180 (native-inputs
7181 `(("pkg-config" ,pkg-config)))
7182 (inputs
7183 `(("assimp" ,assimp)
7184 ("curl" ,curl)
7185 ("freetype" ,freetype)
7186 ("glew" ,glew)
7187 ("glu" ,glu)
7188 ("libpng" ,libpng)
7189 ("libsigc++" ,libsigc++)
7190 ("libvorbis" ,libvorbis)
7191 ("lua" ,lua-5.2) ;not compatible with 5.3
7192 ("mesa" ,mesa)
7193 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7194 (arguments
7195 `(#:tests? #f ;tests are broken
7196 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7197 (string-append "-DPIONEER_DATA_DIR="
7198 %output "/share/games/pioneer"))))
7199 (home-page "https://pioneerspacesim.net")
7200 (synopsis "Game of lonely space adventure")
7201 (description
7202 "Pioneer is a space adventure game set in our galaxy at the turn of the
7203 31st century. The game is open-ended, and you are free to eke out whatever
7204 kind of space-faring existence you can think of. Look for fame or fortune by
7205 exploring the millions of star systems. Turn to a life of crime as a pirate,
7206 smuggler or bounty hunter. Forge and break alliances with the various
7207 factions fighting for power, freedom or self-determination. The universe is
7208 whatever you make of it.")
7209 (license license:gpl3)))
7210
7211 (define-public badass
7212 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7213 (revision "0"))
7214 (package
7215 (name "badass")
7216 (version (git-version "0.0" revision commit))
7217 (source (origin
7218 (method git-fetch)
7219 (uri (git-reference
7220 (url "https://github.com/umayr/badass")
7221 (commit commit)))
7222 (file-name (git-file-name name version))
7223 (sha256
7224 (base32
7225 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7226 (build-system go-build-system)
7227 (arguments
7228 '(#:import-path "github.com/umayr/badass"))
7229 (synopsis "Hacking contribution graphs in git")
7230 (description
7231 "Badass generates false commits for a range of dates, essentially
7232 hacking the gamification of contribution graphs on platforms such as
7233 Github or Gitlab.")
7234 (home-page "https://github.com/umayr/badass")
7235 (license license:expat))))
7236
7237 (define-public colobot
7238 (package
7239 (name "colobot")
7240 (version "0.1.12-alpha")
7241 (source
7242 (origin
7243 (method git-fetch)
7244 (uri (git-reference
7245 (url "https://github.com/colobot/colobot")
7246 (commit (string-append "colobot-gold-" version))
7247 (recursive? #t))) ;for "data/" subdir
7248 (file-name (git-file-name name version))
7249 (sha256
7250 (base32
7251 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
7252 (build-system cmake-build-system)
7253 (arguments
7254 `(#:tests? #f ;no test
7255 #:phases
7256 (modify-phases %standard-phases
7257 (add-after 'unpack 'make-git-checkout-writable
7258 (lambda _
7259 (for-each make-file-writable (find-files "."))
7260 #t))
7261 (add-after 'unpack 'fix-directories
7262 (lambda _
7263 (substitute* "CMakeLists.txt"
7264 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7265 (string-append prefix "/bin"))
7266 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7267 (string-append prefix "/colobot")))
7268 #t))
7269 (add-after 'fix-directories 'install-music
7270 ;; Retrieve and install music files.
7271 (lambda* (#:key inputs #:allow-other-keys)
7272 ;; Installation process tries to download music files using
7273 ;; "wget" if not already present. Since we are going another
7274 ;; route, skip "wget" command check.
7275 (substitute* "data/music/CMakeLists.txt"
7276 (("find_program\\(WGET wget\\)") ""))
7277 ;; Populate "music/" directory.
7278 (let ((data (assoc-ref inputs "colobot-music")))
7279 (invoke "tar" "-xvf" data "-Cdata/music"))
7280 #t)))))
7281 (native-inputs
7282 `(("colobot-music"
7283 ,(origin
7284 (method url-fetch)
7285 (uri (string-append "https://colobot.info/files/music/"
7286 "colobot-music_ogg_" version ".tar.gz"))
7287 (sha256
7288 (base32
7289 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7290 ("gettext" ,gettext-minimal)
7291 ("librsvg" ,librsvg)
7292 ("po4a" ,po4a)
7293 ("python" ,python-wrapper)))
7294 (inputs
7295 `(("boost" ,boost)
7296 ("glew" ,glew)
7297 ("libogg" ,libogg)
7298 ("libpng" ,libpng)
7299 ("libsndfile" ,libsndfile)
7300 ("libvorbis" ,libvorbis)
7301 ("openal" ,openal)
7302 ("physfs" ,physfs)
7303 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7304 (synopsis "Educational programming strategy game")
7305 (description "Colobot: Gold Edition is a real-time strategy game, where
7306 you can program your units (bots) in a language called CBOT, which is similar
7307 to C++ and Java. Your mission is to find a new planet to live and survive.
7308 You can save humanity and get programming skills!")
7309 (home-page "https://colobot.info")
7310 (license license:gpl3+)))
7311
7312 (define-public gzdoom
7313 (package
7314 (name "gzdoom")
7315 (version "4.3.2")
7316 (source
7317 (origin
7318 (method git-fetch)
7319 (uri (git-reference
7320 (url "https://github.com/coelckers/gzdoom")
7321 (commit (string-append "g" version))))
7322 (file-name (git-file-name name version))
7323 (sha256
7324 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7325 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7326 "gzdoom-find-system-libgme.patch"))
7327 (modules '((guix build utils)))
7328 (snippet
7329 '(begin
7330 ;; Remove some bundled libraries. XXX There are more, but removing
7331 ;; them would require, at least, patching the build system.
7332 (with-directory-excursion "libraries"
7333 (delete-file-recursively "bzip2")
7334 (delete-file-recursively "game-music-emu")
7335 (delete-file-recursively "jpeg")
7336 (delete-file-recursively "zlib"))
7337 #t))))
7338 (arguments
7339 '(#:tests? #f
7340 #:configure-flags
7341 (let ((out (assoc-ref %outputs "out")))
7342 (list
7343 (string-append
7344 "-DCMAKE_CXX_FLAGS:="
7345 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7346 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7347
7348 ;; The build requires some extra convincing not to use the bundled
7349 ;; libgme previously deleted in the soure snippet.
7350 "-DFORCE_INTERNAL_GME=OFF"
7351
7352 ;; Link libraries at build time instead of loading them at run time.
7353 "-DDYN_OPENAL=OFF"
7354 "-DDYN_FLUIDSYNTH=OFF"
7355 "-DDYN_GTK=OFF"
7356 "-DDYN_MPG123=OFF"
7357 "-DDYN_SNDFILE=OFF"))
7358 #:phases
7359 (modify-phases %standard-phases
7360 (add-before 'configure 'fix-referenced-paths
7361 (lambda* (#:key inputs outputs #:allow-other-keys)
7362 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7363 (timidity++ (assoc-ref inputs "timidity++"))
7364 (out (assoc-ref outputs "out")))
7365
7366 (substitute*
7367 "src/CMakeLists.txt"
7368 (("COMMAND /bin/sh")
7369 (string-append "COMMAND " (which "sh"))))
7370
7371 (substitute*
7372 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7373 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7374 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7375
7376 (substitute*
7377 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7378 (("exename = \"timidity\"")
7379 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7380 #t))))))
7381 (build-system cmake-build-system)
7382 (inputs `(("bzip2" ,bzip2)
7383 ("fluid-3" ,fluid-3)
7384 ("fluidsynth" ,fluidsynth)
7385 ("gtk+3" ,gtk+)
7386 ("libgme" ,libgme)
7387 ("libjpeg" ,libjpeg-turbo)
7388 ("libsndfile" ,libsndfile)
7389 ("mesa" ,mesa)
7390 ("mpg123" ,mpg123)
7391 ("openal" ,openal)
7392 ("sdl2" ,sdl2)
7393 ("timidity++" ,timidity++)
7394 ("zlib" ,zlib)))
7395 (native-inputs `(("pkg-config" ,pkg-config)
7396 ("unzip" ,unzip)))
7397 (synopsis "Modern Doom 2 source port")
7398 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7399 renderer. It improves modding support with ZDoom's advanced mapping features
7400 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7401 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7402 (home-page "https://zdoom.org/index")
7403 ;; The source uses x86 assembly
7404 (supported-systems '("x86_64-linux" "i686-linux"))
7405 (license (list license:gpl3+ ; gzdoom game
7406 license:lgpl3+ ; gzdoom renderer
7407 license:expat ; gdtoa
7408 (license:non-copyleft ; modified dumb
7409 "file://dumb/licence.txt"
7410 "Dumb license, explicitly GPL compatible.")))))
7411
7412 (define-public odamex
7413 (package
7414 (name "odamex")
7415 (version "0.8.3")
7416 (source
7417 (origin
7418 (method url-fetch)
7419 (uri (string-append
7420 "mirror://sourceforge/odamex/Odamex/" version "/"
7421 "odamex-src-" version ".tar.gz"))
7422 (sha256
7423 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7424 (build-system cmake-build-system)
7425 (arguments `(#:tests? #f)) ; no tests
7426 (inputs
7427 `(("sdl" ,sdl)
7428 ("sdl-mixer" ,sdl-mixer)
7429 ("zlib" ,zlib)
7430 ("libpng" ,libpng)
7431 ("alsa-lib" ,alsa-lib)))
7432 (home-page "https://odamex.net/")
7433 (synopsis "Multiplayer Doom port")
7434 (description "Odamex is a modification of the Doom engine that
7435 allows players to easily join servers dedicated to playing Doom
7436 online.")
7437 (license license:gpl2+)))
7438
7439 (define-public chocolate-doom
7440 (package
7441 (name "chocolate-doom")
7442 (version "3.0.1")
7443 (source (origin
7444 (method url-fetch)
7445 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7446 version
7447 "/chocolate-doom-"
7448 version
7449 ".tar.gz"))
7450 (sha256
7451 (base32
7452 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7453 (build-system gnu-build-system)
7454 (inputs `(("sdl2-net" ,sdl2-net)
7455 ("sdl2-mixer" , sdl2-mixer)
7456 ("sdl2" ,sdl2)))
7457 (native-inputs
7458 `(("pkg-config" ,pkg-config)))
7459 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7460 Doom")
7461 (description
7462 "Chocolate Doom takes a different approach to other source ports. Its
7463 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7464 a conservative, historically accurate Doom source port, which is compatible
7465 with the thousands of mods and levels that were made before the Doom source
7466 code was released. Rather than flashy new graphics, Chocolate Doom's main
7467 features are its accurate reproduction of the game as it was played in the
7468 1990s. The project is developed around a carefully-considered philosophy that
7469 intentionally restricts which features may be added (and rejects any that
7470 affect gameplay).")
7471 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7472 (license license:gpl2)))
7473
7474 (define-public crispy-doom
7475 (package
7476 (inherit chocolate-doom)
7477 (name "crispy-doom")
7478 (version "5.8.0")
7479 (source (origin
7480 (method git-fetch)
7481 (uri (git-reference
7482 (url "https://github.com/fabiangreffrath/crispy-doom")
7483 (commit (string-append "crispy-doom-" version))))
7484 (file-name (git-file-name name version))
7485 (sha256
7486 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7487 (native-inputs
7488 (append
7489 (package-native-inputs chocolate-doom)
7490 `(("automake" ,automake)
7491 ("autoreconf" ,autoconf))))
7492 (arguments
7493 `(#:phases
7494 (modify-phases %standard-phases
7495 (replace 'bootstrap
7496 ;; The bundled autogen.sh script unconditionally runs ./configure.
7497 (lambda _ (invoke "autoreconf" "-vif"))))))
7498 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7499 Chocolate Doom")
7500 (description
7501 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7502 display resolution, removes the static limits of the Doom engine and offers
7503 further optional visual, tactical and physical enhancements while remaining
7504 entirely config file, savegame, netplay and demo compatible with the
7505 original.")
7506 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7507
7508 (define shlomif-cmake-modules
7509 (origin
7510 (method url-fetch)
7511 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7512 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7513 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7514 (sha256
7515 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7516
7517 (define-public rinutils
7518 (package
7519 (name "rinutils")
7520 (version "0.2.0")
7521 (source (origin
7522 (method git-fetch)
7523 (uri (git-reference
7524 (url "https://github.com/shlomif/rinutils")
7525 (commit version)))
7526 (file-name (git-file-name name version))
7527 (sha256
7528 (base32
7529 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7530 (native-inputs
7531 `(("perl" ,perl)
7532 ;; The following is only needed for tests.
7533 ("perl-file-find-object" ,perl-file-find-object)
7534 ("perl-test-differences" ,perl-test-differences)
7535 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7536 ("perl-io-all" ,perl-io-all)
7537 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7538 ("cmake-rules" ,shlomif-cmake-modules)
7539 ("pkg-config" ,pkg-config)))
7540 (inputs
7541 `(("cmocka" ,cmocka)
7542 ("perl-env-path" ,perl-env-path)
7543 ("perl-inline" ,perl-inline)
7544 ("perl-inline-c" ,perl-inline-c)
7545 ("perl-string-shellquote" ,perl-string-shellquote)
7546 ("perl-test-trailingspace" ,perl-test-trailingspace)
7547 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7548 ("perl-text-glob" ,perl-text-glob)
7549 ("perl-number-compare" ,perl-number-compare)
7550 ("perl-moo" ,perl-moo)))
7551 (arguments
7552 `(#:phases
7553 (modify-phases %standard-phases
7554 (add-after 'unpack 'fix-build-env
7555 (lambda* (#:key inputs #:allow-other-keys)
7556 (use-modules (guix build utils))
7557 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7558 (copy-file cmake-rules
7559 (string-append "cmake/"
7560 (strip-store-file-name cmake-rules)))
7561 #t)))
7562 (replace 'check
7563 (lambda _
7564 (with-directory-excursion "../source"
7565 (setenv "FCS_TEST_BUILD" "1")
7566 (setenv "RINUTILS_TEST_BUILD" "1")
7567 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7568 ;; which requires tidy-all.
7569 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7570 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7571 (build-system cmake-build-system)
7572 (home-page "https://www.shlomifish.org/open-source/projects/")
7573 (synopsis "C11 / gnu11 utilities C library")
7574 (description "This package provides C11 / gnu11 utilities C library")
7575 (license license:expat)))
7576
7577 (define-public fortune-mod
7578 (package
7579 (name "fortune-mod")
7580 (version "2.28.0")
7581 (source
7582 (origin
7583 (method git-fetch)
7584 (uri (git-reference
7585 (url "https://github.com/shlomif/fortune-mod")
7586 (commit (string-append "fortune-mod-" version))))
7587 (file-name (git-file-name name version))
7588 (sha256
7589 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7590 (build-system cmake-build-system)
7591 (arguments
7592 `(#:test-target "check"
7593 #:phases
7594 (modify-phases %standard-phases
7595 (add-after 'unpack 'fix-build-env
7596 (lambda* (#:key inputs #:allow-other-keys)
7597 (use-modules (guix build utils))
7598 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7599 (copy-file cmake-rules
7600 (string-append "fortune-mod/cmake/"
7601 (strip-store-file-name cmake-rules)))
7602 (chdir "fortune-mod")
7603 ;; TODO: Valgrind tests fail for some reason.
7604 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7605 (delete-file "tests/t/valgrind.t")
7606 #t)))
7607 (add-after 'install 'fix-install-directory
7608 (lambda* (#:key outputs #:allow-other-keys)
7609 ;; Move binary from "games/" to "bin/" and remove the latter. This
7610 ;; is easier than patching CMakeLists.txt since the tests hard-code
7611 ;; the location as well.
7612 (let* ((out (assoc-ref outputs "out"))
7613 (bin (string-append out "/bin"))
7614 (games (string-append out "/games")))
7615 (rename-file (string-append games "/fortune")
7616 (string-append bin "/fortune"))
7617 (rmdir games)
7618 #t))))))
7619 (inputs `(("recode" ,recode)))
7620 (native-inputs
7621 `(("perl" ,perl)
7622 ;; The following is only needed for tests.
7623 ("perl-file-find-object" ,perl-file-find-object)
7624 ("perl-test-differences" ,perl-test-differences)
7625 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7626 ("perl-io-all" ,perl-io-all)
7627 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7628 ("cmake-rules" ,shlomif-cmake-modules)
7629 ("rinutils" ,rinutils)))
7630 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7631 (synopsis "The Fortune Cookie program from BSD games")
7632 (description "Fortune is a command-line utility which displays a random
7633 quotation from a collection of quotes.")
7634 (license license:bsd-4)))
7635
7636 (define xonotic-data
7637 (package
7638 (name "xonotic-data")
7639 (version "0.8.2")
7640 (source
7641 (origin
7642 (method url-fetch)
7643 (uri (string-append "http://dl.xonotic.org/xonotic-"
7644 version ".zip"))
7645 (file-name (string-append name "-" version ".zip"))
7646 (sha256
7647 (base32
7648 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7649 (build-system trivial-build-system)
7650 (native-inputs
7651 `(("unzip" ,unzip)))
7652 (arguments
7653 `(#:modules ((guix build utils))
7654 #:builder
7655 (begin
7656 (use-modules (guix build utils))
7657 (let* ((out (assoc-ref %outputs "out"))
7658 (xonotic (string-append out "/share/xonotic"))
7659 (source (assoc-ref %build-inputs "source"))
7660 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7661 (copy-file source (string-append ,name "-" ,version ".zip"))
7662 (invoke unzip (string-append ,name "-" ,version ".zip"))
7663 (mkdir-p out)
7664 (mkdir-p xonotic)
7665 (chdir "Xonotic")
7666 (copy-recursively "data"
7667 (string-append xonotic "/data"))
7668 (copy-recursively "server"
7669 (string-append xonotic "/server"))
7670 (install-file "key_0.d0pk" xonotic)))))
7671 (home-page "http://xonotic.org")
7672 (synopsis "Data files for Xonotic")
7673 (description
7674 "Xonotic-data provides the data files required by the game Xonotic.")
7675 (license (list license:gpl2+
7676 (license:x11-style "file://server/rcon.pl")))))
7677
7678 (define-public xonotic
7679 (package
7680 (name "xonotic")
7681 (version "0.8.2")
7682 (source
7683 (origin
7684 (method url-fetch)
7685 (uri (string-append "http://dl.xonotic.org/xonotic-"
7686 version "-source.zip"))
7687 (file-name (string-append name "-" version ".zip"))
7688 (sha256
7689 (base32
7690 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7691 (build-system gnu-build-system)
7692 (arguments
7693 `(#:configure-flags (list (string-append "--prefix="
7694 (assoc-ref %outputs "out"))
7695 "--disable-rijndael")
7696 #:phases
7697 (modify-phases %standard-phases
7698 (add-before 'configure 'make-darkplaces
7699 (lambda* (#:key outputs #:allow-other-keys)
7700 (let* ((out (assoc-ref outputs "out"))
7701 (sharedir (string-append out "/share/xonotic/")))
7702 (invoke "make" "-C" "source/darkplaces"
7703 (string-append "DP_FS_BASEDIR="
7704 sharedir)
7705 "DP_LINK_TO_LIBJPEG=1"
7706 "DP_SOUND_API=ALSA"
7707 "CC=gcc"
7708 "-f" "makefile"
7709 "cl-release")
7710 (invoke "make" "-C" "source/darkplaces"
7711 (string-append "DP_FS_BASEDIR="
7712 sharedir)
7713 "DP_LINK_TO_LIBJPEG=1"
7714 "DP_SOUND_API=ALSA"
7715 "CC=gcc"
7716 "-f" "makefile"
7717 "sdl-release")
7718 (invoke "make" "-C" "source/darkplaces"
7719 (string-append "DP_FS_BASEDIR="
7720 sharedir)
7721 "DP_LINK_TO_LIBJPEG=1"
7722 "DP_SOUND_API=ALSA"
7723 "CC=gcc"
7724 "-f" "makefile"
7725 "sv-release"))))
7726 (add-before 'configure 'bootstrap
7727 (lambda _
7728 (chdir "source/d0_blind_id")
7729 (invoke "sh" "autogen.sh")))
7730 (add-after 'build 'install-desktop-entry
7731 (lambda* (#:key outputs #:allow-other-keys)
7732 ;; Add .desktop files for the 2 variants and the symlink
7733 (let* ((output (assoc-ref outputs "out"))
7734 (apps (string-append output "/share/applications")))
7735 (mkdir-p apps)
7736 (with-output-to-file
7737 (string-append apps "/xonotic-glx.desktop")
7738 (lambda _
7739 (format #t
7740 "[Desktop Entry]~@
7741 Name=xonotic-glx~@
7742 Comment=Xonotic glx~@
7743 Exec=~a/bin/xonotic-glx~@
7744 TryExec=~@*~a/bin/xonotic-glx~@
7745 Icon=xonotic~@
7746 Categories=Game~@
7747 Type=Application~%"
7748 output)))
7749 (with-output-to-file
7750 (string-append apps "/xonotic-sdl.desktop")
7751 (lambda _
7752 (format #t
7753 "[Desktop Entry]~@
7754 Name=xonotic-sdl~@
7755 Comment=Xonotic sdl~@
7756 Exec=~a/bin/xonotic-sdl~@
7757 TryExec=~@*~a/bin/xonotic-sdl~@
7758 Icon=xonotic~@
7759 Categories=Game~@
7760 Type=Application~%"
7761 output)))
7762 (with-output-to-file
7763 (string-append apps "/xonotic.desktop")
7764 (lambda _
7765 (format #t
7766 "[Desktop Entry]~@
7767 Name=xonotic~@
7768 Comment=Xonotic~@
7769 Exec=~a/bin/xonotic-glx~@
7770 TryExec=~@*~a/bin/xonotic~@
7771 Icon=xonotic~@
7772 Categories=Game~@
7773 Type=Application~%"
7774 output)))
7775 #t)))
7776 (add-after 'install-desktop-entry 'install-icons
7777 (lambda* (#:key outputs #:allow-other-keys)
7778 (let ((out (assoc-ref outputs "out")))
7779 (with-directory-excursion "../../misc/logos/icons_png/"
7780 (for-each
7781 (lambda (file)
7782 (let* ((size (string-filter char-numeric? file))
7783 (icons (string-append out "/share/icons/hicolor/"
7784 size "x" size "/apps")))
7785 (mkdir-p icons)
7786 (copy-file file (string-append icons "/xonotic.png"))))
7787 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7788 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7789 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7790 (add-after 'install-icons 'install-binaries
7791 (lambda* (#:key outputs #:allow-other-keys)
7792 (let ((out (assoc-ref outputs "out")))
7793 (define (install src dst)
7794 (let ((dst (string-append out dst)))
7795 (mkdir-p (dirname dst))
7796 (copy-file src dst)))
7797 (mkdir-p (string-append out "/bin"))
7798 (install "../darkplaces/darkplaces-dedicated"
7799 "/bin/xonotic-dedicated")
7800 (install "../darkplaces/darkplaces-glx"
7801 "/bin/xonotic-glx")
7802 (install "../darkplaces/darkplaces-sdl"
7803 "/bin/xonotic-sdl")
7804 ;; Provide a default xonotic executable, defaulting to SDL.
7805 (symlink (string-append out "/bin/xonotic-sdl")
7806 (string-append out "/bin/xonotic"))
7807 #t)))
7808 (add-after 'install-binaries 'install-data
7809 (lambda* (#:key outputs inputs #:allow-other-keys)
7810 (let* ((out (assoc-ref outputs "out"))
7811 (data (assoc-ref inputs "xonotic-data")))
7812 (symlink (string-append data "/share/xonotic")
7813 (string-append out "/share/xonotic"))
7814 #t)))
7815 (add-after 'install-binaries 'wrap-binaries
7816 (lambda* (#:key outputs inputs #:allow-other-keys)
7817 ;; Curl and libvorbis need to be wrapped so that we get
7818 ;; sound and networking.
7819 (let* ((out (assoc-ref outputs "out"))
7820 (bin (string-append out "/bin/xonotic"))
7821 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7822 (bin-glx (string-append out "/bin/xonotic-glx"))
7823 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7824 (curl (assoc-ref inputs "curl"))
7825 (vorbis (assoc-ref inputs "libvorbis")))
7826 (wrap-program bin
7827 `("LD_LIBRARY_PATH" ":" prefix
7828 (,(string-append curl "/lib:" vorbis "/lib"))))
7829 (wrap-program bin-sdl
7830 `("LD_LIBRARY_PATH" ":" prefix
7831 (,(string-append curl "/lib:" vorbis "/lib"))))
7832 (wrap-program bin-glx
7833 `("LD_LIBRARY_PATH" ":" prefix
7834 (,(string-append curl "/lib:" vorbis "/lib"))))
7835 (wrap-program bin-dedicated
7836 `("LD_LIBRARY_PATH" ":" prefix
7837 (,(string-append curl "/lib:" vorbis "/lib"))))
7838 #t))))))
7839 (inputs
7840 `(("xonotic-data" ,xonotic-data)
7841 ("alsa-lib" ,alsa-lib)
7842 ("curl" ,curl)
7843 ("libjpeg" ,libjpeg-turbo)
7844 ("libmodplug" ,libmodplug)
7845 ("libvorbis" ,libvorbis)
7846 ("libogg" ,libogg)
7847 ("libxpm" ,libxpm)
7848 ("libxxf86dga" ,libxxf86dga)
7849 ("libxxf86vm" ,libxxf86vm)
7850 ("libx11" ,libx11)
7851 ("libxext" ,libxext)
7852 ("libxau" ,libxau)
7853 ("libxdmcp" ,libxdmcp)
7854 ("mesa" ,mesa)
7855 ("glu" ,glu)
7856 ("freetype" ,freetype)
7857 ("sdl2" ,sdl2)
7858 ("libpng" ,libpng)
7859 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7860 (native-inputs
7861 `(("unzip" ,unzip)
7862 ("autoconf" ,autoconf)
7863 ("automake" ,automake)
7864 ("pkg-config" ,pkg-config)
7865 ("libtool" ,libtool)
7866 ("gmp" ,gmp)))
7867 (home-page "https://xonotic.org")
7868 (synopsis "Fast-paced first-person shooter game")
7869 (description
7870 "Xonotic is a free, fast-paced first-person shooter.
7871 The project is geared towards providing addictive arena shooter
7872 gameplay which is all spawned and driven by the community itself.
7873 Xonotic is a direct successor of the Nexuiz project with years of
7874 development between them, and it aims to become the best possible
7875 open-source FPS of its kind.")
7876 (license (list license:gpl2+
7877 license:bsd-3 ; /source/d0_blind_id folder and others
7878 (license:x11-style "" "See file rcon.pl.")))))
7879
7880 (define-public frotz
7881 (package
7882 (name "frotz")
7883 (version "2.44")
7884 (source (origin
7885 (method url-fetch)
7886 (uri (list (string-append
7887 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7888 "frotz/frotz-" version ".tar.gz")
7889 (string-append
7890 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7891 "frotz/frotz-" version ".tar.gz")))
7892 (sha256
7893 (base32
7894 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7895 (build-system gnu-build-system)
7896 (arguments
7897 `(#:tests? #f ; there are no tests
7898 #:phases
7899 (modify-phases %standard-phases
7900 (delete 'configure)
7901 (add-before 'build 'curses
7902 (lambda _
7903 (substitute* "Makefile"
7904 (("lcurses") "lncurses"))
7905 #t))
7906 (replace 'install
7907 (lambda* (#:key outputs #:allow-other-keys)
7908 (let* ((out (assoc-ref outputs "out"))
7909 (bin (string-append out "/bin"))
7910 (man (string-append out "/share/man/man6")))
7911 (install-file "frotz" bin)
7912 (mkdir-p man)
7913 (install-file "doc/frotz.6" man)
7914 #t))))))
7915 (inputs `(("libmodplug" ,libmodplug)
7916 ("libsamplerate" ,libsamplerate)
7917 ("libsndfile" ,libsndfile)
7918 ("libvorbis" ,libvorbis)
7919 ("ncurses" ,ncurses)))
7920 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7921 (description "Frotz is an interpreter for Infocom games and other Z-machine
7922 games in the text adventure/interactive fiction genre. This version of Frotz
7923 complies with standard 1.0 of Graham Nelson's specification. It plays all
7924 Z-code games V1-V8, including V6, with sound support through libao, and uses
7925 ncurses for text display.")
7926 (home-page "http://frotz.sourceforge.net")
7927 (license license:gpl2+)))
7928
7929 (define-public frotz-dumb-terminal
7930 (package
7931 (name "frotz-dumb-terminal")
7932 (version "2.44")
7933 (source (origin
7934 (method url-fetch)
7935 (uri (list (string-append
7936 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7937 "frotz/frotz-" version ".tar.gz")
7938 (string-append
7939 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7940 "frotz/frotz-" version ".tar.gz")))
7941 (sha256
7942 (base32
7943 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7944 (build-system gnu-build-system)
7945 (arguments
7946 `(#:tests? #f ; there are no tests
7947 #:phases
7948 (modify-phases %standard-phases
7949 (delete 'configure)
7950 (replace 'build
7951 (lambda _
7952 (invoke "make" "dumb")))
7953 (replace 'install
7954 (lambda* (#:key outputs #:allow-other-keys)
7955 (let* ((out (assoc-ref outputs "out"))
7956 (bin (string-append out "/bin"))
7957 (man (string-append out "/share/man/man6")))
7958 (install-file "dfrotz" bin)
7959 (mkdir-p man)
7960 (install-file "doc/dfrotz.6" man)
7961 #t))))))
7962 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7963 (description "Frotz is an interpreter for Infocom games and
7964 other Z-machine games in the text adventure/interactive fiction genre.
7965 dfrotz is the dumb interface version. You get no screen control; everything
7966 is just printed to the terminal line by line. The terminal handles all the
7967 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7968 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7969 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7970 to play games on webpages. It can also be made into a chat bot.")
7971 (home-page "http://frotz.sourceforge.net")
7972 (license license:gpl2+)))
7973
7974 (define-public frotz-sdl
7975 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7976 (package
7977 (name "frotz-sdl")
7978 (version "2.45pre")
7979 (source (origin
7980 (method git-fetch)
7981 (uri (git-reference
7982 (url "https://gitlab.com/DavidGriffith/frotz")
7983 (commit commit)))
7984 (sha256
7985 (base32
7986 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7987 (file-name (git-file-name name version))))
7988 (build-system gnu-build-system)
7989 (arguments
7990 `(#:tests? #f ; there are no tests
7991 #:phases
7992 (modify-phases %standard-phases
7993 (delete 'configure)
7994 (add-before 'build 'patch-makefile
7995 (lambda _
7996 (substitute* "Makefile"
7997 (("lcurses") "lncurses")
7998 (("^BUILD_DATE_TIME =.*$")
7999 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
8000 #t))
8001 (replace 'build
8002 (lambda _
8003 (invoke "make" "sdl")))
8004 (replace 'install
8005 (lambda* (#:key outputs #:allow-other-keys)
8006 (let* ((out (assoc-ref outputs "out"))
8007 (bin (string-append out "/bin"))
8008 (man (string-append out "/share/man/man6")))
8009 (install-file "sfrotz" bin)
8010 (mkdir-p man)
8011 (install-file "doc/sfrotz.6" man)
8012 #t))))))
8013 (native-inputs
8014 `(("pkg-config" ,pkg-config)
8015 ("which" ,which)
8016 ("perl" ,perl)))
8017 (inputs `(("sdl2" ,sdl2)
8018 ("sdl2-mixer" ,sdl2-mixer)
8019 ("libmodplug" ,libmodplug)
8020 ("libsamplerate" ,libsamplerate)
8021 ("libsndfile" ,libsndfile)
8022 ("libvorbis" ,libvorbis)
8023 ("ncurses" ,ncurses)
8024 ("freetype" ,freetype)
8025 ("libjpeg-turbo" ,libjpeg-turbo)))
8026 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
8027 (description "Frotz is an interpreter for Infocom games and other Z-machine
8028 games in the text adventure/interactive fiction genre. This version of Frotz
8029 using SDL fully supports all these versions of the Z-Machine including the
8030 graphical version 6. Graphics and sound are created through the use of the SDL
8031 libraries. AIFF sound effects and music in MOD and OGG formats are supported
8032 when packaged in Blorb container files or optionally from individual files.")
8033 (home-page "http://frotz.sourceforge.net")
8034 (license license:gpl2+))))
8035
8036 (define-public frozen-bubble
8037 ;; Last official release is very outdated (2010). Use latest commit (2017).
8038 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
8039 (revision "1"))
8040 (package
8041 (name "frozen-bubble")
8042 (version (git-version "2.2.1" revision commit))
8043 (source
8044 (origin
8045 (method git-fetch)
8046 (uri (git-reference
8047 (url "https://github.com/kthakore/frozen-bubble")
8048 (commit commit)))
8049 (file-name (git-file-name name version))
8050 (sha256
8051 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
8052 (build-system perl-build-system)
8053 (arguments
8054 `(#:phases
8055 (modify-phases %standard-phases
8056 ;; Build process needs to create files in the "server"
8057 ;; directory.
8058 (add-after 'unpack 'fix-permissions
8059 (lambda _
8060 (for-each make-file-writable
8061 (find-files "server" "." #:directories? #t))))
8062 ;; By default, build stops at warnings.
8063 (add-after 'unpack 'prevent-build-error
8064 (lambda _
8065 (substitute* "inc/My/Builder.pm"
8066 (("-Werror") ""))
8067 #t))
8068 (add-after 'install 'install-desktop-file-and-icons
8069 (lambda* (#:key outputs #:allow-other-keys)
8070 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
8071 (hicolor (string-append share "/icons/hicolor")))
8072 ;; Create desktop entry.
8073 (make-desktop-entry-file
8074 (string-append share "/applications/" ,name ".desktop")
8075 #:name "Frozen Bubble"
8076 #:comment "Frozen Bubble arcade game"
8077 #:exec ,name
8078 #:icon ,name
8079 #:categories '("Game" "ArcadeGame"))
8080 ;; Add icons.
8081 (with-directory-excursion "share/icons"
8082 (for-each
8083 (lambda (size)
8084 (let* ((dim (string-append size "x" size))
8085 (dir (string-append hicolor "/" dim "/apps")))
8086 (mkdir-p dir)
8087 (copy-file
8088 (string-append "frozen-bubble-icon-" dim ".png")
8089 (string-append dir "/frozen-bubble.png"))))
8090 '("16" "32" "48" "64"))))
8091 #t))
8092 (add-after 'install 'wrap-perl-libs
8093 (lambda* (#:key outputs #:allow-other-keys)
8094 (let ((out (assoc-ref outputs "out"))
8095 (perl5lib (getenv "PERL5LIB")))
8096 (for-each (lambda (prog)
8097 (wrap-program (string-append out "/" prog)
8098 `("PERL5LIB" ":" prefix
8099 (,(string-append perl5lib ":" out
8100 "/lib/perl5/site_perl")))))
8101 (find-files "bin" ".")))
8102 #t)))))
8103 (native-inputs
8104 `(("perl-alien-sdl" ,perl-alien-sdl)
8105 ("perl-capture-tiny" ,perl-capture-tiny)
8106 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
8107 ("perl-module-build" ,perl-module-build)
8108 ("pkg-config" ,pkg-config)))
8109 (inputs
8110 `(("glib" ,glib)
8111 ("perl-compress-bzip2" ,perl-compress-bzip2)
8112 ("perl-file-sharedir" ,perl-file-sharedir)
8113 ("perl-file-slurp" ,perl-file-slurp)
8114 ("perl-file-which" ,perl-file-which)
8115 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
8116 ("perl-sdl" ,perl-sdl)
8117 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
8118 (home-page "http://frozen-bubble.org/")
8119 (synopsis "Puzzle with bubbles")
8120 (description
8121 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
8122 you attempt to shoot bubbles into groups of the same color to cause them to
8123 pop.
8124
8125 Players compete as penguins and must use the arrow keys to aim a colored
8126 bubble at groups of bubbles. The objective is to clear all the bubbles off
8127 the screen before a bubble passes below a line at the bottom.
8128
8129 It features 100 single-player levels, a two-player mode, music and striking
8130 graphics. A level editor is also included to allow players to create and play
8131 their own levels.")
8132 (license license:gpl2))))
8133
8134 (define-public libmanette
8135 (package
8136 (name "libmanette")
8137 (version "0.2.6")
8138 (source (origin
8139 (method url-fetch)
8140 (uri (string-append "mirror://gnome/sources/libmanette/"
8141 (version-major+minor version) "/"
8142 "libmanette-" version ".tar.xz"))
8143 (sha256
8144 (base32
8145 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
8146 (build-system meson-build-system)
8147 (native-inputs
8148 `(("glib" ,glib "bin") ; for glib-compile-resources
8149 ("gobject-introspection" ,gobject-introspection)
8150 ("pkg-config" ,pkg-config)
8151 ("vala" ,vala)))
8152 (inputs
8153 `(("libevdev" ,libevdev)
8154 ("libgudev" ,libgudev)))
8155 (home-page "https://wiki.gnome.org/Apps/Games")
8156 (synopsis "Game controller library")
8157 (description "Libmanette is a small GObject library giving you simple
8158 access to game controllers. It supports the de-facto standard gamepads as
8159 defined by the W3C standard Gamepad specification or as implemented by the SDL
8160 GameController.")
8161 (license license:lgpl2.1+)))
8162
8163 (define-public quadrapassel
8164 (package
8165 (name "quadrapassel")
8166 (version "3.36.05")
8167 (source (origin
8168 (method url-fetch)
8169 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8170 (version-major+minor version) "/"
8171 "quadrapassel-" version ".tar.xz"))
8172 (sha256
8173 (base32
8174 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8175 (build-system meson-build-system)
8176 (arguments
8177 '(#:glib-or-gtk? #t
8178 #:phases
8179 (modify-phases %standard-phases
8180 (add-after 'unpack 'skip-gtk-update-icon-cache
8181 ;; Don't create 'icon-theme.cache'.
8182 (lambda _
8183 (substitute* "build-aux/meson_post_install.py"
8184 (("gtk-update-icon-cache") (which "true")))
8185 #t)))))
8186 (native-inputs
8187 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8188 ("gettext" ,gettext-minimal)
8189 ("glib" ,glib "bin") ;for glib-compile-resources
8190 ("itstool" ,itstool)
8191 ("libxml2" ,libxml2) ;for xmllint
8192 ("pkg-config" ,pkg-config)
8193 ("vala" ,vala)))
8194 (inputs
8195 `(("clutter" ,clutter)
8196 ("clutter-gtk" ,clutter-gtk)
8197 ("gsound" ,gsound)
8198 ("gtk+" ,gtk+)
8199 ("libcanberra" ,libcanberra)
8200 ("libmanette" ,libmanette)
8201 ("librsvg" ,librsvg)))
8202 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8203 (synopsis "GNOME version of Tetris")
8204 (description "Quadrapassel comes from the classic falling-block game,
8205 Tetris. The goal of the game is to create complete horizontal lines of
8206 blocks, which will disappear. The blocks come in seven different shapes made
8207 from four blocks each: one straight, two L-shaped, one square, and two
8208 S-shaped. The blocks fall from the top center of the screen in a random
8209 order. You rotate the blocks and move them across the screen to drop them in
8210 complete lines. You score by dropping blocks fast and completing lines. As
8211 your score gets higher, you level up and the blocks fall faster.")
8212 (license license:gpl2+)))
8213
8214 (define-public endless-sky
8215 (package
8216 (name "endless-sky")
8217 (version "0.9.12")
8218 (source
8219 (origin
8220 (method git-fetch)
8221 (uri (git-reference
8222 (url "https://github.com/endless-sky/endless-sky")
8223 (commit (string-append "v" version))))
8224 (file-name (git-file-name name version))
8225 (sha256
8226 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
8227 (build-system scons-build-system)
8228 (arguments
8229 `(#:scons ,scons-python2
8230 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8231 #:tests? #f ; no tests
8232 #:phases
8233 (modify-phases %standard-phases
8234 (add-after 'unpack 'patch-resource-locations
8235 (lambda* (#:key outputs #:allow-other-keys)
8236 (substitute* "source/Files.cpp"
8237 (("/usr/local/")
8238 (string-append (assoc-ref outputs "out") "/")))
8239 #t))
8240 (add-after 'unpack 'patch-scons
8241 (lambda _
8242 (substitute* "SConstruct"
8243 ;; Keep environmental variables
8244 (("Environment\\(\\)")
8245 "Environment(ENV = os.environ)")
8246 ;; Install into %out/bin
8247 (("games\"") "bin\""))
8248 #t)))))
8249 (inputs
8250 `(("glew" ,glew)
8251 ("libjpeg" ,libjpeg-turbo)
8252 ("libmad" ,libmad)
8253 ("libpng" ,libpng)
8254 ("openal" ,openal)
8255 ("sdl2" ,sdl2)))
8256 (home-page "https://endless-sky.github.io/")
8257 (synopsis "2D space trading and combat game")
8258 (description "Endless Sky is a 2D space trading and combat game. Explore
8259 other star systems. Earn money by trading, carrying passengers, or completing
8260 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8261 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8262 leave human space behind and hope to find friendly aliens whose culture is more
8263 civilized than your own.")
8264 (license (list license:gpl3+
8265 license:cc-by-sa3.0
8266 license:cc-by-sa4.0
8267 license:public-domain))))
8268
8269 (define-public stepmania
8270 (package
8271 (name "stepmania")
8272 (version "5.1.0-b2")
8273 (source
8274 (origin
8275 (method git-fetch)
8276 (uri (git-reference
8277 (url "https://github.com/stepmania/stepmania")
8278 (commit (string-append "v" version))))
8279 (file-name (git-file-name name version))
8280 (sha256
8281 (base32
8282 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8283 (modules '((guix build utils)))
8284 (snippet
8285 '(begin
8286 ;; Remove song files, which are licensed under a non-commercial
8287 ;; clause, and a course pointing to them.
8288 (for-each delete-file-recursively
8289 '("Songs/StepMania 5/Goin' Under"
8290 "Songs/StepMania 5/MechaTribe Assault"
8291 "Songs/StepMania 5/Springtime"))
8292 (for-each delete-file '("Courses/Default/Jupiter.crs"
8293 "Courses/Default/Jupiter.png"))
8294 ;; Unbundle libpng.
8295 (substitute* "extern/CMakeLists.txt"
8296 (("include\\(CMakeProject-png.cmake\\)") ""))
8297 (delete-file-recursively "extern/libpng")
8298 #t))))
8299 (build-system cmake-build-system)
8300 (arguments
8301 `(#:tests? #f ;FIXME: couldn't find how to run tests
8302 #:build-type "Release"
8303 #:out-of-source? #f ;for the 'install-desktop' phase
8304 #:configure-flags
8305 (list "-DWITH_SYSTEM_FFMPEG=1"
8306 ;; SSE instructions are available on Intel systems only.
8307 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8308 (%current-system)))
8309 '("x86_64" "i686"))
8310 '()
8311 '("-DWITH_SSE2=NO"))
8312 ;; Configuration cannot find GTK2 without the two following
8313 ;; flags.
8314 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8315 (assoc-ref %build-inputs "gtk+")
8316 "/lib/gtk-2.0/include")
8317 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8318 (assoc-ref %build-inputs "glib")
8319 "/lib/glib-2.0/include"))
8320 #:phases
8321 (modify-phases %standard-phases
8322 (add-after 'unpack 'ensure-application-files-can-be-found
8323 (lambda* (#:key outputs #:allow-other-keys)
8324 (let ((out (assoc-ref outputs "out")))
8325 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8326 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8327 (string-append "\"" out
8328 "/share/stepmania/GtkModule.so\"")))
8329 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8330 (("Root = sDirOfExecutable")
8331 (string-append "Root = \"" out "/share/stepmania/\""))
8332 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8333 (string-append "\"" out "/share/stepmania/" dir "\"")))
8334 (substitute* "src/RageFileManager.cpp"
8335 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8336 (string-append "\"" out "/share/stepmania/\""))))
8337 #t))
8338 (add-after 'unpack 'fix-install-subdir
8339 ;; Installation would be done in "%out/stepmania-X.Y", but we
8340 ;; prefer the more common layout "%out/share/stepmania".
8341 (lambda _
8342 (substitute* "src/CMakeLists.txt"
8343 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8344 #t))
8345 (add-after 'unpack 'unbundle-libpng
8346 (lambda* (#:key inputs #:allow-other-keys)
8347 (substitute* "src/CMakeLists.txt"
8348 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8349 (string-append (assoc-ref inputs "libpng") "/include")))
8350 #t))
8351 (add-after 'install 'install-executable
8352 (lambda* (#:key outputs #:allow-other-keys)
8353 (let* ((out (assoc-ref outputs "out"))
8354 (bin (string-append out "/bin"))
8355 (exe (string-append out "/share/stepmania/stepmania")))
8356 (mkdir-p bin)
8357 (symlink exe (string-append bin "/stepmania"))
8358 #t)))
8359 (add-after 'install-executable 'install-desktop
8360 (lambda* (#:key outputs #:allow-other-keys)
8361 (let* ((out (assoc-ref outputs "out"))
8362 (share (string-append out "/share"))
8363 (applications (string-append share "/applications"))
8364 (icons (string-append share "/icons")))
8365 (install-file "stepmania.desktop" applications)
8366 (mkdir-p icons)
8367 (copy-recursively "icons" icons)
8368 #t)))
8369 ;; Move documentation in a more usual place, i.e.,
8370 ;; "%out/share/doc/stepmania/".
8371 (add-after 'install-desktop 'install-doc
8372 (lambda* (#:key outputs #:allow-other-keys)
8373 (let* ((out (assoc-ref outputs "out"))
8374 (share (string-append out "/share")))
8375 (with-directory-excursion share
8376 (mkdir-p "doc")
8377 (symlink "../stepmania/Docs" "doc/stepmania"))
8378 #t))))))
8379 (native-inputs
8380 `(("pkg-config" ,pkg-config)
8381 ("yasm" ,yasm)))
8382 (inputs
8383 `(("alsa-lib" ,alsa-lib)
8384 ;; Per upstream, StepMania is only guaranteed to work with a very
8385 ;; specific FFmpeg version, which is included in the repository as
8386 ;; a Git submodule. This particular version requirement usually
8387 ;; changes every few years.
8388 ("ffmpeg" ,ffmpeg-for-stepmania)
8389 ("glib" ,glib)
8390 ("glew" ,glew)
8391 ("gtk+" ,gtk+-2)
8392 ("jsoncpp" ,jsoncpp)
8393 ("libpng" ,libpng)
8394 ("libjpeg" ,libjpeg-turbo)
8395 ("libmad" ,libmad)
8396 ("libogg" ,libogg)
8397 ("libva" ,libva)
8398 ("libvorbis" ,libvorbis)
8399 ("libxinerama" ,libxinerama)
8400 ("libxrandr" ,libxrandr)
8401 ("mesa" ,mesa)
8402 ("pcre" ,pcre)
8403 ("pulseaudio" ,pulseaudio)
8404 ("sdl" ,sdl2)
8405 ("udev" ,eudev)
8406 ("zlib" ,zlib)))
8407 (synopsis "Advanced rhythm game designed for both home and arcade use")
8408 (description "StepMania is a dance and rhythm game. It features 3D
8409 graphics, keyboard and dance pad support, and an editor for creating your own
8410 steps.
8411
8412 This package provides the core application, but no song is shipped. You need
8413 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8414 (home-page "https://www.stepmania.com")
8415 (license license:expat)))
8416
8417 (define-public oshu
8418 (package
8419 (name "oshu")
8420 (version "2.0.1")
8421 (source
8422 (origin
8423 (method git-fetch)
8424 (uri (git-reference
8425 (url "https://github.com/fmang/oshu")
8426 (commit version)))
8427 (file-name (git-file-name name version))
8428 (sha256
8429 (base32
8430 "1g598incc6zlls876slgwqblwiwiszkmqa4xpzw0z7mbjmmzsizz"))))
8431 (build-system cmake-build-system)
8432 (arguments
8433 `(#:phases
8434 (modify-phases %standard-phases
8435 (add-before 'check 'pre-check
8436 ;; `make test' doesn't actually build the test executable
8437 (lambda _ (invoke "make" "zerotokei"))))))
8438 (native-inputs
8439 `(("pkg-config" ,pkg-config)))
8440 (inputs
8441 `(("cairo" ,cairo)
8442 ("ffmpeg" ,ffmpeg)
8443 ("pango" ,pango)
8444 ("sdl2" ,sdl2)
8445 ("sdl2-image" ,sdl2-image)))
8446 (home-page "https://github.com/fmang/oshu/")
8447 (synopsis "Rhythm game in which you click on circles")
8448 (description "@i{oshu!} is a minimalist variant of the @i{osu!} rhythm game,
8449 which is played by pressing buttons and following along sliders as they appear
8450 on screen. Its aim is to be able to play any beatmap even on low-end hardware.
8451
8452 This package provides the core application, but no beatmaps. You need to
8453 download and unpack them separately.")
8454 (license license:gpl3+)))
8455
8456 (define-public btanks
8457 (package
8458 (name "btanks")
8459 (version "0.9.8083")
8460 (source
8461 (origin
8462 (method url-fetch)
8463 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8464 "btanks-" version ".tar.bz2"))
8465 (sha256
8466 (base32
8467 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8468 (build-system scons-build-system)
8469 (arguments
8470 `(#:tests? #f ; there are none
8471 #:scons ,scons-python2
8472 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8473 #:phases
8474 (modify-phases %standard-phases
8475 (add-after 'unpack 'replace-removed-scons-syntax
8476 (lambda _
8477 (substitute* "SConstruct"
8478 (("Options") "Variables")
8479 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8480 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8481 #t))
8482 (add-after 'set-paths 'set-sdl-paths
8483 (lambda* (#:key inputs #:allow-other-keys)
8484 (setenv "CPATH"
8485 (string-append (assoc-ref inputs "sdl")
8486 "/include/SDL:"
8487 (or (getenv "CPATH") "")))
8488 #t))
8489 (add-after 'unpack 'fix-compilation-errors
8490 (lambda _
8491 (substitute* "mrt/base_file.h"
8492 (("#include <string>" m)
8493 (string-append m "\n#include <sys/types.h>")))
8494 (substitute* '("engine/sl08/sl08.h"
8495 "engine/sl08/sl08.py")
8496 (("signal = NULL") "signal = 0")
8497 (("object\\(NULL\\)") "object(0)")
8498 (("func\\(NULL\\)") "func(0)")
8499 ((" connect\\(signal_ref\\)")
8500 " this->connect(signal_ref)"))
8501 (substitute* "math/range_list.h"
8502 ((" lower_bound\\(value\\)")
8503 " this->lower_bound(value)")
8504 ((" erase\\(i\\)")
8505 " this->erase(i)"))
8506 (substitute* "clunk/source.cpp"
8507 (("using namespace clunk" m)
8508 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8509 #t))
8510 (add-after 'unpack 'find-lua
8511 (lambda _
8512 (substitute* "engine/SConscript"
8513 (("lua5.1") "lua-5.1")
8514 (("bt_libs.append\\(lua\\)")
8515 "bt_libs.append(\"lua\")"))
8516 #t)))))
8517 (inputs
8518 `(("expat" ,expat)
8519 ("glu" ,glu)
8520 ("libsmpeg" ,libsmpeg-with-sdl1)
8521 ("libvorbis" ,libvorbis)
8522 ("lua51" ,lua-5.1)
8523 ("sdl" ,(sdl-union (list sdl
8524 sdl-mixer
8525 sdl-image
8526 sdl-ttf)))
8527 ("zlib" ,zlib)))
8528 (native-inputs
8529 `(("pkg-config" ,pkg-config)
8530 ("zip" ,zip)))
8531 (home-page "http://btanks.sourceforge.net")
8532 (synopsis "Multiplayer tank battle game")
8533 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8534 game, where you can choose one of three vehicles and eliminate your enemy
8535 using the whole arsenal of weapons. It has original cartoon-like graphics and
8536 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8537 and cooperative.")
8538 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8539 ;; released under GPLv2 or later. It comes with extra exceptions for the
8540 ;; developers.
8541 (license (list license:gpl2+ license:lgpl2.1+))))
8542
8543 (define-public slimevolley
8544 (package
8545 (name "slimevolley")
8546 (version "2.4.2")
8547 (source
8548 (origin
8549 (method url-fetch)
8550 (uri (string-append "https://download.tuxfamily.org/slime/"
8551 "slimevolley_" version ".tar.gz"))
8552 (sha256
8553 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8554 (build-system cmake-build-system)
8555 (arguments
8556 `(#:tests? #f ;no test
8557 ;; Work around build failure: "error adding symbols: DSO
8558 ;; missing from command line".
8559 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8560 (native-inputs
8561 `(("gettext" ,gettext-minimal)))
8562 (inputs
8563 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8564 (home-page "https://slime.tuxfamily.org/")
8565 (synopsis "Unrealistic 2D volleyball simulation")
8566 (description
8567 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8568 the spirit of some Java games of the same name.
8569
8570 Two teams, 1-3 players each, try to be the first to get 10 points.
8571 This happens when the one ball touches the floor on the other side of
8572 the net. There can be 1 to 8 balls in game. Once one ball touches
8573 the ground, the set ends and all balls are served again.")
8574 (license license:gpl3+)))
8575
8576 (define-public slingshot
8577 (package
8578 (name "slingshot")
8579 (version "0.9")
8580 (source
8581 (origin
8582 (method git-fetch)
8583 (uri (git-reference
8584 (url "https://github.com/ryanakca/slingshot")
8585 (commit version)))
8586 (file-name (git-file-name name version))
8587 (sha256
8588 (base32
8589 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8590 (build-system python-build-system)
8591 (arguments
8592 `(#:python ,python-2))
8593 (inputs
8594 `(("python-pygame" ,python2-pygame)))
8595 (home-page "https://github.com/ryanakca/slingshot")
8596 (synopsis "Simple 2D shooting strategy game set in space")
8597 (description "Slingshot is a two-dimensional strategy game where two
8598 players attempt to shoot one another through a section of space populated by
8599 planets. The main feature of the game is that the shots, once fired, are
8600 affected by the gravity of the planets.")
8601 (license license:gpl2+)))
8602
8603 (define-public 4dtris
8604 (package
8605 (name "4dtris")
8606 (version "0.4.3")
8607 (source
8608 (origin
8609 (method url-fetch)
8610 (uri (string-append "https://launchpad.net/4dtris/"
8611 (version-major+minor version)
8612 "/" version "/+download/4dtris_"
8613 version ".orig.tar.gz"))
8614 (sha256
8615 (base32
8616 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8617 (build-system gnu-build-system)
8618 (arguments
8619 `(#:phases
8620 (modify-phases %standard-phases
8621 (add-after 'unpack 'fix-install-directories
8622 (lambda* (#:key outputs #:allow-other-keys)
8623 (let ((out (assoc-ref outputs "out")))
8624 (substitute* "Makefile.in"
8625 (("bindir = /usr/games")
8626 (string-append "bindir = " out "/bin"))
8627 (("/usr/share/applications")
8628 (string-append out "/share/applications"))
8629 (("/usr/share/games/4dtris")
8630 (string-append out "/share/4dtris"))))
8631 #t))
8632 (add-after 'set-paths 'set-sdl-paths
8633 (lambda* (#:key inputs #:allow-other-keys)
8634 (setenv "CPATH"
8635 (string-append (assoc-ref inputs "sdl")
8636 "/include/SDL:"
8637 (or (getenv "CPATH") "")))
8638 #t)))))
8639 (inputs
8640 `(("fontconfig" ,fontconfig)
8641 ("freeglut" ,freeglut)
8642 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8643 (home-page "https://launchpad.net/4dtris/")
8644 (synopsis "4D Tetris")
8645 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8646 game field is extended to 4D space, which has to filled up by the gamer with
8647 4D hyper cubes.")
8648 (license license:gpl3)))
8649
8650 (define-public arx-libertatis
8651 (package
8652 (name "arx-libertatis")
8653 (version "1.1.2")
8654 (source
8655 (origin
8656 (method url-fetch)
8657 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8658 version ".tar.xz"))
8659 (sha256
8660 (base32
8661 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8662 (build-system cmake-build-system)
8663 (outputs '("out" "installer"))
8664 (arguments
8665 '(#:tests? #f ; No tests.
8666 #:phases
8667 (modify-phases %standard-phases
8668 (add-after 'unpack 'fix-install-helper-paths
8669 (lambda* (#:key inputs #:allow-other-keys)
8670 (let ((p7zip (assoc-ref inputs "p7zip"))
8671 (innoextract (assoc-ref inputs "innoextract"))
8672 (wget (assoc-ref inputs "wget"))
8673 (zenity (assoc-ref inputs "zenity")))
8674 (substitute* "scripts/arx-install-data"
8675 (("have innoextract")
8676 (string-append "have " innoextract "/bin/innoextract"))
8677 (("then innoextract")
8678 (string-append "then " innoextract "/bin/innoextract"))
8679 (("else innoextract")
8680 (string-append "else " innoextract "/bin/innoextract"))
8681 (("for _extract_zip_sz in 7za 7z")
8682 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8683 (("else if have 7z")
8684 (string-append "else if have " p7zip "/bin/7za"))
8685 (("7z x -tiso")
8686 (string-append p7zip "/bin/7z x -tiso"))
8687 (("if have wget")
8688 (string-append "if have " wget "/bin/wget"))
8689 (("wget -O")
8690 (string-append wget "/bin/wget -O"))
8691 (("for backend in \\$preferred zenity")
8692 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8693 (("zenity +--title")
8694 (string-append zenity "/bin/zenity --title"))
8695 (("^zenity\\)")
8696 (string-append zenity "/bin/zenity)"))))
8697 #t))
8698 (add-after 'install 'move-installer
8699 (lambda* (#:key outputs #:allow-other-keys)
8700 (let ((out (assoc-ref outputs "out"))
8701 (installer (assoc-ref outputs "installer")))
8702 (mkdir-p (string-append installer "/bin"))
8703 (rename-file (string-append out "/bin/arx-install-data")
8704 (string-append installer "/bin/arx-install-data"))))))))
8705 (inputs
8706 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8707 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8708 ("glew" ,glew)
8709 ("openal" ,openal)
8710 ("zlib" ,zlib)
8711 ("boost" ,boost)
8712 ("glm" ,glm)
8713 ("freetype" ,freetype)
8714 ;; The following are only needed by the arx-install-data script.
8715 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8716 ("zenity" ,zenity) ; GUI for install-helper.
8717 ("wget" ,wget) ; Used by the install-helper to download the patch.
8718 ;; The install-helper needs it to extract the patch.
8719 ("innoextract" ,innoextract)))
8720 (home-page "https://arx-libertatis.org/")
8721 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8722 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8723 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8724 This port however does not include the game data, so you need to obtain a copy
8725 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8726 features crafting, melee and ranged combat, as well as a unique casting system
8727 where the player draws runes in real time to effect the desired spell.")
8728 (license license:gpl3+)))
8729
8730 (define-public edgar
8731 (package
8732 (name "edgar")
8733 (version "1.33")
8734 (source
8735 (origin
8736 (method url-fetch)
8737 (uri
8738 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8739 version "/edgar-" version "-1.tar.gz"))
8740 (sha256
8741 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8742 (build-system gnu-build-system)
8743 (arguments '(#:tests? #f ; there are no tests
8744 #:make-flags
8745 (list "CC=gcc"
8746 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8747 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8748 #:phases
8749 (modify-phases %standard-phases
8750 (delete 'configure)
8751 (add-before 'build 'fix-env
8752 (lambda* (#:key inputs #:allow-other-keys)
8753 (setenv "CPATH"
8754 (string-append (assoc-ref inputs "sdl2-union")
8755 "/include/SDL2:"
8756 (or (getenv "CPATH") "")))
8757 #t)))))
8758 (inputs
8759 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8760 ("zlib" ,zlib)))
8761 (native-inputs
8762 `(("pkg-config" ,pkg-config)
8763 ("autoconf" ,autoconf)
8764 ("automake" ,automake)
8765 ("gnu-gettext" ,gettext-minimal)
8766 ("libtool" ,libtool)
8767 ("which" ,which)))
8768 (synopsis "2d action platformer game")
8769 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8770 When Edgar's father fails to return home after venturing out one dark and stormy night,
8771 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8772 a fortress beyond the forbidden swamp.")
8773 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8774 (license license:gpl2+)))
8775
8776 (define-public openclonk
8777 (package
8778 (name "openclonk")
8779 (version "8.1")
8780 (source (origin
8781 (method url-fetch)
8782 (uri (string-append
8783 "https://www.openclonk.org/builds/release/" version "/"
8784 "openclonk-" version "-src.tar.bz2"))
8785 (sha256
8786 (base32
8787 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8788 (build-system cmake-build-system)
8789 (arguments
8790 `(#:configure-flags '("-DAudio_TK=OpenAL")
8791 #:test-target "tests"
8792 #:phases
8793 (modify-phases %standard-phases
8794 (add-after 'unpack 'prepare-gmock
8795 (lambda* (#:key inputs #:allow-other-keys)
8796 (mkdir "gmock")
8797 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8798 (substitute* "tests/CMakeLists.txt"
8799 (("/usr/src/gmock")
8800 (string-append (getcwd) "/gmock/googlemock"))
8801 (("/usr/src/gtest")
8802 (string-append (getcwd) "/gmock/googletest"))
8803 (("PATH_SUFFIXES \"src\" \"gtest\"")
8804 "PATH_SUFFIXES \"src\""))
8805 #t))
8806 (add-after 'unpack 'adjust-backward-cpp-includes
8807 (lambda _
8808 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8809 ;; that includes external libraries such as libdl from glibc.
8810 ;; By default, CMake interface includes are treated as "system
8811 ;; headers", and GCC behaves poorly when glibc is passed as a
8812 ;; system header (causing #include_next failures).
8813
8814 ;; Here we prevent targets that consume the Backward::Backward
8815 ;; interface from treating it as "system includes".
8816 (substitute* "CMakeLists.txt"
8817 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8818 (string-append "set_property(TARGET " target " PROPERTY "
8819 "NO_SYSTEM_FROM_IMPORTED true)\n"
8820 all)))
8821 #t))
8822 (add-after 'unpack 'add-libiberty
8823 ;; Build fails upon linking executables without this.
8824 (lambda _
8825 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8826 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8827 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8828 #t))
8829 (add-after 'add-libiberty 'lax-freealut-requirement
8830 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8831 ;; it as 1.0.1. Force minimal version.
8832 (lambda _
8833 (substitute* "cmake/FindAudio.cmake"
8834 (("freealut>=1.1.0") "freealut>=1.0.1"))
8835 #t))
8836 (add-after 'lax-freealut-requirement 'fix-directories
8837 ;; Prefer "$out/share/openclonk" over
8838 ;; "$out/share/games/openclonk". Also install "openclonk"
8839 ;; binary in "bin/", not "games/".
8840 (lambda _
8841 (substitute* "CMakeLists.txt"
8842 (("share/games/openclonk") "share/openclonk")
8843 (("TARGETS openclonk DESTINATION games")
8844 "TARGETS openclonk DESTINATION bin"))
8845 #t)))))
8846 (native-inputs
8847 `(("googlemock" ,(package-source googletest))
8848 ("googletest" ,googletest)
8849 ("pkg-config" ,pkg-config)))
8850 (inputs
8851 `(("freealut" ,freealut)
8852 ("freetype" ,freetype)
8853 ("glew" ,glew)
8854 ("libiberty" ,libiberty)
8855 ("libjpeg" ,libjpeg-turbo)
8856 ("libogg" ,libogg)
8857 ("libpng" ,libpng)
8858 ("libvorbis" ,libvorbis)
8859 ("libxrandr" ,libxrandr)
8860 ("mesa" ,mesa)
8861 ("miniupnpc" ,miniupnpc)
8862 ("openal" ,openal)
8863 ("qtbase" ,qtbase)
8864 ("readline" ,readline)
8865 ("sdl" ,sdl2)
8866 ("tinyxml" ,tinyxml)
8867 ("zlib" ,zlib)))
8868 (home-page "https://www.openclonk.org/")
8869 (synopsis
8870 "Multiplayer action game where you control small and nimble humanoids")
8871 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8872 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8873 antfarm-style landscape, the player controls a crew of Clonks, small but
8874 robust humanoid beings. The game encourages free play but the normal goal is
8875 to either exploit valuable resources from the earth by building a mine or
8876 fight each other on an arena-like map.")
8877 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8878 (license (list license:isc license:cc-by3.0))))
8879
8880 (define-public flare-engine
8881 (package
8882 (name "flare-engine")
8883 (version "1.11")
8884 (source (origin
8885 (method git-fetch)
8886 (uri (git-reference
8887 (url "https://github.com/flareteam/flare-engine")
8888 (commit (string-append "v" version))))
8889 (file-name (git-file-name name version))
8890 (sha256
8891 (base32
8892 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8893 (build-system cmake-build-system)
8894 (arguments
8895 `(#:tests? #f ;no test
8896 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8897 (inputs
8898 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8899 ("python" ,python-wrapper)
8900 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8901 (home-page "http://www.flarerpg.org/")
8902 (synopsis "Action Roleplaying Engine")
8903 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8904 game engine built to handle a very specific kind of game: single-player 2D
8905 action RPGs.")
8906 (license license:gpl3+)))
8907
8908 (define-public flare-game
8909 (package
8910 (name "flare-game")
8911 (version "1.11")
8912 (source (origin
8913 (method git-fetch)
8914 (uri (git-reference
8915 (url "https://github.com/flareteam/flare-game")
8916 (commit (string-append "v" version))))
8917 (file-name (git-file-name name version))
8918 (sha256
8919 (base32
8920 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8921 (build-system cmake-build-system)
8922 (arguments
8923 `(#:tests? #f ;no test
8924 #:configure-flags '("-DDATADIR=share/flare")
8925 #:phases
8926 (modify-phases %standard-phases
8927 ;; Flare expects the mods to be located in the same folder.
8928 ;; Yet, "default" mod is in the engine, whereas the others
8929 ;; are in the current package. Merge everything here with
8930 ;; a symlink.
8931 (add-after 'install 'add-default-mod
8932 (lambda* (#:key inputs outputs #:allow-other-keys)
8933 (let* ((out (assoc-ref outputs "out"))
8934 (mods (string-append out "/share/flare/mods")))
8935 (with-directory-excursion mods
8936 (symlink (string-append (assoc-ref inputs "flare-engine")
8937 "/share/flare/mods/default")
8938 "default")))
8939 #t))
8940 (add-after 'install 'install-executable
8941 ;; The package only provides assets for the game, the
8942 ;; executable coming from "flare-engine". Since more than
8943 ;; one game may use the engine, we create a new executable,
8944 ;; "flare-game", which launches the engine with appropriate
8945 ;; parameters.
8946 (lambda* (#:key inputs outputs #:allow-other-keys)
8947 (let* ((out (assoc-ref outputs "out"))
8948 (bash (string-append (assoc-ref inputs "bash")
8949 "/bin/bash"))
8950 (flare (string-append (assoc-ref inputs "flare-engine")
8951 "/bin/flare"))
8952 (script (string-append out "/bin/flare-game")))
8953 (mkdir-p (dirname script))
8954 (call-with-output-file script
8955 (lambda (port)
8956 (format port
8957 "#!~a
8958 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8959 bash
8960 flare
8961 out)))
8962 (chmod script #o755))
8963 #t)))))
8964 (inputs
8965 `(("flare-engine" ,flare-engine)))
8966 (home-page "http://www.flarerpg.org/")
8967 (synopsis "Fantasy action RPG using the FLARE engine")
8968 (description "Flare is a single-player 2D action RPG with
8969 fast-paced action and a dark fantasy style.")
8970 (license license:cc-by-sa3.0)))
8971
8972 (define-public meritous
8973 (package
8974 (name "meritous")
8975 (version "1.5")
8976 (source (origin
8977 (method git-fetch)
8978 (uri (git-reference
8979 (url "https://gitlab.com/meritous/meritous.git")
8980 (commit (string-append "v" version))))
8981 (file-name (git-file-name name version))
8982 (sha256
8983 (base32
8984 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8985 (build-system gnu-build-system)
8986 (arguments
8987 `(#:tests? #f ;no test
8988 #:make-flags
8989 (list "CC=gcc"
8990 (string-append "prefix=" (assoc-ref %outputs "out")))
8991 #:phases
8992 (modify-phases %standard-phases
8993 (delete 'configure)
8994 (add-after 'unpack 'fix-sdl-path
8995 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
8996 ;; directory, not SDL-union provided as an input to the package.
8997 ;; We force the latter with "--prefix=" option.
8998 (lambda* (#:key inputs #:allow-other-keys)
8999 (substitute* "Makefile"
9000 (("sdl-config" command)
9001 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9002 #t))
9003 (add-after 'unpack 'fix-crash
9004 ;; XXX: Songs are not present in the repository, due to licensing
9005 ;; issues. Yet, the game tries to load them, and, since it cannot
9006 ;; find them, crashes. Users cannot add them back, the store being
9007 ;; read-only, so we turn off background music altogether.
9008 (lambda _
9009 (substitute* "src/audio.c"
9010 (("PlayBackgroundMusic\\(new_track\\);" all)
9011 (string-append "// " all)))
9012 #t)))))
9013 (native-inputs
9014 `(("intltool" ,intltool)))
9015 (inputs
9016 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
9017 ("zlib" ,zlib)))
9018 (home-page "https://gitlab.com/meritous/meritous")
9019 (synopsis "Action-adventure dungeon crawl game")
9020 (description "Far below the surface of the planet is a place of limitless
9021 power. Those that seek to control such a utopia will soon bring an end to
9022 themselves. Seeking an end to the troubles that plague him, PSI user Merit
9023 journeys into the hallowed Orcus Dome in search of answers.
9024
9025 Meritous is a action-adventure game with simple controls but a challenge to
9026 find a balance of power versus recovery time during real-time battles. Set in
9027 a procedurally generated world, the player can explore thousands of rooms in
9028 search of powerful artifacts, tools to help them, and to eventually free the
9029 Orcus Dome from evil.")
9030 (license license:gpl3+)))
9031
9032 (define-public marble-marcher
9033 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
9034 (revision "1"))
9035 (package
9036 (name "marble-marcher")
9037 (version (git-version "0" revision commit))
9038 (source (origin
9039 (method git-fetch)
9040 (uri (git-reference
9041 (url "https://github.com/HackerPoet/MarbleMarcher")
9042 (commit commit)))
9043 (file-name (git-file-name name version))
9044 (sha256
9045 (base32
9046 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
9047 (build-system cmake-build-system)
9048 (arguments
9049 `(#:tests? #f ; there are none
9050 #:phases
9051 (modify-phases %standard-phases
9052 (add-after 'unpack 'embed-asset-directory
9053 (lambda* (#:key outputs #:allow-other-keys)
9054 (let ((assets (string-append (assoc-ref outputs "out")
9055 "/share/marble-marcher/assets/")))
9056 ;; Some of the files we're patching are
9057 ;; ISO-8859-1-encoded, so choose it as the default
9058 ;; encoding so the byte encoding is preserved.
9059 (with-fluids ((%default-port-encoding #f))
9060 (substitute* "src/Resource.rc"
9061 (("../assets/icon.ico")
9062 (string-append assets "icon.ico")))
9063 (substitute* "src/Res.h"
9064 (("assets/") assets))))
9065 #t))
9066 (replace 'install
9067 (lambda* (#:key outputs #:allow-other-keys)
9068 (let* ((out (assoc-ref outputs "out"))
9069 (assets (string-append out "/share/marble-marcher/assets"))
9070 (bin (string-append out "/bin/")))
9071 (mkdir-p bin)
9072 (mkdir-p assets)
9073 (copy-recursively "../source/assets" assets)
9074 (install-file "MarbleMarcher" bin))
9075 #t)))))
9076 (inputs
9077 `(("eigen" ,eigen)
9078 ("mesa" ,mesa)
9079 ("sfml" ,sfml)))
9080 (native-inputs
9081 `(("pkg-config" ,pkg-config)))
9082 (home-page "https://codeparade.itch.io/marblemarcher")
9083 (synopsis "Guide a marble across fractal landscapes")
9084 (description "Marble Marcher is a video game that uses a fractal physics
9085 engine and fully procedural rendering to produce beautiful and unique
9086 gameplay. The game is played on the surface of evolving fractals. The goal
9087 of the game is to get your marble to the flag as quickly as possible. But be
9088 careful not to fall off the level or get crushed by the fractal! There are 24
9089 levels to unlock.")
9090 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
9091 (license (list license:gpl2+
9092 license:silofl1.1
9093 license:cc-by-sa3.0)))))
9094
9095 ;; This must be updated together with flightgear.
9096 (define simgear
9097 (package
9098 (name "simgear")
9099 (version "2018.3.5")
9100 (source
9101 (origin
9102 (method url-fetch)
9103 (uri (string-append "mirror://sourceforge/flightgear/release-"
9104 (version-major+minor version) "/"
9105 "simgear-" version ".tar.bz2"))
9106 (sha256
9107 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
9108 (build-system cmake-build-system)
9109 (arguments
9110 `(#:phases
9111 (modify-phases %standard-phases
9112 (replace 'check
9113 (lambda _
9114 ;; Skip tests that require internet access.
9115 (invoke "ctest" "-E" "(http|dns)"))))))
9116 (inputs
9117 `(("boost" ,boost-for-mysql) ; fails with 1.69
9118 ("curl" ,curl)
9119 ("expat" ,expat)
9120 ("mesa" ,mesa)
9121 ("openal" ,openal)
9122 ("openscenegraph" ,openscenegraph-3.4)
9123 ("zlib" ,zlib)))
9124 (home-page "https://home.flightgear.org/")
9125 (synopsis "Libraries for 3D simulations and games")
9126 (description "SimGear is a set of libraries designed to be used as
9127 building blocks for quickly assembling 3D simulations, games, and
9128 visualization applications. SimGear is developed by the FlightGear project
9129 and also provides the base for the FlightGear Flight Simulator.")
9130 (license license:lgpl2.0+)))
9131
9132 (define-public flightgear
9133 (package
9134 (name "flightgear")
9135 (version (package-version simgear))
9136 (source
9137 (origin
9138 (method url-fetch)
9139 (uri (string-append "mirror://sourceforge/flightgear/release-"
9140 (version-major+minor version) "/"
9141 "flightgear-" version ".tar.bz2"))
9142 (sha256
9143 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
9144 (modules '((guix build utils)))
9145 (snippet
9146 '(begin
9147 ;; There are some bundled libraries.
9148 (for-each delete-file-recursively
9149 '("3rdparty/sqlite3/"))
9150 #t))))
9151 (build-system cmake-build-system)
9152 (arguments
9153 `(#:configure-flags
9154 (list "-DSYSTEM_SQLITE=ON"
9155 (string-append "-DFG_DATA_DIR="
9156 (assoc-ref %outputs "out")
9157 "/share/flightgear"))
9158 ;; TODO: test cannot be run because the "run_test_suite" executable
9159 ;; does not seem to be built.
9160 #:tests? #f
9161 #:phases
9162 (modify-phases %standard-phases
9163 (add-after 'install 'wrap-executable
9164 (lambda* (#:key inputs outputs #:allow-other-keys)
9165 (let ((out (assoc-ref outputs "out")))
9166 (wrap-program (string-append out "/bin/fgfs")
9167 `("QT_PLUGIN_PATH" ":" prefix
9168 ,(map (lambda (label)
9169 (string-append (assoc-ref inputs label)
9170 "/lib/qt5/plugins"))
9171 '("qtbase" "qtdeclarative" "qtsvg")))
9172 `("QML2_IMPORT_PATH" ":" prefix
9173 ,(map (lambda (label)
9174 (string-append (assoc-ref inputs label)
9175 "/lib/qt5/qml"))
9176 '("qtdeclarative" "qtsvg"))))
9177 #t)))
9178 (add-after 'install 'install-data
9179 (lambda* (#:key inputs outputs #:allow-other-keys)
9180 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
9181 (mkdir-p share)
9182 (with-directory-excursion share
9183 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
9184 "--strip-components=1")))
9185 #t)))))
9186 (inputs
9187 `(("boost" ,boost-for-mysql) ; same as simgear
9188 ("dbus" ,dbus)
9189 ("eudev" ,eudev)
9190 ("freeglut" ,freeglut)
9191 ("freetype" ,freetype)
9192 ("glew" ,glew)
9193 ("libpng" ,libpng)
9194 ("openal" ,openal)
9195 ("openscenegraph" ,openscenegraph-3.4)
9196 ("plib" ,plib)
9197 ("qtbase" ,qtbase)
9198 ("qtdeclarative" ,qtdeclarative)
9199 ("qtsvg" ,qtsvg)
9200 ("simgear" ,simgear)
9201 ("speexdsp" ,speexdsp)
9202 ("sqlite" ,sqlite)
9203 ("zlib" ,zlib)))
9204 (native-inputs
9205 `(("cppunit" ,cppunit)
9206 ("pkg-config" ,pkg-config)
9207 ("qttools" ,qttools)
9208 ("flightgear-data"
9209 ,(origin
9210 (method url-fetch)
9211 (uri (string-append "mirror://sourceforge/flightgear/release-"
9212 (version-major+minor version) "/"
9213 "FlightGear-" version "-data.tar.bz2"))
9214 (sha256
9215 (base32
9216 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9217 (home-page "https://home.flightgear.org/")
9218 (synopsis "Flight simulator")
9219 (description "The goal of the FlightGear project is to create a
9220 sophisticated flight simulator framework for use in research or academic
9221 environments, pilot training, as an industry engineering tool, for DIY-ers to
9222 pursue their favorite interesting flight simulation idea, and last but
9223 certainly not least as a fun, realistic, and challenging desktop flight
9224 simulator.")
9225 (license license:gpl2+)))
9226
9227 (define-public jumpnbump
9228 (package
9229 (name "jumpnbump")
9230 (version "1.61")
9231 (source (origin
9232 (method git-fetch)
9233 (uri (git-reference
9234 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9235 (commit version)))
9236 (file-name (git-file-name name version))
9237 (sha256
9238 (base32
9239 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9240 (build-system gnu-build-system)
9241 (arguments
9242 `(#:make-flags
9243 (list "CC=gcc"
9244 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9245 #:tests? #f ;no test
9246 #:phases
9247 (modify-phases %standard-phases
9248 (delete 'configure) ;no configure script
9249 (add-after 'unpack 'fix-sdl-path
9250 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9251 ;; directory, not SDL-union provided as an input to the package.
9252 ;; We force the latter with "--prefix=" option.
9253 (lambda* (#:key inputs #:allow-other-keys)
9254 (substitute* "Makefile"
9255 (("sdl2-config" command)
9256 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9257 #t)))))
9258 (inputs
9259 `(("bzip2" ,bzip2)
9260 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9261 ("zlib" ,zlib)))
9262 (native-inputs
9263 `(("gettext" ,gettext-minimal))) ;for msgfmt
9264 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9265 (synopsis "Multiplayer platform game with bunnies")
9266 (description "You, as a bunny, have to jump on your opponents to make them
9267 explode. It is a true multiplayer game; you cannot play this alone. You can
9268 play with up to four players simultaneously. It has network support.")
9269 (license license:gpl2+)))
9270
9271 (define-public hedgewars
9272 (package
9273 (name "hedgewars")
9274 (version "1.0.0")
9275 (source (origin
9276 (method url-fetch)
9277 (uri (string-append "https://www.hedgewars.org/download/releases/"
9278 "hedgewars-src-" version ".tar.bz2"))
9279 (sha256
9280 (base32
9281 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9282 (build-system cmake-build-system)
9283 (arguments
9284 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9285 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9286 ;; a Pascal to C translator and Clang instead.
9287 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9288 "-Dhaskell_flags=-dynamic;-fPIC")
9289 #:phases
9290 (modify-phases %standard-phases
9291 (add-before 'configure 'fix-sources
9292 (lambda _
9293 ;; Fix a missing 'include'.
9294 (substitute* "QTfrontend/ui/page/pagegamestats.cpp"
9295 (("#include <QSizePolicy>")
9296 "#include <QSizePolicy>\n#include <QPainterPath>"))))
9297 (replace 'check
9298 (lambda _ (invoke "ctest")))
9299 (add-after 'install 'install-icon
9300 (lambda _
9301 ;; Install icon for the desktop file.
9302 (let* ((out (assoc-ref %outputs "out"))
9303 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9304 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9305 (install-file "misc/hedgewars.png" icons)))
9306 #t)))))
9307 (inputs
9308 `(("ffmpeg" ,ffmpeg)
9309 ("freeglut" ,freeglut)
9310 ("ghc-entropy" ,ghc-entropy)
9311 ("ghc-hslogger" ,ghc-hslogger)
9312 ("ghc-network" ,ghc-network)
9313 ("ghc-random" ,ghc-random)
9314 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9315 ("ghc-sandi" ,ghc-sandi)
9316 ("ghc-sha" ,ghc-sha)
9317 ("ghc-utf8-string" ,ghc-utf8-string)
9318 ("ghc-vector" ,ghc-vector)
9319 ("ghc-zlib" ,ghc-zlib)
9320 ("glew" ,glew)
9321 ("libpng" ,libpng)
9322 ("lua" ,lua-5.1)
9323 ("physfs" ,physfs)
9324 ("qtbase" ,qtbase)
9325 ("sdl" ,(sdl-union
9326 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9327 (native-inputs
9328 `(("clang" ,clang)
9329 ("ghc" ,ghc)
9330 ("pkg-config" ,pkg-config)
9331 ("qttools" ,qttools)))
9332 (home-page "https://hedgewars.org/")
9333 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9334 (description
9335 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9336 featuring the antics of pink hedgehogs with attitude as they battle from the
9337 depths of hell to the depths of space.
9338
9339 As commander, it's your job to assemble your crack team of hedgehog soldiers
9340 and bring the war to your enemy.")
9341 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9342 ;; scripts are distributed under various terms.
9343 (license (list license:gpl2
9344 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9345 license:expat license:fdl1.3+ license:public-domain
9346 license:zlib))))
9347
9348 (define-public harmonist
9349 (package
9350 (name "harmonist")
9351 (version "0.3.0")
9352 (source (origin
9353 (method git-fetch)
9354 (uri (git-reference
9355 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9356 (commit (string-append "v" version))))
9357 (file-name (git-file-name name version))
9358 (sha256
9359 (base32
9360 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
9361 (build-system go-build-system)
9362 (arguments
9363 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9364 (inputs
9365 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
9366 (home-page "https://harmonist.tuxfamily.org/")
9367 (synopsis "Stealth coffee-break roguelike game")
9368 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9369 coffee-break roguelike game. The game has a heavy focus on tactical
9370 positioning, light and noise mechanisms, making use of various terrain types
9371 and cones of view for monsters. Aiming for a replayable streamlined experience,
9372 the game avoids complex inventory management and character building, relying
9373 on items and player adaptability for character progression.")
9374 (license license:isc)))
9375
9376 (define-public harmonist-tk
9377 (package
9378 (inherit harmonist)
9379 (name "harmonist-tk")
9380 (arguments
9381 (append
9382 (package-arguments harmonist)
9383 `(#:phases
9384 (modify-phases %standard-phases
9385 (replace 'build
9386 (lambda _
9387 (invoke "go" "install" "-v" "-x" "--tags" "tk"
9388 "git.tuxfamily.org/harmonist/harmonist")))
9389 (replace 'check
9390 (lambda _
9391 (invoke "go" "test" "--tags" "tk"
9392 "git.tuxfamily.org/harmonist/harmonist")))))))
9393 (inputs
9394 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
9395
9396 (define-public drascula
9397 (package
9398 (name "drascula")
9399 (version "1.0")
9400 (source (origin
9401 (method url-fetch)
9402 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9403 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9404 "drascula-" version ".zip"))
9405 (sha256
9406 (base32
9407 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9408 (build-system trivial-build-system)
9409 (arguments
9410 `(#:modules ((guix build utils))
9411 #:builder
9412 (begin
9413 (use-modules (guix build utils)
9414 (ice-9 match))
9415 (let* ((out (assoc-ref %outputs "out"))
9416 (share (string-append out "/share/drascula"))
9417 (scummvm (assoc-ref %build-inputs "scummvm")))
9418 ;; Install data.
9419 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9420 "/bin/unzip"))
9421 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9422 (for-each
9423 (lambda (input)
9424 (invoke unzip
9425 "-j"
9426 (assoc-ref %build-inputs input)
9427 "-x" "__MACOSX")
9428 ;; Every input provides "readme.txt", and we want to
9429 ;; preserve them all. Therefore we rename them first.
9430 (match input
9431 ("drascula-int"
9432 (rename-file "readme.txt" "readme-international.txt"))
9433 ("drascula-audio"
9434 (rename-file "readme.txt" "readme-audio.txt"))
9435 (_ #f))
9436 ;; Install documentation.
9437 (for-each (lambda (f) (install-file f doc))
9438 (find-files "." "\\.(txt|doc)$"))
9439 ;; Install data.
9440 (for-each (lambda (f) (install-file f share))
9441 (find-files "." "\\.(ogg|00[0-9])$")))
9442 '("drascula-audio" "drascula-int" "source")))
9443 ;; Create standalone executable.
9444 (let* ((bin (string-append out "/bin"))
9445 (executable (string-append bin "/drascula"))
9446 (bash (string-append (assoc-ref %build-inputs "bash")
9447 "/bin/bash")))
9448 (mkdir-p bin)
9449 (with-output-to-file executable
9450 (lambda ()
9451 (format #t "#!~a~%" bash)
9452 (format #t
9453 "exec ~a/bin/scummvm --path=~a drascula~%"
9454 scummvm share)))
9455 (chmod executable #o755))
9456 ;; Create desktop file. There is no dedicated icon for the
9457 ;; game, so we borrow SCUMMVM's.
9458 (let ((apps (string-append out "/share/applications")))
9459 (mkdir-p apps)
9460 (make-desktop-entry-file
9461 (string-append apps "/drascula.desktop")
9462 #:name "Drascula: The Vampire Strikes Back"
9463 #:generic-name "Drascula"
9464 #:exec (string-append out "/bin/drascula")
9465 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9466 #:categories '("AdventureGame" "Game" "RolePlaying")
9467 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9468 #:comment '((#f "Classic 2D point and click adventure game")
9469 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9470 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9471 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9472 #t))))
9473 (native-inputs
9474 `(("bash" ,bash)
9475 ("unzip" ,unzip)))
9476 (inputs
9477 `(("scummvm" ,scummvm)
9478 ("drascula-int"
9479 ,(let ((version "1.1"))
9480 (origin
9481 (method url-fetch)
9482 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9483 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9484 "drascula-int-" version ".zip"))
9485 (sha256
9486 (base32
9487 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9488 ("drascula-audio"
9489 ,(let ((version "2.0"))
9490 (origin
9491 (method url-fetch)
9492 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9493 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9494 "drascula-audio-" version ".zip"))
9495 (sha256
9496 (base32
9497 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9498 (home-page "https://www.scummvm.org")
9499 (synopsis "Classic 2D point and click adventure game")
9500 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9501 point and click adventure game.
9502
9503 In Drascula you play the role of John Hacker, a British estate agent, that
9504 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9505 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9506 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9507 the World and demonstrating that he is even more evil than his brother Vlad.")
9508 ;; Drascula uses a BSD-like license.
9509 (license (license:non-copyleft "file:///readme.txt"))))
9510
9511 (define (make-lure-package name language hash)
9512 (package
9513 (name name)
9514 (version "1.1")
9515 (source
9516 (origin
9517 (method url-fetch)
9518 (uri (string-append
9519 "mirror://sourceforge/scummvm/extras/"
9520 "Lure%20of%20the%20Temptress/"
9521 name "-" version ".zip"))
9522 (sha256
9523 (base32 hash))))
9524 (build-system trivial-build-system)
9525 (arguments
9526 `(#:modules ((guix build utils))
9527 #:builder
9528 (begin
9529 (use-modules (guix build utils))
9530 (let* ((out (assoc-ref %outputs "out"))
9531 (share (string-append out "/share"))
9532 (data (string-append share "/" ,name "/" ,language))
9533 (apps (string-append share "/applications"))
9534 (bin (string-append out "/bin"))
9535 (executable (string-append bin "/" ,name))
9536 (scummvm (assoc-ref %build-inputs "scummvm")))
9537 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9538 "/bin/unzip")))
9539 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9540 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9541 (for-each (lambda (f) (install-file f doc))
9542 (find-files "." "\\.(txt|PDF|pdf)$")))
9543 (for-each (lambda (f) (install-file f data))
9544 (find-files "." "\\.(vga|VGA)$"))
9545 ;; Build the executable.
9546 (mkdir-p bin)
9547 (let ((bash (assoc-ref %build-inputs "bash")))
9548 (with-output-to-file executable
9549 (lambda ()
9550 (format #t "#!~a/bin/bash~%" bash)
9551 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9552 scummvm ,language data))))
9553 (chmod executable #o755)
9554 ;; Create desktop file. There is no dedicated
9555 ;; icon for the game, so we borrow SCUMMVM's.
9556 (mkdir-p apps)
9557 (with-output-to-file (string-append apps "/" ,name ".desktop")
9558 (lambda _
9559 (format #t
9560 "[Desktop Entry]~@
9561 Name=Lure of the Temptress~@
9562 GenericName=Lure~@
9563 Exec=~a~@
9564 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9565 Categories=AdventureGame;Game;RolePlaying;~@
9566 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9567 Comment=Classic 2D point and click adventure game~@
9568 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9569 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9570 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9571 Type=Application~%"
9572 executable scummvm)))
9573 #t))))
9574 (native-inputs
9575 `(("unzip" ,unzip)))
9576 (inputs
9577 `(("bash" ,bash)
9578 ("scummvm" ,scummvm)))
9579 (home-page "https://www.scummvm.org")
9580 (synopsis "2D point and click fantasy adventure game")
9581 (description
9582 "Lure of the Temptress is a classic 2D point and click adventure game.
9583
9584 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9585 intents and purposes, a good man. After decades of unrest the King has united
9586 the warring factions in his kingdom and all his lands are at peace, except
9587 a remote region around a town called Turnvale. A revolt has recently taken
9588 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9589 Selena, the titular temptress. The king calls together his finest horsemen
9590 and heads off (with you in tow) to Turnvale just to witness how hellish
9591 mercenary monsters called Skorl are invading the town.
9592
9593 The king's men are defeated, the king is killed and you fall of your horse and
9594 bang your head heavily on the ground. You have been *unconscious for a while
9595 when you realize that you are in a dingy cell guarded by a not so friendly
9596 Skorl. Maybe it would be an idea to try and escape...")
9597 (license (license:non-copyleft "file:///README"))))
9598
9599 (define-public lure
9600 (make-lure-package
9601 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9602
9603 (define-public lure-de
9604 (make-lure-package
9605 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9606
9607 (define-public lure-es
9608 (make-lure-package
9609 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9610
9611 (define-public lure-fr
9612 (make-lure-package
9613 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9614
9615 (define-public lure-it
9616 (make-lure-package
9617 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9618
9619 (define (make-queen-package name file-prefix release language hash)
9620 (package
9621 (name name)
9622 (version release)
9623 (source
9624 (origin
9625 (method url-fetch)
9626 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9627 "Flight%20of%20the%20Amazon%20Queen/"
9628 file-prefix release ".zip"))
9629 (sha256
9630 (base32 hash))))
9631 (build-system trivial-build-system)
9632 (arguments
9633 `(#:modules ((guix build utils))
9634 #:builder
9635 (begin
9636 (use-modules (guix build utils))
9637 (let* ((out (assoc-ref %outputs "out"))
9638 (share (string-append out "/share"))
9639 (data (string-append share "/" ,name))
9640 (apps (string-append share "/applications"))
9641 (bin (string-append out "/bin"))
9642 (executable (string-append bin "/" ,name))
9643 (scummvm (assoc-ref %build-inputs "scummvm")))
9644 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9645 "/bin/unzip")))
9646 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9647 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9648 (install-file "readme.txt" doc))
9649 (install-file "queen.1c" data)
9650 (mkdir-p bin)
9651 (let ((bash (assoc-ref %build-inputs "bash")))
9652 (with-output-to-file executable
9653 (lambda ()
9654 (format #t "#!~a/bin/bash~%" bash)
9655 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9656 scummvm data))))
9657 (chmod executable #o755)
9658 ;; Create desktop file. There is no dedicated
9659 ;; icon for the game, so we borrow SCUMMVM's.
9660 (mkdir-p apps)
9661 (with-output-to-file (string-append apps "/" ,name ".desktop")
9662 (lambda _
9663 (format #t
9664 "[Desktop Entry]~@
9665 Name=Flight of the Amazon Queen~@
9666 GenericName=Queen~@
9667 Comment=Embark on a quest to rescue a kidnapped princess and in the process, discover the true sinister intentions of a suspiciously located Lederhosen company~@
9668 Comment[de]=Begib dich auf ein Abenteuer, um eine entführte Prinzessin zu retten und entdecke die wahren, finsteren Absichten eines verdächtig erscheinenden Lederhosen-Unternehmens~@
9669 Type=Application~@
9670 Exec=~a~@
9671 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9672 Categories=AdventureGame;Game;RolePlaying;~@
9673 Keywords=adventure;game;roleplaying;fantasy;~%"
9674 executable scummvm))))
9675 #t)))
9676 (native-inputs
9677 `(("unzip" ,unzip)))
9678 (inputs
9679 `(("bash" ,bash)
9680 ("scummvm" ,scummvm)))
9681 (home-page "https://www.scummvm.org/")
9682 (synopsis "Classic 2D point and click adventure game")
9683 (description "Flight of the Amazon Queen is a 2D point-and-click
9684 adventure game set in the 1940s.
9685
9686 You assume the role of Joe King, a pilot for hire who is given the job
9687 of flying Faye Russell (a famous movie star) into the Amazon jungle
9688 for a photo shoot. Of course, things never go according to plans.
9689 After an unfortunate turn of events they find themselves stranded in
9690 the heart of the Amazon jungle, where Joe will embark on a quest to
9691 rescue a kidnapped princess and in the process, discover the true
9692 sinister intentions of a suspiciously located Lederhosen company. In
9693 a rich 2D environment, Joe will cross paths with a variety of unlikely
9694 jungle inhabitants including, but not limited to, a tribe of Amazon
9695 women and 6-foot-tall pygmies.")
9696 (license (license:non-copyleft "file:///readme.txt"))))
9697
9698 (define-public queen
9699 (make-queen-package
9700 "queen" "FOTAQ_Talkie-" "1.1" "en"
9701 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9702
9703 (define-public queen-de
9704 (make-queen-package
9705 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9706 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9707
9708 (define-public queen-fr
9709 (make-queen-package
9710 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9711 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9712
9713 (define-public queen-it
9714 (make-queen-package
9715 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9716 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9717
9718 (define-public sky
9719 (package
9720 (name "sky")
9721 (version "1.2") ;1.3 is floppy version
9722 (source
9723 (origin
9724 (method url-fetch)
9725 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9726 "Beneath%20a%20Steel%20Sky/"
9727 "bass-cd-" version ".zip"))
9728 (sha256
9729 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9730 (build-system trivial-build-system)
9731 (arguments
9732 `(#:modules ((guix build utils))
9733 #:builder
9734 (begin
9735 (use-modules (guix build utils))
9736 (let* ((out (assoc-ref %outputs "out"))
9737 (share (string-append out "/share"))
9738 (data (string-append share "/" ,name))
9739 (apps (string-append share "/applications"))
9740 (bin (string-append out "/bin"))
9741 (executable (string-append bin "/" ,name))
9742 (scummvm (assoc-ref %build-inputs "scummvm")))
9743 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9744 "/bin/unzip")))
9745 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9746 (let ((doc (string-append share "/doc/bass-" ,version)))
9747 (install-file "readme.txt" doc))
9748 (for-each (lambda (f) (install-file f data))
9749 (find-files "." "^sky\\."))
9750 ;; Build the executable.
9751 (mkdir-p bin)
9752 (let ((bash (assoc-ref %build-inputs "bash")))
9753 (with-output-to-file executable
9754 (lambda ()
9755 (format #t "#!~a/bin/bash~%" bash)
9756 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9757 (chmod executable #o755)
9758 ;; Create desktop file. There is no dedicated
9759 ;; icon for the game, so we borrow SCUMMVM's.
9760 (mkdir-p apps)
9761 (with-output-to-file (string-append apps "/" ,name ".desktop")
9762 (lambda _
9763 (format #t
9764 "[Desktop Entry]~@
9765 Name=Beneath a Steel Sky~@
9766 GenericName=Bass~@
9767 Exec=~a~@
9768 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9769 Categories=AdventureGame;Game;RolePlaying;~@
9770 Keywords=adventure;game;roleplaying;cyberpunk;~@
9771 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9772 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9773 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9774 Type=Application~%"
9775 executable scummvm)))
9776 #t))))
9777 (native-inputs
9778 `(("unzip" ,unzip)))
9779 (inputs
9780 `(("bash" ,bash)
9781 ("scummvm" ,scummvm)))
9782 (home-page "https://www.scummvm.org/")
9783 (synopsis "Classic 2D point and click science-fiction adventure game")
9784 (description
9785 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9786 post-apocalyptic vision of the future. It revolves around Union City,
9787 where selfishness, rivalry, and corruption by its citizens seems to be
9788 all too common, those who can afford it live underground, away from
9789 the pollution and social problems which are plaguing the city.
9790
9791 You take on the role of Robert Foster, an outcast of sorts from the
9792 city since a boy who was raised in a remote environment outside of
9793 Union City simply termed ``the gap''. Robert's mother took him away
9794 from Union City as a child on their way to ``Hobart'' but the
9795 helicopter crashed on its way. Unfortunately, Robert's mother died,
9796 but he survived and was left to be raised by a local tribe from the
9797 gap.
9798
9799 Years later, Union City security drops by and abducts Robert, killing
9800 his tribe in the process; upon reaching the city the helicopter taking
9801 him there crashes with him escaping, high upon a tower block in the
9802 middle of the city. He sets out to discover the truth about his past,
9803 and to seek vengeance for the killing of his tribe.")
9804 (license (license:non-copyleft "file:///readme.txt"))))
9805
9806 (define-public gnurobots
9807 (package
9808 (name "gnurobots")
9809 (version "1.2.0")
9810 (source
9811 (origin
9812 (method url-fetch)
9813 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9814 version ".tar.gz"))
9815 (sha256
9816 (base32
9817 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9818 (build-system gnu-build-system)
9819 (inputs
9820 `(("glib" ,glib)
9821 ("gtk+" ,gtk+-2)
9822 ("vte" ,vte/gtk+-2)
9823 ("readline" ,readline)
9824 ("guile" ,guile-1.8)))
9825 (native-inputs
9826 `(("pkg-config" ,pkg-config)))
9827 (arguments
9828 `(#:make-flags
9829 (list
9830 ;; Do not abort build on "deprecated-declarations" warnings.
9831 "CFLAGS=-Wno-error=deprecated-declarations"
9832 ;; Find readline headers in sub-directory.
9833 (string-append "READLINE_CFLAGS=-I"
9834 (assoc-ref %build-inputs "readline")
9835 "/include/readline/"))
9836 #:phases
9837 (modify-phases %standard-phases
9838 (add-after 'install 'install-doc
9839 (lambda* (#:key outputs #:allow-other-keys)
9840 (install-file "doc/Robots-HOWTO"
9841 (string-append (assoc-ref outputs "out")
9842 "/share/doc/gnurobots-"
9843 ,version))
9844 #t)))))
9845 (home-page "https://www.gnu.org/software/gnurobots/")
9846 (synopsis "Program a little robot and watch it explore a world")
9847 (description
9848 "GNU Robots is a game in which you program a robot to explore a world
9849 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9850 the game is to stay alive and collect prizes. The robot program conveniently
9851 may be written in a plain text file in the Scheme programming language.")
9852 (license license:gpl3+)))
9853
9854 (define-public ri-li
9855 (package
9856 (name "ri-li")
9857 (version "2.0.1")
9858 (source (origin
9859 (method url-fetch)
9860 (uri (string-append "mirror://sourceforge/ri-li/"
9861 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9862 "Ri-li-" version ".tar.bz2"))
9863 (sha256
9864 (base32
9865 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9866 ;; Taken from
9867 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9868 ;; It doesn't build otherwise.
9869 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9870 (build-system gnu-build-system)
9871 (arguments
9872 `(#:phases
9873 (modify-phases %standard-phases
9874 ;; Remove "gentoo" subdirectory from Makefile, as it is
9875 ;; missing a make file and generates a build failure.
9876 (add-after 'configure 'fix-build
9877 (lambda _
9878 (substitute* "Makefile"
9879 ((" gentoo") ""))
9880 #t))
9881 (add-after 'install 'install-desktop-file
9882 (lambda* (#:key outputs #:allow-other-keys)
9883 (let* ((out (assoc-ref outputs "out"))
9884 (apps (string-append out "/share/applications"))
9885 (pixmaps (string-append out "/share/pixmaps")))
9886 (for-each (lambda (f) (install-file f pixmaps))
9887 (find-files "data" "\\.(png|ico)$"))
9888 (mkdir-p apps)
9889 (with-output-to-file (string-append apps "/ri-li.desktop")
9890 (lambda _
9891 (format #t
9892 "[Desktop Entry]~@
9893 Name=Ri-li~@
9894 Exec=~a/bin/Ri_li~@
9895 Icon=~a/Ri-li-icon-32x32.png~@
9896 Categories=Game;ArcadeGame;~@
9897 Keywords=toy;train;wooden;snake-like;engine;~@
9898 Comment=a toy simulator game~@
9899 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9900 Comment[fr]=un jeu de petit train~@
9901 Comment[ro_RO]=un joc cu un tren de jucărie~@
9902 Terminal=false~@
9903 Type=Application~%"
9904 out pixmaps))))
9905 #t))
9906 (add-after 'install-desktop-file 'remove-spurious-files
9907 ;; Delete redundant files already installed somewhere else.
9908 (lambda* (#:key outputs #:allow-other-keys)
9909 (let ((out (assoc-ref outputs "out")))
9910 (for-each delete-file
9911 (find-files (string-append out "/share/Ri-li")
9912 "\\.(png|ico)|COPYING"))
9913 #t))))))
9914 (inputs
9915 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9916 (home-page "http://www.ri-li.org")
9917 (synopsis "Toy train simulation game")
9918 (description "Ri-li is a game in which you drive a wooden toy
9919 steam locomotive across many levels and collect all the coaches to
9920 win.")
9921 ;; The project is dual-licensed GPL2+ and GPL3+.
9922 (license (list license:gpl2+ license:gpl3+))))
9923
9924 (define-public freeorion
9925 (package
9926 (name "freeorion")
9927 (version "0.4.10")
9928 (source
9929 (origin
9930 (method url-fetch)
9931 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9932 "download/v" version "/FreeOrion_v" version
9933 "_2020-07-10.f3d403e_Source.tar.gz"))
9934 (sha256
9935 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9936 (modules '((guix build utils)))
9937 (snippet
9938 '(begin
9939 ;; There are some bundled fonts.
9940 (for-each delete-file-recursively '("default/data/fonts"))
9941 #t))))
9942 (build-system cmake-build-system)
9943 (arguments
9944 '(#:tests? #f ;no test
9945 #:phases
9946 (modify-phases %standard-phases
9947 (add-after 'unpack 'unbundle-fonts
9948 (lambda* (#:key inputs #:allow-other-keys)
9949 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9950 "/share/fonts/truetype/")))
9951 (substitute* "UI/ClientUI.cpp"
9952 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9953 all type)
9954 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9955 #t))))))
9956 (inputs
9957 `(("boost" ,boost)
9958 ("boost_signals" ,boost-signals2)
9959 ("font-dejavu" ,font-dejavu)
9960 ("font-roboto" ,font-google-roboto)
9961 ("freetype2" ,freetype)
9962 ("glew" ,glew)
9963 ("glu" ,glu)
9964 ("libogg" ,libogg)
9965 ("libpng" ,libpng)
9966 ("libvorbis" ,libvorbis)
9967 ("openal" ,openal)
9968 ("python" ,python)
9969 ("sdl2" ,sdl2)
9970 ("zlib" ,zlib)))
9971 (home-page "https://www.freeorion.org/index.php/Main_Page")
9972 (synopsis "Turn-based space empire and galactic conquest computer game")
9973 (description
9974 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9975 computer game being designed and built by the FreeOrion project. Control an
9976 empire with the goal of exploring the galaxy, expanding your territory,
9977 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9978 inspired by the tradition of the Master of Orion games, but is not a clone or
9979 remake of that series or any other game.")
9980 ;; Source code is released under gpl2. Artwork, music and sounds, and
9981 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9982 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9983 ;; released under lgpl2.1+.
9984 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9985
9986 (define-public leela-zero
9987 (package
9988 (name "leela-zero")
9989 (version "0.17")
9990 (source
9991 (origin
9992 (method git-fetch)
9993 (uri (git-reference
9994 (url "https://github.com/leela-zero/leela-zero")
9995 (commit (string-append "v" version))))
9996 (file-name (git-file-name name version))
9997 (sha256
9998 (base32
9999 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
10000 (patches (search-patches "leela-zero-gtest.patch"))))
10001 (build-system cmake-build-system)
10002 (native-inputs
10003 `(("googletest" ,googletest)))
10004 (inputs
10005 `(("boost" ,boost)
10006 ("ocl-icd" ,ocl-icd)
10007 ("openblas" ,openblas)
10008 ("opencl-headers" ,opencl-headers)
10009 ("qtbase" ,qtbase)
10010 ("zlib" ,zlib)))
10011 (arguments
10012 '(#:configure-flags '("-DUSE_BLAS=YES")
10013 #:phases (modify-phases %standard-phases
10014 (add-before 'configure 'fix-tests
10015 (lambda* (#:key outputs #:allow-other-keys)
10016 (let ((home (getcwd)))
10017 (setenv "HOME" home)
10018 (substitute* "src/tests/gtests.cpp"
10019 (("\\.\\./src/tests/0k\\.txt")
10020 (string-append home "/src/tests/0k.txt"))
10021 (("cfg_gtp_mode = true;")
10022 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
10023 #t))
10024 (replace 'check
10025 (lambda _
10026 (invoke "./tests"))))))
10027 (home-page "https://github.com/leela-zero/leela-zero")
10028 (synopsis "Program playing the game of Go")
10029 (description
10030 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
10031 the AlphaGo Zero paper. The current best network weights file for the engine
10032 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
10033 (license license:gpl3+)))
10034
10035 (define-public q5go
10036 (package
10037 (name "q5go")
10038 (version "1.0")
10039 (source (origin
10040 (method git-fetch)
10041 (uri (git-reference
10042 (url "https://github.com/bernds/q5Go")
10043 (commit (string-append "q5go-" version))))
10044 (file-name (git-file-name name version))
10045 (sha256
10046 (base32
10047 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
10048 (build-system gnu-build-system)
10049 (native-inputs
10050 `(("pkg-config" ,pkg-config)))
10051 (inputs
10052 `(("qtbase" ,qtbase)
10053 ("qtmultimedia" ,qtmultimedia)
10054 ("qtsvg" ,qtsvg)))
10055 (arguments
10056 '(#:phases
10057 (modify-phases %standard-phases
10058 (add-after 'unpack 'fix-configure-script
10059 (lambda _
10060 ;; Bypass the unavailable qtchooser program.
10061 (substitute* "configure"
10062 (("test -z \"QTCHOOSER\"")
10063 "false")
10064 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
10065 command))
10066 #t))
10067 (add-after 'unpack 'fix-paths
10068 (lambda _
10069 (substitute* '("src/pics/Makefile.in"
10070 "src/translations/Makefile.in")
10071 (("\\$\\(datadir\\)/qGo/")
10072 "$(datadir)/q5go/"))
10073 #t))
10074 (add-after 'install 'install-desktop-file
10075 (lambda* (#:key outputs #:allow-other-keys)
10076 (let* ((out (assoc-ref outputs "out"))
10077 (apps (string-append out "/share/applications"))
10078 (pics (string-append out "/share/q5go/pics")))
10079 (delete-file-recursively (string-append out "/share/applnk"))
10080 (delete-file-recursively (string-append out "/share/mimelnk"))
10081 (install-file "../source/src/pics/Bowl.ico" pics)
10082 (mkdir-p apps)
10083 (with-output-to-file (string-append apps "/q5go.desktop")
10084 (lambda _
10085 (format #t
10086 "[Desktop Entry]~@
10087 Name=q5go~@
10088 Exec=~a/bin/q5go~@
10089 Icon=~a/Bowl.ico~@
10090 Categories=Game;~@
10091 Comment=Game of Go~@
10092 Comment[de]=Spiel des Go~@
10093 Comment[eo]=Goo~@
10094 Comment[es]=Juego de Go~@
10095 Comment[fr]=Jeu de Go~@
10096 Comment[ja]=囲碁~@
10097 Comment[ko]=바둑~@
10098 Comment[zh]=围棋~@
10099 Terminal=false~@
10100 Type=Application~%"
10101 out pics))))
10102 #t)))))
10103 (synopsis "Qt GUI to play the game of Go")
10104 (description
10105 "This a tool for Go players which performs the following functions:
10106 @itemize
10107 @item SGF editor,
10108 @item Analysis frontend for Leela Zero (or compatible engines),
10109 @item GTP interface (to play against an engine),
10110 @item IGS client (to play on the internet),
10111 @item Export games to a variety of formats.
10112 @end itemize")
10113 (home-page "https://github.com/bernds/q5Go")
10114 (license license:gpl2+)))
10115
10116 (define-public ktuberling
10117 (package
10118 (name "ktuberling")
10119 (version "20.12.0")
10120 (source
10121 (origin
10122 (method url-fetch)
10123 (uri (string-append "mirror://kde/stable/release-service/" version
10124 "/src/ktuberling-" version ".tar.xz"))
10125 (sha256
10126 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
10127 (build-system qt-build-system)
10128 (native-inputs
10129 `(("extra-cmake-modules" ,extra-cmake-modules)
10130 ("kdoctools" ,kdoctools)
10131 ("perl" ,perl)))
10132 (inputs
10133 `(("kcompletion" ,kcompletion)
10134 ("kconfigwidgets" ,kconfigwidgets)
10135 ("kcoreaddons" ,kcoreaddons)
10136 ("kcrash" ,kcrash)
10137 ("kdbusaddons" ,kdbusaddons)
10138 ("ki18n" ,ki18n)
10139 ("kio" ,kio)
10140 ("kwidgetsaddons" ,kwidgetsaddons)
10141 ("kxmlgui" ,kxmlgui)
10142 ("libkdegames" ,libkdegames)
10143 ("python" ,python-wrapper)
10144 ("qtbase" ,qtbase)
10145 ("qtmultimedia" ,qtmultimedia)
10146 ("qtdeclarative" ,qtdeclarative)
10147 ("qtsvg" ,qtsvg)))
10148 (home-page "https://games.kde.org/")
10149 (synopsis "Stamp drawing toy")
10150 (description "KTuberling is a drawing toy intended for small children and
10151 adults who remain young at heart. The game has no winner; the only purpose is
10152 to make the funniest faces you can. Several activities are possible, e.g.:
10153
10154 @itemize
10155 @item Give the potato a funny face, clothes, and other goodies
10156 @item Build a small town, complete with school, zoo, and fire department
10157 @item Create a fantastic moonscape with spaceships and aliens
10158 @item Top a pizza
10159 @end itemize
10160
10161 KTuberling can speak the name of each the object in several languages,
10162 to assist in learning basic vocabulary.
10163
10164 This package is part of the KDE games module.")
10165 (license (list license:gpl2+ license:fdl1.2+))))
10166
10167 (define-public picmi
10168 (package
10169 (name "picmi")
10170 (version "20.12.0")
10171 (source
10172 (origin
10173 (method url-fetch)
10174 (uri (string-append "mirror://kde/stable/release-service/" version
10175 "/src/picmi-" version ".tar.xz"))
10176 (sha256
10177 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
10178 (build-system qt-build-system)
10179 (native-inputs
10180 `(("extra-cmake-modules" ,extra-cmake-modules)
10181 ("kdoctools" ,kdoctools)))
10182 (inputs
10183 `(("kcoreaddons" ,kcoreaddons)
10184 ("kcrash" ,kcrash)
10185 ("kdbusaddons" ,kdbusaddons)
10186 ("kdeclarative" ,kdeclarative)
10187 ("ki18n" ,ki18n)
10188 ("kio" ,kio)
10189 ("knewstuff" ,knewstuff)
10190 ("kxmlgui" ,kxmlgui)
10191 ("libkdegames" ,libkdegames)
10192 ("qtbase" ,qtbase)
10193 ("qtdeclarative" ,qtdeclarative)
10194 ("qtsvg" ,qtsvg)))
10195 (home-page "https://games.kde.org/")
10196 (synopsis "Number logic game")
10197 (description "Picmi is a number logic game in which cells in a grid have
10198 to be colored or left blank according to numbers given at the side of the
10199 grid. The aim is to reveal a hidden picture.
10200
10201 This package is part of the KDE games module.")
10202 (license (list license:gpl2+ license:fdl1.2+))))
10203
10204 (define-public kolf
10205 (package
10206 (name "kolf")
10207 (version "20.12.0")
10208 (source
10209 (origin
10210 (method url-fetch)
10211 (uri (string-append "mirror://kde/stable/release-service/" version
10212 "/src/kolf-" version ".tar.xz"))
10213 (sha256
10214 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10215 (build-system qt-build-system)
10216 (native-inputs
10217 `(("extra-cmake-modules" ,extra-cmake-modules)
10218 ("kdoctools" ,kdoctools)))
10219 (inputs
10220 `(("kcompletion" ,kcompletion)
10221 ("kconfigwidgets" ,kconfigwidgets)
10222 ("kcoreaddons" ,kcoreaddons)
10223 ("kcrash" ,kcrash)
10224 ("kdbusaddons" ,kdbusaddons)
10225 ("ki18n" ,ki18n)
10226 ("kio" ,kio)
10227 ("kwidgetsaddons" ,kwidgetsaddons)
10228 ("kxmlgui" ,kxmlgui)
10229 ("ktextwidgets" ,ktextwidgets)
10230 ("libkdegames" ,libkdegames)
10231 ("qtbase" ,qtbase)
10232 ("qtdeclarative" ,qtdeclarative)))
10233 (home-page "https://games.kde.org/")
10234 (synopsis "Miniature golf game")
10235 (description "Kolf is a miniature golf game for one to ten players. The
10236 game is played from an overhead view, with a short bar representing the golf
10237 club. Kolf features many different types of objects, such as water hazards,
10238 slopes, sand traps, and black holes (warps), among others.
10239
10240 Features are:
10241 @itemize
10242 @item Single and Multi-player (up to ten players) modes
10243 @item High scores table
10244 @item Dynamic courses
10245 @item Third-party courses
10246 @item Course editor
10247 @end itemize
10248
10249 This package is part of the KDE games module.")
10250 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10251
10252 (define-public libkmahjongg
10253 (package
10254 (name "libkmahjongg")
10255 (version "20.12.0")
10256 (source
10257 (origin
10258 (method url-fetch)
10259 (uri (string-append "mirror://kde/stable/release-service/"
10260 version "/src/libkmahjongg-" version ".tar.xz"))
10261 (sha256
10262 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10263 (build-system qt-build-system)
10264 (native-inputs
10265 `(("extra-cmake-modules" ,extra-cmake-modules)))
10266 (inputs
10267 `(("kauth" ,kauth)
10268 ("kcompletion" ,kcompletion)
10269 ;("kconfig" ,kconfig)
10270 ("kcodecs" ,kcodecs)
10271 ("kconfigwidgets" ,kconfigwidgets)
10272 ("kcoreaddons" ,kcoreaddons)
10273 ("ki18n" ,ki18n)
10274 ("kwidgetsaddons" ,kwidgetsaddons)
10275 ("qtbase" ,qtbase)
10276 ("qtsvg" ,qtsvg)))
10277 (home-page "https://games.kde.org/")
10278 (synopsis "Shared library for kmahjongg and kshisen")
10279 (description "Shared library and common files for kmahjongg, kshisen and
10280 other Mah Jongg like games.")
10281 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10282
10283 (define-public kmahjongg
10284 (package
10285 (name "kmahjongg")
10286 (version "20.12.0")
10287 (source
10288 (origin
10289 (method url-fetch)
10290 (uri (string-append "mirror://kde/stable/release-service/"
10291 version "/src/kmahjongg-" version ".tar.xz"))
10292 (sha256
10293 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10294 (build-system qt-build-system)
10295 (native-inputs
10296 `(("extra-cmake-modules" ,extra-cmake-modules)
10297 ("kdoctools" ,kdoctools)))
10298 (inputs
10299 `(("kcompletion" ,kcompletion)
10300 ("kcrash" ,kcrash)
10301 ("kdbusaddons" ,kdbusaddons)
10302 ("kdeclarative" ,kdeclarative)
10303 ("ki18n" ,ki18n)
10304 ("knewstuff" ,knewstuff)
10305 ("kxmlgui" ,kxmlgui)
10306 ("libkdegames" ,libkdegames)
10307 ("libkmahjongg" ,libkmahjongg)
10308 ("qtbase" ,qtbase)
10309 ("qtdeclarative" ,qtdeclarative)
10310 ("qtsvg" ,qtsvg)))
10311 (home-page "https://games.kde.org/")
10312 (synopsis "Tile laying patience")
10313 (description "In KMahjongg the tiles are scrambled and staked on top of
10314 each other to resemble a certain shape. The player is then expected to remove
10315 all the tiles off the game board by locating each tile's matching pair.
10316
10317 A variety of tile layouts are included, as well as an editor to create new
10318 layouts.
10319
10320 This package is part of the KDE games module.")
10321 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10322
10323 (define-public kshisen
10324 (package
10325 (name "kshisen")
10326 (version "20.12.0")
10327 (source
10328 (origin
10329 (method url-fetch)
10330 (uri (string-append "mirror://kde/stable/release-service/"
10331 version "/src/kshisen-" version ".tar.xz"))
10332 (sha256
10333 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10334 (build-system qt-build-system)
10335 (native-inputs
10336 `(("extra-cmake-modules" ,extra-cmake-modules)
10337 ;("perl" ,perl)
10338 ;("pkg-config" ,pkg-config)
10339 ("kdoctools" ,kdoctools)))
10340 (inputs
10341 `(("kauth" ,kauth)
10342 ("kcompletion" ,kcompletion)
10343 ("kconfigwidgets" ,kconfigwidgets)
10344 ("kcoreaddons" ,kcoreaddons)
10345 ("kcrash" ,kcrash)
10346 ("kdbusaddons" ,kdbusaddons)
10347 ("ki18n" ,ki18n)
10348 ("kxmlgui" ,kxmlgui)
10349 ("libkdegames" ,libkdegames)
10350 ("libkmahjongg" ,libkmahjongg)
10351 ("qtbase" ,qtbase)
10352 ("qtdeclarative" ,qtdeclarative)))
10353 (home-page "https://games.kde.org/")
10354 (synopsis "Shisen-Sho solitaire game")
10355 (description "KShisen is a solitaire-like game played using the standard
10356 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10357 scrambled tiles
10358
10359 This package is part of the KDE games module.")
10360 (license license:gpl2+)))
10361
10362 (define-public kajongg
10363 (package
10364 (name "kajongg")
10365 (version "20.12.0")
10366 (source
10367 (origin
10368 (method url-fetch)
10369 (uri (string-append "mirror://kde/stable/release-service/"
10370 version "/src/kajongg-" version ".tar.xz"))
10371 (sha256
10372 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10373 (build-system qt-build-system)
10374 (arguments
10375 `(#:phases
10376 (modify-phases %standard-phases
10377 (add-after 'install 'wrap
10378 (lambda* (#:key outputs #:allow-other-keys)
10379 (let ((out (assoc-ref outputs "out")))
10380 (wrap-program (string-append out "/bin/kajongg")
10381 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
10382 #t))))))
10383 (native-inputs
10384 `(("extra-cmake-modules" ,extra-cmake-modules)
10385 ;("perl" ,perl)
10386 ("kdoctools" ,kdoctools)))
10387 (inputs
10388 `(("kconfig" ,kconfig)
10389 ("kconfigwidgets" ,kconfigwidgets)
10390 ("kcoreaddons" ,kcoreaddons)
10391 ("ki18n" ,ki18n)
10392 ("libkmahjongg" ,libkmahjongg)
10393 ("python" ,python)
10394 ("python-twisted" ,python-twisted)
10395 ("python-pyqt" ,python-pyqt)
10396 ("qtbase" ,qtbase)
10397 ("qtsvg" ,qtsvg)))
10398 (home-page "https://games.kde.org/")
10399 (synopsis "Classical Mah Jongg game for 4 players")
10400 (description "Kajongg is the ancient Chinese board game for 4 players.
10401
10402 If you are looking for the Mah Jongg solitaire please use the application
10403 kmahjongg.
10404
10405 Kajongg can be used in two different ways: Scoring a manual game where you
10406 play as always and use Kajongg for the computation of scores and for
10407 bookkeeping. Or you can use Kajongg to play against any combination of other
10408 human players or computer players.
10409
10410 This package is part of the KDE games module.")
10411 (license (list license:gpl2+ license:fdl1.2+))))
10412
10413 (define-public kbreakout
10414 (package
10415 (name "kbreakout")
10416 (version "20.12.0")
10417 (source
10418 (origin
10419 (method url-fetch)
10420 (uri (string-append "mirror://kde/stable/release-service/" version
10421 "/src/kbreakout-" version ".tar.xz"))
10422 (sha256
10423 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10424 (build-system qt-build-system)
10425 (native-inputs
10426 `(("extra-cmake-modules" ,extra-cmake-modules)
10427 ("kdoctools" ,kdoctools)))
10428 (inputs
10429 `(("kcompletion" ,kcompletion)
10430 ("kconfig" ,kconfig)
10431 ("kconfigwidgets" ,kconfigwidgets)
10432 ("kcoreaddons" ,kcoreaddons)
10433 ("kcrash" ,kcrash)
10434 ("kdbusaddons" ,kdbusaddons)
10435 ("ki18n" ,ki18n)
10436 ("kwidgetsaddons" ,kwidgetsaddons)
10437 ("kxmlgui" ,kxmlgui)
10438 ("libkdegames" ,libkdegames)
10439 ("qtbase" ,qtbase)
10440 ("qtdeclarative" ,qtdeclarative)))
10441 (home-page "https://games.kde.org/")
10442 (synopsis "Breakout like game")
10443 (description "KBreakout is similar to the classics breakout and xboing,
10444 featuring a number of added graphical enhancements and effects. You control a
10445 paddle at the bottom of the playing-field, and must destroy bricks at the top
10446 by bouncing balls against them.
10447
10448 This package is part of the KDE games module.")
10449 (license (list license:gpl2+ license:fdl1.2+))))
10450
10451 (define-public kmines
10452 (package
10453 (name "kmines")
10454 (version "20.12.0")
10455 (source
10456 (origin
10457 (method url-fetch)
10458 (uri (string-append "mirror://kde/stable/release-service/" version
10459 "/src/kmines-" version ".tar.xz"))
10460 (sha256
10461 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10462 (build-system qt-build-system)
10463 (native-inputs
10464 `(("extra-cmake-modules" ,extra-cmake-modules)
10465 ("kdoctools" ,kdoctools)))
10466 (inputs
10467 `(("kcompletion" ,kcompletion)
10468 ("kconfig" ,kconfig)
10469 ("kconfigwidgets" ,kconfigwidgets)
10470 ("kcoreaddons" ,kcoreaddons)
10471 ("kcrash" ,kcrash)
10472 ("kdbusaddons" ,kdbusaddons)
10473 ("ki18n" ,ki18n)
10474 ("ktextwidgets" ,ktextwidgets)
10475 ("kwidgetsaddons" ,kwidgetsaddons)
10476 ("kxmlgui" ,kxmlgui)
10477 ("libkdegames" ,libkdegames)
10478 ("qtbase" ,qtbase)
10479 ("qtdeclarative" ,qtdeclarative)))
10480 (home-page "https://games.kde.org/")
10481 (synopsis "Classical mine sweeper game")
10482 (description "KMines is a classic Minesweeper game. The idea is to
10483 uncover all the squares without blowing up any mines. When a mine is blown
10484 up, the game is over.
10485
10486 This package is part of the KDE games module.")
10487 (license (list license:gpl2+ license:fdl1.2+))))
10488
10489 (define-public konquest
10490 (package
10491 (name "konquest")
10492 (version "20.12.0")
10493 (source
10494 (origin
10495 (method url-fetch)
10496 (uri (string-append "mirror://kde/stable/release-service/"
10497 version "/src/konquest-" version ".tar.xz"))
10498 (sha256
10499 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10500 (build-system qt-build-system)
10501 (native-inputs
10502 `(("extra-cmake-modules" ,extra-cmake-modules)
10503 ("kdoctools" ,kdoctools)))
10504 (inputs
10505 `(("kcompletion" ,kcompletion)
10506 ("kconfig" ,kconfig)
10507 ("kcoreaddons" ,kcoreaddons)
10508 ("kcrash" ,kcrash)
10509 ("kdbusaddons" ,kdbusaddons)
10510 ("kguiaddons" ,kguiaddons)
10511 ("ki18n" ,ki18n)
10512 ("kwidgetsaddons" ,kwidgetsaddons)
10513 ("kxmlgui" ,kxmlgui)
10514 ("libkdegames" ,libkdegames)
10515 ("qtbase" ,qtbase)
10516 ("qtdeclarative" ,qtdeclarative)
10517 ("qtsvg" ,qtsvg)))
10518 (home-page "https://games.kde.org/")
10519 (synopsis "Simple turn-based strategy game")
10520 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10521 conquer other planets by sending ships to them. The goal is to build an
10522 interstellar empire and ultimately conquer all other player's planets. The
10523 game can be played with up to nine empires, commanded either by the computer
10524 or by puny earthlings.
10525
10526 This package is part of the KDE games module.")
10527 (license (list license:gpl2+ license:fdl1.2+))))
10528
10529 (define-public kbounce
10530 (package
10531 (name "kbounce")
10532 (version "20.12.0")
10533 (source
10534 (origin
10535 (method url-fetch)
10536 (uri (string-append "mirror://kde/stable/release-service/"
10537 version "/src/kbounce-" version ".tar.xz"))
10538 (sha256
10539 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10540 (build-system qt-build-system)
10541 (native-inputs
10542 `(("extra-cmake-modules" ,extra-cmake-modules)
10543 ("kdoctools" ,kdoctools)))
10544 (inputs
10545 `(("kcompletion" ,kcompletion)
10546 ("kconfigwidgets" ,kconfigwidgets)
10547 ("kcoreaddons" ,kcoreaddons)
10548 ("kcrash" ,kcrash)
10549 ("kdbusaddons" ,kdbusaddons)
10550 ("ki18n" ,ki18n)
10551 ("kio" ,kio)
10552 ("kwidgetsaddons" ,kwidgetsaddons)
10553 ("kxmlgui" ,kxmlgui)
10554 ("libkdegames" ,libkdegames)
10555 ("qtbase" ,qtbase)
10556 ("qtdeclarative" ,qtdeclarative)
10557 ("qtsvg" ,qtsvg)))
10558 (home-page "https://games.kde.org/")
10559 (synopsis "Jezzball arcade game")
10560 (description "KBounce is a single player arcade game with the elements of
10561 puzzle. It is played on a field, surrounded by wall, with two or more balls
10562 bouncing around within the walls. The object of the game is to build new
10563 walls to decrease the size of the active field.
10564
10565 This package is part of the KDE games module.")
10566 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10567
10568 (define-public kblocks
10569 (package
10570 (name "kblocks")
10571 (version "20.12.0")
10572 (source
10573 (origin
10574 (method url-fetch)
10575 (uri (string-append "mirror://kde/stable/release-service/"
10576 version "/src/kblocks-" version ".tar.xz"))
10577 (sha256
10578 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10579 (build-system qt-build-system)
10580 (native-inputs
10581 `(("extra-cmake-modules" ,extra-cmake-modules)
10582 ("kdoctools" ,kdoctools)))
10583 (inputs
10584 `(("kcompletion" ,kcompletion)
10585 ("kconfig" ,kconfig)
10586 ("kconfigwidgets" ,kconfigwidgets)
10587 ("kcoreaddons" ,kcoreaddons)
10588 ("kcrash" ,kcrash)
10589 ("kdbusaddons" ,kdbusaddons)
10590 ("ki18n" ,ki18n)
10591 ("kwidgetsaddons" ,kwidgetsaddons)
10592 ("kxmlgui" ,kxmlgui)
10593 ("libkdegames" ,libkdegames)
10594 ("qtbase" ,qtbase)
10595 ("qtdeclarative" ,qtdeclarative)
10596 ("qtsvg" ,qtsvg)))
10597 (home-page "https://games.kde.org/")
10598 (synopsis "Single player falling blocks puzzle game")
10599 (description "KBlocks is the classic Tetris-like falling blocks game.
10600
10601 The idea is to stack the falling blocks to create horizontal lines without any
10602 gaps. When a line is completed it is removed, and more space is available in
10603 the play area. When there is not enough space for blocks to fall, the game is
10604 over.
10605
10606 This package is part of the KDE games module.")
10607 (license (list license:gpl2+ license:fdl1.2+))))
10608
10609 (define-public ksudoku
10610 (package
10611 (name "ksudoku")
10612 (version "20.12.0")
10613 (source
10614 (origin
10615 (method url-fetch)
10616 (uri (string-append "mirror://kde/stable/release-service/"
10617 version "/src/ksudoku-" version ".tar.xz"))
10618 (sha256
10619 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10620 (build-system qt-build-system)
10621 (native-inputs
10622 `(("extra-cmake-modules" ,extra-cmake-modules)
10623 ("kdoctools" ,kdoctools)))
10624 (inputs
10625 `(("karchive" ,karchive)
10626 ("kconfig" ,kconfig)
10627 ("kconfigwidgets" ,kconfigwidgets)
10628 ("kcoreaddons" ,kcoreaddons)
10629 ("kcrash" ,kcrash)
10630 ("kguiaddons" ,kguiaddons)
10631 ("ki18n" ,ki18n)
10632 ("kiconthemes" ,kiconthemes)
10633 ("kio" ,kio)
10634 ("kwidgetsaddons" ,kwidgetsaddons)
10635 ("kxmlgui" ,kxmlgui)
10636 ("libkdegames" ,libkdegames)
10637 ("glu" ,glu)
10638 ("qtbase" ,qtbase)
10639 ("qtdeclarative" ,qtdeclarative)
10640 ("qtsvg" ,qtsvg)))
10641 (home-page "https://games.kde.org/")
10642 (synopsis "Sudoku puzzle game and solver")
10643 (description "KSudoku is a Sudoku game and solver, supporting a range of
10644 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10645 puzzle sheets and find the solution to any Sudoku puzzle.
10646
10647 The word Sudoku means \"single number in an allotted place\" in Japanese.
10648 These are the basic rules: Every Sudoku is a square divided into 3x3
10649 subsquares with 3x3 cells each.
10650
10651 Some cells are filled with a number at the beginning. The remaining ones are
10652 to be filled by the player using numbers from 1 to 9, without repeating a
10653 number twice on each column, row or subsquare (each of them must contain only
10654 one 1, one 2, one 3, and so on). The game requires logic and patience.
10655 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10656 and experience.
10657
10658 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10659 board we use letters): arithmetic relationships between numbers are
10660 irrelevant.
10661
10662 This program supports also 16x16 games with numbers from 1 to 16 and 256
10663 cells with 16 cols, rows and subsquares!
10664
10665 More information at http://en.wikipedia.org/wiki/Sudoku
10666
10667 This package is part of the KDE games module.")
10668 (license (list license:gpl2+ license:fdl1.2+))))
10669
10670 (define-public klines
10671 (package
10672 (name "klines")
10673 (version "20.12.0")
10674 (source
10675 (origin
10676 (method url-fetch)
10677 (uri (string-append "mirror://kde/stable/release-service/" version
10678 "/src/klines-" version ".tar.xz"))
10679 (sha256
10680 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10681 (build-system qt-build-system)
10682 (native-inputs
10683 `(("extra-cmake-modules" ,extra-cmake-modules)
10684 ("kdoctools" ,kdoctools)))
10685 (inputs
10686 `(("kcompletion" ,kcompletion)
10687 ("kconfigwidgets" ,kconfigwidgets)
10688 ("kcoreaddons" ,kcoreaddons)
10689 ("kcrash" ,kcrash)
10690 ("kdbusaddons" ,kdbusaddons)
10691 ("ki18n" ,ki18n)
10692 ("kwidgetsaddons" ,kwidgetsaddons)
10693 ("kxmlgui" ,kxmlgui)
10694 ("libkdegames" ,libkdegames)
10695 ("qtbase" ,qtbase)
10696 ("qtdeclarative" ,qtdeclarative)))
10697 (home-page "https://games.kde.org/")
10698 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10699 (description "KLines is a simple but highly addictive one player game.
10700
10701 The player has to move the colored balls around the game board, gathering them
10702 into the lines of the same color by five. Once the line is complete it is
10703 removed from the board, therefore freeing precious space. In the same time
10704 the new balls keep arriving by three after each move, filling up the game
10705 board.
10706
10707 KLines is a single-player game where the player removes colored balls from the
10708 board by arranging them into lines of five or more. However, every time the
10709 player moves a ball, three more balls are added to the board.
10710
10711 This package is part of the KDE games module.")
10712 (license (list license:gpl2+ license:fdl1.2+))))
10713
10714 (define-public kgoldrunner
10715 (package
10716 (name "kgoldrunner")
10717 (version "20.12.0")
10718 (source
10719 (origin
10720 (method url-fetch)
10721 (uri (string-append "mirror://kde/stable/release-service/" version
10722 "/src/kgoldrunner-" version ".tar.xz"))
10723 (sha256
10724 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
10725 (build-system qt-build-system)
10726 (native-inputs
10727 `(("extra-cmake-modules" ,extra-cmake-modules)
10728 ("kdoctools" ,kdoctools)))
10729 (inputs
10730 `(("kcompletion" ,kcompletion)
10731 ("kcoreaddons" ,kcoreaddons)
10732 ("kcrash" ,kcrash)
10733 ("kdbusaddons" ,kdbusaddons)
10734 ("ki18n" ,ki18n)
10735 ("kio" ,kio)
10736 ("kwidgetsaddons" ,kwidgetsaddons)
10737 ("kxmlgui" ,kxmlgui)
10738 ("libkdegames" ,libkdegames)
10739 ("qtbase" ,qtbase)
10740 ("qtdeclarative" ,qtdeclarative)))
10741 (home-page "https://games.kde.org/")
10742 (synopsis "Action and puzzle solving game")
10743 (description "KGoldrunner is an action game where the hero runs through a
10744 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10745 gold nuggets and escape to the next level. Your enemies are also after the
10746 gold. Worse still, they are after you!.
10747
10748 KGoldrunner is a fast-paced platform game where the player must navigate a
10749 maze while collecting gold nuggets and avoiding enemies. A variety of level
10750 packs are included, as well as an editor to create new levels.
10751
10752 This package is part of the KDE games module.")
10753 (license (list license:gpl2+ license:fdl1.2+))))
10754
10755 (define-public kdiamond
10756 (package
10757 (name "kdiamond")
10758 (version "20.12.0")
10759 (source
10760 (origin
10761 (method url-fetch)
10762 (uri (string-append "mirror://kde/stable/release-service/" version
10763 "/src/kdiamond-" version ".tar.xz"))
10764 (sha256
10765 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
10766 (build-system qt-build-system)
10767 (native-inputs
10768 `(("extra-cmake-modules" ,extra-cmake-modules)
10769 ("kdoctools" ,kdoctools)))
10770 (inputs
10771 `(("kcompletion" ,kcompletion)
10772 ("kconfig" ,kconfig)
10773 ("kconfigwidgets" ,kconfigwidgets)
10774 ("kcoreaddons" ,kcoreaddons)
10775 ("kcrash" ,kcrash)
10776 ("kdbusaddons" ,kdbusaddons)
10777 ("ki18n" ,ki18n)
10778 ("knotifications" ,knotifications)
10779 ("knotifyconfig" ,knotifyconfig)
10780 ("kwidgetsaddons" ,kwidgetsaddons)
10781 ("kxmlgui" ,kxmlgui)
10782 ("libkdegames" ,libkdegames)
10783 ("qtbase" ,qtbase)
10784 ("qtdeclarative" ,qtdeclarative)))
10785 (home-page "https://games.kde.org/")
10786 (synopsis "Three-in-a-row game")
10787 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10788 features unlimited fun with randomly generated games and five difficulty
10789 levels with varying number of diamond colors and board sizes.
10790
10791 This package is part of the KDE games module.")
10792 (license (list license:gpl2+ license:fdl1.2+))))
10793
10794 (define-public kfourinline
10795 (package
10796 (name "kfourinline")
10797 (version "20.12.0")
10798 (source
10799 (origin
10800 (method url-fetch)
10801 (uri (string-append "mirror://kde/stable/release-service/" version
10802 "/src/kfourinline-" version ".tar.xz"))
10803 (sha256
10804 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10805 (build-system qt-build-system)
10806 (native-inputs
10807 `(("extra-cmake-modules" ,extra-cmake-modules)
10808 ("kdoctools" ,kdoctools)))
10809 (inputs
10810 `(("kcompletion" ,kcompletion)
10811 ("kconfig" ,kconfig)
10812 ("kconfigwidgets" ,kconfigwidgets)
10813 ("kcoreaddons" ,kcoreaddons)
10814 ("kcrash" ,kcrash)
10815 ("kdnssd" ,kdnssd)
10816 ("ki18n" ,ki18n)
10817 ("kxmlgui" ,kxmlgui)
10818 ("libkdegames" ,libkdegames)
10819 ("qtbase" ,qtbase)
10820 ("qtdeclarative" ,qtdeclarative)
10821 ("qtsvg" ,qtsvg)))
10822 (home-page "https://games.kde.org/")
10823 (synopsis "Place 4 pieces in a row")
10824 (description "KFourInLine is a board game for two players based on the
10825 Connect-Four game.
10826
10827 KFourInLine is a game where two players take turns dropping pieces into a
10828 grid, the winner being the first to place four pieces in a line.
10829
10830 This package is part of the KDE games module.")
10831 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10832
10833 (define-public kblackbox
10834 (package
10835 (name "kblackbox")
10836 (version "20.12.0")
10837 (source
10838 (origin
10839 (method url-fetch)
10840 (uri (string-append "mirror://kde/stable/release-service/" version
10841 "/src/kblackbox-" version ".tar.xz"))
10842 (sha256
10843 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10844 (build-system qt-build-system)
10845 (native-inputs
10846 `(("extra-cmake-modules" ,extra-cmake-modules)
10847 ("kdoctools" ,kdoctools)))
10848 (inputs
10849 `(("karchive" ,karchive)
10850 ("kcompletion" ,kcompletion)
10851 ("kconfig" ,kconfig)
10852 ("kcoreaddons" ,kcoreaddons)
10853 ("kcrash" ,kcrash)
10854 ("kdbusaddons" ,kdbusaddons)
10855 ("ki18n" ,ki18n)
10856 ("ktextwidgets" ,ktextwidgets)
10857 ("kxmlgui" ,kxmlgui)
10858 ("libkdegames" ,libkdegames)
10859 ("qtbase" ,qtbase)
10860 ("qtdeclarative" ,qtdeclarative)
10861 ("qtsvg" ,qtsvg)))
10862 (home-page "https://games.kde.org/")
10863 (synopsis "Find atoms in a grid by shooting electrons")
10864 (description "KBlackbox is a game of hide and seek played on a grid of
10865 boxes where the computer has hidden several balls. The position of the hidden
10866 balls can be deduced by shooting beams into the box
10867
10868 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10869 player shoots rays into the grid to deduce the positions of hidden objects.
10870
10871 This package is part of the KDE games module.")
10872 (license (list license:gpl2+ license:fdl1.2+))))
10873
10874 (define-public knetwalk
10875 (package
10876 (name "knetwalk")
10877 (version "20.12.0")
10878 (source
10879 (origin
10880 (method url-fetch)
10881 (uri (string-append "mirror://kde/stable/release-service/" version
10882 "/src/knetwalk-" version ".tar.xz"))
10883 (sha256
10884 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
10885 (build-system qt-build-system)
10886 (native-inputs
10887 `(("extra-cmake-modules" ,extra-cmake-modules)
10888 ("kdoctools" ,kdoctools)))
10889 (inputs
10890 `(("kcompletion" ,kcompletion)
10891 ("kconfig" ,kconfig)
10892 ("kconfigwidgets" ,kconfigwidgets)
10893 ("kcoreaddons" ,kcoreaddons)
10894 ("kcrash" ,kcrash)
10895 ("kdbusaddons" ,kdbusaddons)
10896 ("ki18n" ,ki18n)
10897 ("ktextwidgets" ,ktextwidgets)
10898 ("kwidgetsaddons" ,kwidgetsaddons)
10899 ("kxmlgui" ,kxmlgui)
10900 ("libkdegames" ,libkdegames)
10901 ("qtbase" ,qtbase)
10902 ("qtdeclarative" ,qtdeclarative)))
10903 (home-page "https://games.kde.org/")
10904 (synopsis "Turn the board pieces to get all computers connected")
10905 (description "KNetWalk is a small game where you have to build up a
10906 computer network by rotating the wires to connect the terminals to the server.
10907 When the network is build, a highscore-list comes up where competitions can be
10908 fought out.
10909
10910 KNetwalk is a puzzle game where the player arranges sections of wire to
10911 connect all the computers on the board.
10912
10913 This package is part of the KDE games module.")
10914 (license (list license:gpl2+ license:fdl1.2+))))
10915
10916 (define-public bomber
10917 (package
10918 (name "bomber")
10919 (version "20.12.0")
10920 (source
10921 (origin
10922 (method url-fetch)
10923 (uri (string-append "mirror://kde/stable/release-service/" version
10924 "/src/bomber-" version ".tar.xz"))
10925 (sha256
10926 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
10927 (build-system qt-build-system)
10928 (native-inputs
10929 `(("extra-cmake-modules" ,extra-cmake-modules)
10930 ("kdoctools" ,kdoctools)))
10931 (inputs
10932 `(("kcompletiom" ,kcompletion)
10933 ("kconfig" ,kconfig)
10934 ("kcoreaddons" ,kcoreaddons)
10935 ("kcrash" ,kcrash)
10936 ("kdbusaddons" ,kdbusaddons)
10937 ("ki18n" ,ki18n)
10938 ("kxmlgui" ,kxmlgui)
10939 ("libkdegames" ,libkdegames)
10940 ("qtbase" ,qtbase)
10941 ("qtdeclarative" ,qtdeclarative)))
10942 (home-page "https://games.kde.org/")
10943 (synopsis "Arcade bombing game")
10944 (description "Bomber is a single player arcade game.
10945
10946 The player is invading various cities in a plane that is decreasing in height.
10947 The goal of the game is to destroy all the buildings and advance to the next
10948 level. Each level gets a bit harder by increasing the speed of the plane and
10949 the height of the buildings.
10950
10951 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10952 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10953 not destroyed a building in your path, you will crash into it.
10954
10955 This package is part of the KDE games module.")
10956 (license (list license:gpl2+ license:fdl1.2+))))
10957
10958 (define-public granatier
10959 (package
10960 (name "granatier")
10961 (version "20.12.0")
10962 (source
10963 (origin
10964 (method url-fetch)
10965 (uri (string-append "mirror://kde/stable/release-service/" version
10966 "/src/granatier-" version ".tar.xz"))
10967 (sha256
10968 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
10969 (build-system qt-build-system)
10970 (native-inputs
10971 `(("extra-cmake-modules" ,extra-cmake-modules)
10972 ("kdoctools" ,kdoctools)))
10973 (inputs
10974 `(("kcompletion" ,kcompletion)
10975 ("kconfig" ,kconfig)
10976 ("kconfigwidgets" ,kconfigwidgets)
10977 ("kcoreaddons" ,kcoreaddons)
10978 ("kcrash" ,kcrash)
10979 ("kdbusaddons" ,kdbusaddons)
10980 ("ki18n" ,ki18n)
10981 ("knewstuff" ,knewstuff)
10982 ("kwidgetsaddons" ,kwidgetsaddons)
10983 ("kxmlgui" ,kxmlgui)
10984 ("libkdegames" ,libkdegames)
10985 ("qtbase" ,qtbase)
10986 ("qtdeclarative" ,qtdeclarative)
10987 ("qtsvg" ,qtsvg)))
10988 (home-page "https://games.kde.org/")
10989 (synopsis "Bomberman clone")
10990 (description "Granatier is a clone of the classic Bomberman game,
10991 inspired by the work of the Clanbomber clone.
10992
10993 This package is part of the KDE games module.")
10994 (license (list license:gpl2+ license:fdl1.2+))))
10995
10996 (define-public ksirk
10997 (package
10998 (name "ksirk")
10999 (version "20.12.0")
11000 (source
11001 (origin
11002 (method url-fetch)
11003 (uri (string-append "mirror://kde/stable/release-service/" version
11004 "/src/ksirk-" version ".tar.xz"))
11005 (sha256
11006 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
11007 (build-system qt-build-system)
11008 (native-inputs
11009 `(("extra-cmake-modules" ,extra-cmake-modules)
11010 ("kdoctools" ,kdoctools)))
11011 (inputs
11012 `(("kcrash" ,kcrash)
11013 ("ki18n" ,ki18n)
11014 ("kiconthemes" ,kiconthemes)
11015 ("kio" ,kio)
11016 ("knewstuff" ,knewstuff)
11017 ("kwallet" ,kwallet)
11018 ("kxmlgui" ,kxmlgui)
11019 ("libkdegames" ,libkdegames)
11020 ("phonon" ,phonon)
11021 ("qca" ,qca)
11022 ("qtbase" ,qtbase)
11023 ("qtdeclarative" ,qtdeclarative)
11024 ("qtsvg" ,qtsvg)
11025 ("zlib" ,zlib)))
11026 (home-page "https://games.kde.org/")
11027 (synopsis "Computerized version of the well known strategy board game
11028 'Risk'")
11029 (description "KsirK is a multi-player network-enabled game. The goal of
11030 the game is simply to conquer the world by attacking your neighbors with your
11031 armies.
11032
11033 At the beginning of the game, countries are distributed to all the players.
11034 Each country contains one army represented by an infantryman. Each player has
11035 some armies to distribute to his countries. On each turn, each player can
11036 attack his neighbours, eventually conquering one or more countries. At the
11037 end of each turn, some bonus armies are distributed to the players in function
11038 of the number of countries they own. The winner is the player that conquered
11039 all the world.
11040
11041 Features:
11042 @itemize
11043 @item Support for 1-6 human or computer players
11044 @item Multi-player gaming over a network
11045 @item You can easily create new skins with SVG graphics and the skin editor
11046 @item Hot New Stuff support. You can easily download and install new skins
11047 @end itemize
11048
11049 This package is part of the KDE games module.")
11050 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11051
11052 (define-public palapeli
11053 (package
11054 (name "palapeli")
11055 (version "20.12.0")
11056 (source
11057 (origin
11058 (method url-fetch)
11059 (uri (string-append "mirror://kde/stable/release-service/" version
11060 "/src/palapeli-" version ".tar.xz"))
11061 (sha256
11062 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
11063 (build-system qt-build-system)
11064 (native-inputs
11065 `(("extra-cmake-modules" ,extra-cmake-modules)
11066 ("kdoctools" ,kdoctools)))
11067 (inputs
11068 `(("karchive" ,karchive)
11069 ("kcompletion" ,kcompletion)
11070 ("kconfig" ,kconfig)
11071 ("kconfigwidgets" ,kconfigwidgets)
11072 ("kcoreaddons" ,kcoreaddons)
11073 ("kcrash" ,kcrash)
11074 ("kcrash" ,kcrash)
11075 ("ki18n" ,ki18n)
11076 ("ki18n" ,ki18n)
11077 ("kio" ,kio)
11078 ("kitemviews" ,kitemviews)
11079 ("knotifications" ,knotifications)
11080 ("kservice" ,kservice)
11081 ("kwidgetsaddons" ,kwidgetsaddons)
11082 ("kxmlgui" ,kxmlgui)
11083 ("libkdegames" ,libkdegames)
11084 ("qtbase" ,qtbase)
11085 ("qtdeclarative" ,qtdeclarative)
11086 ("qtsvg" ,qtsvg)
11087 ("shared-mime-info" ,shared-mime-info)))
11088 (home-page "https://games.kde.org/")
11089 (synopsis "Jigsaw puzzle game")
11090 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
11091 that genre, you are not limited to aligning pieces on imaginary grids. The
11092 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
11093 everything you do is saved on your disk immediately.
11094
11095 Palapeli is the Finnish word for jigsaw puzzle.
11096
11097 This package is part of the KDE games module.")
11098 (license license:gpl2+)))
11099
11100 (define-public kiriki
11101 (package
11102 (name "kiriki")
11103 (version "20.12.0")
11104 (source
11105 (origin
11106 (method url-fetch)
11107 (uri (string-append "mirror://kde/stable/release-service/" version
11108 "/src/kiriki-" version ".tar.xz"))
11109 (sha256
11110 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
11111 (build-system qt-build-system)
11112 (native-inputs
11113 `(("extra-cmake-modules" ,extra-cmake-modules)
11114 ("kdoctools" ,kdoctools)))
11115 (inputs
11116 `(("kcompletion" ,kcompletion)
11117 ("kconfig" ,kconfig)
11118 ("kconfigwidgets" ,kconfigwidgets)
11119 ("kcoreaddons" ,kcoreaddons)
11120 ("kcrash" ,kcrash)
11121 ("kdbusaddons" ,kdbusaddons)
11122 ("ki18n" ,ki18n)
11123 ("kiconthemes" ,kiconthemes)
11124 ("kxmlgui" ,kxmlgui)
11125 ("libkdegames" ,libkdegames)
11126 ("qtbase" ,qtbase)
11127 ("qtdeclarative" ,qtdeclarative)))
11128 (home-page "https://games.kde.org/")
11129 (synopsis "Yahtzee dice game")
11130 (description "Kiriki is an addictive and fun dice game, designed to be
11131 played by as many as six players.
11132
11133 Participants have to collect points by rolling five dice for up to three times
11134 per single turn to make combinations with the highest score.
11135
11136 This package is part of the KDE games module.")
11137 (license (list license:gpl2+ license:fdl1.2+))))
11138
11139 (define-public kigo
11140 (package
11141 (name "kigo")
11142 (version "20.12.0")
11143 (source
11144 (origin
11145 (method url-fetch)
11146 (uri (string-append "mirror://kde/stable/release-service/" version
11147 "/src/kigo-" version ".tar.xz"))
11148 (sha256
11149 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
11150 (build-system qt-build-system)
11151 (native-inputs
11152 `(("extra-cmake-modules" ,extra-cmake-modules)
11153 ("kdoctools" ,kdoctools)))
11154 (inputs
11155 `(("kconfig" ,kconfig)
11156 ("kconfigwidgets" ,kconfigwidgets)
11157 ("kcoreaddons" ,kcoreaddons)
11158 ("kcrash" ,kcrash)
11159 ("kdbusaddons" ,kdbusaddons)
11160 ("ki18n" ,ki18n)
11161 ("kio" ,kio)
11162 ("knewstuff" ,knewstuff)
11163 ("ktextwidgets" ,ktextwidgets)
11164 ("kxmlgui" ,kxmlgui)
11165 ("libkdegames" ,libkdegames)
11166 ("qtbase" ,qtbase)
11167 ("qtdeclarative" ,qtdeclarative)
11168 ("qtsvg" ,qtsvg)))
11169 (home-page "https://games.kde.org/")
11170 (synopsis "Go board game")
11171 (description "Kigo is an open-source implementation of the popular Go
11172 game.
11173
11174 Go is a strategic board game for two players. It is also known as
11175 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
11176 for being rich in strategic complexity despite its simple rules. The game is
11177 played by two players who alternately place black and white stones (playing
11178 pieces, now usually made of glass or plastic) on the vacant intersections of a
11179 grid of 19x19 lines (9x9 or 13x13 for easier games).
11180
11181 You also need to install a go engine, e.g. @code{gnugo}.
11182
11183 This package is part of the KDE games module.")
11184 (license license:gpl3+)))
11185
11186 (define-public kubrick
11187 (package
11188 (name "kubrick")
11189 (version "20.12.0")
11190 (source
11191 (origin
11192 (method url-fetch)
11193 (uri (string-append "mirror://kde/stable/release-service/" version
11194 "/src/kubrick-" version ".tar.xz"))
11195 (sha256
11196 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
11197 (build-system qt-build-system)
11198 (native-inputs
11199 `(("extra-cmake-modules" ,extra-cmake-modules)
11200 ("kdoctools" ,kdoctools)))
11201 (inputs
11202 `(("glu" ,glu)
11203 ("kconfig" ,kconfig)
11204 ("kconfigwidgets" ,kconfigwidgets)
11205 ("kcoreaddons" ,kcoreaddons)
11206 ("kcrash" ,kcrash)
11207 ("ki18n" ,ki18n)
11208 ("kio" ,kio)
11209 ("kwidgetsaddons" ,kwidgetsaddons)
11210 ("kxmlgui" ,kxmlgui)
11211 ("libkdegames" ,libkdegames)
11212 ("qtbase" ,qtbase)
11213 ("qtdeclarative" ,qtdeclarative)
11214 ("qtsvg" ,qtsvg)))
11215 (home-page "https://games.kde.org/")
11216 (synopsis "Game based on Rubik's Cube")
11217 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11218
11219 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11220 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11221 selection of puzzles at several levels of difficulty, as well as demos of
11222 pretty patterns and solution moves, or you can make up your own puzzles. The
11223 game has unlimited undo, redo, save and reload capabilities.
11224
11225 This package is part of the KDE games module.")
11226 (license (list license:gpl2+ license:fdl1.2+))))
11227
11228 (define-public lskat
11229 (package
11230 (name "lskat")
11231 (version "20.12.0")
11232 (source
11233 (origin
11234 (method url-fetch)
11235 (uri (string-append "mirror://kde/stable/release-service/" version
11236 "/src/lskat-" version ".tar.xz"))
11237 (sha256
11238 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11239 (build-system qt-build-system)
11240 (native-inputs
11241 `(("extra-cmake-modules" ,extra-cmake-modules)
11242 ("kdoctools" ,kdoctools)))
11243 (inputs
11244 `(("kcompletion" ,kcompletion)
11245 ("kconfig" ,kconfig)
11246 ("kcoreaddons" ,kcoreaddons)
11247 ("kcrash" ,kcrash)
11248 ("kguiaddons" ,kguiaddons)
11249 ("ki18n" ,ki18n)
11250 ("kwidgetsaddons" ,kwidgetsaddons)
11251 ("kxmlgui" ,kxmlgui)
11252 ("libkdegames" ,libkdegames)
11253 ("qtbase" ,qtbase)
11254 ("qtdeclarative" ,qtdeclarative)
11255 ("qtsvg" ,qtsvg)))
11256 (home-page "https://games.kde.org/")
11257 (synopsis "Lieutnant Skat card game")
11258 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11259 engaging card game for two players, where the second player is either live
11260 opponent, or a built in artificial intelligence.
11261
11262 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11263
11264 This package is part of the KDE games module.")
11265 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11266
11267 (define-public kapman
11268 (package
11269 (name "kapman")
11270 (version "20.12.0")
11271 (source
11272 (origin
11273 (method url-fetch)
11274 (uri (string-append "mirror://kde/stable/release-service/" version
11275 "/src/kapman-" version ".tar.xz"))
11276 (sha256
11277 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11278 (build-system qt-build-system)
11279 (native-inputs
11280 `(("extra-cmake-modules" ,extra-cmake-modules)
11281 ("kdoctools" ,kdoctools)))
11282 (inputs
11283 `(("kcompletion" ,kcompletion)
11284 ("kconfig" ,kconfig)
11285 ("kconfigwidgets" ,kconfigwidgets)
11286 ("kcoreaddons" ,kcoreaddons)
11287 ("kcrash" ,kcrash)
11288 ("kdbusaddons" ,kdbusaddons)
11289 ("ki18n" ,ki18n)
11290 ("kxmlgui" ,kxmlgui)
11291 ("libkdegames" ,libkdegames)
11292 ("qtbase" ,qtbase)
11293 ("qtdeclarative" ,qtdeclarative)
11294 ("qtsvg" ,qtsvg)))
11295 (home-page "https://games.kde.org/")
11296 (synopsis "Pac-Man clone")
11297 (description "Kapman is a clone of the well known game Pac-Man.
11298
11299 You must run through the maze to eat all pills without being captured by a
11300 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11301 few seconds. When a stage is cleared of pills and energizer the player is
11302 taken to the next stage with slightly increased game speed
11303
11304 This package is part of the KDE games module.")
11305 (license (list license:gpl2+ license:fdl1.2+))))
11306
11307 (define-public kspaceduel
11308 (package
11309 (name "kspaceduel")
11310 (version "20.12.0")
11311 (source
11312 (origin
11313 (method url-fetch)
11314 (uri (string-append "mirror://kde/stable/release-service/" version
11315 "/src/kspaceduel-" version ".tar.xz"))
11316 (sha256
11317 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11318 (build-system qt-build-system)
11319 (native-inputs
11320 `(("extra-cmake-modules" ,extra-cmake-modules)
11321 ("kdoctools" ,kdoctools)))
11322 (inputs
11323 `(("kcompletion" ,kcompletion)
11324 ("kconfig" ,kconfig)
11325 ("kconfigwidgets" ,kconfigwidgets)
11326 ("kcoreaddons" ,kcoreaddons)
11327 ("kcrash" ,kcrash)
11328 ("kdbusaddons" ,kdbusaddons)
11329 ("ki18n" ,ki18n)
11330 ("kxmlgui" ,kxmlgui)
11331 ("libkdegames" ,libkdegames)
11332 ("qtbase" ,qtbase)
11333 ("qtdeclarative" ,qtdeclarative)
11334 ("qtsvg" ,qtsvg)))
11335 (home-page "https://games.kde.org/")
11336 (synopsis "Two player game with shooting spaceships flying around a sun")
11337 (description "KSpaceduel is a space battle game for one or two players,
11338 where two ships fly around a star in a struggle to be the only survivor.
11339
11340 This package is part of the KDE games module.")
11341 (license (list license:gpl2+ license:fdl1.2+))))
11342
11343 (define-public bovo
11344 (package
11345 (name "bovo")
11346 (version "20.12.0")
11347 (source
11348 (origin
11349 (method url-fetch)
11350 (uri (string-append "mirror://kde/stable/release-service/" version
11351 "/src/bovo-" version ".tar.xz"))
11352 (sha256
11353 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11354 (build-system qt-build-system)
11355 (native-inputs
11356 `(("extra-cmake-modules" ,extra-cmake-modules)
11357 ("kdoctools" ,kdoctools)))
11358 (inputs
11359 `(("kcompletion" ,kcompletion)
11360 ("kcoreaddons" ,kcoreaddons)
11361 ("kcrash" ,kcrash)
11362 ("kdbusaddons" ,kdbusaddons)
11363 ("ki18n" ,ki18n)
11364 ("kxmlgui" ,kxmlgui)
11365 ("libkdegames" ,libkdegames)
11366 ("qtbase" ,qtbase)
11367 ("qtdeclarative" ,qtdeclarative)
11368 ("qtsvg" ,qtsvg)))
11369 (home-page "https://games.kde.org/")
11370 (synopsis "Classic pen and paper game: five in a line")
11371 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11372 points\") like game for two players, where the opponents alternate in placing
11373 their respective pictogram on the game board. The winner is the first to
11374 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11375 X and O, Naughts and Crosses)
11376
11377 This package is part of the KDE games module.")
11378 (license (list license:gpl2+ license:fdl1.2+))))
11379
11380 (define-public killbots
11381 (package
11382 (name "killbots")
11383 (version "20.12.0")
11384 (source
11385 (origin
11386 (method url-fetch)
11387 (uri (string-append "mirror://kde/stable/release-service/" version
11388 "/src/killbots-" version ".tar.xz"))
11389 (sha256
11390 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11391 (build-system qt-build-system)
11392 (native-inputs
11393 `(("extra-cmake-modules" ,extra-cmake-modules)
11394 ("kdoctools" ,kdoctools)))
11395 (inputs
11396 `(("kcompletion" ,kcompletion)
11397 ("kconfig" ,kconfig)
11398 ("kconfigwidgets" ,kconfigwidgets)
11399 ("kcoreaddons" ,kcoreaddons)
11400 ("kcrash" ,kcrash)
11401 ("kdbusaddons" ,kdbusaddons)
11402 ("ki18n" ,ki18n)
11403 ("kwidgetsaddons" ,kwidgetsaddons)
11404 ("kxmlgui" ,kxmlgui)
11405 ("libkdegames" ,libkdegames)
11406 ("qtbase" ,qtbase)
11407 ("qtdeclarative" ,qtdeclarative)))
11408 (home-page "https://games.kde.org/")
11409 (synopsis "Port of the classic BSD console game robots")
11410 (description "Killbots is a simple game of evading killer robots.
11411
11412 Who created the robots and why they have been programmed to destroy, no one
11413 knows. All that is known is that the robots are numerous and their sole
11414 objective is to destroy you. Fortunately for you, their creator has focused
11415 on quantity rather than quality and as a result the robots are severely
11416 lacking in intelligence. Your superior wit and a fancy teleportation device
11417 are your only weapons against the never-ending stream of mindless automatons.
11418
11419 This package is part of the KDE games module.")
11420 (license (list license:gpl2+ license:fdl1.2+))))
11421
11422 (define-public ksnakeduel
11423 (package
11424 (name "ksnakeduel")
11425 (version "20.12.0")
11426 (source
11427 (origin
11428 (method url-fetch)
11429 (uri (string-append "mirror://kde/stable/release-service/" version
11430 "/src/ksnakeduel-" version ".tar.xz"))
11431 (sha256
11432 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11433 (build-system qt-build-system)
11434 (native-inputs
11435 `(("extra-cmake-modules" ,extra-cmake-modules)
11436 ("kdoctools" ,kdoctools)))
11437 (inputs
11438 `(("kcompletion" ,kcompletion)
11439 ("kconfig" ,kconfig)
11440 ("kconfigwidgets" ,kconfigwidgets)
11441 ("kcoreaddons" ,kcoreaddons)
11442 ("kcrash" ,kcrash)
11443 ("kdbusaddons" ,kdbusaddons)
11444 ("kguiaddons" ,kguiaddons)
11445 ("ki18n" ,ki18n)
11446 ("kxmlgui" ,kxmlgui)
11447 ("libkdegames" ,libkdegames)
11448 ("qtbase" ,qtbase)
11449 ("qtdeclarative" ,qtdeclarative)
11450 ("qtsvg" ,qtsvg)))
11451 (home-page "https://games.kde.org/")
11452 (synopsis "Snake race played against the computer")
11453 (description "KSnakeDuel is a fast action game where you steer a snake
11454 which has to eat food. While eating the snake grows. But once a player
11455 collides with the other snake or the wall the game is lost. This becomes of
11456 course more and more difficult the longer the snakes grow.
11457
11458 This package is part of the KDE games module.")
11459 (license (list license:gpl2+ license:fdl1.2+))))
11460
11461 (define-public kollision
11462 (package
11463 (name "kollision")
11464 (version "20.12.0")
11465 (source
11466 (origin
11467 (method url-fetch)
11468 (uri (string-append "mirror://kde/stable/release-service/" version
11469 "/src/kollision-" version ".tar.xz"))
11470 (sha256
11471 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11472 (build-system qt-build-system)
11473 (native-inputs
11474 `(("extra-cmake-modules" ,extra-cmake-modules)
11475 ("kdoctools" ,kdoctools)))
11476 (inputs
11477 `(("kcompletion" ,kcompletion)
11478 ("kconfig" ,kconfig)
11479 ("kcoreaddons" ,kcoreaddons)
11480 ("kcrash" ,kcrash)
11481 ("kdbusaddons" ,kdbusaddons)
11482 ("ki18n" ,ki18n)
11483 ("kwidgetsaddons" ,kwidgetsaddons)
11484 ("kxmlgui" ,kxmlgui)
11485 ("libkdegames" ,libkdegames)
11486 ("qtbase" ,qtbase)
11487 ("qtdeclarative" ,qtdeclarative)))
11488 (home-page "https://games.kde.org/")
11489 (synopsis "Simple ball dodging game")
11490 (description "In Kollision you use mouse to control a small blue ball in a
11491 closed space environment filled with small red balls, which move about
11492 chaotically. Your goal is to avoid touching any of those red balls with your
11493 blue one, because the moment you do the game will be over. The longer you can
11494 stay in game the higher will your score be.
11495
11496 This package is part of the KDE games module.")
11497 (license (list license:gpl2+ license:fdl1.2+))))
11498
11499 (define-public knavalbattle
11500 (package
11501 (name "knavalbattle")
11502 (version "20.12.0")
11503 (source
11504 (origin
11505 (method url-fetch)
11506 (uri (string-append "mirror://kde/stable/release-service/" version
11507 "/src/knavalbattle-" version ".tar.xz"))
11508 (sha256
11509 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11510 (build-system qt-build-system)
11511 (native-inputs
11512 `(("extra-cmake-modules" ,extra-cmake-modules)
11513 ("kdoctools" ,kdoctools)))
11514 (inputs
11515 `(("kauth" ,kauth)
11516 ("kcompletion" ,kcompletion)
11517 ("kconfig" ,kconfig)
11518 ("kconfigwidgets" ,kconfigwidgets)
11519 ("kcoreaddons" ,kcoreaddons)
11520 ("kcrash" ,kcrash)
11521 ("kdbusaddons" ,kdbusaddons)
11522 ("kdnssd" ,kdnssd)
11523 ("ki18n" ,ki18n)
11524 ("ktextwidgets" ,ktextwidgets)
11525 ("kxmlgui" ,kxmlgui)
11526 ("libkdegames" ,libkdegames)
11527 ("qtbase" ,qtbase)
11528 ("qtdeclarative" ,qtdeclarative)))
11529 (home-page "https://games.kde.org/")
11530 (synopsis "Battleship board game with built-in game server")
11531 (description "KBattleship is a Battle Ship game for KDE.
11532
11533 Ships are placed on a board which represents the sea. Players try to hit each
11534 others ships in turns without knowing where they are placed. The first player
11535 to destroy all ships wins the game.
11536
11537 This package is part of the KDE games module.")
11538 (license (list license:gpl2+ license:fdl1.2+))))
11539
11540 (define-public kreversi
11541 (package
11542 (name "kreversi")
11543 (version "20.08.3")
11544 (source
11545 (origin
11546 (method url-fetch)
11547 (uri (string-append "mirror://kde/stable/release-service/" version
11548 "/src/kreversi-" version ".tar.xz"))
11549 (sha256
11550 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11551 (build-system qt-build-system)
11552 (native-inputs
11553 `(("extra-cmake-modules" ,extra-cmake-modules)
11554 ("kdoctools" ,kdoctools)))
11555 (inputs
11556 `(("kconfig" ,kconfig)
11557 ("kconfigwidgets" ,kconfigwidgets)
11558 ("kcoreaddons" ,kcoreaddons)
11559 ("kcrash" ,kcrash)
11560 ("kdbusaddons" ,kdbusaddons)
11561 ("kdeclarative" ,kdeclarative)
11562 ("ki18n" ,ki18n)
11563 ("kiconthemes" ,kiconthemes)
11564 ("kio" ,kio)
11565 ("kxmlgui" ,kxmlgui)
11566 ("libkdegames" ,libkdegames)
11567 ("qtbase" ,qtbase)
11568 ("qtdeclarative" ,qtdeclarative)
11569 ("qtsvg" ,qtsvg)))
11570 (home-page "https://games.kde.org/")
11571 (synopsis "Old reversi board game, also known as othello")
11572 (description "KReversi is a simple one player strategy game played
11573 against the computer.
11574
11575 If a player's piece is captured by an opposing player, that piece is turned
11576 over to reveal the color of that player. A winner is declared when one player
11577 has more pieces of his own color on the board and there are no more possible
11578 moves.
11579
11580 This package is part of the KDE games module.")
11581 (license (list license:gpl2+ license:fdl1.2+))))
11582
11583 (define-public ksquares
11584 (package
11585 (name "ksquares")
11586 (version "20.12.0")
11587 (source
11588 (origin
11589 (method url-fetch)
11590 (uri (string-append "mirror://kde/stable/release-service/" version
11591 "/src/ksquares-" version ".tar.xz"))
11592 (sha256
11593 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11594 (build-system qt-build-system)
11595 (native-inputs
11596 `(("extra-cmake-modules" ,extra-cmake-modules)
11597 ("kdoctools" ,kdoctools)))
11598 (inputs
11599 `(("kcompletion" ,kcompletion)
11600 ("kconfig" ,kconfig)
11601 ("kconfigwidgets" ,kconfigwidgets)
11602 ("kcoreaddons" ,kcoreaddons)
11603 ("kcrash" ,kcrash)
11604 ("kdbusaddons" ,kdbusaddons)
11605 ("ki18n" ,ki18n)
11606 ("kwidgetsaddons" ,kwidgetsaddons)
11607 ("kxmlgui" ,kxmlgui)
11608 ("libkdegames" ,libkdegames)
11609 ("qtbase" ,qtbase)
11610 ("qtdeclarative" ,qtdeclarative)))
11611 (home-page "https://games.kde.org/")
11612 (synopsis "Dots and Boxes game")
11613 (description "KSquares is an implementation of the popular paper based
11614 game Squares. Two players take turns connecting dots on a grid to complete
11615 squares, the player with the most squares wins.
11616
11617 This package is part of the KDE games module.")
11618 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11619
11620 (define-public kjumpingcube
11621 (package
11622 (name "kjumpingcube")
11623 (version "20.12.0")
11624 (source
11625 (origin
11626 (method url-fetch)
11627 (uri (string-append "mirror://kde/stable/release-service/" version
11628 "/src/kjumpingcube-" version ".tar.xz"))
11629 (sha256
11630 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11631 (build-system qt-build-system)
11632 (native-inputs
11633 `(("extra-cmake-modules" ,extra-cmake-modules)
11634 ("kdoctools" ,kdoctools)))
11635 (inputs
11636 `(("kconfig" ,kconfig)
11637 ("kconfigwidgets" ,kconfigwidgets)
11638 ("kcoreaddons" ,kcoreaddons)
11639 ("kcrash" ,kcrash)
11640 ("kdbusaddons" ,kdbusaddons)
11641 ("ki18n" ,ki18n)
11642 ("kio" ,kio)
11643 ("kwidgetsaddons" ,kwidgetsaddons)
11644 ("kxmlgui" ,kxmlgui)
11645 ("libkdegames" ,libkdegames)
11646 ("qtbase" ,qtbase)
11647 ("qtdeclarative" ,qtdeclarative)
11648 ("qtsvg" ,qtsvg)))
11649 (home-page "https://games.kde.org/")
11650 (synopsis "Simple tactical game for number-crunchers")
11651 (description "KJumpingcube is a simple tactical game for one or two
11652 players, played on a grid of numbered squares. Each turn, players compete for
11653 control of the board by capturing or adding to one square.
11654
11655 This package is part of the KDE games module.")
11656 (license (list license:gpl2+ license:fdl1.2+))))
11657
11658 (define-public xmoto
11659 (package
11660 (name "xmoto")
11661 (version "0.6.1")
11662 (source
11663 (origin
11664 (method git-fetch)
11665 (uri (git-reference
11666 (url "https://github.com/xmoto/xmoto")
11667 (commit version)))
11668 (file-name (git-file-name name version))
11669 (sha256
11670 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11671 (modules '((guix build utils)
11672 (ice-9 ftw)
11673 (srfi srfi-1)))
11674 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11675 ;; it appears to be incompatible with the (older) one bundled.
11676 (snippet
11677 `(begin
11678 (let ((keep '("chipmunk" "glad" "md5sum")))
11679 (with-directory-excursion "vendor"
11680 (for-each delete-file-recursively
11681 (lset-difference string=?
11682 (scandir ".")
11683 (cons* "." ".." keep))))
11684 (substitute* "src/CMakeLists.txt"
11685 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11686 (if (member library keep) line ""))))
11687 #t))))
11688 (build-system cmake-build-system)
11689 (arguments
11690 `(#:tests? #f ;no test
11691 #:phases
11692 (modify-phases %standard-phases
11693 (add-after 'unpack 'fix-hard-coded-directory
11694 (lambda* (#:key outputs #:allow-other-keys)
11695 (substitute* "src/common/VFileIO.cpp"
11696 (("/usr/share")
11697 (string-append (assoc-ref outputs "out") "/share")))
11698 #t))
11699 (add-before 'build 'set-SDL
11700 ;; Set correct environment for SDL.
11701 (lambda* (#:key inputs #:allow-other-keys)
11702 (setenv "CPATH"
11703 (string-append
11704 (assoc-ref inputs "sdl") "/include/SDL:"
11705 (or (getenv "CPATH") "")))
11706 #t))
11707 (add-after 'install 'unbundle-fonts
11708 ;; Unbundle DejaVuSans TTF files.
11709 (lambda* (#:key outputs inputs #:allow-other-keys)
11710 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11711 "/share/fonts/truetype/"))
11712 (target-dir (string-append (assoc-ref outputs "out")
11713 "/share/xmoto/Textures/Fonts/")))
11714 (for-each (lambda (f)
11715 (let ((font (string-append font-dir f))
11716 (target (string-append target-dir f)))
11717 (delete-file target)
11718 (symlink font target)))
11719 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11720 #t))))))
11721 (native-inputs
11722 `(("gettext" ,gettext-minimal)
11723 ("pkg-config" ,pkg-config)))
11724 (inputs
11725 `(("bzip2" ,bzip2)
11726 ("curl" ,curl)
11727 ("font-dejavu" ,font-dejavu)
11728 ("glu" ,glu)
11729 ("libjpeg" ,libjpeg-turbo)
11730 ("libpng" ,libpng)
11731 ("libxdg-basedir" ,libxdg-basedir)
11732 ("libxml2" ,libxml2)
11733 ("lua" ,lua-5.1)
11734 ("ode" ,ode)
11735 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11736 ("sqlite" ,sqlite)
11737 ("zlib" ,zlib)))
11738 (home-page "https://xmoto.tuxfamily.org/")
11739 (synopsis "2D motocross platform game")
11740 (description
11741 "X-Moto is a challenging 2D motocross platform game, where
11742 physics play an all important role in the gameplay. You need to
11743 control your bike to its limit, if you want to have a chance finishing
11744 the more difficult challenges.")
11745 (license (list license:gpl2+ ;whole project
11746 license:bsd-3 ;vendor/md5sum
11747 license:lgpl2.1+
11748 license:expat))))
11749
11750 (define-public eboard
11751 (package
11752 (name "eboard")
11753 (version "1.1.3")
11754 (source
11755 (origin
11756 (method git-fetch)
11757 (uri (git-reference
11758 (url "https://github.com/fbergo/eboard")
11759 (commit (string-append "v" version))))
11760 (file-name (git-file-name name version))
11761 (sha256
11762 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11763 (build-system gnu-build-system)
11764 (native-inputs
11765 `(("perl" ,perl)
11766 ("pkg-config" ,pkg-config)))
11767 (inputs
11768 `(("gtk+" ,gtk+-2)
11769 ("libpng" ,libpng)
11770 ("gstreamer" ,gstreamer)))
11771 (arguments
11772 `(#:tests? #f
11773 #:phases
11774 (modify-phases %standard-phases
11775 (replace 'configure
11776 (lambda* (#:key outputs #:allow-other-keys)
11777 (make-file-writable "eboard-config")
11778 (setenv "CC" "gcc")
11779 (invoke "./configure"
11780 (string-append "--prefix=" (assoc-ref outputs "out")))
11781 #t))
11782 (add-before 'install 'make-required-directories
11783 (lambda* (#:key outputs #:allow-other-keys)
11784 (mkdir-p (string-append (assoc-ref outputs "out")
11785 "/share/eboard"))
11786 #t)))))
11787 (synopsis "Graphical user interface to play chess")
11788 (description
11789 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11790 and chess engines.")
11791 (home-page "https://www.bergo.eng.br/eboard/")
11792 (license license:gpl2+)))
11793
11794 (define-public chessx
11795 (package
11796 (name "chessx")
11797 (version "1.5.6")
11798 (source
11799 (origin
11800 (method url-fetch)
11801 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11802 version "/chessx-" version ".tgz"))
11803 (sha256
11804 (base32 "01fjchil2h6ry2ywr0dwjw2g7zd29580cr4c74d5z74h999lp6nh"))))
11805 (build-system qt-build-system)
11806 (native-inputs
11807 `(("qttools" ,qttools)))
11808 (inputs
11809 `(("qtbase" ,qtbase)
11810 ("qtmultimedia" ,qtmultimedia)
11811 ("qtspeech" ,qtspeech)
11812 ("qtsvg" ,qtsvg)
11813 ("zlib" ,zlib)))
11814 (arguments
11815 `(#:tests? #f
11816 #:phases
11817 (modify-phases %standard-phases
11818 (add-after 'unpack 'fix-paths
11819 (lambda* (#:key inputs #:allow-other-keys)
11820 (substitute* "chessx.pro"
11821 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11822 (string-append (assoc-ref inputs "qttools") "/bin/lrelease")))
11823 #t))
11824 (add-after 'fix-paths 'make-qt-deterministic
11825 (lambda _
11826 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11827 #t))
11828 (replace 'configure
11829 (lambda _
11830 (invoke "qmake")
11831 #t))
11832 (replace 'install
11833 (lambda* (#:key outputs #:allow-other-keys)
11834 (let ((out (assoc-ref outputs "out")))
11835 (install-file "release/chessx" (string-append out "/bin"))
11836 (install-file "unix/chessx.desktop"
11837 (string-append out "/share/applications")))
11838 #t)))))
11839 (synopsis "Chess game database")
11840 (description
11841 "ChessX is a chess database. With ChessX you can operate on your
11842 collection of chess games in many ways: browse, edit, add, organize, analyze,
11843 etc. You can also play games on FICS or against an engine.")
11844 (home-page "http://chessx.sourceforge.net/")
11845 (license license:gpl2+)))
11846
11847 (define-public stockfish
11848 (package
11849 (name "stockfish")
11850 (version "13")
11851 (source
11852 (origin
11853 (method git-fetch)
11854 (uri (git-reference
11855 (url "https://github.com/official-stockfish/Stockfish")
11856 (commit (string-append "sf_" version))))
11857 (file-name (git-file-name name version))
11858 (sha256
11859 (base32 "15dfp9fnl3w7dgxhqmsm461amsysn646rj1arnzvwhy2i6ijhg2m"))))
11860 (build-system gnu-build-system)
11861 (inputs
11862 `(("neural-network"
11863 ,(origin
11864 (method url-fetch)
11865 (uri "https://tests.stockfishchess.org/api/nn/nn-62ef826d1a6d.nnue")
11866 (sha256
11867 (base32 "0qsy9rr4zgxrpgwhwbi96z01a2560am2b00q2klbj4bd39nq5vv2"))))))
11868 (arguments
11869 `(#:tests? #f
11870 #:make-flags (list "-C" "src"
11871 "build"
11872 (string-append "PREFIX="
11873 (assoc-ref %outputs "out"))
11874 (string-append "ARCH="
11875 ,(match (%current-system)
11876 ("x86_64-linux" "x86-64")
11877 ("i686-linux" "x86-32")
11878 ("aarch64-linux" "general-64")
11879 ("armhf-linux" "armv7")
11880 ("mips64el-linux" "general-64")
11881 (_ "general-32"))))
11882 #:phases (modify-phases %standard-phases
11883 (delete 'configure)
11884 ;; The official neural network file is needed for building
11885 ;; and is embedded in the resulting binary.
11886 (add-after 'unpack 'copy-net
11887 (lambda* (#:key inputs #:allow-other-keys)
11888 (copy-file (assoc-ref inputs "neural-network")
11889 "src/nn-62ef826d1a6d.nnue")
11890 #t)))))
11891 (synopsis "Strong chess engine")
11892 (description
11893 "Stockfish is a very strong chess engine. It is much stronger than the
11894 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11895 ChessX.")
11896 (home-page "https://stockfishchess.org/")
11897 (license license:gpl3+)))
11898
11899 (define-public barrage
11900 (package
11901 (name "barrage")
11902 (version "1.0.5")
11903 (source
11904 (origin
11905 (method url-fetch)
11906 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11907 "barrage-" version ".tar.gz"))
11908 (sha256
11909 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11910 (build-system gnu-build-system)
11911 (inputs
11912 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11913 ("sdl" ,sdl)
11914 ("sdl-mixer" ,sdl-mixer)))
11915 (arguments
11916 `(#:configure-flags
11917 (list
11918 (string-append "CFLAGS="
11919 "-I" (assoc-ref %build-inputs "sdl-mixer")
11920 "/include/SDL"))))
11921 (home-page "http://lgames.sourceforge.net/Barrage/")
11922 (synopsis "Violent point-and-click shooting game with nice effects")
11923 (description
11924 "Barrage is a rather destructive action game that puts you on a shooting
11925 range with the objective to hit as many dummy targets as possible within
11926 3 minutes. You control a gun that may either fire small or large grenades at
11927 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11928 get high scores.")
11929 (license license:gpl2+)))
11930
11931 (define-public burgerspace
11932 (package
11933 (name "burgerspace")
11934 (version "1.9.3")
11935 (source
11936 (origin
11937 (method url-fetch)
11938 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11939 "burgerspace-" version ".tar.gz"))
11940 (sha256
11941 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11942 (build-system gnu-build-system)
11943 (native-inputs
11944 `(("pkg-config" ,pkg-config)))
11945 (inputs
11946 `(("flatzebra" ,flatzebra)))
11947 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11948 (synopsis "Avoid evil foodstuffs and make burgers")
11949 (description
11950 "This is a clone of the classic game BurgerTime. In it, you play
11951 the part of a chef who must create burgers by stepping repeatedly on
11952 the ingredients until they fall into place. And to make things more
11953 complicated, you also must avoid evil animate food items while
11954 performing this task, with nothing but your trusty pepper shaker to
11955 protect you.")
11956 (license license:gpl2+)))
11957
11958 (define-public 7kaa
11959 (package
11960 (name "7kaa")
11961 (version "2.15.4p1")
11962 (source
11963 (origin
11964 (method url-fetch)
11965 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11966 "releases/download/v" version "/"
11967 "7kaa-" version ".tar.xz"))
11968 (sha256
11969 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
11970 (build-system gnu-build-system)
11971 (native-inputs
11972 `(("gettext" ,gettext-minimal)
11973 ("pkg-config" ,pkg-config)))
11974 (inputs
11975 `(("curl" ,curl)
11976 ("enet" ,enet)
11977 ("openal" ,openal)
11978 ("sdl2" ,sdl2)))
11979 (home-page "https://7kfans.com/")
11980 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11981 (description
11982 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11983 Strategy with the addition of trade, diplomacy, and espionage. The game
11984 enables players to compete against up to six other kingdoms allowing players
11985 to conquer opponents by defeating them in war (with troops or machines),
11986 capturing their buildings with spies, or offering opponents money for their
11987 kingdom.")
11988 (license license:gpl2+)))
11989
11990 (define-public neverball
11991 ;; Git version is 6-years younger than latest release.
11992 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
11993 (revision "1"))
11994 (package
11995 (name "neverball")
11996 (version (git-version "1.6.0" revision commit))
11997 (source
11998 (origin
11999 (method git-fetch)
12000 (uri (git-reference
12001 (url "https://github.com/Neverball/neverball")
12002 (commit commit)))
12003 (sha256
12004 (base32
12005 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
12006 (file-name (git-file-name name version))
12007 (modules '((guix build utils)))
12008 (snippet
12009 '(begin
12010 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
12011 (delete-file-recursively "data/ball/octocat")
12012 #t))))
12013 (build-system copy-build-system)
12014 (arguments
12015 `(#:install-plan
12016 '(("neverball" "bin/")
12017 ("neverputt" "bin/")
12018 ("mapc" "bin/")
12019 ("data" "share/games/neverball/")
12020 ("locale" "share/")
12021 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
12022 "neverlogos.svg"
12023 "svg readme.txt"))
12024 ("dist/" "share/applications" #:include ("neverball.desktop"
12025 "neverputt.desktop"))
12026 ("dist/neverball_16.png"
12027 "/share/icons/hicolor/16x16/apps/neverball.png")
12028 ("dist/neverball_24.png"
12029 "/share/icons/hicolor/24x24/apps/neverball.png")
12030 ("dist/neverball_32.png"
12031 "/share/icons/hicolor/32x32/apps/neverball.png")
12032 ("dist/neverball_48.png"
12033 "/share/icons/hicolor/48x48/apps/neverball.png")
12034 ("dist/neverball_64.png"
12035 "/share/icons/hicolor/64x64/apps/neverball.png")
12036 ("dist/neverball_128.png"
12037 "/share/icons/hicolor/128x128/apps/neverball.png")
12038 ("dist/neverball_256.png"
12039 "/share/icons/hicolor/256x256/apps/neverball.png")
12040 ("dist/neverball_512.png"
12041 "/share/icons/hicolor/512x512/apps/neverball.png")
12042 ("dist/neverputt_16.png"
12043 "/share/icons/hicolor/16x16/apps/neverputt.png")
12044 ("dist/neverputt_24.png"
12045 "/share/icons/hicolor/24x24/apps/neverputt.png")
12046 ("dist/neverputt_32.png"
12047 "/share/icons/hicolor/32x32/apps/neverputt.png")
12048 ("dist/neverputt_48.png"
12049 "/share/icons/hicolor/48x48/apps/neverputt.png")
12050 ("dist/neverputt_64.png"
12051 "/share/icons/hicolor/64x64/apps/neverputt.png")
12052 ("dist/neverputt_128.png"
12053 "/share/icons/hicolor/128x128/apps/neverputt.png")
12054 ("dist/neverputt_256.png"
12055 "/share/icons/hicolor/256x256/apps/neverputt.png")
12056 ("dist/neverputt_512.png"
12057 "/share/icons/hicolor/512x512/apps/neverputt.png")
12058 ("dist/" "share/man/man1" #:include ("mapc.1"))
12059 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
12060 ("doc/" "share/doc/neverball")
12061 ("README.md" "share/doc/neverball/"))
12062 #:phases
12063 (modify-phases %standard-phases
12064 (add-before 'install 'build
12065 (lambda* (#:key inputs outputs #:allow-other-keys)
12066 (let* ((out (assoc-ref outputs "out"))
12067 (sdl (assoc-ref inputs "sdl")))
12068 (invoke "make" "-j" (number->string (parallel-job-count))
12069 "--environment-overrides"
12070 "CC=gcc" "BUILD=release"
12071 (string-append "DATADIR="
12072 out
12073 "/share/games/neverball/data")
12074 (string-append "LOCALEDIR=" out "/share/locale")
12075 (string-append "SDL_CPPFLAGS=-I"
12076 sdl
12077 "/include/SDL2/")))
12078 #t))
12079 (add-after 'install 'fix-some-broken-fonts
12080 (lambda* (#:key outputs #:allow-other-keys)
12081 (let* ((out (assoc-ref outputs "out")))
12082 (wrap-program (string-append out "/bin/neverball")
12083 `("LANG" = ("en_US.utf8")))
12084 (wrap-program (string-append out "/bin/neverputt")
12085 `("LANG" = ("en_US.utf8"))))
12086 #t)))))
12087 (native-inputs
12088 `(("gettext" ,gettext-minimal))) ;for msgfmt
12089 (inputs
12090 `(("libjpeg" ,libjpeg-turbo)
12091 ("libpng" ,libpng)
12092 ("libvorbis" ,libvorbis)
12093 ("physfs" ,physfs)
12094 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
12095 (home-page "https://neverball.org/")
12096 (synopsis "3D floor-tilting game")
12097 (description
12098 "In the grand tradition of Marble Madness and Super Monkey Ball,
12099 Neverball has you guide a rolling ball through dangerous territory. Balance
12100 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
12101 and shovers to get to the goal. Race against the clock to collect coins to
12102 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
12103 game.") ;thanks to Debian for description
12104 (license license:gpl2+))))
12105
12106 (define-public pokerth
12107 (package
12108 (name "pokerth")
12109 (version "1.1.2")
12110 (source
12111 (origin
12112 (method url-fetch)
12113 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
12114 version "/pokerth-" version ".tar.gz"))
12115 (sha256
12116 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
12117 (modules '((guix build utils)))
12118 (snippet
12119 '(begin
12120 ;; Remove bundled websocketpp.
12121 (delete-file-recursively "src/third_party/websocketpp")
12122 (substitute* "pokerth_lib.pro"
12123 (("src/third_party/websocketpp")
12124 ""))
12125 #t))))
12126 (build-system qt-build-system)
12127 (inputs
12128 `(("boost" ,boost)
12129 ("curl" ,curl)
12130 ("gsasl" ,gsasl)
12131 ("libgcrypt" ,libgcrypt)
12132 ("libircclient" ,libircclient)
12133 ("protobuf" ,protobuf-2) ; remove package when no longer needed
12134 ("qtbase" ,qtbase)
12135 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
12136 ("sqlite" ,sqlite)
12137 ("tinyxml" ,tinyxml)
12138 ("websocketpp" ,websocketpp)
12139 ("zlib" ,zlib)))
12140 (arguments
12141 `(#:tests? #f ; No test suite
12142 #:phases
12143 (modify-phases %standard-phases
12144 (add-after 'unpack 'fix-paths
12145 (lambda* (#:key inputs #:allow-other-keys)
12146 (substitute* (find-files "." "\\.pro$")
12147 (("/opt/gsasl")
12148 (assoc-ref inputs "gsasl"))
12149 (("\\$\\$\\{PREFIX\\}/include/libircclient")
12150 (string-append (assoc-ref inputs "libircclient")
12151 "/include/libircclient"))
12152 (("LIB_DIRS =")
12153 (string-append "LIB_DIRS = "
12154 (assoc-ref inputs "boost") "/lib")))
12155 #t))
12156 (add-after 'unpack 'fix-build
12157 (lambda _
12158 ;; Fixes for Boost versions >= 1.66.
12159 (substitute* '("src/net/common/clientthread.cpp"
12160 "src/net/serveraccepthelper.h")
12161 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
12162 "")
12163 (("newSock->io_control\\(command\\);")
12164 "newSock->non_blocking(true);")
12165 (("acceptedSocket->io_control\\(command\\);")
12166 "acceptedSocket->non_blocking(true);"))
12167 #t))
12168 (replace 'configure
12169 (lambda* (#:key outputs #:allow-other-keys)
12170 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
12171 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
12172 (home-page "https://www.pokerth.net")
12173 (synopsis "Texas holdem poker game")
12174 (description
12175 "With PokerTH you can play the Texas holdem poker game, either against
12176 computer opponents or against real players online.")
12177 (license license:agpl3+)))
12178
12179 (define-public azimuth
12180 (package
12181 (name "azimuth")
12182 ;; Not marked as latest release, but it fixes a compiling issue
12183 ;; and adds the install target.
12184 (version "1.0.3")
12185 (source
12186 (origin
12187 (method git-fetch)
12188 (uri (git-reference
12189 (url "https://github.com/mdsteele/azimuth")
12190 (commit (string-append "v" version))))
12191 (file-name (git-file-name name version))
12192 (sha256
12193 (base32
12194 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
12195 (build-system gnu-build-system)
12196 (arguments
12197 `(#:test-target "test"
12198 #:phases
12199 (modify-phases %standard-phases
12200 (delete 'configure) ; no configure script
12201 ;; Build release version instead of debug version.
12202 (add-after 'unpack 'set-release
12203 (lambda _
12204 (setenv "BUILDTYPE" "release") #t))
12205 (add-after 'unpack 'fix-install ; set install directory
12206 (lambda* (#:key outputs #:allow-other-keys)
12207 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12208 (inputs `(("sdl" ,sdl)))
12209 (home-page "https://mdsteele.games/azimuth/")
12210 (synopsis "Metroidvania game with vector graphics")
12211 (description
12212 "Pilot your ship inside a planet to find and rescue the colonists trapped
12213 inside the Zenith Colony.")
12214 (license license:gpl3+)))
12215
12216 (define-public cgoban
12217 (package
12218 (name "cgoban")
12219 (version "1.9.14")
12220 (source
12221 (origin
12222 (method url-fetch)
12223 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12224 version "/cgoban-" version ".tar.gz"))
12225 (sha256
12226 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12227 (build-system gnu-build-system)
12228 (inputs
12229 `(("libx11" ,libx11)
12230 ("libxt" ,libxt)
12231 ("xorgproto" ,xorgproto)))
12232 (home-page "http://cgoban1.sourceforge.net/")
12233 (synopsis "Go client for X11")
12234 (description "Provides a large set of Go-related services for X11:
12235 @itemize
12236 @item Local games with precise implementation of the Chinese and Japanese rulesets
12237 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12238 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12239 such as GnuGo.
12240 @end itemize")
12241 (license license:gpl2+)))
12242
12243 (define-public passage
12244 (package
12245 (name "passage")
12246 (version "4")
12247 (source
12248 (origin
12249 (method url-fetch)
12250 (uri (string-append "mirror://sourceforge/hcsoftware/Passage/v"
12251 version "/Passage_v" version "_UnixSource.tar.gz"))
12252 (sha256
12253 (base32 "02ky4a4xdjvr71r58339jjrjyz76b5skcnbq4f8707mrln9vhby3"))))
12254 (build-system gnu-build-system)
12255 (arguments
12256 `(#:tests? #false ; there are none
12257 #:phases
12258 (modify-phases %standard-phases
12259 (add-after 'unpack 'chdir
12260 (lambda _
12261 (chdir "gamma256/gameSource")
12262 (system "cat Makefile.GnuLinux Makefile.all > Makefile")))
12263 (replace 'configure
12264 (lambda* (#:key outputs inputs #:allow-other-keys)
12265 (setenv "CPATH"
12266 (string-append
12267 (assoc-ref inputs "sdl") "/include/SDL:"
12268 (or (getenv "CPATH") "")))
12269 (let* ((out (assoc-ref outputs "out"))
12270 (assets (string-append out "/share/passage")))
12271 (substitute* "common.cpp"
12272 (("readTGA\\( \"graphics\"")
12273 (format #false "readTGA(\"~a/graphics\"" assets)))
12274 (substitute* "musicPlayer.cpp"
12275 (("readTGA\\( \"music\"")
12276 (format #false "readTGA(\"~a/music\"" assets))))))
12277 (replace 'install
12278 (lambda* (#:key outputs #:allow-other-keys)
12279 (let* ((out (assoc-ref outputs "out"))
12280 (bin (string-append out "/bin"))
12281 (assets (string-append out "/share/passage/")))
12282 (install-file "Passage" bin)
12283 (install-file "../documentation/Readme.txt" assets)
12284 (copy-recursively "graphics" (string-append assets "graphics"))
12285 (copy-recursively "music" (string-append assets "music"))
12286 (copy-recursively "settings" (string-append assets "settings"))))))))
12287 (inputs
12288 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
12289 (native-inputs
12290 `(("imagemagick" ,imagemagick)))
12291 (home-page "http://hcsoftware.sourceforge.net/passage/")
12292 (synopsis "Memento mori game")
12293 (description
12294 "Passage is meant to be a memento mori game. It presents an entire life,
12295 from young adulthood through old age and death, in the span of five minutes.
12296 Of course, it's a game, not a painting or a film, so the choices that you make
12297 as the player are crucial. There's no ``right'' way to play Passage, just as
12298 there's no right way to interpret it.")
12299 (license license:public-domain)))
12300
12301 (define-public paperview
12302 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12303 (revision "1"))
12304 (package
12305 (name "paperview")
12306 (version (git-version "0.0.1" revision commit)) ;no upstream release
12307 (source (origin
12308 (method git-fetch)
12309 (uri (git-reference
12310 (url "https://github.com/glouw/paperview")
12311 (commit commit)))
12312 (file-name (git-file-name name version))
12313 (sha256
12314 (base32
12315 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12316 (build-system gnu-build-system)
12317 (inputs
12318 `(("sdl2" ,sdl2)))
12319 (arguments
12320 '(#:tests? #f ;no tests
12321 #:make-flags
12322 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12323 #:phases
12324 (modify-phases %standard-phases
12325 (delete 'configure))))
12326 (home-page "https://github.com/glouw/paperview/")
12327 (synopsis "High performance X11 animated wallpaper setter")
12328 (description "High performance animated desktop background setter for
12329 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12330 game FPS.")
12331 (license license:unlicense))))
12332
12333 (define-public curseofwar
12334 (package
12335 (name "curseofwar")
12336 (version "1.3.0")
12337 (source
12338 (origin
12339 (method git-fetch)
12340 (uri (git-reference
12341 (url "https://github.com/a-nikolaev/curseofwar")
12342 (commit (string-append "v" version))))
12343 (file-name (git-file-name name version))
12344 (sha256
12345 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12346 (build-system gnu-build-system)
12347 (arguments
12348 `(#:tests? #f ; no tests
12349 #:make-flags
12350 (list (string-append "CC=" ,(cc-for-target))
12351 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12352 #:phases
12353 (modify-phases %standard-phases
12354 (delete 'configure))))
12355 (inputs `(("ncurses" ,ncurses)))
12356 (home-page "https://a-nikolaev.github.io/curseofwar/")
12357 (synopsis "Fast-paced action strategy game")
12358 (description "Curse of War is a fast-paced action strategy game originally
12359 implemented using ncurses user interface. An SDL graphical version is also
12360 available.")
12361 (license license:gpl3+)))