gnu: Use 'search-input-file' some more.
[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, 2015 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, 2021 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, 2021 Chris 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, 2021 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, 2021 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 © 2019 Pkill -9 <pkill9@runbox.com>
49 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
50 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
51 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
52 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
53 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
54 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
55 ;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
56 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
57 ;;; Copyright © 2020, 2021 Liliana Marie Prikler <liliana.prikler@gmail.com>
58 ;;; Copyright © 2020 Lu hux <luhux@outlook.com>
59 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
60 ;;; Copyright © 2021 Olivier Rojon <o.rojon@posteo.net>
61 ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
62 ;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
63 ;;; Copyright © 2021 David Pflug <david@pflug.io>
64 ;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
65 ;;; Copyright © 2021 Solene Rapenne <solene@perso.pw>
66 ;;; Copyright © 2021 Noisytoot <noisytoot@disroot.org>
67 ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
68 ;;;
69 ;;; This file is part of GNU Guix.
70 ;;;
71 ;;; GNU Guix is free software; you can redistribute it and/or modify it
72 ;;; under the terms of the GNU General Public License as published by
73 ;;; the Free Software Foundation; either version 3 of the License, or (at
74 ;;; your option) any later version.
75 ;;;
76 ;;; GNU Guix is distributed in the hope that it will be useful, but
77 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
78 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
79 ;;; GNU General Public License for more details.
80 ;;;
81 ;;; You should have received a copy of the GNU General Public License
82 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
83
84 (define-module (gnu packages games)
85 #:use-module (ice-9 match)
86 #:use-module ((guix licenses) #:prefix license:)
87 #:use-module (guix utils)
88 #:use-module (guix packages)
89 #:use-module (guix download)
90 #:use-module (guix git-download)
91 #:use-module (guix svn-download)
92 #:use-module (guix gexp)
93 #:use-module (gnu packages)
94 #:use-module (gnu packages adns)
95 #:use-module (gnu packages algebra)
96 #:use-module (gnu packages autotools)
97 #:use-module (gnu packages backup)
98 #:use-module (gnu packages base)
99 #:use-module (gnu packages build-tools)
100 #:use-module (gnu packages admin)
101 #:use-module (gnu packages audio)
102 #:use-module (gnu packages avahi)
103 #:use-module (gnu packages assembly)
104 #:use-module (gnu packages bash)
105 #:use-module (gnu packages bison)
106 #:use-module (gnu packages boost)
107 #:use-module (gnu packages check)
108 #:use-module (gnu packages cmake)
109 #:use-module (gnu packages compression)
110 #:use-module (gnu packages code)
111 #:use-module (gnu packages cpp)
112 #:use-module (gnu packages curl)
113 #:use-module (gnu packages crypto)
114 #:use-module (gnu packages cyrus-sasl)
115 #:use-module (gnu packages documentation)
116 #:use-module (gnu packages docbook)
117 #:use-module (gnu packages emulators)
118 #:use-module (gnu packages flex)
119 #:use-module (gnu packages fltk)
120 #:use-module (gnu packages fonts)
121 #:use-module (gnu packages fontutils)
122 #:use-module (gnu packages freedesktop)
123 #:use-module (gnu packages fribidi)
124 #:use-module (gnu packages game-development)
125 #:use-module (gnu packages gcc)
126 #:use-module (gnu packages gettext)
127 #:use-module (gnu packages ghostscript)
128 #:use-module (gnu packages gimp)
129 #:use-module (gnu packages gl)
130 #:use-module (gnu packages glib)
131 #:use-module (gnu packages gnome)
132 #:use-module (gnu packages gnu-doc)
133 #:use-module (gnu packages gnupg)
134 #:use-module (gnu packages gnuzilla)
135 #:use-module (gnu packages golang)
136 #:use-module (gnu packages gperf)
137 #:use-module (gnu packages graphics)
138 #:use-module (gnu packages gsasl)
139 #:use-module (gnu packages gstreamer)
140 #:use-module (gnu packages gtk)
141 #:use-module (gnu packages guile)
142 #:use-module (gnu packages haskell)
143 #:use-module (gnu packages haskell-crypto)
144 #:use-module (gnu packages haskell-xyz)
145 #:use-module (gnu packages icu4c)
146 #:use-module (gnu packages image)
147 #:use-module (gnu packages imagemagick)
148 #:use-module (gnu packages javascript)
149 #:use-module (gnu packages kde)
150 #:use-module (gnu packages kde-frameworks)
151 #:use-module (gnu packages less)
152 #:use-module (gnu packages libcanberra)
153 #:use-module (gnu packages libedit)
154 #:use-module (gnu packages libunwind)
155 #:use-module (gnu packages linux)
156 #:use-module (gnu packages llvm)
157 #:use-module (gnu packages lua)
158 #:use-module (gnu packages man)
159 #:use-module (gnu packages maths)
160 #:use-module (gnu packages messaging)
161 #:use-module (gnu packages mp3)
162 #:use-module (gnu packages music)
163 #:use-module (gnu packages multiprecision)
164 #:use-module (gnu packages ncurses)
165 #:use-module (gnu packages netpbm)
166 #:use-module (gnu packages networking)
167 #:use-module (gnu packages ocaml)
168 #:use-module (gnu packages opencl)
169 #:use-module (gnu packages pcre)
170 #:use-module (gnu packages perl)
171 #:use-module (gnu packages perl-check)
172 #:use-module (gnu packages perl-compression)
173 #:use-module (gnu packages pkg-config)
174 #:use-module (gnu packages protobuf)
175 #:use-module (gnu packages pulseaudio)
176 #:use-module (gnu packages python)
177 #:use-module (gnu packages python-web)
178 #:use-module (gnu packages python-xyz)
179 #:use-module (gnu packages qt)
180 #:use-module (gnu packages readline)
181 #:use-module (gnu packages ruby)
182 #:use-module (gnu packages shells)
183 #:use-module (gnu packages sdl)
184 #:use-module (gnu packages serialization)
185 #:use-module (gnu packages sqlite)
186 #:use-module (gnu packages squirrel)
187 #:use-module (gnu packages swig)
188 #:use-module (gnu packages tcl)
189 #:use-module (gnu packages terminals)
190 #:use-module (gnu packages texinfo)
191 #:use-module (gnu packages textutils)
192 #:use-module (gnu packages tls)
193 #:use-module (gnu packages upnp)
194 #:use-module (gnu packages video)
195 #:use-module (gnu packages vulkan)
196 #:use-module (gnu packages web)
197 #:use-module (gnu packages wget)
198 #:use-module (gnu packages wxwidgets)
199 #:use-module (gnu packages xdisorg)
200 #:use-module (gnu packages xorg)
201 #:use-module (gnu packages xiph)
202 #:use-module (gnu packages xml)
203 #:use-module (guix build-system copy)
204 #:use-module (guix build-system cmake)
205 #:use-module (guix build-system glib-or-gtk)
206 #:use-module (guix build-system gnu)
207 #:use-module (guix build-system go)
208 #:use-module (guix build-system meson)
209 #:use-module (guix build-system perl)
210 #:use-module (guix build-system python)
211 #:use-module (guix build-system qt)
212 #:use-module (guix build-system scons)
213 #:use-module (guix build-system trivial)
214 #:use-module ((srfi srfi-1) #:hide (zip))
215 #:use-module (srfi srfi-26))
216
217 (define-public abe
218 (package
219 (name "abe")
220 (version "1.1")
221 (source
222 (origin
223 (method url-fetch)
224 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
225 "/abe-" version ".tar.gz"))
226 (sha256
227 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
228 (build-system gnu-build-system)
229 (arguments
230 `(#:configure-flags
231 (list (string-append "--with-data-dir="
232 (assoc-ref %outputs "out")
233 "/share/abe"))
234 #:phases
235 (modify-phases %standard-phases
236 (replace 'bootstrap
237 (lambda _ (invoke "sh" "autogen.sh")))
238 (add-before 'build 'set-SDL
239 ;; Set correct environment for SDL.
240 (lambda* (#:key inputs #:allow-other-keys)
241 (setenv "CPATH"
242 (string-append
243 (assoc-ref inputs "sdl") "/include/SDL:"
244 (or (getenv "CPATH") "")))
245 #t))
246 (add-after 'install 'finalize-install
247 (lambda* (#:key outputs #:allow-other-keys)
248 (let ((share (string-append (assoc-ref outputs "out") "/share")))
249 ;; Installation script does not copy game data files.
250 (let ((data (string-append share "/abe")))
251 (for-each (lambda (dir)
252 (let ((target (string-append data "/" dir)))
253 (mkdir-p target)
254 (copy-recursively dir target)))
255 '("images" "maps" "sounds")))
256 ;; Create desktop file.
257 (let ((apps (string-append share "/applications")))
258 (mkdir-p apps)
259 (make-desktop-entry-file
260 (string-append apps "/abe.desktop")
261 #:name "Abe's Amazing Adventure"
262 #:exec ,name
263 #:categories '("AdventureGame" "Game")
264 #:keywords
265 '("side-scrolling" "adventure" "pyramid" "singleplayer")
266 #:comment
267 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
268 (#f "Side-scrolling game")))))
269 #t)))))
270 (native-inputs
271 `(("autoconf" ,autoconf)
272 ("automake" ,automake)))
273 (inputs
274 `(("libxi" ,libxi)
275 ("libxmu" ,libxmu)
276 ("libxt" ,libxt)
277 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
278 (home-page "http://abe.sourceforge.net")
279 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
280 (description
281 "Abe's Amazing Adventure is a scrolling,
282 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
283 the style of similar games for the Commodore+4.")
284 (license license:gpl2+)))
285
286 ;; Data package for adanaxisgpl.
287 (define adanaxis-mush
288 (let ((version "1.1.0"))
289 (origin
290 (method url-fetch)
291 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
292 version ".tar.gz"))
293 (sha256
294 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
295
296 (define-public adanaxisgpl
297 (package
298 (name "adanaxisgpl")
299 (version "1.2.5")
300 (source
301 (origin
302 (method url-fetch)
303 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
304 version ".tar.gz"))
305 (sha256
306 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
307 (modules '((guix build utils)))
308 (snippet
309 '(begin
310 ;; Necessary for building with gcc >=4.7.
311 (substitute* "src/Mushcore/MushcoreSingleton.h"
312 (("SingletonPtrSet\\(new SingletonType\\);")
313 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
314 ;; Avoid an "invalid conversion from const char* to char*" error.
315 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
316 (("char \\*end, \\*result;")
317 (string-append "const char *end;"
318 "\n"
319 "char *result;")))
320 #t))))
321 (build-system gnu-build-system)
322 (arguments
323 `(#:tests? #f ; no check target
324 #:phases
325 (modify-phases %standard-phases
326 (add-after 'install 'install-data
327 (lambda* (#:key inputs outputs #:allow-other-keys)
328 (let ((data (assoc-ref inputs "adanaxis-mush"))
329 (share (string-append (assoc-ref outputs "out")
330 "/share/" ,name "-" ,version)))
331 (mkdir-p share)
332 (invoke "tar" "xvf" data "-C" share)))))))
333 (native-inputs
334 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
335 (inputs
336 `(("expat" ,expat)
337 ("freeglut" ,freeglut)
338 ("glu" ,glu)
339 ("libjpeg" ,libjpeg-turbo)
340 ("libogg" ,libogg)
341 ("libtiff" ,libtiff)
342 ("libvorbis" ,libvorbis)
343 ("libx11" ,libx11)
344 ("libxext" ,libxext)
345 ("pcre" ,pcre)
346 ("sdl" ,sdl)
347 ("sdl-mixer" ,sdl-mixer)))
348 (home-page "https://www.mushware.com")
349 (synopsis "Action game in four spatial dimensions")
350 (description
351 "Adanaxis is a fast-moving first person shooter set in deep space, where
352 the fundamentals of space itself are changed. By adding another dimension to
353 space this game provides an environment with movement in four directions and
354 six planes of rotation. Initially the game explains the 4D control system via
355 a graphical sequence, before moving on to 30 levels of gameplay with numerous
356 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
357 mouse and joystick control, and original music.")
358 (license license:gpl2)))
359
360 (define-public alex4
361 (package
362 (name "alex4")
363 (version "1.2.1")
364 (source
365 (origin
366 (method git-fetch)
367 (uri (git-reference
368 (url "https://github.com/carstene1ns/alex4")
369 (commit version)))
370 (file-name (git-file-name name version))
371 (sha256
372 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
373 (build-system gnu-build-system)
374 (arguments
375 `(#:tests? #f ; no check target
376 #:make-flags
377 (list "CC=gcc"
378 "CFLAGS=-D_FILE_OFFSET_BITS=64"
379 (string-append "PREFIX=" (assoc-ref %outputs "out")))
380 #:phases
381 (modify-phases %standard-phases
382 (delete 'configure) ; no configure script
383 (add-after 'install 'install-data
384 (lambda* (#:key outputs #:allow-other-keys)
385 (let ((share (string-append (assoc-ref outputs "out")
386 "/share/" ,name)))
387 (install-file "alex4.ini" share)
388 #t))))))
389 (inputs
390 `(("allegro" ,allegro-4)
391 ("dumb" ,dumb-allegro4)))
392 (home-page "http://allegator.sourceforge.net/")
393 (synopsis "Retro platform game")
394 (description
395 "Guide Alex the Allegator through the jungle in order to save his
396 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
397 Plenty of classic platforming in four nice colors guaranteed!
398
399 The game includes a built-in editor so you can design and share your own maps.")
400 (license license:gpl2+)))
401
402 (define-public armagetronad
403 (package
404 (name "armagetronad")
405 (version "0.2.9.1.0")
406 (source (origin
407 (method url-fetch)
408 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
409 version "/armagetronad-" version ".tbz"))
410 (sha256
411 (base32
412 "18gn4sg4j5sw38ngb90sl50raliplrsgjcvy8fjwry733k0cgdjr"))))
413 (build-system gnu-build-system)
414 (native-inputs
415 `(("pkg-config" ,pkg-config)))
416 (inputs
417 `(("libxml2" ,libxml2)
418 ("sdl" ,sdl)
419 ("sdl-image" ,sdl-image)
420 ("freeglut" ,freeglut)
421 ("libpng" ,libpng)
422 ("libjpeg-turbo" ,libjpeg-turbo)))
423 (home-page "http://www.armagetronad.org")
424 (synopsis "Tron clone in 3D")
425 (description "Armagetron Advanced is a multiplayer game in 3d that
426 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
427 It's an old school arcade game slung into the 21st century. Highlights
428 include a customizable playing arena, HUD, unique graphics, and AI bots. For
429 the more advanced player there are new game modes and a wide variety of
430 physics settings to tweak as well.")
431 (license license:gpl2+)))
432
433 (define-public astromenace
434 (package
435 (name "astromenace")
436 (version "1.4.1")
437 (source
438 (origin
439 (method git-fetch)
440 (uri (git-reference
441 (url "https://github.com/viewizard/astromenace")
442 (commit (string-append "v" version))))
443 (file-name (git-file-name name version))
444 (sha256
445 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
446 (build-system cmake-build-system)
447 (arguments
448 `(#:tests? #f ;no test
449 #:configure-flags (list (string-append "-DDATADIR="
450 (assoc-ref %outputs "out")
451 "/share/astromenace"))
452 #:phases
453 (modify-phases %standard-phases
454 (replace 'install
455 ;; Upstream provides no install phase.
456 (lambda* (#:key inputs outputs #:allow-other-keys)
457 (let* ((out (assoc-ref outputs "out"))
458 (bin (string-append out "/bin"))
459 (share (string-append out "/share"))
460 (apps (string-append share "/applications"))
461 (data (string-append share "/astromenace"))
462 (icons (string-append share "/icons/hicolor/64x64/apps")))
463 (install-file "astromenace" bin)
464 (install-file "gamedata.vfs" data)
465 (let ((source (assoc-ref inputs "source")))
466 (with-directory-excursion (string-append source "/share")
467 (install-file "astromenace.desktop" apps)
468 (mkdir-p icons)
469 (copy-file "astromenace_64.png"
470 (string-append icons "/astromenace.png")))))
471 #t)))))
472 (inputs
473 `(("freealut" ,freealut)
474 ("freetype" ,freetype)
475 ("glu" ,glu)
476 ("libogg" ,libogg)
477 ("libvorbis" ,libvorbis)
478 ("openal" ,openal)
479 ("sdl2" ,sdl2)))
480 (home-page "https://www.viewizard.com/")
481 (synopsis "3D space shooter with spaceship upgrade possibilities")
482 (description
483 "Space is a vast area, an unbounded territory where it seems there is
484 a room for everybody, but reversal of fortune put things differently. The
485 hordes of hostile creatures crawled out from the dark corners of the universe,
486 craving to conquer your homeland. Their force is compelling, their legions
487 are interminable. However, humans didn't give up without a final showdown and
488 put their best pilot to fight back. These malicious invaders chose the wrong
489 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
490 regret their insolence.")
491 ;; Game is released under GPL3+ terms. Artwork is subject to CC
492 ;; BY-SA 4.0, and fonts to OFL1.1.
493 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
494
495 (define-public bastet
496 (package
497 (name "bastet")
498 (version "0.43.2")
499 (source
500 (origin
501 (method git-fetch)
502 (uri (git-reference
503 (url "https://github.com/fph/bastet")
504 (commit version)))
505 (file-name (git-file-name name version))
506 (sha256
507 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
508 (patches
509 (search-patches "bastet-change-source-of-unordered_set.patch"))))
510 (build-system gnu-build-system)
511 (arguments
512 `(#:make-flags
513 (list (string-append "CXXFLAGS=-I"
514 (assoc-ref %build-inputs "boost") "/include"))
515 #:phases
516 (modify-phases %standard-phases
517 (delete 'configure) ; no configure script
518 (replace 'check
519 ;; The 'Test' target builds the tests, but doesn't actually run them.
520 (lambda* (#:key make-flags #:allow-other-keys)
521 (apply invoke "make" "Test" make-flags)
522 (setenv "HOME" ".")
523 (invoke "./Test")))
524 (replace 'install
525 (lambda* (#:key outputs #:allow-other-keys)
526 (let* ((out (assoc-ref outputs "out"))
527 (share (string-append out "/share"))
528 (hicolor (string-append share "/icons/hicolor")))
529 (install-file "bastet"
530 (string-append out "/bin"))
531
532 (install-file "bastet.desktop"
533 (string-append share "/applications"))
534 (install-file "bastet.svg"
535 (string-append hicolor "/scalable/apps"))
536
537 (install-file "bastet.appdata.xml"
538 (string-append share "/appdata"))
539
540 (install-file "bastet.6"
541 (string-append out "/share/man/man6"))
542 #t))))))
543 (native-inputs
544 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
545 (inputs
546 `(("boost" ,boost)
547 ("ncurses" ,ncurses)))
548 (home-page "https://fph.altervista.org/prog/bastet.html")
549 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
550 (description
551 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
552 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
553 Instead, it uses a special algorithm to choose the worst brick possible.
554
555 Playing bastet can be a painful experience, especially if you usually make
556 canyons and wait for the long I-shaped block to clear four rows at a time.")
557 (license license:gpl3+)))
558
559 (define-public tetrinet
560 (package
561 (name "tetrinet")
562 (version "0.11")
563 (source
564 (origin
565 (method url-fetch)
566 (uri (string-append
567 "http://tetrinet.or.cz/download/tetrinet-" version
568 ".tar.bz2"))
569 (sha256
570 (base32
571 "0b4pddqz6is1771qmvcj8qqlr4in2djdbkk13agvp9yhfah2v8x7"))))
572 (build-system gnu-build-system)
573 (inputs
574 `(("ncurses" ,ncurses)))
575 (arguments
576 `(#:tests? #f ;no tests
577 #:make-flags '("CC=gcc")
578 #:phases
579 (modify-phases %standard-phases
580 (delete 'configure) ;no configure script
581 (add-after 'unpack 'fix-install-dir
582 (lambda* (#:key outputs #:allow-other-keys)
583 (let ((out (assoc-ref outputs "out")))
584 (mkdir-p (string-append out "/bin"))
585 (substitute* "Makefile"
586 (("/usr/games") (string-append out "/bin"))))))
587 (add-after 'install 'install-documentation
588 (lambda* (#:key outputs #:allow-other-keys)
589 (let* ((out (assoc-ref outputs "out"))
590 (doc (string-append out "/share/doc/" ,name "-" ,version)))
591 (for-each (lambda (file)
592 (install-file file doc))
593 (list "README" "tetrinet.txt"))))))))
594 (home-page "http://tetrinet.or.cz")
595 (synopsis "Terminal-based multiplayer Tetris clone")
596 (description "Tetrinet is a multiplayer Tetris-like game with powerups and
597 attacks you can use on opponents.")
598 (license license:public-domain)))
599
600 (define-public vitetris
601 (package
602 (name "vitetris")
603 (version "0.59.1")
604 (source
605 (origin
606 (method git-fetch)
607 (uri (git-reference
608 (url "https://github.com/vicgeralds/vitetris")
609 (commit (string-append "v" version))))
610 (sha256
611 (base32 "1ah1c5g7abksif0n8v5rb7r4pn2az20c3mkp4ak13vgs23ddmds5"))
612 (file-name (git-file-name name version))))
613 (build-system gnu-build-system)
614 (arguments
615 `(#:tests? #f ;no test
616 #:make-flags
617 (list ,(string-append "CC=" (cc-for-target))
618 (string-append "DESTDIR=" (assoc-ref %outputs "out")))
619 #:phases
620 (modify-phases %standard-phases
621 (replace 'configure
622 (lambda _
623 ;; the non standard configure script does not accept
624 ;; standard parameters -> invoke configure by hand
625 (invoke "./configure" "prefix=")
626 ;; src/src-conf.mk must be writable for the build step
627 (make-file-writable "src/src-conf.mk"))))))
628 (home-page "http://victornils.net/tetris/")
629 (synopsis "Terminal-based Tetris clone")
630 (description "Vitetris is a classic multiplayer Tetris clone for the
631 terminal.")
632 (license license:bsd-2)))
633
634 (define-public blobwars
635 (package
636 (name "blobwars")
637 (version "2.00")
638 (source
639 (origin
640 (method url-fetch)
641 (uri (string-append "mirror://sourceforge/blobwars/"
642 "blobwars-" version ".tar.gz"))
643 (sha256
644 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
645 (build-system gnu-build-system)
646 (arguments
647 `(#:tests? #f ;no test
648 #:make-flags
649 (let ((out (assoc-ref %outputs "out")))
650 (list (string-append "PREFIX=" out)
651 (string-append "BINDIR=" out "/bin/")
652 "USEPAK=1"
653 "RELEASE=1"))
654 #:phases
655 (modify-phases %standard-phases
656 (add-after 'unpack 'werror-begone
657 (lambda _
658 (substitute* "Makefile" (("-Werror") ""))
659 #t))
660 (delete 'configure)))) ;no configure script
661 (native-inputs
662 `(("gettext" ,gettext-minimal)
663 ("pkg-config" ,pkg-config)))
664 (inputs
665 `(("hicolor-icon-theme" ,hicolor-icon-theme)
666 ("sdl" ,(sdl-union (list sdl2
667 sdl2-image
668 sdl2-mixer
669 sdl2-ttf
670 sdl2-net)))))
671 (home-page "https://sourceforge.net/projects/blobwars/")
672 (synopsis "Platform action game featuring a blob with a lot of weapons")
673 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
674 in the Blobwars series. You take on the role of a fearless Blob agent. Your
675 mission is to infiltrate various enemy bases and rescue as many MIAs as
676 possible, while battling many vicious aliens.")
677 (license (list license:gpl2 ; For code and graphics
678 license:cc0 ; Music and sounds have specific licenses
679 license:cc-by3.0 ; see /doc/readme
680 license:cc-by-sa3.0
681 license:lgpl2.1+
682 license:bsd-2))))
683
684 (define-public bsd-games
685 (package
686 (name "bsd-games")
687 (version "2.17.0")
688 (source
689 (origin
690 (method url-fetch)
691 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
692 (sha256
693 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
694 (patches
695 (search-patches
696 ;; thanks Arch, and Debian
697 "bsd-games-2.17-64bit.patch"
698 "bsd-games-bad-ntohl-cast.patch"
699 "bsd-games-gamescreen.h.patch"
700 "bsd-games-getline.patch"
701 "bsd-games-null-check.patch"
702 "bsd-games-number.c-and-test.patch"
703 "bsd-games-stdio.h.patch"
704 "bsd-games-prevent-name-collisions.patch"
705 ;; Guix customizations
706 "bsd-games-add-configure-config.patch"
707 "bsd-games-dont-install-empty-files.patch"
708 "bsd-games-add-wrapper.patch"))))
709 (build-system gnu-build-system)
710 (native-inputs
711 `(("flex" ,flex)
712 ("bison" ,bison)))
713 (inputs
714 `(("curses" ,ncurses)
715 ("pager" ,less)
716 ("miscfiles" ,miscfiles)
717 ("openssl" ,openssl))) ;used only by 'factor'
718 (arguments
719 `(#:phases
720 (modify-phases %standard-phases
721 (replace 'configure
722 (lambda* (#:key outputs inputs #:allow-other-keys)
723 (let* ((out (assoc-ref outputs "out"))
724 (bin (string-append out "/bin"))
725 (doc (string-append out "/share/doc/bsd-games-" ,version))
726 (man (string-append out "/share/man"))
727 (word-list (search-input-file inputs "/share/web2"))
728 (static-data (string-append out "/share/games/bsd-games"))
729 ;; Not a "./" because of substitute* in 'patch-install
730 ;; below. The .// allow us not to mess with the games'
731 ;; code any further: we just use a wrapper script that
732 ;; cd's to a BSD_GAMES_DIR. :]
733 (save-files ".//"))
734 (substitute* "configure"
735 (("/usr/share/man") man)
736 (("/usr/share/doc/bsd-games") doc)
737 (("/usr/share/[^\n/]*") static-data)
738 (("/var/games") save-files)
739 (("/usr/bin/less") (which "less"))
740 (("(/usr/bin|/usr/games)") bin))
741 (substitute* "config.params" (("WORD_LIST") word-list))
742 (substitute* "wrapper" (("STATIC_DATA") static-data))
743 (invoke "./configure"))
744 #t))
745 (add-before 'install 'patch-install
746 ;; Some games need a writable directory containing pre-maded files.
747 ;; The files get installed to the Store. Then the wrapper kicks in.
748 (lambda* (#:key outputs #:allow-other-keys)
749 (let* ((out (assoc-ref outputs "out"))
750 (static-data (string-append out "/share/games/bsd-games"))
751 (save-files ".//"))
752 (substitute* "Makeconfig" ((save-files) static-data)))
753 #t))
754 (add-after 'install 'install-documents
755 (lambda* (#:key outputs #:allow-other-keys)
756 (let* ((out (assoc-ref outputs "out"))
757 (doc (string-append out "/share/doc/bsd-games-" ,version)))
758 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
759 (for-each
760 (lambda(file) (install-file file doc))
761 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
762 "phantasia-COPYRIGHT")))
763 #t)))))
764 (home-page "https://github.com/vattam/BSDGames")
765 (synopsis "Collection of the old text-based games and amusements")
766 (description
767 "These are the BSD games. See the fortune-mod package for fortunes.
768
769 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
770 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
771 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
772 the $$ from the cave, anger the snake, and get out alive), tetris (game of
773 lining up the falling bricks of different shapes), and worm (eat, grow big,
774 and neither bite your tail, nor ram the wall).
775
776 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
777 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
778 the input), factor (factorizes a number), number (translates numbers into
779 text), pig (translates from English to Pig Latin), pom (should print the
780 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
781 in terminal), random (prints randomly chosen lines from files, or returns a
782 random exit-code), and wtf (explains what do some acronyms mean).
783
784 Board: backgammon (lead the men out of board faster than the friend do),
785 boggle (find the words in the square of letters), dab (game of dots and
786 boxes), gomoku (game of five in a row), hangman (guess a word before man is
787 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
788 canfield, cribbage, fish (juniors game), and mille.
789
790 Quests: adventure (search for treasures with the help of wizard),
791 battlestar (explore the world around, starting from dying spaceship),
792 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
793 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
794
795 Quizzes: arithmetic and quiz.")
796 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
797 ;; not bearing copyright notices, probably fall under the terms of the UCB
798 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
799 ;; warning in regard to the fortune databases."
800 (license (list
801 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
802 ;; lib/strlcpy.c, wargames/wargames.6
803 license:bsd-3
804 ;; dab and hunt. Files: adventure/extern.h,
805 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
806 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
807 ;; hack/extern.h, robots/auto.c, sail/display.h,
808 ;; sail/restart.h, wargames/wargames
809 license:bsd-4
810 ;; wtf (the game)
811 license:public-domain
812 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
813 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
814
815
816 (define-public bzflag
817 (package
818 (name "bzflag")
819 (version "2.4.22")
820 (source
821 (origin
822 (method url-fetch)
823 (uri (string-append "https://download.bzflag.org/bzflag/source/"
824 version "/bzflag-" version ".tar.bz2"))
825 (sha256
826 (base32 "0kba0011nswc2csqlzkd7bas307zm5813zlnby5vsmxn08rnar4y"))))
827 (build-system gnu-build-system)
828 (arguments
829 `(#:phases
830 (modify-phases %standard-phases
831 (add-after 'install 'install-desktop-file-and-icons
832 (lambda* (#:key outputs #:allow-other-keys)
833 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
834 (data (string-append share "/bzflag"))
835 (hicolor (string-append share "/icons/hicolor"))
836 (applications (string-append share "/applications")))
837 ;; Move desktop file.
838 (install-file (string-append data "/bzflag.desktop")
839 applications)
840 ;; Install icons.
841 (for-each (lambda (size)
842 (let* ((dim (string-append size "x" size))
843 (dir (string-append hicolor "/" dim "/apps")))
844 (mkdir-p dir)
845 (copy-file
846 (string-append data "/bzflag-" dim ".png")
847 (string-append dir "/bzflag.png"))))
848 '("48" "256")))
849 #t)))))
850 (native-inputs
851 `(("pkg-config" ,pkg-config)))
852 (inputs
853 `(("c-ares" ,c-ares)
854 ("curl" ,curl)
855 ("glew" ,glew)
856 ("glu" ,glu)
857 ("sdl2" ,sdl2)
858 ("zlib" ,zlib)))
859 (home-page "https://www.bzflag.org/")
860 (synopsis "3D first person tank battle game")
861 (description
862 "BZFlag is a 3D multi-player multiplatform tank battle game that
863 allows users to play against each other in a network environment.
864 There are five teams: red, green, blue, purple and rogue (rogue tanks
865 are black). Destroying a player on another team scores a win, while
866 being destroyed or destroying a teammate scores a loss. Rogues have
867 no teammates (not even other rogues), so they cannot shoot teammates
868 and they do not have a team score.
869
870 There are two main styles of play: capture-the-flag and free-for-all.
871 In capture-the-flag, each team (except rogues) has a team base and
872 each team with at least one player has a team flag. The object is to
873 capture an enemy team's flag by bringing it to your team's base. This
874 destroys every player on the captured team, subtracts one from that
875 team's score, and adds one to your team's score. In free-for-all,
876 there are no team flags or team bases. The object is simply to get as
877 high a score as possible.")
878 ;; The game is dual-licensed.
879 (license (list license:lgpl2.1 license:mpl2.0))))
880
881 (define-public cataclysm-dda
882 (package
883 (name "cataclysm-dda")
884 (version "0.F-2")
885 (source
886 (origin
887 (method git-fetch)
888 (uri (git-reference
889 (url "https://github.com/CleverRaven/Cataclysm-DDA")
890 (commit version)))
891 (sha256
892 (base32 "1wzsri6rh2fm7078hw0y4x7lqjs6ak4a66d05szfiinnxyn4w1ph"))
893 (file-name (git-file-name name version))))
894 (build-system gnu-build-system)
895 (arguments
896 '(#:make-flags
897 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
898 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
899 "LOCALIZE=1" "LANGUAGES=all")
900 #:phases
901 (modify-phases %standard-phases
902 (delete 'configure)
903 ;; Apparently we can't do make on both tiles and a console version at
904 ;; the same time anymore, so we have to either "make clean" between
905 ;; builds or do some other hackery. See:
906 ;; https://github.com/CleverRaven/Cataclysm-DDA/issues/42598#issuecomment-667702746
907 (add-after 'install 'make-clean-pre-tiles
908 (lambda* (#:key make-flags outputs #:allow-other-keys)
909 ;; Change prefix directory and enable tile graphics and sound.
910 (invoke "make" "clean")))
911 (add-after 'make-clean-pre-tiles 'build-tiles
912 (lambda* (#:key make-flags outputs #:allow-other-keys)
913 ;; Change prefix directory and enable tile graphics and sound.
914 (apply invoke "make" "TILES=1" "SOUND=1"
915 (string-append "PREFIX="
916 (assoc-ref outputs "tiles"))
917 (cdr make-flags))))
918 (add-after 'build-tiles 'install-tiles
919 (lambda* (#:key make-flags outputs #:allow-other-keys)
920 (apply invoke "make" "install" "TILES=1" "SOUND=1"
921 (string-append "PREFIX="
922 (assoc-ref outputs "tiles"))
923 (cdr make-flags)))))
924 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
925 ;; input in order to support tests.
926 #:tests? #f))
927 (outputs '("out"
928 "tiles")) ;for tile graphics and sound support
929 (native-inputs
930 `(("gettext" ,gettext-minimal)
931 ("pkg-config" ,pkg-config)
932 ("astyle" ,astyle)))
933 (inputs
934 `(("freetype" ,freetype)
935 ("libogg" ,libogg)
936 ("libvorbis" ,libvorbis)
937 ("ncurses" ,ncurses)
938 ("sdl2" ,sdl2)
939 ("sdl2-image" ,sdl2-image)
940 ("sdl2-ttf" ,sdl2-ttf)
941 ("sdl2-mixer" ,sdl2-mixer)))
942 (home-page "https://cataclysmdda.org/")
943 (synopsis "Survival horror roguelike video game")
944 (description
945 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
946 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
947 procedurally generated world. Scavenge the remnants of a dead civilization
948 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
949 to get you out of Dodge. Fight to defeat or escape from a wide variety of
950 powerful monstrosities, from zombies to giant insects to killer robots and
951 things far stranger and deadlier, and against the others like yourself, that
952 want what you have.")
953 (license license:cc-by-sa3.0)))
954
955 (define-public cockatrice
956 (let ((release-date "2021-01-26"))
957 (package
958 (name "cockatrice")
959 (version "2.8.0")
960 (source
961 (origin
962 (method git-fetch)
963 (uri (git-reference
964 (url "https://github.com/Cockatrice/Cockatrice")
965 (commit (string-append release-date "-Release-" version))))
966 (file-name (git-file-name name version))
967 (sha256
968 (base32
969 "0q8ffcklb2b7hcqhy3d2f9kz9aw22pp04pc9y4sslyqmf17pwnz9"))
970 (modules '((guix build utils)))
971 (snippet
972 ;; Strip image URLs as they point towards non-free web services
973 '(substitute* "cockatrice/src/settings/downloadsettings.cpp"
974 (("downloadURLs.append\\(\".*\"\\);") "")))))
975 (build-system qt-build-system)
976 (arguments
977 `(#:configure-flags '("-DWITH_SERVER=1"
978 "-DWITH_CLIENT=1"
979 "-DWITH_ORACLE=1"
980 "-DTEST=1")))
981 (native-inputs
982 `(("googletest" ,googletest)
983 ("pkg-config" ,pkg-config)))
984 (inputs
985 `(("protobuf" ,protobuf)
986 ("qtbase" ,qtbase-5)
987 ("qtmultimedia" ,qtmultimedia)
988 ("qtsvg" ,qtsvg)
989 ("qttools" ,qttools)
990 ("qtwebsockets" ,qtwebsockets)
991 ("xz" ,xz)
992 ("zlib" ,zlib)))
993 (home-page "https://cockatrice.github.io")
994 (synopsis "Tabletop card game simulator")
995 (description "Cockatrice is a program for playing tabletop card games
996 over a network. Its server design prevents users from manipulating the game
997 for unfair advantage. The client also provides a single-player mode, which
998 allows users to brew while offline.")
999 (license license:gpl2))))
1000
1001 (define-public corsix-th
1002 (package
1003 (name "corsix-th")
1004 (version "0.65.1")
1005 (source
1006 (origin
1007 (method git-fetch)
1008 (uri (git-reference
1009 (url "https://github.com/CorsixTH/CorsixTH")
1010 (commit (string-append "v" version))))
1011 (file-name (git-file-name name version))
1012 (sha256
1013 (base32 "0hw92ln9jm9v55drmbfqjng58yshgwfpv7fqynryrg3gvg8zhbvh"))))
1014 (build-system cmake-build-system)
1015 (arguments
1016 `(#:phases
1017 (modify-phases %standard-phases
1018 (add-after 'install 'wrap-binary
1019 (lambda _
1020 ;; Set Lua module paths and default MIDI soundfont on startup.
1021 (let* ((out (assoc-ref %outputs "out"))
1022 (fluid (assoc-ref %build-inputs "fluid-3"))
1023 (lua-version ,(version-major+minor (package-version lua)))
1024 (lua-cpath
1025 (map (lambda (lib)
1026 (string-append
1027 (assoc-ref %build-inputs (string-append "lua-" lib))
1028 "/lib/lua/" lua-version "/?.so"))
1029 '("filesystem" "lpeg"))))
1030 (wrap-program (string-append out "/bin/corsix-th")
1031 `("LUA_CPATH" ";" = ,lua-cpath)
1032 `("SDL_SOUNDFONTS" ":" suffix
1033 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
1034 #t)))
1035 #:tests? #f)) ; TODO need busted package to run tests
1036 ;; Omit Lua-Socket dependency to disable automatic updates.
1037 (inputs
1038 `(("ffmpeg" ,ffmpeg)
1039 ("fluid-3" ,fluid-3)
1040 ("freetype" ,freetype)
1041 ("lua" ,lua)
1042 ("lua-filesystem" ,lua-filesystem)
1043 ("lua-lpeg" ,lua-lpeg)
1044 ("sdl2" ,sdl2)
1045 ("sdl2-mixer" ,sdl2-mixer)))
1046 (home-page "https://corsixth.com")
1047 (synopsis "Implementation of the @i{Theme Hospital} game engine")
1048 (description
1049 "This package provides a reimplementation of the 1997 Bullfrog business
1050 simulation game @i{Theme Hospital}. As well as faithfully recreating the
1051 original engine, CorsixTH adds support for high resolutions, custom levels and
1052 more. This package does @emph{not} provide the game assets.")
1053 (license (list
1054 license:expat ; main license
1055 license:bsd-3)))) ; CorsixTH/Src/random.c
1056
1057 (define-public cowsay
1058 (package
1059 (name "cowsay")
1060 (version "3.04")
1061 (source (origin
1062 (method git-fetch)
1063 (uri (git-reference
1064 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
1065 (commit (string-append name "-" version))))
1066 (file-name (git-file-name name version))
1067 (sha256
1068 (base32
1069 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
1070 (build-system gnu-build-system)
1071 (arguments
1072 `(#:phases
1073 (modify-phases %standard-phases
1074 (delete 'configure) ; no configure script
1075 (delete 'build) ; nothing to be built
1076 (replace 'install
1077 (lambda* (#:key outputs #:allow-other-keys)
1078 (invoke "sh" "install.sh"
1079 (assoc-ref outputs "out"))))
1080 (delete 'check)
1081 (add-after 'install 'check
1082 (lambda* (#:key outputs #:allow-other-keys)
1083 (invoke (string-append (assoc-ref outputs "out")
1084 "/bin/cowsay")
1085 "We're done!"))))))
1086 (inputs
1087 `(("perl" ,perl)))
1088 (home-page (string-append "https://web.archive.org/web/20071026043648/"
1089 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
1090 (synopsis "Speaking cow text filter")
1091 (description "Cowsay is basically a text filter. Send some text into it,
1092 and you get a cow saying your text. If you think a talking cow isn't enough,
1093 cows can think too: all you have to do is run @command{cowthink}. If you're
1094 tired of cows, a variety of other ASCII-art messengers are available.")
1095 (license license:gpl3+)))
1096
1097 (define-public lolcat
1098 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
1099 (revision "0"))
1100 (package
1101 (name "lolcat")
1102 (version (git-version "1.0" revision commit))
1103 (source
1104 (origin
1105 (method git-fetch)
1106 (uri (git-reference
1107 (url "https://github.com/jaseg/lolcat")
1108 (commit commit)))
1109 (sha256
1110 (base32
1111 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
1112 (file-name (git-file-name name version))))
1113 (build-system gnu-build-system)
1114 (arguments
1115 `(#:tests? #f ; no check target
1116 #:make-flags
1117 (list ,(string-append "CC=" (cc-for-target)))
1118 #:phases
1119 (modify-phases %standard-phases
1120 (delete 'bootstrap)
1121 (delete 'configure)
1122 (replace 'install
1123 (lambda* (#:key outputs #:allow-other-keys)
1124 (let* ((out (assoc-ref outputs "out"))
1125 (dest (string-append out "/bin")))
1126 (mkdir-p dest)
1127 (install-file "lolcat" dest)
1128 (install-file "censor" dest)
1129 #t))))))
1130 (home-page "https://github.com/jaseg/lolcat")
1131 (synopsis "Rainbow coloring effect for text console display")
1132 (description "@command{lolcat} concatenates files and streams like
1133 regular @command{cat}, but it also adds terminal escape codes between
1134 characters and lines resulting in a rainbow effect.")
1135 (license license:wtfpl2))))
1136
1137 (define-public falltergeist
1138 (package
1139 (name "falltergeist")
1140 (version "0.3.1")
1141 (source (origin
1142 (method git-fetch)
1143 (uri (git-reference
1144 (url "https://github.com/falltergeist/falltergeist")
1145 (commit version)))
1146 (file-name (git-file-name name version))
1147 (sha256
1148 (base32
1149 "05cg58i2g32wbmrvmdsicic8xs83gld3qr1p7r4lnlckcl1l7dy4"))))
1150 (build-system cmake-build-system)
1151 (arguments
1152 `(#:tests? #f)) ; no tests provided
1153 (native-inputs `(("pkg-config" ,pkg-config)))
1154 (inputs `(("sdl" ,(sdl-union (list sdl2
1155 sdl2-image
1156 sdl2-mixer)))
1157 ("glew" ,glew)
1158 ("glm" ,glm)))
1159 (home-page "https://falltergeist.org/")
1160 (synopsis "Fallout 2 game engine")
1161 (description "This package provides the Fallout 2 game engine. Game data
1162 should be placed in @file{~/.local/share/falltergeist}.")
1163 (license license:gpl3+)))
1164
1165 (define-public foobillard++
1166 ;; Even though this latest revision is old already, stable release is
1167 ;; lagging way behind it, and has issues with textures rendering.
1168 (let ((svn-revision 170))
1169 (package
1170 (name "foobillard++")
1171 (version (string-append "3.43-r" (number->string svn-revision)))
1172 (source
1173 (origin
1174 (method svn-fetch)
1175 (uri (svn-reference
1176 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1177 (revision svn-revision)))
1178 (file-name (git-file-name name version))
1179 (sha256
1180 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1181 (patches
1182 (search-patches "foobillard++-pkg-config.patch"))
1183 (modules '((guix build utils)))
1184 (snippet
1185 '(begin
1186 ;; Unfortunately, the game includes background music with
1187 ;; a non-commercial clause. Delete it.
1188 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1189 #t))))
1190 (build-system gnu-build-system)
1191 (arguments
1192 `(#:configure-flags
1193 (list
1194 ;; Install data in a less exotic location.
1195 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1196 ;; Prevent a build error about undefined trigonometric functions.
1197 "--enable-fastmath=no")
1198 #:phases
1199 (modify-phases %standard-phases
1200 (add-after 'unpack 'fix-makefile
1201 ;; Remove hard-coded directories. Also fix installation
1202 ;; rule: it tries to move around non-existent files or
1203 ;; files already moved.
1204 (lambda* (#:key outputs #:allow-other-keys)
1205 (substitute* "Makefile.am"
1206 (("/usr") (assoc-ref outputs "out"))
1207 (("cp .*?/foobillardplus\\.desktop.*") "")
1208 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1209 ""))
1210 #t))
1211 (add-after 'unpack 'unbundle-font
1212 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1213 ;; LinBiolinum_aS.ttf, which are not provided by
1214 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1215 ;; them yet.
1216 (lambda* (#:key inputs #:allow-other-keys)
1217 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1218 "/share/fonts/truetype/")))
1219 (with-directory-excursion "data"
1220 (for-each (lambda (f)
1221 (delete-file f)
1222 (symlink (string-append dejavu f) f))
1223 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1224 #t))
1225 (replace 'bootstrap
1226 (lambda _
1227 (invoke "aclocal" "--force")
1228 (invoke "autoconf" "-f")
1229 (invoke "autoheader" "-f")
1230 (invoke "automake" "-a" "-c" "-f")))
1231 (add-before 'build 'prepare-build
1232 ;; Set correct environment for SDL.
1233 (lambda* (#:key inputs #:allow-other-keys)
1234 (setenv "CPATH"
1235 (string-append
1236 (search-input-directory inputs "include/SDL")
1237 ":" (or (getenv "CPATH") "")))))
1238 (add-before 'build 'fix-settings-directory
1239 ;; Hide foobillardplus settings directory in $HOME.
1240 (lambda _
1241 (substitute* "src/history.c"
1242 (("/foobillardplus-data") "/.foobillardplus"))
1243 #t))
1244 (add-before 'install 'create-directories
1245 ;; Install process does not create directories before
1246 ;; trying to move file in it.
1247 (lambda* (#:key outputs #:allow-other-keys)
1248 (let ((out (assoc-ref outputs "out")))
1249 (mkdir-p (string-append out "/share/icons"))
1250 (mkdir-p (string-append out "/share/applications")))
1251 #t))
1252 (add-after 'install 'symlink-executable
1253 ;; Symlink executable to $out/bin.
1254 (lambda* (#:key outputs #:allow-other-keys)
1255 (let* ((out (assoc-ref outputs "out"))
1256 (bin (string-append out "/bin")))
1257 (mkdir-p bin)
1258 (with-directory-excursion bin
1259 (symlink "../share/foobillardplus/bin/foobillardplus"
1260 "foobillardplus"))
1261 #t))))))
1262 (native-inputs
1263 `(("autoconf" ,autoconf)
1264 ("automake" ,automake)
1265 ("pkg-config" ,pkg-config)))
1266 (inputs
1267 `(("font-dejavu" ,font-dejavu)
1268 ("freetype" ,freetype)
1269 ("glu" ,glu)
1270 ("libpng" ,libpng)
1271 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1272 (home-page "http://foobillardplus.sourceforge.net/")
1273 (synopsis "3D billiard game")
1274 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1275 based on the original foobillard 3.0a sources from Florian Berger.
1276 You can play it with one or two players or against the computer.
1277
1278 The game features:
1279
1280 @itemize
1281 @item Wood paneled table with gold covers and gold diamonds.
1282 @item Reflections on balls.
1283 @item Zoom in and out, rotation, different angles and bird's eye view.
1284 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1285 @item Tournaments. Compete against other players.
1286 @item Animated cue with strength and eccentric hit adjustment.
1287 @item Jump shots and snipping.
1288 @item Realistic gameplay and billiard sounds.
1289 @item Red-Green stereo.
1290 @item And much more.
1291 @end itemize")
1292 (license (list license:gpl2 license:silofl1.1)))))
1293
1294 (define-public freedoom
1295 (package
1296 (name "freedoom")
1297 (version "0.12.1")
1298 (source
1299 (origin
1300 (method git-fetch)
1301 (uri (git-reference
1302 (url "https://github.com/freedoom/freedoom")
1303 (commit (string-append "v" version))))
1304 (file-name (git-file-name name version))
1305 (sha256
1306 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1307 (build-system gnu-build-system)
1308 (arguments
1309 '(#:make-flags
1310 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1311 #:tests? #f ; no check target
1312 #:phases
1313 (modify-phases %standard-phases
1314 (delete 'bootstrap)
1315 (replace 'configure
1316 (lambda* (#:key inputs outputs #:allow-other-keys)
1317 (let* ((freedoom (assoc-ref outputs "out"))
1318 (wad-dir (string-append freedoom "/share/games/doom")))
1319 ;; Make sure that the install scripts know where to find
1320 ;; the appropriate WAD files.
1321 (substitute* "dist/freedoom"
1322 (("IWAD=freedm.wad")
1323 (string-append "IWAD=" wad-dir "/freedm.wad"))
1324 (("IWAD=freedoom1.wad")
1325 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1326 (("IWAD=freedoom2.wad")
1327 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1328 #t))))))
1329 (native-inputs
1330 `(("asciidoc" ,asciidoc)
1331 ("deutex" ,deutex)
1332 ("python" ,python)
1333 ("python-pillow" ,python-pillow)))
1334 (home-page "https://freedoom.github.io/")
1335 (synopsis "Free content game based on the Doom engine")
1336 (native-search-paths
1337 (list (search-path-specification
1338 (variable "DOOMWADDIR")
1339 (files '("share/games/doom")))
1340 (search-path-specification
1341 (variable "DOOMWADPATH")
1342 (files '("share/games/doom")))))
1343 (description
1344 "The Freedoom project aims to create a complete free content first person
1345 shooter game. Freedoom by itself is just the raw material for a game: it must
1346 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1347 played. Freedoom complements the Doom engine with free levels, artwork, sound
1348 effects and music to make a completely free game.")
1349 (license license:bsd-3)))
1350
1351 (define-public freedroidrpg
1352 (package
1353 (name "freedroidrpg")
1354 (version "0.16.1")
1355 (source
1356 (origin
1357 (method url-fetch)
1358 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1359 "freedroidRPG-" (version-major+minor version) "/"
1360 "freedroidRPG-" version ".tar.gz"))
1361 (sha256
1362 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1363 (build-system gnu-build-system)
1364 (arguments
1365 `(#:configure-flags
1366 (list
1367 (string-append "CFLAGS="
1368 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1369 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1370 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1371 "--enable-opengl")
1372 ;; FIXME: the test suite fails with the following error output:
1373 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1374 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1375 #:tests? #f))
1376 (native-inputs
1377 `(("pkg-config" ,pkg-config)))
1378 (inputs
1379 `(("glu" ,glu)
1380 ("libjpeg" ,libjpeg-turbo)
1381 ("libogg" ,libogg)
1382 ("libpng" ,libpng)
1383 ("libvorbis" ,libvorbis)
1384 ("mesa" ,mesa)
1385 ("python" ,python-wrapper)
1386 ("sdl" ,sdl)
1387 ("sdl-gfx" ,sdl-gfx)
1388 ("sdl-image" ,sdl-image)
1389 ("sdl-mixer" ,sdl-mixer)
1390 ("zlib" ,zlib)))
1391 (home-page "https://www.freedroid.org/")
1392 (synopsis "Isometric role-playing game against killer robots")
1393 (description
1394 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1395 The game tells the story of a world destroyed by a conflict between robots and
1396 their human masters. To restore peace to humankind, the player must complete
1397 numerous quests while fighting off rebelling robots---either by taking control
1398 of them, or by simply blasting them to pieces with melee and ranged weapons in
1399 real-time combat.")
1400 (license (list license:expat ; lua/
1401 license:gpl3 ; src/gen_savestruct.py
1402 license:gpl2+)))) ; the rest
1403
1404 (define-public golly
1405 (package
1406 (name "golly")
1407 (version "3.3")
1408 (source (origin
1409 (method url-fetch)
1410 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1411 version "/golly-" version
1412 "-src.tar.gz"))
1413 (sha256
1414 (base32
1415 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1416 (build-system gnu-build-system)
1417 (arguments
1418 '(#:make-flags (list "CC=gcc"
1419 (string-append "GOLLYDIR="
1420 (assoc-ref %outputs "out")
1421 "/share/golly"))
1422 #:tests? #f ; no check target
1423 #:phases
1424 (modify-phases %standard-phases
1425 (replace 'configure
1426 (lambda* (#:key inputs #:allow-other-keys)
1427 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1428 ;; properly set the path to the Python shared library. This
1429 ;; substitution acheives the same end by different means.
1430 (substitute* "gui-wx/wxprefs.cpp"
1431 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1432 (string-append "pythonlib = \""
1433 (assoc-ref inputs "python")
1434 "/lib/libpython-2.7.so\"")))
1435 #t))
1436 (replace 'build
1437 (lambda* (#:key make-flags outputs #:allow-other-keys)
1438 (with-directory-excursion "gui-wx"
1439 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1440 (replace 'install
1441 (lambda* (#:key outputs #:allow-other-keys)
1442 (let* ((out (assoc-ref outputs "out"))
1443 (bin (string-append out "/bin"))
1444 (doc (string-append out "/share/doc/golly"))
1445 (pixmaps (string-append out "/share/pixmaps"))
1446 (share (string-append out "/share/golly")))
1447 (for-each (lambda (binary)
1448 (install-file binary bin))
1449 '("bgolly" "golly"))
1450 (for-each (lambda (document)
1451 (install-file
1452 (string-append "docs/" document ".html")
1453 doc))
1454 '("License" "ReadMe" "ToDo"))
1455 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1456 (for-each (lambda (folder)
1457 (copy-recursively
1458 folder
1459 (string-append share "/" folder)))
1460 '("Help" "Patterns" "Rules" "Scripts")))
1461 #t)))))
1462 (native-inputs
1463 `(("lua" ,lua)))
1464 (inputs
1465 `(("glu" ,glu)
1466 ("mesa" ,mesa)
1467 ("python" ,python-2)
1468 ("wxwidgets" ,wxwidgets-gtk2)
1469 ("zlib" ,zlib)))
1470 (home-page "http://golly.sourceforge.net/")
1471 (synopsis "Software for exploring cellular automata")
1472 (description
1473 "Golly simulates Conway's Game of Life and many other types of cellular
1474 automata. The following features are available:
1475 @enumerate
1476 @item Support for bounded and unbounded universes, with cells of up to 256
1477 states.
1478 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1479 algorithm.
1480 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1481 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1482 @item Scriptable via Lua or Python.
1483 @item Extracting patterns, rules and scripts from zip files.
1484 @item Downloading patterns, rules and scripts from online archives.
1485 @item Pasting patterns from the clipboard.
1486 @item Unlimited undo/redo.
1487 @item Configurable keyboard shortcuts.
1488 @item Auto fit option to keep patterns within the view.
1489 @end enumerate")
1490 (license license:gpl2+)))
1491
1492 (define-public joycond
1493 (let ((commit "f9a66914622514c13997c2bf7ec20fa98e9dfc1d")
1494 (revision "1"))
1495 (package
1496 (name "joycond")
1497 (version (git-version "0.1.0" revision commit))
1498 (source
1499 (origin
1500 (method git-fetch)
1501 (uri (git-reference
1502 (url "https://github.com/DanielOgorchock/joycond")
1503 (commit commit)))
1504 (file-name (git-file-name name version))
1505 (sha256
1506 (base32 "07z86yp27vxc0b44jgvf1vpa69rh3wdvd1xbzcsrj3f32743pv5a"))))
1507 (build-system cmake-build-system)
1508 (arguments
1509 `(#:tests? #f ;no test suite
1510 #:phases
1511 (modify-phases %standard-phases
1512 (add-after 'unpack 'fix-bin-location
1513 (lambda* (#:key outputs #:allow-other-keys)
1514 (let ((out (assoc-ref outputs "out")))
1515 (substitute* "CMakeLists.txt"
1516 (("/lib/udev/rules.d")
1517 (string-append out "/lib/udev/rules.d"))
1518 (("/etc/systemd/system")
1519 (string-append out "/etc/systemd/system"))
1520 (("/etc/modules-load.d")
1521 (string-append out "/etc/modules-load.d"))
1522 (("/usr/bin")
1523 (string-append out "/bin")))))))))
1524 (native-inputs `(("pkg-config" ,pkg-config)))
1525 (inputs
1526 `(("eudev" ,eudev)
1527 ("libevdev" ,libevdev)))
1528 (home-page "https://github.com/DanielOgorchock/joycond")
1529 (synopsis "Joy-Con controller daemon")
1530 (description "This package provides a userspace daemon for the Nintendo
1531 Joy-Con controllers.")
1532 (license license:gpl3))))
1533
1534 (define-public julius
1535 (package
1536 (name "julius")
1537 (version "1.6.0")
1538 (source
1539 (origin
1540 (method git-fetch)
1541 (uri (git-reference
1542 (url "https://github.com/bvschaik/julius")
1543 (commit (string-append "v" version))))
1544 (file-name (git-file-name name version))
1545 (sha256
1546 (base32 "0nfdn8n6ywhm69ckz9a1chl5xxiqyaj3l337wadsbppnpscjihrc"))
1547 ;; Remove unused bundled libraries.
1548 (modules '((guix build utils)))
1549 (snippet
1550 '(begin
1551 (with-directory-excursion "ext"
1552 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1553 #t))))
1554 (build-system cmake-build-system)
1555 (inputs
1556 `(("libpng" ,libpng)
1557 ("sdl2" ,sdl2)
1558 ("sdl2-mixer" ,sdl2-mixer)))
1559 (home-page "https://github.com/bvschaik/julius")
1560 (synopsis "Re-implementation of Caesar III game engine")
1561 (description
1562 "Engine for Caesar III, a city-building real-time strategy game.
1563 Julius includes some UI enhancements while preserving the logic (including
1564 bugs) of the original game, so that saved games are compatible. This package
1565 does not include game data.")
1566 (license (list license:agpl3
1567 license:zlib)))) ; ext/tinyfiledialogs
1568
1569 (define-public augustus
1570 (package
1571 (inherit julius)
1572 (name "augustus")
1573 (version "2.0.1")
1574 (source
1575 (origin
1576 (method git-fetch)
1577 (uri (git-reference
1578 (url "https://github.com/Keriew/augustus")
1579 (commit (string-append "v" version))))
1580 (file-name (git-file-name name version))
1581 (sha256
1582 (base32 "0czazw8mc3fbvdazs2nzvgxd1dpzjc8z5fwiv89vv4nd7laz3jkj"))
1583 ;; Remove unused bundled libraries.
1584 (modules '((guix build utils)))
1585 (snippet
1586 '(begin
1587 (with-directory-excursion "ext"
1588 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1589 #t))))
1590 (arguments
1591 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1592 `(#:tests? #f))
1593 (home-page "https://github.com/Keriew/augustus")
1594 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1595 (description
1596 "Fork of Julius, an engine for the a city-building real-time strategy
1597 game Caesar III. Gameplay enhancements include:
1598
1599 @itemize
1600 @item roadblocks;
1601 @item market special orders;
1602 @item global labour pool;
1603 @item partial warehouse storage;
1604 @item increased game limits;
1605 @item zoom controls.
1606 @end itemize\n")))
1607
1608 (define-public meandmyshadow
1609 (package
1610 (name "meandmyshadow")
1611 (version "0.5a")
1612 (source (origin
1613 (method url-fetch)
1614 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1615 version "/meandmyshadow-" version
1616 "-src.tar.gz"))
1617 (sha256
1618 (base32
1619 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1620 (build-system cmake-build-system)
1621 (arguments
1622 `(#:tests? #f)) ; there are no tests
1623 (native-inputs
1624 `(("pkg-config" ,pkg-config)))
1625 (inputs
1626 `(("curl" ,curl)
1627 ("libarchive" ,libarchive)
1628 ("lua" ,lua)
1629 ("sdl" ,(sdl-union (list sdl2
1630 sdl2-image
1631 sdl2-mixer
1632 sdl2-ttf)))))
1633 (home-page "https://acmepjz.github.io/meandmyshadow/")
1634 (synopsis "Puzzle/platform game")
1635 (description "Me and My Shadow is a puzzle/platform game in which you try
1636 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1637 and much more stand between you and the exit. Record your moves and let your
1638 shadow mimic them to reach blocks you couldn't reach alone.")
1639 (license license:gpl3+)))
1640
1641 (define-public opensurge
1642 (package
1643 (name "opensurge")
1644 (version "0.5.2.1")
1645 (source
1646 (origin
1647 (method git-fetch)
1648 (uri (git-reference
1649 (url "https://github.com/alemart/opensurge")
1650 (commit (string-append "v" version))))
1651 (file-name (git-file-name name version))
1652 (sha256
1653 (base32 "13g5izss7dmgigc8iif8hid3z6i066b0z29rbql2b9qjmdj1dp41"))))
1654 (build-system cmake-build-system)
1655 (arguments
1656 `(#:tests? #f ;there are no tests
1657 #:configure-flags
1658 (let* ((out (assoc-ref %outputs "out"))
1659 (share (string-append out "/share")))
1660 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out)
1661 (string-append "-DGAME_BINDIR=" out "/bin") ; not /bin/games
1662 (string-append "-DGAME_DATADIR=" share "/" ,name)
1663 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1664 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1665 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1666 #:phases
1667 (modify-phases %standard-phases
1668 (add-after 'unpack 'fix-xdg-open-path
1669 (lambda* (#:key inputs #:allow-other-keys)
1670 ;; Look for xdg-open in the store.
1671 (substitute* "src/core/web.c"
1672 (("/usr(/bin/xdg-open)" _ bin)
1673 (search-input-file inputs bin)))))
1674 (add-after 'unpack 'unbundle-fonts
1675 (lambda* (#:key inputs #:allow-other-keys)
1676 ;; Replace bundled Roboto fonts with links to the store.
1677 (with-directory-excursion "fonts"
1678 (let ((roboto-dir (string-append
1679 (assoc-ref inputs "font-google-roboto")
1680 "/share/fonts/truetype/")))
1681 (for-each
1682 (lambda (font)
1683 (delete-file font)
1684 (symlink (string-append roboto-dir font) font))
1685 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1686 #t))))))
1687 (inputs
1688 `(("allegro" ,allegro)
1689 ("font-google-roboto" ,font-google-roboto)
1690 ("surgescript" ,surgescript)
1691 ("xdg-utils" ,xdg-utils)))
1692 (home-page "https://opensurge2d.org")
1693 (synopsis "2D retro side-scrolling game")
1694 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1695 inspired by the Sonic games. The player runs at high speeds through each
1696 level while collecting items and avoiding obstacles. The game includes a
1697 built-in level editor.")
1698 (license
1699 ;; Code is under GPL 3+, assets are under various licenses.
1700 ;; See src/misc/credits.c for details.
1701 (list license:gpl3+
1702 license:cc0
1703 license:cc-by3.0
1704 license:cc-by-sa3.0
1705 license:expat
1706 license:public-domain
1707 license:silofl1.1))))
1708
1709 (define-public knights
1710 (package
1711 (name "knights")
1712 (version "025")
1713 (source (origin
1714 (method url-fetch)
1715 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1716 version "_src.tar.gz"))
1717 (sha256
1718 (base32
1719 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1720 (build-system gnu-build-system)
1721 (arguments
1722 '(#:make-flags
1723 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1724 "CXXFLAGS=-lpthread")
1725 #:phases
1726 (modify-phases %standard-phases
1727 ;; No configure script.
1728 (delete 'configure))
1729 #:tests? #f)) ;; No check target.
1730 (inputs
1731 `(("boost" ,boost)
1732 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1733 ("freetype" ,freetype)
1734 ("fontconfig" ,fontconfig)
1735 ("curl" ,curl)))
1736 (native-inputs
1737 `(("pkg-config" ,pkg-config)))
1738 (home-page "http://www.knightsgame.org.uk/")
1739 (synopsis "Multiplayer dungeon game involving knights and quests")
1740 (description "Knights is a multiplayer game involving several knights who
1741 must run around a dungeon and complete various quests. Each game revolves
1742 around a quest – for example, you might have to find some items and carry them
1743 back to your starting point. This may sound easy, but as there are only
1744 enough items in the dungeon for one player to win, you may end up having to
1745 kill your opponents to get their stuff! Other quests involve escaping from
1746 the dungeon, fighting a duel to the death against the enemy knights, or
1747 destroying an ancient book using a special wand.")
1748 ;; This package includes modified sources of lua (X11), enet (Expat), and
1749 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1750 ;; license. The whole package is released under GPLv3+.
1751 (license license:gpl3+)))
1752
1753 (define-public gnome-2048
1754 (package
1755 (name "gnome-2048")
1756 (version "3.38.2")
1757 (source (origin
1758 (method url-fetch)
1759 (uri (string-append "mirror://gnome/sources/gnome-2048/"
1760 (version-major+minor version) "/"
1761 "gnome-2048-" version ".tar.xz"))
1762 (sha256
1763 (base32
1764 "0s5fg4z5in1h39fcr69j1qc5ynmg7a8mfprk3mc3c0csq3snfwz2"))))
1765 (build-system meson-build-system)
1766 (arguments
1767 '(#:glib-or-gtk? #t
1768 #:phases
1769 (modify-phases %standard-phases
1770 (add-after 'unpack 'skip-gtk-update-icon-cache
1771 ;; Don't create 'icon-theme.cache'.
1772 (lambda _
1773 (substitute* "meson_post_install.py"
1774 (("gtk-update-icon-cache") "true"))
1775 #t)))))
1776 (inputs
1777 `(("gtk+" ,gtk+)
1778 ("clutter" ,clutter)
1779 ("clutter-gtk" ,clutter-gtk)
1780 ("libgee" ,libgee)
1781 ("libgnome-games-support" ,libgnome-games-support)))
1782 (native-inputs
1783 `(("gettext" ,gettext-minimal)
1784 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1785 ("itstool" ,itstool)
1786 ("libxml2" ,libxml2)
1787 ("pkg-config" ,pkg-config)
1788 ("vala" ,vala)))
1789 (home-page "https://wiki.gnome.org/Apps/2048")
1790 (synopsis "Move the tiles until you obtain the 2048 tile")
1791 (description "GNOME 2048 provides a 2D grid for playing 2048, a
1792 single-player sliding tile puzzle game. The objective of the game is to merge
1793 together adjacent tiles of the same number until the sum of 2048 is achieved
1794 in one tile.")
1795 (license license:gpl3+)))
1796
1797 (define-public gnome-chess
1798 (package
1799 (name "gnome-chess")
1800 (version "3.37.3")
1801 (source (origin
1802 (method url-fetch)
1803 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1804 (version-major+minor version) "/"
1805 "gnome-chess-" version ".tar.xz"))
1806 (sha256
1807 (base32
1808 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1809 (build-system meson-build-system)
1810 (arguments
1811 '(#:glib-or-gtk? #t
1812 #:phases
1813 (modify-phases %standard-phases
1814 (add-after 'unpack 'skip-gtk-update-icon-cache
1815 ;; Don't create 'icon-theme.cache'.
1816 (lambda _
1817 (substitute* "meson_post_install.py"
1818 (("gtk-update-icon-cache") "true"))
1819 #t)))))
1820 (inputs
1821 `(("gtk+" ,gtk+)
1822 ("librsvg" ,librsvg)))
1823 (native-inputs
1824 `(("gettext" ,gettext-minimal)
1825 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1826 ("itstool" ,itstool)
1827 ("pkg-config" ,pkg-config)
1828 ("vala" ,vala)))
1829 (home-page "https://wiki.gnome.org/Apps/Chess")
1830 (synopsis "Chess board for GNOME")
1831 (description "GNOME Chess provides a 2D board for playing chess games
1832 against human or computer players. It supports loading and saving games in
1833 Portable Game Notation. To play against a computer, install a chess engine
1834 such as chess or stockfish.")
1835 (license license:gpl3+)))
1836
1837 (define-public gnubg
1838 (package
1839 (name "gnubg")
1840 (version "1.06.002")
1841 (source
1842 (origin
1843 (method url-fetch)
1844 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1845 version "-sources.tar.gz"))
1846 (sha256
1847 (base32
1848 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1849 (build-system gnu-build-system)
1850 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1851 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1852 ("pango" ,pango-1.42)
1853
1854 ("glib" ,glib)
1855 ("readline" ,readline)
1856 ("gtk+" ,gtk+-2)
1857 ("mesa" ,mesa)
1858 ("glu" ,glu)
1859 ("gtkglext" ,gtkglext)
1860 ("sqlite" ,sqlite)
1861 ("libcanberra" ,libcanberra)))
1862 (native-inputs `(("python-2" ,python-2)
1863 ("pkg-config" ,pkg-config)))
1864 (arguments
1865 `(#:configure-flags
1866 ;; SSE instructions are available on Intel systems only.
1867 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1868 (%current-system)))
1869 '("x86_64" "i686"))
1870 '("--enable-simd=sse2") ; prevent avx instructions
1871 '()))
1872 #:phases
1873 (modify-phases %standard-phases
1874 (add-after 'install 'install-desktop-file
1875 (lambda* (#:key outputs #:allow-other-keys)
1876 (let* ((out (assoc-ref outputs "out"))
1877 (apps (string-append out "/share/applications")))
1878 (mkdir-p apps)
1879 (with-output-to-file (string-append apps "/gnubg.desktop")
1880 (lambda _
1881 (format #t
1882 "[Desktop Entry]~@
1883 Name=GNU Backgammon~@
1884 Exec=~a/bin/gnubg -w~@
1885 Icon=gnubg~@
1886 Categories=Game;~@
1887 Terminal=false~@
1888 Type=Application~%"
1889 out))))
1890 #t)))))
1891 (home-page "https://www.gnu.org/software/gnubg/")
1892 (synopsis "Backgammon game")
1893 (description "The GNU backgammon application (also known as \"gnubg\") can
1894 be used for playing, analyzing and teaching the game. It has an advanced
1895 evaluation engine based on artificial neural networks suitable for both
1896 beginners and advanced players. In addition to a command-line interface, it
1897 also features an attractive, 3D representation of the playing board.")
1898 (license license:gpl3+)))
1899
1900 (define-public gnubik
1901 (package
1902 (name "gnubik")
1903 (version "2.4.3")
1904 (source
1905 (origin
1906 (method url-fetch)
1907 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1908 version ".tar.gz"))
1909 (sha256
1910 (base32
1911 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1912 (build-system gnu-build-system)
1913 (arguments
1914 '(#:phases (modify-phases %standard-phases
1915 (add-after 'unpack 'skip-gtk-update-icon-cache
1916 (lambda _
1917 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1918 ;; unnecessary and causes a needless dependency on glib.
1919 (substitute* "Makefile.in"
1920 (("gtk-update-icon-cache")
1921 "true"))
1922 #t)))))
1923 (inputs `(("gtk+" ,gtk+-2)
1924 ("mesa" ,mesa)
1925 ("glu" ,glu)
1926 ("libx11" ,libx11)
1927 ("guile" ,guile-2.0)
1928 ("gtkglext" ,gtkglext)))
1929 (native-inputs `(("gettext" ,gettext-minimal)
1930 ("pkg-config" ,pkg-config)))
1931 (home-page "https://www.gnu.org/software/gnubik/")
1932 (synopsis "3d Rubik's cube game")
1933 (description
1934 "GNUbik is a puzzle game in which you must manipulate a cube to make
1935 each of its faces have a uniform color. The game is customizable, allowing
1936 you to set the size of the cube (the default is 3x3) or to change the colors.
1937 You may even apply photos to the faces instead of colors. The game is
1938 scriptable with Guile.")
1939 (license license:gpl3+)))
1940
1941 (define-public gnushogi
1942 (package
1943 (name "gnushogi")
1944 (version "1.4.2")
1945 (source
1946 (origin
1947 (method url-fetch)
1948 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1949 version ".tar.gz"))
1950 (sha256
1951 (base32
1952 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1953 (arguments `(#:tests? #f)) ;; No check target.
1954 (build-system gnu-build-system)
1955 (home-page "https://www.gnu.org/software/gnushogi/")
1956 (synopsis "The game of Shogi (Japanese chess)")
1957 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1958 Chess). It is similar to standard chess but this variant is far more complicated.")
1959 (license license:gpl3+)))
1960
1961 (define-public ltris
1962 (package
1963 (name "ltris")
1964 (version "1.2.3")
1965 (source
1966 (origin
1967 (method url-fetch)
1968 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1969 "ltris-" version ".tar.gz"))
1970 (sha256
1971 (base32 "1a2m17jwkyar8gj07bn5jk01j2ps4vvc48z955jjjsh67q2svi0f"))))
1972 (build-system gnu-build-system)
1973 (arguments
1974 '(#:phases
1975 (modify-phases %standard-phases
1976 (add-after 'set-paths 'set-sdl-paths
1977 (lambda* (#:key inputs #:allow-other-keys)
1978 (setenv "CPATH"
1979 (string-append
1980 (search-input-directory inputs "include/SDL")
1981 ":" (or (getenv "CPATH") ""))))))))
1982 (inputs
1983 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1984 (home-page "http://lgames.sourceforge.net/LTris/")
1985 (synopsis "Tetris clone based on the SDL library")
1986 (description
1987 "LTris is a tetris clone: differently shaped blocks are falling down the
1988 rectangular playing field and can be moved sideways or rotated by 90 degree
1989 units with the aim of building lines without gaps which then disappear (causing
1990 any block above the deleted line to fall down). LTris has three game modes: In
1991 Classic you play until the stack of blocks reaches the top of the playing field
1992 and no new blocks can enter. In Figures the playing field is reset to a new
1993 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1994 up to three players (either human or CPU) compete with each other sending
1995 removed lines to all opponents. There is also a Demo mode in which you can
1996 watch your CPU playing while enjoying a cup of tea!")
1997 (license license:gpl2+)))
1998
1999 (define-public nethack
2000 (package
2001 (name "nethack")
2002 (version "3.6.6")
2003 (source
2004 (origin
2005 (method url-fetch)
2006 (uri
2007 (string-append "https://www.nethack.org/download/" version "/nethack-"
2008 (string-join (string-split version #\.) "") "-src.tgz"))
2009 (sha256
2010 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
2011 (native-inputs
2012 `(("bison" ,bison)
2013 ("flex" ,flex)))
2014 (inputs
2015 `(("ncurses" ,ncurses)
2016 ("less" ,less)))
2017 (build-system gnu-build-system)
2018 (arguments
2019 '(#:make-flags
2020 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
2021 #:phases
2022 (modify-phases %standard-phases
2023 (add-before 'configure 'patch-paths
2024 (lambda _
2025 (substitute* "sys/unix/nethack.sh"
2026 (("^ *cd .*$") ""))
2027 (substitute* "sys/unix/Makefile.utl"
2028 (("^YACC *=.*$") "YACC = bison -y\n")
2029 (("^LEX *=.*$") "LEX = flex\n")
2030 (("^# CC = gcc") "CC = gcc"))
2031 (substitute* "sys/unix/hints/linux"
2032 (("/bin/gzip") (string-append
2033 (assoc-ref %build-inputs "gzip")
2034 "/bin/gzip"))
2035 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
2036 (substitute* "include/config.h"
2037 (("^.*define CHDIR.*$") "")
2038 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
2039 ;; Honor SOURCE_DATE_EPOCH.
2040 "#define REPRODUCIBLE_BUILD"))
2041
2042 ;; Note: 'makedefs' rejects and ignores dates that are too old
2043 ;; or too new, so we must choose something reasonable here.
2044 (setenv "SOURCE_DATE_EPOCH" "1531865062")
2045
2046 (substitute* "sys/unix/Makefile.src"
2047 (("^# CC = gcc") "CC = gcc"))
2048 #t))
2049 (replace 'configure
2050 (lambda _
2051 (let ((bash (string-append
2052 (assoc-ref %build-inputs "bash")
2053 "/bin/bash")))
2054 (with-directory-excursion "sys/unix"
2055 (substitute* "setup.sh" (("/bin/sh") bash))
2056 (invoke bash "setup.sh" "hints/linux"))
2057 #t)))
2058 (add-after 'install 'fixup-paths
2059 (lambda _
2060 (let* ((output (assoc-ref %outputs "out"))
2061 (nethack-script (string-append output "/bin/nethack")))
2062 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
2063 (for-each
2064 (lambda (file)
2065 (rename-file
2066 (string-append output "/games/lib/nethackdir/" file)
2067 (string-append output "/games/lib/nethackuserdir/"
2068 file)))
2069 '("xlogfile" "logfile" "perm" "record" "save"))
2070 (mkdir-p (string-append output "/bin"))
2071 (call-with-output-file nethack-script
2072 (lambda (port)
2073 (format port "#!~a/bin/sh
2074 PATH=~a:$PATH
2075 if [ ! -d ~~/.config/nethack ]; then
2076 mkdir -p ~~/.config/nethack
2077 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
2078 chmod -R +w ~~/.config/nethack
2079 fi
2080
2081 RUNDIR=$(mktemp -d)
2082
2083 cleanup() {
2084 rm -rf $RUNDIR
2085 }
2086 trap cleanup EXIT
2087
2088 cd $RUNDIR
2089 for i in ~~/.config/nethack/*; do
2090 ln -s $i $(basename $i)
2091 done
2092 for i in ~a/games/lib/nethackdir/*; do
2093 ln -s $i $(basename $i)
2094 done
2095 ~a/games/nethack"
2096 (assoc-ref %build-inputs "bash")
2097 (list->search-path-as-string
2098 (list
2099 (string-append
2100 (assoc-ref %build-inputs "coreutils") "/bin")
2101 (string-append
2102 (assoc-ref %build-inputs "less") "/bin"))
2103 ":")
2104 output
2105 output
2106 output)))
2107 (chmod nethack-script #o555)
2108 #t)))
2109 (delete 'check))))
2110 (home-page "https://nethack.org")
2111 (synopsis "Classic dungeon crawl game")
2112 (description "NetHack is a single player dungeon exploration game that runs
2113 on a wide variety of computer systems, with a variety of graphical and text
2114 interfaces all using the same game engine. Unlike many other Dungeons &
2115 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
2116 the dungeon and not simply killing everything in sight - in fact, killing
2117 everything in sight is a good way to die quickly. Each game presents a
2118 different landscape - the random number generator provides an essentially
2119 unlimited number of variations of the dungeon and its denizens to be discovered
2120 by the player in one of a number of characters: you can pick your race, your
2121 role, and your gender.")
2122 (license
2123 (license:fsdg-compatible
2124 "https://nethack.org/common/license.html"))))
2125
2126 (define-public pipewalker
2127 (package
2128 (name "pipewalker")
2129 (version "0.9.4")
2130 (source
2131 (origin
2132 (method url-fetch)
2133 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
2134 version "/pipewalker-" version ".tar.gz"))
2135 (sha256
2136 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
2137 (build-system gnu-build-system)
2138 (arguments
2139 `(#:configure-flags
2140 (list (string-append "--docdir=" (assoc-ref %outputs "out")
2141 "/share/doc/" ,name "-" ,version))
2142 #:phases
2143 (modify-phases %standard-phases
2144 (add-after 'configure 'patch-docdir
2145 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
2146 (lambda _
2147 (substitute* "Makefile"
2148 (("(pkgdocdatadir = ).*" _ assignment)
2149 (string-append assignment "$(docdir)\n")))
2150 #t)))))
2151 (inputs
2152 `(("libpng" ,libpng)
2153 ("mesa" ,mesa)
2154 ("sdl" ,sdl)))
2155 (home-page "http://pipewalker.sourceforge.net/")
2156 (synopsis "Logical tile puzzle")
2157 (description
2158 "PipeWalker is a simple puzzle game with many diffent themes: connect all
2159 computers to one network server, bring water from a source to the taps, etc.
2160 The underlying mechanism is always the same: you must turn each tile in the
2161 grid in the right direction to combine all components into a single circuit.
2162 Every puzzle has a complete solution, although there may be more than one.")
2163 (license license:gpl3+)))
2164
2165 (define-public prboom-plus
2166 (package
2167 (name "prboom-plus")
2168 (version "2.5.1.4")
2169 (source (origin
2170 (method url-fetch)
2171 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
2172 version "/prboom-plus-" version ".tar.gz"))
2173 (sha256
2174 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
2175 (modules '((guix build utils)))
2176 (snippet
2177 '(begin
2178 (substitute* "src/version.c"
2179 (("__DATE__") "")
2180 (("__TIME__") ""))
2181 #t))))
2182 (build-system gnu-build-system)
2183 (arguments
2184 '(#:configure-flags '("--disable-cpu-opt")
2185 #:make-flags `(,(string-append "gamesdir="
2186 (assoc-ref %outputs "out") "/bin"))
2187 #:phases
2188 (modify-phases %standard-phases
2189 (add-after 'set-paths 'set-sdl'paths
2190 (lambda* (#:key inputs #:allow-other-keys)
2191 (setenv "CPATH"
2192 (string-append
2193 (search-input-file inputs "/include/SDL")
2194 ":" (or (getenv "CPATH") ""))))))))
2195 (inputs
2196 `(("fluidsynth" ,fluidsynth)
2197 ("glu" ,glu)
2198 ("libmad" ,libmad)
2199 ("libpng" ,libpng)
2200 ("libvorbis" ,libvorbis)
2201 ("pcre" ,pcre)
2202 ("portmidi" ,portmidi)
2203 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
2204 (home-page "http://prboom-plus.sourceforge.net/")
2205 (synopsis "Version of the classic 3D shoot'em'up game Doom")
2206 (description
2207 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
2208 (license license:gpl2+)))
2209
2210 (define-public retux
2211 (let ((release "1.5")
2212 (revision 0))
2213 (package
2214 (name "retux")
2215 (version (if (zero? revision)
2216 release
2217 (string-append release "-"
2218 (number->string revision))))
2219 (source (origin
2220 (method url-fetch)
2221 (uri (string-append "https://github.com/retux-game/retux/"
2222 "releases/download/v"
2223 version "/retux-"
2224 release "-src.zip"))
2225 (sha256
2226 (base32
2227 "1yima7s36hn2kh5h08lczc5iid8jbdxk7x1g5ms6knaznzj7rll3"))))
2228 (build-system python-build-system)
2229 (arguments
2230 `(#:tests? #f ; no check target
2231 #:phases
2232 (modify-phases %standard-phases
2233 ;; no setup.py script
2234 (delete 'build)
2235 (replace 'install
2236 (lambda* (#:key outputs #:allow-other-keys)
2237 (let* ((out (assoc-ref outputs "out"))
2238 (bin (string-append out "/bin"))
2239 (data (string-append out "/share/retux")))
2240 (mkdir-p bin)
2241
2242 (substitute* "retux.py"
2243 ;; Use the correct data directory.
2244 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
2245 (string-append "\"" data "\",")))
2246
2247 (copy-file "retux.py" (string-append bin "/retux"))
2248 (copy-recursively "data" data)
2249 #t))))))
2250 (native-inputs
2251 `(("unzip" ,unzip)))
2252 (inputs
2253 `(("python-sge-pygame" ,python-sge-pygame)
2254 ("python-six" ,python-six)
2255 ("python-xsge" ,python-xsge)))
2256 (home-page "https://retux-game.github.io/")
2257 (synopsis "Action platformer game")
2258 (description
2259 "ReTux is an action platformer loosely inspired by the Mario games,
2260 utilizing the art assets from the @code{SuperTux} project.")
2261 ;; GPL version 3 or later is the license for the code and some art.
2262 ;; The rest of the licenses are for the art exclusively, as listed in
2263 ;; data/LICENSES.
2264 (license (list license:cc0
2265 license:cc-by3.0
2266 license:cc-by-sa3.0
2267 license:cc-by-sa4.0
2268 license:gpl2+
2269 license:gpl3+)))))
2270
2271 (define-public roguebox-adventures
2272 (package
2273 (name "roguebox-adventures")
2274 (version "3.0.1")
2275 (source
2276 (origin
2277 (method url-fetch)
2278 (uri (string-append
2279 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2280 (string-join (string-split version #\.) "_") "_Source.zip"))
2281 (file-name (string-append name "-" version ".zip"))
2282 (sha256
2283 (base32
2284 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2285 (build-system python-build-system)
2286 (arguments
2287 `(#:tests? #f ; no check target
2288 #:phases
2289 (modify-phases %standard-phases
2290 (replace 'unpack
2291 (lambda* (#:key source #:allow-other-keys)
2292 (and (invoke "unzip" source)
2293 ;; The actual source is buried a few directories deep.
2294 (chdir (string-append "RogueBoxAdventures_v"
2295 (string-join
2296 (string-split ,version #\.) "_")
2297 "_Source")))))
2298 ;; no setup.py script
2299 (replace 'build
2300 (lambda* (#:key outputs #:allow-other-keys)
2301 (let* ((out (assoc-ref outputs "out"))
2302 (data (string-append
2303 out "/share/games/roguebox-adventures")))
2304 ;; Use the correct data directory.
2305 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2306 (("basic_path + os\\.sep + 'DATA'")
2307 (string-append "'" data "'"))
2308 (("^basic_path.*$")
2309 (string-append "basic_path ='" data "'\n")))
2310 (substitute* "LIB/dialog.py"
2311 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2312 (string-append "d_path = '" data "'")))
2313 (substitute* "LIB/gra_files.py"
2314 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2315 (string-append "basic_path ='" data "'\n")))
2316
2317 ;; The game must save in the user's home directory because
2318 ;; the store is read-only.
2319 (substitute* "main.py"
2320 (("home_save = False") "home_save = True")
2321 (("'icon_small.png'")
2322 (string-append "'" data "/icon_small.png'"))))
2323 #t))
2324 (replace 'install
2325 (lambda* (#:key outputs #:allow-other-keys)
2326 (let* ((out (assoc-ref outputs "out"))
2327 (bin (string-append out "/bin"))
2328 (roguebox-adventures
2329 (string-append bin "/roguebox-adventures"))
2330 (data (string-append
2331 out "/share/games/roguebox-adventures"))
2332 (lib (string-append data "/LIB"))
2333 (doc (string-append
2334 out "/share/doc/roguebox-adventures")))
2335 (mkdir-p bin)
2336 (mkdir-p doc)
2337
2338 (for-each (lambda (file)
2339 (copy-recursively file
2340 (string-append data "/" file)))
2341 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2342 "icon_big.png" "icon_small.png"))
2343 (for-each (lambda (file)
2344 (chmod file #o555)
2345 (install-file file lib))
2346 '("main.py" "run.py"))
2347
2348 (copy-recursively "DOC" doc)
2349
2350 (call-with-output-file
2351 roguebox-adventures
2352 (lambda (p)
2353 (format p "\
2354 #!~a
2355 export GUIX_PYTHONPATH=~a/LIB:~a
2356 exec -a \"~a\" ~a \"$@\"\n"
2357 (which "bash") data (getenv "GUIX_PYTHONPATH")
2358 (which "python3")
2359 (string-append lib "/main.py"))))
2360 (chmod roguebox-adventures #o555))
2361 #t)))))
2362 (native-inputs
2363 `(("unzip" ,unzip)))
2364 (inputs
2365 `(("python-pygame" ,python-pygame)
2366 ("python-tmx" ,python-tmx)))
2367 (home-page "https://rogueboxadventures.tuxfamily.org")
2368 (synopsis "A classical roguelike/sandbox game")
2369 (description
2370 "RogueBox Adventures is a graphical roguelike with strong influences
2371 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2372 Adventures is to offer the player a kind of roguelike toy-world. This world
2373 can be explored and changed freely.")
2374 ;; The GPL3+ is for code, the rest are for art.
2375 (license (list license:cc0
2376 license:cc-by3.0
2377 license:gpl3+
2378 license:silofl1.1))))
2379
2380 (define-public seahorse-adventures
2381 (package
2382 (name "seahorse-adventures")
2383 (version "1.3")
2384 (source
2385 (origin
2386 (method git-fetch)
2387 (uri (git-reference
2388 (url "https://github.com/dulsi/seahorse-adventures")
2389 (commit (string-append "release-" version))))
2390 (file-name (git-file-name name version))
2391 (sha256
2392 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2393 (modules '((guix build utils)
2394 (ice-9 ftw)
2395 (srfi srfi-1)))
2396 ;; Remove non-free (non-commercial) font.
2397 (snippet
2398 `(begin
2399 (for-each delete-file (find-files "data/fonts" "."))
2400 #t))))
2401 (build-system python-build-system)
2402 (arguments
2403 `(#:tests? #f ;no test
2404 #:phases
2405 (modify-phases %standard-phases
2406 (delete 'build) ;pure Python
2407 (replace 'install ;no install script
2408 (lambda* (#:key outputs #:allow-other-keys)
2409 (let* ((out (assoc-ref outputs "out"))
2410 (bin (string-append out "/bin"))
2411 (share (string-append out "/share"))
2412 (applications (string-append share "/applications"))
2413 (data (string-append share "/seahorse-adventures")))
2414 ;; Install data.
2415 (for-each (lambda (f)
2416 (chmod f #o555)
2417 (install-file f data))
2418 '("leveledit.py" "run_game.py" "tileedit.py"))
2419 (for-each (lambda (dir)
2420 (let ((target (string-append data "/" dir)))
2421 (mkdir-p target)
2422 (copy-recursively dir target)))
2423 '("data" "lib"))
2424 ;; Create executable.
2425 (mkdir-p bin)
2426 (let ((executable (string-append bin "/seahorse-adventures")))
2427 (call-with-output-file executable
2428 (lambda (p)
2429 (format p
2430 "#!~a~@
2431 export GUIX_PYTHONPATH=~a:~a~@
2432 exec -a \"~a\" ~a \"$@\"~%"
2433 (which "bash") data (getenv "GUIX_PYTHONPATH")
2434 (which "python3")
2435 (string-append data "/run_game.py"))))
2436 (chmod executable #o555))
2437 ;; Add desktop file.
2438 (mkdir-p applications)
2439 (make-desktop-entry-file
2440 (string-append applications "/seahorse-adventures.desktop")
2441 #:name "Seahorse Adventures"
2442 #:comment
2443 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2444 #:exec ,name
2445 #:icon ,name
2446 #:categories '("Game" "ActionGame")
2447 #:keywords '("game" "retro" "platform"))
2448 ;; Add icons.
2449 (for-each
2450 (lambda (size)
2451 (let ((dir (string-append share "/icons/hicolor/"
2452 size "x" size "/apps")))
2453 (mkdir-p dir)
2454 (copy-file
2455 (string-append "icon" size ".png")
2456 (string-append dir "/searhorse-adventures.png"))))
2457 '("32" "64" "128")))
2458 #t))
2459 (add-after 'install 'unbundle-fonts
2460 ;; Unbundle Bitstream Vera font and replace deleted one.
2461 (lambda* (#:key outputs inputs #:allow-other-keys)
2462 (let* ((out (assoc-ref outputs "out"))
2463 (data (string-append out "/share/seahorse-adventures"))
2464 (vera (search-input-file
2465 inputs "/share/fonts/truetype/Vera.ttf")))
2466 (let ((themes-dir (string-append data "/data/themes/")))
2467 (for-each
2468 (lambda (theme)
2469 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2470 (delete-file target)
2471 (symlink vera target)))
2472 '("default" "gray")))
2473 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2474 (substitute* (string-append data "/lib/main.py")
2475 (("f_scale = 0.35") "f_scale = 0.47")))
2476 #t)))))
2477 (inputs
2478 `(("font-bitstream-vera" ,font-bitstream-vera)
2479 ("python-pygame" ,python-pygame)))
2480 (home-page "http://www.imitationpickles.org/barbie/")
2481 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2482 (description
2483 "Barbie Seahorse Adventures is a retro style platform arcade game.
2484 You are Barbie the seahorse who travels through the jungle, up to the
2485 volcano until you float on bubbles to the moon. On the way to your
2486 final destination you will encounter various enemies, servants of the
2487 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2488 and defeat them with your bubbles!")
2489 ;; GPL2+ is for code, CC0 is for art.
2490 (license (list license:gpl2+ license:cc0))))
2491
2492 (define-public solarus
2493 (package
2494 (name "solarus")
2495 ;; XXX: When updating this package, please also update hash in
2496 ;; `solarus-quest-editor' below.
2497 (version "1.6.5")
2498 (source
2499 (origin
2500 (method git-fetch)
2501 (uri (git-reference
2502 (url "https://gitlab.com/solarus-games/solarus")
2503 (commit (string-append "v" version))))
2504 (file-name (git-file-name name version))
2505 (sha256
2506 (base32 "0ny9dgqphjv2l39rff2621hnrzpf8qin8vmnv7jdz20azjk4m8id"))))
2507 (build-system cmake-build-system)
2508 (arguments
2509 `(#:phases
2510 (modify-phases %standard-phases
2511 (add-after 'unpack 'disable-failing-tests
2512 ;; The following tests fail reporting a missing "/dev/dri"
2513 ;; file.
2514 (lambda _
2515 (substitute* "tests/cmake/AddTestMaps.cmake"
2516 ((".*1200_create_shader_from_source.*" all)
2517 (string-append "#" all))
2518 ((".*1210_shader_scaling_factor.*" all)
2519 (string-append "#" all)))
2520 #t))
2521 (add-before 'check 'set-home
2522 ;; Tests fail without setting the following environment
2523 ;; variables.
2524 (lambda _
2525 (setenv "HOME" (getcwd))
2526 (setenv "XDG_RUNTIME_DIR" (getcwd))
2527 #t)))))
2528 (native-inputs
2529 `(("pkg-config" ,pkg-config)
2530 ("qttools" ,qttools)))
2531 (inputs
2532 `(("glm" ,glm)
2533 ("libmodplug" ,libmodplug)
2534 ("libogg" ,libogg)
2535 ("libvorbis" ,libvorbis)
2536 ("luajit" ,luajit)
2537 ("openal" ,openal)
2538 ("physfs" ,physfs)
2539 ("qtbase" ,qtbase-5)
2540 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2541 (home-page "https://www.solarus-games.org/")
2542 (synopsis "Lightweight game engine for Action-RPGs")
2543 (description
2544 "Solarus is a 2D game engine written in C++, that can run games
2545 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2546 in mind.")
2547 ;; The source code is licensed under the terms of GPL-3.0.
2548 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2549 ;; CC-BY-SA 4.0.
2550 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2551
2552 (define-public solarus-quest-editor
2553 (package
2554 (inherit solarus)
2555 (name "solarus-quest-editor")
2556 (version (package-version solarus))
2557 (source
2558 (origin
2559 (method git-fetch)
2560 (uri (git-reference
2561 (url "https://gitlab.com/solarus-games/solarus-quest-editor")
2562 (commit (string-append "v" version))))
2563 (file-name (git-file-name name version))
2564 (sha256
2565 (base32 "1pvjgd4faxii5sskw1h55lw90hlbazhwni8nxyywzrmkjbq7irm0"))))
2566 (arguments
2567 `(#:tests? #false)) ; no test suite
2568 (inputs
2569 `(("solarus" ,solarus)
2570 ,@(package-inputs solarus)))
2571 (synopsis "Create and modify quests for the Solarus engine")
2572 (description
2573 "Solarus Quest Editor is a graphical user interface to create and
2574 modify quests for the Solarus engine.")))
2575
2576 (define-public superstarfighter
2577 (package
2578 (name "superstarfighter")
2579 (version "0.6.4")
2580 (source
2581 (origin
2582 (method git-fetch)
2583 (uri (git-reference
2584 (url "https://github.com/notapixelstudio/superstarfighter")
2585 (commit (string-append "v" version))))
2586 (file-name (git-file-name name version))
2587 (sha256
2588 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2589 (build-system gnu-build-system)
2590 (arguments
2591 `(#:tests? #f ;there are no tests
2592 #:phases
2593 (modify-phases %standard-phases
2594 (replace 'configure
2595 (lambda _
2596 (chdir "godot")
2597 (setenv "HOME" (getcwd))
2598 (with-output-to-file "export_presets.cfg"
2599 (lambda ()
2600 (display
2601 "[preset.0]
2602 name=\"Guix\"
2603 platform=\"Linux/X11\"
2604 runnable=true
2605 [preset.0.options]")))
2606 #t))
2607 (replace 'build
2608 (lambda _
2609 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2610 (invoke (string-append godot "/bin/godot_server")
2611 "--export-pack" "Guix"
2612 "superstarfighter.pck" "project.godot"))
2613 #t))
2614 (replace 'install
2615 (lambda* (#:key inputs outputs #:allow-other-keys)
2616 (let* ((out (assoc-ref outputs "out"))
2617 (bin (string-append out "/bin"))
2618 (share (string-append out "/share"))
2619 (data (string-append share "/superstarfighter"))
2620 (icons (string-append share "/icons/hicolor/256x256/apps")))
2621 (install-file "superstarfighter.pck" data)
2622 (mkdir-p bin)
2623 (call-with-output-file (string-append bin "/superstarfighter")
2624 (lambda (port)
2625 (format port
2626 "#!/bin/sh~@
2627 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2628 (assoc-ref inputs "godot")
2629 data)
2630 (chmod port #o755)))
2631 (mkdir-p icons)
2632 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2633 (make-desktop-entry-file
2634 (string-append share "/applications/" ,name ".desktop")
2635 #:name "SuperStarfighter"
2636 #:comment "Fast-paced arcade combat game"
2637 #:exec ,name
2638 #:icon ,name
2639 #:categories '("Game" "ArcadeGame")))
2640 #t)))))
2641 (native-inputs
2642 `(("godot-headless" ,godot "headless")))
2643 (inputs
2644 `(("godot" ,godot)))
2645 (home-page "https://notapixel.itch.io/superstarfighter")
2646 (synopsis "Fast-paced local multiplayer arcade game")
2647 (description "In SuperStarfighter, up to four local players compete in a
2648 2D arena with fast-moving ships and missiles. Different game types are
2649 available, as well as a single-player mode with AI-controlled ships.")
2650 (license (list license:expat ; game
2651 license:silofl1.1)))) ; fonts
2652
2653 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2654 (define %ufoai-revision "0")
2655 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2656 (define ufoai-source
2657 (origin
2658 (method git-fetch)
2659 (uri (git-reference
2660 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2661 (commit %ufoai-commit)))
2662 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2663 (sha256
2664 (base32
2665 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2666 (modules '((guix build utils)
2667 (srfi srfi-1)
2668 (ice-9 ftw)))
2669 (snippet
2670 '(begin
2671 ;; Delete ~32MiB of bundled dependencies.
2672 (with-directory-excursion "src/libs"
2673 (for-each delete-file-recursively
2674 (lset-difference equal? (scandir ".")
2675 '("." ".." "gtest" "mumble"))))
2676
2677 ;; Use relative path to Lua headers.
2678 (substitute* "src/common/scripts_lua.h"
2679 (("\\.\\./libs/lua/") ""))
2680
2681 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2682 ;; it as a separate package. This way we don't need to make the same
2683 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2684 (substitute* "build/maps.mk"
2685 (("\\./ufo2map") "ufo2map")
2686 (("maps: ufo2map") "maps:"))
2687 (substitute* "build/modules/testall.mk"
2688 (("testall: ufo2map") "testall:"))
2689
2690 ;; If no cURL headers are found, the build system will try to include
2691 ;; the bundled version, even when not required. Prevent that.
2692 (substitute* "build/default.mk"
2693 (("^include src/libs/curl/lib/Makefile\\.inc")
2694 ""))
2695
2696 ;; While here, improve reproducibility by adding the '-X' flag to the
2697 ;; zip command used to create the map files, in order to prevent time
2698 ;; stamps from making it into the generated archives.
2699 (substitute* "build/data.mk"
2700 (("\\$\\(call ZIP\\)")
2701 "$(call ZIP) -X"))
2702 #t))))
2703
2704 (define-public trigger-rally
2705 (package
2706 (name "trigger-rally")
2707 (version "0.6.6.1")
2708 (source
2709 (origin
2710 (method url-fetch)
2711 (uri (string-append "mirror://sourceforge/trigger-rally/"
2712 "trigger-" version "/"
2713 "trigger-rally-" version ".tar.gz"))
2714 (sha256
2715 (base32
2716 "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z"))))
2717 (build-system gnu-build-system)
2718 (inputs
2719 `(("freealut" ,freealut)
2720 ("glew" ,glew)
2721 ("glu" ,glu)
2722 ("mesa" ,mesa)
2723 ("openal" ,openal)
2724 ("physfs" ,physfs)
2725 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))
2726 ("tinyxml2" ,tinyxml2)))
2727 (arguments
2728 `(#:make-flags (list (string-append "prefix=" %output)
2729 "bindir=$(prefix)/bin"
2730 "datadir=$(datarootdir)"
2731 "OPTIMS=-Ofast")
2732 #:tests? #f ; No tests present
2733 #:phases
2734 (modify-phases %standard-phases
2735 (delete 'configure)
2736 (add-before 'build 'cd-src
2737 (lambda _ (chdir "src")))
2738 (add-before 'build 'remove-timestamps
2739 (lambda _
2740 (substitute* (list "Trigger/menu.cpp"
2741 "PEngine/app.cpp")
2742 ((".*__DATE__.*") ""))))
2743 (add-before 'build 'make-verbose
2744 (lambda _
2745 (substitute* "GNUmakefile"
2746 (("@\\$\\(CXX\\)") "$(CXX)"))))
2747 (add-after 'build 'set-data-path
2748 (lambda* (#:key outputs #:allow-other-keys)
2749 (let ((out (assoc-ref outputs "out")))
2750 (substitute* "../bin/trigger-rally.config.defs"
2751 (("<data path=\"C:[^\"]*\"")
2752 (string-append "<data path=\"" out "/share/trigger-rally\""))))))
2753 (add-after 'install 'create-desktop-entry
2754 (lambda* (#:key outputs #:allow-other-keys)
2755 (let* ((out (assoc-ref outputs "out"))
2756 (apps (string-append out "/share/applications")))
2757 (mkdir-p apps)
2758 (with-output-to-file
2759 (string-append apps "/trigger-rally.desktop")
2760 (lambda ()
2761 (format #t ; Borrowed from Debian package
2762 "[Desktop Entry]~@
2763 Name=Trigger Rally~@
2764 Icon=trigger-rally~@
2765 Comment=3D rally racing car game~@
2766 Comment[de]=3D Rally-Autorennen~@
2767 Comment[fr_FR]=un jeu de rally en 3D~@
2768 Comment[ro_RO]=Un joc în 3D cu curse de raliu~@
2769 Exec=~a/bin/trigger-rally~@
2770 Terminal=false~@
2771 StartupNotify=false~@
2772 Type=Application~@
2773 TryExec=~:*~a/bin/trigger-rally~@
2774 Categories=Game;ArcadeGame;~@
2775 Keywords=racing;tracks;~@
2776 Keywords[de]=Rennstrecke;~%"
2777 out)))))))))
2778 (home-page "http://trigger-rally.sourceforge.net")
2779 (synopsis "Fast-paced single-player racing game")
2780 (description "Trigger-rally is a 3D rally simulation with great physics
2781 for drifting on over 200 maps. Different terrain materials like dirt,
2782 asphalt, sand, ice, etc. and various weather, light, and fog conditions give
2783 this rally simulation the edge over many other games. You need to make it
2784 through the maps in often tight time limits and can further improve by beating
2785 the recorded high scores. All attached single races must be finished in time
2786 in order to win an event, unlocking additional events and cars. Most maps are
2787 equipped with spoken co-driver notes and co-driver icons.")
2788 (license (list license:cc0 ;textures and audio in data.zip
2789 license:gpl2+))))
2790
2791 (define-public ufo2map
2792 (package
2793 (name "ufo2map")
2794 (version %ufoai-version)
2795 (home-page "https://ufoai.org/")
2796 (source ufoai-source)
2797 (build-system gnu-build-system)
2798 (arguments
2799 '(#:configure-flags '("CC=gcc" "CXX=g++"
2800 "--enable-release"
2801 "--enable-ufo2map"
2802 "--disable-uforadiant"
2803 "--disable-cgame-campaign"
2804 "--disable-cgame-multiplayer"
2805 "--disable-cgame-skirmish"
2806 "--disable-game"
2807 "--disable-memory"
2808 "--disable-testall"
2809 "--disable-ufoded"
2810 "--disable-ufo"
2811 "--disable-ufomodel"
2812 "--disable-ufoslicer")
2813 #:tests? #f ;no tests
2814 #:phases (modify-phases %standard-phases
2815 (replace 'configure
2816 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2817 ;; The home-made configure script does not understand
2818 ;; some of the default flags of gnu-build-system.
2819 (apply invoke "./configure" configure-flags)))
2820 (replace 'install
2821 (lambda* (#:key outputs #:allow-other-keys)
2822 (let ((out (assoc-ref outputs "out")))
2823 (install-file "ufo2map" (string-append out "/bin"))
2824 (install-file "debian/ufo2map.6"
2825 (string-append out "/share/man/man6"))
2826 #t))))))
2827 (native-inputs
2828 `(("pkg-config" ,pkg-config)))
2829 (inputs
2830 `(("libjpeg" ,libjpeg-turbo)
2831 ("libpng" ,libpng)
2832 ("lua" ,lua-5.1)
2833 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2834 (synopsis "UFO: AI map generator")
2835 (description
2836 "This package provides @command{ufo2map}, a program used to generate
2837 maps for the UFO: Alien Invasion strategy game.")
2838 (license license:gpl2+)))
2839
2840 (define ufoai-data
2841 (package
2842 (name "ufoai-data")
2843 (version %ufoai-version)
2844 (home-page "https://ufoai.org/")
2845 (source ufoai-source)
2846 (build-system gnu-build-system)
2847 (arguments
2848 '(#:tests? #f
2849 #:configure-flags '("CC=gcc" "CXX=g++")
2850 #:phases (modify-phases %standard-phases
2851 (replace 'configure
2852 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2853 (apply invoke "./configure" configure-flags)))
2854 (replace 'build
2855 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2856 (invoke "make"
2857 "-j" (if parallel-build?
2858 (number->string (parallel-job-count))
2859 "1")
2860 "maps")))
2861 (add-after 'build 'pack
2862 (lambda _
2863 (invoke "make" "pk3")))
2864 (replace 'install
2865 (lambda* (#:key outputs #:allow-other-keys)
2866 (let ((out (assoc-ref outputs "out")))
2867 (for-each (lambda (file)
2868 (install-file file out))
2869 (find-files "base" "\\.pk3$"))
2870 #t))))))
2871 (native-inputs
2872 `(("python" ,python-2)
2873 ("ufo2map" ,ufo2map)
2874 ("which" ,which)
2875 ("zip" ,zip)))
2876 (synopsis "UFO: AI data files")
2877 (description
2878 "This package contains maps and other assets for UFO: Alien Invasion.")
2879 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2880 ;; licenses, see LICENSES for details.
2881 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2882 license:cc-by-sa3.0 license:public-domain))))
2883
2884 (define-public ufoai
2885 (package
2886 (name "ufoai")
2887 (version %ufoai-version)
2888 (home-page "https://ufoai.org/")
2889 (source ufoai-source)
2890 (build-system gnu-build-system)
2891 (arguments
2892 `(#:configure-flags
2893 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2894 (string-append "--datadir=" (assoc-ref %outputs "out")
2895 "/share/games/ufo")
2896 "CC=gcc" "CXX=g++"
2897 "--enable-release"
2898 "--enable-game"
2899 "--disable-ufo2map"
2900 "--disable-dependency-tracking"
2901
2902 ;; Disable hard links to prevent huge NARs.
2903 "--disable-hardlinkedgame"
2904 "--disable-hardlinkedcgame")
2905 #:phases (modify-phases %standard-phases
2906 (add-after 'unpack 'symlink-data-files
2907 (lambda* (#:key inputs #:allow-other-keys)
2908 (let ((data (assoc-ref inputs "ufoai-data")))
2909 ;; Symlink the data files to where the build system
2910 ;; expects to find them. Ultimately these files are
2911 ;; copied to $out/share/games/ufoai/base, losing the
2912 ;; symlinks; we could fix that after install, but it
2913 ;; does not make a big difference in practice due to
2914 ;; deduplication.
2915 (with-directory-excursion "base"
2916 (for-each (lambda (file)
2917 (symlink file (basename file)))
2918 (find-files data "\\.pk3$")))
2919 #t)))
2920 (add-before 'configure 'create-language-files
2921 (lambda _
2922 (invoke "make" "lang")))
2923 (replace 'configure
2924 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2925 (apply invoke "./configure" configure-flags)))
2926 (replace 'check
2927 (lambda* (#:key tests? #:allow-other-keys)
2928 (if tests?
2929 (invoke "./testall")
2930 (format #t "test suite not run~%"))
2931 #t))
2932 (add-after 'install 'install-man-pages
2933 (lambda* (#:key outputs #:allow-other-keys)
2934 (let* ((out (assoc-ref outputs "out"))
2935 (man6 (string-append out "/share/man/man6")))
2936 (install-file "debian/ufo.6" man6)
2937 (install-file "debian/ufoded.6" man6)
2938 #t))))
2939
2940 ;; TODO: Some map tests occasionally fail because of randomness issues,
2941 ;; e.g. not enough generated aliens. The test runner also fails early
2942 ;; in the build container with 'failed to shutdown server'?
2943 #:tests? #f))
2944 (native-inputs
2945 `(("gettext" ,gettext-minimal)
2946 ("pkg-config" ,pkg-config)
2947 ("python" ,python-2)
2948 ("ufo2map" ,ufo2map)
2949 ("ufoai-data" ,ufoai-data)))
2950 (inputs
2951 `(("curl" ,curl)
2952 ("libjpeg" ,libjpeg-turbo)
2953 ("libogg" ,libogg)
2954 ("libpng" ,libpng)
2955 ("libtheora" ,libtheora)
2956 ("libvorbis" ,libvorbis)
2957 ("libxml2" ,libxml2)
2958 ("lua" ,lua-5.1)
2959 ("mesa" ,mesa)
2960 ("minixml" ,minixml)
2961 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2962 ("zlib" ,zlib)))
2963 (synopsis "Turn-based tactical strategy game")
2964 (description
2965 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2966 You control a secret organisation charged with defending Earth from a brutal
2967 alien enemy. Build up your bases, prepare your team, and dive head-first into
2968 the fast and flowing turn-based combat.
2969
2970 Over the long term you will need to conduct research into the alien threat to
2971 figure out their mysterious goals and use their powerful weapons for your own
2972 ends. You will produce unique items and use them in combat against your
2973 enemies.
2974
2975 You can also use them against your friends with the multiplayer functionality.
2976
2977 Warning: This is a pre-release version of UFO: AI! Some things may not work
2978 properly.")
2979
2980 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2981 ;; because some assets do not use the "or later" clause. Many individual
2982 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2983 (license (delete license:gpl2+ (package-license ufoai-data)))))
2984
2985 (define-public xshogi
2986 (package
2987 (name "xshogi")
2988 (version "1.4.2")
2989 (source
2990 (origin
2991 (method url-fetch)
2992 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2993 version ".tar.gz"))
2994 (sha256
2995 (base32
2996 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2997 (build-system gnu-build-system)
2998 (inputs
2999 `(("libxaw" ,libxaw)
3000 ("libxt" ,libxt)))
3001 (home-page "https://www.gnu.org/software/gnushogi/")
3002 (synopsis "User interface for gnushogi")
3003 (description "A graphical user interface for the package @code{gnushogi}.")
3004 ;; Contains a copy of GPLv3 but the licence notices simply
3005 ;; state "GNU General Public Licence" without specifying a version.
3006 (license license:gpl1+)))
3007
3008 (define-public abbaye
3009 (package
3010 (name "abbaye")
3011 (version "2.0.1")
3012 (source
3013 (origin
3014 (method git-fetch)
3015 (uri (git-reference
3016 (url "https://github.com/nevat/abbayedesmorts-gpl")
3017 (commit (string-append "v" version))))
3018 (file-name (git-file-name name version))
3019 (sha256
3020 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
3021 (modules '((guix build utils)))
3022 (snippet
3023 ;; Unbundle fonts.
3024 '(begin
3025 (delete-file-recursively "fonts")
3026 #t))))
3027 (build-system gnu-build-system)
3028 (arguments
3029 '(#:make-flags '("CC=gcc")
3030 #:phases (modify-phases %standard-phases
3031 (add-after 'set-paths 'set-sdl-paths
3032 (lambda* (#:key inputs #:allow-other-keys)
3033 (setenv "CPATH"
3034 (string-append
3035 (search-input-file inputs "include/SDL")
3036 ":" (or (getenv "CPATH") "")))))
3037 (add-after 'patch-source-shebangs 'patch-makefile
3038 (lambda* (#:key outputs #:allow-other-keys)
3039 ;; Replace /usr with package output directory.
3040 (substitute* "Makefile"
3041 (("/usr") (assoc-ref outputs "out")))))
3042 (add-before 'install 'make-install-dirs
3043 (lambda* (#:key outputs #:allow-other-keys)
3044 (let ((prefix (assoc-ref outputs "out")))
3045 ;; Create directories that the makefile assumes exist.
3046 (mkdir-p (string-append prefix "/bin"))
3047 (mkdir-p (string-append prefix "/share/applications"))
3048 (mkdir-p (string-append prefix "/share/pixmaps")))))
3049 ;; No configure script.
3050 (delete 'configure))
3051 #:tests? #f)) ;; No check target.
3052 (native-inputs `(("pkg-config" ,pkg-config)))
3053 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
3054 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
3055 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
3056 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
3057 France. The Cathars, who preach about good Christian beliefs, were being
3058 expelled by the Catholic Church out of the Languedoc region in France. One of
3059 them, called Jean Raymond, found an old church in which to hide, not knowing
3060 that beneath its ruins lay buried an ancient evil.")
3061 (license license:gpl3)))
3062
3063 (define-public angband
3064 (package
3065 (name "angband")
3066 (version "4.2.3")
3067 (source
3068 (origin
3069 (method git-fetch)
3070 (uri (git-reference
3071 (url "https://github.com/angband/angband")
3072 (commit version)))
3073 (file-name (git-file-name name version))
3074 (sha256
3075 (base32 "1psrdbf90mb6dhq0b9z18pz1csnshz1kvwg82dvwa99apqdw0la8"))
3076 (modules '((guix build utils)))
3077 (snippet
3078 ;; So, some of the sounds/graphics/tilesets are under different
3079 ;; licenses... some of them even nonfree! This is a console-only
3080 ;; version of this package so we just remove them.
3081 ;; In the future, if someone tries to make a graphical variant of
3082 ;; this package, they can deal with that mess themselves. :)
3083 '(begin
3084 (for-each (lambda (subdir)
3085 (let ((lib-subdir (string-append "lib/" subdir)))
3086 (delete-file-recursively lib-subdir)))
3087 '("fonts" "icons" "sounds" "tiles"))
3088 (substitute* "lib/Makefile"
3089 ;; And don't try to invoke makefiles in the directories we removed.
3090 (("gamedata customize help screens fonts tiles sounds icons user")
3091 "gamedata customize help screens user"))
3092 #t))))
3093 (build-system gnu-build-system)
3094 (arguments
3095 `(#:tests? #f ; no check target
3096 #:configure-flags (list (string-append "--bindir=" %output "/bin"))))
3097 (native-inputs
3098 `(("autoconf" ,autoconf)
3099 ("automake" ,automake)))
3100 (inputs `(("ncurses" ,ncurses)))
3101 (home-page "https://rephial.org/")
3102 (synopsis "Dungeon exploration roguelike")
3103 (description "Angband is a Classic dungeon exploration roguelike. Explore
3104 the depths below Angband, seeking riches, fighting monsters, and preparing to
3105 fight Morgoth, the Lord of Darkness.")
3106 (license license:gpl2)))
3107
3108 (define-public pingus
3109 (package
3110 (name "pingus")
3111 (version "0.7.6")
3112 (source
3113 (origin
3114 (method git-fetch)
3115 (uri (git-reference
3116 (url "https://gitlab.com/pingus/pingus.git")
3117 (commit (string-append "v" version))))
3118 (file-name (git-file-name name version))
3119 (sha256
3120 (base32
3121 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
3122 (patches (search-patches "pingus-boost-headers.patch"
3123 "pingus-sdl-libs-config.patch"))
3124 (modules '((guix build utils)))
3125 (snippet
3126 '(begin
3127 (substitute* "src/pingus/screens/demo_session.cpp"
3128 (("#include <iostream>")
3129 ;; std::function moved to <functional> with C++ 11.
3130 ;; Remove this for versions newer than 0.7.6.
3131 "#include <iostream>\n#include <functional>"))
3132 #t))))
3133 (build-system gnu-build-system)
3134 (native-inputs `(("pkg-config" ,pkg-config)
3135 ("scons-python2" ,scons-python2)))
3136 (inputs `(("sdl" ,sdl)
3137 ("sdl-image" ,sdl-image)
3138 ("sdl-mixer" ,sdl-mixer)
3139 ("mesa" ,mesa)
3140 ("glu" ,glu)
3141 ("libpng" ,libpng)
3142 ("boost" ,boost)))
3143 (arguments
3144 '(#:make-flags (list (string-append "PREFIX=" %output))
3145 #:tests? #f ; no check target
3146 #:phases
3147 (modify-phases %standard-phases
3148 (delete 'configure)))) ; no configure script
3149 (home-page "https://pingus.seul.org/")
3150 (synopsis "Lemmings clone")
3151 (description
3152 "Pingus is a free Lemmings-like puzzle game in which the player takes
3153 command of a bunch of small animals and has to guide them through levels.
3154 Since the animals walk on their own, the player can only influence them by
3155 giving them commands, like build a bridge, dig a hole, or redirect all animals
3156 in the other direction. Multiple such commands are necessary to reach the
3157 level's exit. The game is presented in a 2D side view.")
3158 ;; Some source files are under bsd-3 and gpl2+ licenses.
3159 (license license:gpl3+)))
3160
3161 (define-public talkfilters
3162 (package
3163 (name "talkfilters")
3164 (version "2.3.8")
3165 (source
3166 (origin
3167 (method url-fetch)
3168 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
3169 "talkfilters-" version ".tar.gz"))
3170 (sha256
3171 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
3172 (build-system gnu-build-system)
3173 (home-page "https://www.gnu.org/software/talkfilters/")
3174 (synopsis "Convert English text to humorous dialects")
3175 (description "The GNU Talk Filters are programs that convert English text
3176 into stereotyped or otherwise humorous dialects. The filters are provided as
3177 a C library, so they can easily be integrated into other programs.")
3178 (license license:gpl2+)))
3179
3180 (define-public taisei
3181 (package
3182 (name "taisei")
3183 (version "1.3.2")
3184 (source
3185 (origin
3186 (method url-fetch)
3187 (uri (string-append "https://github.com/taisei-project/"
3188 "taisei/releases/download/v" version
3189 "/taisei-v" version ".tar.xz"))
3190 (sha256
3191 (base32 "1g53fcyrlzmvlsb40pw90gaglysv6n1w42hk263iv61ibhdmzh6v"))))
3192 (build-system meson-build-system)
3193 (arguments
3194 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
3195 #:configure-flags
3196 (list "-Dr_default=gles30"
3197 "-Dr_gles20=true"
3198 "-Dr_gles30=true"
3199 "-Dshader_transpiler=true")))
3200 (native-inputs
3201 `(("pkg-config" ,pkg-config)
3202 ("python" ,python)
3203 ("python-docutils" ,python-docutils)
3204 ("python-pygments" ,python-pygments)))
3205 (inputs
3206 `(("cglm" ,cglm)
3207 ("freetype" ,freetype)
3208 ("libpng" ,libpng)
3209 ("libwebp" ,libwebp)
3210 ("libzip" ,libzip)
3211 ("mesa" ,mesa)
3212 ("openssl" ,openssl)
3213 ("opusfile" ,opusfile)
3214 ("sdl2" ,sdl2)
3215 ("sdl2-mixer" ,sdl2-mixer)
3216 ("shaderc" ,shaderc)
3217 ("spirv-cross" ,spirv-cross)
3218 ("zlib" ,zlib)))
3219 (home-page "https://taisei-project.org/")
3220 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
3221 (description
3222 "The player controls a character (one of three: Good, Bad, and Dead),
3223 dodges the missiles (lots of it cover the screen, but the character's hitbox
3224 is very small), and shoot at the adversaries that keep appear on the screen.")
3225 (license (list ;;game
3226 license:expat
3227 ;;resources/00-taisei.pkgdir/bgm/
3228 ;;atlas/portraits/
3229 license:cc-by4.0
3230 ;;miscellaneous
3231 license:cc0
3232 license:public-domain))))
3233
3234 (define-public cmatrix
3235 (package
3236 (name "cmatrix")
3237 (version "2.0")
3238 (source
3239 (origin
3240 (method git-fetch)
3241 (uri (git-reference
3242 (url "https://github.com/abishekvashok/cmatrix")
3243 (commit (string-append "v" version))))
3244 (file-name (git-file-name name version))
3245 (sha256
3246 (base32
3247 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
3248 (build-system gnu-build-system)
3249 (native-inputs
3250 `(("autoconf" ,autoconf)
3251 ("automake" ,automake)))
3252 (arguments
3253 '(#:phases
3254 (modify-phases %standard-phases
3255 (replace 'configure
3256 (lambda* (#:key outputs #:allow-other-keys)
3257 ;; This old ‘configure’ script doesn't support
3258 ;; variables passed as arguments.
3259 (let ((out (assoc-ref outputs "out")))
3260 (setenv "CONFIG_SHELL" (which "bash"))
3261 (invoke "./configure"
3262 (string-append "--prefix=" out))))))))
3263 (inputs `(("ncurses" ,ncurses)))
3264 (home-page "http://www.asty.org/cmatrix")
3265 (synopsis "Simulate the display from \"The Matrix\"")
3266 (description "CMatrix simulates the display from \"The Matrix\" and is
3267 based on the screensaver from the movie's website. It works with terminal
3268 settings up to 132x300 and can scroll lines all at the same rate or
3269 asynchronously and at a user-defined speed.")
3270 (license license:gpl2+)))
3271
3272 (define-public chess
3273 (package
3274 (name "chess")
3275 (version "6.2.9")
3276 (source
3277 (origin
3278 (method url-fetch)
3279 (uri (string-append "mirror://gnu/chess/gnuchess-" version
3280 ".tar.gz"))
3281 (sha256
3282 (base32
3283 "140qqkmvldnf41s39khrgyzr6a0az7dcfhkcmflh0sbmvl5w5z6x"))))
3284 (build-system gnu-build-system)
3285 (arguments
3286 '(#:phases
3287 (modify-phases %standard-phases
3288 (add-after 'install 'fix-shell-scripts
3289 (lambda* (#:key outputs #:allow-other-keys)
3290 (let* ((out (assoc-ref outputs "out"))
3291 (bin (string-append out "/bin")))
3292 (chdir bin)
3293 (substitute* '("gnuchessx" "gnuchessu")
3294 (("^gnuchess") (string-append bin "/gnuchess")))))))))
3295 (home-page "https://www.gnu.org/software/chess/")
3296 (synopsis "Full chess implementation")
3297 (description "GNU Chess is a chess engine. It allows you to compete
3298 against the computer in a game of chess, either through the default terminal
3299 interface or via an external visual interface such as GNU XBoard.")
3300 (properties '((upstream-name . "gnuchess")
3301 (ftp-directory . "/chess")))
3302 (license license:gpl3+)))
3303
3304 (define-public freedink-engine
3305 (package
3306 (name "freedink-engine")
3307 (version "109.6")
3308 (source (origin
3309 (method url-fetch)
3310 (uri (string-append "mirror://gnu/freedink/freedink-" version
3311 ".tar.gz"))
3312 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
3313 (sha256
3314 (base32
3315 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
3316 (build-system gnu-build-system)
3317 (arguments
3318 `(#:configure-flags '("--disable-embedded-resources")
3319 #:phases
3320 (modify-phases %standard-phases
3321 (add-after 'unpack 'disable-graphical-tests
3322 (lambda _
3323 ;; These tests require a graphical interface.
3324 (substitute* "src/Makefile.am"
3325 (("test_gfx_fonts TestIOGfxDisplay") ""))
3326 #t))
3327 (add-before 'bootstrap 'autoreconf
3328 (lambda _
3329 ;; automake is out of date in the source
3330 ;; autoreconf updates the automake scripts
3331 (invoke "autoreconf")
3332 ;; Build fails when autom4te.cache exists.
3333 (delete-file-recursively "autom4te.cache")
3334 #t))
3335 (add-after 'install 'delete-freedinkedit-desktop
3336 (lambda* (#:key outputs #:allow-other-keys)
3337 (let ((out (assoc-ref outputs "out")))
3338 ;; freedinkedit does not know where to find freedink data
3339 ;; freedink data is read-only, so it cannot be edited anyway.
3340 ;; TODO: fix freedink.desktop
3341 (delete-file-recursively (string-append
3342 out "/share/applications"))
3343 #t))))))
3344 (native-inputs `(("autoconf" ,autoconf)
3345 ("automake" ,automake)
3346 ("cxxtest" ,cxxtest)
3347 ("gettext" ,gettext-minimal)
3348 ("help2man" ,help2man)
3349 ("pkg-config" ,pkg-config)))
3350 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
3351 sdl2-ttf sdl2-gfx)))
3352 ("fontconfig" ,fontconfig)
3353 ("glm" ,glm)))
3354 (properties '((ftp-directory . "/freedink")
3355 (upstream-name . "freedink")))
3356 (home-page "https://www.gnu.org/software/freedink/")
3357 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
3358 (description
3359 "GNU FreeDink is a free and portable re-implementation of the engine
3360 for the role-playing game Dink Smallwood. It supports not only the original
3361 game data files but it also supports user-produced game mods or \"D-Mods\".
3362 To that extent, it also includes a front-end for managing all of your D-Mods.")
3363 (license license:gpl3+)))
3364
3365 (define-public freedink-data
3366 (package
3367 (name "freedink-data")
3368 (version "1.08.20190120")
3369 (source (origin
3370 (method url-fetch)
3371 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3372 version ".tar.gz"))
3373 (sha256
3374 (base32
3375 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3376 (build-system gnu-build-system)
3377 (arguments
3378 `(#:phases
3379 (modify-phases %standard-phases
3380 (delete 'configure) ; no configure script
3381 (delete 'check)) ; no tests
3382 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3383 (properties '((ftp-directory . "/freedink")))
3384 (home-page "https://www.gnu.org/software/freedink/")
3385 (synopsis "Game data for GNU Freedink")
3386 (description
3387 "This package contains the game data of GNU Freedink.")
3388 (license license:gpl3+)))
3389
3390 (define-public freedink-dfarc
3391 (package
3392 (name "freedink-dfarc")
3393 (version "3.14")
3394 (source (origin
3395 (method url-fetch)
3396 (uri (string-append "mirror://gnu/freedink/dfarc-"
3397 version ".tar.gz"))
3398 (sha256
3399 (base32
3400 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3401 (build-system gnu-build-system)
3402 (native-inputs
3403 `(("intltool" ,intltool)))
3404 (inputs
3405 `(("bzip2" ,bzip2)
3406 ("wxwidgets" ,wxwidgets)))
3407 (properties '((ftp-directory . "/freedink")
3408 (upstream-name . "dfarc")))
3409 (home-page "https://www.gnu.org/software/freedink/")
3410 (synopsis "Front-end for managing and playing Dink Modules")
3411 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3412 and its numerous D-Mods.")
3413 (license license:gpl3+)))
3414
3415 (define-public freedink
3416 ;; This is a wrapper that tells the engine where to find the data.
3417 (package (inherit freedink-engine)
3418 (name "freedink")
3419 (build-system trivial-build-system)
3420 (arguments
3421 '(#:builder (begin
3422 (use-modules (guix build utils))
3423
3424 (let* ((output (assoc-ref %outputs "out"))
3425 (bin (string-append output "/bin"))
3426 (executable (string-append bin "/freedink")))
3427 (mkdir-p bin)
3428 (call-with-output-file executable
3429 (lambda (port)
3430 (format port "#!~a/bin/sh
3431 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3432 (assoc-ref %build-inputs "bash")
3433 (assoc-ref %build-inputs "engine")
3434 (assoc-ref %build-inputs "data"))
3435 (chmod port #o777)))
3436 #t))
3437 #:modules ((guix build utils))))
3438 (inputs `(("engine" ,freedink-engine)
3439 ("data" ,freedink-data)
3440 ("bash" ,bash)))
3441 (native-inputs '())))
3442
3443 (define-public xboard
3444 (package
3445 (name "xboard")
3446 (version "4.9.1")
3447 (source
3448 (origin
3449 (method url-fetch)
3450 (uri (string-append "mirror://gnu/xboard/xboard-" version
3451 ".tar.gz"))
3452 (sha256
3453 (base32
3454 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3455 (build-system gnu-build-system)
3456 (arguments
3457 `(#:configure-flags '("CFLAGS=-fcommon")
3458 #:phases
3459 (modify-phases %standard-phases
3460 ;; Fixes https://issues.guix.gnu.org/47195.
3461 (add-after 'unpack 'patch-aplay-path
3462 (lambda* (#:key inputs #:allow-other-keys)
3463 (substitute* "xboard.conf"
3464 (("aplay -q")
3465 (string-append (search-input-file inputs "/bin/aplay")
3466 " -q")))))
3467 ;; Fixes https://issues.guix.gnu.org/45236.
3468 (add-after 'unpack 'patch-default-engine
3469 (lambda* (#:key inputs #:allow-other-keys)
3470 (substitute* "xboard.conf"
3471 (("-firstChessProgram fairymax")
3472 (string-append "-firstChessProgram "
3473 (assoc-ref inputs "chess")
3474 "/bin/gnuchessx"))))))))
3475 (inputs
3476 `(("alsa-utils" ,alsa-utils)
3477 ("chess" ,chess)
3478 ("gtk+" ,gtk+-2)
3479 ("librsvg" ,librsvg)))
3480 (native-inputs
3481 `(("texinfo" ,texinfo)
3482 ("pkg-config" ,pkg-config)))
3483 (home-page "https://www.gnu.org/software/xboard/")
3484 (synopsis "Graphical user interface for chess programs")
3485 (description "GNU XBoard is a graphical board for all varieties of chess,
3486 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3487 and Makruk. Several lesser-known variants are also supported. It presents a
3488 fully interactive graphical interface and it can load and save games in the
3489 Portable Game Notation.")
3490 (license license:gpl3+)))
3491
3492 (define-public gtypist
3493 (package
3494 (name "gtypist")
3495 (version "2.9.5")
3496 (source (origin
3497 (method url-fetch)
3498 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3499 version ".tar.xz"))
3500 (sha256
3501 (base32
3502 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3503 (modules '((guix build utils)))
3504 (snippet
3505 ;; We do not provide `ncurses.h' within an `ncursesw'
3506 ;; sub-directory, so patch the source accordingly. See
3507 ;; <http://bugs.gnu.org/19018>.
3508 '(begin
3509 (for-each (lambda (file)
3510 (substitute* file
3511 (("ncursesw/ncurses.h")
3512 "ncurses.h")))
3513 (find-files "." "configure$|\\.c$"))
3514 #t))))
3515 (build-system gnu-build-system)
3516 (inputs `(("ncurses" ,ncurses)
3517 ("perl" ,perl)))
3518 (home-page "https://www.gnu.org/software/gtypist/")
3519 (synopsis "Typing tutor")
3520 (description
3521 "GNU Typist is a universal typing tutor. It can be used to learn and
3522 practice touch-typing. Several tutorials are included; in addition to
3523 tutorials for the standard QWERTY layout, there are also tutorials for the
3524 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3525 are primarily in English, however some in other languages are provided.")
3526 (license license:gpl3+)))
3527
3528 (define-public irrlicht
3529 (package
3530 (name "irrlicht")
3531 (version "1.8.4")
3532 (source (origin
3533 (method url-fetch)
3534 (uri (string-append
3535 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3536 (version-major+minor version)
3537 "/" version "/irrlicht-" version ".zip"))
3538 (sha256
3539 (base32
3540 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3541 (patches (search-patches "irrlicht-use-system-libs.patch"))
3542 (modules '((guix build utils)))
3543 (snippet
3544 '(begin
3545 (for-each delete-file-recursively
3546 '("bin" ; bundled compiled Windows binaries"
3547 "source/Irrlicht/MacOSX"
3548 "source/Irrlicht/bzip2"
3549 "source/Irrlicht/jpeglib"
3550 "source/Irrlicht/libpng"
3551 "source/Irrlicht/lzma"
3552 "source/Irrlicht/zlib"))
3553 (delete-file "source/Irrlicht/glext.h")
3554 (delete-file "source/Irrlicht/glxext.h")
3555 (delete-file "source/Irrlicht/wglext.h")
3556 #t))))
3557 (build-system gnu-build-system)
3558 (arguments
3559 `(#:phases
3560 (modify-phases %standard-phases
3561 (add-after 'unpack 'chdir-to-source
3562 (lambda _
3563 ;; The actual source is buried a few directories deep.
3564 (chdir "source/Irrlicht/")
3565 #t))
3566 (add-after 'chdir-to-source 'fix-build-env
3567 (lambda* (#:key outputs #:allow-other-keys)
3568 (let ((out (assoc-ref outputs "out")))
3569 (substitute* "Makefile"
3570 (("INSTALL_DIR = /usr/local/lib")
3571 (string-append "INSTALL_DIR = " out "/lib"))
3572 ;; Add '-fpermissive' to the CXXFLAGS
3573 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3574 ;; The Makefile assumes these directories exist.
3575 (mkdir-p (string-append out "/lib"))
3576 (mkdir-p (string-append out "/include")))))
3577 (delete 'configure)) ; no configure script
3578 #:tests? #f ; no check target
3579 #:make-flags '("CC=gcc" "sharedlib")))
3580 (inputs
3581 `(("bzip2" ,bzip2)
3582 ("libjpeg" ,libjpeg-turbo)
3583 ("libpng" ,libpng)
3584 ("libx11" ,libx11)
3585 ("libxxf86vm" ,libxxf86vm)
3586 ("mesa" ,mesa)))
3587 (synopsis "3D game engine written in C++")
3588 (description
3589 "The Irrlicht Engine is a high performance realtime 3D engine written in
3590 C++. Features include an OpenGL renderer, extensible materials, scene graph
3591 management, character animation, particle and other special effects, support
3592 for common mesh file formats, and collision detection.")
3593 (home-page "http://irrlicht.sourceforge.net/")
3594 (license license:zlib)))
3595
3596 (define-public mars
3597 ;; The latest release on SourceForge relies on an unreleased version of SFML
3598 ;; with a different API, so we take the latest version from the official
3599 ;; repository on Github.
3600 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3601 (revision "1"))
3602 (package
3603 (name "mars")
3604 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3605 (source (origin
3606 (method git-fetch)
3607 (uri (git-reference
3608 (url "https://github.com/thelaui/M.A.R.S.")
3609 (commit commit)))
3610 (file-name (git-file-name name version))
3611 (sha256
3612 (base32
3613 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3614 (patches (search-patches "mars-sfml-2.3.patch"
3615 "mars-install.patch"))))
3616 (build-system cmake-build-system)
3617 (arguments
3618 `(#:tests? #f ; There are no tests
3619 #:phases
3620 (modify-phases %standard-phases
3621 (add-after 'unpack 'fix-install-path
3622 (lambda _
3623 (substitute* "src/CMakeLists.txt"
3624 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3625 "${CMAKE_INSTALL_PREFIX}/bin"))
3626 #t))
3627 (add-after 'unpack 'fix-data-path
3628 (lambda* (#:key outputs #:allow-other-keys)
3629 (substitute* "src/System/settings.cpp"
3630 (("C_dataPath = \"./data/\";")
3631 (string-append "C_dataPath = \""
3632 (assoc-ref outputs "out")
3633 "/share/games/marsshooter/\";")))
3634 #t)))))
3635 (inputs
3636 `(("mesa" ,mesa)
3637 ("fribidi" ,fribidi)
3638 ("taglib" ,taglib)
3639 ("sfml" ,sfml)))
3640 (home-page "http://mars-game.sourceforge.net/")
3641 (synopsis "2D space shooter")
3642 (description
3643 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3644 attractive physics. Players can battle each other or computer controlled
3645 enemies in different game modes such as space ball, death match, team death
3646 match, cannon keep, and grave-itation pit.")
3647 (license license:gpl3+))))
3648
3649 (define glkterm
3650 (package
3651 (name "glkterm")
3652 (version "1.0.4")
3653 (source
3654 (origin
3655 (method url-fetch)
3656 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3657 "glk/implementations/glkterm-104.tar.gz"))
3658 (sha256
3659 (base32
3660 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3661 (build-system gnu-build-system)
3662 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3663 (arguments
3664 '(#:tests? #f ; no check target
3665 #:phases
3666 (modify-phases %standard-phases
3667 (replace 'install
3668 (lambda* (#:key outputs #:allow-other-keys)
3669 (let* ((out (assoc-ref outputs "out"))
3670 (inc (string-append out "/include"))
3671 (lib (string-append out "/lib")))
3672 (for-each
3673 (lambda (file)
3674 (install-file file inc))
3675 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3676 (install-file "libglkterm.a" lib))
3677 #t))
3678 (delete 'configure)))) ; no configure script
3679 (home-page "http://www.eblong.com/zarf/glk/")
3680 (synopsis "Curses Implementation of the Glk API")
3681 (description
3682 "Glk defines a portable API for applications with text UIs. It was
3683 primarily designed for interactive fiction, but it should be suitable for many
3684 interactive text utilities, particularly those based on a command line.
3685 This is an implementation of the Glk library which runs in a terminal window,
3686 using the @code{curses.h} library for screen control.")
3687 (license (license:fsf-free "file://README"))))
3688
3689 (define-public glulxe
3690 (package
3691 (name "glulxe")
3692 (version "0.5.4")
3693 (source
3694 (origin
3695 (method url-fetch)
3696 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3697 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3698 (sha256
3699 (base32
3700 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3701 (build-system gnu-build-system)
3702 (inputs `(("glk" ,glkterm)))
3703 (arguments
3704 '(#:tests? #f ; no check target
3705 #:make-flags
3706 (let* ((glk (assoc-ref %build-inputs "glk")))
3707 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3708 (string-append "GLKLIBDIR=" glk "/lib")
3709 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3710 #:phases
3711 (modify-phases %standard-phases
3712 (replace 'install
3713 (lambda* (#:key outputs #:allow-other-keys)
3714 (let* ((out (assoc-ref outputs "out"))
3715 (bin (string-append out "/bin")))
3716 (install-file "glulxe" bin))
3717 #t))
3718 (delete 'configure)))) ; no configure script
3719 (home-page "https://www.eblong.com/zarf/glulx/")
3720 (synopsis "Interpreter for Glulx VM")
3721 (description
3722 "Glulx is a 32-bit portable virtual machine intended for writing and
3723 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3724 some of the restrictions in the venerable Z-machine format. This is the
3725 reference interpreter, using the Glk API.")
3726 (license license:expat)))
3727
3728 (define-public fifechan
3729 (package
3730 (name "fifechan")
3731 (version "0.1.5")
3732 (source (origin
3733 (method url-fetch)
3734 (uri (string-append "https://codeload.github.com/fifengine/"
3735 "fifechan/tar.gz/" version))
3736 (file-name (string-append name "-" version ".tar.gz"))
3737 (sha256
3738 (base32
3739 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3740 (build-system cmake-build-system)
3741 (inputs
3742 `(("sdl2" ,sdl2)
3743 ("sdl2-image" ,sdl2-image)
3744 ("mesa" ,mesa)))
3745 (arguments
3746 '(#:tests? #f)) ; No included tests
3747 (home-page "https://fifengine.github.io/fifechan/")
3748 (synopsis "Cross platform GUI library specifically for games")
3749 (description
3750 "Fifechan is a lightweight cross platform GUI library written in C++
3751 specifically designed for games. It has a built in set of extendable GUI
3752 Widgets, and allows users to create more.")
3753 (license license:lgpl2.1+)))
3754
3755 (define-public fifengine
3756 (package
3757 (name "fifengine")
3758 (version "0.4.2")
3759 (source (origin
3760 (method url-fetch)
3761 (uri (string-append "https://codeload.github.com/fifengine/"
3762 "fifengine/tar.gz/" version))
3763 (file-name (string-append name "-" version ".tar.gz"))
3764 (patches (search-patches "fifengine-swig-compat.patch"))
3765 (sha256
3766 (base32
3767 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3768 (build-system cmake-build-system)
3769 (arguments
3770 `(#:tests? #f ; TODO The test running fails to run some tests.
3771 #:imported-modules ,(cons '(guix build python-build-system)
3772 %cmake-build-system-modules)
3773 #:modules ((guix build cmake-build-system)
3774 ((guix build python-build-system) #:select (guix-pythonpath))
3775 (guix build utils)
3776 (srfi srfi-1))
3777 #:configure-flags
3778 (list
3779 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3780 (assoc-ref %build-inputs "openal")
3781 "/include/AL")
3782 (string-append "-DPYTHON_SITE_PACKAGES="
3783 (assoc-ref %outputs "out")
3784 "/lib/python"
3785 ,(version-major+minor (package-version python))
3786 "/site-packages"))
3787 #:phases
3788 (modify-phases %standard-phases
3789 (add-after 'unpack 'patch-run_tests.py
3790 (lambda _
3791 ;; Patch the test runner to exit with a status of 1 if any test
3792 ;; fails, to allow detecting failures.
3793 (substitute* "run_tests.py"
3794 (("ERROR\\. One or more tests failed!'\\)")
3795 "ERROR. One or more tests failed!')
3796 \t\texit(1)"))
3797 #t))
3798 ;; Run tests after installation so that we can make use of the built
3799 ;; python modules.
3800 (delete 'check)
3801 (add-after 'install 'check
3802 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3803 (when tests?
3804 (add-installed-pythonpath inputs outputs)
3805 ;; The tests require an X server.
3806 (system "Xvfb :1 &")
3807 (setenv "DISPLAY" ":1")
3808 (setenv "XDG_RUNTIME_DIR" "/tmp")
3809 ;; Run tests
3810 (chdir ,(string-append "../" name "-" version))
3811 (invoke "python3" "run_tests.py" "-a")))))))
3812 (inputs
3813 `(("sdl2" ,sdl2)
3814 ("sdl2-image" ,sdl2-image)
3815 ("sdl2-ttf" ,sdl2-ttf)
3816 ("tinyxml" ,tinyxml)
3817 ("openal" ,openal)
3818 ("libogg" ,libogg)
3819 ("glew" ,glew)
3820 ("libvorbis" ,libvorbis)
3821 ("boost" ,boost)
3822 ("fifechan" ,fifechan)
3823 ("swig" ,swig)
3824 ("python" ,python)))
3825 (native-inputs
3826 `(("python" ,python)
3827 ("swig" ,swig)
3828 ("xvfb" ,xorg-server)))
3829 (propagated-inputs
3830 `(("python-future" ,python-future)))
3831 (home-page "https://www.fifengine.net/")
3832 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3833 (description
3834 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3835 isometric game engine. Python bindings are included allowing users to create
3836 games using Python as well as C++.")
3837 (license license:lgpl2.1+)))
3838
3839 (define-public fizmo
3840 (package
3841 (name "fizmo")
3842 (version "0.8.5")
3843 (source (origin
3844 (method url-fetch)
3845 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3846 "fizmo-" version ".tar.gz"))
3847 (sha256
3848 (base32
3849 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3850 (build-system gnu-build-system)
3851 (arguments
3852 '(#:configure-flags
3853 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3854 (ncurses (assoc-ref %build-inputs "ncurses")))
3855 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3856 (native-inputs
3857 `(("pkg-config" ,pkg-config)))
3858 (inputs
3859 `(("freetype" ,freetype)
3860 ("libjpeg" ,libjpeg-turbo)
3861 ("libpng" ,libpng)
3862 ("libsndfile" ,libsndfile)
3863 ("libxml2" ,libxml2)
3864 ("ncurses" ,ncurses)
3865 ("sdl2" ,sdl2)))
3866 (home-page "https://fizmo.spellbreaker.org/")
3867 (synopsis "Z-machine interpreter")
3868 (description
3869 "Fizmo is a console-based Z-machine interpreter. It is used to play
3870 interactive fiction, also known as text adventures, which were implemented
3871 either by Infocom or created using the Inform compiler.")
3872 (license license:bsd-3)))
3873
3874 (define-public gnugo
3875 (package
3876 (name "gnugo")
3877 (version "3.8")
3878 (source (origin
3879 (method url-fetch)
3880 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3881 ".tar.gz"))
3882 (sha256
3883 (base32
3884 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3885 (build-system gnu-build-system)
3886 (inputs
3887 `(("readline" ,readline)))
3888 (arguments
3889 `(#:configure-flags '("CFLAGS=-fcommon")))
3890 (synopsis "Play the game of Go")
3891 (description
3892 "GNU Go is a program that plays the game of Go, in which players
3893 place stones on a grid to form territory or capture other stones. While
3894 it can be played directly from the terminal, rendered in ASCII characters,
3895 it is also possible to play GNU Go with 3rd party graphical interfaces or
3896 even in Emacs. It supports the standard game storage format (SGF, Smart
3897 Game Format) and inter-process communication format (GMP, Go Modem
3898 Protocol).")
3899 (home-page "https://www.gnu.org/software/gnugo/")
3900 (license license:gpl3+)))
3901
3902 (define-public extremetuxracer
3903 (package
3904 (name "extremetuxracer")
3905 (version "0.8.1")
3906 (source (origin
3907 (method url-fetch)
3908 (uri (string-append
3909 "mirror://sourceforge/extremetuxracer/releases/"
3910 version "/etr-" version ".tar.xz"))
3911 (sha256
3912 (base32
3913 "0hc3qd9hv3h9qm53yxgc7iy1v1wyajwxyvil4vqvzf9ascz9dnlj"))))
3914 (build-system gnu-build-system)
3915 (native-inputs
3916 `(("pkg-config" ,pkg-config)))
3917 (inputs
3918 `(("glu" ,glu)
3919 ("sfml" ,sfml)))
3920 (synopsis "High-speed arctic racing game based on Tux Racer")
3921 ;; Snarfed straight from Debian.
3922 (description "Extreme Tux Racer, or etracer as it is called for short, is
3923 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3924 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3925 avoiding the trees and rocks that will slow you down.
3926
3927 Collect herrings and other goodies while sliding down the hill, but avoid fish
3928 bones.
3929
3930 This game is based on the GPL version of the famous game TuxRacer.")
3931 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3932 (license license:gpl2+)))
3933
3934 (define-public supertuxkart
3935 (package
3936 (name "supertuxkart")
3937 (version "1.3")
3938 (source
3939 (origin
3940 (method url-fetch)
3941 (uri (string-append "https://github.com/supertuxkart/stk-code/"
3942 "releases/download/"
3943 version "/SuperTuxKart-" version "-src.tar.xz"))
3944 (sha256
3945 (base32
3946 "1z9z13zarv28h4jrmjna5hr6m9266pm7c2kgiwhqls01k06ypazf"))
3947 (modules '((guix build utils)))
3948 (snippet
3949 ;; Delete bundled library sources
3950 '(begin
3951 ;; Supertuxkart uses modified versions of the Irrlicht engine
3952 ;; and the bullet library. The developers gave an explanation
3953 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3954 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3955 (for-each delete-file-recursively
3956 '("lib/dnsc"
3957 "lib/enet"
3958 "lib/mojoal"
3959 "lib/wiiuse"))
3960 #t))))
3961 (build-system cmake-build-system)
3962 (arguments
3963 `(#:tests? #f ; no check target
3964 #:configure-flags
3965 (list "-DUSE_WIIUSE=0"
3966 "-DUSE_SYSTEM_ENET=TRUE"
3967 "-DUSE_CRYPTO_OPENSSL=TRUE"
3968 ;; In order to use the system ENet library, IPv6 support (added in
3969 ;; SuperTuxKart version 1.1) must be disabled.
3970 "-DUSE_IPV6=FALSE"
3971 ;; FIXME: needs libopenglrecorder
3972 "-DBUILD_RECORDER=0")))
3973 (inputs
3974 `(("curl" ,curl)
3975 ("freetype" ,freetype)
3976 ("fribidi" ,fribidi)
3977 ("glew" ,glew)
3978 ("harfbuzz" ,harfbuzz)
3979 ("libvorbis" ,libvorbis)
3980 ("libx11" ,libx11)
3981 ("libxrandr" ,libxrandr)
3982 ("mesa" ,mesa)
3983 ("openal" ,openal)
3984 ("sdl2" ,sdl2)
3985 ("sqlite" ,sqlite)
3986 ("zlib" ,zlib)
3987 ;; The following input is needed to build the bundled and modified
3988 ;; version of irrlicht.
3989 ("enet" ,enet)
3990 ("libjpeg" ,libjpeg-turbo)
3991 ("openssl" ,openssl)))
3992 (native-inputs
3993 `(("pkg-config" ,pkg-config)))
3994 (home-page "https://supertuxkart.net/Main_Page")
3995 (synopsis "3D kart racing game")
3996 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3997 having fun over realism. You can play with up to 4 friends on one PC, racing
3998 against each other or just trying to beat the computer; single-player mode is
3999 also available.")
4000 (license license:gpl3+)))
4001
4002 (define-public unknown-horizons
4003 (package
4004 (name "unknown-horizons")
4005 (version "2019.1")
4006 (source (origin
4007 (method url-fetch)
4008 (uri (string-append "https://codeload.github.com/unknown-horizons/"
4009 "unknown-horizons/tar.gz/" version))
4010 (file-name (string-append name "-" version ".tar.gz"))
4011 (sha256
4012 (base32
4013 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
4014 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
4015 (build-system python-build-system)
4016 (arguments
4017 '(#:phases
4018 (modify-phases %standard-phases
4019 (add-before 'build 'set-HOME
4020 (lambda _
4021 (setenv "HOME" "/tmp")
4022 #t))
4023 (add-after 'build 'build-extra
4024 (lambda _
4025 (invoke "python3" "./setup.py" "build_i18n")
4026 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
4027 #t))
4028 (add-after 'install 'patch
4029 (lambda* (#:key outputs #:allow-other-keys)
4030 (let ((out (assoc-ref outputs "out")))
4031 (substitute* (string-append out "/bin/unknown-horizons")
4032 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
4033 (string-append "os.chdir(\""
4034 (assoc-ref outputs "out")
4035 "/share/unknown-horizons\")"))))
4036 #t))
4037 (add-before 'check 'fix-tests-with-pytest>=4
4038 (lambda _
4039 (substitute* "tests/conftest.py"
4040 (("pytest_namespace")
4041 "pytest_configure")
4042 (("get_marker")
4043 "get_closest_marker"))
4044 #t))
4045 ;; TODO: Run GUI tests as well
4046 (replace 'check
4047 (lambda _
4048 (substitute* "horizons/constants.py"
4049 (("IS_DEV_VERSION = False")
4050 "IS_DEV_VERSION = True"))
4051 (invoke "pytest" "tests")
4052 (substitute* "horizons/constants.py"
4053 (("IS_DEV_VERSION = True")
4054 "IS_DEV_VERSION = False"))
4055 #t)))))
4056 (inputs
4057 `(("fifengine" ,fifengine)
4058 ("python:tk" ,python "tk")
4059 ("python-pillow" ,python-pillow)
4060 ("python-pyyaml" ,python-pyyaml)))
4061 (native-inputs
4062 `(("intltool" ,intltool)
4063 ("python-distro" ,python-distro)
4064
4065 ;; Required for tests
4066 ("python-greenlet" ,python-greenlet)
4067 ("python-polib" ,python-polib)
4068 ("python-pytest" ,python-pytest)
4069 ("python-pytest-mock" ,python-pytest-mock)))
4070 (home-page "https://unknown-horizons.org/")
4071 (synopsis "Isometric realtime strategy, economy and city building simulation")
4072 (description
4073 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
4074 on economy and city building. Expand your small settlement to a strong and
4075 wealthy colony, collect taxes and supply your inhabitants with valuable
4076 goods. Increase your power with a well balanced economy and with strategic
4077 trade and diplomacy.")
4078 (license (list
4079 license:gpl2+ ; Covers code
4080 license:expat ; tests/dummy.py, ext/polib.py
4081 license:cc-by-sa3.0 ; Covers some media content
4082 license:cc-by3.0 ; Covers some media content
4083 license:bsd-3)))) ; horizons/ext/speaklater.py
4084
4085 (define-public gnujump
4086 (package
4087 (name "gnujump")
4088 (version "1.0.8")
4089 (source (origin
4090 (method url-fetch)
4091 (uri (string-append "mirror://gnu/gnujump/gnujump-"
4092 version ".tar.gz"))
4093 (sha256
4094 (base32
4095 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
4096 (build-system gnu-build-system)
4097 (arguments
4098 '(#:phases
4099 (modify-phases %standard-phases
4100 (add-before
4101 'configure 'link-libm
4102 (lambda _ (setenv "LIBS" "-lm")))
4103 (add-after 'install 'create-desktop-entry
4104 (lambda* (#:key outputs #:allow-other-keys)
4105 (let* ((out (assoc-ref outputs "out"))
4106 (apps (string-append out "/share/applications")))
4107 (mkdir-p apps)
4108 (with-output-to-file
4109 (string-append apps "/gnujump.desktop")
4110 (lambda _
4111 (format #t
4112 "[Desktop Entry]~@
4113 Name=GNUjump~@
4114 Comment=Jump up the tower to survive~@
4115 Exec=~a/bin/gnujump~@
4116 Terminal=false~@
4117 Type=Application~@
4118 Categories=Game;ArcadeGame~%"
4119 out)))))))))
4120 (inputs
4121 `(("glu" ,glu)
4122 ("mesa" ,mesa)
4123 ("sdl" ,sdl)
4124 ("sdl-image" ,sdl-image)
4125 ("sdl-mixer" ,sdl-mixer)))
4126 (home-page "http://gnujump.es.gnu.org/")
4127 (synopsis
4128 "Game of jumping to the next floor, trying not to fall")
4129 (description
4130 "GNUjump is a simple, yet addictive game in which you must jump from
4131 platform to platform to avoid falling, while the platforms drop at faster rates
4132 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
4133 falling, themeable graphics and sounds, and replays.")
4134 (license license:gpl3+)))
4135
4136 (define-public wesnoth
4137 (package
4138 (name "wesnoth")
4139 (version "1.14.17")
4140 (source (origin
4141 (method url-fetch)
4142 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
4143 (version-major+minor version)
4144 "/wesnoth-" version "/"
4145 "wesnoth-" version ".tar.bz2"))
4146 (sha256
4147 (base32
4148 "1qc4ylhc4ab51milclzhflpmzw6bg35knwqaj3b157700jkcniin"))))
4149 (build-system cmake-build-system)
4150 (arguments
4151 `(#:tests? #f)) ;no check target
4152 (native-inputs
4153 `(("gettext" ,gettext-minimal)
4154 ("pkg-config" ,pkg-config)))
4155 (inputs
4156 `(("boost" ,boost)
4157 ("dbus" ,dbus)
4158 ("fribidi" ,fribidi)
4159 ("libvorbis" ,libvorbis)
4160 ("openssl" ,openssl)
4161 ("pango" ,pango)
4162 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
4163 (home-page "https://www.wesnoth.org/")
4164 (synopsis "Turn-based strategy game")
4165 (description
4166 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
4167 with several single player campaigns, and multiplayer games (both networked and
4168 local).
4169
4170 Battle for control on a range of maps, using variety of units which have
4171 advantages and disadvantages against different types of attacks. Units gain
4172 experience and advance levels, and are carried over from one scenario to the
4173 next campaign.")
4174 (license license:gpl2+)))
4175
4176 (define-public wesnoth-server
4177 (package
4178 (inherit wesnoth)
4179 (name "wesnoth-server")
4180 (inputs
4181 `(("boost" ,boost)
4182 ("icu4c" ,icu4c)
4183 ("openssl" ,openssl)
4184 ("sdl2" ,sdl2)))
4185 (arguments
4186 `(#:configure-flags '("-DENABLE_GAME=OFF")
4187 ,@(package-arguments wesnoth)))
4188 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
4189 (description "This package contains a dedicated server for @emph{The
4190 Battle for Wesnoth}.")))
4191
4192 (define-public gamine
4193 (package
4194 (name "gamine")
4195 (version "1.6")
4196 (source (origin
4197 (method url-fetch)
4198 (uri (string-append "mirror://sourceforge/gamine-game/"
4199 "gamine-" version ".tar.gz"))
4200 (sha256
4201 (base32
4202 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
4203 (build-system gnu-build-system)
4204 (native-inputs
4205 `(("pkg-config" ,pkg-config)
4206 ("intltool" ,intltool)))
4207 (inputs
4208 `(("gstreamer" ,gstreamer)
4209 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
4210 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
4211 ("gtk+" ,gtk+)))
4212 (arguments
4213 `(#:tests? #f
4214 #:make-flags
4215 (let ((out (assoc-ref %outputs "out")))
4216 (list (string-append "PREFIX=" out)
4217 (string-append "SYSCONFDIR=" out "/etc")))
4218 #:phases
4219 (modify-phases %standard-phases
4220 (delete 'configure)
4221 (add-after
4222 'install 'wrap-gamine
4223 (lambda* (#:key outputs #:allow-other-keys)
4224 (let ((out (assoc-ref outputs "out"))
4225 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4226 (wrap-program (string-append out "/bin/gamine")
4227 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4228 #t)))))
4229 (home-page "http://gamine-game.sourceforge.net/")
4230 (synopsis "Mouse and keyboard discovery for children")
4231 (description
4232 "Gamine is a game designed for young children who are learning to use the
4233 mouse and keyboard. The child uses the mouse to draw colored dots and lines
4234 on the screen and keyboard to display letters.")
4235 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
4236 (license license:gpl3)))
4237
4238 (define-public manaplus
4239 (package
4240 (name "manaplus")
4241 (version "1.9.3.23")
4242 (source (origin
4243 (method url-fetch)
4244 (uri (string-append
4245 "https://repo.manaplus.org/manaplus/download/"
4246 version "/manaplus-" version ".tar.xz"))
4247 (sha256
4248 (base32
4249 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
4250 (build-system gnu-build-system)
4251 (arguments
4252 '(#:configure-flags
4253 (list (string-append "CPPFLAGS=-I"
4254 (assoc-ref %build-inputs "sdl-union")
4255 "/include/SDL"))))
4256 (native-inputs
4257 `(("pkg-config" ,pkg-config)))
4258 (inputs
4259 `(("glu" ,glu)
4260 ("curl" ,curl)
4261 ("libxml2" ,libxml2)
4262 ("mesa" ,mesa)
4263 ("sdl-union" ,(sdl-union))))
4264 (home-page "https://manaplus.org")
4265 (synopsis "Client for 'The Mana World' and similar games")
4266 (description
4267 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4268 fully supported client for @uref{http://www.themanaworld.org, The mana
4269 world}, @uref{http://evolonline.org, Evol Online} and
4270 @uref{http://landoffire.org, Land of fire}.")
4271 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4272 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4273 ;; The rest is under GPL2+.
4274 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4275
4276 (define openttd-engine
4277 (package
4278 (name "openttd-engine")
4279 (version "1.11.2")
4280 (source
4281 (origin (method url-fetch)
4282 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4283 version "/openttd-" version "-source.tar.xz"))
4284 (sha256
4285 (base32
4286 "0v9f93lsdcv3ia28y8iihx9nj9zp6fpf5hkdrpl4ypw159d97fhg"))))
4287 (build-system cmake-build-system)
4288 (inputs
4289 `(("allegro" ,allegro)
4290 ("fontconfig" ,fontconfig)
4291 ("freetype" ,freetype)
4292 ("icu4c" ,icu4c)
4293 ("libpng" ,libpng)
4294 ("lzo" ,lzo)
4295 ("sdl" ,sdl)
4296 ("xz" ,xz)
4297 ("zlib" ,zlib)))
4298 (synopsis "Transportation economics simulator game")
4299 (description "OpenTTD is a game in which you transport goods and
4300 passengers by land, water and air. It is a re-implementation of Transport
4301 Tycoon Deluxe with many enhancements including multiplayer mode,
4302 internationalization support, conditional orders and the ability to clone,
4303 autoreplace and autoupdate vehicles. This package only includes the game
4304 engine. When you start it you will be prompted to download a graphics set.")
4305 (home-page "https://www.openttd.org/")
4306 ;; This package is GPLv2, except for a few files located in
4307 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4308 ;; licenses. In addition, this software contains an in-game downloader
4309 ;; from which the user may find non-functional data licensed under
4310 ;; different terms.
4311 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4312
4313 (define openttd-opengfx
4314 (package
4315 (name "openttd-opengfx")
4316 (version "0.6.1")
4317 (source
4318 (origin
4319 (method url-fetch)
4320 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4321 version "/opengfx-" version "-source.tar.xz"))
4322 (sha256
4323 (base32
4324 "0jgy8xv7r72m127qn09vr3rxhnbakl2990f7lldsk0d5d8n993vd"))))
4325 (build-system gnu-build-system)
4326 (arguments
4327 '(#:make-flags (list "CC=gcc"
4328 (string-append "INSTALL_DIR="
4329 (assoc-ref %outputs "out")
4330 "/share/games/openttd/baseset/opengfx"))
4331 #:phases
4332 (modify-phases %standard-phases
4333 (replace 'configure
4334 (lambda _
4335 ;; Make sure HOME is writable for GIMP.
4336 (setenv "HOME" (getcwd))
4337
4338 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4339 ;; dos2unix from receiving its version information as a flag.
4340 (substitute* "Makefile"
4341 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4342 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4343 ;; The check phase for this package only checks the md5sums of the built
4344 ;; GRF files against the md5sums of the release versions. Because we use
4345 ;; different software versions than upstream does, some of the md5sums
4346 ;; are different. However, the package is still reproducible, it's safe
4347 ;; to disable this test.
4348 #:tests? #f
4349 #:parallel-build? #f))
4350 (native-inputs `(("dos2unix" ,dos2unix)
4351 ("gimp" ,gimp)
4352 ("grfcodec" ,grfcodec)
4353 ("nml" ,nml)
4354 ("which" ,which)
4355 ("python" ,python-2)))
4356 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4357 (synopsis "Base graphics set for OpenTTD")
4358 (description
4359 "The OpenGFX project is an implementation of the OpenTTD base graphics
4360 set that aims to ensure the best possible out-of-the-box experience.
4361
4362 OpenGFX provides you with...
4363 @enumerate
4364 @item All graphics you need to enjoy OpenTTD.
4365 @item Uniquely drawn rail vehicles for every climate.
4366 @item Completely snow-aware rivers.
4367 @item Different river and sea water.
4368 @item Snow-aware buoys.
4369 @end enumerate")
4370 (license license:gpl2)))
4371
4372 (define openttd-opensfx
4373 (package
4374 (name "openttd-opensfx")
4375 (version "1.0.1")
4376 (source
4377 (origin
4378 (method url-fetch)
4379 (uri (string-append
4380 "https://cdn.openttd.org/opensfx-releases/"
4381 version "/opensfx-" version "-source.tar.xz"))
4382 (sha256
4383 (base32
4384 "06vycppqcxbfdqlxzna5xr303zgcmpcvj6ylw5b2ws0ssph2f1s0"))))
4385 (build-system gnu-build-system)
4386 (native-inputs
4387 `(("catcodec" ,catcodec)
4388 ("python" ,python-2)
4389 ("tar" ,tar)))
4390 (arguments
4391 `(#:make-flags
4392 (list (string-append "DIR_NAME=opensfx")
4393 (string-append "TAR="
4394 (search-input-file %build-inputs "/bin/tar")))
4395 ;; The check phase only verifies md5sums, see openttd-opengfx.
4396 #:tests? #f
4397 #:phases
4398 (modify-phases %standard-phases
4399 (add-after 'unpack 'make-reproducible
4400 (lambda _
4401 ;; Remove the time dependency of the installed tarball by setting
4402 ;; the modification times if its members to 0.
4403 (substitute* "scripts/Makefile.def"
4404 (("-cf") " --mtime=@0 -cf"))
4405 #t))
4406 (delete 'configure)
4407 (add-before 'build 'prebuild
4408 (lambda _ (invoke "make" "opensfx.cat")))
4409 (replace 'install
4410 (lambda* (#:key outputs #:allow-other-keys)
4411 (copy-recursively "opensfx"
4412 (string-append (assoc-ref outputs "out")
4413 "/share/games/openttd/baseset"
4414 "/opensfx")))))))
4415 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4416 (synopsis "Base sounds for OpenTTD")
4417 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4418 it possible to play OpenTTD without requiring the proprietary sound files from
4419 the original Transport Tycoon Deluxe.")
4420 (license license:cc-by-sa3.0)))
4421
4422 (define openttd-openmsx
4423 (package
4424 (name "openttd-openmsx")
4425 (version "0.4.0")
4426 (source
4427 (origin
4428 (method url-fetch)
4429 (uri (string-append
4430 "https://cdn.openttd.org/openmsx-releases/"
4431 version "/openmsx-" version "-source.tar.xz"))
4432 (sha256
4433 (base32
4434 "0prjljsdgdxqdhhcriqskqha004ybs575xcjq80zha3pqnmrdk0k"))))
4435 (build-system gnu-build-system)
4436 (native-inputs
4437 `(("grfcodec" ,grfcodec)
4438 ("python" ,python-2)
4439 ("tar" ,tar)))
4440 (arguments
4441 `(#:make-flags
4442 (list (string-append "DIR_NAME=openmsx")
4443 (string-append "TAR="
4444 (search-input-file %build-inputs "/bin/tar")))
4445 ;; The check phase only verifies md5sums, see openttd-opengfx.
4446 #:tests? #f
4447 #:phases
4448 (modify-phases %standard-phases
4449 (delete 'configure)
4450 (replace 'install
4451 (lambda* (#:key outputs #:allow-other-keys)
4452 (copy-recursively "openmsx"
4453 (string-append (assoc-ref outputs "out")
4454 "/share/games/openttd/baseset"
4455 "/openmsx")))))))
4456 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4457 (synopsis "Music set for OpenTTD")
4458 (description "OpenMSX is a music set for OpenTTD which makes it possible
4459 to play OpenTTD without requiring the proprietary music from the original
4460 Transport Tycoon Deluxe.")
4461 (license license:gpl2)))
4462
4463 (define-public openttd
4464 (package
4465 (inherit openttd-engine)
4466 (name "openttd")
4467 (arguments
4468 `(#:configure-flags
4469 (let* ((out (assoc-ref %outputs "out")))
4470 (list (string-append "-DCMAKE_INSTALL_BINDIR=" out "/bin")))
4471 #:phases
4472 (modify-phases %standard-phases
4473 (add-before 'check 'install-data
4474 (lambda* (#:key inputs outputs #:allow-other-keys)
4475 (for-each
4476 (lambda (input)
4477 (copy-recursively (assoc-ref inputs input)
4478 (assoc-ref outputs "out")))
4479 (list "opengfx" "openmsx" "opensfx")))))))
4480 (inputs
4481 `(("timidity++" ,timidity++)
4482 ,@(package-inputs openttd-engine)))
4483 (native-inputs
4484 `(("opengfx" ,openttd-opengfx)
4485 ("openmsx" ,openttd-openmsx)
4486 ("opensfx" ,openttd-opensfx)
4487 ,@(package-native-inputs openttd-engine)))))
4488
4489 (define openrct2-title-sequences
4490 (package
4491 (name "openrct2-title-sequences")
4492 (version "0.1.2")
4493 (source
4494 (origin
4495 (method url-fetch)
4496 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4497 version "/title-sequence-v" version ".zip"))
4498 (file-name (string-append name "-" version ".zip"))
4499 (sha256
4500 (base32
4501 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4502 (build-system trivial-build-system)
4503 (native-inputs
4504 `(("bash" ,bash)
4505 ("coreutils" ,coreutils)
4506 ("unzip" ,unzip)))
4507 (arguments
4508 `(#:modules ((guix build utils))
4509 #:builder
4510 (begin
4511 (use-modules (guix build utils))
4512 (let* ((out (assoc-ref %outputs "out"))
4513 (openrct2-title-sequences (string-append out
4514 "/share/openrct2/title-sequences"))
4515 (source (assoc-ref %build-inputs "source"))
4516 (unzip (search-input-file %build-inputs "/bin/unzip")))
4517 (copy-file source (string-append ,name "-" ,version ".zip"))
4518 (invoke unzip (string-append ,name "-" ,version ".zip"))
4519 (delete-file (string-append ,name "-" ,version ".zip"))
4520 (mkdir-p openrct2-title-sequences)
4521 (copy-recursively "."
4522 openrct2-title-sequences)
4523 #t))))
4524 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4525 (synopsis "Title sequences for OpenRCT2")
4526 (description
4527 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4528 (license license:gpl3+)))
4529
4530 (define openrct2-objects
4531 (package
4532 (name "openrct2-objects")
4533 (version "1.0.20")
4534 (source
4535 (origin
4536 (method url-fetch)
4537 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4538 version "/objects.zip"))
4539 (file-name (string-append name "-" version ".zip"))
4540 (sha256
4541 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4542 (build-system trivial-build-system)
4543 (native-inputs
4544 `(("bash" ,bash)
4545 ("coreutils" ,coreutils)
4546 ("unzip" ,unzip)))
4547 (arguments
4548 `(#:modules ((guix build utils))
4549 #:builder
4550 (begin
4551 (use-modules (guix build utils))
4552 (let* ((out (assoc-ref %outputs "out"))
4553 (openrct2-objects (string-append out
4554 "/share/openrct2/objects"))
4555 (source (assoc-ref %build-inputs "source"))
4556 (unzip (search-input-file %build-inputs "/bin/unzip")))
4557 (copy-file source (string-append ,name "-" ,version ".zip"))
4558 (invoke unzip (string-append ,name "-" ,version ".zip"))
4559 (delete-file (string-append ,name "-" ,version ".zip"))
4560 (mkdir-p openrct2-objects)
4561 (copy-recursively "."
4562 openrct2-objects)
4563 #t))))
4564 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4565 (synopsis "Objects for OpenRCT2")
4566 (description
4567 "openrct2-objects is a set of objects for OpenRCT2.")
4568 (license license:gpl3+)))
4569
4570 (define-public openrct2
4571 (package
4572 (name "openrct2")
4573 (version "0.3.3")
4574 (source
4575 (origin
4576 (method git-fetch)
4577 (uri (git-reference
4578 (url "https://github.com/OpenRCT2/OpenRCT2")
4579 (commit (string-append "v" version))))
4580 (file-name (git-file-name name version))
4581 (sha256
4582 (base32 "01nanpbz5ycdhkyd46fjfvj18sw729l4vk7xg12600f9rjngjk76"))))
4583 (build-system cmake-build-system)
4584 (arguments
4585 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4586 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4587 #:tests? #f ; tests require network access
4588 #:phases
4589 (modify-phases %standard-phases
4590 (add-after 'unpack 'fix-usr-share-paths&add-data
4591 (lambda* (#:key inputs outputs #:allow-other-keys)
4592 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4593 (objects (assoc-ref inputs "openrct2-objects")))
4594 ;; Fix some references to /usr/share.
4595 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4596 (("/usr/share")
4597 (string-append (assoc-ref %outputs "out") "/share")))
4598 (copy-recursively
4599 (string-append titles "/share/openrct2/title-sequences")
4600 "data/title")
4601 (copy-recursively
4602 (string-append objects "/share/openrct2/objects")
4603 "data/object"))))
4604 (add-before 'configure 'get-rid-of-errors
4605 (lambda _
4606 ;; Don't treat warnings as errors.
4607 (substitute* "CMakeLists.txt"
4608 (("-Werror") ""))
4609 #t)))))
4610 (inputs `(("curl" ,curl)
4611 ("duktape" ,duktape)
4612 ("fontconfig" ,fontconfig)
4613 ("freetype" ,freetype)
4614 ("icu4c" ,icu4c)
4615 ("jansson" ,jansson)
4616 ("libpng" ,libpng)
4617 ("libzip" ,libzip)
4618 ("mesa" ,mesa)
4619 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4620 ("openrct2-objects" ,openrct2-objects)
4621 ("openrct2-title-sequences" ,openrct2-title-sequences)
4622 ("openssl" ,openssl)
4623 ("sdl2" ,sdl2)
4624 ("speexdsp" ,speexdsp)
4625 ("zlib" ,zlib)))
4626 (native-inputs
4627 `(("pkg-config" ,pkg-config)))
4628 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4629 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4630 (description "OpenRCT2 is a free software re-implementation of
4631 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4632 maintaining an amusement park containing attractions, shops and facilities.
4633
4634 Note that this package does @emph{not} provide the game assets (sounds,
4635 images, etc.)")
4636 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4637 ;; regarding assets.
4638 (license license:gpl3+)))
4639
4640 (define-public pinball
4641 (package
4642 (name "pinball")
4643 (version "0.3.20201218")
4644 (source
4645 (origin (method git-fetch)
4646 (uri (git-reference
4647 (url "https://github.com/adoptware/pinball")
4648 (commit version)))
4649 (file-name (git-file-name name version))
4650 (sha256
4651 (base32
4652 "056jk98v6zlkrj9vjm06p0pmpnav1x658n6qw10v5klg5gr6ldf7"))
4653 (patches (search-patches "pinball-system-ltdl.patch"))))
4654 (build-system gnu-build-system)
4655 (native-inputs
4656 `(("autoconf" ,autoconf)
4657 ("automake" ,automake)
4658 ("pkg-config" ,pkg-config)
4659 ("libtool" ,libtool)))
4660 (inputs
4661 `(("glu" ,glu)
4662 ("libltdl" ,libltdl)
4663 ("mesa" ,mesa)
4664 ("sdl" ,sdl)
4665 ("sdl-image" ,sdl-image)
4666 ("sdl-mixer" ,sdl-mixer)))
4667 (arguments
4668 '(#:configure-flags
4669 ;; Configure tries to use pkg-config, but falls short, so:
4670 (list (string-append "CPPFLAGS=-I"
4671 (assoc-ref %build-inputs "sdl-image")
4672 "/include/SDL -I"
4673 (assoc-ref %build-inputs "sdl-mixer")
4674 "/include/SDL"))
4675 #:phases
4676 (modify-phases %standard-phases
4677 (replace 'bootstrap
4678 ;; The `bootstrap` script tries to call a script with
4679 ;; `/usr/bin/make` in the shebang, but ultimately does the same as
4680 ;; autoreconf would do, so just use that.
4681 (lambda _
4682 (symlink "README.md" "README")
4683 (display (which "autoreconf")) (newline)
4684 (invoke "autoreconf" "-vif"))))))
4685 (home-page "http://pinball.sourceforge.net")
4686 (synopsis "Pinball simulator")
4687 (description "The Emilia Pinball Project is a pinball simulator. There
4688 are only two levels to play with, but they are very addictive.")
4689 (license license:gpl2)))
4690
4691 (define-public pioneers
4692 (package
4693 (name "pioneers")
4694 (version "15.6")
4695 (source (origin
4696 (method url-fetch)
4697 (uri (string-append "https://downloads.sourceforge.net/pio/"
4698 "pioneers-" version ".tar.gz"))
4699 (sha256
4700 (base32
4701 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4702 (build-system gnu-build-system)
4703 (arguments
4704 `(#:phases
4705 (modify-phases %standard-phases
4706 ;; Fixes https://issues.guix.gnu.org/47131.
4707 (add-after 'unpack 'patch-beep-path
4708 (lambda* (#:key inputs #:allow-other-keys)
4709 (substitute* "client/gtk/audio.c"
4710 (("\"beep\"")
4711 (string-append "\"" (assoc-ref inputs "beep") "/bin/beep\"")))
4712 #t)))))
4713 (inputs `(("avahi" ,avahi)
4714 ("beep" ,beep)
4715 ("gtk+" ,gtk+)
4716 ("librsvg" ,librsvg)))
4717 (native-inputs `(("intltool" ,intltool)
4718 ("itstool" ,itstool)
4719 ("libxml2" ,libxml2)
4720 ("pkg-config" ,pkg-config)))
4721 (synopsis "Board game inspired by The Settlers of Catan")
4722 (description "Pioneers is an emulation of the board game The Settlers of
4723 Catan. It can be played on a local network, on the internet, and with AI
4724 players.")
4725 (home-page "http://pio.sourceforge.net/")
4726 (license license:gpl2+)))
4727
4728 (define-public einstein
4729 (package
4730 (name "einstein")
4731 (version "2.0")
4732 (source (origin
4733 (method url-fetch)
4734 (uri (string-append "mirror://debian/pool/main/e/"
4735 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4736 (sha256
4737 (base32
4738 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4739 (patches (search-patches "einstein-build.patch"))))
4740 (build-system gnu-build-system)
4741 (inputs
4742 `(("freetype" ,freetype)
4743 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4744 ("zlib" ,zlib)))
4745 (native-inputs
4746 `(("font-dejavu" ,font-dejavu)))
4747 (arguments
4748 `(#:tests? #f ; no check target
4749 #:phases
4750 (modify-phases %standard-phases
4751 (replace 'configure
4752 (lambda* (#:key outputs inputs #:allow-other-keys)
4753 (let ((out (assoc-ref outputs "out"))
4754 (dejavu (search-input-file
4755 inputs "/share/fonts/truetype/DejaVuSans.ttf")))
4756 (substitute* "Makefile"
4757 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4758 ;; The patch above registers a free font for use by the binary,
4759 ;; but the font is copied during the compile phase into a
4760 ;; resources file, so we need to make the ttf file available.
4761 (symlink dejavu "res/DejaVuSans.ttf")
4762 #t))))))
4763 (synopsis "Logic puzzle game")
4764 (description "The goal of this logic game is to open all cards in a 6x6
4765 grid, using a number of hints as to their relative position. The game idea
4766 is attributed to Albert Einstein.")
4767 ;; The original home page has disappeared.
4768 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4769 "http://games.flowix.com/en/index.html"))
4770 ;; License according to
4771 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4772 ;; The source code is a DFSG-sanitized tarball and does not contain any
4773 ;; license information.
4774 (license license:gpl3+)))
4775
4776 (define-public powwow
4777 (package
4778 (name "powwow")
4779 (version "1.2.23")
4780 (source (origin
4781 (method url-fetch)
4782 (uri (string-append
4783 "https://www.hoopajoo.net/static/projects/powwow-"
4784 version ".tar.gz"))
4785 (sha256
4786 (base32
4787 "1wkl6j91pp40aps2hhnsv0bndgq49smfffws4hqcn7847bpnwwm6"))))
4788 (inputs
4789 `(("ncurses" ,ncurses)))
4790 (build-system gnu-build-system)
4791 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4792 (synopsis "MUD and telnet client")
4793 (description
4794 "POWWOW is a client software which can be used for telnet as well as for
4795 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4796 the chat server psyced with the specific config located at
4797 http://lavachat.symlynx.com/unix/")
4798 (license license:gpl2+)))
4799
4800 (define-public red-eclipse
4801 (let ((release "2.0.0")
4802 (revision 0))
4803 (package
4804 (name "red-eclipse")
4805 (version (if (zero? revision)
4806 release
4807 (string-append release "-"
4808 (number->string revision))))
4809 (source
4810 (origin
4811 (method git-fetch)
4812 (uri (git-reference
4813 (url "https://github.com/redeclipse/base")
4814 (commit (string-append "v" release))
4815 (recursive? #t))) ; for game data
4816 (file-name (git-file-name name version))
4817 (sha256
4818 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4819 (modules '((guix build utils)))
4820 (snippet
4821 ;; Remove proprietary libraries and other pre-compiled binaries.
4822 '(begin
4823 (delete-file-recursively "bin")
4824 #t))))
4825 (build-system gnu-build-system)
4826 (arguments
4827 `(#:tests? #f ; no check target
4828 #:make-flags (list "CC=gcc" "-Csrc"
4829 (string-append "INSTDIR="
4830 (assoc-ref %outputs "out") "/bin")
4831 (string-append "prefix="
4832 (assoc-ref %outputs "out")))
4833 #:phases
4834 (modify-phases %standard-phases
4835 (add-after 'unpack 'add-store-data-package-path-as-default
4836 (lambda* (#:key outputs #:allow-other-keys)
4837 (substitute* "src/engine/server.cpp"
4838 (("data = \"data\"")
4839 (string-append "data = \""
4840 (assoc-ref outputs "out")
4841 "/share/redeclipse/data\"")))
4842 #t))
4843 (delete 'configure) ; no configure script
4844 (add-after 'set-paths 'set-sdl-paths
4845 (lambda* (#:key inputs #:allow-other-keys)
4846 (setenv "CPATH"
4847 (string-append
4848 (search-input-file inputs "/include/SDL2")
4849 ":" (or (getenv "CPATH") "")))))
4850 (add-after 'install 'copy-data
4851 (lambda* (#:key outputs #:allow-other-keys)
4852 (let ((out (assoc-ref outputs "out")))
4853 (copy-recursively "config"
4854 (string-append out "/config"))
4855 (copy-file "doc/examples/servinit.cfg"
4856 (string-append out "/config/servinit.cfg"))
4857 (copy-recursively "data"
4858 (string-append out "/share/redeclipse/data"))
4859 (mkdir-p (string-append out "/lib/redeclipse"))
4860 (symlink (string-append out "/share/redeclipse/data")
4861 (string-append out "/lib/redeclipse/data")))
4862 #t))
4863 (add-after 'copy-data 'wrap-program
4864 (lambda* (#:key inputs outputs #:allow-other-keys)
4865 (let* ((out (assoc-ref outputs "out"))
4866 (bin (string-append out "/bin")))
4867 (with-directory-excursion bin
4868 (rename-file "redeclipse_linux"
4869 ".redeclipse_linux-real")
4870 (rename-file "redeclipse_server_linux"
4871 ".redeclipse_server_linux-real")
4872 (call-with-output-file "redeclipse_linux"
4873 (lambda (port)
4874 (format port "#!~a/bin/sh
4875 # Run the thing from its home, otherwise it just bails out.
4876 cd \"~a\"
4877 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4878 (assoc-ref inputs "bash") ;implicit input
4879 (string-append out)
4880 (string-append bin))))
4881 (call-with-output-file "redeclipse_server_linux"
4882 (lambda (port)
4883 (format port "#!~a/bin/sh
4884 # Run the thing from its home, otherwise it just bails out.
4885 cd \"~a\"
4886 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4887 (assoc-ref inputs "bash") ;implicit input
4888 (string-append out)
4889 (string-append bin))))
4890 (chmod "redeclipse_linux" #o555)
4891 (chmod "redeclipse_server_linux" #o555)))
4892 #t)))))
4893 (native-inputs
4894 `(("pkg-config" ,pkg-config)))
4895 (inputs
4896 `(("curl" ,curl)
4897 ("freetype" ,freetype)
4898 ("glu" ,glu)
4899 ("sdl-union" ,(sdl-union (list sdl2
4900 sdl2-image
4901 sdl2-mixer)))))
4902 (home-page "https://redeclipse.net/")
4903 (synopsis "Arena shooter derived from the Cube 2 engine")
4904 (description
4905 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4906 Offering an innovative parkour system and distinct but all potent weapons,
4907 Red Eclipse provides fast paced and accessible gameplay.")
4908 ;; The engine is under Zlib; data files are covered by the other
4909 ;; licenses. More details at file:///doc/all-licenses.txt.
4910 (license (list license:expat
4911 license:zlib
4912 license:cc-by-sa4.0
4913 license:cc-by-sa3.0
4914 license:cc-by3.0
4915 license:cc0
4916 license:public-domain
4917 license:silofl1.1)))))
4918
4919 (define-public grue-hunter
4920 (package
4921 (name "grue-hunter")
4922 (version "1.0")
4923 (source (origin
4924 (method url-fetch)
4925 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4926 (sha256
4927 (base32
4928 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4929 (build-system trivial-build-system) ; no Makefile.PL
4930 (arguments `(#:modules ((guix build utils))
4931 #:builder
4932 (begin
4933 (use-modules (guix build utils))
4934 (use-modules (srfi srfi-1))
4935
4936 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4937 (perl (string-append (assoc-ref %build-inputs
4938 "perl")
4939 "/bin"))
4940 (gzip (string-append (assoc-ref %build-inputs
4941 "gzip")
4942 "/bin/gzip"))
4943 (tar (string-append (assoc-ref %build-inputs
4944 "tar")
4945 "/bin/tar"))
4946 (out (assoc-ref %outputs "out"))
4947 (bin (string-append out "/bin"))
4948 (doc (string-append out
4949 "/share/doc/grue-hunter")))
4950 (copy-file tarball "grue-hunter.tar.gz")
4951 (invoke gzip "-d" "grue-hunter.tar.gz")
4952 (invoke tar "xvf" "grue-hunter.tar")
4953
4954 (mkdir-p bin)
4955 (copy-file "grue-hunter/gh.pl"
4956 (string-append bin "/grue-hunter"))
4957 (patch-shebang (string-append bin "/grue-hunter")
4958 (list perl))
4959
4960 (install-file "grue-hunter/AGPLv3.txt" doc)
4961
4962 #t))))
4963 (inputs `(("perl" ,perl)
4964 ("tar" ,tar)
4965 ("gzip" ,gzip)
4966 ("tarball" ,source)))
4967 (home-page "https://jxself.org/grue-hunter.shtml")
4968 (synopsis "Text adventure game")
4969 (description
4970 "Grue Hunter is a text adventure game written in Perl. You must make
4971 your way through an underground cave system in search of the Grue. Can you
4972 capture it and get out alive?")
4973 (license license:agpl3+)))
4974
4975 (define-public lierolibre
4976 (package
4977 (name "lierolibre")
4978 (version "0.5")
4979 (source (origin
4980 (method url-fetch)
4981 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4982 version "/+download/lierolibre-"
4983 version ".tar.xz"))
4984 (sha256
4985 (base32
4986 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4987 (patches
4988 (search-patches "lierolibre-check-unaligned-access.patch"
4989 "lierolibre-try-building-other-arch.patch"
4990 "lierolibre-remove-arch-warning.patch"
4991 "lierolibre-newer-libconfig.patch"
4992 "lierolibre-is-free-software.patch"))
4993 (modules '((guix build utils)))
4994 (snippet
4995 '(begin
4996 ;; Delete pre-compiled files.
4997 (delete-file "data/LIERO.CHR")
4998 (delete-file "data/LIERO.SND")
4999 #t))))
5000 (build-system gnu-build-system)
5001 (native-inputs
5002 `(("imagemagick" ,imagemagick)
5003 ("pkg-config" ,pkg-config)
5004 ("util-linux" ,util-linux)
5005 ("sox" ,sox)))
5006 (inputs
5007 `(("boost" ,boost)
5008 ("libconfig" ,libconfig)
5009 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
5010 ("zlib" ,zlib)))
5011 (home-page "https://gitlab.com/lierolibre/lierolibre")
5012 (synopsis "Old-school earthworm action game")
5013 (description
5014 "lierolibre is an earthworm action game where you fight another player
5015 (or the computer) underground using a wide array of weapons.
5016
5017 Features:
5018 @itemize
5019 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
5020 and Game of Tag, plus AI-players without true intelligence!
5021 @item Dat nostalgia.
5022 @item Extensions via a hidden F1 menu:
5023 @itemize
5024 @item Replays
5025 @item Game controller support
5026 @item Powerlevel palettes
5027 @end itemize
5028 @item Ability to write game variables to plain text files.
5029 @item Ability to load game variables from both EXE and plain text files.
5030 @item Scripts to extract and repack graphics, sounds and levels.
5031 @end itemize
5032
5033 To switch between different window sizes, use F6, F7 and F8, to switch to
5034 fullscreen, use F5 or Alt+Enter.")
5035 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
5036 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
5037
5038 (define-public tennix
5039 (package
5040 (name "tennix")
5041 (version "1.3.1")
5042 (source
5043 (origin
5044 (method git-fetch)
5045 (uri (git-reference
5046 (url "https://repo.or.cz/tennix.git")
5047 (commit (string-append "tennix-" version))))
5048 (file-name (git-file-name name version))
5049 (sha256
5050 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
5051 ;; Remove non-free images.
5052 (modules '((guix build utils)))
5053 (snippet
5054 '(begin
5055 (for-each delete-file
5056 '("data/loc_training_camp.png"
5057 "data/loc_austrian_open.png"
5058 "data/loc_olympic_green_tennis.png"))
5059 #t))))
5060 (build-system gnu-build-system)
5061 (arguments
5062 `(#:tests? #f ;no test
5063 #:phases
5064 (modify-phases %standard-phases
5065 (add-after 'unpack 'fix-include
5066 (lambda _
5067 (substitute* '("src/graphics.h" "src/sound.h")
5068 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
5069 (string-append "#include \"SDL/" header "\"")))
5070 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
5071 (("#include <SDL.h>") "#include <SDL/SDL.h>")
5072 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
5073 #t))
5074 (add-after 'unpack 'locate-install
5075 ;; Build process cannot expand "$(INSTALL)" in Makefile.
5076 (lambda _
5077 (substitute* "makefile"
5078 (("^CONFIGURE_OUTPUT :=.*" all)
5079 (string-append "INSTALL := install -c\n" all)))
5080 #t))
5081 (replace 'configure
5082 ;; The "configure" script is picky about the arguments it
5083 ;; gets. Call it ourselves.
5084 (lambda _
5085 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
5086 (native-inputs
5087 `(("which" ,which)))
5088 (inputs
5089 `(("python" ,python-wrapper)
5090 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
5091 (home-page "http://icculus.org/tennix/")
5092 (synopsis "Play tennis against the computer or a friend")
5093 (description "Tennix is a 2D tennis game. You can play against the
5094 computer or against another player using the keyboard. The game runs
5095 in-window at 640x480 resolution or fullscreen.")
5096 ;; Project is licensed under GPL2+ terms. It includes images
5097 ;; released under Public Domain terms, and SDL_rotozoom, released
5098 ;; under LGPL2.1 terms.
5099 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
5100
5101 (define-public warzone2100
5102 (package
5103 (name "warzone2100")
5104 (version "4.0.1")
5105 (source
5106 (origin
5107 (method url-fetch)
5108 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
5109 version
5110 "/warzone2100_src.tar.xz"))
5111 (sha256
5112 (base32 "1f8a4kflslsjl8jrryhwg034h1yc9y3y1zmllgww3fqkz3aj4xik"))
5113 (modules '((guix build utils)))
5114 (snippet
5115 '(begin
5116 (with-directory-excursion "3rdparty"
5117 (for-each
5118 delete-file-recursively
5119 '("discord-rpc"
5120 "miniupnp"
5121 "utfcpp")))
5122 #t))))
5123 (build-system cmake-build-system)
5124 (arguments
5125 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
5126 "-DWZ_ENABLE_BACKEND_VULKAN=off"
5127 "-DENABLE_DISCORD=off")
5128 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
5129 #:phases
5130 (modify-phases %standard-phases
5131 (add-after 'unpack 'fix-utfcpp-include
5132 (lambda _
5133 (substitute* "lib/framework/wzstring.cpp"
5134 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
5135 #t))
5136 (add-after 'unpack 'link-tests-with-qt
5137 (lambda _
5138 (substitute* "tests/Makefile.am"
5139 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
5140 (string-append prefix "$(QT5_LIBS) ")))
5141 #t))
5142 (add-after 'unpack 'fix-ivis-linktest
5143 (lambda _
5144 (substitute* "tests/ivis_linktest.cpp"
5145 (("iV_DrawTextRotated.*;")
5146 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
5147 "100, 100, 0.0f, font_regular);")))
5148 #t)))))
5149 (native-inputs `(("asciidoc" ,asciidoc)
5150 ("asciidoctor" ,ruby-asciidoctor)
5151 ("gettext" ,gettext-minimal)
5152 ("pkg-config" ,pkg-config)
5153 ("unzip" ,unzip)
5154 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
5155 ("p7zip" ,p7zip)))
5156 (inputs `(("curl" ,curl)
5157 ("fontconfig" ,fontconfig)
5158 ("freetype" ,freetype)
5159 ("glew" ,glew)
5160 ("harfbuzz" ,harfbuzz)
5161 ("libtheora" ,libtheora)
5162 ("libvorbis" ,libvorbis)
5163 ("libxrandr" ,libxrandr)
5164 ("libsodium" ,libsodium)
5165 ("miniupnpc" ,miniupnpc)
5166 ("openal" ,openal)
5167 ("physfs" ,physfs)
5168 ("qtbase" ,qtbase-5)
5169 ("qtscript" ,qtscript)
5170 ("openssl" ,openssl)
5171 ("sdl2" ,sdl2)
5172 ("sqlite" ,sqlite)
5173 ("utfcpp" ,utfcpp)))
5174 (home-page "https://wz2100.net")
5175 (synopsis "3D Real-time strategy and real-time tactics game")
5176 (description
5177 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
5178 modes. An extensive tech tree with over 400 different technologies, combined
5179 with the unit design system, allows for a wide variety of possible units and
5180 tactics.")
5181 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
5182 (license (list license:bsd-3
5183 license:cc0
5184 license:cc-by-sa3.0
5185 license:expat
5186 license:gpl2+
5187 license:lgpl2.1+))))
5188
5189 (define-public widelands
5190 (package
5191 (name "widelands")
5192 (version "1.0")
5193 (source
5194 (origin
5195 (method git-fetch)
5196 (uri (git-reference
5197 (url "https://github.com/widelands/widelands")
5198 (commit (string-append "v" version))))
5199 (file-name (git-file-name name version))
5200 (sha256
5201 (base32 "1hw51binnbia15mj1gzx1cbk3cw9r91sisqci2qzcy4ahxiadnw0"))
5202 (modules '((guix build utils)))
5203 (snippet
5204 '(begin
5205 (delete-file-recursively "src/third_party/minizip")
5206 #t))
5207 (patches
5208 ;; Use system Minizip. Patch is provided by Debian, and discussed
5209 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
5210 (search-patches "widelands-system-wide_minizip.patch"))))
5211 (build-system cmake-build-system)
5212 (arguments
5213 `(#:configure-flags
5214 (let* ((out (assoc-ref %outputs "out"))
5215 (share (string-append out "/share")))
5216 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
5217 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
5218 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
5219 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
5220 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
5221 ;; type. When used, no game data is installed!
5222 "-DCMAKE_BUILD_TYPE=Release"))
5223 #:phases
5224 (modify-phases %standard-phases
5225 (add-after 'unpack 'unbundle-fonts
5226 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
5227 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
5228 (lambda* (#:key inputs #:allow-other-keys)
5229 (with-directory-excursion "data/i18n/fonts"
5230 (for-each (lambda (font)
5231 (delete-file-recursively font)
5232 (symlink (string-append (assoc-ref inputs font)
5233 "/share/fonts/truetype")
5234 font))
5235 '("DejaVu" "MicroHei")))
5236 #t)))))
5237 (native-inputs
5238 `(("gettext" ,gettext-minimal)
5239 ("python" ,python-wrapper)))
5240 (inputs
5241 `(("curl" ,curl)
5242 ("boost" ,boost)
5243 ("glew" ,glew)
5244 ("icu4c" ,icu4c)
5245 ("libpng" ,libpng)
5246 ("minizip" ,minizip)
5247 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5248 ("zlib" ,zlib)
5249 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
5250 ("DejaVu" ,font-dejavu)
5251 ("MicroHei" ,font-wqy-microhei)))
5252 (home-page "https://www.widelands.org/")
5253 (synopsis "Fantasy real-time strategy game")
5254 (description
5255 "In Widelands, you are the regent of a small clan. You start out with
5256 nothing but your headquarters, where all your resources are stored.
5257
5258 In the course of the game, you will build an ever growing settlement. Every
5259 member of your clan will do his or her part to produce more resources---wood,
5260 food, iron, gold and more---to further this growth. The economic network is
5261 complex and different in the five tribes (Barbarians, Empire, Atlanteans,
5262 Frisians and Amazons).
5263
5264 As you are not alone in the world, you will meet other clans sooner or later.
5265 Some of them may be friendly and you may eventually trade with them. However,
5266 if you want to rule the world, you will have to train soldiers and fight.
5267
5268 Widelands offers single-player mode with different campaigns; the campaigns
5269 all tell stories of tribes and their struggle in the Widelands universe!
5270 However, settling really starts when you unite with friends over the Internet
5271 or LAN to build up new empires together---or to crush each other in the dusts
5272 of war. Widelands also offers an Artificial Intelligence to challenge you.")
5273 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
5274 ;; different licenses.
5275 (license (list license:gpl2+
5276 license:expat ;src/third_party/eris
5277 license:silofl1.1 ;Widelands.ttf
5278 license:cc-by-sa3.0)))) ;some music files
5279
5280 (define-public widelands-21
5281 (package
5282 (inherit widelands)
5283 (version "21")
5284 (properties `((superseded . ,widelands)))))
5285
5286 (define-public starfighter
5287 (package
5288 (name "starfighter")
5289 (version "2.4")
5290 (source (origin
5291 (method url-fetch)
5292 (uri (string-append
5293 "https://github.com/pr-starfighter/starfighter/releases"
5294 "/download/v" version "/starfighter-"
5295 version "-src.tar.gz"))
5296 (sha256
5297 (base32
5298 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5299 (build-system gnu-build-system)
5300 (native-inputs
5301 `(("pkg-config" ,pkg-config)))
5302 (inputs
5303 `(("pango" ,pango)
5304 ("sdl2" ,sdl2)
5305 ("sdl2-image" ,sdl2-image)
5306 ("sdl2-mixer" ,sdl2-mixer)
5307 ("sdl2-ttf" ,sdl2-ttf)))
5308 (home-page "https://pr-starfighter.github.io/")
5309 (synopsis "2D scrolling shooter game")
5310 (description
5311 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5312 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5313 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5314 way, you will encounter new foes, make new allies, and assist local rebels
5315 in strikes against the evil corporation.")
5316 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5317 (license (list license:gpl3+
5318 license:cc-by3.0
5319 license:cc-by-sa3.0
5320 license:cc0
5321 license:public-domain))))
5322
5323 (define-public chromium-bsu
5324 (package
5325 (name "chromium-bsu")
5326 (version "0.9.16.1")
5327 (source (origin
5328 (method url-fetch)
5329 (uri (string-append "mirror://sourceforge/chromium-bsu"
5330 "/Chromium B.S.U. source code/"
5331 "chromium-bsu-" version ".tar.gz"))
5332 (sha256
5333 (base32
5334 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5335 (build-system gnu-build-system)
5336 (native-inputs `(("pkg-config" ,pkg-config)))
5337 (inputs `(("gettext" ,gettext-minimal)
5338 ("glu" ,glu)
5339 ("quesoglc" ,quesoglc)
5340 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5341 (home-page "http://chromium-bsu.sourceforge.net/")
5342 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5343 (description
5344 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5345 are responsible for delivering supplies to the troops on the front line. Your
5346 ship has a small fleet of robotic fighters which you control from the relative
5347 safety of the Chromium vessel.")
5348 ;; Clarified Artistic License for everything but sound, which is covered
5349 ;; by the Expat License.
5350 (license (list license:clarified-artistic license:expat))))
5351
5352 (define-public tuxpaint
5353 (package
5354 (name "tuxpaint")
5355 (version "0.9.23") ;keep VER_DATE below in sync
5356 (source
5357 (origin
5358 (method url-fetch)
5359 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5360 version "/tuxpaint-" version ".tar.gz"))
5361 (sha256
5362 (base32
5363 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5364 (modules '((guix build utils)))
5365 (snippet
5366 '(begin
5367 ;; Remove win32 directory which contains binary dll's and the
5368 ;; deprecated visualc directory.
5369 (for-each delete-file-recursively '("win32" "visualc"))
5370 (substitute* "Makefile"
5371 ;; Do not rely on $(GPERF) being an absolute file name
5372 (("\\[ -x \\$\\(GPERF\\) \\]")
5373 "$(GPERF) --version >/dev/null 2>&1"))
5374 #t))
5375 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5376 (build-system gnu-build-system)
5377 (native-inputs
5378 `(("gperf" ,gperf)
5379 ("pkg-config" ,pkg-config)))
5380 (inputs
5381 `(("cairo" ,cairo)
5382 ("fribidi" ,fribidi)
5383 ("gettext" ,gettext-minimal)
5384 ("libpng" ,libpng)
5385 ("librsvg" ,librsvg)
5386 ("libpaper" ,libpaper)
5387 ("netpbm" ,netpbm)
5388 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5389 ;; TODO: Use system fonts rather than those in data/fonts
5390 (arguments
5391 `(#:make-flags `("VER_DATE=2018-09-02"
5392 "GPERF=gperf" "CC=gcc"
5393 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5394 ,(string-append "PREFIX=" %output)
5395 "KDE_PREFIX=$(PREFIX)/share/applications"
5396 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5397 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5398 #:parallel-build? #f ;fails on some systems
5399 #:tests? #f ;No tests
5400 #:phases (modify-phases %standard-phases
5401 (delete 'configure) ;no configure phase
5402 (add-before 'install 'no-sys-cache
5403 (lambda _ ;do not rebuild system conf cache
5404 (substitute* "Makefile"
5405 (("kbuildsycoca4") ""))
5406 #t))
5407 (add-after 'install 'fix-import
5408 (lambda* (#:key inputs outputs #:allow-other-keys)
5409 (let* ((out (assoc-ref outputs "out"))
5410 (net (assoc-ref inputs "netpbm"))
5411 (tpi (string-append out "/bin/tuxpaint-import")))
5412 (substitute* tpi
5413 ;; Point to installation prefix so that the default
5414 ;; configure file is found.
5415 (("/usr/local") out))
5416 ;; tuxpaint-import uses a bunch of programs from
5417 ;; netpbm, so make sure it knows where those are
5418 (wrap-program tpi
5419 `("PATH" ":" prefix
5420 (,(string-append net "/bin"))))))))))
5421 (native-search-paths
5422 (list (search-path-specification
5423 (variable "TUXPAINT_STAMPS_PATH")
5424 (files '("share/tuxpaint/stamps")))))
5425 (home-page "http://www.tuxpaint.org")
5426 (synopsis "Drawing software for children")
5427 (description
5428 "Tux Paint is a free drawing program designed for young children (kids
5429 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5430 and an encouraging cartoon mascot who helps guide children as they use the
5431 program. It provides a blank canvas and a variety of drawing tools to help
5432 your child be creative.")
5433 (license license:gpl2+)))
5434
5435 (define-public tuxpaint-stamps
5436 (package
5437 (name "tuxpaint-stamps")
5438 (version "2018.09.01")
5439 (source
5440 (origin
5441 (method url-fetch)
5442 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5443 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5444 "/tuxpaint-stamps-" version ".tar.gz"))
5445 (sha256
5446 (base32
5447 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5448 (build-system trivial-build-system)
5449 (native-inputs
5450 `(("tar" ,tar)
5451 ("gzip" ,gzip)))
5452 (arguments
5453 `(#:modules ((guix build utils))
5454 #:builder (begin
5455 (use-modules (guix build utils))
5456 (setenv "PATH"
5457 (string-append
5458 (assoc-ref %build-inputs "tar") "/bin" ":"
5459 (assoc-ref %build-inputs "gzip") "/bin"))
5460 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5461 (chdir (string-append ,name "-" ,version))
5462 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5463 (mkdir-p dir)
5464 (copy-recursively "stamps" dir))
5465 #t)))
5466 (home-page (package-home-page tuxpaint))
5467 (synopsis "Stamp images for Tux Paint")
5468 (description
5469 "This package contains a set of \"Rubber Stamp\" images which can be used
5470 with the \"Stamp\" tool within Tux Paint.")
5471 (license license:gpl2+)))
5472
5473 (define-public tuxpaint-config
5474 (package
5475 (name "tuxpaint-config")
5476 (version "0.0.14") ;keep VER_DATE below in sync
5477 (source
5478 (origin
5479 (method url-fetch)
5480 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5481 version "/tuxpaint-config-" version ".tar.gz"))
5482 (sha256
5483 (base32
5484 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5485 (build-system gnu-build-system)
5486 (native-inputs
5487 `(("gettext" ,gettext-minimal)))
5488 (inputs
5489 `(("fltk" ,fltk)
5490 ("libpaper" ,libpaper)
5491 ;; TODO: Should the following be propagated by fltk?
5492 ("libx11" ,libx11)
5493 ("libxft" ,libxft)
5494 ("mesa" ,mesa)))
5495 (arguments
5496 `(#:make-flags `("VER_DATE=2018-09-01"
5497 "CONFDIR=/etc/tuxpaint" ;don't write to store
5498 ,(string-append "PREFIX=" %output)
5499 "GNOME_PREFIX=$(PREFIX)")
5500 #:parallel-build? #f ;race conditions
5501 #:tests? #f ;no tests
5502 #:phases (modify-phases %standard-phases
5503 (delete 'configure) ;no configure phase
5504 (add-before 'install 'gzip-no-name
5505 (lambda* _
5506 (substitute* "Makefile"
5507 ;; tuxpaint-config compresses its own documentation;
5508 ;; make sure it uses flags for reproducibility.
5509 (("gzip") "gzip --no-name"))))
5510 (add-before 'install 'make-install-dirs
5511 (lambda* (#:key outputs #:allow-other-keys)
5512 (let ((out (assoc-ref outputs "out")))
5513 (mkdir-p (string-append out "/bin"))
5514 #t))))))
5515 (home-page (package-home-page tuxpaint))
5516 (synopsis "Configure Tux Paint")
5517 (description
5518 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5519 (license license:gpl2))) ;no "or later" present
5520
5521 (define-public supertux
5522 (package
5523 (name "supertux")
5524 (version "0.6.2")
5525 (source (origin
5526 (method url-fetch)
5527 (uri (string-append "https://github.com/SuperTux/supertux/"
5528 "releases/download/v" version "/SuperTux-v"
5529 version "-Source.tar.gz"))
5530 (file-name (string-append name "-" version ".tar.gz"))
5531 (sha256
5532 (base32
5533 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5534 (patches
5535 (search-patches "supertux-unbundle-squirrel.patch"))))
5536 (arguments
5537 '(#:tests? #f
5538 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5539 "-DUSE_SYSTEM_PHYSFS=ON")
5540 #:phases
5541 (modify-phases %standard-phases
5542 (add-after 'unpack 'patch-squirrel-path
5543 (lambda* (#:key inputs #:allow-other-keys)
5544 (let ((squirrel (assoc-ref inputs "squirrel")))
5545 (substitute* "CMakeLists.txt"
5546 (("set\\(SQUIRREL_PREFIX.*")
5547 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5548 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5549 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5550 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5551 #t)))))
5552 (build-system cmake-build-system)
5553 (inputs `(("sdl2" ,sdl2)
5554 ("sdl2-image" ,sdl2-image)
5555 ("sdl2-mixer" ,sdl2-mixer)
5556 ("openal" ,openal)
5557 ("mesa" ,mesa)
5558 ("glew" ,glew)
5559 ("libvorbis" ,libvorbis)
5560 ("libogg" ,libogg)
5561 ("physfs" ,physfs)
5562 ("curl" ,curl)
5563 ("boost" ,boost)
5564 ("freetype" ,freetype)
5565 ("squirrel" ,squirrel)))
5566 (native-inputs
5567 `(("pkg-config" ,pkg-config)))
5568 (synopsis "2D platformer game")
5569 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5570 a style similar to the original Super Mario games.")
5571 (home-page "https://supertux.org/")
5572 (license license:gpl3+)))
5573
5574 (define-public tintin++
5575 (package
5576 (name "tintin++")
5577 (version "2.02.11")
5578 (source
5579 (origin
5580 (method url-fetch)
5581 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5582 (string-drop-right version 1)
5583 "/tintin-" version ".tar.gz"))
5584 (sha256
5585 (base32 "1xdim1ckq1kgjyxmghcnvnahq1llv2y70gz3yyvzbli63vpqk4mk"))))
5586 (inputs
5587 `(("gnutls" ,gnutls)
5588 ("pcre" ,pcre)
5589 ("readline" ,readline)
5590 ("zlib" ,zlib)))
5591 (arguments
5592 '(#:tests? #f ; no test suite
5593 #:phases
5594 (modify-phases %standard-phases
5595 ;; The source is in tt/src.
5596 (add-before 'configure 'chdir
5597 (lambda _
5598 (chdir "src")
5599 #t)))))
5600 (build-system gnu-build-system)
5601 (home-page "https://tintin.mudhalla.net/")
5602 (synopsis "MUD client")
5603 (description
5604 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5605 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5606 options used by MUDs, as well as those required to login via telnet on
5607 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5608 (license license:gpl3+)))
5609
5610 (define-public laby
5611 (package
5612 (name "laby")
5613 (version "0.7.0")
5614 (source
5615 (origin (method git-fetch)
5616 (uri (git-reference
5617 (url "https://github.com/sgimenez/laby")
5618 (commit (string-append name "-" version))))
5619 (file-name (git-file-name name version))
5620 (sha256
5621 (base32
5622 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5623 (patches (search-patches "laby-make-install.patch"))))
5624 (build-system gnu-build-system)
5625 (inputs
5626 `(("lablgtk" ,lablgtk)
5627 ("ocaml" ,ocaml)
5628 ("ocaml-findlib" ,ocaml-findlib)
5629 ("ocamlbuild" ,ocamlbuild)))
5630 (arguments
5631 '(#:phases
5632 (modify-phases %standard-phases
5633 (delete 'configure)
5634 (add-before 'build 'allow-unsafe-strings
5635 ;; Fix a build failure with ocaml >=4.06.0.
5636 ;; See <https://github.com/sgimenez/laby/issues/53>.
5637 (lambda _
5638 (setenv "OCAMLPARAM" "safe-string=0,_")
5639 #t))
5640 (add-before 'build 'set-library-path
5641 (lambda* (#:key inputs #:allow-other-keys)
5642 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5643 (setenv "LD_LIBRARY_PATH"
5644 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5645 #:tests? #f ; no 'check' target
5646 #:make-flags
5647 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5648 (home-page "https://sgimenez.github.io/laby/")
5649 (synopsis "Programming game")
5650 (description "Learn programming, playing with ants and spider webs ;-)
5651 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5652 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5653 programmers may also add their own favorite language.")
5654 (license license:gpl3+)))
5655
5656 (define-public bambam
5657 (package
5658 (name "bambam")
5659 (version "1.0.0")
5660 (source
5661 (origin
5662 (method git-fetch)
5663 (uri (git-reference
5664 (url "https://github.com/porridge/bambam")
5665 (commit (string-append "v" version))))
5666 (file-name (git-file-name name version))
5667 (sha256
5668 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5669 (build-system python-build-system)
5670 (arguments
5671 `(#:tests? #f ; no tests
5672 #:phases
5673 (modify-phases %standard-phases
5674 (delete 'build) ; nothing to build
5675 (replace 'install
5676 (lambda* (#:key outputs #:allow-other-keys)
5677 (let* ((out (assoc-ref outputs "out"))
5678 (bin (string-append out "/bin"))
5679 (share (string-append out "/share")))
5680 (mkdir-p bin)
5681 (copy-file "bambam.py" (string-append bin "/bambam"))
5682 (install-file "bambam.6" (string-append share "/man/man6"))
5683 (copy-recursively "data" (string-append share "/bambam/data")))
5684 #t)))))
5685 (inputs
5686 `(("python-pygame" ,python-pygame)))
5687 (home-page "https://github.com/porridge/bambam")
5688 (synopsis "Keyboard mashing and doodling game for babies")
5689 (description "Bambam is a simple baby keyboard (and gamepad) masher
5690 application that locks the keyboard and mouse and instead displays bright
5691 colors, pictures, and sounds.")
5692 (license license:gpl3+)))
5693
5694 (define-public mrrescue
5695 (package
5696 (name "mrrescue")
5697 (version "1.02e")
5698 (source (origin
5699 (method url-fetch)
5700 (uri (string-append
5701 "https://github.com/SimonLarsen/mrrescue/releases/"
5702 "download/" version "/mrrescue" version ".love"))
5703 (file-name (string-append name "-" version ".love"))
5704 (sha256
5705 (base32
5706 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5707 (build-system trivial-build-system)
5708 (arguments
5709 `(#:modules ((guix build utils))
5710 #:builder
5711 (begin
5712 (use-modules (guix build utils))
5713 (let* ((out (assoc-ref %outputs "out"))
5714 (script (string-append out "/bin/" ,name))
5715 (data (string-append out "/share/" ,name))
5716 (source (assoc-ref %build-inputs "source"))
5717 (unzip (search-input-file %build-inputs "/bin/unzip"))
5718 (patch (search-input-file %build-inputs "/bin/patch"))
5719 (bash (search-input-file %build-inputs "/bin/bash"))
5720 (love (search-input-file %build-inputs "/bin/love")))
5721
5722 (mkdir-p (dirname script))
5723 (with-output-to-file script
5724 (lambda ()
5725 (format #t "#!~a~%" bash)
5726 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5727 (chmod script #o755)
5728
5729 ;; The better way to package this game would be to install *only* the
5730 ;; script above, pointing to the unextracted .love file in the store.
5731 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5732 ;; Instead of extracting the .love file, patching it, and re-zipping
5733 ;; it to the store, simply point the script to the extracted patched
5734 ;; data directory directly.
5735 (mkdir-p data)
5736 (with-directory-excursion data
5737 (invoke unzip source)
5738 (invoke patch "-p1" "-i"
5739 (assoc-ref %build-inputs "love-11.patch")))
5740 #t))))
5741 (native-inputs
5742 `(("unzip" ,unzip)
5743 ("patch" ,patch)
5744 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5745 (inputs
5746 `(("bash" ,bash)
5747 ("love" ,love)))
5748 (home-page "https://tangramgames.dk/games/mrrescue")
5749 (synopsis "Arcade-style fire fighting game")
5750 (description
5751 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5752 civilians from burning buildings. The game features fast-paced fire
5753 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5754 throwing people around in pseudo-randomly generated buildings.")
5755 (license (list license:zlib ; for source code
5756 license:cc-by-sa3.0)))) ; for graphics and music assets
5757
5758 (define-public hyperrogue
5759 (package
5760 (name "hyperrogue")
5761 (version "11.3a")
5762 ;; When updating this package, be sure to update the "hyperrogue-data"
5763 ;; origin in native-inputs.
5764 (source (origin
5765 (method url-fetch)
5766 (uri (string-append
5767 "https://www.roguetemple.com/z/hyper/hyperrogue"
5768 (string-join (string-split version #\.) "")
5769 "-src.tgz"))
5770 (sha256
5771 (base32
5772 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5773 (build-system gnu-build-system)
5774 (arguments
5775 `(#:tests? #f ; no check target
5776 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5777 "HYPERROGUE_USE_PNG=1")
5778 #:phases
5779 (modify-phases %standard-phases
5780 (add-after 'set-paths 'set-sdl-paths
5781 (lambda* (#:key inputs #:allow-other-keys)
5782 (setenv "CPATH"
5783 (string-append (or (getenv "CPATH") "") ":"
5784 (assoc-ref inputs "sdl-union")
5785 "/include/SDL"))))
5786 (replace 'configure
5787 (lambda* (#:key inputs outputs #:allow-other-keys)
5788 (let* ((out (assoc-ref outputs "out"))
5789 (share-dir (string-append out "/share/hyperrogue"))
5790 (dejavu-dir (string-append
5791 (assoc-ref inputs "font-dejavu")
5792 "/share/fonts/truetype"))
5793 (dejavu-font "DejaVuSans-Bold.ttf")
5794 (music-file "hyperrogue-music.txt"))
5795 ;; Fix font and music paths.
5796 (substitute* "basegraph.cpp"
5797 ((dejavu-font)
5798 (string-append dejavu-dir "/" dejavu-font)))
5799 (substitute* music-file
5800 (("\\*/")
5801 (string-append share-dir "/sounds/")))
5802 (substitute* "sound.cpp"
5803 (("musicfile = \"\"")
5804 (string-append "musicfile = \""
5805 share-dir "/" music-file "\"")))
5806 ;; Disable build machine CPU optimizations and warnings treated
5807 ;; as errors.
5808 (substitute* "Makefile"
5809 (("-march=native") "")
5810 (("-Werror") "")))
5811 #t))
5812 (replace 'install
5813 (lambda* (#:key inputs outputs #:allow-other-keys)
5814 (let* ((out (assoc-ref outputs "out"))
5815 (bin (string-append out "/bin"))
5816 (share-dir (string-append out "/share/hyperrogue")))
5817 (mkdir-p bin)
5818 (install-file "hyperrogue" bin)
5819 (install-file "hyperrogue-music.txt" share-dir))
5820 #t))
5821 (add-after 'install 'install-data
5822 (lambda* (#:key inputs outputs #:allow-other-keys)
5823 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5824 (out (assoc-ref outputs "out"))
5825 (sounds (string-append out "/share/hyperrogue/sounds"))
5826 (unzip (search-input-file inputs "/bin/unzip")))
5827 ;; Extract media license information into sounds directory.
5828 (invoke unzip "-j" data
5829 (string-append
5830 "hyperrogue"
5831 (string-join (string-split ,version #\.) "")
5832 "/sounds/credits.txt") "-d" sounds)
5833 ;; Extract sounds and music into sounds directory.
5834 (invoke "unzip" "-j" data
5835 (string-append
5836 "hyperrogue"
5837 (string-join (string-split ,version #\.) "")
5838 "/*.ogg") "-d" sounds)))))))
5839 (native-inputs
5840 `(("hyperrogue-data"
5841 ,(origin
5842 (method url-fetch)
5843 (uri
5844 (string-append
5845 "https://www.roguetemple.com/z/hyper/hyperrogue"
5846 (string-join (string-split version #\.) "")
5847 "-win.zip"))
5848 (sha256
5849 (base32
5850 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5851 ("unzip" ,unzip)))
5852 (inputs
5853 `(("font-dejavu" ,font-dejavu)
5854 ("glew" ,glew)
5855 ("libpng" ,libpng)
5856 ("sdl-union" ,(sdl-union (list sdl
5857 sdl-gfx
5858 sdl-mixer
5859 sdl-ttf)))))
5860 (home-page "https://www.roguetemple.com/z/hyper/")
5861 (synopsis "Non-euclidean graphical rogue-like game")
5862 (description
5863 "HyperRogue is a game in which the player collects treasures and fights
5864 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5865 plane and not in euclidean space.
5866
5867 In HyperRogue, the player can move through different parts of the world, which
5868 are home to particular creatures and may be subject to their own rules of
5869 \"physics\".
5870
5871 While the game can use ASCII characters to display the the classical rogue
5872 symbols, it still needs graphics to render the non-euclidean world.")
5873 (license (list license:bsd-3 ; glew.c, mtrand.*
5874 license:cc-by-sa3.0 ; music
5875 license:cc-by-sa4.0 ; sounds
5876 license:cc0
5877 license:public-domain ; direntx.*, some sounds
5878 license:zlib ; savepng.*
5879 license:gpl2+)))) ; remaining files
5880
5881 (define-public kobodeluxe
5882 (package
5883 (name "kobodeluxe")
5884 (version "0.5.1")
5885 (source (origin
5886 (method url-fetch)
5887 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5888 version ".tar.bz2"))
5889 (sha256
5890 (base32
5891 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5892 (patches (search-patches
5893 "kobodeluxe-const-charp-conversion.patch"
5894 "kobodeluxe-enemies-pipe-decl.patch"
5895 "kobodeluxe-graphics-window-signed-char.patch"
5896 "kobodeluxe-manpage-minus-not-hyphen.patch"
5897 "kobodeluxe-midicon-segmentation-fault.patch"
5898 "kobodeluxe-paths.patch"))))
5899 (build-system gnu-build-system)
5900 (arguments
5901 '(#:configure-flags
5902 (list (string-append "CPPFLAGS=-I"
5903 (assoc-ref %build-inputs "sdl-union")
5904 "/include/SDL"))))
5905 (inputs
5906 `(("glu" ,glu)
5907 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5908 (synopsis "Shooter with space station destruction")
5909 (description
5910 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5911 for Un*x systems with X11.")
5912 (home-page "http://olofson.net/kobodl/")
5913 (license license:gpl2+)))
5914
5915 (define-public freeciv
5916 (package
5917 (name "freeciv")
5918 (version "2.6.5")
5919 (source
5920 (origin
5921 (method url-fetch)
5922 (uri (list (string-append
5923 "http://files.freeciv.org/stable/freeciv-"
5924 version ".tar.bz2")
5925 (string-append
5926 "mirror://sourceforge/freeciv/Freeciv%20"
5927 (version-major+minor version) "/" version
5928 "/freeciv-" version ".tar.bz2")))
5929 (sha256
5930 (base32 "0ngcj59ak71i6m8yvbr0g3aryzpw1scalpdzgfqsq4mf9p3y2r1f"))))
5931 (build-system gnu-build-system)
5932 (inputs
5933 `(("curl" ,curl)
5934 ("cyrus-sasl" ,cyrus-sasl)
5935 ("gtk+" ,gtk+)
5936 ("sdl-mixer" ,sdl-mixer)
5937 ("zlib" ,zlib)))
5938 (native-inputs
5939 `(("pkg-config" ,pkg-config)))
5940 (home-page "http://www.freeciv.org/")
5941 (synopsis "Turn-based empire building strategy game")
5942 (description "Freeciv is a turn-based empire building strategy game
5943 inspired by the history of human civilization. The game commences in
5944 prehistory and your mission is to lead your tribe from the Stone Age
5945 into the Space Age.")
5946 (license license:gpl2+)))
5947
5948 (define-public no-more-secrets
5949 (package
5950 (name "no-more-secrets")
5951 (version "0.3.3")
5952 (source
5953 (origin
5954 (method git-fetch)
5955 (uri (git-reference
5956 (url "https://github.com/bartobri/no-more-secrets")
5957 (commit (string-append "v" version))))
5958 (file-name (git-file-name name version))
5959 (sha256
5960 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5961 (build-system gnu-build-system)
5962 (arguments
5963 `(#:tests? #f
5964 #:make-flags (list "CC=gcc" "all-ncurses"
5965 (string-append "prefix="
5966 (assoc-ref %outputs "out")))
5967 #:phases
5968 (modify-phases %standard-phases
5969 (delete 'configure))))
5970 (inputs
5971 `(("ncurses" ,ncurses)))
5972 (home-page "https://github.com/bartobri/no-more-secrets")
5973 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5974 (description
5975 "@code{No More Secrets} provides a command line tool called \"nms\"
5976 that recreates the famous data decryption effect seen on screen in the 1992
5977 movie \"Sneakers\".
5978
5979 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5980 it will apply the hollywood effect, initially showing encrypted data, then
5981 starting a decryption sequence to reveal the original plaintext characters.")
5982 (license license:expat)))
5983
5984 (define-public megaglest-data
5985 (package
5986 (name "megaglest-data")
5987 (version "3.13.0")
5988 (source
5989 (origin
5990 (method url-fetch)
5991 (uri (string-append
5992 "https://github.com/MegaGlest/megaglest-data"
5993 "/releases/download/" version "/megaglest-data-"
5994 version ".tar.xz"))
5995 (sha256
5996 (base32
5997 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5998 (build-system cmake-build-system)
5999 (arguments
6000 `(#:tests? #f))
6001 (home-page "https://megaglest.org/")
6002 (synopsis "Data files for MegaGlest")
6003 (description "This package contains the data files required for MegaGlest.")
6004 (license license:cc-by-sa3.0)))
6005
6006 (define-public megaglest
6007 (package
6008 (name "megaglest")
6009 (version "3.13.0")
6010 (source
6011 (origin
6012 (method url-fetch)
6013 (uri (string-append
6014 "https://github.com/MegaGlest/megaglest-source"
6015 "/releases/download/" version "/megaglest-source-"
6016 version ".tar.xz"))
6017 (sha256
6018 (base32
6019 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
6020 (build-system cmake-build-system)
6021 (inputs
6022 `(("curl" ,curl)
6023 ("fontconfig" ,fontconfig)
6024 ("ftgl" ,ftgl)
6025 ("glew" ,glew)
6026 ("libjpeg-turbo" ,libjpeg-turbo)
6027 ("megaglest-data" ,megaglest-data)
6028 ("mesa" ,mesa)
6029 ("miniupnpc" ,miniupnpc)
6030 ("openal" ,openal)
6031 ("libircclient" ,libircclient)
6032 ("libpng" ,libpng)
6033 ("libvorbis" ,libvorbis)
6034 ("lua" ,lua)
6035 ("sdl2" ,sdl2)
6036 ("wxwidgets" ,wxwidgets)))
6037 (native-inputs
6038 `(("cppunit" ,cppunit)
6039 ("pkg-config" ,pkg-config)))
6040 (arguments
6041 `(#:configure-flags
6042 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
6043 (assoc-ref %build-inputs "megaglest-data")
6044 "/share/megaglest")
6045 "-DBUILD_MEGAGLEST_TESTS=ON")
6046 #:phases
6047 (modify-phases %standard-phases
6048 (add-after 'unpack 'fix-ini-search-path
6049 (lambda* (#:key outputs #:allow-other-keys)
6050 (substitute* "source/glest_game/global/config.cpp"
6051 (("/usr/share/megaglest/")
6052 (string-append (assoc-ref outputs "out")
6053 "/share/megaglest/"))))))
6054 #:test-target "megaglest_tests"))
6055 (home-page "https://megaglest.org/")
6056 (synopsis "3D real-time strategy (RTS) game")
6057 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
6058 game, where you control the armies of one of seven different factions: Tech,
6059 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
6060 (license license:gpl2+)))
6061
6062 (define-public freegish
6063 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
6064 (revision "1"))
6065 (package
6066 (name "freegish")
6067 (version (string-append "0-" revision "." (string-take commit 9)))
6068 (source (origin
6069 (method git-fetch)
6070 (uri (git-reference
6071 (url "https://github.com/freegish/freegish")
6072 (commit commit)))
6073 (file-name (git-file-name name version))
6074 (sha256
6075 (base32
6076 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
6077 (modules '((guix build utils)))
6078 ;; The audio files in the "music" directory are licensed under
6079 ;; CC-BY-NC, so we delete them.
6080 (snippet
6081 '(begin
6082 (delete-file-recursively "music")
6083 #t))))
6084 (build-system cmake-build-system)
6085 (arguments
6086 `(#:tests? #f ; no tests included
6087 #:configure-flags
6088 (list "-DCMAKE_INSTALL_FHS=ON")
6089 #:phases
6090 (modify-phases %standard-phases
6091 (add-after 'unpack 'set-DATAPATH
6092 (lambda* (#:key outputs #:allow-other-keys)
6093 (substitute* "CMakeLists.txt"
6094 (("^option\\(INSTALL_FHS" line)
6095 (string-append "add_definitions(-DDATAPATH=\""
6096 (assoc-ref outputs "out") "/share/freegish\")\n"
6097 line)))
6098 #t)))))
6099 (inputs
6100 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
6101 ("openal" ,openal)
6102 ("libvorbis" ,libvorbis)
6103 ("libogg" ,libogg)
6104 ("mesa" ,mesa)
6105 ("libpng" ,libpng)
6106 ("zlib" ,zlib)))
6107 (home-page "https://github.com/freegish/freegish")
6108 (synopsis "Side-scrolling physics platformer with a ball of tar")
6109 (description "In FreeGish you control Gish, a ball of tar who lives
6110 happily with his girlfriend Brea, until one day a mysterious dark creature
6111 emerges from a sewer hole and pulls her below ground.")
6112 ;; The textures are available under the Expat license. All other assets
6113 ;; (including levels) are covered under CC-BY-SA or public domain. The
6114 ;; source code is under GPLv2+.
6115 (license (list license:gpl2+
6116 license:expat
6117 license:public-domain
6118 license:cc-by-sa3.0)))))
6119
6120 (define-public cdogs-sdl
6121 (package
6122 (name "cdogs-sdl")
6123 (version "0.8.0")
6124 (source
6125 (origin
6126 (method git-fetch)
6127 (uri (git-reference
6128 (url "https://github.com/cxong/cdogs-sdl")
6129 (commit version)))
6130 (file-name (git-file-name name version))
6131 (sha256
6132 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
6133 (build-system cmake-build-system)
6134 (arguments
6135 `(#:configure-flags
6136 (list (string-append "-DCDOGS_DATA_DIR="
6137 (assoc-ref %outputs "out")
6138 "/share/cdogs-sdl/"))))
6139 (native-inputs
6140 `(("pkg-config" ,pkg-config)))
6141 (inputs
6142 `(("gtk+" ,gtk+)
6143 ("mesa" ,mesa)
6144 ("sdl2" ,sdl2)
6145 ("sdl2-image" ,sdl2-image)
6146 ("sdl2-mixer" ,sdl2-mixer)))
6147 (home-page "https://cxong.github.io/cdogs-sdl/")
6148 (synopsis "Classic overhead run-and-gun game")
6149 (description "C-Dogs SDL is a classic overhead run-and-gun game,
6150 supporting up to 4 players in co-op and deathmatch modes. Customize your
6151 player, choose from many weapons, and blast, slide and slash your way through
6152 over 100 user-created campaigns.")
6153 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
6154 ;; CC0/CC-BY/CC-BY-SA for assets.
6155 (license (list license:gpl2+
6156 license:bsd-2
6157 license:bsd-3
6158 license:cc0
6159 license:cc-by3.0
6160 license:cc-by-sa3.0))))
6161
6162 (define-public kiki
6163 (package
6164 (name "kiki")
6165 (version "1.0.2")
6166 (source (origin
6167 (method url-fetch)
6168 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
6169 version "/kiki-" version "-src.tgz"))
6170 (sha256
6171 (base32
6172 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
6173 (modules '((guix build utils)))
6174 (snippet
6175 '(begin
6176 (for-each delete-file (find-files "." "\\.dll$"))
6177 #t))
6178 (patches
6179 (search-patches "kiki-level-selection-crash.patch"
6180 "kiki-makefile.patch"
6181 "kiki-missing-includes.patch"
6182 "kiki-portability-64bit.patch"))))
6183 (build-system gnu-build-system)
6184 (arguments
6185 `(#:tests? #f ; there are no tests
6186 #:make-flags '("CXX=g++")
6187 #:phases
6188 (modify-phases %standard-phases
6189 (replace 'configure
6190 (lambda* (#:key inputs outputs #:allow-other-keys)
6191 (setenv "CPLUS_INCLUDE_PATH"
6192 (string-append
6193 (search-input-directory inputs "include/SDL") ":"
6194 (search-input-directory inputs "include/python2.7")
6195 ":" (or (getenv "CPLUS_INCLUDE_PATH") "")))
6196 (substitute* "src/main/main.cpp"
6197 (("#include <SDL.h>" line)
6198 (string-append line "
6199 #define K_INCLUDE_GLUT
6200 #include \"KIncludeTools.h\""))
6201 (("// initialize SDL" line)
6202 (string-append "glutInit(&argc,argv);\n" line)))
6203 (substitute* "src/main/KikiController.cpp"
6204 (("getenv\\(\"KIKI_HOME\"\\)")
6205 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
6206 (substitute* "linux/Makefile"
6207 (("CXXOPTS =" line)
6208 (string-append line " -fpermissive"))
6209 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
6210 (("PYTHONHOME =.*")
6211 (string-append "PYTHONHOME = "
6212 (assoc-ref inputs "python")
6213 "/lib/python2.7/"))
6214 (("\\$\\(GLLIBS\\)" line)
6215 (string-append line " -lm -lpython2.7")))
6216 (substitute* "src/main/KikiPythonWidget.h"
6217 (("#define __KikiPythonWidget" line)
6218 (string-append line "\n#include \"KikiPython.h\"")))
6219 #t))
6220 (add-before 'build 'build-kodilib
6221 (lambda* (#:key make-flags #:allow-other-keys)
6222 (with-directory-excursion "kodilib/linux"
6223 (apply invoke "make" make-flags))))
6224 (add-after 'build-kodilib 'chdir
6225 (lambda _ (chdir "linux") #t))
6226 (replace 'install
6227 (lambda* (#:key outputs #:allow-other-keys)
6228 (let* ((out (assoc-ref outputs "out"))
6229 (bin (string-append out "/bin"))
6230 (share (string-append out "/share/kiki")))
6231 (mkdir-p bin)
6232 (mkdir-p share)
6233 (install-file "kiki" bin)
6234 (copy-recursively "../py" (string-append share "/py"))
6235 (copy-recursively "../sound" (string-append share "/sound"))
6236 #t))))))
6237 (inputs
6238 `(("glu" ,glu)
6239 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
6240 ("freeglut" ,freeglut-2.8)
6241 ("sdl-union" ,(sdl-union (list sdl
6242 sdl-mixer
6243 sdl-image)))
6244 ("python" ,python-2)))
6245 (native-inputs
6246 `(("swig" ,swig)))
6247 (home-page "http://kiki.sourceforge.net/")
6248 (synopsis "3D puzzle game")
6249 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
6250 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
6251 small robot living in the nano world, repair its maker.")
6252 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
6253 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
6254 ;; for a statement from the author.
6255 (license license:public-domain)))
6256
6257 (define-public teeworlds
6258 (package
6259 (name "teeworlds")
6260 (version "0.7.5")
6261 (source (origin
6262 (method git-fetch)
6263 (uri (git-reference
6264 (url "https://github.com/teeworlds/teeworlds")
6265 (commit version)
6266 ;; There are two submodules in datasrc/{languages,maps}
6267 (recursive? #t)))
6268 (file-name (git-file-name name version))
6269 (sha256
6270 (base32
6271 "1l19ksmimg6b8zzjy0skyhh7z11ql7n5gvilkv7ay5x2b9ndbqwz"))
6272 (modules '((guix build utils)
6273 (ice-9 ftw)
6274 (ice-9 regex)
6275 (srfi srfi-1)
6276 (srfi srfi-26)))
6277 (snippet ; remove bundled libraries except md5
6278 '(let ((base-dir "src/engine/external/"))
6279 (for-each (compose (cut delete-file-recursively <>)
6280 (cut string-append base-dir <>))
6281 (remove (cut string-match "(^.)|(^md5$)" <>)
6282 (scandir base-dir)))
6283 #t))))
6284 (build-system cmake-build-system)
6285 (arguments
6286 `(#:test-target "run_tests"
6287 #:phases
6288 (modify-phases %standard-phases
6289 (add-after 'unpack 'patch-paths
6290 (lambda* (#:key outputs #:allow-other-keys)
6291 ;; Embed path to assets.
6292 (substitute* "src/engine/shared/storage.cpp"
6293 (("#define DATA_DIR.*")
6294 (string-append "#define DATA_DIR \""
6295 (assoc-ref outputs "out")
6296 "/share/teeworlds/data"
6297 "\"")))
6298 #t))
6299 (add-after 'unpack 'replace-font
6300 (lambda* (#:key inputs #:allow-other-keys)
6301 (delete-file "datasrc/fonts/DejaVuSans.ttf")
6302 (symlink (string-append (assoc-ref inputs "font-dejavu")
6303 "/share/fonts/truetype/DejaVuSans.ttf")
6304 "datasrc/fonts/DejaVuSans.ttf")
6305 #t)))))
6306 (inputs
6307 `(("freetype" ,freetype)
6308 ("font-dejavu" ,font-dejavu)
6309 ("glu" ,glu)
6310 ("json-parser" ,json-parser)
6311 ("mesa" ,mesa)
6312 ("pnglite" ,pnglite)
6313 ("sdl2" ,sdl2)
6314 ("sdl2-image" ,sdl2-image)
6315 ("sdl2-mixer" ,sdl2-mixer)
6316 ("wavpack" ,wavpack)
6317 ("openssl" ,openssl)
6318 ("zlib" ,zlib)))
6319 (native-inputs
6320 `(("googletest" ,googletest)
6321 ("python" ,python-wrapper)
6322 ("pkg-config" ,pkg-config)))
6323 (home-page "https://www.teeworlds.com")
6324 (synopsis "2D retro multiplayer shooter game")
6325 (description "Teeworlds is an online multiplayer game. Battle with up to
6326 16 players in a variety of game modes, including Team Deathmatch and Capture
6327 The Flag. You can even design your own maps!")
6328 (license (list license:bsd-3 license:cc-by-sa3.0)))) ; game+maps&languages
6329
6330 (define-public enigma
6331 (package
6332 (name "enigma")
6333 (version "1.21")
6334 (source (origin
6335 (method url-fetch)
6336 (uri (string-append "mirror://sourceforge/enigma-game/"
6337 "Release%20" version "/enigma-"
6338 version ".tar.gz"))
6339 (sha256
6340 (base32
6341 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6342 (build-system gnu-build-system)
6343 (arguments
6344 `(#:configure-flags
6345 (list "--with-system-enet")
6346 #:phases
6347 (modify-phases %standard-phases
6348 (add-after 'unpack 'fix-build-with-new-gcc
6349 (lambda _
6350 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6351 ;; to NULL. Can be removed for versions > 1.21.
6352 (substitute* "src/lev/Proxy.cc"
6353 (("ifs != NULL")
6354 "ifs"))
6355 #t))
6356 (add-after 'unpack 'find-sdl
6357 (lambda _
6358 (substitute* "configure"
6359 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6360 (substitute* '("tools/ttf2bmf.cc"
6361 "lib-src/enigma-core/ecl_font.cc"
6362 "lib-src/enigma-core/ecl_video.cc"
6363 "lib-src/enigma-core/ecl_buffer.hh"
6364 "src/SoundEngine.cc"
6365 "src/SoundEngine.hh"
6366 "src/MusicManager.cc"
6367 "src/MusicManager.hh"
6368 "src/d_models.cc"
6369 "src/main.cc"
6370 "src/network.cc")
6371 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6372 (string-append "#include \"SDL/SDL_" header ".h\"")))
6373 (substitute* "src/main.cc"
6374 (("#include <SDL_(image|ttf|mixer).h>" line header)
6375 (string-append "#include \"SDL/SDL_" header ".h\"")))
6376 #t)))))
6377 (inputs
6378 `(("xerces-c" ,xerces-c)
6379 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6380 ("curl" ,curl)
6381 ("enet" ,enet)))
6382 (native-inputs
6383 `(("pkg-config" ,pkg-config)
6384 ("imagemagick" ,imagemagick)))
6385 (home-page "https://www.nongnu.org/enigma")
6386 (synopsis "Puzzle game with a dexterity component")
6387 (description "Enigma is a puzzle game with 550 unique levels. The object
6388 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6389 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6390 and most of all, countless hairy puzzles usually block your direct way to the
6391 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6392 get bored) interact in many unexpected ways, and since many of them follow the
6393 laws of physics (Enigma’s special laws of physics, that is), controlling them
6394 with the mouse isn’t always trivial.")
6395 (license license:gpl2+)))
6396
6397 (define-public chroma
6398 (package
6399 (name "chroma")
6400 (version "1.18")
6401 (source (origin
6402 (method url-fetch)
6403 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6404 version ".tar.bz2"))
6405 (sha256
6406 (base32
6407 "12bjisf5nlqinw8n4r223vld52p0p2mw3fca92vi175c46bycbzn"))))
6408 (build-system gnu-build-system)
6409 (arguments
6410 `(#:tests? #f ; no tests included
6411 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6412 (inputs
6413 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6414 ("freetype" ,freetype)
6415 ("ncurses" ,ncurses)
6416 ("fontconfig" ,fontconfig)
6417 ("libxft" ,libxft)))
6418 (native-inputs
6419 `(("pkg-config" ,pkg-config)))
6420 (home-page "http://level7.org.uk/chroma/")
6421 (synopsis "Abstract puzzle game")
6422 (description "Chroma is an abstract puzzle game. A variety of colourful
6423 shapes are arranged in a series of increasingly complex patterns, forming
6424 fiendish traps that must be disarmed and mysterious puzzles that must be
6425 manipulated in order to give up their subtle secrets. Initially so
6426 straightforward that anyone can pick it up and begin to play, yet gradually
6427 becoming difficult enough to tax even the brightest of minds.")
6428 (license license:gpl2+)))
6429
6430 (define-public fillets-ng
6431 (package
6432 (name "fillets-ng")
6433 (version "1.0.1")
6434 (source (origin
6435 (method url-fetch)
6436 (uri (string-append "mirror://sourceforge/fillets/"
6437 "Fish%20Fillets%20-%20Next%20Generation/"
6438 version "/fillets-ng-" version ".tar.gz"))
6439 (sha256
6440 (base32
6441 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6442 (build-system gnu-build-system)
6443 (arguments
6444 `(#:configure-flags
6445 (list (string-append "--with-lua="
6446 (assoc-ref %build-inputs "lua")))
6447 #:make-flags
6448 (list (string-append "CFLAGS=-I"
6449 (assoc-ref %build-inputs "sdl-union")
6450 "/include/SDL")
6451 (string-append "CXXFLAGS=-I"
6452 (assoc-ref %build-inputs "sdl-union")
6453 "/include/SDL"))
6454 #:phases
6455 (modify-phases %standard-phases
6456 ;; Lua 5.1 does not provide it.
6457 (add-after 'unpack 'do-not-link-with-lualib
6458 (lambda _
6459 (substitute* "configure"
6460 (("-llualib") ""))
6461 #t))
6462 (add-after 'install 'install-data
6463 (lambda* (#:key inputs outputs #:allow-other-keys)
6464 (let ((data (string-append (assoc-ref outputs "out")
6465 "/share/games/fillets-ng")))
6466 (mkdir-p data)
6467 (invoke "tar" "-xvf"
6468 (assoc-ref inputs "fillets-ng-data")
6469 "--strip-components=1"
6470 "-C" data)))))))
6471 (inputs
6472 `(("sdl-union" ,(sdl-union (list sdl
6473 sdl-mixer
6474 sdl-image
6475 sdl-ttf)))
6476 ("fribidi" ,fribidi)
6477 ("libx11" ,libx11)
6478 ("lua" ,lua-5.1)))
6479 (native-inputs
6480 `(("pkg-config" ,pkg-config)
6481 ("fillets-ng-data"
6482 ,(origin
6483 (method url-fetch)
6484 (uri (string-append "mirror://sourceforge/fillets/"
6485 "Fish%20Fillets%20-%20Next%20Generation/"
6486 version "/fillets-ng-data-" version ".tar.gz"))
6487 (sha256
6488 (base32
6489 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6490 (home-page "http://fillets.sourceforge.net/")
6491 (synopsis "Puzzle game")
6492 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6493 every of the seventy levels is always the same: find a safe way out. The fish
6494 utter witty remarks about their surroundings, the various inhabitants of their
6495 underwater realm quarrel among themselves or comment on the efforts of your
6496 fish. The whole game is accompanied by quiet, comforting music.")
6497 (license license:gpl2+)))
6498
6499 (define-public crawl
6500 (package
6501 (name "crawl")
6502 (version "0.27.1")
6503 (source
6504 (origin
6505 (method url-fetch)
6506 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6507 version "/stone_soup-" version "-nodeps.tar.xz"))
6508 (sha256
6509 (base32 "0nkhyhrrma8gmwxp15j84cn1k2yvyq7ar9rd0j2qjjlv2kdis5z2"))
6510 (patches (search-patches "crawl-upgrade-saves.patch"))))
6511 (build-system gnu-build-system)
6512 (inputs
6513 `(("lua51" ,lua-5.1)
6514 ("ncurses" ,ncurses)
6515 ("sqlite" ,sqlite)
6516 ("zlib" ,zlib)))
6517 (native-inputs
6518 `(("bison" ,bison)
6519 ("flex" ,flex)
6520 ("perl" ,perl)
6521 ("python" ,python-wrapper)
6522 ("python-pyyaml" ,python-pyyaml)
6523 ("pkg-config" ,pkg-config)))
6524 (arguments
6525 `(#:make-flags
6526 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6527 (out (assoc-ref %outputs "out")))
6528 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6529 (string-append "prefix=" out)
6530 "SAVEDIR=~/.crawl"
6531 ;; Don't compile with SSE on systems which don't have it.
6532 ,@(match (%current-system)
6533 ((or "i686-linux" "x86_64-linux")
6534 '())
6535 (_ '("NOSSE=TRUE")))
6536 ;; don't build any bundled dependencies
6537 "BUILD_LUA="
6538 "BUILD_SQLITE="
6539 "BUILD_ZLIB="
6540 "-Csource"))
6541 #:phases
6542 (modify-phases %standard-phases
6543 (add-after 'unpack 'find-SDL-image
6544 (lambda _
6545 (substitute* "source/windowmanager-sdl.cc"
6546 (("SDL_image.h") "SDL2/SDL_image.h"))
6547 #t))
6548 (delete 'configure)
6549 (replace 'check
6550 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6551 (setenv "HOME" (getcwd))
6552 ;; Fake a terminal for the test cases.
6553 (setenv "TERM" "xterm-256color")
6554 ;; Run the tests that don't require a debug build.
6555 (apply invoke "make" "nondebugtest"
6556 (format #f "-j~d" (parallel-job-count))
6557 ;; Force command line build for test cases.
6558 (append make-flags '("GAME=crawl" "TILES="))))))))
6559 (synopsis "Roguelike dungeon crawler game")
6560 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6561 for short) is a roguelike adventure through dungeons filled with dangerous
6562 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6563 (home-page "https://crawl.develz.org")
6564 (license (list license:gpl2+
6565 license:bsd-2
6566 license:bsd-3
6567 license:cc0
6568 license:expat
6569 license:zlib
6570 license:asl2.0))))
6571
6572 ;; The linter here claims that patch file names should start with the package
6573 ;; name. But, in this case, the patches are inherited from crawl with the
6574 ;; "crawl-" prefix instead of "crawl-tiles-".
6575 (define-public crawl-tiles
6576 (package
6577 (inherit crawl)
6578 (name "crawl-tiles")
6579 (arguments
6580 (substitute-keyword-arguments
6581 (package-arguments crawl)
6582 ((#:make-flags flags)
6583 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6584 (cons*
6585 (string-append "PROPORTIONAL_FONT=" dejavu
6586 "/share/fonts/truetype/DejaVuSans.ttf")
6587 (string-append "MONOSPACED_FONT=" dejavu
6588 "/share/fonts/truetype/DejaVuSansMono.ttf")
6589 "TILES=y"
6590 ;; Rename the executable to allow parallel installation with crawl.
6591 "GAME=crawl-tiles"
6592 ,flags)))))
6593 (inputs
6594 `(,@(package-inputs crawl)
6595 ("font-dejavu" ,font-dejavu)
6596 ("freetype6" ,freetype)
6597 ("glu" ,glu)
6598 ("libpng" ,libpng)
6599 ("sdl2" ,sdl2)
6600 ("sdl2-image" ,sdl2-image)
6601 ("sdl2-mixer" ,sdl2-mixer)))
6602 (native-inputs
6603 `(,@(package-native-inputs crawl)
6604 ("pngcrush" ,pngcrush)
6605 ("which" ,which)))
6606 (synopsis "Graphical roguelike dungeon crawler game")))
6607
6608 (define-public lugaru
6609 (package
6610 (name "lugaru")
6611 (version "1.2")
6612 (source (origin
6613 (method url-fetch)
6614 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6615 "lugaru-" version ".tar.xz"))
6616 (sha256
6617 (base32
6618 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6619 (build-system cmake-build-system)
6620 (arguments
6621 `(#:configure-flags
6622 (list "-DSYSTEM_INSTALL=ON")
6623 ;; no test target
6624 #:tests? #f))
6625 (native-inputs
6626 `(("pkg-config" ,pkg-config)))
6627 (inputs
6628 `(("sdl2" ,sdl2)
6629 ("glu" ,glu)
6630 ("libjpeg" ,libjpeg-turbo)
6631 ("libpng" ,libpng)
6632 ("openal" ,openal)
6633 ("vorbis" ,libvorbis)
6634 ("zlib" ,zlib)))
6635 (home-page "https://osslugaru.gitlab.io")
6636 (synopsis "Cross-platform third-person action game")
6637 (description "Lugaru is a third-person action game. The main character,
6638 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6639 In his quest to find those responsible for slaughtering his village, he uncovers
6640 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6641 and the starving wolves from a nearby den. Turner takes it upon himself to
6642 fight against their plot and save his fellow rabbits from slavery.")
6643 (license (list license:gpl2+ ; code
6644 ;; assets:
6645 license:cc-by-sa3.0
6646 license:cc-by-sa4.0))))
6647
6648 (define-public 0ad-data
6649 (package
6650 (name "0ad-data")
6651 (version "0.0.23b-alpha")
6652 (source
6653 (origin
6654 (method url-fetch)
6655 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6656 version "-unix-data.tar.xz"))
6657 (file-name (string-append name "-" version ".tar.xz"))
6658 (sha256
6659 (base32
6660 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6661 (modules '((guix build utils)))
6662 (snippet
6663 #~(begin
6664 (for-each (lambda (name)
6665 (let* ((dir (string-append "binaries/data/mods/" name))
6666 (file (string-append dir "/" name ".zip"))
6667 (unzip #$(file-append unzip "/bin/unzip")))
6668 (invoke unzip "-d" dir file)
6669 (delete-file file)))
6670 '("mod" "public"))
6671 #t))))
6672 (build-system trivial-build-system)
6673 (native-inputs `(("tar" ,tar)
6674 ("xz" ,xz)))
6675 (arguments
6676 `(#:modules ((guix build utils))
6677 #:builder
6678 (begin
6679 (use-modules (guix build utils))
6680 (let ((out (assoc-ref %outputs "out"))
6681 (source (assoc-ref %build-inputs "source"))
6682 (tar (search-input-file %build-inputs "/bin/tar"))
6683 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6684 (setenv "PATH" xz-path)
6685 (mkdir out)
6686 (invoke tar "xvf" source "-C" out "--strip=3")))))
6687 (synopsis "Data files for 0ad")
6688 (description "0ad-data provides the data files required by the game 0ad.")
6689 (home-page "https://play0ad.com")
6690 (license (list (license:fsdg-compatible
6691 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6692 "Similar to the license of the Bitstream Vera fonts.")
6693 (license:fsdg-compatible
6694 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6695 license:cc-by-sa3.0
6696 license:expat
6697 license:gfl1.0
6698 license:gpl2+
6699 license:gpl3+))))
6700
6701 (define-public 0ad
6702 (package
6703 (name "0ad")
6704 (version "0.0.23b-alpha")
6705 (source
6706 (origin
6707 (method url-fetch)
6708 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6709 version "-unix-build.tar.xz"))
6710 (file-name (string-append name "-" version ".tar.xz"))
6711 (sha256
6712 (base32
6713 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6714 ;; A snippet here would cause a build failure because of timestamps
6715 ;; reset. See https://bugs.gnu.org/26734.
6716 (inputs
6717 `(("0ad-data" ,0ad-data)
6718 ("curl" ,curl)
6719 ("enet" ,enet)
6720 ("gloox" ,gloox)
6721 ("icu4c" ,icu4c)
6722 ("libpng" ,libpng)
6723 ("libsodium" ,libsodium)
6724 ("libvorbis" ,libvorbis)
6725 ("libxcursor" ,libxcursor)
6726 ("libxml2" ,libxml2)
6727 ("miniupnpc" ,miniupnpc)
6728 ("mozjs-38" ,mozjs-38)
6729 ("openal" ,openal)
6730 ("sdl2" ,sdl2)
6731 ("wxwidgets" ,wxwidgets)
6732 ("zlib" ,zlib)))
6733 (native-inputs
6734 `(("boost" ,boost)
6735 ("cmake" ,cmake-minimal)
6736 ("mesa" ,mesa)
6737 ("pkg-config" ,pkg-config)
6738 ("python-2" ,python-2)))
6739 (build-system gnu-build-system)
6740 (arguments
6741 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6742 #:phases
6743 (modify-phases %standard-phases
6744 (add-after 'unpack 'delete-bundles
6745 (lambda _
6746 (delete-file-recursively "libraries/source/spidermonkey")
6747 #t))
6748 (add-after 'unpack 'fix-x11-includes
6749 (lambda _
6750 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6751 (("<Xlib.h>") "<X11/Xlib.h>"))
6752 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6753 (("<Xatom.h>") "<X11/Xatom.h>"))
6754 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6755 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6756 #t))
6757 (replace 'configure
6758 (lambda* (#:key inputs outputs #:allow-other-keys)
6759 (let* ((jobs (number->string (parallel-job-count)))
6760 (out (assoc-ref outputs "out"))
6761 (lib (string-append out "/lib"))
6762 (data (string-append out "/share/0ad")))
6763 (setenv "JOBS" (string-append "-j" jobs))
6764 (setenv "CC" "gcc")
6765 (with-directory-excursion "build/workspaces"
6766 (invoke "./update-workspaces.sh"
6767 (string-append "--libdir=" lib)
6768 (string-append "--datadir=" data)
6769 ;; TODO: "--with-system-nvtt"
6770 "--with-system-mozjs38")))))
6771 (delete 'check)
6772 (replace 'install
6773 (lambda* (#:key inputs outputs #:allow-other-keys)
6774 (chdir "binaries")
6775 (let* ((out (assoc-ref outputs "out"))
6776 (bin (string-append out "/bin"))
6777 (lib (string-append out "/lib"))
6778 (data (string-append out "/share/0ad"))
6779 (applications (string-append out "/share/applications"))
6780 (pixmaps (string-append out "/share/pixmaps"))
6781 (0ad-data (assoc-ref inputs "0ad-data")))
6782 ;; data
6783 (copy-recursively "data" data)
6784 (for-each (lambda (file)
6785 (symlink (string-append 0ad-data "/" file)
6786 (string-append data "/" file)))
6787 '("config" "mods/mod" "mods/public" "tools"))
6788 ;; libraries
6789 (for-each (lambda (file)
6790 (install-file file lib))
6791 (find-files "system" "\\.so$"))
6792 ;; binaries
6793 (install-file "system/pyrogenesis" bin)
6794 (with-directory-excursion bin
6795 (symlink "pyrogenesis" "0ad"))
6796 ;; resources
6797 (with-directory-excursion "../build/resources"
6798 (install-file "0ad.desktop" applications)
6799 (install-file "0ad.png" pixmaps))
6800 #t)))
6801 (add-after 'install 'check
6802 (lambda _
6803 (with-directory-excursion "system"
6804 (invoke "./test")))))))
6805 (home-page "https://play0ad.com")
6806 (synopsis "3D real-time strategy game of ancient warfare")
6807 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6808 warfare. It's a historically-based war/economy game that allows players to
6809 relive or rewrite the history of twelve ancient civilizations, each depicted
6810 at their peak of economic growth and military prowess.
6811
6812 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6813 (license (list license:bsd-2
6814 license:bsd-3
6815 license:expat
6816 license:gpl2+
6817 license:ibmpl1.0
6818 license:isc
6819 license:lgpl2.1
6820 license:lgpl3
6821 license:mpl2.0
6822 license:zlib))))
6823
6824 (define-public open-adventure
6825 (package
6826 (name "open-adventure")
6827 (version "1.9")
6828 (source
6829 (origin
6830 (method git-fetch)
6831 (uri (git-reference
6832 (url "https://gitlab.com/esr/open-adventure")
6833 (commit version)))
6834 (file-name (git-file-name name version))
6835 (sha256
6836 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6837 (build-system gnu-build-system)
6838 (arguments
6839 `(#:make-flags (list "CC=gcc")
6840 #:phases
6841 (modify-phases %standard-phases
6842 (delete 'configure) ;no configure script
6843 (add-before 'build 'use-echo
6844 (lambda _
6845 (substitute* "tests/Makefile"
6846 (("/bin/echo") (which "echo")))
6847 #t))
6848 (add-after 'build 'build-manpage
6849 (lambda _
6850 ;; This target is missing a dependency
6851 (substitute* "Makefile"
6852 ((".adoc.6:" line)
6853 (string-append line " advent.adoc")))
6854 (invoke "make" ".adoc.6")))
6855 ;; There is no install target.
6856 (replace 'install
6857 (lambda* (#:key outputs #:allow-other-keys)
6858 (let* ((out (assoc-ref outputs "out"))
6859 (bin (string-append out "/bin"))
6860 (man (string-append out "/share/man/man6")))
6861 (install-file "advent" bin)
6862 (install-file "advent.6" man))
6863 #t)))))
6864 (native-inputs
6865 `(("asciidoc" ,asciidoc)
6866 ("libedit" ,libedit)
6867 ("pkg-config" ,pkg-config)
6868 ("python" ,python-wrapper)
6869 ("python-pyyaml" ,python-pyyaml)))
6870 (home-page "https://gitlab.com/esr/open-adventure")
6871 (synopsis "Colossal Cave Adventure")
6872 (description
6873 "The original Colossal Cave Adventure from 1976 was the origin of all
6874 text adventures, dungeon-crawl (computer) games, and computer-hosted
6875 roleplaying games. This is a forward port of the last version released by
6876 Crowther & Woods, its original authors, in 1995. It has been known as
6877 ``adventure 2.5'' and ``430-point adventure''.")
6878 (license license:bsd-2)))
6879
6880 (define-public open-adventure-2.5
6881 (package
6882 (inherit open-adventure)
6883 (version "2.5")
6884 (properties `((superseded . ,open-adventure)))))
6885
6886 (define-public tome4
6887 (package
6888 (name "tome4")
6889 (version "1.7.4")
6890 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6891 (source
6892 (origin
6893 (method url-fetch)
6894 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6895 version ".tar.bz2"))
6896 (sha256
6897 (base32 "197jmd99l3w3sig32pvdlq9fcgdjjx7g9csy08kz174cyhrlyly3"))
6898 (modules '((guix build utils)))
6899 (snippet
6900 '(begin
6901 (substitute* '("src/music.h" "src/tSDL.h")
6902 (("#elif defined(__FreeBSD__)" line)
6903 (string-append
6904 line " || defined(__GNUC__)")))
6905 (substitute* '("src/tgl.h")
6906 (("#include <GL/glext.h>") ""))))))
6907 (build-system gnu-build-system)
6908 (native-inputs
6909 `(("unzip" ,unzip)))
6910 (inputs
6911 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6912 ("glu" ,glu)
6913 ("premake4" ,premake4)
6914 ("openal" ,openal)
6915 ("vorbis" ,libvorbis)
6916 ("luajit" ,luajit)))
6917 (arguments
6918 `(#:make-flags
6919 (list (string-append "CC=" ,(cc-for-target))
6920 "config=release")
6921 ;; XXX: Building in parallel occasionally causes this build failure:
6922 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6923 ;; No such file or directory
6924 #:parallel-build? #f
6925 #:phases (modify-phases %standard-phases
6926 (delete 'bootstrap)
6927 (replace 'configure
6928 (lambda _
6929 (invoke "premake4" "gmake")))
6930 (add-after 'set-paths 'set-sdl-paths
6931 (lambda* (#:key inputs #:allow-other-keys)
6932 (setenv "CPATH"
6933 (string-append
6934 (search-input-directory inputs "/include/SDL2")
6935 ":" (or (getenv "CPATH") "")))))
6936 (delete 'check)
6937 ;; premake doesn't provide install target
6938 (replace 'install
6939 (lambda* (#:key inputs outputs #:allow-other-keys)
6940 (let* ((out (assoc-ref outputs "out"))
6941 (usr (string-append out "/usr"))
6942 (bin (string-append out "/bin"))
6943 (licenses (string-append out "/share/licenses"))
6944 (documents (string-append out "/share/doc"))
6945 (pixmaps (string-append out "/share/pixmaps"))
6946 (icon "te4-icon.png")
6947 (data (string-append out "/share/" ,name))
6948 (applications (string-append
6949 out "/share/applications"))
6950 (unzip (string-append
6951 (assoc-ref inputs "unzip") "/bin/unzip"))
6952 (wrapper (string-append bin "/" ,name)))
6953 ;; icon
6954 (mkdir-p pixmaps)
6955 (invoke unzip "-j"
6956 (string-append
6957 "game/engines/te4-" ,version ".teae")
6958 (string-append
6959 "data/gfx/" icon) "-d" pixmaps)
6960 ;; game executable
6961 (install-file "t-engine" data)
6962 (mkdir-p bin)
6963 (with-output-to-file wrapper
6964 (lambda ()
6965 (display
6966 (string-append
6967 "#!/bin/sh\n"
6968 ;; No bootstrap code found,
6969 ;; defaulting to working directory
6970 ;; for engine code!
6971 "cd " data "\n"
6972 "exec -a tome4 ./t-engine \"$@\"\n"))))
6973 (chmod wrapper #o555)
6974 ;; licenses
6975 (for-each (lambda (file)
6976 (install-file file licenses))
6977 '("COPYING" "COPYING-MEDIA"))
6978 ;; documents
6979 (for-each (lambda (file)
6980 (install-file file documents))
6981 '("CONTRIBUTING" "CREDITS"))
6982 ;; data
6983 (copy-recursively "bootstrap" (string-append
6984 data "/bootstrap"))
6985 (copy-recursively "game" (string-append data "/game"))
6986 ;; launcher
6987 (mkdir-p applications)
6988 (make-desktop-entry-file
6989 (string-append applications "/" ,name ".desktop")
6990 #:name "ToME4"
6991 #:comment ,synopsis
6992 #:exec ,name
6993 #:icon icon
6994 #:categories '("Game" "RolePlaying"))))))))
6995 (home-page "https://te4.org")
6996 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6997 combat and advanced character building. Play as one of many unique races and
6998 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6999 challenging battles, and developing characters with your own tailored mix of
7000 abilities and powers. With a modern graphical and customisable interface,
7001 intuitive mouse control, streamlined mechanics and deep, challenging combat,
7002 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
7003 (license license:gpl3+)))
7004
7005 (define-public quakespasm
7006 (package
7007 (name "quakespasm")
7008 (version "0.93.2")
7009 (source
7010 (origin
7011 (method url-fetch)
7012 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
7013 version ".tgz"))
7014 (sha256
7015 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
7016 (arguments
7017 `(#:tests? #f
7018 #:make-flags '("CC=gcc"
7019 "MP3LIB=mpg123"
7020 "USE_CODEC_FLAC=1"
7021 "USE_CODEC_MIKMOD=1"
7022 "USE_SDL2=1"
7023 "-CQuake")
7024 #:phases (modify-phases %standard-phases
7025 (delete 'configure)
7026 (add-after 'unpack 'fix-makefile-paths
7027 (lambda* (#:key outputs #:allow-other-keys)
7028 (let ((out (assoc-ref outputs "out")))
7029 (mkdir-p (string-append out "/bin"))
7030 (substitute* "Quake/Makefile"
7031 (("/usr/local/games")
7032 (string-append out "/bin")))
7033 #t))))))
7034 (build-system gnu-build-system)
7035 (inputs `(("libmikmod" ,libmikmod)
7036 ("libvorbis" ,libvorbis)
7037 ("flac" ,flac)
7038 ("mesa" ,mesa)
7039 ("mpg123" ,mpg123)
7040 ("sdl2" ,sdl2)))
7041 (synopsis "First person shooter engine for Quake 1")
7042 (description "Quakespasm is a modern engine for id software's Quake 1.
7043 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
7044 some graphical niceities, and numerous bug-fixes and other improvements.")
7045 (home-page "http://quakespasm.sourceforge.net/")
7046 (license license:gpl2+)))
7047
7048 (define-public vkquake
7049 (package
7050 (inherit quakespasm)
7051 (name "vkquake")
7052 (version "1.01.0")
7053 (source
7054 (origin
7055 (method git-fetch)
7056 (uri (git-reference
7057 (url "https://github.com/Novum/vkQuake")
7058 (commit version)))
7059 (file-name (git-file-name name version))
7060 (sha256
7061 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
7062 (arguments
7063 `(#:make-flags
7064 (let ((vulkanlib (string-append (assoc-ref %build-inputs
7065 "vulkan-loader") "/lib")))
7066 (list "CC=gcc"
7067 "MP3LIB=mpg123"
7068 "USE_CODEC_FLAC=1"
7069 "USE_CODEC_MIKMOD=1"
7070 "USE_SDL2=1"
7071 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
7072 "-CQuake"))
7073 #:phases (modify-phases %standard-phases
7074 (add-after 'unpack 'patch-for-new-vulkan
7075 (lambda _
7076 ;; Mimic upstream commit a869a22d9b51c68e for
7077 ;; compatibility with newer vulkan-headers.
7078 (substitute* "Quake/gl_rmisc.c"
7079 (("VK_DYNAMIC_STATE_RANGE_SIZE")
7080 "3"))
7081 #t))
7082 (delete 'configure)
7083 (add-after 'unpack 'fix-makefile-paths
7084 (lambda* (#:key outputs #:allow-other-keys)
7085 (let ((vulkan (assoc-ref %build-inputs
7086 "vulkan-loader"))
7087 (out (assoc-ref outputs "out")))
7088 (mkdir-p (string-append out "/bin"))
7089 (substitute* "Quake/Makefile" ((" /usr")
7090 (string-append " " out)))
7091 (substitute* "Quake/Makefile" (("/games")
7092 (string-append "/bin")))
7093 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
7094 #t))))
7095 ,@(strip-keyword-arguments '(#:make-flags #:phases)
7096 (package-arguments quakespasm))))
7097 (inputs `(("vulkan-headers" ,vulkan-headers)
7098 ("vulkan-loader" ,vulkan-loader)
7099 ,@(package-inputs quakespasm)))
7100 (description "vkquake is a modern engine for id software's Quake 1.
7101 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
7102 some graphical niceities, and numerous bug-fixes and other improvements.")
7103 (home-page "https://github.com/Novum/vkQuake")))
7104
7105 (define-public yamagi-quake2
7106 (package
7107 (name "yamagi-quake2")
7108 (version "7.45")
7109 (source
7110 (origin
7111 (method url-fetch)
7112 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
7113 version ".tar.xz"))
7114 (sha256
7115 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
7116 (build-system gnu-build-system)
7117 (arguments
7118 `(#:tests? #f
7119 #:make-flags
7120 (list "CC=gcc"
7121 ;; An optional directory where it will look for quake2 data files
7122 ;; in addition to the current working directory.
7123 "WITH_SYSTEMWIDE=yes"
7124 "WITH_SYSTEMDIR=\"/opt/quake2\"")
7125 #:phases
7126 (modify-phases %standard-phases
7127 (delete 'configure)
7128 (add-before 'build 'patch-libraries
7129 (lambda* (#:key inputs #:allow-other-keys)
7130 ;; The game writes paths to openal.so and curl.so to ~/.yq2/...
7131 ;; Workaround: hard-code the compiled paths where it loads them;
7132 ;; this prevents loading old or garbage collected libraries.
7133 (substitute* "src/client/sound/qal.c"
7134 (("al_driver->string")
7135 (string-append "\"" (assoc-ref inputs "openal")
7136 "/lib/libopenal.so\"")))
7137 (substitute* "src/client/curl/qcurl.c"
7138 (("cl_libcurl->string")
7139 (string-append "\"" (assoc-ref inputs "curl")
7140 "/lib/libcurl.so\"")))))
7141 (replace 'install
7142 (lambda* (#:key outputs #:allow-other-keys)
7143 (let ((out (assoc-ref outputs "out")))
7144 (mkdir-p (string-append out "/lib"))
7145 (mkdir-p (string-append out "/bin"))
7146 ;; The yamagi-quake2 binary must be in the same directory
7147 ;; as its engine libraries, but symlinking it to /bin is okay.
7148 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
7149 (copy-recursively "release"
7150 (string-append out "/lib/yamagi-quake2"))
7151 (symlink (string-append out "/lib/yamagi-quake2/quake2")
7152 (string-append out "/bin/yamagi-quake2"))
7153 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
7154 (string-append out "/bin/yamagi-q2ded"))))))))
7155 (native-inputs
7156 `(("pkg-config" ,pkg-config)))
7157 (inputs
7158 `(("curl" ,curl)
7159 ("libvorbis" ,libvorbis)
7160 ("mesa" ,mesa)
7161 ("openal" ,openal)
7162 ("sdl2" ,sdl2)
7163 ("zlib" ,zlib)))
7164 (synopsis "First person shooter engine based on quake2")
7165 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
7166 The main focus is an unchanged single player experience like back in 1997,
7167 thus the gameplay and the graphics are unaltered. However the user may use one
7168 of the unofficial retexturing packs. In comparison with the official client,
7169 over 1000 bugs were fixed and an extensive code audit done,
7170 making Yamagi Quake II one of the most solid Quake II implementations available.")
7171 (home-page "https://www.yamagi.org/quake2/")
7172 (license (list license:gpl2+ ; game and server
7173 (license:non-copyleft ; info-zip
7174 "file://LICENSE"
7175 "See Info-Zip section.")
7176 license:public-domain)))) ; stb
7177
7178 (define-public nudoku
7179 (package
7180 (name "nudoku")
7181 (version "2.1.0")
7182 (source
7183 (origin
7184 (method git-fetch)
7185 (uri (git-reference
7186 (url "https://github.com/jubalh/nudoku")
7187 (commit version)))
7188 (file-name (git-file-name name version))
7189 (sha256
7190 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
7191 (build-system gnu-build-system)
7192 (native-inputs
7193 `(("autoconf" ,autoconf)
7194 ("automake" ,automake)
7195 ("gettext" ,gettext-minimal)
7196 ("pkg-config" ,pkg-config)))
7197 (inputs
7198 `(("ncurses" ,ncurses)))
7199 (home-page "https://jubalh.github.io/nudoku/")
7200 (synopsis "Sudoku for your terminal")
7201 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
7202 (license license:gpl3+)))
7203
7204 (define-public the-butterfly-effect
7205 (package
7206 (name "the-butterfly-effect")
7207 (version "0.9.3.1")
7208 (source
7209 (origin
7210 (method git-fetch)
7211 (uri (git-reference
7212 (url "https://github.com/the-butterfly-effect/tbe")
7213 (commit (string-append "v" version))))
7214 (file-name (git-file-name name version))
7215 (sha256
7216 (base32
7217 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
7218 (build-system gnu-build-system)
7219 (arguments
7220 `(#:phases
7221 (modify-phases %standard-phases
7222 (delete 'configure)
7223 ;; There is no "install" phase. By default, tbe is installed
7224 ;; in the build directory. Provide our own installation.
7225 (replace 'install
7226 (lambda* (#:key outputs #:allow-other-keys)
7227 (let* ((out (assoc-ref outputs "out"))
7228 (bin (string-append out "/bin"))
7229 (share (string-append out "/share")))
7230 (install-file "usr/games/tbe" bin)
7231 (mkdir-p share)
7232 (copy-recursively "usr/share" share)
7233 #t))))
7234 ;; Test suite requires a running Xorg server. Even when
7235 ;; provided, it fails with "D-Bus library appears to be
7236 ;; incorrectly set up; failed to read machine uuid: Failed to
7237 ;; open "/etc/machine-id": No such file or directory" along
7238 ;; with multiple "QPainter:: ... Painter not active" warnings.
7239 #:tests? #f))
7240 (inputs
7241 `(("qtbase" ,qtbase-5)
7242 ("qtsvg" ,qtsvg)))
7243 (native-inputs
7244 `(("cmake" ,cmake-minimal)
7245 ("gettext-minimal" ,gettext-minimal)
7246 ("qttools" ,qttools)))
7247 (synopsis "Realistic physics puzzle game")
7248 (description "The Butterfly Effect (tbe) is a game that uses
7249 realistic physics simulations to combine lots of simple mechanical
7250 elements to achieve a simple goal in the most complex way possible.")
7251 (home-page "http://the-butterfly-effect.org/")
7252 ;; Main license is GPL2-only. However, artwork is distributed
7253 ;; under various licenses, listed here.
7254 (license (list license:gpl2 license:public-domain license:expat
7255 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7256
7257 (define-public pioneer
7258 (package
7259 (name "pioneer")
7260 (version "20210723")
7261 (source (origin
7262 (method git-fetch)
7263 (uri (git-reference
7264 (url "https://github.com/pioneerspacesim/pioneer")
7265 (commit version)))
7266 (file-name (git-file-name name version))
7267 (sha256
7268 (base32
7269 "1hj99jxb9n3r0bkq87p1c24862xa1xyzjyfdyyx88ckszxb05qf3"))))
7270 (build-system cmake-build-system)
7271 (native-inputs
7272 `(("pkg-config" ,pkg-config)))
7273 (inputs
7274 `(("assimp" ,assimp)
7275 ("curl" ,curl)
7276 ("freetype" ,freetype)
7277 ("glew" ,glew)
7278 ("glu" ,glu)
7279 ("libpng" ,libpng)
7280 ("libsigc++" ,libsigc++)
7281 ("libvorbis" ,libvorbis)
7282 ("lua" ,lua-5.2) ;not compatible with 5.3
7283 ("mesa" ,mesa)
7284 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7285 (arguments
7286 `(#:tests? #f ;tests are broken
7287 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7288 (string-append "-DPIONEER_DATA_DIR="
7289 %output "/share/games/pioneer"))
7290 #:make-flags (list "all" "build-data")))
7291 (home-page "https://pioneerspacesim.net")
7292 (synopsis "Game of lonely space adventure")
7293 (description
7294 "Pioneer is a space adventure game set in our galaxy at the turn of the
7295 31st century. The game is open-ended, and you are free to eke out whatever
7296 kind of space-faring existence you can think of. Look for fame or fortune by
7297 exploring the millions of star systems. Turn to a life of crime as a pirate,
7298 smuggler or bounty hunter. Forge and break alliances with the various
7299 factions fighting for power, freedom or self-determination. The universe is
7300 whatever you make of it.")
7301 (license license:gpl3)))
7302
7303 (define-public badass
7304 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7305 (revision "0"))
7306 (package
7307 (name "badass")
7308 (version (git-version "0.0" revision commit))
7309 (source (origin
7310 (method git-fetch)
7311 (uri (git-reference
7312 (url "https://github.com/umayr/badass")
7313 (commit commit)))
7314 (file-name (git-file-name name version))
7315 (sha256
7316 (base32
7317 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7318 (build-system go-build-system)
7319 (arguments
7320 '(#:import-path "github.com/umayr/badass"))
7321 (synopsis "Hacking contribution graphs in git")
7322 (description
7323 "Badass generates false commits for a range of dates, essentially
7324 hacking the gamification of contribution graphs on platforms such as
7325 Github or Gitlab.")
7326 (home-page "https://github.com/umayr/badass")
7327 (license license:expat))))
7328
7329 (define-public colobot
7330 (package
7331 (name "colobot")
7332 (version "0.2.0-alpha")
7333 (source
7334 (origin
7335 (method git-fetch)
7336 (uri (git-reference
7337 (url "https://github.com/colobot/colobot")
7338 (commit (string-append "colobot-gold-" version))
7339 (recursive? #t))) ;for "data/" subdir
7340 (file-name (git-file-name name version))
7341 (sha256
7342 (base32 "02z21pw47j2afjsikn5b162gacwgiahdrlhmfxhq4xqlzsvz58z6"))))
7343 (build-system cmake-build-system)
7344 (arguments
7345 `(#:tests? #f ;no test
7346 #:phases
7347 (modify-phases %standard-phases
7348 (add-after 'unpack 'make-git-checkout-writable
7349 (lambda _
7350 (for-each make-file-writable (find-files "."))
7351 #t))
7352 (add-after 'unpack 'fix-directories
7353 (lambda _
7354 (substitute* "CMakeLists.txt"
7355 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7356 (string-append prefix "/bin"))
7357 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7358 (string-append prefix "/colobot")))
7359 #t))
7360 (add-after 'fix-directories 'install-music
7361 ;; Retrieve and install music files.
7362 (lambda* (#:key inputs #:allow-other-keys)
7363 ;; Installation process tries to download music files using
7364 ;; "wget" if not already present. Since we are going another
7365 ;; route, skip "wget" command check.
7366 (substitute* "data/music/CMakeLists.txt"
7367 (("find_program\\(WGET wget\\)") ""))
7368 ;; Populate "music/" directory.
7369 (let ((data (assoc-ref inputs "colobot-music")))
7370 (invoke "tar" "-xvf" data "-Cdata/music"))
7371 #t)))))
7372 (native-inputs
7373 `(("colobot-music"
7374 ,(origin
7375 (method url-fetch)
7376 (uri (string-append "https://colobot.info/files/music/"
7377 "colobot-music_ogg_" version ".tar.gz"))
7378 (sha256
7379 (base32
7380 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7381 ("gettext" ,gettext-minimal)
7382 ("librsvg" ,librsvg)
7383 ("po4a" ,po4a)
7384 ("python" ,python-wrapper)))
7385 (inputs
7386 `(("boost" ,boost)
7387 ("glew" ,glew)
7388 ("libogg" ,libogg)
7389 ("libpng" ,libpng)
7390 ("libsndfile" ,libsndfile)
7391 ("libvorbis" ,libvorbis)
7392 ("openal" ,openal)
7393 ("physfs" ,physfs)
7394 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7395 (synopsis "Educational programming strategy game")
7396 (description "Colobot: Gold Edition is a real-time strategy game, where
7397 you can program your units (bots) in a language called CBOT, which is similar
7398 to C++ and Java. Your mission is to find a new planet to live and survive.
7399 You can save humanity and get programming skills!")
7400 (home-page "https://colobot.info")
7401 (license license:gpl3+)))
7402
7403 (define-public gzdoom
7404 (package
7405 (name "gzdoom")
7406 (version "4.3.2")
7407 (source
7408 (origin
7409 (method git-fetch)
7410 (uri (git-reference
7411 (url "https://github.com/coelckers/gzdoom")
7412 (commit (string-append "g" version))))
7413 (file-name (git-file-name name version))
7414 (sha256
7415 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7416 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7417 "gzdoom-find-system-libgme.patch"))
7418 (modules '((guix build utils)))
7419 (snippet
7420 '(begin
7421 ;; Remove some bundled libraries. XXX There are more, but removing
7422 ;; them would require, at least, patching the build system.
7423 (with-directory-excursion "libraries"
7424 (delete-file-recursively "bzip2")
7425 (delete-file-recursively "game-music-emu")
7426 (delete-file-recursively "jpeg")
7427 (delete-file-recursively "zlib"))
7428 #t))))
7429 (arguments
7430 '(#:tests? #f
7431 #:configure-flags
7432 (let ((out (assoc-ref %outputs "out")))
7433 (list
7434 (string-append
7435 "-DCMAKE_CXX_FLAGS:="
7436 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7437 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7438
7439 ;; The build requires some extra convincing not to use the bundled
7440 ;; libgme previously deleted in the soure snippet.
7441 "-DFORCE_INTERNAL_GME=OFF"
7442
7443 ;; Link libraries at build time instead of loading them at run time.
7444 "-DDYN_OPENAL=OFF"
7445 "-DDYN_FLUIDSYNTH=OFF"
7446 "-DDYN_GTK=OFF"
7447 "-DDYN_MPG123=OFF"
7448 "-DDYN_SNDFILE=OFF"))
7449 #:phases
7450 (modify-phases %standard-phases
7451 (add-before 'configure 'fix-referenced-paths
7452 (lambda* (#:key inputs outputs #:allow-other-keys)
7453 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7454 (timidity++ (assoc-ref inputs "timidity++"))
7455 (out (assoc-ref outputs "out")))
7456
7457 (substitute*
7458 "src/CMakeLists.txt"
7459 (("COMMAND /bin/sh")
7460 (string-append "COMMAND " (which "sh"))))
7461
7462 (substitute*
7463 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7464 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7465 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7466
7467 (substitute*
7468 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7469 (("exename = \"timidity\"")
7470 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7471 #t))))))
7472 (build-system cmake-build-system)
7473 (inputs `(("bzip2" ,bzip2)
7474 ("fluid-3" ,fluid-3)
7475 ("fluidsynth" ,fluidsynth)
7476 ("gtk+3" ,gtk+)
7477 ("libgme" ,libgme)
7478 ("libjpeg" ,libjpeg-turbo)
7479 ("libsndfile" ,libsndfile)
7480 ("mesa" ,mesa)
7481 ("mpg123" ,mpg123)
7482 ("openal" ,openal)
7483 ("sdl2" ,sdl2)
7484 ("timidity++" ,timidity++)
7485 ("zlib" ,zlib)))
7486 (native-inputs `(("pkg-config" ,pkg-config)
7487 ("unzip" ,unzip)))
7488 (synopsis "Modern Doom 2 source port")
7489 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7490 renderer. It improves modding support with ZDoom's advanced mapping features
7491 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7492 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7493 (home-page "https://zdoom.org/index")
7494 ;; The source uses x86 assembly
7495 (supported-systems '("x86_64-linux" "i686-linux"))
7496 (license (list license:gpl3+ ; gzdoom game
7497 license:lgpl3+ ; gzdoom renderer
7498 license:expat ; gdtoa
7499 (license:non-copyleft ; modified dumb
7500 "file://dumb/licence.txt"
7501 "Dumb license, explicitly GPL compatible.")))))
7502
7503 (define-public odamex
7504 (package
7505 (name "odamex")
7506 (version "0.9.3")
7507 (source
7508 (origin
7509 (method url-fetch)
7510 (uri (string-append
7511 "mirror://sourceforge/odamex/Odamex/" version "/"
7512 "odamex-src-" version ".tar.bz2"))
7513 (sha256
7514 (base32 "0vmw9ijb6n4wrxjxixakn7l6a6carnvs9wbbzb4vcq1brbzyrb0p"))))
7515 (build-system cmake-build-system)
7516 (arguments `(#:tests? #f)) ; no tests
7517 (native-inputs
7518 `(("deutex" ,deutex)))
7519 (inputs
7520 `(("sdl" ,sdl2)
7521 ("sdl-mixer" ,sdl2-mixer)
7522 ("zlib" ,zlib)
7523 ("libpng" ,libpng)
7524 ("curl" ,curl-minimal)
7525 ("alsa-lib" ,alsa-lib)))
7526 (home-page "https://odamex.net/")
7527 (synopsis "Multiplayer Doom port")
7528 (description "Odamex is a modification of the Doom engine that
7529 allows players to easily join servers dedicated to playing Doom
7530 online.")
7531 (license license:gpl2+)))
7532
7533 (define-public chocolate-doom
7534 (package
7535 (name "chocolate-doom")
7536 (version "3.0.1")
7537 (source (origin
7538 (method url-fetch)
7539 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7540 version
7541 "/chocolate-doom-"
7542 version
7543 ".tar.gz"))
7544 (sha256
7545 (base32
7546 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7547 (build-system gnu-build-system)
7548 (arguments
7549 `(#:configure-flags (list "CFLAGS=-fcommon")))
7550 (inputs `(("sdl2-net" ,sdl2-net)
7551 ("sdl2-mixer" , sdl2-mixer)
7552 ("sdl2" ,sdl2)))
7553 (native-inputs
7554 `(("pkg-config" ,pkg-config)))
7555 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7556 Doom")
7557 (description
7558 "Chocolate Doom takes a different approach to other source ports. Its
7559 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7560 a conservative, historically accurate Doom source port, which is compatible
7561 with the thousands of mods and levels that were made before the Doom source
7562 code was released. Rather than flashy new graphics, Chocolate Doom's main
7563 features are its accurate reproduction of the game as it was played in the
7564 1990s. The project is developed around a carefully-considered philosophy that
7565 intentionally restricts which features may be added (and rejects any that
7566 affect gameplay).")
7567 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7568 (license license:gpl2)))
7569
7570 (define-public crispy-doom
7571 (package
7572 (inherit chocolate-doom)
7573 (name "crispy-doom")
7574 (version "5.8.0")
7575 (source (origin
7576 (method git-fetch)
7577 (uri (git-reference
7578 (url "https://github.com/fabiangreffrath/crispy-doom")
7579 (commit (string-append "crispy-doom-" version))))
7580 (file-name (git-file-name name version))
7581 (sha256
7582 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7583 (native-inputs
7584 (append
7585 (package-native-inputs chocolate-doom)
7586 `(("automake" ,automake)
7587 ("autoreconf" ,autoconf))))
7588 (arguments
7589 `(#:configure-flags '("CFLAGS=-fcommon")
7590 #:phases
7591 (modify-phases %standard-phases
7592 (replace 'bootstrap
7593 ;; The bundled autogen.sh script unconditionally runs ./configure.
7594 (lambda _ (invoke "autoreconf" "-vif"))))))
7595 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7596 Chocolate Doom")
7597 (description
7598 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7599 display resolution, removes the static limits of the Doom engine and offers
7600 further optional visual, tactical and physical enhancements while remaining
7601 entirely config file, savegame, netplay and demo compatible with the
7602 original.")
7603 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7604
7605 (define shlomif-cmake-modules
7606 (origin
7607 (method url-fetch)
7608 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7609 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7610 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7611 (sha256
7612 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7613
7614 (define-public rinutils
7615 (package
7616 (name "rinutils")
7617 (version "0.2.0")
7618 (source (origin
7619 (method git-fetch)
7620 (uri (git-reference
7621 (url "https://github.com/shlomif/rinutils")
7622 (commit version)))
7623 (file-name (git-file-name name version))
7624 (sha256
7625 (base32
7626 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7627 (native-inputs
7628 `(("perl" ,perl)
7629 ;; The following is only needed for tests.
7630 ("perl-file-find-object" ,perl-file-find-object)
7631 ("perl-test-differences" ,perl-test-differences)
7632 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7633 ("perl-io-all" ,perl-io-all)
7634 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7635 ("cmake-rules" ,shlomif-cmake-modules)
7636 ("pkg-config" ,pkg-config)))
7637 (inputs
7638 `(("cmocka" ,cmocka)
7639 ("perl-env-path" ,perl-env-path)
7640 ("perl-inline" ,perl-inline)
7641 ("perl-inline-c" ,perl-inline-c)
7642 ("perl-string-shellquote" ,perl-string-shellquote)
7643 ("perl-test-trailingspace" ,perl-test-trailingspace)
7644 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7645 ("perl-text-glob" ,perl-text-glob)
7646 ("perl-number-compare" ,perl-number-compare)
7647 ("perl-moo" ,perl-moo)))
7648 (arguments
7649 `(#:phases
7650 (modify-phases %standard-phases
7651 (add-after 'unpack 'fix-build-env
7652 (lambda* (#:key inputs #:allow-other-keys)
7653 (use-modules (guix build utils))
7654 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7655 (copy-file cmake-rules
7656 (string-append "cmake/"
7657 (strip-store-file-name cmake-rules)))
7658 #t)))
7659 (replace 'check
7660 (lambda _
7661 (with-directory-excursion "../source"
7662 (setenv "FCS_TEST_BUILD" "1")
7663 (setenv "RINUTILS_TEST_BUILD" "1")
7664 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7665 ;; which requires tidy-all.
7666 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7667 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7668 (build-system cmake-build-system)
7669 (home-page "https://www.shlomifish.org/open-source/projects/")
7670 (synopsis "C11 / gnu11 utilities C library")
7671 (description "This package provides C11 / gnu11 utilities C library")
7672 (license license:expat)))
7673
7674 (define-public fortune-mod
7675 (package
7676 (name "fortune-mod")
7677 (version "2.28.0")
7678 (source
7679 (origin
7680 (method git-fetch)
7681 (uri (git-reference
7682 (url "https://github.com/shlomif/fortune-mod")
7683 (commit (string-append "fortune-mod-" version))))
7684 (file-name (git-file-name name version))
7685 (sha256
7686 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7687 (build-system cmake-build-system)
7688 (arguments
7689 `(#:test-target "check"
7690 #:phases
7691 (modify-phases %standard-phases
7692 (add-after 'unpack 'fix-build-env
7693 (lambda* (#:key inputs #:allow-other-keys)
7694 (use-modules (guix build utils))
7695 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7696 (copy-file cmake-rules
7697 (string-append "fortune-mod/cmake/"
7698 (strip-store-file-name cmake-rules)))
7699 (chdir "fortune-mod")
7700 ;; TODO: Valgrind tests fail for some reason.
7701 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7702 (delete-file "tests/t/valgrind.t")
7703 #t)))
7704 (add-after 'install 'fix-install-directory
7705 (lambda* (#:key outputs #:allow-other-keys)
7706 ;; Move binary from "games/" to "bin/" and remove the latter. This
7707 ;; is easier than patching CMakeLists.txt since the tests hard-code
7708 ;; the location as well.
7709 (let* ((out (assoc-ref outputs "out"))
7710 (bin (string-append out "/bin"))
7711 (games (string-append out "/games")))
7712 (rename-file (string-append games "/fortune")
7713 (string-append bin "/fortune"))
7714 (rmdir games)
7715 #t))))))
7716 (inputs `(("recode" ,recode)))
7717 (native-inputs
7718 `(("perl" ,perl)
7719 ;; The following is only needed for tests.
7720 ("perl-file-find-object" ,perl-file-find-object)
7721 ("perl-test-differences" ,perl-test-differences)
7722 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7723 ("perl-io-all" ,perl-io-all)
7724 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7725 ("cmake-rules" ,shlomif-cmake-modules)
7726 ("rinutils" ,rinutils)))
7727 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7728 (synopsis "The Fortune Cookie program from BSD games")
7729 (description "Fortune is a command-line utility which displays a random
7730 quotation from a collection of quotes.")
7731 (license license:bsd-4)))
7732
7733 (define xonotic-data
7734 (package
7735 (name "xonotic-data")
7736 (version "0.8.2")
7737 (source
7738 (origin
7739 (method url-fetch)
7740 (uri (string-append "http://dl.xonotic.org/xonotic-"
7741 version ".zip"))
7742 (file-name (string-append name "-" version ".zip"))
7743 (sha256
7744 (base32
7745 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7746 (build-system trivial-build-system)
7747 (native-inputs
7748 `(("unzip" ,unzip)))
7749 (arguments
7750 `(#:modules ((guix build utils))
7751 #:builder
7752 (begin
7753 (use-modules (guix build utils))
7754 (let* ((out (assoc-ref %outputs "out"))
7755 (xonotic (string-append out "/share/xonotic"))
7756 (source (assoc-ref %build-inputs "source"))
7757 (unzip (search-input-file %build-inputs "/bin/unzip")))
7758 (copy-file source (string-append ,name "-" ,version ".zip"))
7759 (invoke unzip (string-append ,name "-" ,version ".zip"))
7760 (mkdir-p out)
7761 (mkdir-p xonotic)
7762 (chdir "Xonotic")
7763 (copy-recursively "data"
7764 (string-append xonotic "/data"))
7765 (copy-recursively "server"
7766 (string-append xonotic "/server"))
7767 (install-file "key_0.d0pk" xonotic)))))
7768 (home-page "http://xonotic.org")
7769 (synopsis "Data files for Xonotic")
7770 (description
7771 "Xonotic-data provides the data files required by the game Xonotic.")
7772 (license (list license:gpl2+
7773 (license:x11-style "file://server/rcon.pl")))))
7774
7775 (define-public xonotic
7776 (package
7777 (name "xonotic")
7778 (version "0.8.2")
7779 (source
7780 (origin
7781 (method url-fetch)
7782 (uri (string-append "http://dl.xonotic.org/xonotic-"
7783 version "-source.zip"))
7784 (file-name (string-append name "-" version ".zip"))
7785 (sha256
7786 (base32
7787 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7788 (build-system gnu-build-system)
7789 (arguments
7790 `(#:configure-flags (list (string-append "--prefix="
7791 (assoc-ref %outputs "out"))
7792 "--disable-rijndael")
7793 #:phases
7794 (modify-phases %standard-phases
7795 (add-before 'configure 'make-darkplaces
7796 (lambda* (#:key outputs #:allow-other-keys)
7797 (let* ((out (assoc-ref outputs "out"))
7798 (sharedir (string-append out "/share/xonotic/")))
7799 (invoke "make" "-C" "source/darkplaces"
7800 (string-append "DP_FS_BASEDIR="
7801 sharedir)
7802 "DP_LINK_TO_LIBJPEG=1"
7803 "DP_SOUND_API=ALSA"
7804 "CC=gcc"
7805 "-f" "makefile"
7806 "cl-release")
7807 (invoke "make" "-C" "source/darkplaces"
7808 (string-append "DP_FS_BASEDIR="
7809 sharedir)
7810 "DP_LINK_TO_LIBJPEG=1"
7811 "DP_SOUND_API=ALSA"
7812 "CC=gcc"
7813 "-f" "makefile"
7814 "sdl-release")
7815 (invoke "make" "-C" "source/darkplaces"
7816 (string-append "DP_FS_BASEDIR="
7817 sharedir)
7818 "DP_LINK_TO_LIBJPEG=1"
7819 "DP_SOUND_API=ALSA"
7820 "CC=gcc"
7821 "-f" "makefile"
7822 "sv-release"))))
7823 (add-before 'configure 'bootstrap
7824 (lambda _
7825 (chdir "source/d0_blind_id")
7826 (invoke "sh" "autogen.sh")))
7827 (add-after 'build 'install-desktop-entry
7828 (lambda* (#:key outputs #:allow-other-keys)
7829 ;; Add .desktop files for the 2 variants and the symlink
7830 (let* ((output (assoc-ref outputs "out"))
7831 (apps (string-append output "/share/applications")))
7832 (mkdir-p apps)
7833 (with-output-to-file
7834 (string-append apps "/xonotic-glx.desktop")
7835 (lambda _
7836 (format #t
7837 "[Desktop Entry]~@
7838 Name=xonotic-glx~@
7839 Comment=Xonotic glx~@
7840 Exec=~a/bin/xonotic-glx~@
7841 TryExec=~@*~a/bin/xonotic-glx~@
7842 Icon=xonotic~@
7843 Categories=Game~@
7844 Type=Application~%"
7845 output)))
7846 (with-output-to-file
7847 (string-append apps "/xonotic-sdl.desktop")
7848 (lambda _
7849 (format #t
7850 "[Desktop Entry]~@
7851 Name=xonotic-sdl~@
7852 Comment=Xonotic sdl~@
7853 Exec=~a/bin/xonotic-sdl~@
7854 TryExec=~@*~a/bin/xonotic-sdl~@
7855 Icon=xonotic~@
7856 Categories=Game~@
7857 Type=Application~%"
7858 output)))
7859 (with-output-to-file
7860 (string-append apps "/xonotic.desktop")
7861 (lambda _
7862 (format #t
7863 "[Desktop Entry]~@
7864 Name=xonotic~@
7865 Comment=Xonotic~@
7866 Exec=~a/bin/xonotic-glx~@
7867 TryExec=~@*~a/bin/xonotic~@
7868 Icon=xonotic~@
7869 Categories=Game~@
7870 Type=Application~%"
7871 output)))
7872 #t)))
7873 (add-after 'install-desktop-entry 'install-icons
7874 (lambda* (#:key outputs #:allow-other-keys)
7875 (let ((out (assoc-ref outputs "out")))
7876 (with-directory-excursion "../../misc/logos/icons_png/"
7877 (for-each
7878 (lambda (file)
7879 (let* ((size (string-filter char-numeric? file))
7880 (icons (string-append out "/share/icons/hicolor/"
7881 size "x" size "/apps")))
7882 (mkdir-p icons)
7883 (copy-file file (string-append icons "/xonotic.png"))))
7884 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7885 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7886 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7887 (add-after 'install-icons 'install-binaries
7888 (lambda* (#:key outputs #:allow-other-keys)
7889 (let ((out (assoc-ref outputs "out")))
7890 (define (install src dst)
7891 (let ((dst (string-append out dst)))
7892 (mkdir-p (dirname dst))
7893 (copy-file src dst)))
7894 (mkdir-p (string-append out "/bin"))
7895 (install "../darkplaces/darkplaces-dedicated"
7896 "/bin/xonotic-dedicated")
7897 (install "../darkplaces/darkplaces-glx"
7898 "/bin/xonotic-glx")
7899 (install "../darkplaces/darkplaces-sdl"
7900 "/bin/xonotic-sdl")
7901 ;; Provide a default xonotic executable, defaulting to SDL.
7902 (symlink (string-append out "/bin/xonotic-sdl")
7903 (string-append out "/bin/xonotic"))
7904 #t)))
7905 (add-after 'install-binaries 'install-data
7906 (lambda* (#:key outputs inputs #:allow-other-keys)
7907 (let* ((out (assoc-ref outputs "out"))
7908 (data (assoc-ref inputs "xonotic-data")))
7909 (symlink (string-append data "/share/xonotic")
7910 (string-append out "/share/xonotic"))
7911 #t)))
7912 (add-after 'install-binaries 'wrap-binaries
7913 (lambda* (#:key outputs inputs #:allow-other-keys)
7914 ;; Curl and libvorbis need to be wrapped so that we get
7915 ;; sound and networking.
7916 (let* ((out (assoc-ref outputs "out"))
7917 (bin (string-append out "/bin/xonotic"))
7918 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7919 (bin-glx (string-append out "/bin/xonotic-glx"))
7920 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7921 (curl (assoc-ref inputs "curl"))
7922 (vorbis (assoc-ref inputs "libvorbis")))
7923 (wrap-program bin
7924 `("LD_LIBRARY_PATH" ":" prefix
7925 (,(string-append curl "/lib:" vorbis "/lib"))))
7926 (wrap-program bin-sdl
7927 `("LD_LIBRARY_PATH" ":" prefix
7928 (,(string-append curl "/lib:" vorbis "/lib"))))
7929 (wrap-program bin-glx
7930 `("LD_LIBRARY_PATH" ":" prefix
7931 (,(string-append curl "/lib:" vorbis "/lib"))))
7932 (wrap-program bin-dedicated
7933 `("LD_LIBRARY_PATH" ":" prefix
7934 (,(string-append curl "/lib:" vorbis "/lib"))))
7935 #t))))))
7936 (inputs
7937 `(("xonotic-data" ,xonotic-data)
7938 ("alsa-lib" ,alsa-lib)
7939 ("curl" ,curl)
7940 ("libjpeg" ,libjpeg-turbo)
7941 ("libmodplug" ,libmodplug)
7942 ("libvorbis" ,libvorbis)
7943 ("libogg" ,libogg)
7944 ("libxpm" ,libxpm)
7945 ("libxxf86dga" ,libxxf86dga)
7946 ("libxxf86vm" ,libxxf86vm)
7947 ("libx11" ,libx11)
7948 ("libxext" ,libxext)
7949 ("libxau" ,libxau)
7950 ("libxdmcp" ,libxdmcp)
7951 ("mesa" ,mesa)
7952 ("glu" ,glu)
7953 ("freetype" ,freetype)
7954 ("sdl2" ,sdl2)
7955 ("libpng" ,libpng)
7956 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7957 (native-inputs
7958 `(("unzip" ,unzip)
7959 ("autoconf" ,autoconf)
7960 ("automake" ,automake)
7961 ("pkg-config" ,pkg-config)
7962 ("libtool" ,libtool)
7963 ("gmp" ,gmp)))
7964 (home-page "https://xonotic.org")
7965 (synopsis "Fast-paced first-person shooter game")
7966 (description
7967 "Xonotic is a free, fast-paced first-person shooter.
7968 The project is geared towards providing addictive arena shooter
7969 gameplay which is all spawned and driven by the community itself.
7970 Xonotic is a direct successor of the Nexuiz project with years of
7971 development between them, and it aims to become the best possible
7972 open-source FPS of its kind.")
7973 (license (list license:gpl2+
7974 license:bsd-3 ; /source/d0_blind_id folder and others
7975 (license:x11-style "" "See file rcon.pl.")))))
7976
7977 (define-public frotz
7978 (package
7979 (name "frotz")
7980 (version "2.44")
7981 (source (origin
7982 (method url-fetch)
7983 (uri (list (string-append
7984 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7985 "frotz/frotz-" version ".tar.gz")
7986 (string-append
7987 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7988 "frotz/frotz-" version ".tar.gz")))
7989 (sha256
7990 (base32
7991 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7992 (build-system gnu-build-system)
7993 (arguments
7994 `(#:tests? #f ; there are no tests
7995 #:phases
7996 (modify-phases %standard-phases
7997 (delete 'configure)
7998 (add-before 'build 'curses
7999 (lambda _
8000 (substitute* "Makefile"
8001 (("lcurses") "lncurses"))
8002 #t))
8003 (replace 'install
8004 (lambda* (#:key outputs #:allow-other-keys)
8005 (let* ((out (assoc-ref outputs "out"))
8006 (bin (string-append out "/bin"))
8007 (man (string-append out "/share/man/man6")))
8008 (install-file "frotz" bin)
8009 (mkdir-p man)
8010 (install-file "doc/frotz.6" man)
8011 #t))))))
8012 (inputs `(("libmodplug" ,libmodplug)
8013 ("libsamplerate" ,libsamplerate)
8014 ("libsndfile" ,libsndfile)
8015 ("libvorbis" ,libvorbis)
8016 ("ncurses" ,ncurses)))
8017 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
8018 (description "Frotz is an interpreter for Infocom games and other Z-machine
8019 games in the text adventure/interactive fiction genre. This version of Frotz
8020 complies with standard 1.0 of Graham Nelson's specification. It plays all
8021 Z-code games V1-V8, including V6, with sound support through libao, and uses
8022 ncurses for text display.")
8023 (home-page "http://frotz.sourceforge.net")
8024 (license license:gpl2+)))
8025
8026 (define-public frotz-dumb-terminal
8027 (package
8028 (name "frotz-dumb-terminal")
8029 (version "2.44")
8030 (source (origin
8031 (method url-fetch)
8032 (uri (list (string-append
8033 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
8034 "frotz/frotz-" version ".tar.gz")
8035 (string-append
8036 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
8037 "frotz/frotz-" version ".tar.gz")))
8038 (sha256
8039 (base32
8040 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
8041 (build-system gnu-build-system)
8042 (arguments
8043 `(#:tests? #f ; there are no tests
8044 #:phases
8045 (modify-phases %standard-phases
8046 (delete 'configure)
8047 (replace 'build
8048 (lambda _
8049 (invoke "make" "dumb")))
8050 (replace 'install
8051 (lambda* (#:key outputs #:allow-other-keys)
8052 (let* ((out (assoc-ref outputs "out"))
8053 (bin (string-append out "/bin"))
8054 (man (string-append out "/share/man/man6")))
8055 (install-file "dfrotz" bin)
8056 (mkdir-p man)
8057 (install-file "doc/dfrotz.6" man)
8058 #t))))))
8059 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
8060 (description "Frotz is an interpreter for Infocom games and
8061 other Z-machine games in the text adventure/interactive fiction genre.
8062 dfrotz is the dumb interface version. You get no screen control; everything
8063 is just printed to the terminal line by line. The terminal handles all the
8064 scrolling. Maybe you'd like to experience what it's like to play Adventure on
8065 a teletype. A much cooler use for compiling Frotz with the dumb interface is
8066 that it can be wrapped in CGI scripting, PHP, and the like to allow people
8067 to play games on webpages. It can also be made into a chat bot.")
8068 (home-page "http://frotz.sourceforge.net")
8069 (license license:gpl2+)))
8070
8071 (define-public frotz-sdl
8072 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
8073 (package
8074 (name "frotz-sdl")
8075 (version "2.45pre")
8076 (source (origin
8077 (method git-fetch)
8078 (uri (git-reference
8079 (url "https://gitlab.com/DavidGriffith/frotz")
8080 (commit commit)))
8081 (sha256
8082 (base32
8083 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
8084 (file-name (git-file-name name version))))
8085 (build-system gnu-build-system)
8086 (arguments
8087 `(#:tests? #f ; there are no tests
8088 #:phases
8089 (modify-phases %standard-phases
8090 (delete 'configure)
8091 (add-before 'build 'patch-makefile
8092 (lambda _
8093 (substitute* "Makefile"
8094 (("lcurses") "lncurses")
8095 (("^BUILD_DATE_TIME =.*$")
8096 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
8097 #t))
8098 (replace 'build
8099 (lambda _
8100 (invoke "make" "sdl")))
8101 (replace 'install
8102 (lambda* (#:key outputs #:allow-other-keys)
8103 (let* ((out (assoc-ref outputs "out"))
8104 (bin (string-append out "/bin"))
8105 (man (string-append out "/share/man/man6")))
8106 (install-file "sfrotz" bin)
8107 (mkdir-p man)
8108 (install-file "doc/sfrotz.6" man)
8109 #t))))))
8110 (native-inputs
8111 `(("pkg-config" ,pkg-config)
8112 ("which" ,which)
8113 ("perl" ,perl)))
8114 (inputs `(("sdl2" ,sdl2)
8115 ("sdl2-mixer" ,sdl2-mixer)
8116 ("libmodplug" ,libmodplug)
8117 ("libsamplerate" ,libsamplerate)
8118 ("libsndfile" ,libsndfile)
8119 ("libvorbis" ,libvorbis)
8120 ("ncurses" ,ncurses)
8121 ("freetype" ,freetype)
8122 ("libjpeg-turbo" ,libjpeg-turbo)))
8123 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
8124 (description "Frotz is an interpreter for Infocom games and other Z-machine
8125 games in the text adventure/interactive fiction genre. This version of Frotz
8126 using SDL fully supports all these versions of the Z-Machine including the
8127 graphical version 6. Graphics and sound are created through the use of the SDL
8128 libraries. AIFF sound effects and music in MOD and OGG formats are supported
8129 when packaged in Blorb container files or optionally from individual files.")
8130 (home-page "http://frotz.sourceforge.net")
8131 (license license:gpl2+))))
8132
8133 (define-public frozen-bubble
8134 ;; Last official release is very outdated (2010). Use latest commit (2017).
8135 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
8136 (revision "1"))
8137 (package
8138 (name "frozen-bubble")
8139 (version (git-version "2.2.1" revision commit))
8140 (source
8141 (origin
8142 (method git-fetch)
8143 (uri (git-reference
8144 (url "https://github.com/kthakore/frozen-bubble")
8145 (commit commit)))
8146 (file-name (git-file-name name version))
8147 (sha256
8148 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
8149 (build-system perl-build-system)
8150 (arguments
8151 `(#:phases
8152 (modify-phases %standard-phases
8153 ;; Build process needs to create files in the "server"
8154 ;; directory.
8155 (add-after 'unpack 'fix-permissions
8156 (lambda _
8157 (for-each make-file-writable
8158 (find-files "server" "." #:directories? #t))))
8159 ;; By default, build stops at warnings.
8160 (add-after 'unpack 'prevent-build-error
8161 (lambda _
8162 (substitute* "inc/My/Builder.pm"
8163 (("-Werror") ""))
8164 #t))
8165 (add-after 'install 'install-desktop-file-and-icons
8166 (lambda* (#:key outputs #:allow-other-keys)
8167 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
8168 (hicolor (string-append share "/icons/hicolor")))
8169 ;; Create desktop entry.
8170 (make-desktop-entry-file
8171 (string-append share "/applications/" ,name ".desktop")
8172 #:name "Frozen Bubble"
8173 #:comment "Frozen Bubble arcade game"
8174 #:exec ,name
8175 #:icon ,name
8176 #:categories '("Game" "ArcadeGame"))
8177 ;; Add icons.
8178 (with-directory-excursion "share/icons"
8179 (for-each
8180 (lambda (size)
8181 (let* ((dim (string-append size "x" size))
8182 (dir (string-append hicolor "/" dim "/apps")))
8183 (mkdir-p dir)
8184 (copy-file
8185 (string-append "frozen-bubble-icon-" dim ".png")
8186 (string-append dir "/frozen-bubble.png"))))
8187 '("16" "32" "48" "64"))))
8188 #t))
8189 (add-after 'install 'wrap-perl-libs
8190 (lambda* (#:key outputs #:allow-other-keys)
8191 (let ((out (assoc-ref outputs "out"))
8192 (perl5lib (getenv "PERL5LIB")))
8193 (for-each (lambda (prog)
8194 (wrap-program (string-append out "/" prog)
8195 `("PERL5LIB" ":" prefix
8196 (,(string-append perl5lib ":" out
8197 "/lib/perl5/site_perl")))))
8198 (find-files "bin" ".")))
8199 #t)))))
8200 (native-inputs
8201 `(("perl-alien-sdl" ,perl-alien-sdl)
8202 ("perl-capture-tiny" ,perl-capture-tiny)
8203 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
8204 ("perl-module-build" ,perl-module-build)
8205 ("pkg-config" ,pkg-config)))
8206 (inputs
8207 `(("glib" ,glib)
8208 ("perl-compress-bzip2" ,perl-compress-bzip2)
8209 ("perl-file-sharedir" ,perl-file-sharedir)
8210 ("perl-file-slurp" ,perl-file-slurp)
8211 ("perl-file-which" ,perl-file-which)
8212 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
8213 ("perl-sdl" ,perl-sdl)
8214 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
8215 (home-page "http://frozen-bubble.org/")
8216 (synopsis "Puzzle with bubbles")
8217 (description
8218 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
8219 you attempt to shoot bubbles into groups of the same color to cause them to
8220 pop.
8221
8222 Players compete as penguins and must use the arrow keys to aim a colored
8223 bubble at groups of bubbles. The objective is to clear all the bubbles off
8224 the screen before a bubble passes below a line at the bottom.
8225
8226 It features 100 single-player levels, a two-player mode, music and striking
8227 graphics. A level editor is also included to allow players to create and play
8228 their own levels.")
8229 (license license:gpl2))))
8230
8231 (define-public libmanette
8232 (package
8233 (name "libmanette")
8234 (version "0.2.6")
8235 (source (origin
8236 (method url-fetch)
8237 (uri (string-append "mirror://gnome/sources/libmanette/"
8238 (version-major+minor version) "/"
8239 "libmanette-" version ".tar.xz"))
8240 (sha256
8241 (base32
8242 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
8243 (build-system meson-build-system)
8244 (native-inputs
8245 `(("glib" ,glib "bin") ; for glib-compile-resources
8246 ("gobject-introspection" ,gobject-introspection)
8247 ("pkg-config" ,pkg-config)
8248 ("vala" ,vala)))
8249 (inputs
8250 `(("libevdev" ,libevdev)
8251 ("libgudev" ,libgudev)))
8252 (home-page "https://wiki.gnome.org/Apps/Games")
8253 (synopsis "Game controller library")
8254 (description "Libmanette is a small GObject library giving you simple
8255 access to game controllers. It supports the de-facto standard gamepads as
8256 defined by the W3C standard Gamepad specification or as implemented by the SDL
8257 GameController.")
8258 (license license:lgpl2.1+)))
8259
8260 (define-public quadrapassel
8261 (package
8262 (name "quadrapassel")
8263 (version "3.36.05")
8264 (source (origin
8265 (method url-fetch)
8266 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8267 (version-major+minor version) "/"
8268 "quadrapassel-" version ".tar.xz"))
8269 (sha256
8270 (base32
8271 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8272 (build-system meson-build-system)
8273 (arguments
8274 '(#:glib-or-gtk? #t
8275 #:phases
8276 (modify-phases %standard-phases
8277 (add-after 'unpack 'skip-gtk-update-icon-cache
8278 ;; Don't create 'icon-theme.cache'.
8279 (lambda _
8280 (substitute* "build-aux/meson_post_install.py"
8281 (("gtk-update-icon-cache") (which "true")))
8282 #t)))))
8283 (native-inputs
8284 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8285 ("gettext" ,gettext-minimal)
8286 ("glib" ,glib "bin") ;for glib-compile-resources
8287 ("itstool" ,itstool)
8288 ("libxml2" ,libxml2) ;for xmllint
8289 ("pkg-config" ,pkg-config)
8290 ("vala" ,vala)))
8291 (inputs
8292 `(("clutter" ,clutter)
8293 ("clutter-gtk" ,clutter-gtk)
8294 ("gsound" ,gsound)
8295 ("gtk+" ,gtk+)
8296 ("libcanberra" ,libcanberra)
8297 ("libmanette" ,libmanette)
8298 ("librsvg" ,librsvg)))
8299 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8300 (synopsis "GNOME version of Tetris")
8301 (description "Quadrapassel comes from the classic falling-block game,
8302 Tetris. The goal of the game is to create complete horizontal lines of
8303 blocks, which will disappear. The blocks come in seven different shapes made
8304 from four blocks each: one straight, two L-shaped, one square, and two
8305 S-shaped. The blocks fall from the top center of the screen in a random
8306 order. You rotate the blocks and move them across the screen to drop them in
8307 complete lines. You score by dropping blocks fast and completing lines. As
8308 your score gets higher, you level up and the blocks fall faster.")
8309 (license license:gpl2+)))
8310
8311 (define-public endless-sky
8312 (package
8313 (name "endless-sky")
8314 (version "0.9.14")
8315 (source
8316 (origin
8317 (method git-fetch)
8318 (uri (git-reference
8319 (url "https://github.com/endless-sky/endless-sky")
8320 (commit (string-append "v" version))))
8321 (file-name (git-file-name name version))
8322 (sha256
8323 (base32 "12iganf8dxiyrjznnabsarxjsr0h717j3k4mz15p0k67wxyahhmf"))))
8324 (build-system scons-build-system)
8325 (arguments
8326 `(#:scons ,scons-python2
8327 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8328 #:phases
8329 (modify-phases %standard-phases
8330 (add-after 'unpack 'fix-paths
8331 (lambda* (#:key outputs #:allow-other-keys)
8332 ;; Look for resources in the store directory.
8333 (substitute* "source/Files.cpp"
8334 (("/usr/local") (assoc-ref outputs "out")))
8335 ;; Install game binary into %out/bin.
8336 (substitute* "SConstruct"
8337 (("games\"") "bin\""))))
8338 (add-before 'build 'use-gcc-ar
8339 ;; Use gcc-ar to support LTO.
8340 (lambda _ (setenv "AR" "gcc-ar"))))))
8341 (inputs
8342 `(("glew" ,glew)
8343 ("libjpeg" ,libjpeg-turbo)
8344 ("libmad" ,libmad)
8345 ("libpng" ,libpng)
8346 ("openal" ,openal)
8347 ("sdl2" ,sdl2)))
8348 (home-page "https://endless-sky.github.io/")
8349 (synopsis "2D space trading and combat game")
8350 (description "Endless Sky is a 2D space trading and combat game. Explore
8351 other star systems. Earn money by trading, carrying passengers, or completing
8352 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8353 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8354 leave human space behind and hope to find friendly aliens whose culture is more
8355 civilized than your own.")
8356 (license (list license:gpl3+
8357 license:cc-by-sa3.0
8358 license:cc-by-sa4.0
8359 license:public-domain))))
8360
8361 (define-public stepmania
8362 (package
8363 (name "stepmania")
8364 (version "5.1.0-b2")
8365 (source
8366 (origin
8367 (method git-fetch)
8368 (uri (git-reference
8369 (url "https://github.com/stepmania/stepmania")
8370 (commit (string-append "v" version))))
8371 (file-name (git-file-name name version))
8372 (sha256
8373 (base32
8374 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8375 (modules '((guix build utils)))
8376 (snippet
8377 '(begin
8378 ;; Remove song files, which are licensed under a non-commercial
8379 ;; clause, and a course pointing to them.
8380 (for-each delete-file-recursively
8381 '("Songs/StepMania 5/Goin' Under"
8382 "Songs/StepMania 5/MechaTribe Assault"
8383 "Songs/StepMania 5/Springtime"))
8384 (for-each delete-file '("Courses/Default/Jupiter.crs"
8385 "Courses/Default/Jupiter.png"))
8386 ;; Unbundle libpng.
8387 (substitute* "extern/CMakeLists.txt"
8388 (("include\\(CMakeProject-png.cmake\\)") ""))
8389 (delete-file-recursively "extern/libpng")
8390 #t))))
8391 (build-system cmake-build-system)
8392 (arguments
8393 `(#:tests? #f ;FIXME: couldn't find how to run tests
8394 #:build-type "Release"
8395 #:out-of-source? #f ;for the 'install-desktop' phase
8396 #:configure-flags
8397 (list "-DWITH_SYSTEM_FFMPEG=1"
8398 ;; SSE instructions are available on Intel systems only.
8399 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8400 (%current-system)))
8401 '("x86_64" "i686"))
8402 '()
8403 '("-DWITH_SSE2=NO"))
8404 ;; Configuration cannot find GTK2 without the two following
8405 ;; flags.
8406 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8407 (assoc-ref %build-inputs "gtk+")
8408 "/lib/gtk-2.0/include")
8409 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8410 (assoc-ref %build-inputs "glib")
8411 "/lib/glib-2.0/include"))
8412 #:phases
8413 (modify-phases %standard-phases
8414 (add-after 'unpack 'ensure-application-files-can-be-found
8415 (lambda* (#:key outputs #:allow-other-keys)
8416 (let ((out (assoc-ref outputs "out")))
8417 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8418 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8419 (string-append "\"" out
8420 "/share/stepmania/GtkModule.so\"")))
8421 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8422 (("Root = sDirOfExecutable")
8423 (string-append "Root = \"" out "/share/stepmania/\""))
8424 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8425 (string-append "\"" out "/share/stepmania/" dir "\"")))
8426 (substitute* "src/RageFileManager.cpp"
8427 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8428 (string-append "\"" out "/share/stepmania/\""))))
8429 #t))
8430 (add-after 'unpack 'fix-install-subdir
8431 ;; Installation would be done in "%out/stepmania-X.Y", but we
8432 ;; prefer the more common layout "%out/share/stepmania".
8433 (lambda _
8434 (substitute* "src/CMakeLists.txt"
8435 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8436 #t))
8437 (add-after 'unpack 'unbundle-libpng
8438 (lambda* (#:key inputs #:allow-other-keys)
8439 (substitute* "src/CMakeLists.txt"
8440 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8441 (string-append (assoc-ref inputs "libpng") "/include")))
8442 #t))
8443 (add-after 'install 'install-executable
8444 (lambda* (#:key outputs #:allow-other-keys)
8445 (let* ((out (assoc-ref outputs "out"))
8446 (bin (string-append out "/bin"))
8447 (exe (string-append out "/share/stepmania/stepmania")))
8448 (mkdir-p bin)
8449 (symlink exe (string-append bin "/stepmania"))
8450 #t)))
8451 (add-after 'install-executable 'install-desktop
8452 (lambda* (#:key outputs #:allow-other-keys)
8453 (let* ((out (assoc-ref outputs "out"))
8454 (share (string-append out "/share"))
8455 (applications (string-append share "/applications"))
8456 (icons (string-append share "/icons")))
8457 (install-file "stepmania.desktop" applications)
8458 (mkdir-p icons)
8459 (copy-recursively "icons" icons)
8460 #t)))
8461 ;; Move documentation in a more usual place, i.e.,
8462 ;; "%out/share/doc/stepmania/".
8463 (add-after 'install-desktop 'install-doc
8464 (lambda* (#:key outputs #:allow-other-keys)
8465 (let* ((out (assoc-ref outputs "out"))
8466 (share (string-append out "/share")))
8467 (with-directory-excursion share
8468 (mkdir-p "doc")
8469 (symlink "../stepmania/Docs" "doc/stepmania"))
8470 #t))))))
8471 (native-inputs
8472 `(("pkg-config" ,pkg-config)
8473 ("yasm" ,yasm)))
8474 (inputs
8475 `(("alsa-lib" ,alsa-lib)
8476 ;; Per upstream, StepMania is only guaranteed to work with a very
8477 ;; specific FFmpeg version, which is included in the repository as
8478 ;; a Git submodule. This particular version requirement usually
8479 ;; changes every few years.
8480 ("ffmpeg" ,ffmpeg-for-stepmania)
8481 ("glib" ,glib)
8482 ("glew" ,glew)
8483 ("gtk+" ,gtk+-2)
8484 ("jsoncpp" ,jsoncpp)
8485 ("libpng" ,libpng)
8486 ("libjpeg" ,libjpeg-turbo)
8487 ("libmad" ,libmad)
8488 ("libogg" ,libogg)
8489 ("libva" ,libva)
8490 ("libvorbis" ,libvorbis)
8491 ("libxinerama" ,libxinerama)
8492 ("libxrandr" ,libxrandr)
8493 ("mesa" ,mesa)
8494 ("pcre" ,pcre)
8495 ("pulseaudio" ,pulseaudio)
8496 ("sdl" ,sdl2)
8497 ("udev" ,eudev)
8498 ("zlib" ,zlib)))
8499 (synopsis "Advanced rhythm game designed for both home and arcade use")
8500 (description "StepMania is a dance and rhythm game. It features 3D
8501 graphics, keyboard and dance pad support, and an editor for creating your own
8502 steps.
8503
8504 This package provides the core application, but no song is shipped. You need
8505 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8506 (home-page "https://www.stepmania.com")
8507 (license license:expat)))
8508
8509 (define-public oshu
8510 (package
8511 (name "oshu")
8512 (version "2.0.1")
8513 (source
8514 (origin
8515 (method git-fetch)
8516 (uri (git-reference
8517 (url "https://github.com/fmang/oshu")
8518 (commit version)))
8519 (file-name (git-file-name name version))
8520 (sha256
8521 (base32
8522 "1g598incc6zlls876slgwqblwiwiszkmqa4xpzw0z7mbjmmzsizz"))))
8523 (build-system cmake-build-system)
8524 (arguments
8525 `(#:phases
8526 (modify-phases %standard-phases
8527 (add-before 'check 'pre-check
8528 ;; `make test' doesn't actually build the test executable
8529 (lambda _ (invoke "make" "zerotokei"))))))
8530 (native-inputs
8531 `(("pkg-config" ,pkg-config)))
8532 (inputs
8533 `(("cairo" ,cairo)
8534 ("ffmpeg" ,ffmpeg)
8535 ("pango" ,pango)
8536 ("sdl2" ,sdl2)
8537 ("sdl2-image" ,sdl2-image)))
8538 (home-page "https://github.com/fmang/oshu/")
8539 (synopsis "Rhythm game in which you click on circles")
8540 (description "@i{oshu!} is a minimalist variant of the @i{osu!} rhythm game,
8541 which is played by pressing buttons and following along sliders as they appear
8542 on screen. Its aim is to be able to play any beatmap even on low-end hardware.
8543
8544 This package provides the core application, but no beatmaps. You need to
8545 download and unpack them separately.")
8546 (license license:gpl3+)))
8547
8548 (define-public btanks
8549 (package
8550 (name "btanks")
8551 (version "0.9.8083")
8552 (source
8553 (origin
8554 (method url-fetch)
8555 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8556 "btanks-" version ".tar.bz2"))
8557 (sha256
8558 (base32
8559 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8560 (build-system scons-build-system)
8561 (arguments
8562 `(#:tests? #f ; there are none
8563 #:scons ,scons-python2
8564 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8565 #:phases
8566 (modify-phases %standard-phases
8567 (add-after 'unpack 'replace-removed-scons-syntax
8568 (lambda _
8569 (substitute* "SConstruct"
8570 (("Options") "Variables")
8571 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8572 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8573 #t))
8574 (add-after 'set-paths 'set-sdl-paths
8575 (lambda* (#:key inputs #:allow-other-keys)
8576 (setenv "CPATH"
8577 (string-append
8578 (search-input-file inputs "/include/SDL")
8579 ":" (or (getenv "CPATH") "")))))
8580 (add-after 'unpack 'fix-compilation-errors
8581 (lambda _
8582 (substitute* "mrt/base_file.h"
8583 (("#include <string>" m)
8584 (string-append m "\n#include <sys/types.h>")))
8585 (substitute* '("engine/sl08/sl08.h"
8586 "engine/sl08/sl08.py")
8587 (("signal = NULL") "signal = 0")
8588 (("object\\(NULL\\)") "object(0)")
8589 (("func\\(NULL\\)") "func(0)")
8590 ((" connect\\(signal_ref\\)")
8591 " this->connect(signal_ref)"))
8592 (substitute* "math/range_list.h"
8593 ((" lower_bound\\(value\\)")
8594 " this->lower_bound(value)")
8595 ((" erase\\(i\\)")
8596 " this->erase(i)"))
8597 (substitute* "clunk/source.cpp"
8598 (("using namespace clunk" m)
8599 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8600 #t))
8601 (add-after 'unpack 'find-lua
8602 (lambda _
8603 (substitute* "engine/SConscript"
8604 (("lua5.1") "lua-5.1")
8605 (("bt_libs.append\\(lua\\)")
8606 "bt_libs.append(\"lua\")"))
8607 #t)))))
8608 (inputs
8609 `(("expat" ,expat)
8610 ("glu" ,glu)
8611 ("libsmpeg" ,libsmpeg-with-sdl1)
8612 ("libvorbis" ,libvorbis)
8613 ("lua51" ,lua-5.1)
8614 ("sdl" ,(sdl-union (list sdl
8615 sdl-mixer
8616 sdl-image
8617 sdl-ttf)))
8618 ("zlib" ,zlib)))
8619 (native-inputs
8620 `(("pkg-config" ,pkg-config)
8621 ("zip" ,zip)))
8622 (home-page "http://btanks.sourceforge.net")
8623 (synopsis "Multiplayer tank battle game")
8624 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8625 game, where you can choose one of three vehicles and eliminate your enemy
8626 using the whole arsenal of weapons. It has original cartoon-like graphics and
8627 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8628 and cooperative.")
8629 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8630 ;; released under GPLv2 or later. It comes with extra exceptions for the
8631 ;; developers.
8632 (license (list license:gpl2+ license:lgpl2.1+))))
8633
8634 (define-public slimevolley
8635 (package
8636 (name "slimevolley")
8637 (version "2.4.2")
8638 (source
8639 (origin
8640 (method url-fetch)
8641 (uri (string-append "https://download.tuxfamily.org/slime/"
8642 "slimevolley_" version ".tar.gz"))
8643 (sha256
8644 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8645 (build-system cmake-build-system)
8646 (arguments
8647 `(#:tests? #f ;no test
8648 ;; Work around build failure: "error adding symbols: DSO
8649 ;; missing from command line".
8650 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8651 (native-inputs
8652 `(("gettext" ,gettext-minimal)))
8653 (inputs
8654 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8655 (home-page "https://slime.tuxfamily.org/")
8656 (synopsis "Unrealistic 2D volleyball simulation")
8657 (description
8658 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8659 the spirit of some Java games of the same name.
8660
8661 Two teams, 1-3 players each, try to be the first to get 10 points.
8662 This happens when the one ball touches the floor on the other side of
8663 the net. There can be 1 to 8 balls in game. Once one ball touches
8664 the ground, the set ends and all balls are served again.")
8665 (license license:gpl3+)))
8666
8667 (define-public slingshot
8668 (package
8669 (name "slingshot")
8670 (version "0.9")
8671 (source
8672 (origin
8673 (method git-fetch)
8674 (uri (git-reference
8675 (url "https://github.com/ryanakca/slingshot")
8676 (commit version)))
8677 (file-name (git-file-name name version))
8678 (sha256
8679 (base32
8680 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8681 (build-system python-build-system)
8682 (arguments
8683 `(#:python ,python-2))
8684 (inputs
8685 `(("python-pygame" ,python2-pygame)))
8686 (home-page "https://github.com/ryanakca/slingshot")
8687 (synopsis "Simple 2D shooting strategy game set in space")
8688 (description "Slingshot is a two-dimensional strategy game where two
8689 players attempt to shoot one another through a section of space populated by
8690 planets. The main feature of the game is that the shots, once fired, are
8691 affected by the gravity of the planets.")
8692 (license license:gpl2+)))
8693
8694 (define-public 4dtris
8695 (package
8696 (name "4dtris")
8697 (version "0.4.3")
8698 (source
8699 (origin
8700 (method url-fetch)
8701 (uri (string-append "https://launchpad.net/4dtris/"
8702 (version-major+minor version)
8703 "/" version "/+download/4dtris_"
8704 version ".orig.tar.gz"))
8705 (sha256
8706 (base32
8707 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8708 (build-system gnu-build-system)
8709 (arguments
8710 `(#:configure-flags '("CFLAGS=-fcommon")
8711 #:phases
8712 (modify-phases %standard-phases
8713 (add-after 'unpack 'fix-install-directories
8714 (lambda* (#:key outputs #:allow-other-keys)
8715 (let ((out (assoc-ref outputs "out")))
8716 (substitute* "Makefile.in"
8717 (("bindir = /usr/games")
8718 (string-append "bindir = " out "/bin"))
8719 (("/usr/share/applications")
8720 (string-append out "/share/applications"))
8721 (("/usr/share/games/4dtris")
8722 (string-append out "/share/4dtris"))))
8723 #t))
8724 (add-after 'set-paths 'set-sdl-paths
8725 (lambda* (#:key inputs #:allow-other-keys)
8726 (setenv "CPATH"
8727 (string-append
8728 (search-input-directory inputs "/include/SDL")
8729 ":" (or (getenv "CPATH") ""))))))))
8730 (inputs
8731 `(("fontconfig" ,fontconfig)
8732 ("freeglut" ,freeglut)
8733 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8734 (home-page "https://launchpad.net/4dtris/")
8735 (synopsis "4D Tetris")
8736 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8737 game field is extended to 4D space, which has to filled up by the gamer with
8738 4D hyper cubes.")
8739 (license license:gpl3)))
8740
8741 (define-public arx-libertatis
8742 (package
8743 (name "arx-libertatis")
8744 (version "1.2")
8745 (source
8746 (origin
8747 (method url-fetch)
8748 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8749 version ".tar.xz"))
8750 (sha256
8751 (base32
8752 "035dflxffa98bxmxkrqfizmhvnr09wyhhmzaqxk92772qil7gkxs"))))
8753 (build-system cmake-build-system)
8754 (outputs '("out" "installer"))
8755 (arguments
8756 '(#:tests? #f ; No tests.
8757 #:phases
8758 (modify-phases %standard-phases
8759 (add-after 'unpack 'fix-install-helper-paths
8760 (lambda* (#:key inputs #:allow-other-keys)
8761 (let ((p7zip (assoc-ref inputs "p7zip"))
8762 (innoextract (assoc-ref inputs "innoextract"))
8763 (wget (assoc-ref inputs "wget"))
8764 (zenity (assoc-ref inputs "zenity")))
8765 (substitute* "scripts/arx-install-data"
8766 (("have innoextract")
8767 (string-append "have " innoextract "/bin/innoextract"))
8768 (("then innoextract")
8769 (string-append "then " innoextract "/bin/innoextract"))
8770 (("else innoextract")
8771 (string-append "else " innoextract "/bin/innoextract"))
8772 (("for _extract_zip_sz in 7za 7z")
8773 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8774 (("else if have 7z")
8775 (string-append "else if have " p7zip "/bin/7za"))
8776 (("7z x -tiso")
8777 (string-append p7zip "/bin/7z x -tiso"))
8778 (("if have wget")
8779 (string-append "if have " wget "/bin/wget"))
8780 (("wget -O")
8781 (string-append wget "/bin/wget -O"))
8782 (("for backend in \\$preferred zenity")
8783 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8784 (("zenity +--title")
8785 (string-append zenity "/bin/zenity --title"))
8786 (("^zenity\\)")
8787 (string-append zenity "/bin/zenity)"))))
8788 #t))
8789 (add-after 'install 'move-installer
8790 (lambda* (#:key outputs #:allow-other-keys)
8791 (let ((out (assoc-ref outputs "out"))
8792 (installer (assoc-ref outputs "installer")))
8793 (mkdir-p (string-append installer "/bin"))
8794 (rename-file (string-append out "/bin/arx-install-data")
8795 (string-append installer "/bin/arx-install-data"))))))))
8796 (inputs
8797 `(("sdl2" ,sdl2)
8798 ("libepoxy" ,libepoxy)
8799 ("glew" ,glew)
8800 ("openal" ,openal)
8801 ("zlib" ,zlib)
8802 ("boost" ,boost)
8803 ("glm" ,glm)
8804 ("freetype" ,freetype)
8805 ;; The following are only needed by the arx-install-data script.
8806 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8807 ("zenity" ,zenity) ; GUI for install-helper.
8808 ("wget" ,wget) ; Used by the install-helper to download the patch.
8809 ;; The install-helper needs it to extract the patch.
8810 ("innoextract" ,innoextract)))
8811 (home-page "https://arx-libertatis.org/")
8812 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8813 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8814 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8815 This port however does not include the game data, so you need to obtain a copy
8816 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8817 features crafting, melee and ranged combat, as well as a unique casting system
8818 where the player draws runes in real time to effect the desired spell.")
8819 (license license:gpl3+)))
8820
8821 (define-public edgar
8822 (package
8823 (name "edgar")
8824 (version "1.34")
8825 (source
8826 (origin
8827 (method url-fetch)
8828 (uri
8829 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8830 version "/edgar-" version "-1.tar.gz"))
8831 (sha256
8832 (base32 "1121rq5wk3g8rs413av84s2kcy6qj6maspgy2vsxs36c2jd3yygl"))))
8833 (build-system gnu-build-system)
8834 (arguments '(#:tests? #f ; there are no tests
8835 #:make-flags
8836 (list "CC=gcc"
8837 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8838 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8839 #:phases
8840 (modify-phases %standard-phases
8841 (delete 'configure)
8842 (add-before 'build 'fix-env
8843 (lambda* (#:key inputs #:allow-other-keys)
8844 (setenv "CPATH"
8845 (string-append
8846 (search-input-file inputs "/include/SDL2")
8847 ":" (or (getenv "CPATH") ""))))))))
8848 (inputs
8849 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8850 ("zlib" ,zlib)))
8851 (native-inputs
8852 `(("pkg-config" ,pkg-config)
8853 ("autoconf" ,autoconf)
8854 ("automake" ,automake)
8855 ("gnu-gettext" ,gettext-minimal)
8856 ("libtool" ,libtool)
8857 ("which" ,which)))
8858 (synopsis "2d action platformer game")
8859 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8860 When Edgar's father fails to return home after venturing out one dark and stormy night,
8861 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8862 a fortress beyond the forbidden swamp.")
8863 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8864 (license license:gpl2+)))
8865
8866 (define-public openclonk
8867 (package
8868 (name "openclonk")
8869 (version "8.1")
8870 (source (origin
8871 (method url-fetch)
8872 (uri (string-append
8873 "https://www.openclonk.org/builds/release/" version "/"
8874 "openclonk-" version "-src.tar.bz2"))
8875 (sha256
8876 (base32
8877 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8878 (build-system cmake-build-system)
8879 (arguments
8880 `(#:configure-flags '("-DAudio_TK=OpenAL")
8881 #:test-target "tests"
8882 #:phases
8883 (modify-phases %standard-phases
8884 (add-after 'unpack 'prepare-gmock
8885 (lambda* (#:key inputs #:allow-other-keys)
8886 (mkdir "gmock")
8887 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8888 (substitute* "tests/CMakeLists.txt"
8889 (("/usr/src/gmock")
8890 (string-append (getcwd) "/gmock/googlemock"))
8891 (("/usr/src/gtest")
8892 (string-append (getcwd) "/gmock/googletest"))
8893 (("PATH_SUFFIXES \"src\" \"gtest\"")
8894 "PATH_SUFFIXES \"src\""))
8895 #t))
8896 (add-after 'unpack 'adjust-backward-cpp-includes
8897 (lambda _
8898 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8899 ;; that includes external libraries such as libdl from glibc.
8900 ;; By default, CMake interface includes are treated as "system
8901 ;; headers", and GCC behaves poorly when glibc is passed as a
8902 ;; system header (causing #include_next failures).
8903
8904 ;; Here we prevent targets that consume the Backward::Backward
8905 ;; interface from treating it as "system includes".
8906 (substitute* "CMakeLists.txt"
8907 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8908 (string-append "set_property(TARGET " target " PROPERTY "
8909 "NO_SYSTEM_FROM_IMPORTED true)\n"
8910 all)))
8911 #t))
8912 (add-after 'unpack 'add-libiberty
8913 ;; Build fails upon linking executables without this.
8914 (lambda _
8915 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8916 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8917 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8918 #t))
8919 (add-after 'add-libiberty 'lax-freealut-requirement
8920 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8921 ;; it as 1.0.1. Force minimal version.
8922 (lambda _
8923 (substitute* "cmake/FindAudio.cmake"
8924 (("freealut>=1.1.0") "freealut>=1.0.1"))
8925 #t))
8926 (add-after 'lax-freealut-requirement 'fix-directories
8927 ;; Prefer "$out/share/openclonk" over
8928 ;; "$out/share/games/openclonk". Also install "openclonk"
8929 ;; binary in "bin/", not "games/".
8930 (lambda _
8931 (substitute* "CMakeLists.txt"
8932 (("share/games/openclonk") "share/openclonk")
8933 (("TARGETS openclonk DESTINATION games")
8934 "TARGETS openclonk DESTINATION bin"))
8935 #t)))))
8936 (native-inputs
8937 `(("googlemock" ,(package-source googletest))
8938 ("googletest" ,googletest)
8939 ("pkg-config" ,pkg-config)))
8940 (inputs
8941 `(("freealut" ,freealut)
8942 ("freetype" ,freetype)
8943 ("glew" ,glew)
8944 ("libiberty" ,libiberty)
8945 ("libjpeg" ,libjpeg-turbo)
8946 ("libogg" ,libogg)
8947 ("libpng" ,libpng)
8948 ("libvorbis" ,libvorbis)
8949 ("libxrandr" ,libxrandr)
8950 ("mesa" ,mesa)
8951 ("miniupnpc" ,miniupnpc)
8952 ("openal" ,openal)
8953 ("qtbase" ,qtbase-5)
8954 ("readline" ,readline)
8955 ("sdl" ,sdl2)
8956 ("tinyxml" ,tinyxml)
8957 ("zlib" ,zlib)))
8958 (home-page "https://www.openclonk.org/")
8959 (synopsis
8960 "Multiplayer action game where you control small and nimble humanoids")
8961 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8962 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8963 antfarm-style landscape, the player controls a crew of Clonks, small but
8964 robust humanoid beings. The game encourages free play but the normal goal is
8965 to either exploit valuable resources from the earth by building a mine or
8966 fight each other on an arena-like map.")
8967 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8968 (license (list license:isc license:cc-by3.0))))
8969
8970 (define-public flare-engine
8971 (package
8972 (name "flare-engine")
8973 (version "1.12")
8974 (source (origin
8975 (method git-fetch)
8976 (uri (git-reference
8977 (url "https://github.com/flareteam/flare-engine")
8978 (commit (string-append "v" version))))
8979 (file-name (git-file-name name version))
8980 (sha256
8981 (base32
8982 "0h4xxj6r194pw68m3ngrnzkh6xgiblyrsc54z8abwba8m0mqbvmk"))))
8983 (build-system cmake-build-system)
8984 (arguments
8985 `(#:tests? #f ;no test
8986 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8987 (inputs
8988 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8989 ("python" ,python-wrapper)
8990 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8991 (home-page "http://www.flarerpg.org/")
8992 (synopsis "Action Roleplaying Engine")
8993 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8994 game engine built to handle a very specific kind of game: single-player 2D
8995 action RPGs.")
8996 (license license:gpl3+)))
8997
8998 (define-public flare-game
8999 (package
9000 (name "flare-game")
9001 (version "1.12")
9002 (source (origin
9003 (method git-fetch)
9004 (uri (git-reference
9005 (url "https://github.com/flareteam/flare-game")
9006 (commit (string-append "v" version))))
9007 (file-name (git-file-name name version))
9008 (sha256
9009 (base32
9010 "0h9i128kq6disppbrplkf13zdmsg4cq23nim53mgwpawc4mqz7ga"))))
9011 (build-system cmake-build-system)
9012 (arguments
9013 `(#:tests? #f ;no test
9014 #:configure-flags '("-DDATADIR=share/flare")
9015 #:phases
9016 (modify-phases %standard-phases
9017 ;; Flare expects the mods to be located in the same folder.
9018 ;; Yet, "default" mod is in the engine, whereas the others
9019 ;; are in the current package. Merge everything here with
9020 ;; a symlink.
9021 (add-after 'install 'add-default-mod
9022 (lambda* (#:key inputs outputs #:allow-other-keys)
9023 (let* ((out (assoc-ref outputs "out"))
9024 (mods (string-append out "/share/flare/mods")))
9025 (with-directory-excursion mods
9026 (symlink (string-append (assoc-ref inputs "flare-engine")
9027 "/share/flare/mods/default")
9028 "default")))
9029 #t))
9030 (add-after 'install 'install-executable
9031 ;; The package only provides assets for the game, the
9032 ;; executable coming from "flare-engine". Since more than
9033 ;; one game may use the engine, we create a new executable,
9034 ;; "flare-game", which launches the engine with appropriate
9035 ;; parameters.
9036 (lambda* (#:key inputs outputs #:allow-other-keys)
9037 (let* ((out (assoc-ref outputs "out"))
9038 (bash (search-input-file inputs "/bin/bash"))
9039 (flare (search-input-file inputs "/bin/flare"))
9040 (script (string-append out "/bin/flare-game")))
9041 (mkdir-p (dirname script))
9042 (call-with-output-file script
9043 (lambda (port)
9044 (format port
9045 "#!~a
9046 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
9047 bash
9048 flare
9049 out)))
9050 (chmod script #o755))
9051 #t)))))
9052 (inputs
9053 `(("flare-engine" ,flare-engine)))
9054 (home-page "http://www.flarerpg.org/")
9055 (synopsis "Fantasy action RPG using the FLARE engine")
9056 (description "Flare is a single-player 2D action RPG with
9057 fast-paced action and a dark fantasy style.")
9058 (license license:cc-by-sa3.0)))
9059
9060 (define-public meritous
9061 (package
9062 (name "meritous")
9063 (version "1.5")
9064 (source (origin
9065 (method git-fetch)
9066 (uri (git-reference
9067 (url "https://gitlab.com/meritous/meritous.git")
9068 (commit (string-append "v" version))))
9069 (file-name (git-file-name name version))
9070 (sha256
9071 (base32
9072 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
9073 (build-system gnu-build-system)
9074 (arguments
9075 `(#:tests? #f ;no test
9076 #:make-flags
9077 (list "CC=gcc"
9078 (string-append "prefix=" (assoc-ref %outputs "out")))
9079 #:phases
9080 (modify-phases %standard-phases
9081 (delete 'configure)
9082 (add-after 'unpack 'fix-sdl-path
9083 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
9084 ;; directory, not SDL-union provided as an input to the package.
9085 ;; We force the latter with "--prefix=" option.
9086 (lambda* (#:key inputs #:allow-other-keys)
9087 (substitute* "Makefile"
9088 (("sdl-config" command)
9089 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9090 #t))
9091 (add-after 'unpack 'fix-crash
9092 ;; XXX: Songs are not present in the repository, due to licensing
9093 ;; issues. Yet, the game tries to load them, and, since it cannot
9094 ;; find them, crashes. Users cannot add them back, the store being
9095 ;; read-only, so we turn off background music altogether.
9096 (lambda _
9097 (substitute* "src/audio.c"
9098 (("PlayBackgroundMusic\\(new_track\\);" all)
9099 (string-append "// " all)))
9100 #t)))))
9101 (native-inputs
9102 `(("intltool" ,intltool)))
9103 (inputs
9104 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
9105 ("zlib" ,zlib)))
9106 (home-page "https://gitlab.com/meritous/meritous")
9107 (synopsis "Action-adventure dungeon crawl game")
9108 (description "Far below the surface of the planet is a place of limitless
9109 power. Those that seek to control such a utopia will soon bring an end to
9110 themselves. Seeking an end to the troubles that plague him, PSI user Merit
9111 journeys into the hallowed Orcus Dome in search of answers.
9112
9113 Meritous is a action-adventure game with simple controls but a challenge to
9114 find a balance of power versus recovery time during real-time battles. Set in
9115 a procedurally generated world, the player can explore thousands of rooms in
9116 search of powerful artifacts, tools to help them, and to eventually free the
9117 Orcus Dome from evil.")
9118 (license license:gpl3+)))
9119
9120 (define-public marble-marcher
9121 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
9122 (revision "1"))
9123 (package
9124 (name "marble-marcher")
9125 (version (git-version "0" revision commit))
9126 (source (origin
9127 (method git-fetch)
9128 (uri (git-reference
9129 (url "https://github.com/HackerPoet/MarbleMarcher")
9130 (commit commit)))
9131 (file-name (git-file-name name version))
9132 (sha256
9133 (base32
9134 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
9135 (build-system cmake-build-system)
9136 (arguments
9137 `(#:tests? #f ; there are none
9138 #:phases
9139 (modify-phases %standard-phases
9140 (add-after 'unpack 'embed-asset-directory
9141 (lambda* (#:key outputs #:allow-other-keys)
9142 (let ((assets (string-append (assoc-ref outputs "out")
9143 "/share/marble-marcher/assets/")))
9144 ;; Some of the files we're patching are
9145 ;; ISO-8859-1-encoded, so choose it as the default
9146 ;; encoding so the byte encoding is preserved.
9147 (with-fluids ((%default-port-encoding #f))
9148 (substitute* "src/Resource.rc"
9149 (("../assets/icon.ico")
9150 (string-append assets "icon.ico")))
9151 (substitute* "src/Res.h"
9152 (("assets/") assets))))
9153 #t))
9154 (replace 'install
9155 (lambda* (#:key outputs #:allow-other-keys)
9156 (let* ((out (assoc-ref outputs "out"))
9157 (assets (string-append out "/share/marble-marcher/assets"))
9158 (bin (string-append out "/bin/")))
9159 (mkdir-p bin)
9160 (mkdir-p assets)
9161 (copy-recursively "../source/assets" assets)
9162 (install-file "MarbleMarcher" bin))
9163 #t)))))
9164 (inputs
9165 `(("eigen" ,eigen)
9166 ("mesa" ,mesa)
9167 ("sfml" ,sfml)))
9168 (native-inputs
9169 `(("pkg-config" ,pkg-config)))
9170 (home-page "https://codeparade.itch.io/marblemarcher")
9171 (synopsis "Guide a marble across fractal landscapes")
9172 (description "Marble Marcher is a video game that uses a fractal physics
9173 engine and fully procedural rendering to produce beautiful and unique
9174 gameplay. The game is played on the surface of evolving fractals. The goal
9175 of the game is to get your marble to the flag as quickly as possible. But be
9176 careful not to fall off the level or get crushed by the fractal! There are 24
9177 levels to unlock.")
9178 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
9179 (license (list license:gpl2+
9180 license:silofl1.1
9181 license:cc-by-sa3.0)))))
9182
9183 ;; This must be updated together with flightgear.
9184 (define simgear
9185 (package
9186 (name "simgear")
9187 (version "2018.3.5")
9188 (source
9189 (origin
9190 (method url-fetch)
9191 (uri (string-append "mirror://sourceforge/flightgear/release-"
9192 (version-major+minor version) "/"
9193 "simgear-" version ".tar.bz2"))
9194 (sha256
9195 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
9196 (build-system cmake-build-system)
9197 (arguments
9198 `(#:phases
9199 (modify-phases %standard-phases
9200 (replace 'check
9201 (lambda _
9202 ;; Skip tests that require internet access.
9203 (invoke "ctest" "-E" "(http|dns)"))))))
9204 (inputs
9205 `(("boost" ,boost-for-mysql) ; fails with 1.69
9206 ("curl" ,curl)
9207 ("expat" ,expat)
9208 ("mesa" ,mesa)
9209 ("openal" ,openal)
9210 ("openscenegraph" ,openscenegraph-3.4)
9211 ("zlib" ,zlib)))
9212 (home-page "https://home.flightgear.org/")
9213 (synopsis "Libraries for 3D simulations and games")
9214 (description "SimGear is a set of libraries designed to be used as
9215 building blocks for quickly assembling 3D simulations, games, and
9216 visualization applications. SimGear is developed by the FlightGear project
9217 and also provides the base for the FlightGear Flight Simulator.")
9218 (license license:lgpl2.0+)))
9219
9220 (define-public flightgear
9221 (package
9222 (name "flightgear")
9223 (version (package-version simgear))
9224 (source
9225 (origin
9226 (method url-fetch)
9227 (uri (string-append "mirror://sourceforge/flightgear/release-"
9228 (version-major+minor version) "/"
9229 "flightgear-" version ".tar.bz2"))
9230 (sha256
9231 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
9232 (modules '((guix build utils)))
9233 (snippet
9234 '(begin
9235 ;; There are some bundled libraries.
9236 (for-each delete-file-recursively
9237 '("3rdparty/sqlite3/"))
9238 #t))))
9239 (build-system cmake-build-system)
9240 (arguments
9241 `(#:configure-flags
9242 (list "-DSYSTEM_SQLITE=ON"
9243 (string-append "-DFG_DATA_DIR="
9244 (assoc-ref %outputs "out")
9245 "/share/flightgear"))
9246 ;; TODO: test cannot be run because the "run_test_suite" executable
9247 ;; does not seem to be built.
9248 #:tests? #f
9249 #:phases
9250 (modify-phases %standard-phases
9251 (add-after 'install 'wrap-executable
9252 (lambda* (#:key inputs outputs #:allow-other-keys)
9253 (let ((out (assoc-ref outputs "out")))
9254 (wrap-program (string-append out "/bin/fgfs")
9255 `("QT_PLUGIN_PATH" ":" prefix
9256 ,(map (lambda (label)
9257 (string-append (assoc-ref inputs label)
9258 "/lib/qt5/plugins"))
9259 '("qtbase" "qtdeclarative" "qtsvg")))
9260 `("QML2_IMPORT_PATH" ":" prefix
9261 ,(map (lambda (label)
9262 (string-append (assoc-ref inputs label)
9263 "/lib/qt5/qml"))
9264 '("qtdeclarative" "qtsvg"))))
9265 #t)))
9266 (add-after 'install 'install-data
9267 (lambda* (#:key inputs outputs #:allow-other-keys)
9268 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
9269 (mkdir-p share)
9270 (with-directory-excursion share
9271 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
9272 "--strip-components=1")))
9273 #t)))))
9274 (inputs
9275 `(("boost" ,boost-for-mysql) ; same as simgear
9276 ("dbus" ,dbus)
9277 ("eudev" ,eudev)
9278 ("freeglut" ,freeglut)
9279 ("freetype" ,freetype)
9280 ("glew" ,glew)
9281 ("libpng" ,libpng)
9282 ("openal" ,openal)
9283 ("openscenegraph" ,openscenegraph-3.4)
9284 ("plib" ,plib)
9285 ("qtbase" ,qtbase-5)
9286 ("qtdeclarative" ,qtdeclarative)
9287 ("qtsvg" ,qtsvg)
9288 ("simgear" ,simgear)
9289 ("speexdsp" ,speexdsp)
9290 ("sqlite" ,sqlite)
9291 ("zlib" ,zlib)))
9292 (native-inputs
9293 `(("cppunit" ,cppunit)
9294 ("pkg-config" ,pkg-config)
9295 ("qttools" ,qttools)
9296 ("flightgear-data"
9297 ,(origin
9298 (method url-fetch)
9299 (uri (string-append "mirror://sourceforge/flightgear/release-"
9300 (version-major+minor version) "/"
9301 "FlightGear-" version "-data.tar.bz2"))
9302 (sha256
9303 (base32
9304 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9305 (home-page "https://home.flightgear.org/")
9306 (synopsis "Flight simulator")
9307 (description "The goal of the FlightGear project is to create a
9308 sophisticated flight simulator framework for use in research or academic
9309 environments, pilot training, as an industry engineering tool, for DIY-ers to
9310 pursue their favorite interesting flight simulation idea, and last but
9311 certainly not least as a fun, realistic, and challenging desktop flight
9312 simulator.")
9313 (license license:gpl2+)))
9314
9315 (define-public jumpnbump
9316 (package
9317 (name "jumpnbump")
9318 (version "1.61")
9319 (source (origin
9320 (method git-fetch)
9321 (uri (git-reference
9322 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9323 (commit version)))
9324 (file-name (git-file-name name version))
9325 (sha256
9326 (base32
9327 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9328 (build-system gnu-build-system)
9329 (arguments
9330 `(#:make-flags
9331 (list "CC=gcc"
9332 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9333 #:tests? #f ;no test
9334 #:phases
9335 (modify-phases %standard-phases
9336 (delete 'configure) ;no configure script
9337 (add-after 'unpack 'fix-sdl-path
9338 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9339 ;; directory, not SDL-union provided as an input to the package.
9340 ;; We force the latter with "--prefix=" option.
9341 (lambda* (#:key inputs #:allow-other-keys)
9342 (substitute* "Makefile"
9343 (("sdl2-config" command)
9344 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9345 #t)))))
9346 (inputs
9347 `(("bzip2" ,bzip2)
9348 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9349 ("zlib" ,zlib)))
9350 (native-inputs
9351 `(("gettext" ,gettext-minimal))) ;for msgfmt
9352 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9353 (synopsis "Multiplayer platform game with bunnies")
9354 (description "You, as a bunny, have to jump on your opponents to make them
9355 explode. It is a true multiplayer game; you cannot play this alone. You can
9356 play with up to four players simultaneously. It has network support.")
9357 (license license:gpl2+)))
9358
9359 (define-public hedgewars
9360 (package
9361 (name "hedgewars")
9362 (version "1.0.0")
9363 (source (origin
9364 (method url-fetch)
9365 (uri (string-append "https://www.hedgewars.org/download/releases/"
9366 "hedgewars-src-" version ".tar.bz2"))
9367 (patches (search-patches "hedgewars-network-bsd.patch"))
9368 (sha256
9369 (base32
9370 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9371 (build-system cmake-build-system)
9372 (arguments
9373 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9374 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9375 ;; a Pascal to C translator and Clang instead.
9376 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9377 "-Dhaskell_flags=-dynamic;-fPIC")
9378 #:phases
9379 (modify-phases %standard-phases
9380 (add-before 'configure 'fix-sources
9381 (lambda _
9382 ;; Fix a missing 'include'.
9383 (substitute* "QTfrontend/ui/page/pagegamestats.cpp"
9384 (("#include <QSizePolicy>")
9385 "#include <QSizePolicy>\n#include <QPainterPath>"))))
9386 (replace 'check
9387 (lambda _ (invoke "ctest")))
9388 (add-after 'install 'install-icon
9389 (lambda _
9390 ;; Install icon for the desktop file.
9391 (let* ((out (assoc-ref %outputs "out"))
9392 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9393 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9394 (install-file "misc/hedgewars.png" icons)))
9395 #t)))))
9396 (inputs
9397 `(("ffmpeg" ,ffmpeg)
9398 ("freeglut" ,freeglut)
9399 ("ghc-entropy" ,ghc-entropy)
9400 ("ghc-hslogger" ,ghc-hslogger)
9401 ("ghc-network" ,ghc-network)
9402 ("ghc-random" ,ghc-random)
9403 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9404 ("ghc-sandi" ,ghc-sandi)
9405 ("ghc-sha" ,ghc-sha)
9406 ("ghc-utf8-string" ,ghc-utf8-string)
9407 ("ghc-vector" ,ghc-vector)
9408 ("ghc-zlib" ,ghc-zlib)
9409 ("glew" ,glew)
9410 ("libpng" ,libpng)
9411 ("lua" ,lua-5.1)
9412 ("physfs" ,physfs)
9413 ("qtbase" ,qtbase-5)
9414 ("sdl" ,(sdl-union
9415 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9416 (native-inputs
9417 `(("clang" ,clang)
9418 ("ghc" ,ghc)
9419 ("pkg-config" ,pkg-config)
9420 ("qttools" ,qttools)))
9421 (home-page "https://hedgewars.org/")
9422 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9423 (description
9424 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9425 featuring the antics of pink hedgehogs with attitude as they battle from the
9426 depths of hell to the depths of space.
9427
9428 As commander, it's your job to assemble your crack team of hedgehog soldiers
9429 and bring the war to your enemy.")
9430 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9431 ;; scripts are distributed under various terms.
9432 (license (list license:gpl2
9433 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9434 license:expat license:fdl1.3+ license:public-domain
9435 license:zlib))))
9436
9437 (define-public go-github-com-anaseto-gruid
9438 (package
9439 (name "go-github-com-anaseto-gruid")
9440 (version "0.21.1")
9441 (source
9442 (origin
9443 (method git-fetch)
9444 (uri (git-reference
9445 (url "https://github.com/anaseto/gruid")
9446 (commit (string-append "v" version))))
9447 (file-name (git-file-name name version))
9448 (sha256
9449 (base32
9450 "0rvsavkvg2hziwdh8sjk3n5v92m5mfjb8v9m7ch22maxfwq5kv6y"))))
9451 (build-system go-build-system)
9452 (arguments
9453 '(#:import-path "github.com/anaseto/gruid"))
9454 (propagated-inputs
9455 `(("go-golang-org-x-image" ,go-golang-org-x-image)))
9456 (home-page "https://github.com/anaseto/gruid")
9457 (synopsis "Cross-platform grid-based UI and game framework")
9458 (description "The gruid module provides packages for easily building
9459 grid-based applications in Go. The library abstracts rendering and input for
9460 different platforms. There are drivers available for terminal apps, native
9461 graphical apps and browser apps. The original application for the library was
9462 creating grid-based games, but it's also well suited for any grid-based
9463 application.")
9464 (license license:isc)))
9465
9466 (define-public go-github-com-anaseto-gruid-tcell
9467 (package
9468 (name "go-github-com-anaseto-gruid-tcell")
9469 (version "0.1.1")
9470 (source
9471 (origin
9472 (method git-fetch)
9473 (uri (git-reference
9474 (url "https://github.com/anaseto/gruid-tcell")
9475 (commit (string-append "v" version))))
9476 (file-name (git-file-name name version))
9477 (sha256
9478 (base32
9479 "09ajr9mbldjfc44qprplbf8dr8yhlbn2nfnas2z62m9wmklc0qiv"))))
9480 (build-system go-build-system)
9481 (arguments
9482 '(#:import-path "github.com/anaseto/gruid-tcell"))
9483 (propagated-inputs
9484 `(("go-github-com-gdamore-tcell-v2" ,go-github-com-gdamore-tcell-v2)
9485 ("go-github-com-anaseto-gruid" ,go-github-com-anaseto-gruid)))
9486 (home-page "https://github.com/anaseto/gruid-tcell")
9487 (synopsis "Gruid driver using the tcell library")
9488 (description "The gruid-tcell module provides a Gruid driver for building
9489 terminal full-window applications.")
9490 (license license:isc)))
9491
9492 (define-public harmonist
9493 (package
9494 (name "harmonist")
9495 (version "0.4.1")
9496 (source (origin
9497 (method git-fetch)
9498 (uri (git-reference
9499 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9500 (commit (string-append "v" version))))
9501 (file-name (git-file-name name version))
9502 (sha256
9503 (base32
9504 "17ai39pw9xq4asfvhs0whx07hljlivygazbwrxjrnxwrn06483hr"))))
9505 (build-system go-build-system)
9506 (arguments
9507 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9508 (inputs
9509 `(("go-github-com-gdamore-tcell-v2" ,go-github-com-gdamore-tcell-v2)
9510 ("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)
9511 ("go-github-com-anaseto-gruid" ,go-github-com-anaseto-gruid)
9512 ("go-github-com-anaseto-gruid-tcell" ,go-github-com-anaseto-gruid-tcell)))
9513 (home-page "https://harmonist.tuxfamily.org/")
9514 (synopsis "Stealth coffee-break roguelike game")
9515 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9516 coffee-break roguelike game. The game has a heavy focus on tactical
9517 positioning, light and noise mechanisms, making use of various terrain types
9518 and cones of view for monsters. Aiming for a replayable streamlined experience,
9519 the game avoids complex inventory management and character building, relying
9520 on items and player adaptability for character progression.")
9521 (license license:isc)))
9522
9523 (define-public drascula
9524 (package
9525 (name "drascula")
9526 (version "1.0")
9527 (source (origin
9528 (method url-fetch)
9529 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9530 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9531 "drascula-" version ".zip"))
9532 (sha256
9533 (base32
9534 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9535 (build-system trivial-build-system)
9536 (arguments
9537 `(#:modules ((guix build utils))
9538 #:builder
9539 (begin
9540 (use-modules (guix build utils)
9541 (ice-9 match))
9542 (let* ((out (assoc-ref %outputs "out"))
9543 (share (string-append out "/share/drascula"))
9544 (scummvm (assoc-ref %build-inputs "scummvm")))
9545 ;; Install data.
9546 (let ((unzip (search-input-file %build-inputs "/bin/unzip"))
9547 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9548 (for-each
9549 (lambda (input)
9550 (invoke unzip
9551 "-j"
9552 (assoc-ref %build-inputs input)
9553 "-x" "__MACOSX")
9554 ;; Every input provides "readme.txt", and we want to
9555 ;; preserve them all. Therefore we rename them first.
9556 (match input
9557 ("drascula-int"
9558 (rename-file "readme.txt" "readme-international.txt"))
9559 ("drascula-audio"
9560 (rename-file "readme.txt" "readme-audio.txt"))
9561 (_ #f))
9562 ;; Install documentation.
9563 (for-each (lambda (f) (install-file f doc))
9564 (find-files "." "\\.(txt|doc)$"))
9565 ;; Install data.
9566 (for-each (lambda (f) (install-file f share))
9567 (find-files "." "\\.(ogg|00[0-9])$")))
9568 '("drascula-audio" "drascula-int" "source")))
9569 ;; Create standalone executable.
9570 (let* ((bin (string-append out "/bin"))
9571 (executable (string-append bin "/drascula"))
9572 (bash (search-input-file %build-inputs "/bin/bash")))
9573 (mkdir-p bin)
9574 (with-output-to-file executable
9575 (lambda ()
9576 (format #t "#!~a~%" bash)
9577 (format #t
9578 "exec ~a/bin/scummvm --path=~a drascula~%"
9579 scummvm share)))
9580 (chmod executable #o755))
9581 ;; Create desktop file. There is no dedicated icon for the
9582 ;; game, so we borrow SCUMMVM's.
9583 (let ((apps (string-append out "/share/applications")))
9584 (mkdir-p apps)
9585 (make-desktop-entry-file
9586 (string-append apps "/drascula.desktop")
9587 #:name "Drascula: The Vampire Strikes Back"
9588 #:generic-name "Drascula"
9589 #:exec (string-append out "/bin/drascula")
9590 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9591 #:categories '("AdventureGame" "Game" "RolePlaying")
9592 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9593 #:comment '((#f "Classic 2D point and click adventure game")
9594 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9595 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9596 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9597 #t))))
9598 (native-inputs
9599 `(("bash" ,bash)
9600 ("unzip" ,unzip)))
9601 (inputs
9602 `(("scummvm" ,scummvm)
9603 ("drascula-int"
9604 ,(let ((version "1.1"))
9605 (origin
9606 (method url-fetch)
9607 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9608 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9609 "drascula-int-" version ".zip"))
9610 (sha256
9611 (base32
9612 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9613 ("drascula-audio"
9614 ,(let ((version "2.0"))
9615 (origin
9616 (method url-fetch)
9617 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9618 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9619 "drascula-audio-" version ".zip"))
9620 (sha256
9621 (base32
9622 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9623 (home-page "https://www.scummvm.org")
9624 (synopsis "Classic 2D point and click adventure game")
9625 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9626 point and click adventure game.
9627
9628 In Drascula you play the role of John Hacker, a British estate agent, that
9629 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9630 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9631 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9632 the World and demonstrating that he is even more evil than his brother Vlad.")
9633 ;; Drascula uses a BSD-like license.
9634 (license (license:non-copyleft "file:///readme.txt"))))
9635
9636 (define (make-lure-package name language hash)
9637 (package
9638 (name name)
9639 (version "1.1")
9640 (source
9641 (origin
9642 (method url-fetch)
9643 (uri (string-append
9644 "mirror://sourceforge/scummvm/extras/"
9645 "Lure%20of%20the%20Temptress/"
9646 name "-" version ".zip"))
9647 (sha256
9648 (base32 hash))))
9649 (build-system trivial-build-system)
9650 (arguments
9651 `(#:modules ((guix build utils))
9652 #:builder
9653 (begin
9654 (use-modules (guix build utils))
9655 (let* ((out (assoc-ref %outputs "out"))
9656 (share (string-append out "/share"))
9657 (data (string-append share "/" ,name "/" ,language))
9658 (apps (string-append share "/applications"))
9659 (bin (string-append out "/bin"))
9660 (executable (string-append bin "/" ,name))
9661 (scummvm (assoc-ref %build-inputs "scummvm")))
9662 (let ((unzip (search-input-file %build-inputs "/bin/unzip")))
9663 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9664 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9665 (for-each (lambda (f) (install-file f doc))
9666 (find-files "." "\\.(txt|PDF|pdf)$")))
9667 (for-each (lambda (f) (install-file f data))
9668 (find-files "." "\\.(vga|VGA)$"))
9669 ;; Build the executable.
9670 (mkdir-p bin)
9671 (let ((bash (assoc-ref %build-inputs "bash")))
9672 (with-output-to-file executable
9673 (lambda ()
9674 (format #t "#!~a/bin/bash~%" bash)
9675 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9676 scummvm ,language data))))
9677 (chmod executable #o755)
9678 ;; Create desktop file. There is no dedicated
9679 ;; icon for the game, so we borrow SCUMMVM's.
9680 (mkdir-p apps)
9681 (with-output-to-file (string-append apps "/" ,name ".desktop")
9682 (lambda _
9683 (format #t
9684 "[Desktop Entry]~@
9685 Name=Lure of the Temptress~@
9686 GenericName=Lure~@
9687 Exec=~a~@
9688 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9689 Categories=AdventureGame;Game;RolePlaying;~@
9690 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9691 Comment=Classic 2D point and click adventure game~@
9692 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9693 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9694 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9695 Type=Application~%"
9696 executable scummvm)))
9697 #t))))
9698 (native-inputs
9699 `(("unzip" ,unzip)))
9700 (inputs
9701 `(("bash" ,bash)
9702 ("scummvm" ,scummvm)))
9703 (home-page "https://www.scummvm.org")
9704 (synopsis "2D point and click fantasy adventure game")
9705 (description
9706 "Lure of the Temptress is a classic 2D point and click adventure game.
9707
9708 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9709 intents and purposes, a good man. After decades of unrest the King has united
9710 the warring factions in his kingdom and all his lands are at peace, except
9711 a remote region around a town called Turnvale. A revolt has recently taken
9712 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9713 Selena, the titular temptress. The king calls together his finest horsemen
9714 and heads off (with you in tow) to Turnvale just to witness how hellish
9715 mercenary monsters called Skorl are invading the town.
9716
9717 The king's men are defeated, the king is killed and you fall of your horse and
9718 bang your head heavily on the ground. You have been *unconscious for a while
9719 when you realize that you are in a dingy cell guarded by a not so friendly
9720 Skorl. Maybe it would be an idea to try and escape...")
9721 (license (license:non-copyleft "file:///README"))))
9722
9723 (define-public lure
9724 (make-lure-package
9725 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9726
9727 (define-public lure-de
9728 (make-lure-package
9729 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9730
9731 (define-public lure-es
9732 (make-lure-package
9733 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9734
9735 (define-public lure-fr
9736 (make-lure-package
9737 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9738
9739 (define-public lure-it
9740 (make-lure-package
9741 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9742
9743 (define (make-queen-package name file-prefix release language hash)
9744 (package
9745 (name name)
9746 (version release)
9747 (source
9748 (origin
9749 (method url-fetch)
9750 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9751 "Flight%20of%20the%20Amazon%20Queen/"
9752 file-prefix release ".zip"))
9753 (sha256
9754 (base32 hash))))
9755 (build-system trivial-build-system)
9756 (arguments
9757 `(#:modules ((guix build utils))
9758 #:builder
9759 (begin
9760 (use-modules (guix build utils))
9761 (let* ((out (assoc-ref %outputs "out"))
9762 (share (string-append out "/share"))
9763 (data (string-append share "/" ,name))
9764 (apps (string-append share "/applications"))
9765 (bin (string-append out "/bin"))
9766 (executable (string-append bin "/" ,name))
9767 (scummvm (assoc-ref %build-inputs "scummvm")))
9768 (let ((unzip (search-input-file %build-inputs "/bin/unzip")))
9769 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9770 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9771 (install-file "readme.txt" doc))
9772 (install-file "queen.1c" data)
9773 (mkdir-p bin)
9774 (let ((bash (assoc-ref %build-inputs "bash")))
9775 (with-output-to-file executable
9776 (lambda ()
9777 (format #t "#!~a/bin/bash~%" bash)
9778 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9779 scummvm data))))
9780 (chmod executable #o755)
9781 ;; Create desktop file. There is no dedicated
9782 ;; icon for the game, so we borrow SCUMMVM's.
9783 (mkdir-p apps)
9784 (with-output-to-file (string-append apps "/" ,name ".desktop")
9785 (lambda _
9786 (format #t
9787 "[Desktop Entry]~@
9788 Name=Flight of the Amazon Queen~@
9789 GenericName=Queen~@
9790 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~@
9791 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~@
9792 Type=Application~@
9793 Exec=~a~@
9794 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9795 Categories=AdventureGame;Game;RolePlaying;~@
9796 Keywords=adventure;game;roleplaying;fantasy;~%"
9797 executable scummvm))))
9798 #t)))
9799 (native-inputs
9800 `(("unzip" ,unzip)))
9801 (inputs
9802 `(("bash" ,bash)
9803 ("scummvm" ,scummvm)))
9804 (home-page "https://www.scummvm.org/")
9805 (synopsis "Classic 2D point and click adventure game")
9806 (description "Flight of the Amazon Queen is a 2D point-and-click
9807 adventure game set in the 1940s.
9808
9809 You assume the role of Joe King, a pilot for hire who is given the job
9810 of flying Faye Russell (a famous movie star) into the Amazon jungle
9811 for a photo shoot. Of course, things never go according to plans.
9812 After an unfortunate turn of events they find themselves stranded in
9813 the heart of the Amazon jungle, where Joe will embark on a quest to
9814 rescue a kidnapped princess and in the process, discover the true
9815 sinister intentions of a suspiciously located Lederhosen company. In
9816 a rich 2D environment, Joe will cross paths with a variety of unlikely
9817 jungle inhabitants including, but not limited to, a tribe of Amazon
9818 women and 6-foot-tall pygmies.")
9819 (license (license:non-copyleft "file:///readme.txt"))))
9820
9821 (define-public queen
9822 (make-queen-package
9823 "queen" "FOTAQ_Talkie-" "1.1" "en"
9824 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9825
9826 (define-public queen-de
9827 (make-queen-package
9828 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9829 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9830
9831 (define-public queen-fr
9832 (make-queen-package
9833 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9834 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9835
9836 (define-public queen-it
9837 (make-queen-package
9838 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9839 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9840
9841 (define-public sky
9842 (package
9843 (name "sky")
9844 (version "1.2") ;1.3 is floppy version
9845 (source
9846 (origin
9847 (method url-fetch)
9848 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9849 "Beneath%20a%20Steel%20Sky/"
9850 "bass-cd-" version ".zip"))
9851 (sha256
9852 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9853 (build-system trivial-build-system)
9854 (arguments
9855 `(#:modules ((guix build utils))
9856 #:builder
9857 (begin
9858 (use-modules (guix build utils))
9859 (let* ((out (assoc-ref %outputs "out"))
9860 (share (string-append out "/share"))
9861 (data (string-append share "/" ,name))
9862 (apps (string-append share "/applications"))
9863 (bin (string-append out "/bin"))
9864 (executable (string-append bin "/" ,name))
9865 (scummvm (assoc-ref %build-inputs "scummvm")))
9866 (let ((unzip (search-input-file %build-inputs "/bin/unzip")))
9867 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9868 (let ((doc (string-append share "/doc/bass-" ,version)))
9869 (install-file "readme.txt" doc))
9870 (for-each (lambda (f) (install-file f data))
9871 (find-files "." "^sky\\."))
9872 ;; Build the executable.
9873 (mkdir-p bin)
9874 (let ((bash (assoc-ref %build-inputs "bash")))
9875 (with-output-to-file executable
9876 (lambda ()
9877 (format #t "#!~a/bin/bash~%" bash)
9878 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9879 (chmod executable #o755)
9880 ;; Create desktop file. There is no dedicated
9881 ;; icon for the game, so we borrow SCUMMVM's.
9882 (mkdir-p apps)
9883 (with-output-to-file (string-append apps "/" ,name ".desktop")
9884 (lambda _
9885 (format #t
9886 "[Desktop Entry]~@
9887 Name=Beneath a Steel Sky~@
9888 GenericName=Bass~@
9889 Exec=~a~@
9890 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9891 Categories=AdventureGame;Game;RolePlaying;~@
9892 Keywords=adventure;game;roleplaying;cyberpunk;~@
9893 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9894 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9895 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9896 Type=Application~%"
9897 executable scummvm)))
9898 #t))))
9899 (native-inputs
9900 `(("unzip" ,unzip)))
9901 (inputs
9902 `(("bash" ,bash)
9903 ("scummvm" ,scummvm)))
9904 (home-page "https://www.scummvm.org/")
9905 (synopsis "Classic 2D point and click science-fiction adventure game")
9906 (description
9907 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9908 post-apocalyptic vision of the future. It revolves around Union City,
9909 where selfishness, rivalry, and corruption by its citizens seems to be
9910 all too common, those who can afford it live underground, away from
9911 the pollution and social problems which are plaguing the city.
9912
9913 You take on the role of Robert Foster, an outcast of sorts from the
9914 city since a boy who was raised in a remote environment outside of
9915 Union City simply termed ``the gap''. Robert's mother took him away
9916 from Union City as a child on their way to ``Hobart'' but the
9917 helicopter crashed on its way. Unfortunately, Robert's mother died,
9918 but he survived and was left to be raised by a local tribe from the
9919 gap.
9920
9921 Years later, Union City security drops by and abducts Robert, killing
9922 his tribe in the process; upon reaching the city the helicopter taking
9923 him there crashes with him escaping, high upon a tower block in the
9924 middle of the city. He sets out to discover the truth about his past,
9925 and to seek vengeance for the killing of his tribe.")
9926 (license (license:non-copyleft "file:///readme.txt"))))
9927
9928 (define-public gnurobots
9929 (package
9930 (name "gnurobots")
9931 (version "1.2.0")
9932 (source
9933 (origin
9934 (method url-fetch)
9935 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9936 version ".tar.gz"))
9937 (sha256
9938 (base32
9939 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9940 (build-system gnu-build-system)
9941 (inputs
9942 `(("glib" ,glib)
9943 ("gtk+" ,gtk+-2)
9944 ("vte" ,vte/gtk+-2)
9945 ("readline" ,readline)
9946 ("guile" ,guile-1.8)))
9947 (native-inputs
9948 `(("pkg-config" ,pkg-config)))
9949 (arguments
9950 `(#:make-flags
9951 (list
9952 ;; Do not abort build on "deprecated-declarations" warnings.
9953 "CFLAGS=-Wno-error=deprecated-declarations"
9954 ;; Find readline headers in sub-directory.
9955 (string-append "READLINE_CFLAGS=-I"
9956 (assoc-ref %build-inputs "readline")
9957 "/include/readline/"))
9958 #:phases
9959 (modify-phases %standard-phases
9960 (add-after 'install 'install-doc
9961 (lambda* (#:key outputs #:allow-other-keys)
9962 (install-file "doc/Robots-HOWTO"
9963 (string-append (assoc-ref outputs "out")
9964 "/share/doc/gnurobots-"
9965 ,version))
9966 #t)))))
9967 (home-page "https://www.gnu.org/software/gnurobots/")
9968 (synopsis "Program a little robot and watch it explore a world")
9969 (description
9970 "GNU Robots is a game in which you program a robot to explore a world
9971 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9972 the game is to stay alive and collect prizes. The robot program conveniently
9973 may be written in a plain text file in the Scheme programming language.")
9974 (license license:gpl3+)))
9975
9976 (define-public ri-li
9977 (package
9978 (name "ri-li")
9979 (version "2.0.1")
9980 (source (origin
9981 (method url-fetch)
9982 (uri (string-append "mirror://sourceforge/ri-li/"
9983 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9984 "Ri-li-" version ".tar.bz2"))
9985 (sha256
9986 (base32
9987 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9988 ;; Taken from
9989 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9990 ;; It doesn't build otherwise.
9991 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9992 (build-system gnu-build-system)
9993 (arguments
9994 `(#:phases
9995 (modify-phases %standard-phases
9996 ;; Remove "gentoo" subdirectory from Makefile, as it is
9997 ;; missing a make file and generates a build failure.
9998 (add-after 'configure 'fix-build
9999 (lambda _
10000 (substitute* "Makefile"
10001 ((" gentoo") ""))
10002 #t))
10003 (add-after 'install 'install-desktop-file
10004 (lambda* (#:key outputs #:allow-other-keys)
10005 (let* ((out (assoc-ref outputs "out"))
10006 (apps (string-append out "/share/applications"))
10007 (pixmaps (string-append out "/share/pixmaps")))
10008 (for-each (lambda (f) (install-file f pixmaps))
10009 (find-files "data" "\\.(png|ico)$"))
10010 (mkdir-p apps)
10011 (with-output-to-file (string-append apps "/ri-li.desktop")
10012 (lambda _
10013 (format #t
10014 "[Desktop Entry]~@
10015 Name=Ri-li~@
10016 Exec=~a/bin/Ri_li~@
10017 Icon=~a/Ri-li-icon-32x32.png~@
10018 Categories=Game;ArcadeGame;~@
10019 Keywords=toy;train;wooden;snake-like;engine;~@
10020 Comment=a toy simulator game~@
10021 Comment[de]=Ein Spiel mit einem kleinen Zug~@
10022 Comment[fr]=un jeu de petit train~@
10023 Comment[ro_RO]=un joc cu un tren de jucărie~@
10024 Terminal=false~@
10025 Type=Application~%"
10026 out pixmaps))))
10027 #t))
10028 (add-after 'install-desktop-file 'remove-spurious-files
10029 ;; Delete redundant files already installed somewhere else.
10030 (lambda* (#:key outputs #:allow-other-keys)
10031 (let ((out (assoc-ref outputs "out")))
10032 (for-each delete-file
10033 (find-files (string-append out "/share/Ri-li")
10034 "\\.(png|ico)|COPYING"))
10035 #t))))))
10036 (inputs
10037 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
10038 (home-page "http://www.ri-li.org")
10039 (synopsis "Toy train simulation game")
10040 (description "Ri-li is a game in which you drive a wooden toy
10041 steam locomotive across many levels and collect all the coaches to
10042 win.")
10043 ;; The project is dual-licensed GPL2+ and GPL3+.
10044 (license (list license:gpl2+ license:gpl3+))))
10045
10046 (define-public freeorion
10047 (package
10048 (name "freeorion")
10049 (version "0.4.10.2")
10050 (source
10051 (origin
10052 (method git-fetch)
10053 (uri (git-reference
10054 (url "https://github.com/freeorion/freeorion")
10055 (commit (string-append "v" version))))
10056 (sha256
10057 (base32 "12fhwa3cs6lvdbdhina310qk2g7zcphldsh7ibsbxn8d1m731xlk"))
10058 (file-name (git-file-name name version))
10059 (modules '((guix build utils)))
10060 (snippet
10061 '(begin
10062 ;; There are some bundled fonts.
10063 (for-each delete-file-recursively '("default/data/fonts"))))))
10064 (build-system cmake-build-system)
10065 (arguments
10066 '(#:tests? #f ;no test
10067 #:phases
10068 (modify-phases %standard-phases
10069 (add-after 'unpack 'unbundle-fonts
10070 (lambda* (#:key inputs #:allow-other-keys)
10071 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
10072 "/share/fonts/truetype/")))
10073 (substitute* "UI/ClientUI.cpp"
10074 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
10075 all type)
10076 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
10077 #t))))))
10078 (inputs
10079 `(("boost" ,boost)
10080 ("boost_signals" ,boost-signals2)
10081 ("font-dejavu" ,font-dejavu)
10082 ("font-roboto" ,font-google-roboto)
10083 ("freetype2" ,freetype)
10084 ("glew" ,glew)
10085 ("glu" ,glu)
10086 ("libogg" ,libogg)
10087 ("libpng" ,libpng)
10088 ("libvorbis" ,libvorbis)
10089 ("openal" ,openal)
10090 ("python" ,python)
10091 ("sdl2" ,sdl2)
10092 ("zlib" ,zlib)))
10093 (home-page "https://www.freeorion.org/index.php/Main_Page")
10094 (synopsis "Turn-based space empire and galactic conquest computer game")
10095 (description
10096 "FreeOrion is a turn-based space empire and galactic conquest (4X)
10097 computer game being designed and built by the FreeOrion project. Control an
10098 empire with the goal of exploring the galaxy, expanding your territory,
10099 exploiting the resources, and exterminating rival alien empires. FreeOrion is
10100 inspired by the tradition of the Master of Orion games, but is not a clone or
10101 remake of that series or any other game.")
10102 ;; Source code is released under gpl2. Artwork, music and sounds, and
10103 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
10104 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
10105 ;; released under lgpl2.1+.
10106 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
10107
10108 (define-public leela-zero
10109 (package
10110 (name "leela-zero")
10111 (version "0.17")
10112 (source
10113 (origin
10114 (method git-fetch)
10115 (uri (git-reference
10116 (url "https://github.com/leela-zero/leela-zero")
10117 (commit (string-append "v" version))))
10118 (file-name (git-file-name name version))
10119 (sha256
10120 (base32
10121 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
10122 (patches (search-patches "leela-zero-gtest.patch"))))
10123 (build-system cmake-build-system)
10124 (native-inputs
10125 `(("googletest" ,googletest)))
10126 (inputs
10127 `(("boost" ,boost)
10128 ("opencl-icd-loader" ,opencl-icd-loader)
10129 ("openblas" ,openblas)
10130 ("opencl-headers" ,opencl-headers)
10131 ("qtbase" ,qtbase-5)
10132 ("zlib" ,zlib)))
10133 (arguments
10134 '(#:configure-flags '("-DUSE_BLAS=YES")
10135 #:phases (modify-phases %standard-phases
10136 (add-before 'configure 'fix-tests
10137 (lambda* (#:key outputs #:allow-other-keys)
10138 (let ((home (getcwd)))
10139 (setenv "HOME" home)
10140 (substitute* "src/tests/gtests.cpp"
10141 (("\\.\\./src/tests/0k\\.txt")
10142 (string-append home "/src/tests/0k.txt"))
10143 (("cfg_gtp_mode = true;")
10144 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
10145 #t))
10146 (replace 'check
10147 (lambda _
10148 (invoke "./tests"))))))
10149 (home-page "https://github.com/leela-zero/leela-zero")
10150 (synopsis "Program playing the game of Go")
10151 (description
10152 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
10153 the AlphaGo Zero paper. The current best network weights file for the engine
10154 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
10155 (license license:gpl3+)))
10156
10157 (define-public q5go
10158 (package
10159 (name "q5go")
10160 (version "1.0")
10161 (source (origin
10162 (method git-fetch)
10163 (uri (git-reference
10164 (url "https://github.com/bernds/q5Go")
10165 (commit (string-append "q5go-" version))))
10166 (file-name (git-file-name name version))
10167 (sha256
10168 (base32
10169 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
10170 (build-system gnu-build-system)
10171 (native-inputs
10172 `(("pkg-config" ,pkg-config)))
10173 (inputs
10174 `(("qtbase" ,qtbase-5)
10175 ("qtmultimedia" ,qtmultimedia)
10176 ("qtsvg" ,qtsvg)))
10177 (arguments
10178 '(#:phases
10179 (modify-phases %standard-phases
10180 (add-after 'unpack 'fix-configure-script
10181 (lambda _
10182 ;; Bypass the unavailable qtchooser program.
10183 (substitute* "configure"
10184 (("test -z \"QTCHOOSER\"")
10185 "false")
10186 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
10187 command))
10188 #t))
10189 (add-after 'unpack 'fix-header
10190 (lambda _
10191 (substitute* "src/bitarray.h"
10192 (("#include <cstring>" all)
10193 (string-append all "\n#include <stdexcept>")))))
10194 (add-after 'unpack 'fix-paths
10195 (lambda _
10196 (substitute* '("src/pics/Makefile.in"
10197 "src/translations/Makefile.in")
10198 (("\\$\\(datadir\\)/qGo/")
10199 "$(datadir)/q5go/"))
10200 #t))
10201 (add-after 'install 'install-desktop-file
10202 (lambda* (#:key outputs #:allow-other-keys)
10203 (let* ((out (assoc-ref outputs "out"))
10204 (apps (string-append out "/share/applications"))
10205 (pics (string-append out "/share/q5go/pics")))
10206 (delete-file-recursively (string-append out "/share/applnk"))
10207 (delete-file-recursively (string-append out "/share/mimelnk"))
10208 (install-file "../source/src/pics/Bowl.ico" pics)
10209 (mkdir-p apps)
10210 (with-output-to-file (string-append apps "/q5go.desktop")
10211 (lambda _
10212 (format #t
10213 "[Desktop Entry]~@
10214 Name=q5go~@
10215 Exec=~a/bin/q5go~@
10216 Icon=~a/Bowl.ico~@
10217 Categories=Game;~@
10218 Comment=Game of Go~@
10219 Comment[de]=Spiel des Go~@
10220 Comment[eo]=Goo~@
10221 Comment[es]=Juego de Go~@
10222 Comment[fr]=Jeu de Go~@
10223 Comment[ja]=囲碁~@
10224 Comment[ko]=바둑~@
10225 Comment[zh]=围棋~@
10226 Terminal=false~@
10227 Type=Application~%"
10228 out pics))))
10229 #t)))))
10230 (synopsis "Qt GUI to play the game of Go")
10231 (description
10232 "This a tool for Go players which performs the following functions:
10233 @itemize
10234 @item SGF editor,
10235 @item Analysis frontend for Leela Zero (or compatible engines),
10236 @item GTP interface (to play against an engine),
10237 @item IGS client (to play on the internet),
10238 @item Export games to a variety of formats.
10239 @end itemize")
10240 (home-page "https://github.com/bernds/q5Go")
10241 (license license:gpl2+)))
10242
10243 (define-public ktuberling
10244 (package
10245 (name "ktuberling")
10246 (version "20.12.0")
10247 (source
10248 (origin
10249 (method url-fetch)
10250 (uri (string-append "mirror://kde/stable/release-service/" version
10251 "/src/ktuberling-" version ".tar.xz"))
10252 (sha256
10253 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
10254 (build-system qt-build-system)
10255 (native-inputs
10256 `(("extra-cmake-modules" ,extra-cmake-modules)
10257 ("kdoctools" ,kdoctools)
10258 ("perl" ,perl)))
10259 (inputs
10260 `(("kcompletion" ,kcompletion)
10261 ("kconfigwidgets" ,kconfigwidgets)
10262 ("kcoreaddons" ,kcoreaddons)
10263 ("kcrash" ,kcrash)
10264 ("kdbusaddons" ,kdbusaddons)
10265 ("ki18n" ,ki18n)
10266 ("kio" ,kio)
10267 ("kwidgetsaddons" ,kwidgetsaddons)
10268 ("kxmlgui" ,kxmlgui)
10269 ("libkdegames" ,libkdegames)
10270 ("python" ,python-wrapper)
10271 ("qtbase" ,qtbase-5)
10272 ("qtmultimedia" ,qtmultimedia)
10273 ("qtdeclarative" ,qtdeclarative)
10274 ("qtsvg" ,qtsvg)))
10275 (home-page "https://games.kde.org/")
10276 (synopsis "Stamp drawing toy")
10277 (description "KTuberling is a drawing toy intended for small children and
10278 adults who remain young at heart. The game has no winner; the only purpose is
10279 to make the funniest faces you can. Several activities are possible, e.g.:
10280
10281 @itemize
10282 @item Give the potato a funny face, clothes, and other goodies
10283 @item Build a small town, complete with school, zoo, and fire department
10284 @item Create a fantastic moonscape with spaceships and aliens
10285 @item Top a pizza
10286 @end itemize
10287
10288 KTuberling can speak the name of each the object in several languages,
10289 to assist in learning basic vocabulary.
10290
10291 This package is part of the KDE games module.")
10292 (license (list license:gpl2+ license:fdl1.2+))))
10293
10294 (define-public picmi
10295 (package
10296 (name "picmi")
10297 (version "20.12.0")
10298 (source
10299 (origin
10300 (method url-fetch)
10301 (uri (string-append "mirror://kde/stable/release-service/" version
10302 "/src/picmi-" version ".tar.xz"))
10303 (sha256
10304 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
10305 (build-system qt-build-system)
10306 (native-inputs
10307 `(("extra-cmake-modules" ,extra-cmake-modules)
10308 ("kdoctools" ,kdoctools)))
10309 (inputs
10310 `(("kcoreaddons" ,kcoreaddons)
10311 ("kcrash" ,kcrash)
10312 ("kdbusaddons" ,kdbusaddons)
10313 ("kdeclarative" ,kdeclarative)
10314 ("ki18n" ,ki18n)
10315 ("kio" ,kio)
10316 ("knewstuff" ,knewstuff)
10317 ("kxmlgui" ,kxmlgui)
10318 ("libkdegames" ,libkdegames)
10319 ("qtbase" ,qtbase-5)
10320 ("qtdeclarative" ,qtdeclarative)
10321 ("qtsvg" ,qtsvg)))
10322 (home-page "https://games.kde.org/")
10323 (synopsis "Number logic game")
10324 (description "Picmi is a number logic game in which cells in a grid have
10325 to be colored or left blank according to numbers given at the side of the
10326 grid. The aim is to reveal a hidden picture.
10327
10328 This package is part of the KDE games module.")
10329 (license (list license:gpl2+ license:fdl1.2+))))
10330
10331 (define-public kolf
10332 (package
10333 (name "kolf")
10334 (version "20.12.0")
10335 (source
10336 (origin
10337 (method url-fetch)
10338 (uri (string-append "mirror://kde/stable/release-service/" version
10339 "/src/kolf-" version ".tar.xz"))
10340 (sha256
10341 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10342 (build-system qt-build-system)
10343 (native-inputs
10344 `(("extra-cmake-modules" ,extra-cmake-modules)
10345 ("kdoctools" ,kdoctools)))
10346 (inputs
10347 `(("kcompletion" ,kcompletion)
10348 ("kconfigwidgets" ,kconfigwidgets)
10349 ("kcoreaddons" ,kcoreaddons)
10350 ("kcrash" ,kcrash)
10351 ("kdbusaddons" ,kdbusaddons)
10352 ("ki18n" ,ki18n)
10353 ("kio" ,kio)
10354 ("kwidgetsaddons" ,kwidgetsaddons)
10355 ("kxmlgui" ,kxmlgui)
10356 ("ktextwidgets" ,ktextwidgets)
10357 ("libkdegames" ,libkdegames)
10358 ("qtbase" ,qtbase-5)
10359 ("qtdeclarative" ,qtdeclarative)))
10360 (home-page "https://games.kde.org/")
10361 (synopsis "Miniature golf game")
10362 (description "Kolf is a miniature golf game for one to ten players. The
10363 game is played from an overhead view, with a short bar representing the golf
10364 club. Kolf features many different types of objects, such as water hazards,
10365 slopes, sand traps, and black holes (warps), among others.
10366
10367 Features are:
10368 @itemize
10369 @item Single and Multi-player (up to ten players) modes
10370 @item High scores table
10371 @item Dynamic courses
10372 @item Third-party courses
10373 @item Course editor
10374 @end itemize
10375
10376 This package is part of the KDE games module.")
10377 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10378
10379 (define-public libkmahjongg
10380 (package
10381 (name "libkmahjongg")
10382 (version "20.12.0")
10383 (source
10384 (origin
10385 (method url-fetch)
10386 (uri (string-append "mirror://kde/stable/release-service/"
10387 version "/src/libkmahjongg-" version ".tar.xz"))
10388 (sha256
10389 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10390 (build-system qt-build-system)
10391 (native-inputs
10392 `(("extra-cmake-modules" ,extra-cmake-modules)))
10393 (inputs
10394 `(("kauth" ,kauth)
10395 ("kcompletion" ,kcompletion)
10396 ;("kconfig" ,kconfig)
10397 ("kcodecs" ,kcodecs)
10398 ("kconfigwidgets" ,kconfigwidgets)
10399 ("kcoreaddons" ,kcoreaddons)
10400 ("ki18n" ,ki18n)
10401 ("kwidgetsaddons" ,kwidgetsaddons)
10402 ("qtbase" ,qtbase-5)
10403 ("qtsvg" ,qtsvg)))
10404 (home-page "https://games.kde.org/")
10405 (synopsis "Shared library for kmahjongg and kshisen")
10406 (description "Shared library and common files for kmahjongg, kshisen and
10407 other Mah Jongg like games.")
10408 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10409
10410 (define-public kmahjongg
10411 (package
10412 (name "kmahjongg")
10413 (version "20.12.0")
10414 (source
10415 (origin
10416 (method url-fetch)
10417 (uri (string-append "mirror://kde/stable/release-service/"
10418 version "/src/kmahjongg-" version ".tar.xz"))
10419 (sha256
10420 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10421 (build-system qt-build-system)
10422 (native-inputs
10423 `(("extra-cmake-modules" ,extra-cmake-modules)
10424 ("kdoctools" ,kdoctools)))
10425 (inputs
10426 `(("kcompletion" ,kcompletion)
10427 ("kcrash" ,kcrash)
10428 ("kdbusaddons" ,kdbusaddons)
10429 ("kdeclarative" ,kdeclarative)
10430 ("ki18n" ,ki18n)
10431 ("knewstuff" ,knewstuff)
10432 ("kxmlgui" ,kxmlgui)
10433 ("libkdegames" ,libkdegames)
10434 ("libkmahjongg" ,libkmahjongg)
10435 ("qtbase" ,qtbase-5)
10436 ("qtdeclarative" ,qtdeclarative)
10437 ("qtsvg" ,qtsvg)))
10438 (home-page "https://games.kde.org/")
10439 (synopsis "Tile laying patience")
10440 (description "In KMahjongg the tiles are scrambled and staked on top of
10441 each other to resemble a certain shape. The player is then expected to remove
10442 all the tiles off the game board by locating each tile's matching pair.
10443
10444 A variety of tile layouts are included, as well as an editor to create new
10445 layouts.
10446
10447 This package is part of the KDE games module.")
10448 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10449
10450 (define-public kshisen
10451 (package
10452 (name "kshisen")
10453 (version "20.12.0")
10454 (source
10455 (origin
10456 (method url-fetch)
10457 (uri (string-append "mirror://kde/stable/release-service/"
10458 version "/src/kshisen-" version ".tar.xz"))
10459 (sha256
10460 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10461 (build-system qt-build-system)
10462 (native-inputs
10463 `(("extra-cmake-modules" ,extra-cmake-modules)
10464 ;("perl" ,perl)
10465 ;("pkg-config" ,pkg-config)
10466 ("kdoctools" ,kdoctools)))
10467 (inputs
10468 `(("kauth" ,kauth)
10469 ("kcompletion" ,kcompletion)
10470 ("kconfigwidgets" ,kconfigwidgets)
10471 ("kcoreaddons" ,kcoreaddons)
10472 ("kcrash" ,kcrash)
10473 ("kdbusaddons" ,kdbusaddons)
10474 ("ki18n" ,ki18n)
10475 ("kxmlgui" ,kxmlgui)
10476 ("libkdegames" ,libkdegames)
10477 ("libkmahjongg" ,libkmahjongg)
10478 ("qtbase" ,qtbase-5)
10479 ("qtdeclarative" ,qtdeclarative)))
10480 (home-page "https://games.kde.org/")
10481 (synopsis "Shisen-Sho solitaire game")
10482 (description "KShisen is a solitaire-like game played using the standard
10483 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10484 scrambled tiles
10485
10486 This package is part of the KDE games module.")
10487 (license license:gpl2+)))
10488
10489 (define-public kajongg
10490 (package
10491 (name "kajongg")
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/kajongg-" version ".tar.xz"))
10498 (sha256
10499 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10500 (build-system qt-build-system)
10501 (arguments
10502 `(#:phases
10503 (modify-phases %standard-phases
10504 (add-after 'unpack 'fix-paths
10505 (lambda* (#:key inputs #:allow-other-keys)
10506 (substitute* "src/mjresource.py"
10507 (("'share', 'kmahjongglib'" all)
10508 (string-append "'" (assoc-ref inputs "libkmahjongg")
10509 "/share', 'kmahjongglib'")))))
10510 (add-after 'qt-wrap 'wrap
10511 (lambda* (#:key outputs #:allow-other-keys)
10512 (let ((out (assoc-ref outputs "out")))
10513 (for-each (lambda (program)
10514 (wrap-program program
10515 `("GUIX_PYTHONPATH" ":" prefix
10516 (,(getenv "GUIX_PYTHONPATH")))))
10517 (list (string-append out "/bin/kajongg")
10518 (string-append out "/bin/kajonggserver")))))))))
10519 (native-inputs
10520 `(("extra-cmake-modules" ,extra-cmake-modules)
10521 ;("perl" ,perl)
10522 ("kdoctools" ,kdoctools)))
10523 (inputs
10524 `(("kconfig" ,kconfig)
10525 ("kconfigwidgets" ,kconfigwidgets)
10526 ("kcoreaddons" ,kcoreaddons)
10527 ("ki18n" ,ki18n)
10528 ("libkmahjongg" ,libkmahjongg)
10529 ("python" ,python)
10530 ("python-twisted" ,python-twisted)
10531 ("python-pyqt" ,python-pyqt)
10532 ("python-zope-interface" ,python-zope-interface)
10533 ("qtbase" ,qtbase-5)
10534 ("qtsvg" ,qtsvg)))
10535 (home-page "https://games.kde.org/")
10536 (synopsis "Classical Mah Jongg game for 4 players")
10537 (description "Kajongg is the ancient Chinese board game for 4 players.
10538
10539 If you are looking for the Mah Jongg solitaire please use the application
10540 kmahjongg.
10541
10542 Kajongg can be used in two different ways: Scoring a manual game where you
10543 play as always and use Kajongg for the computation of scores and for
10544 bookkeeping. Or you can use Kajongg to play against any combination of other
10545 human players or computer players.
10546
10547 This package is part of the KDE games module.")
10548 (license (list license:gpl2+ license:fdl1.2+))))
10549
10550 (define-public kbreakout
10551 (package
10552 (name "kbreakout")
10553 (version "20.12.0")
10554 (source
10555 (origin
10556 (method url-fetch)
10557 (uri (string-append "mirror://kde/stable/release-service/" version
10558 "/src/kbreakout-" version ".tar.xz"))
10559 (sha256
10560 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10561 (build-system qt-build-system)
10562 (native-inputs
10563 `(("extra-cmake-modules" ,extra-cmake-modules)
10564 ("kdoctools" ,kdoctools)))
10565 (inputs
10566 `(("kcompletion" ,kcompletion)
10567 ("kconfig" ,kconfig)
10568 ("kconfigwidgets" ,kconfigwidgets)
10569 ("kcoreaddons" ,kcoreaddons)
10570 ("kcrash" ,kcrash)
10571 ("kdbusaddons" ,kdbusaddons)
10572 ("ki18n" ,ki18n)
10573 ("kwidgetsaddons" ,kwidgetsaddons)
10574 ("kxmlgui" ,kxmlgui)
10575 ("libkdegames" ,libkdegames)
10576 ("qtbase" ,qtbase-5)
10577 ("qtdeclarative" ,qtdeclarative)))
10578 (home-page "https://games.kde.org/")
10579 (synopsis "Breakout like game")
10580 (description "KBreakout is similar to the classics breakout and xboing,
10581 featuring a number of added graphical enhancements and effects. You control a
10582 paddle at the bottom of the playing-field, and must destroy bricks at the top
10583 by bouncing balls against them.
10584
10585 This package is part of the KDE games module.")
10586 (license (list license:gpl2+ license:fdl1.2+))))
10587
10588 (define-public kmines
10589 (package
10590 (name "kmines")
10591 (version "20.12.0")
10592 (source
10593 (origin
10594 (method url-fetch)
10595 (uri (string-append "mirror://kde/stable/release-service/" version
10596 "/src/kmines-" version ".tar.xz"))
10597 (sha256
10598 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10599 (build-system qt-build-system)
10600 (native-inputs
10601 `(("extra-cmake-modules" ,extra-cmake-modules)
10602 ("kdoctools" ,kdoctools)))
10603 (inputs
10604 `(("kcompletion" ,kcompletion)
10605 ("kconfig" ,kconfig)
10606 ("kconfigwidgets" ,kconfigwidgets)
10607 ("kcoreaddons" ,kcoreaddons)
10608 ("kcrash" ,kcrash)
10609 ("kdbusaddons" ,kdbusaddons)
10610 ("ki18n" ,ki18n)
10611 ("ktextwidgets" ,ktextwidgets)
10612 ("kwidgetsaddons" ,kwidgetsaddons)
10613 ("kxmlgui" ,kxmlgui)
10614 ("libkdegames" ,libkdegames)
10615 ("qtbase" ,qtbase-5)
10616 ("qtdeclarative" ,qtdeclarative)))
10617 (home-page "https://games.kde.org/")
10618 (synopsis "Classical mine sweeper game")
10619 (description "KMines is a classic Minesweeper game. The idea is to
10620 uncover all the squares without blowing up any mines. When a mine is blown
10621 up, the game is over.
10622
10623 This package is part of the KDE games module.")
10624 (license (list license:gpl2+ license:fdl1.2+))))
10625
10626 (define-public konquest
10627 (package
10628 (name "konquest")
10629 (version "20.12.0")
10630 (source
10631 (origin
10632 (method url-fetch)
10633 (uri (string-append "mirror://kde/stable/release-service/"
10634 version "/src/konquest-" version ".tar.xz"))
10635 (sha256
10636 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10637 (build-system qt-build-system)
10638 (native-inputs
10639 `(("extra-cmake-modules" ,extra-cmake-modules)
10640 ("kdoctools" ,kdoctools)))
10641 (inputs
10642 `(("kcompletion" ,kcompletion)
10643 ("kconfig" ,kconfig)
10644 ("kcoreaddons" ,kcoreaddons)
10645 ("kcrash" ,kcrash)
10646 ("kdbusaddons" ,kdbusaddons)
10647 ("kguiaddons" ,kguiaddons)
10648 ("ki18n" ,ki18n)
10649 ("kwidgetsaddons" ,kwidgetsaddons)
10650 ("kxmlgui" ,kxmlgui)
10651 ("libkdegames" ,libkdegames)
10652 ("qtbase" ,qtbase-5)
10653 ("qtdeclarative" ,qtdeclarative)
10654 ("qtsvg" ,qtsvg)))
10655 (home-page "https://games.kde.org/")
10656 (synopsis "Simple turn-based strategy game")
10657 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10658 conquer other planets by sending ships to them. The goal is to build an
10659 interstellar empire and ultimately conquer all other player's planets. The
10660 game can be played with up to nine empires, commanded either by the computer
10661 or by puny earthlings.
10662
10663 This package is part of the KDE games module.")
10664 (license (list license:gpl2+ license:fdl1.2+))))
10665
10666 (define-public kbounce
10667 (package
10668 (name "kbounce")
10669 (version "20.12.0")
10670 (source
10671 (origin
10672 (method url-fetch)
10673 (uri (string-append "mirror://kde/stable/release-service/"
10674 version "/src/kbounce-" version ".tar.xz"))
10675 (sha256
10676 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10677 (build-system qt-build-system)
10678 (native-inputs
10679 `(("extra-cmake-modules" ,extra-cmake-modules)
10680 ("kdoctools" ,kdoctools)))
10681 (inputs
10682 `(("kcompletion" ,kcompletion)
10683 ("kconfigwidgets" ,kconfigwidgets)
10684 ("kcoreaddons" ,kcoreaddons)
10685 ("kcrash" ,kcrash)
10686 ("kdbusaddons" ,kdbusaddons)
10687 ("ki18n" ,ki18n)
10688 ("kio" ,kio)
10689 ("kwidgetsaddons" ,kwidgetsaddons)
10690 ("kxmlgui" ,kxmlgui)
10691 ("libkdegames" ,libkdegames)
10692 ("qtbase" ,qtbase-5)
10693 ("qtdeclarative" ,qtdeclarative)
10694 ("qtsvg" ,qtsvg)))
10695 (home-page "https://games.kde.org/")
10696 (synopsis "Jezzball arcade game")
10697 (description "KBounce is a single player arcade game with the elements of
10698 puzzle. It is played on a field, surrounded by wall, with two or more balls
10699 bouncing around within the walls. The object of the game is to build new
10700 walls to decrease the size of the active field.
10701
10702 This package is part of the KDE games module.")
10703 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10704
10705 (define-public kblocks
10706 (package
10707 (name "kblocks")
10708 (version "20.12.0")
10709 (source
10710 (origin
10711 (method url-fetch)
10712 (uri (string-append "mirror://kde/stable/release-service/"
10713 version "/src/kblocks-" version ".tar.xz"))
10714 (sha256
10715 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10716 (build-system qt-build-system)
10717 (native-inputs
10718 `(("extra-cmake-modules" ,extra-cmake-modules)
10719 ("kdoctools" ,kdoctools)))
10720 (inputs
10721 `(("kcompletion" ,kcompletion)
10722 ("kconfig" ,kconfig)
10723 ("kconfigwidgets" ,kconfigwidgets)
10724 ("kcoreaddons" ,kcoreaddons)
10725 ("kcrash" ,kcrash)
10726 ("kdbusaddons" ,kdbusaddons)
10727 ("ki18n" ,ki18n)
10728 ("kwidgetsaddons" ,kwidgetsaddons)
10729 ("kxmlgui" ,kxmlgui)
10730 ("libkdegames" ,libkdegames)
10731 ("qtbase" ,qtbase-5)
10732 ("qtdeclarative" ,qtdeclarative)
10733 ("qtsvg" ,qtsvg)))
10734 (home-page "https://games.kde.org/")
10735 (synopsis "Single player falling blocks puzzle game")
10736 (description "KBlocks is the classic Tetris-like falling blocks game.
10737
10738 The idea is to stack the falling blocks to create horizontal lines without any
10739 gaps. When a line is completed it is removed, and more space is available in
10740 the play area. When there is not enough space for blocks to fall, the game is
10741 over.
10742
10743 This package is part of the KDE games module.")
10744 (license (list license:gpl2+ license:fdl1.2+))))
10745
10746 (define-public ksudoku
10747 (package
10748 (name "ksudoku")
10749 (version "20.12.0")
10750 (source
10751 (origin
10752 (method url-fetch)
10753 (uri (string-append "mirror://kde/stable/release-service/"
10754 version "/src/ksudoku-" version ".tar.xz"))
10755 (sha256
10756 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10757 (build-system qt-build-system)
10758 (native-inputs
10759 `(("extra-cmake-modules" ,extra-cmake-modules)
10760 ("kdoctools" ,kdoctools)))
10761 (inputs
10762 `(("karchive" ,karchive)
10763 ("kconfig" ,kconfig)
10764 ("kconfigwidgets" ,kconfigwidgets)
10765 ("kcoreaddons" ,kcoreaddons)
10766 ("kcrash" ,kcrash)
10767 ("kguiaddons" ,kguiaddons)
10768 ("ki18n" ,ki18n)
10769 ("kiconthemes" ,kiconthemes)
10770 ("kio" ,kio)
10771 ("kwidgetsaddons" ,kwidgetsaddons)
10772 ("kxmlgui" ,kxmlgui)
10773 ("libkdegames" ,libkdegames)
10774 ("glu" ,glu)
10775 ("qtbase" ,qtbase-5)
10776 ("qtdeclarative" ,qtdeclarative)
10777 ("qtsvg" ,qtsvg)))
10778 (home-page "https://games.kde.org/")
10779 (synopsis "Sudoku puzzle game and solver")
10780 (description "KSudoku is a Sudoku game and solver, supporting a range of
10781 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10782 puzzle sheets and find the solution to any Sudoku puzzle.
10783
10784 The word Sudoku means \"single number in an allotted place\" in Japanese.
10785 These are the basic rules: Every Sudoku is a square divided into 3x3
10786 subsquares with 3x3 cells each.
10787
10788 Some cells are filled with a number at the beginning. The remaining ones are
10789 to be filled by the player using numbers from 1 to 9, without repeating a
10790 number twice on each column, row or subsquare (each of them must contain only
10791 one 1, one 2, one 3, and so on). The game requires logic and patience.
10792 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10793 and experience.
10794
10795 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10796 board we use letters): arithmetic relationships between numbers are
10797 irrelevant.
10798
10799 This program supports also 16x16 games with numbers from 1 to 16 and 256
10800 cells with 16 cols, rows and subsquares!
10801
10802 More information at http://en.wikipedia.org/wiki/Sudoku
10803
10804 This package is part of the KDE games module.")
10805 (license (list license:gpl2+ license:fdl1.2+))))
10806
10807 (define-public klines
10808 (package
10809 (name "klines")
10810 (version "20.12.0")
10811 (source
10812 (origin
10813 (method url-fetch)
10814 (uri (string-append "mirror://kde/stable/release-service/" version
10815 "/src/klines-" version ".tar.xz"))
10816 (sha256
10817 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10818 (build-system qt-build-system)
10819 (native-inputs
10820 `(("extra-cmake-modules" ,extra-cmake-modules)
10821 ("kdoctools" ,kdoctools)))
10822 (inputs
10823 `(("kcompletion" ,kcompletion)
10824 ("kconfigwidgets" ,kconfigwidgets)
10825 ("kcoreaddons" ,kcoreaddons)
10826 ("kcrash" ,kcrash)
10827 ("kdbusaddons" ,kdbusaddons)
10828 ("ki18n" ,ki18n)
10829 ("kwidgetsaddons" ,kwidgetsaddons)
10830 ("kxmlgui" ,kxmlgui)
10831 ("libkdegames" ,libkdegames)
10832 ("qtbase" ,qtbase-5)
10833 ("qtdeclarative" ,qtdeclarative)))
10834 (home-page "https://games.kde.org/")
10835 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10836 (description "KLines is a simple but highly addictive one player game.
10837
10838 The player has to move the colored balls around the game board, gathering them
10839 into the lines of the same color by five. Once the line is complete it is
10840 removed from the board, therefore freeing precious space. In the same time
10841 the new balls keep arriving by three after each move, filling up the game
10842 board.
10843
10844 KLines is a single-player game where the player removes colored balls from the
10845 board by arranging them into lines of five or more. However, every time the
10846 player moves a ball, three more balls are added to the board.
10847
10848 This package is part of the KDE games module.")
10849 (license (list license:gpl2+ license:fdl1.2+))))
10850
10851 (define-public kgoldrunner
10852 (package
10853 (name "kgoldrunner")
10854 (version "20.12.0")
10855 (source
10856 (origin
10857 (method url-fetch)
10858 (uri (string-append "mirror://kde/stable/release-service/" version
10859 "/src/kgoldrunner-" version ".tar.xz"))
10860 (sha256
10861 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
10862 (build-system qt-build-system)
10863 (native-inputs
10864 `(("extra-cmake-modules" ,extra-cmake-modules)
10865 ("kdoctools" ,kdoctools)))
10866 (inputs
10867 `(("kcompletion" ,kcompletion)
10868 ("kcoreaddons" ,kcoreaddons)
10869 ("kcrash" ,kcrash)
10870 ("kdbusaddons" ,kdbusaddons)
10871 ("ki18n" ,ki18n)
10872 ("kio" ,kio)
10873 ("kwidgetsaddons" ,kwidgetsaddons)
10874 ("kxmlgui" ,kxmlgui)
10875 ("libkdegames" ,libkdegames)
10876 ("qtbase" ,qtbase-5)
10877 ("qtdeclarative" ,qtdeclarative)))
10878 (home-page "https://games.kde.org/")
10879 (synopsis "Action and puzzle solving game")
10880 (description "KGoldrunner is an action game where the hero runs through a
10881 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10882 gold nuggets and escape to the next level. Your enemies are also after the
10883 gold. Worse still, they are after you!.
10884
10885 KGoldrunner is a fast-paced platform game where the player must navigate a
10886 maze while collecting gold nuggets and avoiding enemies. A variety of level
10887 packs are included, as well as an editor to create new levels.
10888
10889 This package is part of the KDE games module.")
10890 (license (list license:gpl2+ license:fdl1.2+))))
10891
10892 (define-public kdiamond
10893 (package
10894 (name "kdiamond")
10895 (version "20.12.0")
10896 (source
10897 (origin
10898 (method url-fetch)
10899 (uri (string-append "mirror://kde/stable/release-service/" version
10900 "/src/kdiamond-" version ".tar.xz"))
10901 (sha256
10902 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
10903 (build-system qt-build-system)
10904 (native-inputs
10905 `(("extra-cmake-modules" ,extra-cmake-modules)
10906 ("kdoctools" ,kdoctools)))
10907 (inputs
10908 `(("kcompletion" ,kcompletion)
10909 ("kconfig" ,kconfig)
10910 ("kconfigwidgets" ,kconfigwidgets)
10911 ("kcoreaddons" ,kcoreaddons)
10912 ("kcrash" ,kcrash)
10913 ("kdbusaddons" ,kdbusaddons)
10914 ("ki18n" ,ki18n)
10915 ("knotifications" ,knotifications)
10916 ("knotifyconfig" ,knotifyconfig)
10917 ("kwidgetsaddons" ,kwidgetsaddons)
10918 ("kxmlgui" ,kxmlgui)
10919 ("libkdegames" ,libkdegames)
10920 ("qtbase" ,qtbase-5)
10921 ("qtdeclarative" ,qtdeclarative)))
10922 (home-page "https://games.kde.org/")
10923 (synopsis "Three-in-a-row game")
10924 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10925 features unlimited fun with randomly generated games and five difficulty
10926 levels with varying number of diamond colors and board sizes.
10927
10928 This package is part of the KDE games module.")
10929 (license (list license:gpl2+ license:fdl1.2+))))
10930
10931 (define-public kfourinline
10932 (package
10933 (name "kfourinline")
10934 (version "20.12.0")
10935 (source
10936 (origin
10937 (method url-fetch)
10938 (uri (string-append "mirror://kde/stable/release-service/" version
10939 "/src/kfourinline-" version ".tar.xz"))
10940 (sha256
10941 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10942 (build-system qt-build-system)
10943 (native-inputs
10944 `(("extra-cmake-modules" ,extra-cmake-modules)
10945 ("kdoctools" ,kdoctools)))
10946 (inputs
10947 `(("kcompletion" ,kcompletion)
10948 ("kconfig" ,kconfig)
10949 ("kconfigwidgets" ,kconfigwidgets)
10950 ("kcoreaddons" ,kcoreaddons)
10951 ("kcrash" ,kcrash)
10952 ("kdnssd" ,kdnssd)
10953 ("ki18n" ,ki18n)
10954 ("kxmlgui" ,kxmlgui)
10955 ("libkdegames" ,libkdegames)
10956 ("qtbase" ,qtbase-5)
10957 ("qtdeclarative" ,qtdeclarative)
10958 ("qtsvg" ,qtsvg)))
10959 (home-page "https://games.kde.org/")
10960 (synopsis "Place 4 pieces in a row")
10961 (description "KFourInLine is a board game for two players based on the
10962 Connect-Four game.
10963
10964 KFourInLine is a game where two players take turns dropping pieces into a
10965 grid, the winner being the first to place four pieces in a line.
10966
10967 This package is part of the KDE games module.")
10968 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10969
10970 (define-public kblackbox
10971 (package
10972 (name "kblackbox")
10973 (version "20.12.0")
10974 (source
10975 (origin
10976 (method url-fetch)
10977 (uri (string-append "mirror://kde/stable/release-service/" version
10978 "/src/kblackbox-" version ".tar.xz"))
10979 (sha256
10980 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10981 (build-system qt-build-system)
10982 (native-inputs
10983 `(("extra-cmake-modules" ,extra-cmake-modules)
10984 ("kdoctools" ,kdoctools)))
10985 (inputs
10986 `(("karchive" ,karchive)
10987 ("kcompletion" ,kcompletion)
10988 ("kconfig" ,kconfig)
10989 ("kcoreaddons" ,kcoreaddons)
10990 ("kcrash" ,kcrash)
10991 ("kdbusaddons" ,kdbusaddons)
10992 ("ki18n" ,ki18n)
10993 ("ktextwidgets" ,ktextwidgets)
10994 ("kxmlgui" ,kxmlgui)
10995 ("libkdegames" ,libkdegames)
10996 ("qtbase" ,qtbase-5)
10997 ("qtdeclarative" ,qtdeclarative)
10998 ("qtsvg" ,qtsvg)))
10999 (home-page "https://games.kde.org/")
11000 (synopsis "Find atoms in a grid by shooting electrons")
11001 (description "KBlackbox is a game of hide and seek played on a grid of
11002 boxes where the computer has hidden several balls. The position of the hidden
11003 balls can be deduced by shooting beams into the box
11004
11005 KBlackBox is a game of hide and seek played on an grid of boxes, where the
11006 player shoots rays into the grid to deduce the positions of hidden objects.
11007
11008 This package is part of the KDE games module.")
11009 (license (list license:gpl2+ license:fdl1.2+))))
11010
11011 (define-public knetwalk
11012 (package
11013 (name "knetwalk")
11014 (version "20.12.0")
11015 (source
11016 (origin
11017 (method url-fetch)
11018 (uri (string-append "mirror://kde/stable/release-service/" version
11019 "/src/knetwalk-" version ".tar.xz"))
11020 (sha256
11021 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
11022 (build-system qt-build-system)
11023 (native-inputs
11024 `(("extra-cmake-modules" ,extra-cmake-modules)
11025 ("kdoctools" ,kdoctools)))
11026 (inputs
11027 `(("kcompletion" ,kcompletion)
11028 ("kconfig" ,kconfig)
11029 ("kconfigwidgets" ,kconfigwidgets)
11030 ("kcoreaddons" ,kcoreaddons)
11031 ("kcrash" ,kcrash)
11032 ("kdbusaddons" ,kdbusaddons)
11033 ("ki18n" ,ki18n)
11034 ("ktextwidgets" ,ktextwidgets)
11035 ("kwidgetsaddons" ,kwidgetsaddons)
11036 ("kxmlgui" ,kxmlgui)
11037 ("libkdegames" ,libkdegames)
11038 ("qtbase" ,qtbase-5)
11039 ("qtdeclarative" ,qtdeclarative)))
11040 (home-page "https://games.kde.org/")
11041 (synopsis "Turn the board pieces to get all computers connected")
11042 (description "KNetWalk is a small game where you have to build up a
11043 computer network by rotating the wires to connect the terminals to the server.
11044 When the network is build, a highscore-list comes up where competitions can be
11045 fought out.
11046
11047 KNetwalk is a puzzle game where the player arranges sections of wire to
11048 connect all the computers on the board.
11049
11050 This package is part of the KDE games module.")
11051 (license (list license:gpl2+ license:fdl1.2+))))
11052
11053 (define-public bomber
11054 (package
11055 (name "bomber")
11056 (version "20.12.0")
11057 (source
11058 (origin
11059 (method url-fetch)
11060 (uri (string-append "mirror://kde/stable/release-service/" version
11061 "/src/bomber-" version ".tar.xz"))
11062 (sha256
11063 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
11064 (build-system qt-build-system)
11065 (native-inputs
11066 `(("extra-cmake-modules" ,extra-cmake-modules)
11067 ("kdoctools" ,kdoctools)))
11068 (inputs
11069 `(("kcompletiom" ,kcompletion)
11070 ("kconfig" ,kconfig)
11071 ("kcoreaddons" ,kcoreaddons)
11072 ("kcrash" ,kcrash)
11073 ("kdbusaddons" ,kdbusaddons)
11074 ("ki18n" ,ki18n)
11075 ("kxmlgui" ,kxmlgui)
11076 ("libkdegames" ,libkdegames)
11077 ("qtbase" ,qtbase-5)
11078 ("qtdeclarative" ,qtdeclarative)))
11079 (home-page "https://games.kde.org/")
11080 (synopsis "Arcade bombing game")
11081 (description "Bomber is a single player arcade game.
11082
11083 The player is invading various cities in a plane that is decreasing in height.
11084 The goal of the game is to destroy all the buildings and advance to the next
11085 level. Each level gets a bit harder by increasing the speed of the plane and
11086 the height of the buildings.
11087
11088 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
11089 below you. Each pass the spaceship makes, it gets lower and lower. If you've
11090 not destroyed a building in your path, you will crash into it.
11091
11092 This package is part of the KDE games module.")
11093 (license (list license:gpl2+ license:fdl1.2+))))
11094
11095 (define-public granatier
11096 (package
11097 (name "granatier")
11098 (version "20.12.0")
11099 (source
11100 (origin
11101 (method url-fetch)
11102 (uri (string-append "mirror://kde/stable/release-service/" version
11103 "/src/granatier-" version ".tar.xz"))
11104 (sha256
11105 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
11106 (build-system qt-build-system)
11107 (native-inputs
11108 `(("extra-cmake-modules" ,extra-cmake-modules)
11109 ("kdoctools" ,kdoctools)))
11110 (inputs
11111 `(("kcompletion" ,kcompletion)
11112 ("kconfig" ,kconfig)
11113 ("kconfigwidgets" ,kconfigwidgets)
11114 ("kcoreaddons" ,kcoreaddons)
11115 ("kcrash" ,kcrash)
11116 ("kdbusaddons" ,kdbusaddons)
11117 ("ki18n" ,ki18n)
11118 ("knewstuff" ,knewstuff)
11119 ("kwidgetsaddons" ,kwidgetsaddons)
11120 ("kxmlgui" ,kxmlgui)
11121 ("libkdegames" ,libkdegames)
11122 ("qtbase" ,qtbase-5)
11123 ("qtdeclarative" ,qtdeclarative)
11124 ("qtsvg" ,qtsvg)))
11125 (home-page "https://games.kde.org/")
11126 (synopsis "Bomberman clone")
11127 (description "Granatier is a clone of the classic Bomberman game,
11128 inspired by the work of the Clanbomber clone.
11129
11130 This package is part of the KDE games module.")
11131 (license (list license:gpl2+ license:fdl1.2+))))
11132
11133 (define-public ksirk
11134 (package
11135 (name "ksirk")
11136 (version "20.12.0")
11137 (source
11138 (origin
11139 (method url-fetch)
11140 (uri (string-append "mirror://kde/stable/release-service/" version
11141 "/src/ksirk-" version ".tar.xz"))
11142 (sha256
11143 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
11144 (build-system qt-build-system)
11145 (native-inputs
11146 `(("extra-cmake-modules" ,extra-cmake-modules)
11147 ("kdoctools" ,kdoctools)))
11148 (inputs
11149 `(("kcrash" ,kcrash)
11150 ("ki18n" ,ki18n)
11151 ("kiconthemes" ,kiconthemes)
11152 ("kio" ,kio)
11153 ("knewstuff" ,knewstuff)
11154 ("kwallet" ,kwallet)
11155 ("kxmlgui" ,kxmlgui)
11156 ("libkdegames" ,libkdegames)
11157 ("phonon" ,phonon)
11158 ("qca" ,qca)
11159 ("qtbase" ,qtbase-5)
11160 ("qtdeclarative" ,qtdeclarative)
11161 ("qtsvg" ,qtsvg)
11162 ("zlib" ,zlib)))
11163 (home-page "https://games.kde.org/")
11164 (synopsis "Computerized version of the well known strategy board game
11165 'Risk'")
11166 (description "KsirK is a multi-player network-enabled game. The goal of
11167 the game is simply to conquer the world by attacking your neighbors with your
11168 armies.
11169
11170 At the beginning of the game, countries are distributed to all the players.
11171 Each country contains one army represented by an infantryman. Each player has
11172 some armies to distribute to his countries. On each turn, each player can
11173 attack his neighbours, eventually conquering one or more countries. At the
11174 end of each turn, some bonus armies are distributed to the players in function
11175 of the number of countries they own. The winner is the player that conquered
11176 all the world.
11177
11178 Features:
11179 @itemize
11180 @item Support for 1-6 human or computer players
11181 @item Multi-player gaming over a network
11182 @item You can easily create new skins with SVG graphics and the skin editor
11183 @item Hot New Stuff support. You can easily download and install new skins
11184 @end itemize
11185
11186 This package is part of the KDE games module.")
11187 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11188
11189 (define-public palapeli
11190 (package
11191 (name "palapeli")
11192 (version "20.12.0")
11193 (source
11194 (origin
11195 (method url-fetch)
11196 (uri (string-append "mirror://kde/stable/release-service/" version
11197 "/src/palapeli-" version ".tar.xz"))
11198 (sha256
11199 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
11200 (build-system qt-build-system)
11201 (native-inputs
11202 `(("extra-cmake-modules" ,extra-cmake-modules)
11203 ("kdoctools" ,kdoctools)))
11204 (inputs
11205 `(("karchive" ,karchive)
11206 ("kcompletion" ,kcompletion)
11207 ("kconfig" ,kconfig)
11208 ("kconfigwidgets" ,kconfigwidgets)
11209 ("kcoreaddons" ,kcoreaddons)
11210 ("kcrash" ,kcrash)
11211 ("kcrash" ,kcrash)
11212 ("ki18n" ,ki18n)
11213 ("ki18n" ,ki18n)
11214 ("kio" ,kio)
11215 ("kitemviews" ,kitemviews)
11216 ("knotifications" ,knotifications)
11217 ("kservice" ,kservice)
11218 ("kwidgetsaddons" ,kwidgetsaddons)
11219 ("kxmlgui" ,kxmlgui)
11220 ("libkdegames" ,libkdegames)
11221 ("qtbase" ,qtbase-5)
11222 ("qtdeclarative" ,qtdeclarative)
11223 ("qtsvg" ,qtsvg)
11224 ("shared-mime-info" ,shared-mime-info)))
11225 (home-page "https://games.kde.org/")
11226 (synopsis "Jigsaw puzzle game")
11227 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
11228 that genre, you are not limited to aligning pieces on imaginary grids. The
11229 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
11230 everything you do is saved on your disk immediately.
11231
11232 Palapeli is the Finnish word for jigsaw puzzle.
11233
11234 This package is part of the KDE games module.")
11235 (license license:gpl2+)))
11236
11237 (define-public kiriki
11238 (package
11239 (name "kiriki")
11240 (version "20.12.0")
11241 (source
11242 (origin
11243 (method url-fetch)
11244 (uri (string-append "mirror://kde/stable/release-service/" version
11245 "/src/kiriki-" version ".tar.xz"))
11246 (sha256
11247 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
11248 (build-system qt-build-system)
11249 (native-inputs
11250 `(("extra-cmake-modules" ,extra-cmake-modules)
11251 ("kdoctools" ,kdoctools)))
11252 (inputs
11253 `(("kcompletion" ,kcompletion)
11254 ("kconfig" ,kconfig)
11255 ("kconfigwidgets" ,kconfigwidgets)
11256 ("kcoreaddons" ,kcoreaddons)
11257 ("kcrash" ,kcrash)
11258 ("kdbusaddons" ,kdbusaddons)
11259 ("ki18n" ,ki18n)
11260 ("kiconthemes" ,kiconthemes)
11261 ("kxmlgui" ,kxmlgui)
11262 ("libkdegames" ,libkdegames)
11263 ("qtbase" ,qtbase-5)
11264 ("qtdeclarative" ,qtdeclarative)))
11265 (home-page "https://games.kde.org/")
11266 (synopsis "Yahtzee dice game")
11267 (description "Kiriki is an addictive and fun dice game, designed to be
11268 played by as many as six players.
11269
11270 Participants have to collect points by rolling five dice for up to three times
11271 per single turn to make combinations with the highest score.
11272
11273 This package is part of the KDE games module.")
11274 (license (list license:gpl2+ license:fdl1.2+))))
11275
11276 (define-public kigo
11277 (package
11278 (name "kigo")
11279 (version "20.12.0")
11280 (source
11281 (origin
11282 (method url-fetch)
11283 (uri (string-append "mirror://kde/stable/release-service/" version
11284 "/src/kigo-" version ".tar.xz"))
11285 (sha256
11286 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
11287 (build-system qt-build-system)
11288 (native-inputs
11289 `(("extra-cmake-modules" ,extra-cmake-modules)
11290 ("kdoctools" ,kdoctools)))
11291 (inputs
11292 `(("kconfig" ,kconfig)
11293 ("kconfigwidgets" ,kconfigwidgets)
11294 ("kcoreaddons" ,kcoreaddons)
11295 ("kcrash" ,kcrash)
11296 ("kdbusaddons" ,kdbusaddons)
11297 ("ki18n" ,ki18n)
11298 ("kio" ,kio)
11299 ("knewstuff" ,knewstuff)
11300 ("ktextwidgets" ,ktextwidgets)
11301 ("kxmlgui" ,kxmlgui)
11302 ("libkdegames" ,libkdegames)
11303 ("qtbase" ,qtbase-5)
11304 ("qtdeclarative" ,qtdeclarative)
11305 ("qtsvg" ,qtsvg)))
11306 (home-page "https://games.kde.org/")
11307 (synopsis "Go board game")
11308 (description "Kigo is an open-source implementation of the popular Go
11309 game.
11310
11311 Go is a strategic board game for two players. It is also known as
11312 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
11313 for being rich in strategic complexity despite its simple rules. The game is
11314 played by two players who alternately place black and white stones (playing
11315 pieces, now usually made of glass or plastic) on the vacant intersections of a
11316 grid of 19x19 lines (9x9 or 13x13 for easier games).
11317
11318 You also need to install a go engine, e.g. @code{gnugo}.
11319
11320 This package is part of the KDE games module.")
11321 (license license:gpl3+)))
11322
11323 (define-public kubrick
11324 (package
11325 (name "kubrick")
11326 (version "20.12.0")
11327 (source
11328 (origin
11329 (method url-fetch)
11330 (uri (string-append "mirror://kde/stable/release-service/" version
11331 "/src/kubrick-" version ".tar.xz"))
11332 (sha256
11333 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
11334 (build-system qt-build-system)
11335 (native-inputs
11336 `(("extra-cmake-modules" ,extra-cmake-modules)
11337 ("kdoctools" ,kdoctools)))
11338 (inputs
11339 `(("glu" ,glu)
11340 ("kconfig" ,kconfig)
11341 ("kconfigwidgets" ,kconfigwidgets)
11342 ("kcoreaddons" ,kcoreaddons)
11343 ("kcrash" ,kcrash)
11344 ("ki18n" ,ki18n)
11345 ("kio" ,kio)
11346 ("kwidgetsaddons" ,kwidgetsaddons)
11347 ("kxmlgui" ,kxmlgui)
11348 ("libkdegames" ,libkdegames)
11349 ("qtbase" ,qtbase-5)
11350 ("qtdeclarative" ,qtdeclarative)
11351 ("qtsvg" ,qtsvg)))
11352 (home-page "https://games.kde.org/")
11353 (synopsis "Game based on Rubik's Cube")
11354 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11355
11356 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11357 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11358 selection of puzzles at several levels of difficulty, as well as demos of
11359 pretty patterns and solution moves, or you can make up your own puzzles. The
11360 game has unlimited undo, redo, save and reload capabilities.
11361
11362 This package is part of the KDE games module.")
11363 (license (list license:gpl2+ license:fdl1.2+))))
11364
11365 (define-public lskat
11366 (package
11367 (name "lskat")
11368 (version "20.12.0")
11369 (source
11370 (origin
11371 (method url-fetch)
11372 (uri (string-append "mirror://kde/stable/release-service/" version
11373 "/src/lskat-" version ".tar.xz"))
11374 (sha256
11375 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11376 (build-system qt-build-system)
11377 (native-inputs
11378 `(("extra-cmake-modules" ,extra-cmake-modules)
11379 ("kdoctools" ,kdoctools)))
11380 (inputs
11381 `(("kcompletion" ,kcompletion)
11382 ("kconfig" ,kconfig)
11383 ("kcoreaddons" ,kcoreaddons)
11384 ("kcrash" ,kcrash)
11385 ("kguiaddons" ,kguiaddons)
11386 ("ki18n" ,ki18n)
11387 ("kwidgetsaddons" ,kwidgetsaddons)
11388 ("kxmlgui" ,kxmlgui)
11389 ("libkdegames" ,libkdegames)
11390 ("qtbase" ,qtbase-5)
11391 ("qtdeclarative" ,qtdeclarative)
11392 ("qtsvg" ,qtsvg)))
11393 (home-page "https://games.kde.org/")
11394 (synopsis "Lieutnant Skat card game")
11395 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11396 engaging card game for two players, where the second player is either live
11397 opponent, or a built in artificial intelligence.
11398
11399 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11400
11401 This package is part of the KDE games module.")
11402 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11403
11404 (define-public kapman
11405 (package
11406 (name "kapman")
11407 (version "20.12.0")
11408 (source
11409 (origin
11410 (method url-fetch)
11411 (uri (string-append "mirror://kde/stable/release-service/" version
11412 "/src/kapman-" version ".tar.xz"))
11413 (sha256
11414 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11415 (build-system qt-build-system)
11416 (native-inputs
11417 `(("extra-cmake-modules" ,extra-cmake-modules)
11418 ("kdoctools" ,kdoctools)))
11419 (inputs
11420 `(("kcompletion" ,kcompletion)
11421 ("kconfig" ,kconfig)
11422 ("kconfigwidgets" ,kconfigwidgets)
11423 ("kcoreaddons" ,kcoreaddons)
11424 ("kcrash" ,kcrash)
11425 ("kdbusaddons" ,kdbusaddons)
11426 ("ki18n" ,ki18n)
11427 ("kxmlgui" ,kxmlgui)
11428 ("libkdegames" ,libkdegames)
11429 ("qtbase" ,qtbase-5)
11430 ("qtdeclarative" ,qtdeclarative)
11431 ("qtsvg" ,qtsvg)))
11432 (home-page "https://games.kde.org/")
11433 (synopsis "Pac-Man clone")
11434 (description "Kapman is a clone of the well known game Pac-Man.
11435
11436 You must run through the maze to eat all pills without being captured by a
11437 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11438 few seconds. When a stage is cleared of pills and energizer the player is
11439 taken to the next stage with slightly increased game speed
11440
11441 This package is part of the KDE games module.")
11442 (license (list license:gpl2+ license:fdl1.2+))))
11443
11444 (define-public kspaceduel
11445 (package
11446 (name "kspaceduel")
11447 (version "20.12.0")
11448 (source
11449 (origin
11450 (method url-fetch)
11451 (uri (string-append "mirror://kde/stable/release-service/" version
11452 "/src/kspaceduel-" version ".tar.xz"))
11453 (sha256
11454 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11455 (build-system qt-build-system)
11456 (native-inputs
11457 `(("extra-cmake-modules" ,extra-cmake-modules)
11458 ("kdoctools" ,kdoctools)))
11459 (inputs
11460 `(("kcompletion" ,kcompletion)
11461 ("kconfig" ,kconfig)
11462 ("kconfigwidgets" ,kconfigwidgets)
11463 ("kcoreaddons" ,kcoreaddons)
11464 ("kcrash" ,kcrash)
11465 ("kdbusaddons" ,kdbusaddons)
11466 ("ki18n" ,ki18n)
11467 ("kxmlgui" ,kxmlgui)
11468 ("libkdegames" ,libkdegames)
11469 ("qtbase" ,qtbase-5)
11470 ("qtdeclarative" ,qtdeclarative)
11471 ("qtsvg" ,qtsvg)))
11472 (home-page "https://games.kde.org/")
11473 (synopsis "Two player game with shooting spaceships flying around a sun")
11474 (description "KSpaceduel is a space battle game for one or two players,
11475 where two ships fly around a star in a struggle to be the only survivor.
11476
11477 This package is part of the KDE games module.")
11478 (license (list license:gpl2+ license:fdl1.2+))))
11479
11480 (define-public bovo
11481 (package
11482 (name "bovo")
11483 (version "20.12.0")
11484 (source
11485 (origin
11486 (method url-fetch)
11487 (uri (string-append "mirror://kde/stable/release-service/" version
11488 "/src/bovo-" version ".tar.xz"))
11489 (sha256
11490 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11491 (build-system qt-build-system)
11492 (native-inputs
11493 `(("extra-cmake-modules" ,extra-cmake-modules)
11494 ("kdoctools" ,kdoctools)))
11495 (inputs
11496 `(("kcompletion" ,kcompletion)
11497 ("kcoreaddons" ,kcoreaddons)
11498 ("kcrash" ,kcrash)
11499 ("kdbusaddons" ,kdbusaddons)
11500 ("ki18n" ,ki18n)
11501 ("kxmlgui" ,kxmlgui)
11502 ("libkdegames" ,libkdegames)
11503 ("qtbase" ,qtbase-5)
11504 ("qtdeclarative" ,qtdeclarative)
11505 ("qtsvg" ,qtsvg)))
11506 (home-page "https://games.kde.org/")
11507 (synopsis "Classic pen and paper game: five in a line")
11508 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11509 points\") like game for two players, where the opponents alternate in placing
11510 their respective pictogram on the game board. The winner is the first to
11511 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11512 X and O, Naughts and Crosses)
11513
11514 This package is part of the KDE games module.")
11515 (license (list license:gpl2+ license:fdl1.2+))))
11516
11517 (define-public killbots
11518 (package
11519 (name "killbots")
11520 (version "20.12.0")
11521 (source
11522 (origin
11523 (method url-fetch)
11524 (uri (string-append "mirror://kde/stable/release-service/" version
11525 "/src/killbots-" version ".tar.xz"))
11526 (sha256
11527 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11528 (build-system qt-build-system)
11529 (native-inputs
11530 `(("extra-cmake-modules" ,extra-cmake-modules)
11531 ("kdoctools" ,kdoctools)))
11532 (inputs
11533 `(("kcompletion" ,kcompletion)
11534 ("kconfig" ,kconfig)
11535 ("kconfigwidgets" ,kconfigwidgets)
11536 ("kcoreaddons" ,kcoreaddons)
11537 ("kcrash" ,kcrash)
11538 ("kdbusaddons" ,kdbusaddons)
11539 ("ki18n" ,ki18n)
11540 ("kwidgetsaddons" ,kwidgetsaddons)
11541 ("kxmlgui" ,kxmlgui)
11542 ("libkdegames" ,libkdegames)
11543 ("qtbase" ,qtbase-5)
11544 ("qtdeclarative" ,qtdeclarative)))
11545 (home-page "https://games.kde.org/")
11546 (synopsis "Port of the classic BSD console game robots")
11547 (description "Killbots is a simple game of evading killer robots.
11548
11549 Who created the robots and why they have been programmed to destroy, no one
11550 knows. All that is known is that the robots are numerous and their sole
11551 objective is to destroy you. Fortunately for you, their creator has focused
11552 on quantity rather than quality and as a result the robots are severely
11553 lacking in intelligence. Your superior wit and a fancy teleportation device
11554 are your only weapons against the never-ending stream of mindless automatons.
11555
11556 This package is part of the KDE games module.")
11557 (license (list license:gpl2+ license:fdl1.2+))))
11558
11559 (define-public ksnakeduel
11560 (package
11561 (name "ksnakeduel")
11562 (version "20.12.0")
11563 (source
11564 (origin
11565 (method url-fetch)
11566 (uri (string-append "mirror://kde/stable/release-service/" version
11567 "/src/ksnakeduel-" version ".tar.xz"))
11568 (sha256
11569 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11570 (build-system qt-build-system)
11571 (native-inputs
11572 `(("extra-cmake-modules" ,extra-cmake-modules)
11573 ("kdoctools" ,kdoctools)))
11574 (inputs
11575 `(("kcompletion" ,kcompletion)
11576 ("kconfig" ,kconfig)
11577 ("kconfigwidgets" ,kconfigwidgets)
11578 ("kcoreaddons" ,kcoreaddons)
11579 ("kcrash" ,kcrash)
11580 ("kdbusaddons" ,kdbusaddons)
11581 ("kguiaddons" ,kguiaddons)
11582 ("ki18n" ,ki18n)
11583 ("kxmlgui" ,kxmlgui)
11584 ("libkdegames" ,libkdegames)
11585 ("qtbase" ,qtbase-5)
11586 ("qtdeclarative" ,qtdeclarative)
11587 ("qtsvg" ,qtsvg)))
11588 (home-page "https://games.kde.org/")
11589 (synopsis "Snake race played against the computer")
11590 (description "KSnakeDuel is a fast action game where you steer a snake
11591 which has to eat food. While eating the snake grows. But once a player
11592 collides with the other snake or the wall the game is lost. This becomes of
11593 course more and more difficult the longer the snakes grow.
11594
11595 This package is part of the KDE games module.")
11596 (license (list license:gpl2+ license:fdl1.2+))))
11597
11598 (define-public kollision
11599 (package
11600 (name "kollision")
11601 (version "20.12.0")
11602 (source
11603 (origin
11604 (method url-fetch)
11605 (uri (string-append "mirror://kde/stable/release-service/" version
11606 "/src/kollision-" version ".tar.xz"))
11607 (sha256
11608 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11609 (build-system qt-build-system)
11610 (native-inputs
11611 `(("extra-cmake-modules" ,extra-cmake-modules)
11612 ("kdoctools" ,kdoctools)))
11613 (inputs
11614 `(("kcompletion" ,kcompletion)
11615 ("kconfig" ,kconfig)
11616 ("kcoreaddons" ,kcoreaddons)
11617 ("kcrash" ,kcrash)
11618 ("kdbusaddons" ,kdbusaddons)
11619 ("ki18n" ,ki18n)
11620 ("kwidgetsaddons" ,kwidgetsaddons)
11621 ("kxmlgui" ,kxmlgui)
11622 ("libkdegames" ,libkdegames)
11623 ("qtbase" ,qtbase-5)
11624 ("qtdeclarative" ,qtdeclarative)))
11625 (home-page "https://games.kde.org/")
11626 (synopsis "Simple ball dodging game")
11627 (description "In Kollision you use mouse to control a small blue ball in a
11628 closed space environment filled with small red balls, which move about
11629 chaotically. Your goal is to avoid touching any of those red balls with your
11630 blue one, because the moment you do the game will be over. The longer you can
11631 stay in game the higher will your score be.
11632
11633 This package is part of the KDE games module.")
11634 (license (list license:gpl2+ license:fdl1.2+))))
11635
11636 (define-public knavalbattle
11637 (package
11638 (name "knavalbattle")
11639 (version "20.12.0")
11640 (source
11641 (origin
11642 (method url-fetch)
11643 (uri (string-append "mirror://kde/stable/release-service/" version
11644 "/src/knavalbattle-" version ".tar.xz"))
11645 (sha256
11646 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11647 (build-system qt-build-system)
11648 (native-inputs
11649 `(("extra-cmake-modules" ,extra-cmake-modules)
11650 ("kdoctools" ,kdoctools)))
11651 (inputs
11652 `(("kauth" ,kauth)
11653 ("kcompletion" ,kcompletion)
11654 ("kconfig" ,kconfig)
11655 ("kconfigwidgets" ,kconfigwidgets)
11656 ("kcoreaddons" ,kcoreaddons)
11657 ("kcrash" ,kcrash)
11658 ("kdbusaddons" ,kdbusaddons)
11659 ("kdnssd" ,kdnssd)
11660 ("ki18n" ,ki18n)
11661 ("ktextwidgets" ,ktextwidgets)
11662 ("kxmlgui" ,kxmlgui)
11663 ("libkdegames" ,libkdegames)
11664 ("qtbase" ,qtbase-5)
11665 ("qtdeclarative" ,qtdeclarative)))
11666 (home-page "https://games.kde.org/")
11667 (synopsis "Battleship board game with built-in game server")
11668 (description "KBattleship is a Battle Ship game for KDE.
11669
11670 Ships are placed on a board which represents the sea. Players try to hit each
11671 others ships in turns without knowing where they are placed. The first player
11672 to destroy all ships wins the game.
11673
11674 This package is part of the KDE games module.")
11675 (license (list license:gpl2+ license:fdl1.2+))))
11676
11677 (define-public kreversi
11678 (package
11679 (name "kreversi")
11680 (version "20.08.3")
11681 (source
11682 (origin
11683 (method url-fetch)
11684 (uri (string-append "mirror://kde/stable/release-service/" version
11685 "/src/kreversi-" version ".tar.xz"))
11686 (sha256
11687 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11688 (build-system qt-build-system)
11689 (native-inputs
11690 `(("extra-cmake-modules" ,extra-cmake-modules)
11691 ("kdoctools" ,kdoctools)))
11692 (inputs
11693 `(("kconfig" ,kconfig)
11694 ("kconfigwidgets" ,kconfigwidgets)
11695 ("kcoreaddons" ,kcoreaddons)
11696 ("kcrash" ,kcrash)
11697 ("kdbusaddons" ,kdbusaddons)
11698 ("kdeclarative" ,kdeclarative)
11699 ("ki18n" ,ki18n)
11700 ("kiconthemes" ,kiconthemes)
11701 ("kio" ,kio)
11702 ("kxmlgui" ,kxmlgui)
11703 ("libkdegames" ,libkdegames)
11704 ("qtbase" ,qtbase-5)
11705 ("qtdeclarative" ,qtdeclarative)
11706 ("qtsvg" ,qtsvg)))
11707 (home-page "https://games.kde.org/")
11708 (synopsis "Old reversi board game, also known as othello")
11709 (description "KReversi is a simple one player strategy game played
11710 against the computer.
11711
11712 If a player's piece is captured by an opposing player, that piece is turned
11713 over to reveal the color of that player. A winner is declared when one player
11714 has more pieces of his own color on the board and there are no more possible
11715 moves.
11716
11717 This package is part of the KDE games module.")
11718 (license (list license:gpl2+ license:fdl1.2+))))
11719
11720 (define-public ksquares
11721 (package
11722 (name "ksquares")
11723 (version "20.12.0")
11724 (source
11725 (origin
11726 (method url-fetch)
11727 (uri (string-append "mirror://kde/stable/release-service/" version
11728 "/src/ksquares-" version ".tar.xz"))
11729 (sha256
11730 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11731 (build-system qt-build-system)
11732 (native-inputs
11733 `(("extra-cmake-modules" ,extra-cmake-modules)
11734 ("kdoctools" ,kdoctools)))
11735 (inputs
11736 `(("kcompletion" ,kcompletion)
11737 ("kconfig" ,kconfig)
11738 ("kconfigwidgets" ,kconfigwidgets)
11739 ("kcoreaddons" ,kcoreaddons)
11740 ("kcrash" ,kcrash)
11741 ("kdbusaddons" ,kdbusaddons)
11742 ("ki18n" ,ki18n)
11743 ("kwidgetsaddons" ,kwidgetsaddons)
11744 ("kxmlgui" ,kxmlgui)
11745 ("libkdegames" ,libkdegames)
11746 ("qtbase" ,qtbase-5)
11747 ("qtdeclarative" ,qtdeclarative)))
11748 (home-page "https://games.kde.org/")
11749 (synopsis "Dots and Boxes game")
11750 (description "KSquares is an implementation of the popular paper based
11751 game Squares. Two players take turns connecting dots on a grid to complete
11752 squares, the player with the most squares wins.
11753
11754 This package is part of the KDE games module.")
11755 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11756
11757 (define-public kjumpingcube
11758 (package
11759 (name "kjumpingcube")
11760 (version "20.12.0")
11761 (source
11762 (origin
11763 (method url-fetch)
11764 (uri (string-append "mirror://kde/stable/release-service/" version
11765 "/src/kjumpingcube-" version ".tar.xz"))
11766 (sha256
11767 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11768 (build-system qt-build-system)
11769 (native-inputs
11770 `(("extra-cmake-modules" ,extra-cmake-modules)
11771 ("kdoctools" ,kdoctools)))
11772 (inputs
11773 `(("kconfig" ,kconfig)
11774 ("kconfigwidgets" ,kconfigwidgets)
11775 ("kcoreaddons" ,kcoreaddons)
11776 ("kcrash" ,kcrash)
11777 ("kdbusaddons" ,kdbusaddons)
11778 ("ki18n" ,ki18n)
11779 ("kio" ,kio)
11780 ("kwidgetsaddons" ,kwidgetsaddons)
11781 ("kxmlgui" ,kxmlgui)
11782 ("libkdegames" ,libkdegames)
11783 ("qtbase" ,qtbase-5)
11784 ("qtdeclarative" ,qtdeclarative)
11785 ("qtsvg" ,qtsvg)))
11786 (home-page "https://games.kde.org/")
11787 (synopsis "Simple tactical game for number-crunchers")
11788 (description "KJumpingcube is a simple tactical game for one or two
11789 players, played on a grid of numbered squares. Each turn, players compete for
11790 control of the board by capturing or adding to one square.
11791
11792 This package is part of the KDE games module.")
11793 (license (list license:gpl2+ license:fdl1.2+))))
11794
11795 (define-public xmoto
11796 (package
11797 (name "xmoto")
11798 (version "0.6.1")
11799 (source
11800 (origin
11801 (method git-fetch)
11802 (uri (git-reference
11803 (url "https://github.com/xmoto/xmoto")
11804 (commit version)))
11805 (file-name (git-file-name name version))
11806 (sha256
11807 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11808 (modules '((guix build utils)
11809 (ice-9 ftw)
11810 (srfi srfi-1)))
11811 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11812 ;; it appears to be incompatible with the (older) one bundled.
11813 (snippet
11814 `(begin
11815 (let ((keep '("chipmunk" "glad" "md5sum")))
11816 (with-directory-excursion "vendor"
11817 (for-each delete-file-recursively
11818 (lset-difference string=?
11819 (scandir ".")
11820 (cons* "." ".." keep))))
11821 (substitute* "src/CMakeLists.txt"
11822 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11823 (if (member library keep) line ""))))
11824 #t))))
11825 (build-system cmake-build-system)
11826 (arguments
11827 `(#:tests? #f ;no test
11828 #:phases
11829 (modify-phases %standard-phases
11830 (add-after 'unpack 'fix-hard-coded-directory
11831 (lambda* (#:key outputs #:allow-other-keys)
11832 (substitute* "src/common/VFileIO.cpp"
11833 (("/usr/share")
11834 (string-append (assoc-ref outputs "out") "/share")))
11835 #t))
11836 (add-before 'build 'set-SDL
11837 ;; Set correct environment for SDL.
11838 (lambda* (#:key inputs #:allow-other-keys)
11839 (setenv "CPATH"
11840 (string-append
11841 (assoc-ref inputs "sdl") "/include/SDL:"
11842 (or (getenv "CPATH") "")))
11843 #t))
11844 (add-after 'install 'unbundle-fonts
11845 ;; Unbundle DejaVuSans TTF files.
11846 (lambda* (#:key outputs inputs #:allow-other-keys)
11847 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11848 "/share/fonts/truetype/"))
11849 (target-dir (string-append (assoc-ref outputs "out")
11850 "/share/xmoto/Textures/Fonts/")))
11851 (for-each (lambda (f)
11852 (let ((font (string-append font-dir f))
11853 (target (string-append target-dir f)))
11854 (delete-file target)
11855 (symlink font target)))
11856 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11857 #t))))))
11858 (native-inputs
11859 `(("gettext" ,gettext-minimal)
11860 ("pkg-config" ,pkg-config)))
11861 (inputs
11862 `(("bzip2" ,bzip2)
11863 ("curl" ,curl)
11864 ("font-dejavu" ,font-dejavu)
11865 ("glu" ,glu)
11866 ("libjpeg" ,libjpeg-turbo)
11867 ("libpng" ,libpng)
11868 ("libxdg-basedir" ,libxdg-basedir)
11869 ("libxml2" ,libxml2)
11870 ("lua" ,lua-5.1)
11871 ("ode" ,ode)
11872 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11873 ("sqlite" ,sqlite)
11874 ("zlib" ,zlib)))
11875 (home-page "https://xmoto.tuxfamily.org/")
11876 (synopsis "2D motocross platform game")
11877 (description
11878 "X-Moto is a challenging 2D motocross platform game, where
11879 physics play an all important role in the gameplay. You need to
11880 control your bike to its limit, if you want to have a chance finishing
11881 the more difficult challenges.")
11882 (license (list license:gpl2+ ;whole project
11883 license:bsd-3 ;vendor/md5sum
11884 license:lgpl2.1+
11885 license:expat))))
11886
11887 (define-public eboard
11888 (package
11889 (name "eboard")
11890 (version "1.1.3")
11891 (source
11892 (origin
11893 (method git-fetch)
11894 (uri (git-reference
11895 (url "https://github.com/fbergo/eboard")
11896 (commit (string-append "v" version))))
11897 (file-name (git-file-name name version))
11898 (sha256
11899 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11900 (build-system gnu-build-system)
11901 (native-inputs
11902 `(("perl" ,perl)
11903 ("pkg-config" ,pkg-config)))
11904 (inputs
11905 `(("gtk+" ,gtk+-2)
11906 ("libpng" ,libpng)
11907 ("gstreamer" ,gstreamer)))
11908 (arguments
11909 `(#:tests? #f
11910 #:phases
11911 (modify-phases %standard-phases
11912 (replace 'configure
11913 (lambda* (#:key outputs #:allow-other-keys)
11914 (make-file-writable "eboard-config")
11915 (setenv "CC" "gcc")
11916 (invoke "./configure"
11917 (string-append "--prefix=" (assoc-ref outputs "out")))
11918 #t))
11919 (add-before 'install 'make-required-directories
11920 (lambda* (#:key outputs #:allow-other-keys)
11921 (mkdir-p (string-append (assoc-ref outputs "out")
11922 "/share/eboard"))
11923 #t)))))
11924 (synopsis "Graphical user interface to play chess")
11925 (description
11926 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11927 and chess engines.")
11928 (home-page "https://www.bergo.eng.br/eboard/")
11929 (license license:gpl2+)))
11930
11931 (define-public chessx
11932 (package
11933 (name "chessx")
11934 (version "1.5.6")
11935 (source
11936 (origin
11937 (method url-fetch)
11938 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11939 version "/chessx-" version ".tgz"))
11940 (sha256
11941 (base32 "01fjchil2h6ry2ywr0dwjw2g7zd29580cr4c74d5z74h999lp6nh"))))
11942 (build-system qt-build-system)
11943 (native-inputs
11944 `(("qttools" ,qttools)))
11945 (inputs
11946 `(("qtbase" ,qtbase-5)
11947 ("qtmultimedia" ,qtmultimedia)
11948 ("qtspeech" ,qtspeech)
11949 ("qtsvg" ,qtsvg)
11950 ("zlib" ,zlib)))
11951 (arguments
11952 `(#:tests? #f
11953 #:phases
11954 (modify-phases %standard-phases
11955 (add-after 'unpack 'fix-paths
11956 (lambda* (#:key inputs #:allow-other-keys)
11957 (substitute* "chessx.pro"
11958 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11959 (search-input-file inputs "/bin/lrelease")))))
11960 (add-after 'fix-paths 'make-qt-deterministic
11961 (lambda _
11962 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11963 #t))
11964 (add-after 'make-qt-deterministic 'disable-versioncheck
11965 (lambda _
11966 (substitute* "src/database/settings.cpp"
11967 (("\"/General/onlineVersionCheck\", true")
11968 "\"/General/onlineVersionCheck\", false"))
11969 #t))
11970 (replace 'configure
11971 (lambda _
11972 (invoke "qmake")
11973 #t))
11974 (replace 'install
11975 (lambda* (#:key outputs #:allow-other-keys)
11976 (let ((out (assoc-ref outputs "out")))
11977 (install-file "release/chessx" (string-append out "/bin"))
11978 (install-file "unix/chessx.desktop"
11979 (string-append out "/share/applications")))
11980 #t)))))
11981 (synopsis "Chess game database")
11982 (description
11983 "ChessX is a chess database. With ChessX you can operate on your
11984 collection of chess games in many ways: browse, edit, add, organize, analyze,
11985 etc. You can also play games on FICS or against an engine.")
11986 (home-page "http://chessx.sourceforge.net/")
11987 (license license:gpl2+)))
11988
11989 (define-public stockfish
11990 (let ((neural-network-revision "3475407dc199")) ; also update hash below
11991 (package
11992 (name "stockfish")
11993 (version "14")
11994 (source
11995 (origin
11996 (method git-fetch)
11997 (uri (git-reference
11998 (url "https://github.com/official-stockfish/Stockfish")
11999 (commit (string-append "sf_" version))))
12000 (file-name (git-file-name name version))
12001 (sha256
12002 (base32 "046b3rq9w8lzgk07q5zazzkl93ai99ab18hr9d8n73mabjpi6zbx"))))
12003 (build-system gnu-build-system)
12004 (inputs
12005 `(("neural-network"
12006 ,(origin
12007 (method url-fetch)
12008 (uri (string-append "https://tests.stockfishchess.org/api/nn/nn-"
12009 neural-network-revision ".nnue"))
12010 (sha256
12011 (base32
12012 "11zci5kgwdw9rh8w2w4p84764g82rr666y3n8r2flwwrq5yl0x9l"))))))
12013 (arguments
12014 `(#:tests? #f
12015 #:make-flags (list "-C" "src"
12016 "build"
12017 (string-append "PREFIX="
12018 (assoc-ref %outputs "out"))
12019 (string-append "ARCH="
12020 ,(match (%current-system)
12021 ("x86_64-linux" "x86-64")
12022 ("i686-linux" "x86-32")
12023 ("aarch64-linux" "armv8")
12024 ("armhf-linux" "armv7")
12025 ("mips64el-linux" "general-64")
12026 (_ "general-32"))))
12027 #:phases (modify-phases %standard-phases
12028 (delete 'configure)
12029 ;; The official neural network file is needed for building
12030 ;; and is embedded in the resulting binary.
12031 (add-after 'unpack 'copy-net
12032 (lambda* (#:key inputs #:allow-other-keys)
12033 (copy-file (assoc-ref inputs "neural-network")
12034 (format #f "src/nn-~a.nnue"
12035 ,neural-network-revision)))))))
12036 (synopsis "Strong chess engine")
12037 (description
12038 "Stockfish is a very strong chess engine. It is much stronger than the
12039 best human chess grandmasters. It can be used with UCI-compatible GUIs like
12040 ChessX.")
12041 (home-page "https://stockfishchess.org/")
12042 (license license:gpl3+))))
12043
12044 (define-public barrage
12045 (package
12046 (name "barrage")
12047 (version "1.0.5")
12048 (source
12049 (origin
12050 (method url-fetch)
12051 (uri (string-append "mirror://sourceforge/lgames/barrage/"
12052 "barrage-" version ".tar.gz"))
12053 (sha256
12054 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
12055 (build-system gnu-build-system)
12056 (inputs
12057 `(("hicolor-icon-theme" ,hicolor-icon-theme)
12058 ("sdl" ,sdl)
12059 ("sdl-mixer" ,sdl-mixer)))
12060 (arguments
12061 `(#:configure-flags
12062 (list
12063 (string-append "CFLAGS="
12064 "-I" (assoc-ref %build-inputs "sdl-mixer")
12065 "/include/SDL"))))
12066 (home-page "http://lgames.sourceforge.net/Barrage/")
12067 (synopsis "Violent point-and-click shooting game with nice effects")
12068 (description
12069 "Barrage is a rather destructive action game that puts you on a shooting
12070 range with the objective to hit as many dummy targets as possible within
12071 3 minutes. You control a gun that may either fire small or large grenades at
12072 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
12073 get high scores.")
12074 (license license:gpl2+)))
12075
12076 (define-public burgerspace
12077 (package
12078 (name "burgerspace")
12079 (version "1.9.4")
12080 (source
12081 (origin
12082 (method url-fetch)
12083 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
12084 "burgerspace-" version ".tar.gz"))
12085 (sha256
12086 (base32 "1xb4immzmd419aa08lgkzf7ibxa6ax238zb2l5iw9nkgvzlh1v6l"))))
12087 (build-system gnu-build-system)
12088 (native-inputs
12089 `(("pkg-config" ,pkg-config)))
12090 (inputs
12091 `(("flatzebra" ,flatzebra)))
12092 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
12093 (synopsis "Avoid evil foodstuffs and make burgers")
12094 (description
12095 "This is a clone of the classic game BurgerTime. In it, you play
12096 the part of a chef who must create burgers by stepping repeatedly on
12097 the ingredients until they fall into place. And to make things more
12098 complicated, you also must avoid evil animate food items while
12099 performing this task, with nothing but your trusty pepper shaker to
12100 protect you.")
12101 (license license:gpl2+)))
12102
12103 (define-public 7kaa
12104 (package
12105 (name "7kaa")
12106 (version "2.15.4p1")
12107 (source
12108 (origin
12109 (method url-fetch)
12110 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
12111 "releases/download/v" version "/"
12112 "7kaa-" version ".tar.xz"))
12113 (sha256
12114 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
12115 (build-system gnu-build-system)
12116 (native-inputs
12117 `(("gettext" ,gettext-minimal)
12118 ("pkg-config" ,pkg-config)))
12119 (inputs
12120 `(("curl" ,curl)
12121 ("enet" ,enet)
12122 ("openal" ,openal)
12123 ("sdl2" ,sdl2)))
12124 (home-page "https://7kfans.com/")
12125 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
12126 (description
12127 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
12128 Strategy with the addition of trade, diplomacy, and espionage. The game
12129 enables players to compete against up to six other kingdoms allowing players
12130 to conquer opponents by defeating them in war (with troops or machines),
12131 capturing their buildings with spies, or offering opponents money for their
12132 kingdom.")
12133 (license license:gpl2+)))
12134
12135 (define-public neverball
12136 ;; Git version is 6-years younger than latest release.
12137 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
12138 (revision "1"))
12139 (package
12140 (name "neverball")
12141 (version (git-version "1.6.0" revision commit))
12142 (source
12143 (origin
12144 (method git-fetch)
12145 (uri (git-reference
12146 (url "https://github.com/Neverball/neverball")
12147 (commit commit)))
12148 (sha256
12149 (base32
12150 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
12151 (file-name (git-file-name name version))
12152 (modules '((guix build utils)))
12153 (snippet
12154 '(begin
12155 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
12156 (delete-file-recursively "data/ball/octocat")
12157 #t))))
12158 (build-system copy-build-system)
12159 (arguments
12160 `(#:install-plan
12161 '(("neverball" "bin/")
12162 ("neverputt" "bin/")
12163 ("mapc" "bin/")
12164 ("data" "share/games/neverball/")
12165 ("locale" "share/")
12166 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
12167 "neverlogos.svg"
12168 "svg readme.txt"))
12169 ("dist/" "share/applications" #:include ("neverball.desktop"
12170 "neverputt.desktop"))
12171 ("dist/neverball_16.png"
12172 "/share/icons/hicolor/16x16/apps/neverball.png")
12173 ("dist/neverball_24.png"
12174 "/share/icons/hicolor/24x24/apps/neverball.png")
12175 ("dist/neverball_32.png"
12176 "/share/icons/hicolor/32x32/apps/neverball.png")
12177 ("dist/neverball_48.png"
12178 "/share/icons/hicolor/48x48/apps/neverball.png")
12179 ("dist/neverball_64.png"
12180 "/share/icons/hicolor/64x64/apps/neverball.png")
12181 ("dist/neverball_128.png"
12182 "/share/icons/hicolor/128x128/apps/neverball.png")
12183 ("dist/neverball_256.png"
12184 "/share/icons/hicolor/256x256/apps/neverball.png")
12185 ("dist/neverball_512.png"
12186 "/share/icons/hicolor/512x512/apps/neverball.png")
12187 ("dist/neverputt_16.png"
12188 "/share/icons/hicolor/16x16/apps/neverputt.png")
12189 ("dist/neverputt_24.png"
12190 "/share/icons/hicolor/24x24/apps/neverputt.png")
12191 ("dist/neverputt_32.png"
12192 "/share/icons/hicolor/32x32/apps/neverputt.png")
12193 ("dist/neverputt_48.png"
12194 "/share/icons/hicolor/48x48/apps/neverputt.png")
12195 ("dist/neverputt_64.png"
12196 "/share/icons/hicolor/64x64/apps/neverputt.png")
12197 ("dist/neverputt_128.png"
12198 "/share/icons/hicolor/128x128/apps/neverputt.png")
12199 ("dist/neverputt_256.png"
12200 "/share/icons/hicolor/256x256/apps/neverputt.png")
12201 ("dist/neverputt_512.png"
12202 "/share/icons/hicolor/512x512/apps/neverputt.png")
12203 ("dist/" "share/man/man1" #:include ("mapc.1"))
12204 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
12205 ("doc/" "share/doc/neverball")
12206 ("README.md" "share/doc/neverball/"))
12207 #:phases
12208 (modify-phases %standard-phases
12209 (add-before 'install 'build
12210 (lambda* (#:key inputs outputs #:allow-other-keys)
12211 (let* ((out (assoc-ref outputs "out"))
12212 (sdl (assoc-ref inputs "sdl")))
12213 (invoke "make" "-j" (number->string (parallel-job-count))
12214 "--environment-overrides"
12215 "CC=gcc" "BUILD=release"
12216 (string-append "DATADIR="
12217 out
12218 "/share/games/neverball/data")
12219 (string-append "LOCALEDIR=" out "/share/locale")
12220 (string-append "SDL_CPPFLAGS=-I"
12221 sdl
12222 "/include/SDL2/")))
12223 #t))
12224 (add-after 'install 'fix-some-broken-fonts
12225 (lambda* (#:key outputs #:allow-other-keys)
12226 (let* ((out (assoc-ref outputs "out")))
12227 (wrap-program (string-append out "/bin/neverball")
12228 `("LANG" = ("en_US.utf8")))
12229 (wrap-program (string-append out "/bin/neverputt")
12230 `("LANG" = ("en_US.utf8"))))
12231 #t)))))
12232 (native-inputs
12233 `(("gettext" ,gettext-minimal))) ;for msgfmt
12234 (inputs
12235 `(("libjpeg" ,libjpeg-turbo)
12236 ("libpng" ,libpng)
12237 ("libvorbis" ,libvorbis)
12238 ("physfs" ,physfs)
12239 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
12240 (home-page "https://neverball.org/")
12241 (synopsis "3D floor-tilting game")
12242 (description
12243 "In the grand tradition of Marble Madness and Super Monkey Ball,
12244 Neverball has you guide a rolling ball through dangerous territory. Balance
12245 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
12246 and shovers to get to the goal. Race against the clock to collect coins to
12247 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
12248 game.") ;thanks to Debian for description
12249 (license license:gpl2+))))
12250
12251 (define-public pokerth
12252 (package
12253 (name "pokerth")
12254 (version "1.1.2")
12255 (source
12256 (origin
12257 (method url-fetch)
12258 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
12259 version "/pokerth-" version ".tar.gz"))
12260 (sha256
12261 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
12262 (modules '((guix build utils)))
12263 (snippet
12264 '(begin
12265 ;; Remove bundled websocketpp.
12266 (delete-file-recursively "src/third_party/websocketpp")
12267 (substitute* "pokerth_lib.pro"
12268 (("src/third_party/websocketpp")
12269 ""))
12270 #t))))
12271 (build-system qt-build-system)
12272 (inputs
12273 `(("boost" ,boost)
12274 ("curl" ,curl)
12275 ("gsasl" ,gsasl)
12276 ("libgcrypt" ,libgcrypt)
12277 ("libircclient" ,libircclient)
12278 ("protobuf" ,protobuf-2) ; remove package when no longer needed
12279 ("qtbase" ,qtbase-5)
12280 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
12281 ("sqlite" ,sqlite)
12282 ("tinyxml" ,tinyxml)
12283 ("websocketpp" ,websocketpp)
12284 ("zlib" ,zlib)))
12285 (arguments
12286 `(#:tests? #f ; No test suite
12287 #:phases
12288 (modify-phases %standard-phases
12289 (add-after 'unpack 'fix-paths
12290 (lambda* (#:key inputs #:allow-other-keys)
12291 (substitute* (find-files "." "\\.pro$")
12292 (("/opt/gsasl")
12293 (assoc-ref inputs "gsasl"))
12294 (("\\$\\$\\{PREFIX\\}/include/libircclient")
12295 (search-input-directory inputs "/include/libircclient"))
12296 (("LIB_DIRS =")
12297 (string-append "LIB_DIRS = "
12298 (assoc-ref inputs "boost") "/lib")))
12299 #t))
12300 (add-after 'unpack 'fix-build
12301 (lambda _
12302 ;; Fixes for Boost versions >= 1.66.
12303 (substitute* '("src/net/common/clientthread.cpp"
12304 "src/net/serveraccepthelper.h")
12305 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
12306 "")
12307 (("newSock->io_control\\(command\\);")
12308 "newSock->non_blocking(true);")
12309 (("acceptedSocket->io_control\\(command\\);")
12310 "acceptedSocket->non_blocking(true);"))
12311 #t))
12312 (replace 'configure
12313 (lambda* (#:key outputs #:allow-other-keys)
12314 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
12315 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
12316 (home-page "https://www.pokerth.net")
12317 (synopsis "Texas holdem poker game")
12318 (description
12319 "With PokerTH you can play the Texas holdem poker game, either against
12320 computer opponents or against real players online.")
12321 (license license:agpl3+)))
12322
12323 (define-public azimuth
12324 (package
12325 (name "azimuth")
12326 ;; Not marked as latest release, but it fixes a compiling issue
12327 ;; and adds the install target.
12328 (version "1.0.3")
12329 (source
12330 (origin
12331 (method git-fetch)
12332 (uri (git-reference
12333 (url "https://github.com/mdsteele/azimuth")
12334 (commit (string-append "v" version))))
12335 (file-name (git-file-name name version))
12336 (sha256
12337 (base32
12338 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
12339 (build-system gnu-build-system)
12340 (arguments
12341 `(#:test-target "test"
12342 #:phases
12343 (modify-phases %standard-phases
12344 (delete 'configure) ; no configure script
12345 ;; Build release version instead of debug version.
12346 (add-after 'unpack 'set-release
12347 (lambda _
12348 (setenv "BUILDTYPE" "release") #t))
12349 (add-after 'unpack 'fix-install ; set install directory
12350 (lambda* (#:key outputs #:allow-other-keys)
12351 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12352 (inputs `(("sdl" ,sdl)))
12353 (home-page "https://mdsteele.games/azimuth/")
12354 (synopsis "Metroidvania game with vector graphics")
12355 (description
12356 "Pilot your ship inside a planet to find and rescue the colonists trapped
12357 inside the Zenith Colony.")
12358 (license license:gpl3+)))
12359
12360 (define-public cgoban
12361 (package
12362 (name "cgoban")
12363 (version "1.9.14")
12364 (source
12365 (origin
12366 (method url-fetch)
12367 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12368 version "/cgoban-" version ".tar.gz"))
12369 (sha256
12370 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12371 (build-system gnu-build-system)
12372 (inputs
12373 `(("libx11" ,libx11)
12374 ("libxt" ,libxt)
12375 ("xorgproto" ,xorgproto)))
12376 (home-page "http://cgoban1.sourceforge.net/")
12377 (synopsis "Go client for X11")
12378 (description "Provides a large set of Go-related services for X11:
12379 @itemize
12380 @item Local games with precise implementation of the Chinese and Japanese rulesets
12381 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12382 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12383 such as GnuGo.
12384 @end itemize")
12385 (license license:gpl2+)))
12386
12387 (define-public passage
12388 (package
12389 (name "passage")
12390 (version "4")
12391 (source
12392 (origin
12393 (method url-fetch)
12394 (uri (string-append "mirror://sourceforge/hcsoftware/Passage/v"
12395 version "/Passage_v" version "_UnixSource.tar.gz"))
12396 (sha256
12397 (base32 "02ky4a4xdjvr71r58339jjrjyz76b5skcnbq4f8707mrln9vhby3"))))
12398 (build-system gnu-build-system)
12399 (arguments
12400 `(#:tests? #false ; there are none
12401 #:phases
12402 (modify-phases %standard-phases
12403 (add-after 'unpack 'chdir
12404 (lambda _
12405 (chdir "gamma256/gameSource")
12406 (system "cat Makefile.GnuLinux Makefile.all > Makefile")))
12407 (replace 'configure
12408 (lambda* (#:key outputs inputs #:allow-other-keys)
12409 (setenv "CPATH"
12410 (string-append
12411 (assoc-ref inputs "sdl") "/include/SDL:"
12412 (or (getenv "CPATH") "")))
12413 (let* ((out (assoc-ref outputs "out"))
12414 (assets (string-append out "/share/passage")))
12415 (substitute* "common.cpp"
12416 (("readTGA\\( \"graphics\"")
12417 (format #false "readTGA(\"~a/graphics\"" assets)))
12418 (substitute* "musicPlayer.cpp"
12419 (("readTGA\\( \"music\"")
12420 (format #false "readTGA(\"~a/music\"" assets))))))
12421 (replace 'install
12422 (lambda* (#:key outputs #:allow-other-keys)
12423 (let* ((out (assoc-ref outputs "out"))
12424 (bin (string-append out "/bin"))
12425 (assets (string-append out "/share/passage/")))
12426 (install-file "Passage" bin)
12427 (install-file "../documentation/Readme.txt" assets)
12428 (copy-recursively "graphics" (string-append assets "graphics"))
12429 (copy-recursively "music" (string-append assets "music"))
12430 (copy-recursively "settings" (string-append assets "settings"))))))))
12431 (inputs
12432 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
12433 (native-inputs
12434 `(("imagemagick" ,imagemagick)))
12435 (home-page "http://hcsoftware.sourceforge.net/passage/")
12436 (synopsis "Memento mori game")
12437 (description
12438 "Passage is meant to be a memento mori game. It presents an entire life,
12439 from young adulthood through old age and death, in the span of five minutes.
12440 Of course, it's a game, not a painting or a film, so the choices that you make
12441 as the player are crucial. There's no ``right'' way to play Passage, just as
12442 there's no right way to interpret it.")
12443 (license license:public-domain)))
12444
12445 (define-public paperview
12446 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12447 (revision "1"))
12448 (package
12449 (name "paperview")
12450 (version (git-version "0.0.1" revision commit)) ;no upstream release
12451 (source (origin
12452 (method git-fetch)
12453 (uri (git-reference
12454 (url "https://github.com/glouw/paperview")
12455 (commit commit)))
12456 (file-name (git-file-name name version))
12457 (sha256
12458 (base32
12459 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12460 (build-system gnu-build-system)
12461 (inputs
12462 `(("sdl2" ,sdl2)))
12463 (arguments
12464 '(#:tests? #f ;no tests
12465 #:make-flags
12466 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12467 #:phases
12468 (modify-phases %standard-phases
12469 (delete 'configure))))
12470 (home-page "https://github.com/glouw/paperview/")
12471 (synopsis "High performance X11 animated wallpaper setter")
12472 (description "High performance animated desktop background setter for
12473 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12474 game FPS.")
12475 (license license:unlicense))))
12476
12477 (define-public curseofwar
12478 (package
12479 (name "curseofwar")
12480 (version "1.3.0")
12481 (source
12482 (origin
12483 (method git-fetch)
12484 (uri (git-reference
12485 (url "https://github.com/a-nikolaev/curseofwar")
12486 (commit (string-append "v" version))))
12487 (file-name (git-file-name name version))
12488 (sha256
12489 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12490 (build-system gnu-build-system)
12491 (arguments
12492 `(#:tests? #f ; no tests
12493 #:make-flags
12494 (list (string-append "CC=" ,(cc-for-target))
12495 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12496 #:phases
12497 (modify-phases %standard-phases
12498 (delete 'configure))))
12499 (inputs `(("ncurses" ,ncurses)))
12500 (home-page "https://a-nikolaev.github.io/curseofwar/")
12501 (synopsis "Fast-paced action strategy game")
12502 (description "Curse of War is a fast-paced action strategy game originally
12503 implemented using ncurses user interface. An SDL graphical version is also
12504 available.")
12505 (license license:gpl3+)))
12506
12507 (define-public schiffbruch
12508 ;; There haven't been any releases for several years, so I've taken the most
12509 ;; recent commit from the master branch that didn't fail to build (the last
12510 ;; commit gave me a compile error).
12511 (let ((commit "e41916d15d87749c82c5005cbb42d1bb079b43d9"))
12512 (package
12513 (name "schiffbruch")
12514 (version (git-version "1.2.1" "0" commit))
12515 (source
12516 (origin
12517 (method git-fetch)
12518 (uri (git-reference
12519 (url "https://github.com/sandsmark/Schiffbruch")
12520 (commit commit)))
12521 (file-name (git-file-name name version))
12522 (sha256
12523 (base32 "0lg3rqacrapf6c4sxi12cm9bmg43mlbclway1zxcm848pi1xkzwv"))))
12524 (build-system cmake-build-system)
12525 (arguments
12526 `(#:tests? #f ; no tests
12527 #:build-type "Release"))
12528 (native-inputs
12529 `(("gcc" ,gcc-11))) ; need C++20-compatible compiler
12530 (inputs
12531 `(("sfml" ,sfml)))
12532 (home-page "https://github.com/sandsmark/Schiffbruch/")
12533 (synopsis "Pixelart survival game")
12534 (description
12535 "Schiffbruch is a mix of building, strategy and adventure and gets played
12536 with a two-dimensional view. The game deals with the consequences of a ship
12537 wreckage. You're stranded on a desert island and have to survive. In order to
12538 do so you need to explore the island, find food, build a shelter and try to
12539 get attention, so you get found.")
12540 (license license:cc-by4.0))))
12541
12542 (define-public sdlpop
12543 (package
12544 (name "sdlpop")
12545 (version "1.22")
12546 (source (origin
12547 (method git-fetch)
12548 (uri (git-reference
12549 (url "https://github.com/NagyD/SDLPoP")
12550 (commit (string-append "v" version))))
12551 (file-name (git-file-name name version))
12552 (sha256
12553 (base32
12554 "1yy5r1r0hv0xggk8qd8bwk2zy7abpv89nikq4flqgi53fc5q9xl7"))))
12555 (build-system gnu-build-system)
12556 (arguments
12557 `(#:tests? #f ; no tests provided
12558 #:phases
12559 (modify-phases %standard-phases
12560 (delete 'configure)
12561 (add-before 'build 'prepare-build
12562 ;; Set correct environment for SDL.
12563 (lambda* (#:key inputs #:allow-other-keys)
12564 (setenv "CPATH"
12565 (string-append (assoc-ref inputs "sdl")
12566 "/include/SDL2:"
12567 (or (getenv "CPATH") "")))))
12568 (add-after 'unpack 'chdir
12569 (lambda _
12570 (chdir "src")))
12571 (replace 'install
12572 (lambda* (#:key outputs #:allow-other-keys)
12573 (let* ((out (assoc-ref outputs "out"))
12574 (bin (string-append out "/bin"))
12575 (opt (string-append out "/opt/sdlpop"))
12576 (app (string-append out "/usr/share/applications"))
12577 (template "src/SDLPoP.desktop.template"))
12578 (chdir "..")
12579 (install-file "prince" bin)
12580 (substitute* template (("\\$ROOT") out))
12581 (install-file template app)
12582 (rename-file (string-append app "/SDLPoP.desktop.template")
12583 (string-append app "/SDLPoP.desktop"))
12584 (install-file "SDLPoP.ini" opt)
12585 (copy-recursively "data" (string-append bin "/data"))
12586 (copy-recursively "doc" opt)
12587 (copy-recursively "mods" opt)))))))
12588 (native-inputs `(("pkg-config" ,pkg-config)))
12589 (inputs `(("sdl" ,(sdl-union (list sdl2
12590 sdl2-image
12591 sdl2-mixer)))))
12592 (synopsis "Port of Prince of Persia game")
12593 (description "This package provides port of Prince of Persia, based on the
12594 disassembly of the DOS version, extended with new features.")
12595 (home-page "https://github.com/NagyD/SDLPoP")
12596 (license license:gpl3+)))
12597
12598 (define-public fheroes2
12599 (package
12600 (name "fheroes2")
12601 (version "0.9.8")
12602 (build-system cmake-build-system)
12603 (arguments
12604 `(#:tests? #f ; no tests
12605 #:make-flags '("FHEROES2_STRICT_COMPILATION=1"
12606 "RELEASE=1")))
12607 (native-inputs
12608 `(("gettext" ,gettext-minimal)))
12609 (inputs
12610 `(("libpng" ,libpng)
12611 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
12612 ("zlib" ,zlib)))
12613 (source
12614 (origin
12615 (method git-fetch)
12616 (uri (git-reference
12617 (url "https://github.com/ihhub/fheroes2")
12618 (commit version)))
12619 (file-name (git-file-name name version))
12620 (sha256
12621 (base32 "1sc7rmyiciahxh5f6rarhil2hrw8q8sjdssh063grji50mlnrf6a"))))
12622 (home-page "https://ihhub.github.io/fheroes2/")
12623 (synopsis "Turn-based strategy game engine")
12624 (description "@code{fheroes2} is an implementation of Heroes of Might and
12625 Magic II (aka HOMM2) game engine. It requires assets and game resources to
12626 play; it will look for them at @file{~/.local/share/fheroes2} folder.")
12627 (license license:gpl2)))