gnu: pioneer: Update to 20210203.
[jackhill/guix/guix.git] / gnu / packages / games.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Eric Bavier <bavier@posteo.net>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015, 2019 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015, 2017, 2018 Christopher Lemmer Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017, 2019 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
35 ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
36 ;;; Copyright © 2018 Madalin Ionel-Patrascu <madalinionel.patrascu@mdc-berlin.de>
37 ;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
38 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
39 ;;; Copyright © 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
40 ;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
41 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
42 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
43 ;;; Copyright © 2019, 2020 Jesse Gibbons <jgibbons2357+guix@gmail.com>
44 ;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
45 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
46 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
47 ;;; Copyright © 2019 Josh Holland <josh@inv.alid.pw>
48 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
49 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
50 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
51 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
52 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
53 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
54 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
57 ;;; Copyright © 2020 Lu hux <luhux@outlook.com>
58 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
59 ;;; Copyright © 2021 Olivier Rojon <o.rojon@posteo.net>
60 ;;;
61 ;;; This file is part of GNU Guix.
62 ;;;
63 ;;; GNU Guix is free software; you can redistribute it and/or modify it
64 ;;; under the terms of the GNU General Public License as published by
65 ;;; the Free Software Foundation; either version 3 of the License, or (at
66 ;;; your option) any later version.
67 ;;;
68 ;;; GNU Guix is distributed in the hope that it will be useful, but
69 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
70 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
71 ;;; GNU General Public License for more details.
72 ;;;
73 ;;; You should have received a copy of the GNU General Public License
74 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
75
76 (define-module (gnu packages games)
77 #:use-module (ice-9 match)
78 #:use-module ((guix licenses) #:prefix license:)
79 #:use-module (guix utils)
80 #:use-module (guix packages)
81 #:use-module (guix download)
82 #:use-module (guix git-download)
83 #:use-module (guix svn-download)
84 #:use-module (guix gexp)
85 #:use-module (gnu packages)
86 #:use-module (gnu packages adns)
87 #:use-module (gnu packages algebra)
88 #:use-module (gnu packages autotools)
89 #:use-module (gnu packages backup)
90 #:use-module (gnu packages base)
91 #:use-module (gnu packages build-tools)
92 #:use-module (gnu packages admin)
93 #:use-module (gnu packages audio)
94 #:use-module (gnu packages avahi)
95 #:use-module (gnu packages assembly)
96 #:use-module (gnu packages bash)
97 #:use-module (gnu packages bison)
98 #:use-module (gnu packages boost)
99 #:use-module (gnu packages check)
100 #:use-module (gnu packages cmake)
101 #:use-module (gnu packages compression)
102 #:use-module (gnu packages cpp)
103 #:use-module (gnu packages curl)
104 #:use-module (gnu packages crypto)
105 #:use-module (gnu packages cyrus-sasl)
106 #:use-module (gnu packages documentation)
107 #:use-module (gnu packages docbook)
108 #:use-module (gnu packages emulators)
109 #:use-module (gnu packages flex)
110 #:use-module (gnu packages fltk)
111 #:use-module (gnu packages fonts)
112 #:use-module (gnu packages fontutils)
113 #:use-module (gnu packages freedesktop)
114 #:use-module (gnu packages fribidi)
115 #:use-module (gnu packages game-development)
116 #:use-module (gnu packages gcc)
117 #:use-module (gnu packages gettext)
118 #:use-module (gnu packages ghostscript)
119 #:use-module (gnu packages gimp)
120 #:use-module (gnu packages gl)
121 #:use-module (gnu packages glib)
122 #:use-module (gnu packages gnome)
123 #:use-module (gnu packages gnu-doc)
124 #:use-module (gnu packages gnupg)
125 #:use-module (gnu packages gnuzilla)
126 #:use-module (gnu packages gperf)
127 #:use-module (gnu packages graphics)
128 #:use-module (gnu packages gsasl)
129 #:use-module (gnu packages gstreamer)
130 #:use-module (gnu packages gtk)
131 #:use-module (gnu packages guile)
132 #:use-module (gnu packages haskell)
133 #:use-module (gnu packages haskell-crypto)
134 #:use-module (gnu packages haskell-xyz)
135 #:use-module (gnu packages icu4c)
136 #:use-module (gnu packages image)
137 #:use-module (gnu packages imagemagick)
138 #:use-module (gnu packages javascript)
139 #:use-module (gnu packages kde)
140 #:use-module (gnu packages kde-frameworks)
141 #:use-module (gnu packages less)
142 #:use-module (gnu packages libcanberra)
143 #:use-module (gnu packages libedit)
144 #:use-module (gnu packages libunwind)
145 #:use-module (gnu packages linux)
146 #:use-module (gnu packages llvm)
147 #:use-module (gnu packages lua)
148 #:use-module (gnu packages man)
149 #:use-module (gnu packages maths)
150 #:use-module (gnu packages messaging)
151 #:use-module (gnu packages mp3)
152 #:use-module (gnu packages music)
153 #:use-module (gnu packages multiprecision)
154 #:use-module (gnu packages ncurses)
155 #:use-module (gnu packages netpbm)
156 #:use-module (gnu packages networking)
157 #:use-module (gnu packages ocaml)
158 #:use-module (gnu packages opencl)
159 #:use-module (gnu packages pcre)
160 #:use-module (gnu packages perl)
161 #:use-module (gnu packages perl-check)
162 #:use-module (gnu packages perl-compression)
163 #:use-module (gnu packages pkg-config)
164 #:use-module (gnu packages protobuf)
165 #:use-module (gnu packages pulseaudio)
166 #:use-module (gnu packages python)
167 #:use-module (gnu packages python-xyz)
168 #:use-module (gnu packages qt)
169 #:use-module (gnu packages readline)
170 #:use-module (gnu packages ruby)
171 #:use-module (gnu packages shells)
172 #:use-module (gnu packages sdl)
173 #:use-module (gnu packages serialization)
174 #:use-module (gnu packages sqlite)
175 #:use-module (gnu packages squirrel)
176 #:use-module (gnu packages swig)
177 #:use-module (gnu packages tcl)
178 #:use-module (gnu packages terminals)
179 #:use-module (gnu packages texinfo)
180 #:use-module (gnu packages textutils)
181 #:use-module (gnu packages tls)
182 #:use-module (gnu packages upnp)
183 #:use-module (gnu packages video)
184 #:use-module (gnu packages vulkan)
185 #:use-module (gnu packages web)
186 #:use-module (gnu packages wget)
187 #:use-module (gnu packages wxwidgets)
188 #:use-module (gnu packages xdisorg)
189 #:use-module (gnu packages xorg)
190 #:use-module (gnu packages xiph)
191 #:use-module (gnu packages xml)
192 #:use-module (guix build-system copy)
193 #:use-module (guix build-system cmake)
194 #:use-module (guix build-system glib-or-gtk)
195 #:use-module (guix build-system gnu)
196 #:use-module (guix build-system go)
197 #:use-module (guix build-system meson)
198 #:use-module (guix build-system perl)
199 #:use-module (guix build-system python)
200 #:use-module (guix build-system qt)
201 #:use-module (guix build-system scons)
202 #:use-module (guix build-system trivial)
203 #:use-module ((srfi srfi-1) #:hide (zip))
204 #:use-module (srfi srfi-26))
205
206 (define-public abe
207 (package
208 (name "abe")
209 (version "1.1")
210 (source
211 (origin
212 (method url-fetch)
213 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
214 "/abe-" version ".tar.gz"))
215 (sha256
216 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
217 (build-system gnu-build-system)
218 (arguments
219 `(#:configure-flags
220 (list (string-append "--with-data-dir="
221 (assoc-ref %outputs "out")
222 "/share/abe"))
223 #:phases
224 (modify-phases %standard-phases
225 (replace 'bootstrap
226 (lambda _ (invoke "sh" "autogen.sh")))
227 (add-before 'build 'set-SDL
228 ;; Set correct environment for SDL.
229 (lambda* (#:key inputs #:allow-other-keys)
230 (setenv "CPATH"
231 (string-append
232 (assoc-ref inputs "sdl") "/include/SDL:"
233 (or (getenv "CPATH") "")))
234 #t))
235 (add-after 'install 'finalize-install
236 (lambda* (#:key outputs #:allow-other-keys)
237 (let ((share (string-append (assoc-ref outputs "out") "/share")))
238 ;; Installation script does not copy game data files.
239 (let ((data (string-append share "/abe")))
240 (for-each (lambda (dir)
241 (let ((target (string-append data "/" dir)))
242 (mkdir-p target)
243 (copy-recursively dir target)))
244 '("images" "maps" "sounds")))
245 ;; Create desktop file.
246 (let ((apps (string-append share "/applications")))
247 (mkdir-p apps)
248 (make-desktop-entry-file
249 (string-append apps "/abe.desktop")
250 #:name "Abe's Amazing Adventure"
251 #:exec ,name
252 #:categories '("AdventureGame" "Game")
253 #:keywords
254 '("side-scrolling" "adventure" "pyramid" "singleplayer")
255 #:comment
256 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
257 (#f "Side-scrolling game")))))
258 #t)))))
259 (native-inputs
260 `(("autoconf" ,autoconf)
261 ("automake" ,automake)))
262 (inputs
263 `(("libxi" ,libxi)
264 ("libxmu" ,libxmu)
265 ("libxt" ,libxt)
266 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
267 (home-page "http://abe.sourceforge.net")
268 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
269 (description
270 "Abe's Amazing Adventure is a scrolling,
271 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
272 the style of similar games for the Commodore+4.")
273 (license license:gpl2+)))
274
275 ;; Data package for adanaxisgpl.
276 (define adanaxis-mush
277 (let ((version "1.1.0"))
278 (origin
279 (method url-fetch)
280 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
281 version ".tar.gz"))
282 (sha256
283 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
284
285 (define-public adanaxisgpl
286 (package
287 (name "adanaxisgpl")
288 (version "1.2.5")
289 (source
290 (origin
291 (method url-fetch)
292 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
293 version ".tar.gz"))
294 (sha256
295 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
296 (modules '((guix build utils)))
297 (snippet
298 '(begin
299 ;; Necessary for building with gcc >=4.7.
300 (substitute* "src/Mushcore/MushcoreSingleton.h"
301 (("SingletonPtrSet\\(new SingletonType\\);")
302 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
303 ;; Avoid an "invalid conversion from const char* to char*" error.
304 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
305 (("char \\*end, \\*result;")
306 (string-append "const char *end;"
307 "\n"
308 "char *result;")))
309 #t))))
310 (build-system gnu-build-system)
311 (arguments
312 `(#:tests? #f ; no check target
313 #:phases
314 (modify-phases %standard-phases
315 (add-after 'install 'install-data
316 (lambda* (#:key inputs outputs #:allow-other-keys)
317 (let ((data (assoc-ref inputs "adanaxis-mush"))
318 (share (string-append (assoc-ref outputs "out")
319 "/share/" ,name "-" ,version)))
320 (mkdir-p share)
321 (invoke "tar" "xvf" data "-C" share)))))))
322 (native-inputs
323 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
324 (inputs
325 `(("expat" ,expat)
326 ("freeglut" ,freeglut)
327 ("glu" ,glu)
328 ("libjpeg" ,libjpeg-turbo)
329 ("libogg" ,libogg)
330 ("libtiff" ,libtiff)
331 ("libvorbis" ,libvorbis)
332 ("libx11" ,libx11)
333 ("libxext" ,libxext)
334 ("pcre" ,pcre)
335 ("sdl" ,sdl)
336 ("sdl-mixer" ,sdl-mixer)))
337 (home-page "https://www.mushware.com")
338 (synopsis "Action game in four spatial dimensions")
339 (description
340 "Adanaxis is a fast-moving first person shooter set in deep space, where
341 the fundamentals of space itself are changed. By adding another dimension to
342 space this game provides an environment with movement in four directions and
343 six planes of rotation. Initially the game explains the 4D control system via
344 a graphical sequence, before moving on to 30 levels of gameplay with numerous
345 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
346 mouse and joystick control, and original music.")
347 (license license:gpl2)))
348
349 (define-public alex4
350 (package
351 (name "alex4")
352 (version "1.2.1")
353 (source
354 (origin
355 (method git-fetch)
356 (uri (git-reference
357 (url "https://github.com/carstene1ns/alex4")
358 (commit version)))
359 (file-name (git-file-name name version))
360 (sha256
361 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
362 (build-system gnu-build-system)
363 (arguments
364 `(#:tests? #f ; no check target
365 #:make-flags
366 (list "CC=gcc"
367 "CFLAGS=-D_FILE_OFFSET_BITS=64"
368 (string-append "PREFIX=" (assoc-ref %outputs "out")))
369 #:phases
370 (modify-phases %standard-phases
371 (delete 'configure) ; no configure script
372 (add-after 'install 'install-data
373 (lambda* (#:key outputs #:allow-other-keys)
374 (let ((share (string-append (assoc-ref outputs "out")
375 "/share/" ,name)))
376 (install-file "alex4.ini" share)
377 #t))))))
378 (inputs
379 `(("allegro" ,allegro-4)
380 ("dumb" ,dumb-allegro4)))
381 (home-page "http://allegator.sourceforge.net/")
382 (synopsis "Retro platform game")
383 (description
384 "Guide Alex the Allegator through the jungle in order to save his
385 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
386 Plenty of classic platforming in four nice colors guaranteed!
387
388 The game includes a built-in editor so you can design and share your own maps.")
389 (license license:gpl2+)))
390
391 (define-public armagetronad
392 (package
393 (name "armagetronad")
394 (version "0.2.9.0.1")
395 (source (origin
396 (method url-fetch)
397 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
398 version "/armagetronad-" version ".tbz"))
399 (sha256
400 (base32
401 "19rfhlg4gp0r7k1j8v4iw20325ciy156nmzax4xikmw22c6nmxcz"))))
402 (build-system gnu-build-system)
403 (native-inputs
404 `(("pkg-config" ,pkg-config)))
405 (inputs
406 `(("libxml2" ,libxml2)
407 ("sdl" ,sdl)
408 ("sdl-image" ,sdl-image)
409 ("freeglut" ,freeglut)
410 ("libpng" ,libpng)
411 ("libjpeg-turbo" ,libjpeg-turbo)))
412 (home-page "http://www.armagetronad.org")
413 (synopsis "Tron clone in 3D")
414 (description "Armagetron Advanced is a multiplayer game in 3d that
415 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
416 It's an old school arcade game slung into the 21st century. Highlights
417 include a customizable playing arena, HUD, unique graphics, and AI bots. For
418 the more advanced player there are new game modes and a wide variety of
419 physics settings to tweak as well.")
420 (license license:gpl2+)))
421
422 (define-public astromenace
423 (package
424 (name "astromenace")
425 (version "1.4.1")
426 (source
427 (origin
428 (method git-fetch)
429 (uri (git-reference
430 (url "https://github.com/viewizard/astromenace")
431 (commit (string-append "v" version))))
432 (file-name (git-file-name name version))
433 (sha256
434 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
435 (build-system cmake-build-system)
436 (arguments
437 `(#:tests? #f ;no test
438 #:configure-flags (list (string-append "-DDATADIR="
439 (assoc-ref %outputs "out")
440 "/share/astromenace"))
441 #:phases
442 (modify-phases %standard-phases
443 (replace 'install
444 ;; Upstream provides no install phase.
445 (lambda* (#:key inputs outputs #:allow-other-keys)
446 (let* ((out (assoc-ref outputs "out"))
447 (bin (string-append out "/bin"))
448 (share (string-append out "/share"))
449 (apps (string-append share "/applications"))
450 (data (string-append share "/astromenace"))
451 (icons (string-append share "/icons/hicolor/64x64/apps")))
452 (install-file "astromenace" bin)
453 (install-file "gamedata.vfs" data)
454 (let ((source (assoc-ref inputs "source")))
455 (with-directory-excursion (string-append source "/share")
456 (install-file "astromenace.desktop" apps)
457 (mkdir-p icons)
458 (copy-file "astromenace_64.png"
459 (string-append icons "/astromenace.png")))))
460 #t)))))
461 (inputs
462 `(("freealut" ,freealut)
463 ("freetype" ,freetype)
464 ("glu" ,glu)
465 ("libogg" ,libogg)
466 ("libvorbis" ,libvorbis)
467 ("openal" ,openal)
468 ("sdl2" ,sdl2)))
469 (home-page "https://www.viewizard.com/")
470 (synopsis "3D space shooter with spaceship upgrade possibilities")
471 (description
472 "Space is a vast area, an unbounded territory where it seems there is
473 a room for everybody, but reversal of fortune put things differently. The
474 hordes of hostile creatures crawled out from the dark corners of the universe,
475 craving to conquer your homeland. Their force is compelling, their legions
476 are interminable. However, humans didn't give up without a final showdown and
477 put their best pilot to fight back. These malicious invaders chose the wrong
478 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
479 regret their insolence.")
480 ;; Game is released under GPL3+ terms. Artwork is subject to CC
481 ;; BY-SA 4.0, and fonts to OFL1.1.
482 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
483
484 (define-public bastet
485 (package
486 (name "bastet")
487 (version "0.43.2")
488 (source
489 (origin
490 (method git-fetch)
491 (uri (git-reference
492 (url "https://github.com/fph/bastet")
493 (commit version)))
494 (file-name (git-file-name name version))
495 (sha256
496 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
497 (patches
498 (search-patches "bastet-change-source-of-unordered_set.patch"))))
499 (build-system gnu-build-system)
500 (arguments
501 `(#:make-flags
502 (list (string-append "CXXFLAGS=-I"
503 (assoc-ref %build-inputs "boost") "/include"))
504 #:phases
505 (modify-phases %standard-phases
506 (delete 'configure) ; no configure script
507 (replace 'check
508 ;; The 'Test' target builds the tests, but doesn't actually run them.
509 (lambda* (#:key make-flags #:allow-other-keys)
510 (apply invoke "make" "Test" make-flags)
511 (setenv "HOME" ".")
512 (invoke "./Test")))
513 (replace 'install
514 (lambda* (#:key outputs #:allow-other-keys)
515 (let* ((out (assoc-ref outputs "out"))
516 (share (string-append out "/share"))
517 (hicolor (string-append share "/icons/hicolor")))
518 (install-file "bastet"
519 (string-append out "/bin"))
520
521 (install-file "bastet.desktop"
522 (string-append share "/applications"))
523 (install-file "bastet.svg"
524 (string-append hicolor "/scalable/apps"))
525
526 (install-file "bastet.appdata.xml"
527 (string-append share "/appdata"))
528
529 (install-file "bastet.6"
530 (string-append out "/share/man/man6"))
531 #t))))))
532 (native-inputs
533 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
534 (inputs
535 `(("boost" ,boost)
536 ("ncurses" ,ncurses)))
537 (home-page "https://fph.altervista.org/prog/bastet.html")
538 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
539 (description
540 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
541 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
542 Instead, it uses a special algorithm to choose the worst brick possible.
543
544 Playing bastet can be a painful experience, especially if you usually make
545 canyons and wait for the long I-shaped block to clear four rows at a time.")
546 (license license:gpl3+)))
547
548 (define-public blobwars
549 (package
550 (name "blobwars")
551 (version "2.00")
552 (source
553 (origin
554 (method url-fetch)
555 (uri (string-append "mirror://sourceforge/blobwars/"
556 "blobwars-" version ".tar.gz"))
557 (sha256
558 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
559 (build-system gnu-build-system)
560 (arguments
561 `(#:tests? #f ;no test
562 #:make-flags
563 (let ((out (assoc-ref %outputs "out")))
564 (list (string-append "PREFIX=" out)
565 (string-append "BINDIR=" out "/bin/")
566 "USEPAK=1"
567 "RELEASE=1"))
568 #:phases
569 (modify-phases %standard-phases
570 (add-after 'unpack 'werror-begone
571 (lambda _
572 (substitute* "Makefile" (("-Werror") ""))
573 #t))
574 (delete 'configure)))) ;no configure script
575 (native-inputs
576 `(("gettext" ,gettext-minimal)
577 ("pkg-config" ,pkg-config)))
578 (inputs
579 `(("hicolor-icon-theme" ,hicolor-icon-theme)
580 ("sdl" ,(sdl-union (list sdl2
581 sdl2-image
582 sdl2-mixer
583 sdl2-ttf
584 sdl2-net)))))
585 (home-page "https://sourceforge.net/projects/blobwars/")
586 (synopsis "Platform action game featuring a blob with a lot of weapons")
587 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
588 in the Blobwars series. You take on the role of a fearless Blob agent. Your
589 mission is to infiltrate various enemy bases and rescue as many MIAs as
590 possible, while battling many vicious aliens.")
591 (license (list license:gpl2 ; For code and graphics
592 license:cc0 ; Music and sounds have specific licenses
593 license:cc-by3.0 ; see /doc/readme
594 license:cc-by-sa3.0
595 license:lgpl2.1+
596 license:bsd-2))))
597
598 (define-public bsd-games
599 (package
600 (name "bsd-games")
601 (version "2.17.0")
602 (source
603 (origin
604 (method url-fetch)
605 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
606 (sha256
607 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
608 (patches
609 (search-patches
610 ;; thanks Arch, and Debian
611 "bsd-games-2.17-64bit.patch"
612 "bsd-games-bad-ntohl-cast.patch"
613 "bsd-games-gamescreen.h.patch"
614 "bsd-games-getline.patch"
615 "bsd-games-null-check.patch"
616 "bsd-games-number.c-and-test.patch"
617 "bsd-games-stdio.h.patch"
618 "bsd-games-prevent-name-collisions.patch"
619 ;; Guix customizations
620 "bsd-games-add-configure-config.patch"
621 "bsd-games-dont-install-empty-files.patch"
622 "bsd-games-add-wrapper.patch"))))
623 (build-system gnu-build-system)
624 (native-inputs
625 `(("flex" ,flex)
626 ("bison" ,bison)))
627 (inputs
628 `(("curses" ,ncurses)
629 ("pager" ,less)
630 ("miscfiles" ,miscfiles)
631 ("openssl" ,openssl))) ;used only by 'factor'
632 (arguments
633 `(#:phases
634 (modify-phases %standard-phases
635 (replace 'configure
636 (lambda* (#:key outputs inputs #:allow-other-keys)
637 (let* ((out (assoc-ref outputs "out"))
638 (bin (string-append out "/bin"))
639 (doc (string-append out "/share/doc/bsd-games-" ,version))
640 (man (string-append out "/share/man"))
641 (word-list (string-append (assoc-ref inputs "miscfiles")
642 "/share/web2"))
643 (static-data (string-append out "/share/games/bsd-games"))
644 ;; Not a "./" because of substitute* in 'patch-install
645 ;; below. The .// allow us not to mess with the games'
646 ;; code any further: we just use a wrapper script that
647 ;; cd's to a BSD_GAMES_DIR. :]
648 (save-files ".//"))
649 (substitute* "configure"
650 (("/usr/share/man") man)
651 (("/usr/share/doc/bsd-games") doc)
652 (("/usr/share/[^\n/]*") static-data)
653 (("/var/games") save-files)
654 (("/usr/bin/less") (which "less"))
655 (("(/usr/bin|/usr/games)") bin))
656 (substitute* "config.params" (("WORD_LIST") word-list))
657 (substitute* "wrapper" (("STATIC_DATA") static-data))
658 (invoke "./configure"))
659 #t))
660 (add-before 'install 'patch-install
661 ;; Some games need a writable directory containing pre-maded files.
662 ;; The files get installed to the Store. Then the wrapper kicks in.
663 (lambda* (#:key outputs #:allow-other-keys)
664 (let* ((out (assoc-ref outputs "out"))
665 (static-data (string-append out "/share/games/bsd-games"))
666 (save-files ".//"))
667 (substitute* "Makeconfig" ((save-files) static-data)))
668 #t))
669 (add-after 'install 'install-documents
670 (lambda* (#:key outputs #:allow-other-keys)
671 (let* ((out (assoc-ref outputs "out"))
672 (doc (string-append out "/share/doc/bsd-games-" ,version)))
673 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
674 (for-each
675 (lambda(file) (install-file file doc))
676 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
677 "phantasia-COPYRIGHT")))
678 #t)))))
679 (home-page "https://github.com/vattam/BSDGames")
680 (synopsis "Collection of the old text-based games and amusements")
681 (description
682 "These are the BSD games. See the fortune-mod package for fortunes.
683
684 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
685 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
686 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
687 the $$ from the cave, anger the snake, and get out alive), tetris (game of
688 lining up the falling bricks of different shapes), and worm (eat, grow big,
689 and neither bite your tail, nor ram the wall).
690
691 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
692 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
693 the input), factor (factorizes a number), number (translates numbers into
694 text), pig (translates from English to Pig Latin), pom (should print the
695 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
696 in terminal), random (prints randomly chosen lines from files, or returns a
697 random exit-code), and wtf (explains what do some acronyms mean).
698
699 Board: backgammon (lead the men out of board faster than the friend do),
700 boggle (find the words in the square of letters), dab (game of dots and
701 boxes), gomoku (game of five in a row), hangman (guess a word before man is
702 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
703 canfield, cribbage, fish (juniors game), and mille.
704
705 Quests: adventure (search for treasures with the help of wizard),
706 battlestar (explore the world around, starting from dying spaceship),
707 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
708 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
709
710 Quizes: arithmetic, and quiz.")
711 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
712 ;; not bearing copyright notices, probably fall under the terms of the UCB
713 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
714 ;; warning in regard to the fortune databases."
715 (license (list
716 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
717 ;; lib/strlcpy.c, wargames/wargames.6
718 license:bsd-3
719 ;; dab and hunt. Files: adventure/extern.h,
720 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
721 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
722 ;; hack/extern.h, robots/auto.c, sail/display.h,
723 ;; sail/restart.h, wargames/wargames
724 license:bsd-4
725 ;; wtf (the game)
726 license:public-domain
727 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
728 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
729
730
731 (define-public bzflag
732 (package
733 (name "bzflag")
734 (version "2.4.20")
735 (source
736 (origin
737 (method url-fetch)
738 (uri (string-append "https://download.bzflag.org/bzflag/source/"
739 version "/bzflag-" version ".tar.bz2"))
740 (sha256
741 (base32 "16brxqmfiyz4j4lb8ihzjcbwqmpsms6vm3ijbp34lnw0blbwdjb2"))))
742 (build-system gnu-build-system)
743 (arguments
744 `(#:phases
745 (modify-phases %standard-phases
746 (add-after 'install 'install-desktop-file-and-icons
747 (lambda* (#:key outputs #:allow-other-keys)
748 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
749 (data (string-append share "/bzflag"))
750 (hicolor (string-append share "/icons/hicolor"))
751 (applications (string-append share "/applications")))
752 ;; Move desktop file.
753 (install-file (string-append data "/bzflag.desktop")
754 applications)
755 ;; Install icons.
756 (for-each (lambda (size)
757 (let* ((dim (string-append size "x" size))
758 (dir (string-append hicolor "/" dim "/apps")))
759 (mkdir-p dir)
760 (copy-file
761 (string-append data "/bzflag-" dim ".png")
762 (string-append dir "/bzflag.png"))))
763 '("48" "256")))
764 #t)))))
765 (native-inputs
766 `(("pkg-config" ,pkg-config)))
767 (inputs
768 `(("c-ares" ,c-ares)
769 ("curl" ,curl)
770 ("glew" ,glew)
771 ("glu" ,glu)
772 ("sdl2" ,sdl2)
773 ("zlib" ,zlib)))
774 (home-page "https://www.bzflag.org/")
775 (synopsis "3D first person tank battle game")
776 (description
777 "BZFlag is a 3D multi-player multiplatform tank battle game that
778 allows users to play against each other in a network environment.
779 There are five teams: red, green, blue, purple and rogue (rogue tanks
780 are black). Destroying a player on another team scores a win, while
781 being destroyed or destroying a teammate scores a loss. Rogues have
782 no teammates (not even other rogues), so they cannot shoot teammates
783 and they do not have a team score.
784
785 There are two main styles of play: capture-the-flag and free-for-all.
786 In capture-the-flag, each team (except rogues) has a team base and
787 each team with at least one player has a team flag. The object is to
788 capture an enemy team's flag by bringing it to your team's base. This
789 destroys every player on the captured team, subtracts one from that
790 team's score, and adds one to your team's score. In free-for-all,
791 there are no team flags or team bases. The object is simply to get as
792 high a score as possible.")
793 ;; The game is dual-licensed.
794 (license (list license:lgpl2.1 license:mpl2.0))))
795
796 (define-public cataclysm-dda
797 (package
798 (name "cataclysm-dda")
799 (version "0.E-3")
800 (source
801 (origin
802 (method git-fetch)
803 (uri (git-reference
804 (url "https://github.com/CleverRaven/Cataclysm-DDA")
805 (commit version)))
806 (sha256
807 (base32 "108cs6vp99qmqqfnmczad0xjgcl82bypm5xszwnlfcswdsrfs4da"))
808 (file-name (git-file-name name version))))
809 (build-system gnu-build-system)
810 (arguments
811 '(#:make-flags
812 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
813 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
814 "LOCALIZE=1" "LANGUAGES=all")
815 #:phases
816 (modify-phases %standard-phases
817 (delete 'configure)
818 (add-after 'build 'build-tiles
819 (lambda* (#:key make-flags outputs #:allow-other-keys)
820 ;; Change prefix directory and enable tile graphics and sound.
821 (apply invoke "make" "TILES=1" "SOUND=1"
822 (string-append "PREFIX="
823 (assoc-ref outputs "tiles"))
824 (cdr make-flags))))
825 (add-after 'install 'install-tiles
826 (lambda* (#:key make-flags outputs #:allow-other-keys)
827 (apply invoke "make" "install" "TILES=1" "SOUND=1"
828 (string-append "PREFIX="
829 (assoc-ref outputs "tiles"))
830 (cdr make-flags)))))
831 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
832 ;; input in order to support tests.
833 #:tests? #f))
834 (outputs '("out"
835 "tiles")) ;for tile graphics and sound support
836 (native-inputs
837 `(("gettext" ,gettext-minimal)
838 ("pkg-config" ,pkg-config)))
839 (inputs
840 `(("freetype" ,freetype)
841 ("libogg" ,libogg)
842 ("libvorbis" ,libvorbis)
843 ("ncurses" ,ncurses)
844 ("sdl2" ,sdl2)
845 ("sdl2-image" ,sdl2-image)
846 ("sdl2-ttf" ,sdl2-ttf)
847 ("sdl2-mixer" ,sdl2-mixer)))
848 (home-page "https://cataclysmdda.org/")
849 (synopsis "Survival horror roguelike video game")
850 (description
851 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
852 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
853 procedurally generated world. Scavenge the remnants of a dead civilization
854 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
855 to get you out of Dodge. Fight to defeat or escape from a wide variety of
856 powerful monstrosities, from zombies to giant insects to killer robots and
857 things far stranger and deadlier, and against the others like yourself, that
858 want what you have.")
859 (license license:cc-by-sa3.0)))
860
861 (define-public corsix-th
862 (package
863 (name "corsix-th")
864 (version "0.64")
865 (source
866 (origin
867 (method git-fetch)
868 (uri (git-reference
869 (url "https://github.com/CorsixTH/CorsixTH")
870 (commit (string-append "v" version))))
871 (file-name (git-file-name name version))
872 (sha256
873 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
874 (build-system cmake-build-system)
875 (arguments
876 `(#:phases
877 (modify-phases %standard-phases
878 (add-after 'install 'wrap-binary
879 (lambda _
880 ;; Set Lua module paths and default MIDI soundfont on startup.
881 (let* ((out (assoc-ref %outputs "out"))
882 (fluid (assoc-ref %build-inputs "fluid-3"))
883 (lua-version ,(version-major+minor (package-version lua)))
884 (lua-cpath
885 (map (lambda (lib)
886 (string-append
887 (assoc-ref %build-inputs (string-append "lua-" lib))
888 "/lib/lua/" lua-version "/?.so"))
889 '("filesystem" "lpeg"))))
890 (wrap-program (string-append out "/bin/corsix-th")
891 `("LUA_CPATH" ";" = ,lua-cpath)
892 `("SDL_SOUNDFONTS" ":" suffix
893 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
894 #t)))
895 #:tests? #f)) ; TODO need busted package to run tests
896 ;; Omit Lua-Socket dependency to disable automatic updates.
897 (inputs
898 `(("ffmpeg" ,ffmpeg)
899 ("fluid-3" ,fluid-3)
900 ("freetype" ,freetype)
901 ("lua" ,lua)
902 ("lua-filesystem" ,lua-filesystem)
903 ("lua-lpeg" ,lua-lpeg)
904 ("sdl2" ,sdl2)
905 ("sdl2-mixer" ,sdl2-mixer)))
906 (home-page "https://corsixth.com")
907 (synopsis "Implementation of the @i{Theme Hospital} game engine")
908 (description
909 "This package provides a reimplementation of the 1997 Bullfrog business
910 simulation game @i{Theme Hospital}. As well as faithfully recreating the
911 original engine, CorsixTH adds support for high resolutions, custom levels and
912 more. This package does @emph{not} provide the game assets.")
913 (license (list
914 license:expat ; main license
915 license:bsd-3)))) ; CorsixTH/Src/random.c
916
917 (define-public cowsay
918 (package
919 (name "cowsay")
920 (version "3.04")
921 (source (origin
922 (method git-fetch)
923 (uri (git-reference
924 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
925 (commit (string-append name "-" version))))
926 (file-name (git-file-name name version))
927 (sha256
928 (base32
929 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
930 (build-system gnu-build-system)
931 (arguments
932 `(#:phases
933 (modify-phases %standard-phases
934 (delete 'configure) ; no configure script
935 (delete 'build) ; nothing to be built
936 (replace 'install
937 (lambda* (#:key outputs #:allow-other-keys)
938 (invoke "sh" "install.sh"
939 (assoc-ref outputs "out"))))
940 (delete 'check)
941 (add-after 'install 'check
942 (lambda* (#:key outputs #:allow-other-keys)
943 (invoke (string-append (assoc-ref outputs "out")
944 "/bin/cowsay")
945 "We're done!"))))))
946 (inputs
947 `(("perl" ,perl)))
948 (home-page (string-append "https://web.archive.org/web/20071026043648/"
949 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
950 (synopsis "Speaking cow text filter")
951 (description "Cowsay is basically a text filter. Send some text into it,
952 and you get a cow saying your text. If you think a talking cow isn't enough,
953 cows can think too: all you have to do is run @command{cowthink}. If you're
954 tired of cows, a variety of other ASCII-art messengers are available.")
955 (license license:gpl3+)))
956
957 (define-public lolcat
958 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
959 (revision "0"))
960 (package
961 (name "lolcat")
962 (version (git-version "1.0" revision commit))
963 (source
964 (origin
965 (method git-fetch)
966 (uri (git-reference
967 (url "https://github.com/jaseg/lolcat")
968 (commit commit)))
969 (sha256
970 (base32
971 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
972 (file-name (git-file-name name version))))
973 (build-system gnu-build-system)
974 (arguments
975 `(#:tests? #f ; no check target
976 #:make-flags
977 (list ,(string-append "CC=" (cc-for-target)))
978 #:phases
979 (modify-phases %standard-phases
980 (delete 'bootstrap)
981 (delete 'configure)
982 (replace 'install
983 (lambda* (#:key outputs #:allow-other-keys)
984 (let* ((out (assoc-ref outputs "out"))
985 (dest (string-append out "/bin")))
986 (mkdir-p dest)
987 (install-file "lolcat" dest)
988 (install-file "censor" dest)
989 #t))))))
990 (home-page "https://github.com/jaseg/lolcat")
991 (synopsis "Rainbow coloring effect for text console display")
992 (description "@command{lolcat} concatenates files and streams like
993 regular @command{cat}, but it also adds terminal escape codes between
994 characters and lines resulting in a rainbow effect.")
995 (license license:wtfpl2))))
996
997 (define-public foobillard++
998 ;; Even though this latest revision is old already, stable release is
999 ;; lagging way behind it, and has issues with textures rendering.
1000 (let ((svn-revision 170))
1001 (package
1002 (name "foobillard++")
1003 (version (string-append "3.43-r" (number->string svn-revision)))
1004 (source
1005 (origin
1006 (method svn-fetch)
1007 (uri (svn-reference
1008 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1009 (revision svn-revision)))
1010 (file-name (git-file-name name version))
1011 (sha256
1012 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1013 (patches
1014 (search-patches "foobillard++-pkg-config.patch"))
1015 (modules '((guix build utils)))
1016 (snippet
1017 '(begin
1018 ;; Unfortunately, the game includes background music with
1019 ;; a non-commercial clause. Delete it.
1020 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1021 #t))))
1022 (build-system gnu-build-system)
1023 (arguments
1024 `(#:configure-flags
1025 (list
1026 ;; Install data in a less exotic location.
1027 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1028 ;; Prevent a build error about undefined trigonometric functions.
1029 "--enable-fastmath=no")
1030 #:phases
1031 (modify-phases %standard-phases
1032 (add-after 'unpack 'fix-makefile
1033 ;; Remove hard-coded directories. Also fix installation
1034 ;; rule: it tries to move around non-existent files or
1035 ;; files already moved.
1036 (lambda* (#:key outputs #:allow-other-keys)
1037 (substitute* "Makefile.am"
1038 (("/usr") (assoc-ref outputs "out"))
1039 (("cp .*?/foobillardplus\\.desktop.*") "")
1040 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1041 ""))
1042 #t))
1043 (add-after 'unpack 'unbundle-font
1044 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1045 ;; LinBiolinum_aS.ttf, which are not provided by
1046 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1047 ;; them yet.
1048 (lambda* (#:key inputs #:allow-other-keys)
1049 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1050 "/share/fonts/truetype/")))
1051 (with-directory-excursion "data"
1052 (for-each (lambda (f)
1053 (delete-file f)
1054 (symlink (string-append dejavu f) f))
1055 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1056 #t))
1057 (replace 'bootstrap
1058 (lambda _
1059 (invoke "aclocal" "--force")
1060 (invoke "autoconf" "-f")
1061 (invoke "autoheader" "-f")
1062 (invoke "automake" "-a" "-c" "-f")))
1063 (add-before 'build 'prepare-build
1064 ;; Set correct environment for SDL.
1065 (lambda* (#:key inputs #:allow-other-keys)
1066 (setenv "CPATH"
1067 (string-append (assoc-ref inputs "sdl")
1068 "/include/SDL:"
1069 (or (getenv "CPATH") "")))
1070 #t))
1071 (add-before 'build 'fix-settings-directory
1072 ;; Hide foobillardplus settings directory in $HOME.
1073 (lambda _
1074 (substitute* "src/history.c"
1075 (("/foobillardplus-data") "/.foobillardplus"))
1076 #t))
1077 (add-before 'install 'create-directories
1078 ;; Install process does not create directories before
1079 ;; trying to move file in it.
1080 (lambda* (#:key outputs #:allow-other-keys)
1081 (let ((out (assoc-ref outputs "out")))
1082 (mkdir-p (string-append out "/share/icons"))
1083 (mkdir-p (string-append out "/share/applications")))
1084 #t))
1085 (add-after 'install 'symlink-executable
1086 ;; Symlink executable to $out/bin.
1087 (lambda* (#:key outputs #:allow-other-keys)
1088 (let* ((out (assoc-ref outputs "out"))
1089 (bin (string-append out "/bin")))
1090 (mkdir-p bin)
1091 (with-directory-excursion bin
1092 (symlink "../share/foobillardplus/bin/foobillardplus"
1093 "foobillardplus"))
1094 #t))))))
1095 (native-inputs
1096 `(("autoconf" ,autoconf)
1097 ("automake" ,automake)
1098 ("pkg-config" ,pkg-config)))
1099 (inputs
1100 `(("font-dejavu" ,font-dejavu)
1101 ("freetype" ,freetype)
1102 ("glu" ,glu)
1103 ("libpng" ,libpng)
1104 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1105 (home-page "http://foobillardplus.sourceforge.net/")
1106 (synopsis "3D billiard game")
1107 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1108 based on the original foobillard 3.0a sources from Florian Berger.
1109 You can play it with one or two players or against the computer.
1110
1111 The game features:
1112
1113 @itemize
1114 @item Wood paneled table with gold covers and gold diamonds.
1115 @item Reflections on balls.
1116 @item Zoom in and out, rotation, different angles and bird's eye view.
1117 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1118 @item Tournaments. Compete against other players.
1119 @item Animated cue with strength and eccentric hit adjustment.
1120 @item Jump shots and snipping.
1121 @item Realistic gameplay and billiard sounds.
1122 @item Red-Green stereo.
1123 @item And much more.
1124 @end itemize")
1125 (license (list license:gpl2 license:silofl1.1)))))
1126
1127 (define-public freedoom
1128 (package
1129 (name "freedoom")
1130 (version "0.12.1")
1131 (source
1132 (origin
1133 (method git-fetch)
1134 (uri (git-reference
1135 (url "https://github.com/freedoom/freedoom")
1136 (commit (string-append "v" version))))
1137 (file-name (git-file-name name version))
1138 (sha256
1139 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1140 (build-system gnu-build-system)
1141 (arguments
1142 '(#:make-flags
1143 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1144 #:tests? #f ; no check target
1145 #:phases
1146 (modify-phases %standard-phases
1147 (delete 'bootstrap)
1148 (replace 'configure
1149 (lambda* (#:key inputs outputs #:allow-other-keys)
1150 (let* ((freedoom (assoc-ref outputs "out"))
1151 (wad-dir (string-append freedoom "/share/games/doom")))
1152 ;; Make sure that the install scripts know where to find
1153 ;; the appropriate WAD files.
1154 (substitute* "dist/freedoom"
1155 (("IWAD=freedm.wad")
1156 (string-append "IWAD=" wad-dir "/freedm.wad"))
1157 (("IWAD=freedoom1.wad")
1158 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1159 (("IWAD=freedoom2.wad")
1160 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1161 #t))))))
1162 (native-inputs
1163 `(("asciidoc" ,asciidoc)
1164 ("deutex" ,deutex)
1165 ("python" ,python)
1166 ("python-pillow" ,python-pillow)))
1167 (home-page "https://freedoom.github.io/")
1168 (synopsis "Free content game based on the Doom engine")
1169 (native-search-paths
1170 (list (search-path-specification
1171 (variable "DOOMWADDIR")
1172 (files '("share/games/doom")))
1173 (search-path-specification
1174 (variable "DOOMWADPATH")
1175 (files '("share/games/doom")))))
1176 (description
1177 "The Freedoom project aims to create a complete free content first person
1178 shooter game. Freedoom by itself is just the raw material for a game: it must
1179 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1180 played. Freedoom complements the Doom engine with free levels, artwork, sound
1181 effects and music to make a completely free game.")
1182 (license license:bsd-3)))
1183
1184 (define-public freedroidrpg
1185 (package
1186 (name "freedroidrpg")
1187 (version "0.16.1")
1188 (source
1189 (origin
1190 (method url-fetch)
1191 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1192 "freedroidRPG-" (version-major+minor version) "/"
1193 "freedroidRPG-" version ".tar.gz"))
1194 (sha256
1195 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1196 (build-system gnu-build-system)
1197 (arguments
1198 `(#:configure-flags
1199 (list
1200 (string-append "CFLAGS="
1201 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1202 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1203 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1204 "--enable-opengl")
1205 ;; FIXME: the test suite fails with the following error output:
1206 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1207 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1208 #:tests? #f))
1209 (native-inputs
1210 `(("pkg-config" ,pkg-config)))
1211 (inputs
1212 `(("glu" ,glu)
1213 ("libjpeg" ,libjpeg-turbo)
1214 ("libogg" ,libogg)
1215 ("libpng" ,libpng)
1216 ("libvorbis" ,libvorbis)
1217 ("mesa" ,mesa)
1218 ("python" ,python-wrapper)
1219 ("sdl" ,sdl)
1220 ("sdl-gfx" ,sdl-gfx)
1221 ("sdl-image" ,sdl-image)
1222 ("sdl-mixer" ,sdl-mixer)
1223 ("zlib" ,zlib)))
1224 (home-page "https://www.freedroid.org/")
1225 (synopsis "Isometric role-playing game against killer robots")
1226 (description
1227 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1228 The game tells the story of a world destroyed by a conflict between robots and
1229 their human masters. To restore peace to humankind, the player must complete
1230 numerous quests while fighting off rebelling robots---either by taking control
1231 of them, or by simply blasting them to pieces with melee and ranged weapons in
1232 real-time combat.")
1233 (license (list license:expat ; lua/
1234 license:gpl3 ; src/gen_savestruct.py
1235 license:gpl2+)))) ; the rest
1236
1237 (define-public golly
1238 (package
1239 (name "golly")
1240 (version "3.3")
1241 (source (origin
1242 (method url-fetch)
1243 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1244 version "/golly-" version
1245 "-src.tar.gz"))
1246 (sha256
1247 (base32
1248 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1249 (build-system gnu-build-system)
1250 (arguments
1251 '(#:make-flags (list "CC=gcc"
1252 (string-append "GOLLYDIR="
1253 (assoc-ref %outputs "out")
1254 "/share/golly"))
1255 #:tests? #f ; no check target
1256 #:phases
1257 (modify-phases %standard-phases
1258 (replace 'configure
1259 (lambda* (#:key inputs #:allow-other-keys)
1260 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1261 ;; properly set the path to the Python shared library. This
1262 ;; substitution acheives the same end by different means.
1263 (substitute* "gui-wx/wxprefs.cpp"
1264 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1265 (string-append "pythonlib = \""
1266 (assoc-ref inputs "python")
1267 "/lib/libpython-2.7.so\"")))
1268 #t))
1269 (replace 'build
1270 (lambda* (#:key make-flags outputs #:allow-other-keys)
1271 (with-directory-excursion "gui-wx"
1272 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1273 (replace 'install
1274 (lambda* (#:key outputs #:allow-other-keys)
1275 (let* ((out (assoc-ref outputs "out"))
1276 (bin (string-append out "/bin"))
1277 (doc (string-append out "/share/doc/golly"))
1278 (pixmaps (string-append out "/share/pixmaps"))
1279 (share (string-append out "/share/golly")))
1280 (for-each (lambda (binary)
1281 (install-file binary bin))
1282 '("bgolly" "golly"))
1283 (for-each (lambda (document)
1284 (install-file
1285 (string-append "docs/" document ".html")
1286 doc))
1287 '("License" "ReadMe" "ToDo"))
1288 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1289 (for-each (lambda (folder)
1290 (copy-recursively
1291 folder
1292 (string-append share "/" folder)))
1293 '("Help" "Patterns" "Rules" "Scripts")))
1294 #t)))))
1295 (native-inputs
1296 `(("lua" ,lua)))
1297 (inputs
1298 `(("glu" ,glu)
1299 ("mesa" ,mesa)
1300 ("python" ,python-2)
1301 ("wxwidgets" ,wxwidgets-gtk2)
1302 ("zlib" ,zlib)))
1303 (home-page "http://golly.sourceforge.net/")
1304 (synopsis "Software for exploring cellular automata")
1305 (description
1306 "Golly simulates Conway's Game of Life and many other types of cellular
1307 automata. The following features are available:
1308 @enumerate
1309 @item Support for bounded and unbounded universes, with cells of up to 256
1310 states.
1311 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1312 algorithm.
1313 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1314 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1315 @item Scriptable via Lua or Python.
1316 @item Extracting patterns, rules and scripts from zip files.
1317 @item Downloading patterns, rules and scripts from online archives.
1318 @item Pasting patterns from the clipboard.
1319 @item Unlimited undo/redo.
1320 @item Configurable keyboard shortcuts.
1321 @item Auto fit option to keep patterns within the view.
1322 @end enumerate")
1323 (license license:gpl2+)))
1324
1325 (define-public julius
1326 (package
1327 (name "julius")
1328 (version "1.6.0")
1329 (source
1330 (origin
1331 (method git-fetch)
1332 (uri (git-reference
1333 (url "https://github.com/bvschaik/julius")
1334 (commit (string-append "v" version))))
1335 (file-name (git-file-name name version))
1336 (sha256
1337 (base32 "0nfdn8n6ywhm69ckz9a1chl5xxiqyaj3l337wadsbppnpscjihrc"))
1338 ;; Remove unused bundled libraries.
1339 (modules '((guix build utils)))
1340 (snippet
1341 '(begin
1342 (with-directory-excursion "ext"
1343 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1344 #t))))
1345 (build-system cmake-build-system)
1346 (inputs
1347 `(("libpng" ,libpng)
1348 ("sdl2" ,sdl2)
1349 ("sdl2-mixer" ,sdl2-mixer)))
1350 (home-page "https://github.com/bvschaik/julius")
1351 (synopsis "Re-implementation of Caesar III game engine")
1352 (description
1353 "Engine for Caesar III, a city-building real-time strategy game.
1354 Julius includes some UI enhancements while preserving the logic (including
1355 bugs) of the original game, so that saved games are compatible. This package
1356 does not include game data.")
1357 (license (list license:agpl3
1358 license:zlib)))) ; ext/tinyfiledialogs
1359
1360 (define-public augustus
1361 (package
1362 (inherit julius)
1363 (name "augustus")
1364 (version "2.0.1")
1365 (source
1366 (origin
1367 (method git-fetch)
1368 (uri (git-reference
1369 (url "https://github.com/Keriew/augustus")
1370 (commit (string-append "v" version))))
1371 (file-name (git-file-name name version))
1372 (sha256
1373 (base32 "0czazw8mc3fbvdazs2nzvgxd1dpzjc8z5fwiv89vv4nd7laz3jkj"))
1374 ;; Remove unused bundled libraries.
1375 (modules '((guix build utils)))
1376 (snippet
1377 '(begin
1378 (with-directory-excursion "ext"
1379 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1380 #t))))
1381 (arguments
1382 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1383 `(#:tests? #f))
1384 (home-page "https://github.com/Keriew/augustus")
1385 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1386 (description
1387 "Fork of Julius, an engine for the a city-building real-time strategy
1388 game Caesar III. Gameplay enhancements include:
1389
1390 @itemize
1391 @item roadblocks;
1392 @item market special orders;
1393 @item global labour pool;
1394 @item partial warehouse storage;
1395 @item increased game limits;
1396 @item zoom controls.
1397 @end itemize\n")))
1398
1399 (define-public meandmyshadow
1400 (package
1401 (name "meandmyshadow")
1402 (version "0.5a")
1403 (source (origin
1404 (method url-fetch)
1405 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1406 version "/meandmyshadow-" version
1407 "-src.tar.gz"))
1408 (sha256
1409 (base32
1410 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1411 (build-system cmake-build-system)
1412 (arguments
1413 `(#:tests? #f)) ; there are no tests
1414 (native-inputs
1415 `(("pkg-config" ,pkg-config)))
1416 (inputs
1417 `(("curl" ,curl)
1418 ("libarchive" ,libarchive)
1419 ("lua" ,lua)
1420 ("sdl" ,(sdl-union (list sdl2
1421 sdl2-image
1422 sdl2-mixer
1423 sdl2-ttf)))))
1424 (home-page "https://acmepjz.github.io/meandmyshadow/")
1425 (synopsis "Puzzle/platform game")
1426 (description "Me and My Shadow is a puzzle/platform game in which you try
1427 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1428 and much more stand between you and the exit. Record your moves and let your
1429 shadow mimic them to reach blocks you couldn't reach alone.")
1430 (license license:gpl3+)))
1431
1432 (define-public opensurge
1433 (package
1434 (name "opensurge")
1435 (version "0.5.1.2")
1436 (source
1437 (origin
1438 (method git-fetch)
1439 (uri (git-reference
1440 (url "https://github.com/alemart/opensurge")
1441 (commit (string-append "v" version))))
1442 (file-name (git-file-name name version))
1443 (sha256
1444 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1445 (build-system cmake-build-system)
1446 (arguments
1447 `(#:tests? #f ;there are no tests
1448 #:configure-flags
1449 (let* ((out (assoc-ref %outputs "out"))
1450 (share (string-append out "/share")))
1451 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1452 (string-append "-DGAME_DATADIR=" share "/" ,name)
1453 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1454 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1455 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1456 #:phases
1457 (modify-phases %standard-phases
1458 (add-after 'unpack 'fix-xdg-open-path
1459 (lambda* (#:key inputs #:allow-other-keys)
1460 ;; Look for xdg-open in the store.
1461 (substitute* "src/core/web.c"
1462 (("/usr(/bin/xdg-open)" _ bin)
1463 (string-append (assoc-ref inputs "xdg-utils") bin)))
1464 #t))
1465 (add-after 'unpack 'unbundle-fonts
1466 (lambda* (#:key inputs #:allow-other-keys)
1467 ;; Replace bundled Roboto fonts with links to the store.
1468 (with-directory-excursion "fonts"
1469 (let ((roboto-dir (string-append
1470 (assoc-ref inputs "font-google-roboto")
1471 "/share/fonts/truetype/")))
1472 (for-each
1473 (lambda (font)
1474 (delete-file font)
1475 (symlink (string-append roboto-dir font) font))
1476 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1477 #t))))))
1478 (inputs
1479 `(("allegro" ,allegro)
1480 ("font-google-roboto" ,font-google-roboto)
1481 ("surgescript" ,surgescript)
1482 ("xdg-utils" ,xdg-utils)))
1483 (home-page "https://opensurge2d.org")
1484 (synopsis "2D retro side-scrolling game")
1485 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1486 inspired by the Sonic games. The player runs at high speeds through each
1487 level while collecting items and avoiding obstacles. The game includes a
1488 built-in level editor.")
1489 (license
1490 ;; Code is under GPL 3+, assets are under various licenses.
1491 ;; See src/misc/credits.c for details.
1492 (list license:gpl3+
1493 license:cc0
1494 license:cc-by3.0
1495 license:cc-by-sa3.0
1496 license:expat
1497 license:public-domain
1498 license:silofl1.1))))
1499
1500 (define-public knights
1501 (package
1502 (name "knights")
1503 (version "025")
1504 (source (origin
1505 (method url-fetch)
1506 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1507 version "_src.tar.gz"))
1508 (sha256
1509 (base32
1510 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1511 (build-system gnu-build-system)
1512 (arguments
1513 '(#:make-flags
1514 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1515 "CXXFLAGS=-lpthread")
1516 #:phases
1517 (modify-phases %standard-phases
1518 ;; No configure script.
1519 (delete 'configure))
1520 #:tests? #f)) ;; No check target.
1521 (inputs
1522 `(("boost" ,boost)
1523 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1524 ("freetype" ,freetype)
1525 ("fontconfig" ,fontconfig)
1526 ("curl" ,curl)))
1527 (native-inputs
1528 `(("pkg-config" ,pkg-config)))
1529 (home-page "http://www.knightsgame.org.uk/")
1530 (synopsis "Multiplayer dungeon game involving knights and quests")
1531 (description "Knights is a multiplayer game involving several knights who
1532 must run around a dungeon and complete various quests. Each game revolves
1533 around a quest – for example, you might have to find some items and carry them
1534 back to your starting point. This may sound easy, but as there are only
1535 enough items in the dungeon for one player to win, you may end up having to
1536 kill your opponents to get their stuff! Other quests involve escaping from
1537 the dungeon, fighting a duel to the death against the enemy knights, or
1538 destroying an ancient book using a special wand.")
1539 ;; This package includes modified sources of lua (X11), enet (Expat), and
1540 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1541 ;; license. The whole package is released under GPLv3+.
1542 (license license:gpl3+)))
1543
1544 (define-public gnome-chess
1545 (package
1546 (name "gnome-chess")
1547 (version "3.37.3")
1548 (source (origin
1549 (method url-fetch)
1550 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1551 (version-major+minor version) "/"
1552 "gnome-chess-" version ".tar.xz"))
1553 (sha256
1554 (base32
1555 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1556 (build-system meson-build-system)
1557 (arguments
1558 '(#:glib-or-gtk? #t
1559 #:phases
1560 (modify-phases %standard-phases
1561 (add-after 'unpack 'skip-gtk-update-icon-cache
1562 ;; Don't create 'icon-theme.cache'.
1563 (lambda _
1564 (substitute* "meson_post_install.py"
1565 (("gtk-update-icon-cache") "true"))
1566 #t)))))
1567 (inputs
1568 `(("gtk+" ,gtk+)
1569 ("librsvg" ,librsvg)))
1570 (native-inputs
1571 `(("gettext" ,gettext-minimal)
1572 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1573 ("itstool" ,itstool)
1574 ("pkg-config" ,pkg-config)
1575 ("vala" ,vala)))
1576 (home-page "https://wiki.gnome.org/Apps/Chess")
1577 (synopsis "Chess board for GNOME")
1578 (description "GNOME Chess provides a 2D board for playing chess games
1579 against human or computer players. It supports loading and saving games in
1580 Portable Game Notation. To play against a computer, install a chess engine
1581 such as chess or stockfish.")
1582 (license license:gpl3+)))
1583
1584 (define-public gnubg
1585 (package
1586 (name "gnubg")
1587 (version "1.06.002")
1588 (source
1589 (origin
1590 (method url-fetch)
1591 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1592 version "-sources.tar.gz"))
1593 (sha256
1594 (base32
1595 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1596 (build-system gnu-build-system)
1597 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1598 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1599 ("pango" ,pango-1.42)
1600
1601 ("glib" ,glib)
1602 ("readline" ,readline)
1603 ("gtk+" ,gtk+-2)
1604 ("mesa" ,mesa)
1605 ("glu" ,glu)
1606 ("gtkglext" ,gtkglext)
1607 ("sqlite" ,sqlite)
1608 ("libcanberra" ,libcanberra)))
1609 (native-inputs `(("python-2" ,python-2)
1610 ("pkg-config" ,pkg-config)))
1611 (arguments
1612 `(#:configure-flags
1613 ;; SSE instructions are available on Intel systems only.
1614 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1615 (%current-system)))
1616 '("x86_64" "i686"))
1617 '("--enable-simd=sse2") ; prevent avx instructions
1618 '()))
1619 #:phases
1620 (modify-phases %standard-phases
1621 (add-after 'install 'install-desktop-file
1622 (lambda* (#:key outputs #:allow-other-keys)
1623 (let* ((out (assoc-ref outputs "out"))
1624 (apps (string-append out "/share/applications")))
1625 (mkdir-p apps)
1626 (with-output-to-file (string-append apps "/gnubg.desktop")
1627 (lambda _
1628 (format #t
1629 "[Desktop Entry]~@
1630 Name=GNU Backgammon~@
1631 Exec=~a/bin/gnubg -w~@
1632 Icon=gnubg~@
1633 Categories=Game;~@
1634 Terminal=false~@
1635 Type=Application~%"
1636 out))))
1637 #t)))))
1638 (home-page "https://www.gnu.org/software/gnubg/")
1639 (synopsis "Backgammon game")
1640 (description "The GNU backgammon application (also known as \"gnubg\") can
1641 be used for playing, analyzing and teaching the game. It has an advanced
1642 evaluation engine based on artificial neural networks suitable for both
1643 beginners and advanced players. In addition to a command-line interface, it
1644 also features an attractive, 3D representation of the playing board.")
1645 (license license:gpl3+)))
1646
1647 (define-public gnubik
1648 (package
1649 (name "gnubik")
1650 (version "2.4.3")
1651 (source
1652 (origin
1653 (method url-fetch)
1654 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1655 version ".tar.gz"))
1656 (sha256
1657 (base32
1658 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1659 (build-system gnu-build-system)
1660 (arguments
1661 '(#:phases (modify-phases %standard-phases
1662 (add-after 'unpack 'skip-gtk-update-icon-cache
1663 (lambda _
1664 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1665 ;; unnecessary and causes a needless dependency on glib.
1666 (substitute* "Makefile.in"
1667 (("gtk-update-icon-cache")
1668 "true"))
1669 #t)))))
1670 (inputs `(("gtk+" ,gtk+-2)
1671 ("mesa" ,mesa)
1672 ("glu" ,glu)
1673 ("libx11" ,libx11)
1674 ("guile" ,guile-2.0)
1675 ("gtkglext" ,gtkglext)))
1676 (native-inputs `(("gettext" ,gettext-minimal)
1677 ("pkg-config" ,pkg-config)))
1678 (home-page "https://www.gnu.org/software/gnubik/")
1679 (synopsis "3d Rubik's cube game")
1680 (description
1681 "GNUbik is a puzzle game in which you must manipulate a cube to make
1682 each of its faces have a uniform color. The game is customizable, allowing
1683 you to set the size of the cube (the default is 3x3) or to change the colors.
1684 You may even apply photos to the faces instead of colors. The game is
1685 scriptable with Guile.")
1686 (license license:gpl3+)))
1687
1688 (define-public gnushogi
1689 (package
1690 (name "gnushogi")
1691 (version "1.4.2")
1692 (source
1693 (origin
1694 (method url-fetch)
1695 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1696 version ".tar.gz"))
1697 (sha256
1698 (base32
1699 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1700 (arguments `(#:tests? #f)) ;; No check target.
1701 (build-system gnu-build-system)
1702 (home-page "https://www.gnu.org/software/gnushogi/")
1703 (synopsis "The game of Shogi (Japanese chess)")
1704 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1705 Chess). It is similar to standard chess but this variant is far more complicated.")
1706 (license license:gpl3+)))
1707
1708 (define-public ltris
1709 (package
1710 (name "ltris")
1711 (version "1.2.1")
1712 (source
1713 (origin
1714 (method url-fetch)
1715 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1716 "ltris-" version ".tar.gz"))
1717 (sha256
1718 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1719 (build-system gnu-build-system)
1720 (arguments
1721 '(;; The code in LTris uses traditional GNU semantics for inline functions
1722 #:configure-flags '("CFLAGS=-fgnu89-inline")
1723 #:phases
1724 (modify-phases %standard-phases
1725 (add-after 'set-paths 'set-sdl-paths
1726 (lambda* (#:key inputs #:allow-other-keys)
1727 (setenv "CPATH"
1728 (string-append (assoc-ref inputs "sdl-union")
1729 "/include/SDL:"
1730 (or (getenv "CPATH") "")))
1731 #t)))))
1732 (inputs
1733 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1734 (home-page "http://lgames.sourceforge.net/LTris/")
1735 (synopsis "Tetris clone based on the SDL library")
1736 (description
1737 "LTris is a tetris clone: differently shaped blocks are falling down the
1738 rectangular playing field and can be moved sideways or rotated by 90 degree
1739 units with the aim of building lines without gaps which then disappear (causing
1740 any block above the deleted line to fall down). LTris has three game modes: In
1741 Classic you play until the stack of blocks reaches the top of the playing field
1742 and no new blocks can enter. In Figures the playing field is reset to a new
1743 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1744 up to three players (either human or CPU) compete with each other sending
1745 removed lines to all opponents. There is also a Demo mode in which you can
1746 watch your CPU playing while enjoying a cup of tea!")
1747 (license license:gpl2+)))
1748
1749 (define-public nethack
1750 (package
1751 (name "nethack")
1752 (version "3.6.6")
1753 (source
1754 (origin
1755 (method url-fetch)
1756 (uri
1757 (string-append "https://www.nethack.org/download/" version "/nethack-"
1758 (string-join (string-split version #\.) "") "-src.tgz"))
1759 (sha256
1760 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1761 (native-inputs
1762 `(("bison" ,bison)
1763 ("flex" ,flex)))
1764 (inputs
1765 `(("ncurses" ,ncurses)
1766 ("less" ,less)))
1767 (build-system gnu-build-system)
1768 (arguments
1769 '(#:make-flags
1770 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1771 #:phases
1772 (modify-phases %standard-phases
1773 (add-before 'configure 'patch-paths
1774 (lambda _
1775 (substitute* "sys/unix/nethack.sh"
1776 (("^ *cd .*$") ""))
1777 (substitute* "sys/unix/Makefile.utl"
1778 (("^YACC *=.*$") "YACC = bison -y\n")
1779 (("^LEX *=.*$") "LEX = flex\n")
1780 (("^# CC = gcc") "CC = gcc"))
1781 (substitute* "sys/unix/hints/linux"
1782 (("/bin/gzip") (string-append
1783 (assoc-ref %build-inputs "gzip")
1784 "/bin/gzip"))
1785 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1786 (substitute* "include/config.h"
1787 (("^.*define CHDIR.*$") "")
1788 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1789 ;; Honor SOURCE_DATE_EPOCH.
1790 "#define REPRODUCIBLE_BUILD"))
1791
1792 ;; Note: 'makedefs' rejects and ignores dates that are too old
1793 ;; or too new, so we must choose something reasonable here.
1794 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1795
1796 (substitute* "sys/unix/Makefile.src"
1797 (("^# CC = gcc") "CC = gcc"))
1798 #t))
1799 (replace 'configure
1800 (lambda _
1801 (let ((bash (string-append
1802 (assoc-ref %build-inputs "bash")
1803 "/bin/bash")))
1804 (with-directory-excursion "sys/unix"
1805 (substitute* "setup.sh" (("/bin/sh") bash))
1806 (invoke bash "setup.sh" "hints/linux"))
1807 #t)))
1808 (add-after 'install 'fixup-paths
1809 (lambda _
1810 (let* ((output (assoc-ref %outputs "out"))
1811 (nethack-script (string-append output "/bin/nethack")))
1812 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1813 (for-each
1814 (lambda (file)
1815 (rename-file
1816 (string-append output "/games/lib/nethackdir/" file)
1817 (string-append output "/games/lib/nethackuserdir/"
1818 file)))
1819 '("xlogfile" "logfile" "perm" "record" "save"))
1820 (mkdir-p (string-append output "/bin"))
1821 (call-with-output-file nethack-script
1822 (lambda (port)
1823 (format port "#!~a/bin/sh
1824 PATH=~a:$PATH
1825 if [ ! -d ~~/.config/nethack ]; then
1826 mkdir -p ~~/.config/nethack
1827 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1828 chmod -R +w ~~/.config/nethack
1829 fi
1830
1831 RUNDIR=$(mktemp -d)
1832
1833 cleanup() {
1834 rm -rf $RUNDIR
1835 }
1836 trap cleanup EXIT
1837
1838 cd $RUNDIR
1839 for i in ~~/.config/nethack/*; do
1840 ln -s $i $(basename $i)
1841 done
1842 for i in ~a/games/lib/nethackdir/*; do
1843 ln -s $i $(basename $i)
1844 done
1845 ~a/games/nethack"
1846 (assoc-ref %build-inputs "bash")
1847 (list->search-path-as-string
1848 (list
1849 (string-append
1850 (assoc-ref %build-inputs "coreutils") "/bin")
1851 (string-append
1852 (assoc-ref %build-inputs "less") "/bin"))
1853 ":")
1854 output
1855 output
1856 output)))
1857 (chmod nethack-script #o555)
1858 #t)))
1859 (delete 'check))))
1860 (home-page "https://nethack.org")
1861 (synopsis "Classic dungeon crawl game")
1862 (description "NetHack is a single player dungeon exploration game that runs
1863 on a wide variety of computer systems, with a variety of graphical and text
1864 interfaces all using the same game engine. Unlike many other Dungeons &
1865 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1866 the dungeon and not simply killing everything in sight - in fact, killing
1867 everything in sight is a good way to die quickly. Each game presents a
1868 different landscape - the random number generator provides an essentially
1869 unlimited number of variations of the dungeon and its denizens to be discovered
1870 by the player in one of a number of characters: you can pick your race, your
1871 role, and your gender.")
1872 (license
1873 (license:fsdg-compatible
1874 "https://nethack.org/common/license.html"))))
1875
1876 (define-public pipewalker
1877 (package
1878 (name "pipewalker")
1879 (version "0.9.4")
1880 (source
1881 (origin
1882 (method url-fetch)
1883 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
1884 version "/pipewalker-" version ".tar.gz"))
1885 (sha256
1886 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1887 (build-system gnu-build-system)
1888 (arguments
1889 `(#:configure-flags
1890 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1891 "/share/doc/" ,name "-" ,version))
1892 #:phases
1893 (modify-phases %standard-phases
1894 (add-after 'configure 'patch-docdir
1895 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1896 (lambda _
1897 (substitute* "Makefile"
1898 (("(pkgdocdatadir = ).*" _ assignment)
1899 (string-append assignment "$(docdir)\n")))
1900 #t)))))
1901 (inputs
1902 `(("libpng" ,libpng)
1903 ("mesa" ,mesa)
1904 ("sdl" ,sdl)))
1905 (home-page "http://pipewalker.sourceforge.net/")
1906 (synopsis "Logical tile puzzle")
1907 (description
1908 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1909 computers to one network server, bring water from a source to the taps, etc.
1910 The underlying mechanism is always the same: you must turn each tile in the
1911 grid in the right direction to combine all components into a single circuit.
1912 Every puzzle has a complete solution, although there may be more than one.")
1913 (license license:gpl3+)))
1914
1915 (define-public prboom-plus
1916 (package
1917 (name "prboom-plus")
1918 (version "2.5.1.4")
1919 (source (origin
1920 (method url-fetch)
1921 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
1922 version "/prboom-plus-" version ".tar.gz"))
1923 (sha256
1924 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
1925 (modules '((guix build utils)))
1926 (snippet
1927 '(begin
1928 (substitute* "src/version.c"
1929 (("__DATE__") "")
1930 (("__TIME__") ""))
1931 #t))))
1932 (build-system gnu-build-system)
1933 (arguments
1934 '(#:configure-flags '("--disable-cpu-opt")
1935 #:make-flags `(,(string-append "gamesdir="
1936 (assoc-ref %outputs "out") "/bin"))
1937 #:phases
1938 (modify-phases %standard-phases
1939 (add-after 'set-paths 'set-sdl'paths
1940 (lambda* (#:key inputs #:allow-other-keys)
1941 (setenv "CPATH"
1942 (string-append (assoc-ref inputs "sdl-union")
1943 "/include/SDL:"
1944 (or (getenv "CPATH") "")))
1945 #t)))))
1946 (inputs
1947 `(("fluidsynth" ,fluidsynth)
1948 ("glu" ,glu)
1949 ("libmad" ,libmad)
1950 ("libpng" ,libpng)
1951 ("libvorbis" ,libvorbis)
1952 ("pcre" ,pcre)
1953 ("portmidi" ,portmidi)
1954 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
1955 (home-page "http://prboom-plus.sourceforge.net/")
1956 (synopsis "Version of the classic 3D shoot'em'up game Doom")
1957 (description
1958 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
1959 (license license:gpl2+)))
1960
1961 (define-public retux
1962 (let ((release "1.4.1")
1963 (revision 1))
1964 (package
1965 (name "retux")
1966 (version (if (zero? revision)
1967 release
1968 (string-append release "-"
1969 (number->string revision))))
1970 (source (origin
1971 (method url-fetch)
1972 (uri (string-append "https://github.com/retux-game/retux/"
1973 "releases/download/v"
1974 version "/retux-"
1975 release "-src.tar.gz"))
1976 (sha256
1977 (base32
1978 "1vrldg2qh2gqfswj7vkpc589ldrrjd903j6cnfdik9zh0jhlq4h2"))))
1979 (build-system python-build-system)
1980 (arguments
1981 `(#:tests? #f ; no check target
1982 #:phases
1983 (modify-phases %standard-phases
1984 ;; no setup.py script
1985 (delete 'build)
1986 (replace 'install
1987 (lambda* (#:key outputs #:allow-other-keys)
1988 (let* ((out (assoc-ref outputs "out"))
1989 (bin (string-append out "/bin"))
1990 (data (string-append out "/share/retux")))
1991 (mkdir-p bin)
1992
1993 (substitute* "retux.py"
1994 ;; Use the correct data directory.
1995 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
1996 (string-append "\"" data "\",")))
1997
1998 (copy-file "retux.py" (string-append bin "/retux"))
1999 (copy-recursively "data" data)
2000 #t))))))
2001 (inputs
2002 `(("python-sge-pygame" ,python-sge-pygame)
2003 ("python-six" ,python-six)
2004 ("python-xsge" ,python-xsge)))
2005 (home-page "https://retux-game.github.io/")
2006 (synopsis "Action platformer game")
2007 (description
2008 "ReTux is an action platformer loosely inspired by the Mario games,
2009 utilizing the art assets from the @code{SuperTux} project.")
2010 ;; GPL version 3 or later is the license for the code and some art.
2011 ;; The rest of the licenses are for the art exclusively, as listed in
2012 ;; data/LICENSES.
2013 (license (list license:cc0
2014 license:cc-by3.0
2015 license:cc-by-sa3.0
2016 license:cc-by-sa4.0
2017 license:gpl2+
2018 license:gpl3+)))))
2019
2020 (define-public roguebox-adventures
2021 (package
2022 (name "roguebox-adventures")
2023 (version "3.0.1")
2024 (source
2025 (origin
2026 (method url-fetch)
2027 (uri (string-append
2028 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2029 (string-join (string-split version #\.) "_") "_Source.zip"))
2030 (file-name (string-append name "-" version ".zip"))
2031 (sha256
2032 (base32
2033 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2034 (build-system python-build-system)
2035 (arguments
2036 `(#:tests? #f ; no check target
2037 #:phases
2038 (modify-phases %standard-phases
2039 (replace 'unpack
2040 (lambda* (#:key source #:allow-other-keys)
2041 (and (invoke "unzip" source)
2042 ;; The actual source is buried a few directories deep.
2043 (chdir (string-append "RogueBoxAdventures_v"
2044 (string-join
2045 (string-split ,version #\.) "_")
2046 "_Source")))))
2047 ;; no setup.py script
2048 (replace 'build
2049 (lambda* (#:key outputs #:allow-other-keys)
2050 (let* ((out (assoc-ref outputs "out"))
2051 (data (string-append
2052 out "/share/games/roguebox-adventures")))
2053 ;; Use the correct data directory.
2054 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2055 (("basic_path + os\\.sep + 'DATA'")
2056 (string-append "'" data "'"))
2057 (("^basic_path.*$")
2058 (string-append "basic_path ='" data "'\n")))
2059 (substitute* "LIB/dialog.py"
2060 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2061 (string-append "d_path = '" data "'")))
2062 (substitute* "LIB/gra_files.py"
2063 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2064 (string-append "basic_path ='" data "'\n")))
2065
2066 ;; The game must save in the user's home directory because
2067 ;; the store is read-only.
2068 (substitute* "main.py"
2069 (("home_save = False") "home_save = True")
2070 (("'icon_small.png'")
2071 (string-append "'" data "/icon_small.png'"))))
2072 #t))
2073 (replace 'install
2074 (lambda* (#:key outputs #:allow-other-keys)
2075 (let* ((out (assoc-ref outputs "out"))
2076 (bin (string-append out "/bin"))
2077 (roguebox-adventures
2078 (string-append bin "/roguebox-adventures"))
2079 (data (string-append
2080 out "/share/games/roguebox-adventures"))
2081 (lib (string-append data "/LIB"))
2082 (doc (string-append
2083 out "/share/doc/roguebox-adventures")))
2084 (mkdir-p bin)
2085 (mkdir-p doc)
2086
2087 (for-each (lambda (file)
2088 (copy-recursively file
2089 (string-append data "/" file)))
2090 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2091 "icon_big.png" "icon_small.png"))
2092 (for-each (lambda (file)
2093 (chmod file #o555)
2094 (install-file file lib))
2095 '("main.py" "run.py"))
2096
2097 (copy-recursively "DOC" doc)
2098
2099 (call-with-output-file
2100 roguebox-adventures
2101 (lambda (p)
2102 (format p "\
2103 #!~a
2104 export PYTHONPATH=~a/LIB:~a
2105 exec -a \"~a\" ~a \"$@\"\n"
2106 (which "bash") data (getenv "PYTHONPATH")
2107 (which "python3")
2108 (string-append lib "/main.py"))))
2109 (chmod roguebox-adventures #o555))
2110 #t)))))
2111 (native-inputs
2112 `(("unzip" ,unzip)))
2113 (inputs
2114 `(("python-pygame" ,python-pygame)
2115 ("python-tmx" ,python-tmx)))
2116 (home-page "https://rogueboxadventures.tuxfamily.org")
2117 (synopsis "A classical roguelike/sandbox game")
2118 (description
2119 "RogueBox Adventures is a graphical roguelike with strong influences
2120 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2121 Adventures is to offer the player a kind of roguelike toy-world. This world
2122 can be explored and changed freely.")
2123 ;; The GPL3+ is for code, the rest are for art.
2124 (license (list license:cc0
2125 license:cc-by3.0
2126 license:gpl3+
2127 license:silofl1.1))))
2128
2129 (define-public seahorse-adventures
2130 (package
2131 (name "seahorse-adventures")
2132 (version "1.3")
2133 (source
2134 (origin
2135 (method git-fetch)
2136 (uri (git-reference
2137 (url "https://github.com/dulsi/seahorse-adventures")
2138 (commit (string-append "release-" version))))
2139 (file-name (git-file-name name version))
2140 (sha256
2141 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2142 (modules '((guix build utils)
2143 (ice-9 ftw)
2144 (srfi srfi-1)))
2145 ;; Remove non-free (non-commercial) font.
2146 (snippet
2147 `(begin
2148 (for-each delete-file (find-files "data/fonts" "."))
2149 #t))))
2150 (build-system python-build-system)
2151 (arguments
2152 `(#:tests? #f ;no test
2153 #:phases
2154 (modify-phases %standard-phases
2155 (delete 'build) ;pure Python
2156 (replace 'install ;no install script
2157 (lambda* (#:key outputs #:allow-other-keys)
2158 (let* ((out (assoc-ref outputs "out"))
2159 (bin (string-append out "/bin"))
2160 (share (string-append out "/share"))
2161 (applications (string-append share "/applications"))
2162 (data (string-append share "/seahorse-adventures")))
2163 ;; Install data.
2164 (for-each (lambda (f)
2165 (chmod f #o555)
2166 (install-file f data))
2167 '("leveledit.py" "run_game.py" "tileedit.py"))
2168 (for-each (lambda (dir)
2169 (let ((target (string-append data "/" dir)))
2170 (mkdir-p target)
2171 (copy-recursively dir target)))
2172 '("data" "lib"))
2173 ;; Create executable.
2174 (mkdir-p bin)
2175 (let ((executable (string-append bin "/seahorse-adventures")))
2176 (call-with-output-file executable
2177 (lambda (p)
2178 (format p
2179 "#!~a~@
2180 export PYTHONPATH=~a:~a~@
2181 exec -a \"~a\" ~a \"$@\"~%"
2182 (which "bash") data (getenv "PYTHONPATH")
2183 (which "python3")
2184 (string-append data "/run_game.py"))))
2185 (chmod executable #o555))
2186 ;; Add desktop file.
2187 (mkdir-p applications)
2188 (make-desktop-entry-file
2189 (string-append applications "/seahorse-adventures.desktop")
2190 #:name "Seahorse Adventures"
2191 #:comment
2192 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2193 #:exec ,name
2194 #:icon ,name
2195 #:categories '("Game" "ActionGame")
2196 #:keywords '("game" "retro" "platform"))
2197 ;; Add icons.
2198 (for-each
2199 (lambda (size)
2200 (let ((dir (string-append share "/icons/hicolor/"
2201 size "x" size "/apps")))
2202 (mkdir-p dir)
2203 (copy-file
2204 (string-append "icon" size ".png")
2205 (string-append dir "/searhorse-adventures.png"))))
2206 '("32" "64" "128")))
2207 #t))
2208 (add-after 'install 'unbundle-fonts
2209 ;; Unbundle Bitstream Vera font and replace deleted one.
2210 (lambda* (#:key outputs inputs #:allow-other-keys)
2211 (let* ((out (assoc-ref outputs "out"))
2212 (data (string-append out "/share/seahorse-adventures"))
2213 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2214 "/share/fonts/truetype/Vera.ttf")))
2215 (let ((themes-dir (string-append data "/data/themes/")))
2216 (for-each
2217 (lambda (theme)
2218 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2219 (delete-file target)
2220 (symlink vera target)))
2221 '("default" "gray")))
2222 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2223 (substitute* (string-append data "/lib/main.py")
2224 (("f_scale = 0.35") "f_scale = 0.47")))
2225 #t)))))
2226 (inputs
2227 `(("font-bitstream-vera" ,font-bitstream-vera)
2228 ("python-pygame" ,python-pygame)))
2229 (home-page "http://www.imitationpickles.org/barbie/")
2230 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2231 (description
2232 "Barbie Seahorse Adventures is a retro style platform arcade game.
2233 You are Barbie the seahorse who travels through the jungle, up to the
2234 volcano until you float on bubbles to the moon. On the way to your
2235 final destination you will encounter various enemies, servants of the
2236 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2237 and defeat them with your bubbles!")
2238 ;; GPL2+ is for code, CC0 is for art.
2239 (license (list license:gpl2+ license:cc0))))
2240
2241 (define-public solarus
2242 (package
2243 (name "solarus")
2244 ;; XXX: When updating this package, please also update hash in
2245 ;; `solarus-quest-editor' below.
2246 (version "1.6.4")
2247 (source
2248 (origin
2249 (method git-fetch)
2250 (uri (git-reference
2251 (url "https://gitlab.com/solarus-games/solarus")
2252 (commit (string-append "v" version))))
2253 (file-name (git-file-name name version))
2254 (sha256
2255 (base32 "1n6l91yyqjx0pz4w1lp3yybpq0fs2yjswfcm8c1wjfkxwiznbdxi"))))
2256 (build-system cmake-build-system)
2257 (arguments
2258 `(#:phases
2259 (modify-phases %standard-phases
2260 (add-after 'unpack 'disable-failing-tests
2261 ;; The following tests fail reporting a missing "/dev/dri"
2262 ;; file.
2263 (lambda _
2264 (substitute* "tests/cmake/AddTestMaps.cmake"
2265 ((".*1200_create_shader_from_source.*" all)
2266 (string-append "#" all))
2267 ((".*1210_shader_scaling_factor.*" all)
2268 (string-append "#" all)))
2269 #t))
2270 (add-before 'check 'set-home
2271 ;; Tests fail without setting the following environment
2272 ;; variables.
2273 (lambda _
2274 (setenv "HOME" (getcwd))
2275 (setenv "XDG_RUNTIME_DIR" (getcwd))
2276 #t)))))
2277 (native-inputs
2278 `(("pkg-config" ,pkg-config)
2279 ("qttools" ,qttools)))
2280 (inputs
2281 `(("glm" ,glm)
2282 ("libmodplug" ,libmodplug)
2283 ("libogg" ,libogg)
2284 ("libvorbis" ,libvorbis)
2285 ("luajit" ,luajit)
2286 ("openal" ,openal)
2287 ("physfs" ,physfs)
2288 ("qtbase" ,qtbase)
2289 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2290 (home-page "https://www.solarus-games.org/")
2291 (synopsis "Lightweight game engine for Action-RPGs")
2292 (description
2293 "Solarus is a 2D game engine written in C++, that can run games
2294 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2295 in mind.")
2296 ;; The source code is licensed under the terms of GPL-3.0.
2297 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2298 ;; CC-BY-SA 4.0.
2299 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2300
2301 (define-public solarus-quest-editor
2302 (package
2303 (inherit solarus)
2304 (name "solarus-quest-editor")
2305 (version (package-version solarus))
2306 (source
2307 (origin
2308 (method git-fetch)
2309 (uri (git-reference
2310 (url "https://gitlab.com/solarus-games/solarus-quest-editor")
2311 (commit (string-append "v" version))))
2312 (file-name (git-file-name name version))
2313 (sha256
2314 (base32 "1qbc2j9kalk7xqk9j27s7wnm5zawiyjs47xqkqphw683idmzmjzn"))))
2315 (arguments
2316 `(#:tests? #false ;no test
2317 #:phases
2318 (modify-phases %standard-phases
2319 (add-after 'unpack 'fix-qt-build
2320 ;; XXX: Fix build with Qt 5.15. It has been applied upstream as
2321 ;; 81d5c7f1 and can be removed at next upgrade.
2322 (lambda _
2323 (substitute* "src/entities/jumper.cpp"
2324 (("#include <QPainter>" all)
2325 (string-append all "\n" "#include <QPainterPath>\n")))
2326 #t)))))
2327 (inputs
2328 `(("solarus" ,solarus)
2329 ,@(package-inputs solarus)))
2330 (synopsis "Create and modify quests for the Solarus engine")
2331 (description
2332 "Solarus Quest Editor is a graphical user interface to create and
2333 modify quests for the Solarus engine.")))
2334
2335 (define-public superstarfighter
2336 (package
2337 (name "superstarfighter")
2338 (version "0.6.4")
2339 (source
2340 (origin
2341 (method git-fetch)
2342 (uri (git-reference
2343 (url "https://github.com/notapixelstudio/superstarfighter")
2344 (commit (string-append "v" version))))
2345 (file-name (git-file-name name version))
2346 (sha256
2347 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2348 (build-system gnu-build-system)
2349 (arguments
2350 `(#:tests? #f ;there are no tests
2351 #:phases
2352 (modify-phases %standard-phases
2353 (replace 'configure
2354 (lambda _
2355 (chdir "godot")
2356 (setenv "HOME" (getcwd))
2357 (with-output-to-file "export_presets.cfg"
2358 (lambda ()
2359 (display
2360 "[preset.0]
2361 name=\"Guix\"
2362 platform=\"Linux/X11\"
2363 runnable=true
2364 [preset.0.options]")))
2365 #t))
2366 (replace 'build
2367 (lambda _
2368 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2369 (invoke (string-append godot "/bin/godot_server")
2370 "--export-pack" "Guix"
2371 "superstarfighter.pck" "project.godot"))
2372 #t))
2373 (replace 'install
2374 (lambda* (#:key inputs outputs #:allow-other-keys)
2375 (let* ((out (assoc-ref outputs "out"))
2376 (bin (string-append out "/bin"))
2377 (share (string-append out "/share"))
2378 (data (string-append share "/superstarfighter"))
2379 (icons (string-append share "/icons/hicolor/256x256/apps")))
2380 (install-file "superstarfighter.pck" data)
2381 (mkdir-p bin)
2382 (call-with-output-file (string-append bin "/superstarfighter")
2383 (lambda (port)
2384 (format port
2385 "#!/bin/sh~@
2386 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2387 (assoc-ref inputs "godot")
2388 data)
2389 (chmod port #o755)))
2390 (mkdir-p icons)
2391 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2392 (make-desktop-entry-file
2393 (string-append share "/applications/" ,name ".desktop")
2394 #:name "SuperStarfighter"
2395 #:comment "Fast-paced arcade combat game"
2396 #:exec ,name
2397 #:icon ,name
2398 #:categories '("Game" "ArcadeGame")))
2399 #t)))))
2400 (native-inputs
2401 `(("godot-headless" ,godot "headless")))
2402 (inputs
2403 `(("godot" ,godot)))
2404 (home-page "https://notapixel.itch.io/superstarfighter")
2405 (synopsis "Fast-paced local multiplayer arcade game")
2406 (description "In SuperStarfighter, up to four local players compete in a
2407 2D arena with fast-moving ships and missiles. Different game types are
2408 available, as well as a single-player mode with AI-controlled ships.")
2409 (license (list license:expat ; game
2410 license:silofl1.1)))) ; fonts
2411
2412 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2413 (define %ufoai-revision "0")
2414 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2415 (define ufoai-source
2416 (origin
2417 (method git-fetch)
2418 (uri (git-reference
2419 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2420 (commit %ufoai-commit)))
2421 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2422 (sha256
2423 (base32
2424 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2425 (modules '((guix build utils)
2426 (srfi srfi-1)
2427 (ice-9 ftw)))
2428 (snippet
2429 '(begin
2430 ;; Delete ~32MiB of bundled dependencies.
2431 (with-directory-excursion "src/libs"
2432 (for-each delete-file-recursively
2433 (lset-difference equal? (scandir ".")
2434 '("." ".." "gtest" "mumble"))))
2435
2436 ;; Use relative path to Lua headers.
2437 (substitute* "src/common/scripts_lua.h"
2438 (("\\.\\./libs/lua/") ""))
2439
2440 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2441 ;; it as a separate package. This way we don't need to make the same
2442 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2443 (substitute* "build/maps.mk"
2444 (("\\./ufo2map") "ufo2map")
2445 (("maps: ufo2map") "maps:"))
2446 (substitute* "build/modules/testall.mk"
2447 (("testall: ufo2map") "testall:"))
2448
2449 ;; If no cURL headers are found, the build system will try to include
2450 ;; the bundled version, even when not required. Prevent that.
2451 (substitute* "build/default.mk"
2452 (("^include src/libs/curl/lib/Makefile\\.inc")
2453 ""))
2454
2455 ;; While here, improve reproducibility by adding the '-X' flag to the
2456 ;; zip command used to create the map files, in order to prevent time
2457 ;; stamps from making it into the generated archives.
2458 (substitute* "build/data.mk"
2459 (("\\$\\(call ZIP\\)")
2460 "$(call ZIP) -X"))
2461 #t))))
2462
2463 (define-public trigger-rally
2464 (package
2465 (name "trigger-rally")
2466 (version "0.6.6.1")
2467 (source
2468 (origin
2469 (method url-fetch)
2470 (uri (string-append "mirror://sourceforge/trigger-rally/"
2471 "trigger-" version "/"
2472 "trigger-rally-" version ".tar.gz"))
2473 (sha256
2474 (base32
2475 "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z"))))
2476 (build-system gnu-build-system)
2477 (inputs
2478 `(("freealut" ,freealut)
2479 ("glew" ,glew)
2480 ("glu" ,glu)
2481 ("mesa" ,mesa)
2482 ("openal" ,openal)
2483 ("physfs" ,physfs)
2484 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))
2485 ("tinyxml2" ,tinyxml2)))
2486 (arguments
2487 `(#:make-flags (list (string-append "prefix=" %output)
2488 "bindir=$(prefix)/bin"
2489 "datadir=$(datarootdir)"
2490 "OPTIMS=-Ofast")
2491 #:tests? #f ; No tests present
2492 #:phases
2493 (modify-phases %standard-phases
2494 (delete 'configure)
2495 (add-before 'build 'cd-src
2496 (lambda _ (chdir "src")))
2497 (add-before 'build 'remove-timestamps
2498 (lambda _
2499 (substitute* (list "Trigger/menu.cpp"
2500 "PEngine/app.cpp")
2501 ((".*__DATE__.*") ""))))
2502 (add-before 'build 'make-verbose
2503 (lambda _
2504 (substitute* "GNUmakefile"
2505 (("@\\$\\(CXX\\)") "$(CXX)"))))
2506 (add-after 'build 'set-data-path
2507 (lambda* (#:key outputs #:allow-other-keys)
2508 (let ((out (assoc-ref outputs "out")))
2509 (substitute* "../bin/trigger-rally.config.defs"
2510 (("<data path=\"C:[^\"]*\"")
2511 (string-append "<data path=\"" out "/share/trigger-rally\""))))))
2512 (add-after 'install 'create-desktop-entry
2513 (lambda* (#:key outputs #:allow-other-keys)
2514 (let* ((out (assoc-ref outputs "out"))
2515 (apps (string-append out "/share/applications")))
2516 (mkdir-p apps)
2517 (with-output-to-file
2518 (string-append apps "/trigger-rally.desktop")
2519 (lambda ()
2520 (format #t ; Borrowed from Debian package
2521 "[Desktop Entry]~@
2522 Name=Trigger Rally~@
2523 Icon=trigger-rally~@
2524 Comment=3D rally racing car game~@
2525 Comment[de]=3D Rally-Autorennen~@
2526 Comment[fr_FR]=un jeu de rally en 3D~@
2527 Comment[ro_RO]=Un joc în 3D cu curse de raliu~@
2528 Exec=~a/bin/trigger-rally~@
2529 Terminal=false~@
2530 StartupNotify=false~@
2531 Type=Application~@
2532 TryExec=~:*~a/bin/trigger-rally~@
2533 Categories=Game;ArcadeGame;~@
2534 Keywords=racing;tracks;~@
2535 Keywords[de]=Rennstrecke;~%"
2536 out)))))))))
2537 (home-page "http://trigger-rally.sourceforge.net")
2538 (synopsis "Fast-paced single-player racing game")
2539 (description "Trigger-rally is a 3D rally simulation with great physics
2540 for drifting on over 200 maps. Different terrain materials like dirt,
2541 asphalt, sand, ice, etc. and various weather, light, and fog conditions give
2542 this rally simulation the edge over many other games. You need to make it
2543 through the maps in often tight time limits and can further improve by beating
2544 the recorded high scores. All attached single races must be finished in time
2545 in order to win an event, unlocking additional events and cars. Most maps are
2546 equipped with spoken co-driver notes and co-driver icons.")
2547 (license (list license:cc0 ;textures and audio in data.zip
2548 license:gpl2+))))
2549
2550 (define-public ufo2map
2551 (package
2552 (name "ufo2map")
2553 (version %ufoai-version)
2554 (home-page "https://ufoai.org/")
2555 (source ufoai-source)
2556 (build-system gnu-build-system)
2557 (arguments
2558 '(#:configure-flags '("CC=gcc" "CXX=g++"
2559 "--enable-release"
2560 "--enable-ufo2map"
2561 "--disable-uforadiant"
2562 "--disable-cgame-campaign"
2563 "--disable-cgame-multiplayer"
2564 "--disable-cgame-skirmish"
2565 "--disable-game"
2566 "--disable-memory"
2567 "--disable-testall"
2568 "--disable-ufoded"
2569 "--disable-ufo"
2570 "--disable-ufomodel"
2571 "--disable-ufoslicer")
2572 #:tests? #f ;no tests
2573 #:phases (modify-phases %standard-phases
2574 (replace 'configure
2575 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2576 ;; The home-made configure script does not understand
2577 ;; some of the default flags of gnu-build-system.
2578 (apply invoke "./configure" configure-flags)))
2579 (replace 'install
2580 (lambda* (#:key outputs #:allow-other-keys)
2581 (let ((out (assoc-ref outputs "out")))
2582 (install-file "ufo2map" (string-append out "/bin"))
2583 (install-file "debian/ufo2map.6"
2584 (string-append out "/share/man/man6"))
2585 #t))))))
2586 (native-inputs
2587 `(("pkg-config" ,pkg-config)))
2588 (inputs
2589 `(("libjpeg" ,libjpeg-turbo)
2590 ("libpng" ,libpng)
2591 ("lua" ,lua-5.1)
2592 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2593 (synopsis "UFO: AI map generator")
2594 (description
2595 "This package provides @command{ufo2map}, a program used to generate
2596 maps for the UFO: Alien Invasion strategy game.")
2597 (license license:gpl2+)))
2598
2599 (define ufoai-data
2600 (package
2601 (name "ufoai-data")
2602 (version %ufoai-version)
2603 (home-page "https://ufoai.org/")
2604 (source ufoai-source)
2605 (build-system gnu-build-system)
2606 (arguments
2607 '(#:tests? #f
2608 #:configure-flags '("CC=gcc" "CXX=g++")
2609 #:phases (modify-phases %standard-phases
2610 (replace 'configure
2611 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2612 (apply invoke "./configure" configure-flags)))
2613 (replace 'build
2614 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2615 (invoke "make"
2616 "-j" (if parallel-build?
2617 (number->string (parallel-job-count))
2618 "1")
2619 "maps")))
2620 (add-after 'build 'pack
2621 (lambda _
2622 (invoke "make" "pk3")))
2623 (replace 'install
2624 (lambda* (#:key outputs #:allow-other-keys)
2625 (let ((out (assoc-ref outputs "out")))
2626 (for-each (lambda (file)
2627 (install-file file out))
2628 (find-files "base" "\\.pk3$"))
2629 #t))))))
2630 (native-inputs
2631 `(("python" ,python-2)
2632 ("ufo2map" ,ufo2map)
2633 ("which" ,which)
2634 ("zip" ,zip)))
2635 (synopsis "UFO: AI data files")
2636 (description
2637 "This package contains maps and other assets for UFO: Alien Invasion.")
2638 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2639 ;; licenses, see LICENSES for details.
2640 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2641 license:cc-by-sa3.0 license:public-domain))))
2642
2643 (define-public ufoai
2644 (package
2645 (name "ufoai")
2646 (version %ufoai-version)
2647 (home-page "https://ufoai.org/")
2648 (source ufoai-source)
2649 (build-system gnu-build-system)
2650 (arguments
2651 `(#:configure-flags
2652 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2653 (string-append "--datadir=" (assoc-ref %outputs "out")
2654 "/share/games/ufo")
2655 "CC=gcc" "CXX=g++"
2656 "--enable-release"
2657 "--enable-game"
2658 "--disable-ufo2map"
2659 "--disable-dependency-tracking"
2660
2661 ;; Disable hard links to prevent huge NARs.
2662 "--disable-hardlinkedgame"
2663 "--disable-hardlinkedcgame")
2664 #:phases (modify-phases %standard-phases
2665 (add-after 'unpack 'symlink-data-files
2666 (lambda* (#:key inputs #:allow-other-keys)
2667 (let ((data (assoc-ref inputs "ufoai-data")))
2668 ;; Symlink the data files to where the build system
2669 ;; expects to find them. Ultimately these files are
2670 ;; copied to $out/share/games/ufoai/base, losing the
2671 ;; symlinks; we could fix that after install, but it
2672 ;; does not make a big difference in practice due to
2673 ;; deduplication.
2674 (with-directory-excursion "base"
2675 (for-each (lambda (file)
2676 (symlink file (basename file)))
2677 (find-files data "\\.pk3$")))
2678 #t)))
2679 (add-before 'configure 'create-language-files
2680 (lambda _
2681 (invoke "make" "lang")))
2682 (replace 'configure
2683 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2684 (apply invoke "./configure" configure-flags)))
2685 (replace 'check
2686 (lambda* (#:key tests? #:allow-other-keys)
2687 (if tests?
2688 (invoke "./testall")
2689 (format #t "test suite not run~%"))
2690 #t))
2691 (add-after 'install 'install-man-pages
2692 (lambda* (#:key outputs #:allow-other-keys)
2693 (let* ((out (assoc-ref outputs "out"))
2694 (man6 (string-append out "/share/man/man6")))
2695 (install-file "debian/ufo.6" man6)
2696 (install-file "debian/ufoded.6" man6)
2697 #t))))
2698
2699 ;; TODO: Some map tests occasionally fail because of randomness issues,
2700 ;; e.g. not enough generated aliens. The test runner also fails early
2701 ;; in the build container with 'failed to shutdown server'?
2702 #:tests? #f))
2703 (native-inputs
2704 `(("gettext" ,gettext-minimal)
2705 ("pkg-config" ,pkg-config)
2706 ("python" ,python-2)
2707 ("ufo2map" ,ufo2map)
2708 ("ufoai-data" ,ufoai-data)))
2709 (inputs
2710 `(("curl" ,curl)
2711 ("libjpeg" ,libjpeg-turbo)
2712 ("libogg" ,libogg)
2713 ("libpng" ,libpng)
2714 ("libtheora" ,libtheora)
2715 ("libvorbis" ,libvorbis)
2716 ("libxml2" ,libxml2)
2717 ("lua" ,lua-5.1)
2718 ("mesa" ,mesa)
2719 ("minixml" ,minixml)
2720 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2721 ("zlib" ,zlib)))
2722 (synopsis "Turn-based tactical strategy game")
2723 (description
2724 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2725 You control a secret organisation charged with defending Earth from a brutal
2726 alien enemy. Build up your bases, prepare your team, and dive head-first into
2727 the fast and flowing turn-based combat.
2728
2729 Over the long term you will need to conduct research into the alien threat to
2730 figure out their mysterious goals and use their powerful weapons for your own
2731 ends. You will produce unique items and use them in combat against your
2732 enemies.
2733
2734 You can also use them against your friends with the multiplayer functionality.
2735
2736 Warning: This is a pre-release version of UFO: AI! Some things may not work
2737 properly.")
2738
2739 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2740 ;; because some assets do not use the "or later" clause. Many individual
2741 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2742 (license (delete license:gpl2+ (package-license ufoai-data)))))
2743
2744 (define-public xshogi
2745 (package
2746 (name "xshogi")
2747 (version "1.4.2")
2748 (source
2749 (origin
2750 (method url-fetch)
2751 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2752 version ".tar.gz"))
2753 (sha256
2754 (base32
2755 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2756 (build-system gnu-build-system)
2757 (inputs
2758 `(("libxaw" ,libxaw)
2759 ("libxt" ,libxt)))
2760 (home-page "https://www.gnu.org/software/gnushogi/")
2761 (synopsis "User interface for gnushogi")
2762 (description "A graphical user interface for the package @code{gnushogi}.")
2763 ;; Contains a copy of GPLv3 but the licence notices simply
2764 ;; state "GNU General Public Licence" without specifying a version.
2765 (license license:gpl1+)))
2766
2767 (define-public abbaye
2768 (package
2769 (name "abbaye")
2770 (version "2.0.1")
2771 (source
2772 (origin
2773 (method git-fetch)
2774 (uri (git-reference
2775 (url "https://github.com/nevat/abbayedesmorts-gpl")
2776 (commit (string-append "v" version))))
2777 (file-name (git-file-name name version))
2778 (sha256
2779 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2780 (modules '((guix build utils)))
2781 (snippet
2782 ;; Unbundle fonts.
2783 '(begin
2784 (delete-file-recursively "fonts")
2785 #t))))
2786 (build-system gnu-build-system)
2787 (arguments
2788 '(#:make-flags '("CC=gcc")
2789 #:phases (modify-phases %standard-phases
2790 (add-after 'set-paths 'set-sdl-paths
2791 (lambda* (#:key inputs #:allow-other-keys)
2792 (setenv "CPATH"
2793 (string-append (assoc-ref inputs "sdl-union")
2794 "/include/SDL:"
2795 (or (getenv "CPATH") "")))))
2796 (add-after 'patch-source-shebangs 'patch-makefile
2797 (lambda* (#:key outputs #:allow-other-keys)
2798 ;; Replace /usr with package output directory.
2799 (substitute* "Makefile"
2800 (("/usr") (assoc-ref outputs "out")))))
2801 (add-before 'install 'make-install-dirs
2802 (lambda* (#:key outputs #:allow-other-keys)
2803 (let ((prefix (assoc-ref outputs "out")))
2804 ;; Create directories that the makefile assumes exist.
2805 (mkdir-p (string-append prefix "/bin"))
2806 (mkdir-p (string-append prefix "/share/applications"))
2807 (mkdir-p (string-append prefix "/share/pixmaps")))))
2808 ;; No configure script.
2809 (delete 'configure))
2810 #:tests? #f)) ;; No check target.
2811 (native-inputs `(("pkg-config" ,pkg-config)))
2812 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2813 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2814 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2815 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2816 France. The Cathars, who preach about good Christian beliefs, were being
2817 expelled by the Catholic Church out of the Languedoc region in France. One of
2818 them, called Jean Raymond, found an old church in which to hide, not knowing
2819 that beneath its ruins lay buried an ancient evil.")
2820 (license license:gpl3)))
2821
2822 (define-public angband
2823 (package
2824 (name "angband")
2825 (version "4.2.1")
2826 (source
2827 (origin
2828 (method url-fetch)
2829 (uri (string-append "https://rephial.org/downloads/"
2830 (version-major+minor version)
2831 "/angband-" version ".tar.gz"))
2832 (sha256
2833 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2834 (modules '((guix build utils)))
2835 (snippet
2836 ;; So, some of the sounds/graphics/tilesets are under different
2837 ;; licenses... some of them even nonfree! This is a console-only
2838 ;; version of this package so we just remove them.
2839 ;; In the future, if someone tries to make a graphical variant of
2840 ;; this package, they can deal with that mess themselves. :)
2841 '(begin
2842 (for-each (lambda (subdir)
2843 (let ((lib-subdir (string-append "lib/" subdir)))
2844 (delete-file-recursively lib-subdir)))
2845 '("fonts" "icons" "sounds" "tiles"))
2846 (substitute* "lib/Makefile"
2847 ;; And don't try to invoke makefiles in the directories we removed.
2848 (("gamedata customize help screens fonts tiles sounds icons user")
2849 "gamedata customize help screens user"))
2850 #t))))
2851 (build-system gnu-build-system)
2852 (arguments
2853 `(#:tests? #f ; no check target
2854 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2855 #:phases
2856 (modify-phases %standard-phases
2857 (replace 'bootstrap
2858 (lambda _
2859 (substitute* "acinclude.m4"
2860 (("ncursesw5-config") "ncursesw6-config"))
2861 (invoke "sh" "autogen.sh"))))))
2862 (native-inputs
2863 `(("autoconf" ,autoconf)
2864 ("automake" ,automake)))
2865 (inputs `(("ncurses" ,ncurses)))
2866 (home-page "https://rephial.org/")
2867 (synopsis "Dungeon exploration roguelike")
2868 (description "Angband is a Classic dungeon exploration roguelike. Explore
2869 the depths below Angband, seeking riches, fighting monsters, and preparing to
2870 fight Morgoth, the Lord of Darkness.")
2871 (license license:gpl2)))
2872
2873 (define-public pingus
2874 (package
2875 (name "pingus")
2876 (version "0.7.6")
2877 (source
2878 (origin
2879 (method git-fetch)
2880 (uri (git-reference
2881 (url "https://gitlab.com/pingus/pingus.git")
2882 (commit (string-append "v" version))))
2883 (file-name (git-file-name name version))
2884 (sha256
2885 (base32
2886 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2887 (patches (search-patches "pingus-boost-headers.patch"
2888 "pingus-sdl-libs-config.patch"))
2889 (modules '((guix build utils)))
2890 (snippet
2891 '(begin
2892 (substitute* "src/pingus/screens/demo_session.cpp"
2893 (("#include <iostream>")
2894 ;; std::function moved to <functional> with C++ 11.
2895 ;; Remove this for versions newer than 0.7.6.
2896 "#include <iostream>\n#include <functional>"))
2897 #t))))
2898 (build-system gnu-build-system)
2899 (native-inputs `(("pkg-config" ,pkg-config)
2900 ("scons-python2" ,scons-python2)))
2901 (inputs `(("sdl" ,sdl)
2902 ("sdl-image" ,sdl-image)
2903 ("sdl-mixer" ,sdl-mixer)
2904 ("mesa" ,mesa)
2905 ("glu" ,glu)
2906 ("libpng" ,libpng)
2907 ("boost" ,boost)))
2908 (arguments
2909 '(#:make-flags (list (string-append "PREFIX=" %output))
2910 #:tests? #f ; no check target
2911 #:phases
2912 (modify-phases %standard-phases
2913 (delete 'configure)))) ; no configure script
2914 (home-page "https://pingus.seul.org/")
2915 (synopsis "Lemmings clone")
2916 (description
2917 "Pingus is a free Lemmings-like puzzle game in which the player takes
2918 command of a bunch of small animals and has to guide them through levels.
2919 Since the animals walk on their own, the player can only influence them by
2920 giving them commands, like build a bridge, dig a hole, or redirect all animals
2921 in the other direction. Multiple such commands are necessary to reach the
2922 level's exit. The game is presented in a 2D side view.")
2923 ;; Some source files are under bsd-3 and gpl2+ licenses.
2924 (license license:gpl3+)))
2925
2926 (define-public talkfilters
2927 (package
2928 (name "talkfilters")
2929 (version "2.3.8")
2930 (source
2931 (origin
2932 (method url-fetch)
2933 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
2934 "talkfilters-" version ".tar.gz"))
2935 (sha256
2936 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
2937 (build-system gnu-build-system)
2938 (home-page "https://www.gnu.org/software/talkfilters/")
2939 (synopsis "Convert English text to humorous dialects")
2940 (description "The GNU Talk Filters are programs that convert English text
2941 into stereotyped or otherwise humorous dialects. The filters are provided as
2942 a C library, so they can easily be integrated into other programs.")
2943 (license license:gpl2+)))
2944
2945 (define-public taisei
2946 (package
2947 (name "taisei")
2948 (version "1.3.1")
2949 (source
2950 (origin
2951 (method url-fetch)
2952 (uri (string-append "https://github.com/taisei-project/"
2953 "taisei/releases/download/v" version
2954 "/taisei-v" version ".tar.xz"))
2955 (sha256
2956 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
2957 (build-system meson-build-system)
2958 (arguments
2959 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
2960 #:configure-flags
2961 (list "-Dr_default=gles30"
2962 "-Dr_gles20=true"
2963 "-Dr_gles30=true"
2964 "-Dshader_transpiler=true")))
2965 (native-inputs
2966 `(("pkg-config" ,pkg-config)
2967 ("python" ,python)
2968 ("python-docutils" ,python-docutils)
2969 ("python-pygments" ,python-pygments)))
2970 (inputs
2971 `(("freetype" ,freetype)
2972 ("libpng" ,libpng)
2973 ("libwebp" ,libwebp)
2974 ("libzip" ,libzip)
2975 ("mesa" ,mesa)
2976 ("openssl" ,openssl)
2977 ("opusfile" ,opusfile)
2978 ("sdl2" ,sdl2)
2979 ("sdl2-mixer" ,sdl2-mixer)
2980 ("shaderc" ,shaderc)
2981 ("spirv-cross" ,spirv-cross)
2982 ("zlib" ,zlib)))
2983 (home-page "https://taisei-project.org/")
2984 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
2985 (description
2986 "The player controls a character (one of three: Good, Bad, and Dead),
2987 dodges the missiles (lots of it cover the screen, but the character's hitbox
2988 is very small), and shoot at the adversaries that keep appear on the screen.")
2989 (license (list ;;game
2990 license:expat
2991 ;;resources/00-taisei.pkgdir/bgm/
2992 ;;atlas/portraits/
2993 license:cc-by4.0
2994 ;;miscellaneous
2995 license:cc0
2996 license:public-domain))))
2997
2998 (define-public cmatrix
2999 (package
3000 (name "cmatrix")
3001 (version "2.0")
3002 (source
3003 (origin
3004 (method git-fetch)
3005 (uri (git-reference
3006 (url "https://github.com/abishekvashok/cmatrix")
3007 (commit (string-append "v" version))))
3008 (file-name (git-file-name name version))
3009 (sha256
3010 (base32
3011 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
3012 (build-system gnu-build-system)
3013 (native-inputs
3014 `(("autoconf" ,autoconf)
3015 ("automake" ,automake)))
3016 (arguments
3017 '(#:phases
3018 (modify-phases %standard-phases
3019 (replace 'configure
3020 (lambda* (#:key outputs #:allow-other-keys)
3021 ;; This old ‘configure’ script doesn't support
3022 ;; variables passed as arguments.
3023 (let ((out (assoc-ref outputs "out")))
3024 (setenv "CONFIG_SHELL" (which "bash"))
3025 (invoke "./configure"
3026 (string-append "--prefix=" out))))))))
3027 (inputs `(("ncurses" ,ncurses)))
3028 (home-page "http://www.asty.org/cmatrix")
3029 (synopsis "Simulate the display from \"The Matrix\"")
3030 (description "CMatrix simulates the display from \"The Matrix\" and is
3031 based on the screensaver from the movie's website. It works with terminal
3032 settings up to 132x300 and can scroll lines all at the same rate or
3033 asynchronously and at a user-defined speed.")
3034 (license license:gpl2+)))
3035
3036 (define-public chess
3037 (package
3038 (name "chess")
3039 (version "6.2.7")
3040 (source
3041 (origin
3042 (method url-fetch)
3043 (uri (string-append "mirror://gnu/chess/gnuchess-" version
3044 ".tar.gz"))
3045 (sha256
3046 (base32
3047 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
3048 (build-system gnu-build-system)
3049 (home-page "https://www.gnu.org/software/chess/")
3050 (synopsis "Full chess implementation")
3051 (description "GNU Chess is a chess engine. It allows you to compete
3052 against the computer in a game of chess, either through the default terminal
3053 interface or via an external visual interface such as GNU XBoard.")
3054 (properties '((upstream-name . "gnuchess")
3055 (ftp-directory . "/chess")))
3056 (license license:gpl3+)))
3057
3058 (define-public freedink-engine
3059 (package
3060 (name "freedink-engine")
3061 (version "109.6")
3062 (source (origin
3063 (method url-fetch)
3064 (uri (string-append "mirror://gnu/freedink/freedink-" version
3065 ".tar.gz"))
3066 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
3067 (sha256
3068 (base32
3069 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
3070 (build-system gnu-build-system)
3071 (arguments
3072 `(#:configure-flags '("--disable-embedded-resources")
3073 #:phases
3074 (modify-phases %standard-phases
3075 (add-after 'unpack 'disable-graphical-tests
3076 (lambda _
3077 ;; These tests require a graphical interface.
3078 (substitute* "src/Makefile.am"
3079 (("test_gfx_fonts TestIOGfxDisplay") ""))
3080 #t))
3081 (add-before 'bootstrap 'autoreconf
3082 (lambda _
3083 ;; automake is out of date in the source
3084 ;; autoreconf updates the automake scripts
3085 (invoke "autoreconf")
3086 ;; Build fails when autom4te.cache exists.
3087 (delete-file-recursively "autom4te.cache")
3088 #t))
3089 (add-after 'install 'delete-freedinkedit-desktop
3090 (lambda* (#:key outputs #:allow-other-keys)
3091 (let ((out (assoc-ref outputs "out")))
3092 ;; freedinkedit does not know where to find freedink data
3093 ;; freedink data is read-only, so it cannot be edited anyway.
3094 ;; TODO: fix freedink.desktop
3095 (delete-file-recursively (string-append
3096 out "/share/applications"))
3097 #t))))))
3098 (native-inputs `(("autoconf" ,autoconf)
3099 ("automake" ,automake)
3100 ("cxxtest" ,cxxtest)
3101 ("gettext" ,gettext-minimal)
3102 ("help2man" ,help2man)
3103 ("pkg-config" ,pkg-config)))
3104 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
3105 sdl2-ttf sdl2-gfx)))
3106 ("fontconfig" ,fontconfig)
3107 ("glm" ,glm)))
3108 (properties '((ftp-directory . "/freedink")
3109 (upstream-name . "freedink")))
3110 (home-page "https://www.gnu.org/software/freedink/")
3111 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
3112 (description
3113 "GNU FreeDink is a free and portable re-implementation of the engine
3114 for the role-playing game Dink Smallwood. It supports not only the original
3115 game data files but it also supports user-produced game mods or \"D-Mods\".
3116 To that extent, it also includes a front-end for managing all of your D-Mods.")
3117 (license license:gpl3+)))
3118
3119 (define-public freedink-data
3120 (package
3121 (name "freedink-data")
3122 (version "1.08.20190120")
3123 (source (origin
3124 (method url-fetch)
3125 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3126 version ".tar.gz"))
3127 (sha256
3128 (base32
3129 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3130 (build-system gnu-build-system)
3131 (arguments
3132 `(#:phases
3133 (modify-phases %standard-phases
3134 (delete 'configure) ; no configure script
3135 (delete 'check)) ; no tests
3136 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3137 (properties '((ftp-directory . "/freedink")))
3138 (home-page "https://www.gnu.org/software/freedink/")
3139 (synopsis "Game data for GNU Freedink")
3140 (description
3141 "This package contains the game data of GNU Freedink.")
3142 (license license:gpl3+)))
3143
3144 (define-public freedink-dfarc
3145 (package
3146 (name "freedink-dfarc")
3147 (version "3.14")
3148 (source (origin
3149 (method url-fetch)
3150 (uri (string-append "mirror://gnu/freedink/dfarc-"
3151 version ".tar.gz"))
3152 (sha256
3153 (base32
3154 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3155 (build-system gnu-build-system)
3156 (native-inputs
3157 `(("intltool" ,intltool)))
3158 (inputs
3159 `(("bzip2" ,bzip2)
3160 ("wxwidgets" ,wxwidgets)))
3161 (properties '((ftp-directory . "/freedink")
3162 (upstream-name . "dfarc")))
3163 (home-page "https://www.gnu.org/software/freedink/")
3164 (synopsis "Front-end for managing and playing Dink Modules")
3165 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3166 and its numerous D-Mods.")
3167 (license license:gpl3+)))
3168
3169 (define-public freedink
3170 ;; This is a wrapper that tells the engine where to find the data.
3171 (package (inherit freedink-engine)
3172 (name "freedink")
3173 (build-system trivial-build-system)
3174 (arguments
3175 '(#:builder (begin
3176 (use-modules (guix build utils))
3177
3178 (let* ((output (assoc-ref %outputs "out"))
3179 (bin (string-append output "/bin"))
3180 (executable (string-append bin "/freedink")))
3181 (mkdir-p bin)
3182 (call-with-output-file executable
3183 (lambda (port)
3184 (format port "#!~a/bin/sh
3185 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3186 (assoc-ref %build-inputs "bash")
3187 (assoc-ref %build-inputs "engine")
3188 (assoc-ref %build-inputs "data"))
3189 (chmod port #o777)))
3190 #t))
3191 #:modules ((guix build utils))))
3192 (inputs `(("engine" ,freedink-engine)
3193 ("data" ,freedink-data)
3194 ("bash" ,bash)))
3195 (native-inputs '())))
3196
3197 (define-public xboard
3198 (package
3199 (name "xboard")
3200 (version "4.9.1")
3201 (source
3202 (origin
3203 (method url-fetch)
3204 (uri (string-append "mirror://gnu/xboard/xboard-" version
3205 ".tar.gz"))
3206 (sha256
3207 (base32
3208 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3209 (build-system gnu-build-system)
3210 (inputs
3211 `(("gtk+" ,gtk+-2)
3212 ("librsvg" ,librsvg)))
3213 (native-inputs
3214 `(("texinfo" ,texinfo)
3215 ("pkg-config" ,pkg-config)))
3216 (home-page "https://www.gnu.org/software/xboard/")
3217 (synopsis "Graphical user interface for chess programs")
3218 (description "GNU XBoard is a graphical board for all varieties of chess,
3219 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3220 and Makruk. Several lesser-known variants are also supported. It presents a
3221 fully interactive graphical interface and it can load and save games in the
3222 Portable Game Notation.")
3223 (license license:gpl3+)))
3224
3225 (define-public gtypist
3226 (package
3227 (name "gtypist")
3228 (version "2.9.5")
3229 (source (origin
3230 (method url-fetch)
3231 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3232 version ".tar.xz"))
3233 (sha256
3234 (base32
3235 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3236 (modules '((guix build utils)))
3237 (snippet
3238 ;; We do not provide `ncurses.h' within an `ncursesw'
3239 ;; sub-directory, so patch the source accordingly. See
3240 ;; <http://bugs.gnu.org/19018>.
3241 '(begin
3242 (for-each (lambda (file)
3243 (substitute* file
3244 (("ncursesw/ncurses.h")
3245 "ncurses.h")))
3246 (find-files "." "configure$|\\.c$"))
3247 #t))))
3248 (build-system gnu-build-system)
3249 (inputs `(("ncurses" ,ncurses)
3250 ("perl" ,perl)))
3251 (home-page "https://www.gnu.org/software/gtypist/")
3252 (synopsis "Typing tutor")
3253 (description
3254 "GNU Typist is a universal typing tutor. It can be used to learn and
3255 practice touch-typing. Several tutorials are included; in addition to
3256 tutorials for the standard QWERTY layout, there are also tutorials for the
3257 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3258 are primarily in English, however some in other languages are provided.")
3259 (license license:gpl3+)))
3260
3261 (define-public irrlicht
3262 (package
3263 (name "irrlicht")
3264 (version "1.8.4")
3265 (source (origin
3266 (method url-fetch)
3267 (uri (string-append
3268 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3269 (version-major+minor version)
3270 "/" version "/irrlicht-" version ".zip"))
3271 (sha256
3272 (base32
3273 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3274 (patches (search-patches "irrlicht-use-system-libs.patch"))
3275 (modules '((guix build utils)))
3276 (snippet
3277 '(begin
3278 (for-each delete-file-recursively
3279 '("bin" ; bundled compiled Windows binaries"
3280 "source/Irrlicht/MacOSX"
3281 "source/Irrlicht/bzip2"
3282 "source/Irrlicht/jpeglib"
3283 "source/Irrlicht/libpng"
3284 "source/Irrlicht/lzma"
3285 "source/Irrlicht/zlib"))
3286 (delete-file "source/Irrlicht/glext.h")
3287 (delete-file "source/Irrlicht/glxext.h")
3288 (delete-file "source/Irrlicht/wglext.h")
3289 #t))))
3290 (build-system gnu-build-system)
3291 (arguments
3292 `(#:phases
3293 (modify-phases %standard-phases
3294 (add-after 'unpack 'chdir-to-source
3295 (lambda _
3296 ;; The actual source is buried a few directories deep.
3297 (chdir "source/Irrlicht/")
3298 #t))
3299 (add-after 'chdir-to-source 'fix-build-env
3300 (lambda* (#:key outputs #:allow-other-keys)
3301 (let ((out (assoc-ref outputs "out")))
3302 (substitute* "Makefile"
3303 (("INSTALL_DIR = /usr/local/lib")
3304 (string-append "INSTALL_DIR = " out "/lib"))
3305 ;; Add '-fpermissive' to the CXXFLAGS
3306 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3307 ;; The Makefile assumes these directories exist.
3308 (mkdir-p (string-append out "/lib"))
3309 (mkdir-p (string-append out "/include")))))
3310 (delete 'configure)) ; no configure script
3311 #:tests? #f ; no check target
3312 #:make-flags '("CC=gcc" "sharedlib")))
3313 (inputs
3314 `(("bzip2" ,bzip2)
3315 ("libjpeg" ,libjpeg-turbo)
3316 ("libpng" ,libpng)
3317 ("libx11" ,libx11)
3318 ("libxxf86vm" ,libxxf86vm)
3319 ("mesa" ,mesa)))
3320 (synopsis "3D game engine written in C++")
3321 (description
3322 "The Irrlicht Engine is a high performance realtime 3D engine written in
3323 C++. Features include an OpenGL renderer, extensible materials, scene graph
3324 management, character animation, particle and other special effects, support
3325 for common mesh file formats, and collision detection.")
3326 (home-page "http://irrlicht.sourceforge.net/")
3327 (license license:zlib)))
3328
3329 (define-public mars
3330 ;; The latest release on SourceForge relies on an unreleased version of SFML
3331 ;; with a different API, so we take the latest version from the official
3332 ;; repository on Github.
3333 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3334 (revision "1"))
3335 (package
3336 (name "mars")
3337 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3338 (source (origin
3339 (method git-fetch)
3340 (uri (git-reference
3341 (url "https://github.com/thelaui/M.A.R.S.")
3342 (commit commit)))
3343 (file-name (git-file-name name version))
3344 (sha256
3345 (base32
3346 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3347 (patches (search-patches "mars-sfml-2.3.patch"
3348 "mars-install.patch"))))
3349 (build-system cmake-build-system)
3350 (arguments
3351 `(#:tests? #f ; There are no tests
3352 #:phases
3353 (modify-phases %standard-phases
3354 (add-after 'unpack 'fix-install-path
3355 (lambda _
3356 (substitute* "src/CMakeLists.txt"
3357 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3358 "${CMAKE_INSTALL_PREFIX}/bin"))
3359 #t))
3360 (add-after 'unpack 'fix-data-path
3361 (lambda* (#:key outputs #:allow-other-keys)
3362 (substitute* "src/System/settings.cpp"
3363 (("C_dataPath = \"./data/\";")
3364 (string-append "C_dataPath = \""
3365 (assoc-ref outputs "out")
3366 "/share/games/marsshooter/\";")))
3367 #t)))))
3368 (inputs
3369 `(("mesa" ,mesa)
3370 ("fribidi" ,fribidi)
3371 ("taglib" ,taglib)
3372 ("sfml" ,sfml)))
3373 (home-page "http://mars-game.sourceforge.net/")
3374 (synopsis "2D space shooter")
3375 (description
3376 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3377 attractive physics. Players can battle each other or computer controlled
3378 enemies in different game modes such as space ball, death match, team death
3379 match, cannon keep, and grave-itation pit.")
3380 (license license:gpl3+))))
3381
3382 (define-public minetest
3383 (package
3384 (name "minetest")
3385 (version "5.3.0")
3386 (source (origin
3387 (method git-fetch)
3388 (uri (git-reference
3389 (url "https://github.com/minetest/minetest")
3390 (commit version)))
3391 (file-name (git-file-name name version))
3392 (sha256
3393 (base32
3394 "03ga3j3cg38w4lg4d4qxasmnjdl8n3lbizidrinanvyfdyvznyh6"))
3395 (modules '((guix build utils)))
3396 (snippet
3397 '(begin
3398 ;; Delete bundled libraries.
3399 (delete-file-recursively "lib")
3400 #t))))
3401 (build-system cmake-build-system)
3402 (arguments
3403 '(#:configure-flags
3404 (list "-DRUN_IN_PLACE=0"
3405 "-DENABLE_FREETYPE=1"
3406 "-DENABLE_GETTEXT=1"
3407 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3408 (string-append "-DIRRLICHT_INCLUDE_DIR="
3409 (assoc-ref %build-inputs "irrlicht")
3410 "/include/irrlicht")
3411 (string-append "-DCURL_INCLUDE_DIR="
3412 (assoc-ref %build-inputs "curl")
3413 "/include/curl"))
3414 #:tests? #f)) ;no check target
3415 (native-search-paths
3416 (list (search-path-specification
3417 (variable "MINETEST_SUBGAME_PATH")
3418 (files '("share/minetest/games")))))
3419 (native-inputs
3420 `(("pkg-config" ,pkg-config)))
3421 (inputs
3422 `(("curl" ,curl)
3423 ("freetype" ,freetype)
3424 ("gettext" ,gettext-minimal)
3425 ("gmp" ,gmp)
3426 ("irrlicht" ,irrlicht)
3427 ("jsoncpp" ,jsoncpp)
3428 ("libjpeg" ,libjpeg-turbo)
3429 ("libpng" ,libpng)
3430 ("libogg" ,libogg)
3431 ("libvorbis" ,libvorbis)
3432 ("libxxf86vm" ,libxxf86vm)
3433 ("luajit" ,luajit)
3434 ("mesa" ,mesa)
3435 ("ncurses" ,ncurses)
3436 ("openal" ,openal)
3437 ("sqlite" ,sqlite)))
3438 (propagated-inputs
3439 `(("minetest-data" ,minetest-data)))
3440 (synopsis "Infinite-world block sandbox game")
3441 (description
3442 "Minetest is a sandbox construction game. Players can create and destroy
3443 various types of blocks in a three-dimensional open world. This allows
3444 forming structures in every possible creation, on multiplayer servers or as a
3445 single player. Mods and texture packs allow players to personalize the game
3446 in different ways.")
3447 (home-page "https://www.minetest.net/")
3448 (license license:lgpl2.1+)))
3449
3450 (define minetest-data
3451 (package
3452 (name "minetest-data")
3453 (version (package-version minetest))
3454 (source (origin
3455 (method git-fetch)
3456 (uri (git-reference
3457 (url "https://github.com/minetest/minetest_game")
3458 (commit version)))
3459 (file-name (git-file-name name version))
3460 (sha256
3461 (base32
3462 "1liciwlh013z5h08ib0psjbwn5wkvlr937ir7kslfk4vly984cjx"))))
3463 (build-system trivial-build-system)
3464 (native-inputs
3465 `(("source" ,source)))
3466 (arguments
3467 `(#:modules ((guix build utils))
3468 #:builder (begin
3469 (use-modules (guix build utils))
3470 (let ((install-dir (string-append
3471 %output
3472 "/share/minetest/games/minetest_game")))
3473 (mkdir-p install-dir)
3474 (copy-recursively
3475 (assoc-ref %build-inputs "source")
3476 install-dir)
3477 #t))))
3478 (synopsis "Main game data for the Minetest game engine")
3479 (description
3480 "Game data for the Minetest infinite-world block sandbox game.")
3481 (home-page "https://www.minetest.net/")
3482 (license license:lgpl2.1+)))
3483
3484 (define-public minetest-mineclone
3485 (package
3486 (name "minetest-mineclone")
3487 (version "0.66.2")
3488 (source (origin
3489 (method git-fetch)
3490 (uri (git-reference
3491 (url "https://git.minetest.land/Wuzzy/MineClone2")
3492 (commit version)))
3493 (file-name (git-file-name name version))
3494 (sha256
3495 (base32
3496 "0miszzlzplpvaj0j1yii9867ydr42wsaqa9g6grxdrci75p05g00"))))
3497 (build-system copy-build-system)
3498 (arguments
3499 `(#:install-plan
3500 '(("." "share/minetest/games/mineclone"))))
3501 (synopsis "Minecraft clone based on Minetest engine")
3502 (description
3503 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3504 closely as the engine allows.")
3505 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3506 (license license:gpl3+)))
3507
3508 (define glkterm
3509 (package
3510 (name "glkterm")
3511 (version "1.0.4")
3512 (source
3513 (origin
3514 (method url-fetch)
3515 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3516 "glk/implementations/glkterm-104.tar.gz"))
3517 (sha256
3518 (base32
3519 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3520 (build-system gnu-build-system)
3521 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3522 (arguments
3523 '(#:tests? #f ; no check target
3524 #:phases
3525 (modify-phases %standard-phases
3526 (replace 'install
3527 (lambda* (#:key outputs #:allow-other-keys)
3528 (let* ((out (assoc-ref outputs "out"))
3529 (inc (string-append out "/include"))
3530 (lib (string-append out "/lib")))
3531 (for-each
3532 (lambda (file)
3533 (install-file file inc))
3534 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3535 (install-file "libglkterm.a" lib))
3536 #t))
3537 (delete 'configure)))) ; no configure script
3538 (home-page "http://www.eblong.com/zarf/glk/")
3539 (synopsis "Curses Implementation of the Glk API")
3540 (description
3541 "Glk defines a portable API for applications with text UIs. It was
3542 primarily designed for interactive fiction, but it should be suitable for many
3543 interactive text utilities, particularly those based on a command line.
3544 This is an implementation of the Glk library which runs in a terminal window,
3545 using the @code{curses.h} library for screen control.")
3546 (license (license:fsf-free "file://README"))))
3547
3548 (define-public glulxe
3549 (package
3550 (name "glulxe")
3551 (version "0.5.4")
3552 (source
3553 (origin
3554 (method url-fetch)
3555 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3556 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3557 (sha256
3558 (base32
3559 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3560 (build-system gnu-build-system)
3561 (inputs `(("glk" ,glkterm)))
3562 (arguments
3563 '(#:tests? #f ; no check target
3564 #:make-flags
3565 (let* ((glk (assoc-ref %build-inputs "glk")))
3566 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3567 (string-append "GLKLIBDIR=" glk "/lib")
3568 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3569 #:phases
3570 (modify-phases %standard-phases
3571 (replace 'install
3572 (lambda* (#:key outputs #:allow-other-keys)
3573 (let* ((out (assoc-ref outputs "out"))
3574 (bin (string-append out "/bin")))
3575 (install-file "glulxe" bin))
3576 #t))
3577 (delete 'configure)))) ; no configure script
3578 (home-page "https://www.eblong.com/zarf/glulx/")
3579 (synopsis "Interpreter for Glulx VM")
3580 (description
3581 "Glulx is a 32-bit portable virtual machine intended for writing and
3582 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3583 some of the restrictions in the venerable Z-machine format. This is the
3584 reference interpreter, using the Glk API.")
3585 (license license:expat)))
3586
3587 (define-public fifechan
3588 (package
3589 (name "fifechan")
3590 (version "0.1.5")
3591 (source (origin
3592 (method url-fetch)
3593 (uri (string-append "https://codeload.github.com/fifengine/"
3594 "fifechan/tar.gz/" version))
3595 (file-name (string-append name "-" version ".tar.gz"))
3596 (sha256
3597 (base32
3598 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3599 (build-system cmake-build-system)
3600 (inputs
3601 `(("sdl2" ,sdl2)
3602 ("sdl2-image" ,sdl2-image)
3603 ("mesa" ,mesa)))
3604 (arguments
3605 '(#:tests? #f)) ; No included tests
3606 (home-page "https://fifengine.github.io/fifechan/")
3607 (synopsis "Cross platform GUI library specifically for games")
3608 (description
3609 "Fifechan is a lightweight cross platform GUI library written in C++
3610 specifically designed for games. It has a built in set of extendable GUI
3611 Widgets, and allows users to create more.")
3612 (license license:lgpl2.1+)))
3613
3614 (define-public fifengine
3615 (package
3616 (name "fifengine")
3617 (version "0.4.2")
3618 (source (origin
3619 (method url-fetch)
3620 (uri (string-append "https://codeload.github.com/fifengine/"
3621 "fifengine/tar.gz/" version))
3622 (file-name (string-append name "-" version ".tar.gz"))
3623 (patches (search-patches "fifengine-swig-compat.patch"))
3624 (sha256
3625 (base32
3626 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3627 (build-system cmake-build-system)
3628 (arguments
3629 `(#:tests? #f ; TODO The test running fails to run some tests.
3630 #:modules ((srfi srfi-1)
3631 (guix build cmake-build-system)
3632 (guix build utils))
3633 #:configure-flags
3634 (list
3635 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3636 (assoc-ref %build-inputs "openal")
3637 "/include/AL")
3638 (string-append "-DPYTHON_SITE_PACKAGES="
3639 (assoc-ref %outputs "out")
3640 "/lib/python"
3641 ,(version-major+minor (package-version python))
3642 "/site-packages"))
3643 #:phases
3644 (modify-phases %standard-phases
3645 (add-after 'unpack 'patch-run_tests.py
3646 (lambda _
3647 ;; Patch the test runner to exit with a status of 1 if any test
3648 ;; fails, to allow detecting failures.
3649 (substitute* "run_tests.py"
3650 (("ERROR\\. One or more tests failed!'\\)")
3651 "ERROR. One or more tests failed!')
3652 \t\texit(1)"))
3653 #t))
3654 ;; Run tests after installation so that we can make use of the built
3655 ;; python modules.
3656 (delete 'check)
3657 (add-after 'install 'check
3658 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3659 (define python-version
3660 (let* ((version (last (string-split
3661 (assoc-ref inputs "python")
3662 #\-)))
3663 (components (string-split version #\.))
3664 (major+minor (take components 2)))
3665 (string-join major+minor ".")))
3666
3667 (when tests?
3668 ;; Set PYTHONPATH so that python finds the installed modules.
3669 (setenv "PYTHONPATH"
3670 (string-append (getenv "PYTHONPATH") ":"
3671 (assoc-ref outputs "out")
3672 "/lib/python"
3673 python-version
3674 "/site-packages"))
3675 ;; The tests require an X server.
3676 (system "Xvfb :1 &")
3677 (setenv "DISPLAY" ":1")
3678 (setenv "XDG_RUNTIME_DIR" "/tmp")
3679 ;; Run tests
3680 (chdir ,(string-append "../" name "-" version))
3681 (invoke "python3" "run_tests.py" "-a"))
3682 #t)))))
3683 (inputs
3684 `(("sdl2" ,sdl2)
3685 ("sdl2-image" ,sdl2-image)
3686 ("sdl2-ttf" ,sdl2-ttf)
3687 ("tinyxml" ,tinyxml)
3688 ("openal" ,openal)
3689 ("libogg" ,libogg)
3690 ("glew" ,glew)
3691 ("libvorbis" ,libvorbis)
3692 ("boost" ,boost)
3693 ("fifechan" ,fifechan)
3694 ("swig" ,swig)
3695 ("python" ,python)))
3696 (native-inputs
3697 `(("python" ,python)
3698 ("swig" ,swig)
3699 ("xvfb" ,xorg-server)))
3700 (propagated-inputs
3701 `(("python-future" ,python-future)))
3702 (home-page "https://www.fifengine.net/")
3703 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3704 (description
3705 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3706 isometric game engine. Python bindings are included allowing users to create
3707 games using Python as well as C++.")
3708 (license license:lgpl2.1+)))
3709
3710 (define-public fizmo
3711 (package
3712 (name "fizmo")
3713 (version "0.8.5")
3714 (source (origin
3715 (method url-fetch)
3716 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3717 "fizmo-" version ".tar.gz"))
3718 (sha256
3719 (base32
3720 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3721 (build-system gnu-build-system)
3722 (arguments
3723 '(#:configure-flags
3724 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3725 (ncurses (assoc-ref %build-inputs "ncurses")))
3726 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3727 (native-inputs
3728 `(("pkg-config" ,pkg-config)))
3729 (inputs
3730 `(("freetype" ,freetype)
3731 ("libjpeg" ,libjpeg-turbo)
3732 ("libpng" ,libpng)
3733 ("libsndfile" ,libsndfile)
3734 ("libxml2" ,libxml2)
3735 ("ncurses" ,ncurses)
3736 ("sdl2" ,sdl2)))
3737 (home-page "https://fizmo.spellbreaker.org/")
3738 (synopsis "Z-machine interpreter")
3739 (description
3740 "Fizmo is a console-based Z-machine interpreter. It is used to play
3741 interactive fiction, also known as text adventures, which were implemented
3742 either by Infocom or created using the Inform compiler.")
3743 (license license:bsd-3)))
3744
3745 (define-public gnugo
3746 (package
3747 (name "gnugo")
3748 (version "3.8")
3749 (source (origin
3750 (method url-fetch)
3751 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3752 ".tar.gz"))
3753 (sha256
3754 (base32
3755 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3756 (build-system gnu-build-system)
3757 (inputs `(("readline" ,readline)))
3758 (synopsis "Play the game of Go")
3759 (description
3760 "GNU Go is a program that plays the game of Go, in which players
3761 place stones on a grid to form territory or capture other stones. While
3762 it can be played directly from the terminal, rendered in ASCII characters,
3763 it is also possible to play GNU Go with 3rd party graphical interfaces or
3764 even in Emacs. It supports the standard game storage format (SGF, Smart
3765 Game Format) and inter-process communication format (GMP, Go Modem
3766 Protocol).")
3767 (home-page "https://www.gnu.org/software/gnugo/")
3768 (license license:gpl3+)))
3769
3770 (define-public extremetuxracer
3771 (package
3772 (name "extremetuxracer")
3773 (version "0.8.0")
3774 (source (origin
3775 (method url-fetch)
3776 (uri (string-append
3777 "mirror://sourceforge/extremetuxracer/releases/"
3778 version "/etr-" version ".tar.xz"))
3779 (sha256
3780 (base32
3781 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3782 (build-system gnu-build-system)
3783 (native-inputs
3784 `(("pkg-config" ,pkg-config)))
3785 (inputs
3786 `(("glu" ,glu)
3787 ("sfml" ,sfml)))
3788 (synopsis "High-speed arctic racing game based on Tux Racer")
3789 ;; Snarfed straight from Debian.
3790 (description "Extreme Tux Racer, or etracer as it is called for short, is
3791 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3792 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3793 avoiding the trees and rocks that will slow you down.
3794
3795 Collect herrings and other goodies while sliding down the hill, but avoid fish
3796 bones.
3797
3798 This game is based on the GPL version of the famous game TuxRacer.")
3799 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3800 (license license:gpl2+)))
3801
3802 (define-public supertuxkart
3803 (package
3804 (name "supertuxkart")
3805 (version "1.2")
3806 (source
3807 (origin
3808 (method url-fetch)
3809 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3810 version "/SuperTuxKart-" version "-src.tar.xz"))
3811 (sha256
3812 (base32
3813 "0dvx56hmy6wdhl7m9dw8zc1n3jqfp05gnxl6zs1rbfdyzl5dybh5"))
3814 (modules '((guix build utils)))
3815 (snippet
3816 ;; Delete bundled library sources
3817 '(begin
3818 ;; Supertuxkart uses modified versions of the Irrlicht engine
3819 ;; and the bullet library. The developers gave an explanation
3820 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3821 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3822 (for-each delete-file-recursively
3823 '("lib/glew"
3824 "lib/wiiuse"
3825 "lib/enet"))
3826 #t))))
3827 (build-system cmake-build-system)
3828 (arguments
3829 `(#:tests? #f ; no check target
3830 #:configure-flags
3831 (list "-DUSE_WIIUSE=0"
3832 "-DUSE_SYSTEM_GLEW=TRUE"
3833 "-DUSE_SYSTEM_ENET=TRUE"
3834 ;; In order to use the system ENet library, IPv6 support (added in
3835 ;; SuperTuxKart version 1.1) must be disabled.
3836 "-DUSE_IPV6=FALSE"
3837 ;; FIXME: needs libopenglrecorder
3838 "-DBUILD_RECORDER=0")))
3839 (inputs
3840 `(("curl" ,curl)
3841 ("freetype" ,freetype)
3842 ("fribidi" ,fribidi)
3843 ("glew" ,glew)
3844 ("harfbuzz" ,harfbuzz)
3845 ("libvorbis" ,libvorbis)
3846 ("libx11" ,libx11)
3847 ("libxrandr" ,libxrandr)
3848 ("mesa" ,mesa)
3849 ("openal" ,openal)
3850 ("sdl2" ,sdl2)
3851 ("zlib" ,zlib)
3852 ;; The following input is needed to build the bundled and modified
3853 ;; version of irrlicht.
3854 ("enet" ,enet)
3855 ("libjpeg" ,libjpeg-turbo)
3856 ("openssl" ,openssl)))
3857 (native-inputs
3858 `(("pkg-config" ,pkg-config)))
3859 (home-page "https://supertuxkart.net/Main_Page")
3860 (synopsis "3D kart racing game")
3861 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3862 having fun over realism. You can play with up to 4 friends on one PC, racing
3863 against each other or just trying to beat the computer; single-player mode is
3864 also available.")
3865 (license license:gpl3+)))
3866
3867 (define-public unknown-horizons
3868 (package
3869 (name "unknown-horizons")
3870 (version "2019.1")
3871 (source (origin
3872 (method url-fetch)
3873 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3874 "unknown-horizons/tar.gz/" version))
3875 (file-name (string-append name "-" version ".tar.gz"))
3876 (sha256
3877 (base32
3878 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
3879 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
3880 (build-system python-build-system)
3881 (arguments
3882 '(#:phases
3883 (modify-phases %standard-phases
3884 (add-before 'build 'set-HOME
3885 (lambda _
3886 (setenv "HOME" "/tmp")
3887 #t))
3888 (add-after 'build 'build-extra
3889 (lambda _
3890 (invoke "python3" "./setup.py" "build_i18n")
3891 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3892 #t))
3893 (add-after 'install 'patch
3894 (lambda* (#:key outputs #:allow-other-keys)
3895 (let ((out (assoc-ref outputs "out")))
3896 (substitute* (string-append out "/bin/unknown-horizons")
3897 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3898 (string-append "os.chdir(\""
3899 (assoc-ref outputs "out")
3900 "/share/unknown-horizons\")"))))
3901 #t))
3902 (add-before 'check 'fix-tests-with-pytest>=4
3903 (lambda _
3904 (substitute* "tests/conftest.py"
3905 (("pytest_namespace")
3906 "pytest_configure")
3907 (("get_marker")
3908 "get_closest_marker"))
3909 #t))
3910 ;; TODO: Run GUI tests as well
3911 (replace 'check
3912 (lambda _
3913 (substitute* "horizons/constants.py"
3914 (("IS_DEV_VERSION = False")
3915 "IS_DEV_VERSION = True"))
3916 (invoke "pytest" "tests")
3917 (substitute* "horizons/constants.py"
3918 (("IS_DEV_VERSION = True")
3919 "IS_DEV_VERSION = False"))
3920 #t)))))
3921 (inputs
3922 `(("fifengine" ,fifengine)
3923 ("python:tk" ,python "tk")
3924 ("python-pillow" ,python-pillow)
3925 ("python-pyyaml" ,python-pyyaml)))
3926 (native-inputs
3927 `(("intltool" ,intltool)
3928 ("python-distro" ,python-distro)
3929
3930 ;; Required for tests
3931 ("python-greenlet" ,python-greenlet)
3932 ("python-polib" ,python-polib)
3933 ("python-pytest" ,python-pytest)
3934 ("python-pytest-mock" ,python-pytest-mock)))
3935 (home-page "http://unknown-horizons.org/")
3936 (synopsis "Isometric realtime strategy, economy and city building simulation")
3937 (description
3938 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
3939 on economy and city building. Expand your small settlement to a strong and
3940 wealthy colony, collect taxes and supply your inhabitants with valuable
3941 goods. Increase your power with a well balanced economy and with strategic
3942 trade and diplomacy.")
3943 (license (list
3944 license:gpl2+ ; Covers code
3945 license:expat ; tests/dummy.py, ext/polib.py
3946 license:cc-by-sa3.0 ; Covers some media content
3947 license:cc-by3.0 ; Covers some media content
3948 license:bsd-3)))) ; horizons/ext/speaklater.py
3949
3950 (define-public gnujump
3951 (package
3952 (name "gnujump")
3953 (version "1.0.8")
3954 (source (origin
3955 (method url-fetch)
3956 (uri (string-append "mirror://gnu/gnujump/gnujump-"
3957 version ".tar.gz"))
3958 (sha256
3959 (base32
3960 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
3961 (build-system gnu-build-system)
3962 (arguments
3963 '(#:phases
3964 (modify-phases %standard-phases
3965 (add-before
3966 'configure 'link-libm
3967 (lambda _ (setenv "LIBS" "-lm")))
3968 (add-after 'install 'create-desktop-entry
3969 (lambda* (#:key outputs #:allow-other-keys)
3970 (let* ((out (assoc-ref outputs "out"))
3971 (apps (string-append out "/share/applications")))
3972 (mkdir-p apps)
3973 (with-output-to-file
3974 (string-append apps "/gnujump.desktop")
3975 (lambda _
3976 (format #t
3977 "[Desktop Entry]~@
3978 Name=GNUjump~@
3979 Comment=Jump up the tower to survive~@
3980 Exec=~a/bin/gnujump~@
3981 Terminal=false~@
3982 Type=Application~@
3983 Categories=Game;ArcadeGame~%"
3984 out)))))))))
3985 (inputs
3986 `(("glu" ,glu)
3987 ("mesa" ,mesa)
3988 ("sdl" ,sdl)
3989 ("sdl-image" ,sdl-image)
3990 ("sdl-mixer" ,sdl-mixer)))
3991 (home-page "http://gnujump.es.gnu.org/")
3992 (synopsis
3993 "Game of jumping to the next floor, trying not to fall")
3994 (description
3995 "GNUjump is a simple, yet addictive game in which you must jump from
3996 platform to platform to avoid falling, while the platforms drop at faster rates
3997 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
3998 falling, themeable graphics and sounds, and replays.")
3999 (license license:gpl3+)))
4000
4001 (define-public wesnoth
4002 (package
4003 (name "wesnoth")
4004 (version "1.14.15")
4005 (source (origin
4006 (method url-fetch)
4007 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
4008 (version-major+minor version)
4009 "/wesnoth-" version "/"
4010 "wesnoth-" version ".tar.bz2"))
4011 (sha256
4012 (base32
4013 "05iapxj3nzaqh10y42yq1jf7spxgm4iwjw4qj1c4lnb25xp4mc2h"))))
4014 (build-system cmake-build-system)
4015 (arguments
4016 `(#:tests? #f)) ;no check target
4017 (native-inputs
4018 `(("gettext" ,gettext-minimal)
4019 ("pkg-config" ,pkg-config)))
4020 (inputs
4021 `(("boost" ,boost)
4022 ("dbus" ,dbus)
4023 ("fribidi" ,fribidi)
4024 ("libvorbis" ,libvorbis)
4025 ("openssl" ,openssl)
4026 ("pango" ,pango)
4027 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
4028 (home-page "https://www.wesnoth.org/")
4029 (synopsis "Turn-based strategy game")
4030 (description
4031 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
4032 with several single player campaigns, and multiplayer games (both networked and
4033 local).
4034
4035 Battle for control on a range of maps, using variety of units which have
4036 advantages and disadvantages against different types of attacks. Units gain
4037 experience and advance levels, and are carried over from one scenario to the
4038 next campaign.")
4039 (license license:gpl2+)))
4040
4041 (define-public wesnoth-server
4042 (package
4043 (inherit wesnoth)
4044 (name "wesnoth-server")
4045 (inputs
4046 `(("boost" ,boost)
4047 ("icu4c" ,icu4c)
4048 ("openssl" ,openssl)
4049 ("sdl2" ,sdl2)))
4050 (arguments
4051 `(#:configure-flags '("-DENABLE_GAME=OFF")
4052 ,@(package-arguments wesnoth)))
4053 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
4054 (description "This package contains a dedicated server for @emph{The
4055 Battle for Wesnoth}.")))
4056
4057 (define-public gamine
4058 (package
4059 (name "gamine")
4060 (version "1.6")
4061 (source (origin
4062 (method url-fetch)
4063 (uri (string-append "mirror://sourceforge/gamine-game/"
4064 "gamine-" version ".tar.gz"))
4065 (sha256
4066 (base32
4067 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
4068 (build-system gnu-build-system)
4069 (native-inputs
4070 `(("pkg-config" ,pkg-config)
4071 ("intltool" ,intltool)))
4072 (inputs
4073 `(("gstreamer" ,gstreamer)
4074 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
4075 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
4076 ("gtk+" ,gtk+)))
4077 (arguments
4078 `(#:tests? #f
4079 #:make-flags
4080 (let ((out (assoc-ref %outputs "out")))
4081 (list (string-append "PREFIX=" out)
4082 (string-append "SYSCONFDIR=" out "/etc")))
4083 #:phases
4084 (modify-phases %standard-phases
4085 (delete 'configure)
4086 (add-after
4087 'install 'wrap-gamine
4088 (lambda* (#:key outputs #:allow-other-keys)
4089 (let ((out (assoc-ref outputs "out"))
4090 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4091 (wrap-program (string-append out "/bin/gamine")
4092 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4093 #t)))))
4094 (home-page "http://gamine-game.sourceforge.net/")
4095 (synopsis "Mouse and keyboard discovery for children")
4096 (description
4097 "Gamine is a game designed for young children who are learning to use the
4098 mouse and keyboard. The child uses the mouse to draw colored dots and lines
4099 on the screen and keyboard to display letters.")
4100 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
4101 (license license:gpl3)))
4102
4103 (define-public manaplus
4104 (package
4105 (name "manaplus")
4106 (version "1.9.3.23")
4107 (source (origin
4108 (method url-fetch)
4109 (uri (string-append
4110 "https://repo.manaplus.org/manaplus/download/"
4111 version "/manaplus-" version ".tar.xz"))
4112 (sha256
4113 (base32
4114 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
4115 (build-system gnu-build-system)
4116 (arguments
4117 '(#:configure-flags
4118 (list (string-append "CPPFLAGS=-I"
4119 (assoc-ref %build-inputs "sdl-union")
4120 "/include/SDL"))))
4121 (native-inputs
4122 `(("pkg-config" ,pkg-config)))
4123 (inputs
4124 `(("glu" ,glu)
4125 ("curl" ,curl)
4126 ("libxml2" ,libxml2)
4127 ("mesa" ,mesa)
4128 ("sdl-union" ,(sdl-union))))
4129 (home-page "https://manaplus.org")
4130 (synopsis "Client for 'The Mana World' and similar games")
4131 (description
4132 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4133 fully supported client for @uref{http://www.themanaworld.org, The mana
4134 world}, @uref{http://evolonline.org, Evol Online} and
4135 @uref{http://landoffire.org, Land of fire}.")
4136 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4137 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4138 ;; The rest is under GPL2+.
4139 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4140
4141 (define openttd-engine
4142 (package
4143 (name "openttd-engine")
4144 (version "1.10.3")
4145 (source
4146 (origin (method url-fetch)
4147 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4148 version "/openttd-" version "-source.tar.xz"))
4149 (sha256
4150 (base32
4151 "0fxmfz1mm95a2x0rnzfff9wb8q57w0cvsdd0z7agdcbyakph25n1"))))
4152 (build-system gnu-build-system)
4153 (arguments
4154 `(#:tests? #f ; no "check" target
4155 #:phases
4156 (modify-phases %standard-phases
4157 ;; The build process fails if the configure script is passed the
4158 ;; option "--enable-fast-install".
4159 (replace 'configure
4160 (lambda* (#:key inputs outputs (configure-flags '())
4161 #:allow-other-keys)
4162 (let ((out (assoc-ref outputs "out"))
4163 (lzo (assoc-ref inputs "lzo")))
4164 (apply invoke "./configure"
4165 (string-append "--prefix=" out)
4166 ;; Provide the "lzo" path.
4167 (string-append "--with-liblzo2="
4168 lzo "/lib/liblzo2.a")
4169 ;; Put the binary in 'bin' instead of 'games'.
4170 "--binary-dir=bin"
4171 configure-flags)))))))
4172 (native-inputs `(("pkg-config" ,pkg-config)))
4173 (inputs
4174 `(("allegro" ,allegro)
4175 ("fontconfig" ,fontconfig)
4176 ("freetype" ,freetype)
4177 ("icu4c" ,icu4c)
4178 ("libpng" ,libpng)
4179 ("lzo" ,lzo)
4180 ("sdl" ,sdl)
4181 ("xz" ,xz)
4182 ("zlib" ,zlib)))
4183 (synopsis "Transportation economics simulator game")
4184 (description "OpenTTD is a game in which you transport goods and
4185 passengers by land, water and air. It is a re-implementation of Transport
4186 Tycoon Deluxe with many enhancements including multiplayer mode,
4187 internationalization support, conditional orders and the ability to clone,
4188 autoreplace and autoupdate vehicles. This package only includes the game
4189 engine. When you start it you will be prompted to download a graphics set.")
4190 (home-page "https://www.openttd.org/")
4191 ;; This package is GPLv2, except for a few files located in
4192 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4193 ;; licenses. In addition, this software contains an in-game downloader
4194 ;; from which the user may find non-functional data licensed under
4195 ;; different terms.
4196 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4197
4198 (define openttd-opengfx
4199 (package
4200 (name "openttd-opengfx")
4201 (version "0.6.0")
4202 (source
4203 (origin
4204 (method url-fetch)
4205 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4206 version "/opengfx-" version "-source.tar.xz"))
4207 (sha256
4208 (base32
4209 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
4210 (build-system gnu-build-system)
4211 (arguments
4212 '(#:make-flags (list "CC=gcc"
4213 (string-append "INSTALL_DIR="
4214 (assoc-ref %outputs "out")
4215 "/share/games/openttd/baseset/opengfx"))
4216 #:phases
4217 (modify-phases %standard-phases
4218 (replace 'configure
4219 (lambda _
4220 ;; Make sure HOME is writable for GIMP.
4221 (setenv "HOME" (getcwd))
4222
4223 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4224 ;; dos2unix from receiving its version information as a flag.
4225 (substitute* "Makefile"
4226 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4227 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4228 ;; The check phase for this package only checks the md5sums of the built
4229 ;; GRF files against the md5sums of the release versions. Because we use
4230 ;; different software versions than upstream does, some of the md5sums
4231 ;; are different. However, the package is still reproducible, it's safe
4232 ;; to disable this test.
4233 #:tests? #f
4234 #:parallel-build? #f))
4235 (native-inputs `(("dos2unix" ,dos2unix)
4236 ("gimp" ,gimp)
4237 ("grfcodec" ,grfcodec)
4238 ("nml" ,nml)
4239 ("which" ,which)
4240 ("python" ,python-2)))
4241 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4242 (synopsis "Base graphics set for OpenTTD")
4243 (description
4244 "The OpenGFX project is an implementation of the OpenTTD base graphics
4245 set that aims to ensure the best possible out-of-the-box experience.
4246
4247 OpenGFX provides you with...
4248 @enumerate
4249 @item All graphics you need to enjoy OpenTTD.
4250 @item Uniquely drawn rail vehicles for every climate.
4251 @item Completely snow-aware rivers.
4252 @item Different river and sea water.
4253 @item Snow-aware buoys.
4254 @end enumerate")
4255 (license license:gpl2)))
4256
4257 (define openttd-opensfx
4258 (package
4259 (name "openttd-opensfx")
4260 (version "0.2.3")
4261 (source
4262 (origin
4263 (method url-fetch)
4264 (uri (string-append
4265 "https://binaries.openttd.org/extra/opensfx/"
4266 version "/opensfx-" version "-source.tar.gz"))
4267 (sha256
4268 (base32
4269 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
4270 (build-system gnu-build-system)
4271 (native-inputs
4272 `(("catcodec" ,catcodec)
4273 ("python" ,python-2)))
4274 (arguments
4275 `(#:make-flags
4276 (list (string-append "INSTALL_DIR=" %output
4277 "/share/games/openttd/baseset/opensfx"))
4278 #:phases
4279 (modify-phases %standard-phases
4280 (add-after 'unpack 'make-reproducible
4281 (lambda _
4282 ;; Remove the time dependency of the installed tarball by setting
4283 ;; the modification times if its members to 0.
4284 (substitute* "scripts/Makefile.def"
4285 (("-cf") " --mtime=@0 -cf"))
4286 #t))
4287 (delete 'configure))))
4288 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4289 (synopsis "Base sounds for OpenTTD")
4290 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4291 it possible to play OpenTTD without requiring the proprietary sound files from
4292 the original Transport Tycoon Deluxe.")
4293 (license license:cc-sampling-plus-1.0)))
4294
4295 (define openttd-openmsx
4296 (package
4297 (name "openttd-openmsx")
4298 (version "0.3.1")
4299 (source
4300 (origin
4301 (method url-fetch)
4302 (uri (string-append
4303 "https://binaries.openttd.org/extra/openmsx/"
4304 version "/openmsx-" version "-source.tar.gz"))
4305 (sha256
4306 (base32
4307 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
4308 (build-system gnu-build-system)
4309 (native-inputs
4310 `(("python" ,python-2)))
4311 (arguments
4312 `(#:make-flags
4313 (list (string-append "INSTALL_DIR=" %output
4314 "/share/games/openttd/baseset"))
4315 #:phases
4316 (modify-phases %standard-phases
4317 (delete 'configure)
4318 (add-after 'install 'post-install
4319 ;; Rename openmsx-version to openmsx
4320 (lambda* (#:key outputs #:allow-other-keys)
4321 (let ((install-directory (string-append (assoc-ref outputs "out")
4322 "/share/games/openttd/baseset")))
4323 (rename-file (string-append install-directory "/openmsx-" ,version)
4324 (string-append install-directory "/openmsx"))
4325 #t))))))
4326 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4327 (synopsis "Music set for OpenTTD")
4328 (description "OpenMSX is a music set for OpenTTD which makes it possible
4329 to play OpenTTD without requiring the proprietary music from the original
4330 Transport Tycoon Deluxe.")
4331 (license license:gpl2)))
4332
4333 (define-public openttd
4334 (package
4335 (inherit openttd-engine)
4336 (name "openttd")
4337 (arguments
4338 `(#:configure-flags
4339 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4340 "/bin/timidity"))
4341 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4342 ((#:phases phases)
4343 `(modify-phases ,phases
4344 (add-after 'install 'install-data
4345 (lambda* (#:key inputs outputs #:allow-other-keys)
4346 (for-each
4347 (lambda (input)
4348 (copy-recursively (assoc-ref inputs input)
4349 (assoc-ref outputs "out")))
4350 (list "opengfx" "openmsx" "opensfx"))
4351 #t)))))))
4352 (inputs
4353 `(("timidity++" ,timidity++)
4354 ,@(package-inputs openttd-engine)))
4355 (native-inputs
4356 `(("opengfx" ,openttd-opengfx)
4357 ("openmsx" ,openttd-openmsx)
4358 ("opensfx" ,openttd-opensfx)
4359 ,@(package-native-inputs openttd-engine)))))
4360
4361 (define openrct2-title-sequences
4362 (package
4363 (name "openrct2-title-sequences")
4364 (version "0.1.2")
4365 (source
4366 (origin
4367 (method url-fetch)
4368 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4369 version "/title-sequence-v" version ".zip"))
4370 (file-name (string-append name "-" version ".zip"))
4371 (sha256
4372 (base32
4373 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4374 (build-system trivial-build-system)
4375 (native-inputs
4376 `(("bash" ,bash)
4377 ("coreutils" ,coreutils)
4378 ("unzip" ,unzip)))
4379 (arguments
4380 `(#:modules ((guix build utils))
4381 #:builder
4382 (begin
4383 (use-modules (guix build utils))
4384 (let* ((out (assoc-ref %outputs "out"))
4385 (openrct2-title-sequences (string-append out
4386 "/share/openrct2/title-sequences"))
4387 (source (assoc-ref %build-inputs "source"))
4388 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4389 (copy-file source (string-append ,name "-" ,version ".zip"))
4390 (invoke unzip (string-append ,name "-" ,version ".zip"))
4391 (delete-file (string-append ,name "-" ,version ".zip"))
4392 (mkdir-p openrct2-title-sequences)
4393 (copy-recursively "."
4394 openrct2-title-sequences)
4395 #t))))
4396 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4397 (synopsis "Title sequences for OpenRCT2")
4398 (description
4399 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4400 (license license:gpl3+)))
4401
4402 (define openrct2-objects
4403 (package
4404 (name "openrct2-objects")
4405 (version "1.0.20")
4406 (source
4407 (origin
4408 (method url-fetch)
4409 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4410 version "/objects.zip"))
4411 (file-name (string-append name "-" version ".zip"))
4412 (sha256
4413 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4414 (build-system trivial-build-system)
4415 (native-inputs
4416 `(("bash" ,bash)
4417 ("coreutils" ,coreutils)
4418 ("unzip" ,unzip)))
4419 (arguments
4420 `(#:modules ((guix build utils))
4421 #:builder
4422 (begin
4423 (use-modules (guix build utils))
4424 (let* ((out (assoc-ref %outputs "out"))
4425 (openrct2-objects (string-append out
4426 "/share/openrct2/objects"))
4427 (source (assoc-ref %build-inputs "source"))
4428 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4429 (copy-file source (string-append ,name "-" ,version ".zip"))
4430 (invoke unzip (string-append ,name "-" ,version ".zip"))
4431 (delete-file (string-append ,name "-" ,version ".zip"))
4432 (mkdir-p openrct2-objects)
4433 (copy-recursively "."
4434 openrct2-objects)
4435 #t))))
4436 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4437 (synopsis "Objects for OpenRCT2")
4438 (description
4439 "openrct2-objects is a set of objects for OpenRCT2.")
4440 (license license:gpl3+)))
4441
4442 (define-public openrct2
4443 (package
4444 (name "openrct2")
4445 (version "0.3.2")
4446 (source
4447 (origin
4448 (method git-fetch)
4449 (uri (git-reference
4450 (url "https://github.com/OpenRCT2/OpenRCT2")
4451 (commit (string-append "v" version))))
4452 (file-name (git-file-name name version))
4453 (sha256
4454 (base32 "1fd32wniiy6qz2046ppqfj2sb3rf2qf086rf9v1bdhyj254d0b1z"))))
4455 (build-system cmake-build-system)
4456 (arguments
4457 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4458 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4459 #:tests? #f ; tests require network access
4460 #:phases
4461 (modify-phases %standard-phases
4462 (add-after 'unpack 'fix-usr-share-paths&add-data
4463 (lambda* (#:key inputs outputs #:allow-other-keys)
4464 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4465 (objects (assoc-ref inputs "openrct2-objects")))
4466 ;; Fix some references to /usr/share.
4467 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4468 (("/usr/share")
4469 (string-append (assoc-ref %outputs "out") "/share")))
4470 (copy-recursively
4471 (string-append titles "/share/openrct2/title-sequences")
4472 "data/title")
4473 (copy-recursively
4474 (string-append objects "/share/openrct2/objects")
4475 "data/object"))))
4476 (add-before 'configure 'get-rid-of-errors
4477 (lambda _
4478 ;; Don't treat warnings as errors.
4479 (substitute* "CMakeLists.txt"
4480 (("-Werror") ""))
4481 #t)))))
4482 (inputs `(("curl" ,curl)
4483 ("duktape" ,duktape)
4484 ("fontconfig" ,fontconfig)
4485 ("freetype" ,freetype)
4486 ("icu4c" ,icu4c)
4487 ("jansson" ,jansson)
4488 ("libpng" ,libpng)
4489 ("libzip" ,libzip)
4490 ("mesa" ,mesa)
4491 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4492 ("openrct2-objects" ,openrct2-objects)
4493 ("openrct2-title-sequences" ,openrct2-title-sequences)
4494 ("openssl" ,openssl)
4495 ("sdl2" ,sdl2)
4496 ("speexdsp" ,speexdsp)
4497 ("zlib" ,zlib)))
4498 (native-inputs
4499 `(("pkg-config" ,pkg-config)))
4500 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4501 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4502 (description "OpenRCT2 is a free software re-implementation of
4503 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4504 maintaining an amusement park containing attractions, shops and facilities.
4505
4506 Note that this package does @emph{not} provide the game assets (sounds,
4507 images, etc.)")
4508 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4509 ;; regarding assets.
4510 (license license:gpl3+)))
4511
4512 (define-public pinball
4513 (package
4514 (name "pinball")
4515 (version "0.3.1")
4516 (source
4517 (origin (method url-fetch)
4518 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4519 "pinball-" version "/"
4520 "pinball-" version ".tar.gz"))
4521 (sha256
4522 (base32
4523 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4524 (patches (search-patches "pinball-const-fix.patch"
4525 "pinball-cstddef.patch"
4526 "pinball-missing-separators.patch"
4527 "pinball-src-deps.patch"
4528 "pinball-system-ltdl.patch"))))
4529 (build-system gnu-build-system)
4530 (inputs
4531 `(("glu" ,glu)
4532 ("mesa" ,mesa)
4533 ("sdl" ,sdl)
4534 ("sdl-image" ,sdl-image)
4535 ("sdl-mixer" ,sdl-mixer)))
4536 (arguments
4537 '(#:configure-flags
4538 (list (string-append "CPPFLAGS=-I"
4539 (assoc-ref %build-inputs "sdl-image")
4540 "/include/SDL -I"
4541 (assoc-ref %build-inputs "sdl-mixer")
4542 "/include/SDL"))))
4543 (home-page "http://pinball.sourceforge.net")
4544 (synopsis "Pinball simulator")
4545 (description "The Emilia Pinball Project is a pinball simulator. There
4546 are only two levels to play with, but they are very addictive.")
4547 (license license:gpl2)))
4548
4549 (define-public pioneers
4550 (package
4551 (name "pioneers")
4552 (version "15.6")
4553 (source (origin
4554 (method url-fetch)
4555 (uri (string-append "https://downloads.sourceforge.net/pio/"
4556 "pioneers-" version ".tar.gz"))
4557 (sha256
4558 (base32
4559 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4560 (build-system gnu-build-system)
4561 (inputs `(("avahi" ,avahi)
4562 ("gtk+" ,gtk+)
4563 ("librsvg" ,librsvg)))
4564 (native-inputs `(("intltool" ,intltool)
4565 ("itstool" ,itstool)
4566 ("libxml2" ,libxml2)
4567 ("pkg-config" ,pkg-config)))
4568 (synopsis "Board game inspired by The Settlers of Catan")
4569 (description "Pioneers is an emulation of the board game The Settlers of
4570 Catan. It can be played on a local network, on the internet, and with AI
4571 players.")
4572 (home-page "http://pio.sourceforge.net/")
4573 (license license:gpl2+)))
4574
4575 (define-public einstein
4576 (package
4577 (name "einstein")
4578 (version "2.0")
4579 (source (origin
4580 (method url-fetch)
4581 (uri (string-append "mirror://debian/pool/main/e/"
4582 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4583 (sha256
4584 (base32
4585 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4586 (patches (search-patches "einstein-build.patch"))))
4587 (build-system gnu-build-system)
4588 (inputs
4589 `(("freetype" ,freetype)
4590 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4591 ("zlib" ,zlib)))
4592 (native-inputs
4593 `(("font-dejavu" ,font-dejavu)))
4594 (arguments
4595 `(#:tests? #f ; no check target
4596 #:phases
4597 (modify-phases %standard-phases
4598 (replace 'configure
4599 (lambda* (#:key outputs inputs #:allow-other-keys)
4600 (let ((out (assoc-ref outputs "out"))
4601 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4602 "/share/fonts/truetype/DejaVuSans.ttf")))
4603 (substitute* "Makefile"
4604 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4605 ;; The patch above registers a free font for use by the binary,
4606 ;; but the font is copied during the compile phase into a
4607 ;; resources file, so we need to make the ttf file available.
4608 (symlink dejavu "res/DejaVuSans.ttf")
4609 #t))))))
4610 (synopsis "Logic puzzle game")
4611 (description "The goal of this logic game is to open all cards in a 6x6
4612 grid, using a number of hints as to their relative position. The game idea
4613 is attributed to Albert Einstein.")
4614 ;; The original home page has disappeared.
4615 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4616 "http://games.flowix.com/en/index.html"))
4617 ;; License according to
4618 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4619 ;; The source code is a DFSG-sanitized tarball and does not contain any
4620 ;; license information.
4621 (license license:gpl3+)))
4622
4623 (define-public powwow
4624 (package
4625 (name "powwow")
4626 (version "1.2.22")
4627 (source (origin
4628 (method url-fetch)
4629 (uri (string-append
4630 "https://www.hoopajoo.net/static/projects/powwow-"
4631 version ".tar.gz"))
4632 (sha256
4633 (base32
4634 "12i11b8zxg8vdb9d6ims8qy2lmwwr42rcqbwq3vsa1x94s51bcbp"))))
4635 (inputs
4636 `(("ncurses" ,ncurses)))
4637 (build-system gnu-build-system)
4638 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4639 (synopsis "MUD and telnet client")
4640 (description
4641 "POWWOW is a client software which can be used for telnet as well as for
4642 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4643 the chat server psyced with the specific config located at
4644 http://lavachat.symlynx.com/unix/")
4645 (license license:gpl2+)))
4646
4647 (define-public red-eclipse
4648 (let ((release "2.0.0")
4649 (revision 0))
4650 (package
4651 (name "red-eclipse")
4652 (version (if (zero? revision)
4653 release
4654 (string-append release "-"
4655 (number->string revision))))
4656 (source
4657 (origin
4658 (method git-fetch)
4659 (uri (git-reference
4660 (url "https://github.com/redeclipse/base")
4661 (commit (string-append "v" release))
4662 (recursive? #t))) ; for game data
4663 (file-name (git-file-name name version))
4664 (sha256
4665 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4666 (modules '((guix build utils)))
4667 (snippet
4668 ;; Remove proprietary libraries and other pre-compiled binaries.
4669 '(begin
4670 (delete-file-recursively "bin")
4671 #t))))
4672 (build-system gnu-build-system)
4673 (arguments
4674 `(#:tests? #f ; no check target
4675 #:make-flags (list "CC=gcc" "-Csrc"
4676 (string-append "INSTDIR="
4677 (assoc-ref %outputs "out") "/bin")
4678 (string-append "prefix="
4679 (assoc-ref %outputs "out")))
4680 #:phases
4681 (modify-phases %standard-phases
4682 (add-after 'unpack 'add-store-data-package-path-as-default
4683 (lambda* (#:key outputs #:allow-other-keys)
4684 (substitute* "src/engine/server.cpp"
4685 (("data = \"data\"")
4686 (string-append "data = \""
4687 (assoc-ref outputs "out")
4688 "/share/redeclipse/data\"")))
4689 #t))
4690 (delete 'configure) ; no configure script
4691 (add-after 'set-paths 'set-sdl-paths
4692 (lambda* (#:key inputs #:allow-other-keys)
4693 (setenv "CPATH"
4694 (string-append (assoc-ref inputs "sdl-union")
4695 "/include/SDL2:"
4696 (or (getenv "CPATH") "")))
4697 #t))
4698 (add-after 'install 'copy-data
4699 (lambda* (#:key outputs #:allow-other-keys)
4700 (let ((out (assoc-ref outputs "out")))
4701 (copy-recursively "config"
4702 (string-append out "/config"))
4703 (copy-file "doc/examples/servinit.cfg"
4704 (string-append out "/config/servinit.cfg"))
4705 (copy-recursively "data"
4706 (string-append out "/share/redeclipse/data"))
4707 (mkdir-p (string-append out "/lib/redeclipse"))
4708 (symlink (string-append out "/share/redeclipse/data")
4709 (string-append out "/lib/redeclipse/data")))
4710 #t))
4711 (add-after 'copy-data 'wrap-program
4712 (lambda* (#:key inputs outputs #:allow-other-keys)
4713 (let* ((out (assoc-ref outputs "out"))
4714 (bin (string-append out "/bin")))
4715 (with-directory-excursion bin
4716 (rename-file "redeclipse_linux"
4717 ".redeclipse_linux-real")
4718 (rename-file "redeclipse_server_linux"
4719 ".redeclipse_server_linux-real")
4720 (call-with-output-file "redeclipse_linux"
4721 (lambda (port)
4722 (format port "#!~a/bin/sh
4723 # Run the thing from its home, otherwise it just bails out.
4724 cd \"~a\"
4725 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4726 (assoc-ref inputs "bash") ;implicit input
4727 (string-append out)
4728 (string-append bin))))
4729 (call-with-output-file "redeclipse_server_linux"
4730 (lambda (port)
4731 (format port "#!~a/bin/sh
4732 # Run the thing from its home, otherwise it just bails out.
4733 cd \"~a\"
4734 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4735 (assoc-ref inputs "bash") ;implicit input
4736 (string-append out)
4737 (string-append bin))))
4738 (chmod "redeclipse_linux" #o555)
4739 (chmod "redeclipse_server_linux" #o555)))
4740 #t)))))
4741 (native-inputs
4742 `(("pkg-config" ,pkg-config)))
4743 (inputs
4744 `(("curl" ,curl)
4745 ("freetype" ,freetype)
4746 ("glu" ,glu)
4747 ("sdl-union" ,(sdl-union (list sdl2
4748 sdl2-image
4749 sdl2-mixer)))))
4750 (home-page "https://redeclipse.net/")
4751 (synopsis "Arena shooter derived from the Cube 2 engine")
4752 (description
4753 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4754 Offering an innovative parkour system and distinct but all potent weapons,
4755 Red Eclipse provides fast paced and accessible gameplay.")
4756 ;; The engine is under Zlib; data files are covered by the other
4757 ;; licenses. More details at file:///doc/all-licenses.txt.
4758 (license (list license:expat
4759 license:zlib
4760 license:cc-by-sa4.0
4761 license:cc-by-sa3.0
4762 license:cc-by3.0
4763 license:cc0
4764 license:public-domain
4765 license:silofl1.1)))))
4766
4767 (define-public grue-hunter
4768 (package
4769 (name "grue-hunter")
4770 (version "1.0")
4771 (source (origin
4772 (method url-fetch)
4773 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4774 (sha256
4775 (base32
4776 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4777 (build-system trivial-build-system) ; no Makefile.PL
4778 (arguments `(#:modules ((guix build utils))
4779 #:builder
4780 (begin
4781 (use-modules (guix build utils))
4782 (use-modules (srfi srfi-1))
4783
4784 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4785 (perl (string-append (assoc-ref %build-inputs
4786 "perl")
4787 "/bin"))
4788 (gzip (string-append (assoc-ref %build-inputs
4789 "gzip")
4790 "/bin/gzip"))
4791 (tar (string-append (assoc-ref %build-inputs
4792 "tar")
4793 "/bin/tar"))
4794 (out (assoc-ref %outputs "out"))
4795 (bin (string-append out "/bin"))
4796 (doc (string-append out
4797 "/share/doc/grue-hunter")))
4798 (copy-file tarball "grue-hunter.tar.gz")
4799 (invoke gzip "-d" "grue-hunter.tar.gz")
4800 (invoke tar "xvf" "grue-hunter.tar")
4801
4802 (mkdir-p bin)
4803 (copy-file "grue-hunter/gh.pl"
4804 (string-append bin "/grue-hunter"))
4805 (patch-shebang (string-append bin "/grue-hunter")
4806 (list perl))
4807
4808 (install-file "grue-hunter/AGPLv3.txt" doc)
4809
4810 #t))))
4811 (inputs `(("perl" ,perl)
4812 ("tar" ,tar)
4813 ("gzip" ,gzip)
4814 ("tarball" ,source)))
4815 (home-page "https://jxself.org/grue-hunter.shtml")
4816 (synopsis "Text adventure game")
4817 (description
4818 "Grue Hunter is a text adventure game written in Perl. You must make
4819 your way through an underground cave system in search of the Grue. Can you
4820 capture it and get out alive?")
4821 (license license:agpl3+)))
4822
4823 (define-public lierolibre
4824 (package
4825 (name "lierolibre")
4826 (version "0.5")
4827 (source (origin
4828 (method url-fetch)
4829 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4830 version "/+download/lierolibre-"
4831 version ".tar.xz"))
4832 (sha256
4833 (base32
4834 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4835 (patches
4836 (search-patches "lierolibre-check-unaligned-access.patch"
4837 "lierolibre-try-building-other-arch.patch"
4838 "lierolibre-remove-arch-warning.patch"
4839 "lierolibre-newer-libconfig.patch"
4840 "lierolibre-is-free-software.patch"))
4841 (modules '((guix build utils)))
4842 (snippet
4843 '(begin
4844 ;; Delete pre-compiled files.
4845 (delete-file "data/LIERO.CHR")
4846 (delete-file "data/LIERO.SND")
4847 #t))))
4848 (build-system gnu-build-system)
4849 (native-inputs
4850 `(("imagemagick" ,imagemagick)
4851 ("pkg-config" ,pkg-config)
4852 ("util-linux" ,util-linux)
4853 ("sox" ,sox)))
4854 (inputs
4855 `(("boost" ,boost)
4856 ("libconfig" ,libconfig)
4857 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4858 ("zlib" ,zlib)))
4859 (home-page "https://gitlab.com/lierolibre/lierolibre")
4860 (synopsis "Old-school earthworm action game")
4861 (description
4862 "lierolibre is an earthworm action game where you fight another player
4863 (or the computer) underground using a wide array of weapons.
4864
4865 Features:
4866 @itemize
4867 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4868 and Game of Tag, plus AI-players without true intelligence!
4869 @item Dat nostalgia.
4870 @item Extensions via a hidden F1 menu:
4871 @itemize
4872 @item Replays
4873 @item Game controller support
4874 @item Powerlevel palettes
4875 @end itemize
4876 @item Ability to write game variables to plain text files.
4877 @item Ability to load game variables from both EXE and plain text files.
4878 @item Scripts to extract and repack graphics, sounds and levels.
4879 @end itemize
4880
4881 To switch between different window sizes, use F6, F7 and F8, to switch to
4882 fullscreen, use F5 or Alt+Enter.")
4883 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4884 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4885
4886 (define-public tennix
4887 (package
4888 (name "tennix")
4889 (version "1.3.1")
4890 (source
4891 (origin
4892 (method git-fetch)
4893 (uri (git-reference
4894 (url "https://repo.or.cz/tennix.git")
4895 (commit (string-append "tennix-" version))))
4896 (file-name (git-file-name name version))
4897 (sha256
4898 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4899 ;; Remove non-free images.
4900 (modules '((guix build utils)))
4901 (snippet
4902 '(begin
4903 (for-each delete-file
4904 '("data/loc_training_camp.png"
4905 "data/loc_austrian_open.png"
4906 "data/loc_olympic_green_tennis.png"))
4907 #t))))
4908 (build-system gnu-build-system)
4909 (arguments
4910 `(#:tests? #f ;no test
4911 #:phases
4912 (modify-phases %standard-phases
4913 (add-after 'unpack 'fix-include
4914 (lambda _
4915 (substitute* '("src/graphics.h" "src/sound.h")
4916 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
4917 (string-append "#include \"SDL/" header "\"")))
4918 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
4919 (("#include <SDL.h>") "#include <SDL/SDL.h>")
4920 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
4921 #t))
4922 (add-after 'unpack 'locate-install
4923 ;; Build process cannot expand "$(INSTALL)" in Makefile.
4924 (lambda _
4925 (substitute* "makefile"
4926 (("^CONFIGURE_OUTPUT :=.*" all)
4927 (string-append "INSTALL := install -c\n" all)))
4928 #t))
4929 (replace 'configure
4930 ;; The "configure" script is picky about the arguments it
4931 ;; gets. Call it ourselves.
4932 (lambda _
4933 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
4934 (native-inputs
4935 `(("which" ,which)))
4936 (inputs
4937 `(("python" ,python-wrapper)
4938 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
4939 (home-page "http://icculus.org/tennix/")
4940 (synopsis "Play tennis against the computer or a friend")
4941 (description "Tennix is a 2D tennis game. You can play against the
4942 computer or against another player using the keyboard. The game runs
4943 in-window at 640x480 resolution or fullscreen.")
4944 ;; Project is licensed under GPL2+ terms. It includes images
4945 ;; released under Public Domain terms, and SDL_rotozoom, released
4946 ;; under LGPL2.1 terms.
4947 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
4948
4949 (define-public warzone2100
4950 (package
4951 (name "warzone2100")
4952 (version "3.4.1")
4953 (source
4954 (origin
4955 (method url-fetch)
4956 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
4957 version
4958 "/warzone2100_src.tar.xz"))
4959 (sha256
4960 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
4961 (modules '((guix build utils)))
4962 (snippet
4963 '(begin
4964 (with-directory-excursion "3rdparty"
4965 (for-each
4966 delete-file-recursively
4967 '("discord-rpc"
4968 "miniupnp"
4969 "utfcpp")))
4970 #t))))
4971 (build-system cmake-build-system)
4972 (arguments
4973 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
4974 "-DENABLE_DISCORD=off")
4975 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
4976 #:phases
4977 (modify-phases %standard-phases
4978 (add-after 'unpack 'fix-utfcpp-include
4979 (lambda _
4980 (substitute* "lib/framework/wzstring.cpp"
4981 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
4982 #t))
4983 (add-after 'unpack 'link-tests-with-qt
4984 (lambda _
4985 (substitute* "tests/Makefile.am"
4986 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
4987 (string-append prefix "$(QT5_LIBS) ")))
4988 #t))
4989 (add-after 'unpack 'fix-ivis-linktest
4990 (lambda _
4991 (substitute* "tests/ivis_linktest.cpp"
4992 (("iV_DrawTextRotated.*;")
4993 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
4994 "100, 100, 0.0f, font_regular);")))
4995 #t)))))
4996 (native-inputs `(("asciidoc" ,asciidoc)
4997 ("asciidoctor" ,ruby-asciidoctor)
4998 ("gettext" ,gettext-minimal)
4999 ("pkg-config" ,pkg-config)
5000 ("unzip" ,unzip)
5001 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
5002 ("p7zip" ,p7zip)))
5003 (inputs `(("curl" ,curl)
5004 ("fontconfig" ,fontconfig)
5005 ("freetype" ,freetype)
5006 ("glew" ,glew)
5007 ("harfbuzz" ,harfbuzz)
5008 ("libtheora" ,libtheora)
5009 ("libvorbis" ,libvorbis)
5010 ("libxrandr" ,libxrandr)
5011 ("libsodium" ,libsodium)
5012 ("miniupnpc" ,miniupnpc)
5013 ("openal" ,openal)
5014 ("physfs" ,physfs)
5015 ("qtbase" ,qtbase)
5016 ("qtscript" ,qtscript)
5017 ("openssl" ,openssl)
5018 ("sdl2" ,sdl2)
5019 ("utfcpp" ,utfcpp)))
5020 (home-page "https://wz2100.net")
5021 (synopsis "3D Real-time strategy and real-time tactics game")
5022 (description
5023 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
5024 modes. An extensive tech tree with over 400 different technologies, combined
5025 with the unit design system, allows for a wide variety of possible units and
5026 tactics.")
5027 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
5028 (license (list license:bsd-3
5029 license:cc0
5030 license:cc-by-sa3.0
5031 license:expat
5032 license:gpl2+
5033 license:lgpl2.1+))))
5034
5035 (define-public widelands
5036 (package
5037 (name "widelands")
5038 (version "21")
5039 (source
5040 (origin
5041 (method url-fetch)
5042 (uri (string-append "https://launchpad.net/widelands/"
5043 "build" version "/build" version "/+download/"
5044 "widelands-build" version "-source.tar.gz"))
5045 (sha256
5046 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
5047 (modules '((guix build utils)))
5048 (snippet
5049 '(begin
5050 (delete-file-recursively "src/third_party/minizip")
5051 #t))
5052 (patches
5053 ;; Use system Minizip. Patch is provided by Debian, and discussed
5054 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
5055 (search-patches "widelands-system-wide_minizip.patch"))))
5056 (build-system cmake-build-system)
5057 (arguments
5058 `(#:configure-flags
5059 (let* ((out (assoc-ref %outputs "out"))
5060 (share (string-append out "/share")))
5061 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
5062 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
5063 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
5064 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
5065 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
5066 ;; type. When used, no game data is installed!
5067 "-DCMAKE_BUILD_TYPE=Release"))
5068 #:phases
5069 (modify-phases %standard-phases
5070 (add-after 'unpack 'unbundle-fonts
5071 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
5072 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
5073 (lambda* (#:key inputs #:allow-other-keys)
5074 (with-directory-excursion "data/i18n/fonts"
5075 (for-each (lambda (font)
5076 (delete-file-recursively font)
5077 (symlink (string-append (assoc-ref inputs font)
5078 "/share/fonts/truetype")
5079 font))
5080 '("DejaVu" "MicroHei")))
5081 #t)))))
5082 (native-inputs
5083 `(("gettext" ,gettext-minimal)
5084 ("python" ,python-wrapper)))
5085 (inputs
5086 `(("boost" ,boost)
5087 ("glew" ,glew)
5088 ("icu4c" ,icu4c)
5089 ("libpng" ,libpng)
5090 ("minizip" ,minizip)
5091 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5092 ("zlib" ,zlib)
5093 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
5094 ("DejaVu" ,font-dejavu)
5095 ("MicroHei" ,font-wqy-microhei)))
5096 (home-page "https://www.widelands.org/")
5097 (synopsis "Fantasy real-time strategy game")
5098 (description
5099 "In Widelands, you are the regent of a small clan. You start out with
5100 nothing but your headquarters, where all your resources are stored.
5101
5102 In the course of the game, you will build an ever growing settlement. Every
5103 member of your clan will do his or her part to produce more resources---wood,
5104 food, iron, gold and more---to further this growth. The economic network is
5105 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
5106 Frisians).
5107
5108 As you are not alone in the world, you will meet other clans sooner or later.
5109 Some of them may be friendly and you may eventually trade with them. However,
5110 if you want to rule the world, you will have to train soldiers and fight.
5111
5112 Widelands offers single-player mode with different campaigns; the campaigns
5113 all tell stories of tribes and their struggle in the Widelands universe!
5114 However, settling really starts when you unite with friends over the Internet
5115 or LAN to build up new empires together---or to crush each other in the dusts
5116 of war. Widelands also offers an Artificial Intelligence to challenge you.")
5117 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
5118 ;; different licenses.
5119 (license (list license:gpl2+
5120 license:expat ;src/third_party/eris
5121 license:silofl1.1 ;Widelands.ttf
5122 license:cc-by-sa3.0)))) ;some music files
5123
5124 (define-public starfighter
5125 (package
5126 (name "starfighter")
5127 (version "2.4")
5128 (source (origin
5129 (method url-fetch)
5130 (uri (string-append
5131 "https://github.com/pr-starfighter/starfighter/releases"
5132 "/download/v" version "/starfighter-"
5133 version "-src.tar.gz"))
5134 (sha256
5135 (base32
5136 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5137 (build-system gnu-build-system)
5138 (native-inputs
5139 `(("pkg-config" ,pkg-config)))
5140 (inputs
5141 `(("pango" ,pango)
5142 ("sdl2" ,sdl2)
5143 ("sdl2-image" ,sdl2-image)
5144 ("sdl2-mixer" ,sdl2-mixer)
5145 ("sdl2-ttf" ,sdl2-ttf)))
5146 (home-page "https://pr-starfighter.github.io/")
5147 (synopsis "2D scrolling shooter game")
5148 (description
5149 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5150 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5151 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5152 way, you will encounter new foes, make new allies, and assist local rebels
5153 in strikes against the evil corporation.")
5154 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5155 (license (list license:gpl3+
5156 license:cc-by3.0
5157 license:cc-by-sa3.0
5158 license:cc0
5159 license:public-domain))))
5160
5161 (define-public chromium-bsu
5162 (package
5163 (name "chromium-bsu")
5164 (version "0.9.16.1")
5165 (source (origin
5166 (method url-fetch)
5167 (uri (string-append "mirror://sourceforge/chromium-bsu"
5168 "/Chromium B.S.U. source code/"
5169 "chromium-bsu-" version ".tar.gz"))
5170 (sha256
5171 (base32
5172 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5173 (build-system gnu-build-system)
5174 (native-inputs `(("pkg-config" ,pkg-config)))
5175 (inputs `(("gettext" ,gettext-minimal)
5176 ("glu" ,glu)
5177 ("quesoglc" ,quesoglc)
5178 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5179 (home-page "http://chromium-bsu.sourceforge.net/")
5180 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5181 (description
5182 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5183 are responsible for delivering supplies to the troops on the front line. Your
5184 ship has a small fleet of robotic fighters which you control from the relative
5185 safety of the Chromium vessel.")
5186 ;; Clarified Artistic License for everything but sound, which is covered
5187 ;; by the Expat License.
5188 (license (list license:clarified-artistic license:expat))))
5189
5190 (define-public tuxpaint
5191 (package
5192 (name "tuxpaint")
5193 (version "0.9.23") ;keep VER_DATE below in sync
5194 (source
5195 (origin
5196 (method url-fetch)
5197 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5198 version "/tuxpaint-" version ".tar.gz"))
5199 (sha256
5200 (base32
5201 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5202 (modules '((guix build utils)))
5203 (snippet
5204 '(begin
5205 ;; Remove win32 directory which contains binary dll's and the
5206 ;; deprecated visualc directory.
5207 (for-each delete-file-recursively '("win32" "visualc"))
5208 (substitute* "Makefile"
5209 ;; Do not rely on $(GPERF) being an absolute file name
5210 (("\\[ -x \\$\\(GPERF\\) \\]")
5211 "$(GPERF) --version >/dev/null 2>&1"))
5212 #t))
5213 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5214 (build-system gnu-build-system)
5215 (native-inputs
5216 `(("gperf" ,gperf)
5217 ("pkg-config" ,pkg-config)))
5218 (inputs
5219 `(("cairo" ,cairo)
5220 ("fribidi" ,fribidi)
5221 ("gettext" ,gettext-minimal)
5222 ("libpng" ,libpng)
5223 ("librsvg" ,librsvg)
5224 ("libpaper" ,libpaper)
5225 ("netpbm" ,netpbm)
5226 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5227 ;; TODO: Use system fonts rather than those in data/fonts
5228 (arguments
5229 `(#:make-flags `("VER_DATE=2018-09-02"
5230 "GPERF=gperf" "CC=gcc"
5231 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5232 ,(string-append "PREFIX=" %output)
5233 "KDE_PREFIX=$(PREFIX)/share/applications"
5234 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5235 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5236 #:parallel-build? #f ;fails on some systems
5237 #:tests? #f ;No tests
5238 #:phases (modify-phases %standard-phases
5239 (delete 'configure) ;no configure phase
5240 (add-before 'install 'no-sys-cache
5241 (lambda _ ;do not rebuild system conf cache
5242 (substitute* "Makefile"
5243 (("kbuildsycoca4") ""))
5244 #t))
5245 (add-after 'install 'fix-import
5246 (lambda* (#:key inputs outputs #:allow-other-keys)
5247 (let* ((out (assoc-ref outputs "out"))
5248 (net (assoc-ref inputs "netpbm"))
5249 (tpi (string-append out "/bin/tuxpaint-import")))
5250 (substitute* tpi
5251 ;; Point to installation prefix so that the default
5252 ;; configure file is found.
5253 (("/usr/local") out))
5254 ;; tuxpaint-import uses a bunch of programs from
5255 ;; netpbm, so make sure it knows where those are
5256 (wrap-program tpi
5257 `("PATH" ":" prefix
5258 (,(string-append net "/bin"))))))))))
5259 (native-search-paths
5260 (list (search-path-specification
5261 (variable "TUXPAINT_STAMPS_PATH")
5262 (files '("share/tuxpaint/stamps")))))
5263 (home-page "http://www.tuxpaint.org")
5264 (synopsis "Drawing software for children")
5265 (description
5266 "Tux Paint is a free drawing program designed for young children (kids
5267 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5268 and an encouraging cartoon mascot who helps guide children as they use the
5269 program. It provides a blank canvas and a variety of drawing tools to help
5270 your child be creative.")
5271 (license license:gpl2+)))
5272
5273 (define-public tuxpaint-stamps
5274 (package
5275 (name "tuxpaint-stamps")
5276 (version "2018.09.01")
5277 (source
5278 (origin
5279 (method url-fetch)
5280 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5281 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5282 "/tuxpaint-stamps-" version ".tar.gz"))
5283 (sha256
5284 (base32
5285 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5286 (build-system trivial-build-system)
5287 (native-inputs
5288 `(("tar" ,tar)
5289 ("gzip" ,gzip)))
5290 (arguments
5291 `(#:modules ((guix build utils))
5292 #:builder (begin
5293 (use-modules (guix build utils))
5294 (setenv "PATH"
5295 (string-append
5296 (assoc-ref %build-inputs "tar") "/bin" ":"
5297 (assoc-ref %build-inputs "gzip") "/bin"))
5298 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5299 (chdir (string-append ,name "-" ,version))
5300 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5301 (mkdir-p dir)
5302 (copy-recursively "stamps" dir))
5303 #t)))
5304 (home-page (package-home-page tuxpaint))
5305 (synopsis "Stamp images for Tux Paint")
5306 (description
5307 "This package contains a set of \"Rubber Stamp\" images which can be used
5308 with the \"Stamp\" tool within Tux Paint.")
5309 (license license:gpl2+)))
5310
5311 (define-public tuxpaint-config
5312 (package
5313 (name "tuxpaint-config")
5314 (version "0.0.14") ;keep VER_DATE below in sync
5315 (source
5316 (origin
5317 (method url-fetch)
5318 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5319 version "/tuxpaint-config-" version ".tar.gz"))
5320 (sha256
5321 (base32
5322 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5323 (build-system gnu-build-system)
5324 (native-inputs
5325 `(("gettext" ,gettext-minimal)))
5326 (inputs
5327 `(("fltk" ,fltk)
5328 ("libpaper" ,libpaper)
5329 ;; TODO: Should the following be propagated by fltk?
5330 ("libx11" ,libx11)
5331 ("libxft" ,libxft)
5332 ("mesa" ,mesa)))
5333 (arguments
5334 `(#:make-flags `("VER_DATE=2018-09-01"
5335 "CONFDIR=/etc/tuxpaint" ;don't write to store
5336 ,(string-append "PREFIX=" %output)
5337 "GNOME_PREFIX=$(PREFIX)")
5338 #:parallel-build? #f ;race conditions
5339 #:tests? #f ;no tests
5340 #:phases (modify-phases %standard-phases
5341 (delete 'configure) ;no configure phase
5342 (add-before 'install 'gzip-no-name
5343 (lambda* _
5344 (substitute* "Makefile"
5345 ;; tuxpaint-config compresses its own documentation;
5346 ;; make sure it uses flags for reproducibility.
5347 (("gzip") "gzip --no-name"))))
5348 (add-before 'install 'make-install-dirs
5349 (lambda* (#:key outputs #:allow-other-keys)
5350 (let ((out (assoc-ref outputs "out")))
5351 (mkdir-p (string-append out "/bin"))
5352 #t))))))
5353 (home-page (package-home-page tuxpaint))
5354 (synopsis "Configure Tux Paint")
5355 (description
5356 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5357 (license license:gpl2))) ;no "or later" present
5358
5359 (define-public supertux
5360 (package
5361 (name "supertux")
5362 (version "0.6.2")
5363 (source (origin
5364 (method url-fetch)
5365 (uri (string-append "https://github.com/SuperTux/supertux/"
5366 "releases/download/v" version "/SuperTux-v"
5367 version "-Source.tar.gz"))
5368 (file-name (string-append name "-" version ".tar.gz"))
5369 (sha256
5370 (base32
5371 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5372 (patches
5373 (search-patches "supertux-unbundle-squirrel.patch"))))
5374 (arguments
5375 '(#:tests? #f
5376 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5377 "-DUSE_SYSTEM_PHYSFS=ON")
5378 #:phases
5379 (modify-phases %standard-phases
5380 (add-after 'unpack 'patch-squirrel-path
5381 (lambda* (#:key inputs #:allow-other-keys)
5382 (let ((squirrel (assoc-ref inputs "squirrel")))
5383 (substitute* "CMakeLists.txt"
5384 (("set\\(SQUIRREL_PREFIX.*")
5385 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5386 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5387 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5388 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5389 #t)))))
5390 (build-system cmake-build-system)
5391 (inputs `(("sdl2" ,sdl2)
5392 ("sdl2-image" ,sdl2-image)
5393 ("sdl2-mixer" ,sdl2-mixer)
5394 ("openal" ,openal)
5395 ("mesa" ,mesa)
5396 ("glew" ,glew)
5397 ("libvorbis" ,libvorbis)
5398 ("libogg" ,libogg)
5399 ("physfs" ,physfs)
5400 ("curl" ,curl)
5401 ("boost" ,boost)
5402 ("freetype" ,freetype)
5403 ("squirrel" ,squirrel)))
5404 (native-inputs
5405 `(("pkg-config" ,pkg-config)))
5406 (synopsis "2D platformer game")
5407 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5408 a style similar to the original Super Mario games.")
5409 (home-page "https://supertux.org/")
5410 (license license:gpl3+)))
5411
5412 (define-public tintin++
5413 (package
5414 (name "tintin++")
5415 (version "2.02.05")
5416 (source
5417 (origin
5418 (method url-fetch)
5419 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5420 (string-drop-right version 1)
5421 "/tintin-" version ".tar.gz"))
5422 (sha256
5423 (base32 "18fm9ga08mxqmblahmnlzwnl387i8mbkj4n0gffxc91d299019v3"))))
5424 (inputs
5425 `(("gnutls" ,gnutls)
5426 ("pcre" ,pcre)
5427 ("readline" ,readline)
5428 ("zlib" ,zlib)))
5429 (arguments
5430 '(#:tests? #f ; no test suite
5431 #:phases
5432 (modify-phases %standard-phases
5433 ;; The source is in tt/src.
5434 (add-before 'configure 'chdir
5435 (lambda _
5436 (chdir "src")
5437 #t)))))
5438 (build-system gnu-build-system)
5439 (home-page "https://tintin.mudhalla.net/")
5440 (synopsis "MUD client")
5441 (description
5442 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5443 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5444 options used by MUDs, as well as those required to login via telnet on
5445 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5446 (license license:gpl3+)))
5447
5448 (define-public laby
5449 (package
5450 (name "laby")
5451 (version "0.7.0")
5452 (source
5453 (origin (method git-fetch)
5454 (uri (git-reference
5455 (url "https://github.com/sgimenez/laby")
5456 (commit (string-append name "-" version))))
5457 (file-name (git-file-name name version))
5458 (sha256
5459 (base32
5460 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5461 (patches (search-patches "laby-make-install.patch"))))
5462 (build-system gnu-build-system)
5463 (inputs
5464 `(("lablgtk" ,lablgtk)
5465 ("ocaml" ,ocaml)
5466 ("ocaml-findlib" ,ocaml-findlib)
5467 ("ocamlbuild" ,ocamlbuild)))
5468 (arguments
5469 '(#:phases
5470 (modify-phases %standard-phases
5471 (delete 'configure)
5472 (add-before 'build 'allow-unsafe-strings
5473 ;; Fix a build failure with ocaml >=4.06.0.
5474 ;; See <https://github.com/sgimenez/laby/issues/53>.
5475 (lambda _
5476 (setenv "OCAMLPARAM" "safe-string=0,_")
5477 #t))
5478 (add-before 'build 'set-library-path
5479 (lambda* (#:key inputs #:allow-other-keys)
5480 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5481 (setenv "LD_LIBRARY_PATH"
5482 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5483 #:tests? #f ; no 'check' target
5484 #:make-flags
5485 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5486 (home-page "https://sgimenez.github.io/laby/")
5487 (synopsis "Programming game")
5488 (description "Learn programming, playing with ants and spider webs ;-)
5489 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5490 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5491 programmers may also add their own favorite language.")
5492 (license license:gpl3+)))
5493
5494 (define-public bambam
5495 (package
5496 (name "bambam")
5497 (version "1.0.0")
5498 (source
5499 (origin
5500 (method git-fetch)
5501 (uri (git-reference
5502 (url "https://github.com/porridge/bambam")
5503 (commit (string-append "v" version))))
5504 (file-name (git-file-name name version))
5505 (sha256
5506 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5507 (build-system python-build-system)
5508 (arguments
5509 `(#:tests? #f ; no tests
5510 #:phases
5511 (modify-phases %standard-phases
5512 (delete 'build) ; nothing to build
5513 (replace 'install
5514 (lambda* (#:key outputs #:allow-other-keys)
5515 (let* ((out (assoc-ref outputs "out"))
5516 (bin (string-append out "/bin"))
5517 (share (string-append out "/share")))
5518 (mkdir-p bin)
5519 (copy-file "bambam.py" (string-append bin "/bambam"))
5520 (install-file "bambam.6" (string-append share "/man/man6"))
5521 (copy-recursively "data" (string-append share "/bambam/data")))
5522 #t)))))
5523 (inputs
5524 `(("python-pygame" ,python-pygame)))
5525 (home-page "https://github.com/porridge/bambam")
5526 (synopsis "Keyboard mashing and doodling game for babies")
5527 (description "Bambam is a simple baby keyboard (and gamepad) masher
5528 application that locks the keyboard and mouse and instead displays bright
5529 colors, pictures, and sounds.")
5530 (license license:gpl3+)))
5531
5532 (define-public mrrescue
5533 (package
5534 (name "mrrescue")
5535 (version "1.02e")
5536 (source (origin
5537 (method url-fetch)
5538 (uri (string-append
5539 "https://github.com/SimonLarsen/mrrescue/releases/"
5540 "download/" version "/mrrescue" version ".love"))
5541 (file-name (string-append name "-" version ".love"))
5542 (sha256
5543 (base32
5544 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5545 (build-system trivial-build-system)
5546 (arguments
5547 `(#:modules ((guix build utils))
5548 #:builder
5549 (begin
5550 (use-modules (guix build utils))
5551 (let* ((out (assoc-ref %outputs "out"))
5552 (script (string-append out "/bin/" ,name))
5553 (data (string-append out "/share/" ,name))
5554 (source (assoc-ref %build-inputs "source"))
5555 (unzip (string-append (assoc-ref %build-inputs "unzip")
5556 "/bin/unzip"))
5557 (patch (string-append (assoc-ref %build-inputs "patch")
5558 "/bin/patch"))
5559 (bash (string-append (assoc-ref %build-inputs "bash")
5560 "/bin/bash"))
5561 (love (string-append (assoc-ref %build-inputs "love")
5562 "/bin/love")))
5563
5564 (mkdir-p (dirname script))
5565 (with-output-to-file script
5566 (lambda ()
5567 (format #t "#!~a~%" bash)
5568 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5569 (chmod script #o755)
5570
5571 ;; The better way to package this game would be to install *only* the
5572 ;; script above, pointing to the unextracted .love file in the store.
5573 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5574 ;; Instead of extracting the .love file, patching it, and re-zipping
5575 ;; it to the store, simply point the script to the extracted patched
5576 ;; data directory directly.
5577 (mkdir-p data)
5578 (with-directory-excursion data
5579 (invoke unzip source)
5580 (invoke patch "-p1" "-i"
5581 (assoc-ref %build-inputs "love-11.patch")))
5582 #t))))
5583 (native-inputs
5584 `(("unzip" ,unzip)
5585 ("patch" ,patch)
5586 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5587 (inputs
5588 `(("bash" ,bash)
5589 ("love" ,love)))
5590 (home-page "https://tangramgames.dk/games/mrrescue")
5591 (synopsis "Arcade-style fire fighting game")
5592 (description
5593 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5594 civilians from burning buildings. The game features fast-paced fire
5595 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5596 throwing people around in pseudo-randomly generated buildings.")
5597 (license (list license:zlib ; for source code
5598 license:cc-by-sa3.0)))) ; for graphics and music assets
5599
5600 (define-public hyperrogue
5601 (package
5602 (name "hyperrogue")
5603 (version "11.3a")
5604 ;; When updating this package, be sure to update the "hyperrogue-data"
5605 ;; origin in native-inputs.
5606 (source (origin
5607 (method url-fetch)
5608 (uri (string-append
5609 "https://www.roguetemple.com/z/hyper/hyperrogue"
5610 (string-join (string-split version #\.) "")
5611 "-src.tgz"))
5612 (sha256
5613 (base32
5614 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5615 (build-system gnu-build-system)
5616 (arguments
5617 `(#:tests? #f ; no check target
5618 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5619 "HYPERROGUE_USE_PNG=1")
5620 #:phases
5621 (modify-phases %standard-phases
5622 (add-after 'set-paths 'set-sdl-paths
5623 (lambda* (#:key inputs #:allow-other-keys)
5624 (setenv "CPATH"
5625 (string-append (or (getenv "CPATH") "") ":"
5626 (assoc-ref inputs "sdl-union")
5627 "/include/SDL"))))
5628 (replace 'configure
5629 (lambda* (#:key inputs outputs #:allow-other-keys)
5630 (let* ((out (assoc-ref outputs "out"))
5631 (share-dir (string-append out "/share/hyperrogue"))
5632 (dejavu-dir (string-append
5633 (assoc-ref inputs "font-dejavu")
5634 "/share/fonts/truetype"))
5635 (dejavu-font "DejaVuSans-Bold.ttf")
5636 (music-file "hyperrogue-music.txt"))
5637 ;; Fix font and music paths.
5638 (substitute* "basegraph.cpp"
5639 ((dejavu-font)
5640 (string-append dejavu-dir "/" dejavu-font)))
5641 (substitute* music-file
5642 (("\\*/")
5643 (string-append share-dir "/sounds/")))
5644 (substitute* "sound.cpp"
5645 (("musicfile = \"\"")
5646 (string-append "musicfile = \""
5647 share-dir "/" music-file "\"")))
5648 ;; Disable build machine CPU optimizations and warnings treated
5649 ;; as errors.
5650 (substitute* "Makefile"
5651 (("-march=native") "")
5652 (("-Werror") "")))
5653 #t))
5654 (replace 'install
5655 (lambda* (#:key inputs outputs #:allow-other-keys)
5656 (let* ((out (assoc-ref outputs "out"))
5657 (bin (string-append out "/bin"))
5658 (share-dir (string-append out "/share/hyperrogue")))
5659 (mkdir-p bin)
5660 (install-file "hyperrogue" bin)
5661 (install-file "hyperrogue-music.txt" share-dir))
5662 #t))
5663 (add-after 'install 'install-data
5664 (lambda* (#:key inputs outputs #:allow-other-keys)
5665 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5666 (out (assoc-ref outputs "out"))
5667 (sounds (string-append out "/share/hyperrogue/sounds"))
5668 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5669 ;; Extract media license information into sounds directory.
5670 (invoke unzip "-j" data
5671 (string-append
5672 "hyperrogue"
5673 (string-join (string-split ,version #\.) "")
5674 "/sounds/credits.txt") "-d" sounds)
5675 ;; Extract sounds and music into sounds directory.
5676 (invoke "unzip" "-j" data
5677 (string-append
5678 "hyperrogue"
5679 (string-join (string-split ,version #\.) "")
5680 "/*.ogg") "-d" sounds)))))))
5681 (native-inputs
5682 `(("hyperrogue-data"
5683 ,(origin
5684 (method url-fetch)
5685 (uri
5686 (string-append
5687 "https://www.roguetemple.com/z/hyper/hyperrogue"
5688 (string-join (string-split version #\.) "")
5689 "-win.zip"))
5690 (sha256
5691 (base32
5692 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5693 ("unzip" ,unzip)))
5694 (inputs
5695 `(("font-dejavu" ,font-dejavu)
5696 ("glew" ,glew)
5697 ("libpng" ,libpng)
5698 ("sdl-union" ,(sdl-union (list sdl
5699 sdl-gfx
5700 sdl-mixer
5701 sdl-ttf)))))
5702 (home-page "https://www.roguetemple.com/z/hyper/")
5703 (synopsis "Non-euclidean graphical rogue-like game")
5704 (description
5705 "HyperRogue is a game in which the player collects treasures and fights
5706 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5707 plane and not in euclidean space.
5708
5709 In HyperRogue, the player can move through different parts of the world, which
5710 are home to particular creatures and may be subject to their own rules of
5711 \"physics\".
5712
5713 While the game can use ASCII characters to display the the classical rogue
5714 symbols, it still needs graphics to render the non-euclidean world.")
5715 (license (list license:bsd-3 ; glew.c, mtrand.*
5716 license:cc-by-sa3.0 ; music
5717 license:cc-by-sa4.0 ; sounds
5718 license:cc0
5719 license:public-domain ; direntx.*, some sounds
5720 license:zlib ; savepng.*
5721 license:gpl2+)))) ; remaining files
5722
5723 (define-public kobodeluxe
5724 (package
5725 (name "kobodeluxe")
5726 (version "0.5.1")
5727 (source (origin
5728 (method url-fetch)
5729 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5730 version ".tar.bz2"))
5731 (sha256
5732 (base32
5733 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5734 (patches (search-patches
5735 "kobodeluxe-const-charp-conversion.patch"
5736 "kobodeluxe-enemies-pipe-decl.patch"
5737 "kobodeluxe-graphics-window-signed-char.patch"
5738 "kobodeluxe-manpage-minus-not-hyphen.patch"
5739 "kobodeluxe-midicon-segmentation-fault.patch"
5740 "kobodeluxe-paths.patch"))))
5741 (build-system gnu-build-system)
5742 (arguments
5743 '(#:configure-flags
5744 (list (string-append "CPPFLAGS=-I"
5745 (assoc-ref %build-inputs "sdl-union")
5746 "/include/SDL"))))
5747 (inputs
5748 `(("glu" ,glu)
5749 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5750 (synopsis "Shooter with space station destruction")
5751 (description
5752 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5753 for Un*x systems with X11.")
5754 (home-page "http://olofson.net/kobodl/")
5755 (license license:gpl2+)))
5756
5757 (define-public freeciv
5758 (package
5759 (name "freeciv")
5760 (version "2.6.3")
5761 (source
5762 (origin
5763 (method url-fetch)
5764 (uri (list (string-append
5765 "http://files.freeciv.org/stable/freeciv-"
5766 version ".tar.bz2")
5767 (string-append
5768 "mirror://sourceforge/freeciv/Freeciv%20"
5769 (version-major+minor version) "/" version
5770 "/freeciv-" version ".tar.bz2")))
5771 (sha256
5772 (base32 "1lgq7wcbhwpy2yqdw4biwfmp5q8fh7lhlwxcgm0fpaapfl12whvp"))))
5773 (build-system gnu-build-system)
5774 (inputs
5775 `(("curl" ,curl)
5776 ("cyrus-sasl" ,cyrus-sasl)
5777 ("gtk+" ,gtk+)
5778 ("sdl-mixer" ,sdl-mixer)
5779 ("zlib" ,zlib)))
5780 (native-inputs
5781 `(("pkg-config" ,pkg-config)))
5782 (home-page "http://www.freeciv.org/")
5783 (synopsis "Turn-based empire building strategy game")
5784 (description "Freeciv is a turn-based empire building strategy game
5785 inspired by the history of human civilization. The game commences in
5786 prehistory and your mission is to lead your tribe from the Stone Age
5787 into the Space Age.")
5788 (license license:gpl2+)))
5789
5790 (define-public no-more-secrets
5791 (package
5792 (name "no-more-secrets")
5793 (version "0.3.3")
5794 (source
5795 (origin
5796 (method git-fetch)
5797 (uri (git-reference
5798 (url "https://github.com/bartobri/no-more-secrets")
5799 (commit (string-append "v" version))))
5800 (file-name (git-file-name name version))
5801 (sha256
5802 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5803 (build-system gnu-build-system)
5804 (arguments
5805 `(#:tests? #f
5806 #:make-flags (list "CC=gcc" "all-ncurses"
5807 (string-append "prefix="
5808 (assoc-ref %outputs "out")))
5809 #:phases
5810 (modify-phases %standard-phases
5811 (delete 'configure))))
5812 (inputs
5813 `(("ncurses" ,ncurses)))
5814 (home-page "https://github.com/bartobri/no-more-secrets")
5815 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5816 (description
5817 "@code{No More Secrets} provides a command line tool called \"nms\"
5818 that recreates the famous data decryption effect seen on screen in the 1992
5819 movie \"Sneakers\".
5820
5821 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5822 it will apply the hollywood effect, initially showing encrypted data, then
5823 starting a decryption sequence to reveal the original plaintext characters.")
5824 (license license:expat)))
5825
5826 (define-public megaglest-data
5827 (package
5828 (name "megaglest-data")
5829 (version "3.13.0")
5830 (source
5831 (origin
5832 (method url-fetch)
5833 (uri (string-append
5834 "https://github.com/MegaGlest/megaglest-data"
5835 "/releases/download/" version "/megaglest-data-"
5836 version ".tar.xz"))
5837 (sha256
5838 (base32
5839 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5840 (build-system cmake-build-system)
5841 (arguments
5842 `(#:tests? #f))
5843 (home-page "https://megaglest.org/")
5844 (synopsis "Data files for MegaGlest")
5845 (description "This package contains the data files required for MegaGlest.")
5846 (license license:cc-by-sa3.0)))
5847
5848 (define-public megaglest
5849 (package
5850 (name "megaglest")
5851 (version "3.13.0")
5852 (source
5853 (origin
5854 (method url-fetch)
5855 (uri (string-append
5856 "https://github.com/MegaGlest/megaglest-source"
5857 "/releases/download/" version "/megaglest-source-"
5858 version ".tar.xz"))
5859 (sha256
5860 (base32
5861 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5862 (build-system cmake-build-system)
5863 (inputs
5864 `(("curl" ,curl)
5865 ("fontconfig" ,fontconfig)
5866 ("ftgl" ,ftgl)
5867 ("glew" ,glew)
5868 ("libjpeg-turbo" ,libjpeg-turbo)
5869 ("megaglest-data" ,megaglest-data)
5870 ("mesa" ,mesa)
5871 ("miniupnpc" ,miniupnpc)
5872 ("openal" ,openal)
5873 ("libircclient" ,libircclient)
5874 ("libpng" ,libpng)
5875 ("libvorbis" ,libvorbis)
5876 ("lua" ,lua)
5877 ("sdl2" ,sdl2)
5878 ("wxwidgets" ,wxwidgets)))
5879 (native-inputs
5880 `(("cppunit" ,cppunit)
5881 ("pkg-config" ,pkg-config)))
5882 (arguments
5883 `(#:configure-flags
5884 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5885 (assoc-ref %build-inputs "megaglest-data")
5886 "/share/megaglest")
5887 "-DBUILD_MEGAGLEST_TESTS=ON")
5888 #:phases
5889 (modify-phases %standard-phases
5890 (add-after 'unpack 'fix-ini-search-path
5891 (lambda* (#:key outputs #:allow-other-keys)
5892 (substitute* "source/glest_game/global/config.cpp"
5893 (("/usr/share/megaglest/")
5894 (string-append (assoc-ref outputs "out")
5895 "/share/megaglest/"))))))
5896 #:test-target "megaglest_tests"))
5897 (home-page "https://megaglest.org/")
5898 (synopsis "3D real-time strategy (RTS) game")
5899 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5900 game, where you control the armies of one of seven different factions: Tech,
5901 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5902 (license license:gpl2+)))
5903
5904 (define-public freegish
5905 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5906 (revision "1"))
5907 (package
5908 (name "freegish")
5909 (version (string-append "0-" revision "." (string-take commit 9)))
5910 (source (origin
5911 (method git-fetch)
5912 (uri (git-reference
5913 (url "https://github.com/freegish/freegish")
5914 (commit commit)))
5915 (file-name (git-file-name name version))
5916 (sha256
5917 (base32
5918 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
5919 (modules '((guix build utils)))
5920 ;; The audio files in the "music" directory are licensed under
5921 ;; CC-BY-NC, so we delete them.
5922 (snippet
5923 '(begin
5924 (delete-file-recursively "music")
5925 #t))))
5926 (build-system cmake-build-system)
5927 (arguments
5928 `(#:tests? #f ; no tests included
5929 #:configure-flags
5930 (list "-DCMAKE_INSTALL_FHS=ON")
5931 #:phases
5932 (modify-phases %standard-phases
5933 (add-after 'unpack 'set-DATAPATH
5934 (lambda* (#:key outputs #:allow-other-keys)
5935 (substitute* "CMakeLists.txt"
5936 (("^option\\(INSTALL_FHS" line)
5937 (string-append "add_definitions(-DDATAPATH=\""
5938 (assoc-ref outputs "out") "/share/freegish\")\n"
5939 line)))
5940 #t)))))
5941 (inputs
5942 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
5943 ("openal" ,openal)
5944 ("libvorbis" ,libvorbis)
5945 ("libogg" ,libogg)
5946 ("mesa" ,mesa)
5947 ("libpng" ,libpng)
5948 ("zlib" ,zlib)))
5949 (home-page "https://github.com/freegish/freegish")
5950 (synopsis "Side-scrolling physics platformer with a ball of tar")
5951 (description "In FreeGish you control Gish, a ball of tar who lives
5952 happily with his girlfriend Brea, until one day a mysterious dark creature
5953 emerges from a sewer hole and pulls her below ground.")
5954 ;; The textures are available under the Expat license. All other assets
5955 ;; (including levels) are covered under CC-BY-SA or public domain. The
5956 ;; source code is under GPLv2+.
5957 (license (list license:gpl2+
5958 license:expat
5959 license:public-domain
5960 license:cc-by-sa3.0)))))
5961
5962 (define-public cdogs-sdl
5963 (package
5964 (name "cdogs-sdl")
5965 (version "0.8.0")
5966 (source
5967 (origin
5968 (method git-fetch)
5969 (uri (git-reference
5970 (url "https://github.com/cxong/cdogs-sdl")
5971 (commit version)))
5972 (file-name (git-file-name name version))
5973 (sha256
5974 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
5975 (build-system cmake-build-system)
5976 (arguments
5977 `(#:configure-flags
5978 (list (string-append "-DCDOGS_DATA_DIR="
5979 (assoc-ref %outputs "out")
5980 "/share/cdogs-sdl/"))))
5981 (native-inputs
5982 `(("pkg-config" ,pkg-config)))
5983 (inputs
5984 `(("gtk+" ,gtk+)
5985 ("mesa" ,mesa)
5986 ("sdl2" ,sdl2)
5987 ("sdl2-image" ,sdl2-image)
5988 ("sdl2-mixer" ,sdl2-mixer)))
5989 (home-page "https://cxong.github.io/cdogs-sdl/")
5990 (synopsis "Classic overhead run-and-gun game")
5991 (description "C-Dogs SDL is a classic overhead run-and-gun game,
5992 supporting up to 4 players in co-op and deathmatch modes. Customize your
5993 player, choose from many weapons, and blast, slide and slash your way through
5994 over 100 user-created campaigns.")
5995 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
5996 ;; CC0/CC-BY/CC-BY-SA for assets.
5997 (license (list license:gpl2+
5998 license:bsd-2
5999 license:bsd-3
6000 license:cc0
6001 license:cc-by3.0
6002 license:cc-by-sa3.0))))
6003
6004 (define-public kiki
6005 (package
6006 (name "kiki")
6007 (version "1.0.2")
6008 (source (origin
6009 (method url-fetch)
6010 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
6011 version "/kiki-" version "-src.tgz"))
6012 (sha256
6013 (base32
6014 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
6015 (modules '((guix build utils)))
6016 (snippet
6017 '(begin
6018 (for-each delete-file (find-files "." "\\.dll$"))
6019 #t))
6020 (patches
6021 (search-patches "kiki-level-selection-crash.patch"
6022 "kiki-makefile.patch"
6023 "kiki-missing-includes.patch"
6024 "kiki-portability-64bit.patch"))))
6025 (build-system gnu-build-system)
6026 (arguments
6027 `(#:tests? #f ; there are no tests
6028 #:make-flags '("CXX=g++")
6029 #:phases
6030 (modify-phases %standard-phases
6031 (replace 'configure
6032 (lambda* (#:key inputs outputs #:allow-other-keys)
6033 (setenv "CPLUS_INCLUDE_PATH"
6034 (string-append (assoc-ref inputs "sdl-union")
6035 "/include/SDL:"
6036 (assoc-ref inputs "python")
6037 "/include/python2.7:"
6038 (or (getenv "CPLUS_INCLUDE_PATH") "")))
6039 (substitute* "src/main/main.cpp"
6040 (("#include <SDL.h>" line)
6041 (string-append line "
6042 #define K_INCLUDE_GLUT
6043 #include \"KIncludeTools.h\""))
6044 (("// initialize SDL" line)
6045 (string-append "glutInit(&argc,argv);\n" line)))
6046 (substitute* "src/main/KikiController.cpp"
6047 (("getenv\\(\"KIKI_HOME\"\\)")
6048 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
6049 (substitute* "linux/Makefile"
6050 (("CXXOPTS =" line)
6051 (string-append line " -fpermissive"))
6052 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
6053 (("PYTHONHOME =.*")
6054 (string-append "PYTHONHOME = "
6055 (assoc-ref inputs "python")
6056 "/lib/python2.7/"))
6057 (("\\$\\(GLLIBS\\)" line)
6058 (string-append line " -lm -lpython2.7")))
6059 (substitute* "src/main/KikiPythonWidget.h"
6060 (("#define __KikiPythonWidget" line)
6061 (string-append line "\n#include \"KikiPython.h\"")))
6062 #t))
6063 (add-before 'build 'build-kodilib
6064 (lambda* (#:key make-flags #:allow-other-keys)
6065 (with-directory-excursion "kodilib/linux"
6066 (apply invoke "make" make-flags))))
6067 (add-after 'build-kodilib 'chdir
6068 (lambda _ (chdir "linux") #t))
6069 (replace 'install
6070 (lambda* (#:key outputs #:allow-other-keys)
6071 (let* ((out (assoc-ref outputs "out"))
6072 (bin (string-append out "/bin"))
6073 (share (string-append out "/share/kiki")))
6074 (mkdir-p bin)
6075 (mkdir-p share)
6076 (install-file "kiki" bin)
6077 (copy-recursively "../py" (string-append share "/py"))
6078 (copy-recursively "../sound" (string-append share "/sound"))
6079 #t))))))
6080 (inputs
6081 `(("glu" ,glu)
6082 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
6083 ("freeglut" ,freeglut-2.8)
6084 ("sdl-union" ,(sdl-union (list sdl
6085 sdl-mixer
6086 sdl-image)))
6087 ("python" ,python-2)))
6088 (native-inputs
6089 `(("swig" ,swig)))
6090 (home-page "http://kiki.sourceforge.net/")
6091 (synopsis "3D puzzle game")
6092 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
6093 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
6094 small robot living in the nano world, repair its maker.")
6095 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
6096 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
6097 ;; for a statement from the author.
6098 (license license:public-domain)))
6099
6100 (define-public teeworlds
6101 (package
6102 (name "teeworlds")
6103 (version "0.7.5")
6104 (source (origin
6105 (method git-fetch)
6106 (uri (git-reference
6107 (url "https://github.com/teeworlds/teeworlds")
6108 (commit version)
6109 ;; There are two submodules in datasrc/{languages,maps}
6110 (recursive? #t)))
6111 (file-name (git-file-name name version))
6112 (sha256
6113 (base32
6114 "1l19ksmimg6b8zzjy0skyhh7z11ql7n5gvilkv7ay5x2b9ndbqwz"))
6115 (modules '((guix build utils)
6116 (ice-9 ftw)
6117 (ice-9 regex)
6118 (srfi srfi-1)
6119 (srfi srfi-26)))
6120 (snippet ; remove bundled libraries except md5
6121 '(let ((base-dir "src/engine/external/"))
6122 (for-each (compose (cut delete-file-recursively <>)
6123 (cut string-append base-dir <>))
6124 (remove (cut string-match "(^.)|(^md5$)" <>)
6125 (scandir base-dir)))
6126 #t))))
6127 (build-system cmake-build-system)
6128 (arguments
6129 `(#:tests? #f ; no tests included
6130 #:phases
6131 (modify-phases %standard-phases
6132 (add-after 'unpack 'patch-paths
6133 (lambda* (#:key outputs #:allow-other-keys)
6134 ;; Embed path to assets.
6135 (substitute* "src/engine/shared/storage.cpp"
6136 (("#define DATA_DIR.*")
6137 (string-append "#define DATA_DIR \""
6138 (assoc-ref outputs "out")
6139 "/share/teeworlds/data"
6140 "\"")))
6141 #t)))))
6142 (inputs
6143 `(("freetype" ,freetype)
6144 ("glu" ,glu)
6145 ("json-parser" ,json-parser)
6146 ("mesa" ,mesa)
6147 ("pnglite" ,pnglite)
6148 ("sdl2" ,sdl2)
6149 ("sdl2-image" ,sdl2-image)
6150 ("sdl2-mixer" ,sdl2-mixer)
6151 ("wavpack" ,wavpack)
6152 ("openssl" ,openssl)
6153 ("zlib" ,zlib)))
6154 (native-inputs
6155 `(("python" ,python-wrapper)
6156 ("pkg-config" ,pkg-config)))
6157 (home-page "https://www.teeworlds.com")
6158 (synopsis "2D retro multiplayer shooter game")
6159 (description "Teeworlds is an online multiplayer game. Battle with up to
6160 16 players in a variety of game modes, including Team Deathmatch and Capture
6161 The Flag. You can even design your own maps!")
6162 (license (list license:bsd-3 license:cc-by-sa3.0)))) ; game+maps&languages
6163
6164 (define-public enigma
6165 (package
6166 (name "enigma")
6167 (version "1.21")
6168 (source (origin
6169 (method url-fetch)
6170 (uri (string-append "mirror://sourceforge/enigma-game/"
6171 "Release%20" version "/enigma-"
6172 version ".tar.gz"))
6173 (sha256
6174 (base32
6175 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6176 (build-system gnu-build-system)
6177 (arguments
6178 `(#:configure-flags
6179 (list "--with-system-enet")
6180 #:phases
6181 (modify-phases %standard-phases
6182 (add-after 'unpack 'fix-build-with-new-gcc
6183 (lambda _
6184 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6185 ;; to NULL. Can be removed for versions > 1.21.
6186 (substitute* "src/lev/Proxy.cc"
6187 (("ifs != NULL")
6188 "ifs"))
6189 #t))
6190 (add-after 'unpack 'find-sdl
6191 (lambda _
6192 (substitute* "configure"
6193 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6194 (substitute* '("tools/ttf2bmf.cc"
6195 "lib-src/enigma-core/ecl_font.cc"
6196 "lib-src/enigma-core/ecl_video.cc"
6197 "lib-src/enigma-core/ecl_buffer.hh"
6198 "src/SoundEngine.cc"
6199 "src/SoundEngine.hh"
6200 "src/MusicManager.cc"
6201 "src/MusicManager.hh"
6202 "src/d_models.cc"
6203 "src/main.cc"
6204 "src/network.cc")
6205 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6206 (string-append "#include \"SDL/SDL_" header ".h\"")))
6207 (substitute* "src/main.cc"
6208 (("#include <SDL_(image|ttf|mixer).h>" line header)
6209 (string-append "#include \"SDL/SDL_" header ".h\"")))
6210 #t)))))
6211 (inputs
6212 `(("xerces-c" ,xerces-c)
6213 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6214 ("curl" ,curl)
6215 ("enet" ,enet)))
6216 (native-inputs
6217 `(("pkg-config" ,pkg-config)
6218 ("imagemagick" ,imagemagick)))
6219 (home-page "https://www.nongnu.org/enigma")
6220 (synopsis "Puzzle game with a dexterity component")
6221 (description "Enigma is a puzzle game with 550 unique levels. The object
6222 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6223 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6224 and most of all, countless hairy puzzles usually block your direct way to the
6225 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6226 get bored) interact in many unexpected ways, and since many of them follow the
6227 laws of physics (Enigma’s special laws of physics, that is), controlling them
6228 with the mouse isn’t always trivial.")
6229 (license license:gpl2+)))
6230
6231 (define-public chroma
6232 (package
6233 (name "chroma")
6234 (version "1.17")
6235 (source (origin
6236 (method url-fetch)
6237 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6238 version ".tar.bz2"))
6239 (sha256
6240 (base32
6241 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
6242 (build-system gnu-build-system)
6243 (arguments
6244 `(#:tests? #f ; no tests included
6245 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6246 (inputs
6247 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6248 ("freetype" ,freetype)
6249 ("ncurses" ,ncurses)
6250 ("fontconfig" ,fontconfig)
6251 ("libxft" ,libxft)))
6252 (native-inputs
6253 `(("pkg-config" ,pkg-config)))
6254 (home-page "http://level7.org.uk/chroma/")
6255 (synopsis "Abstract puzzle game")
6256 (description "Chroma is an abstract puzzle game. A variety of colourful
6257 shapes are arranged in a series of increasingly complex patterns, forming
6258 fiendish traps that must be disarmed and mysterious puzzles that must be
6259 manipulated in order to give up their subtle secrets. Initially so
6260 straightforward that anyone can pick it up and begin to play, yet gradually
6261 becoming difficult enough to tax even the brightest of minds.")
6262 (license license:gpl2+)))
6263
6264 (define-public fillets-ng
6265 (package
6266 (name "fillets-ng")
6267 (version "1.0.1")
6268 (source (origin
6269 (method url-fetch)
6270 (uri (string-append "mirror://sourceforge/fillets/"
6271 "Fish%20Fillets%20-%20Next%20Generation/"
6272 version "/fillets-ng-" version ".tar.gz"))
6273 (sha256
6274 (base32
6275 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6276 (build-system gnu-build-system)
6277 (arguments
6278 `(#:configure-flags
6279 (list (string-append "--with-lua="
6280 (assoc-ref %build-inputs "lua")))
6281 #:make-flags
6282 (list (string-append "CFLAGS=-I"
6283 (assoc-ref %build-inputs "sdl-union")
6284 "/include/SDL")
6285 (string-append "CXXFLAGS=-I"
6286 (assoc-ref %build-inputs "sdl-union")
6287 "/include/SDL"))
6288 #:phases
6289 (modify-phases %standard-phases
6290 ;; Lua 5.1 does not provide it.
6291 (add-after 'unpack 'do-not-link-with-lualib
6292 (lambda _
6293 (substitute* "configure"
6294 (("-llualib") ""))
6295 #t))
6296 (add-after 'install 'install-data
6297 (lambda* (#:key inputs outputs #:allow-other-keys)
6298 (let ((data (string-append (assoc-ref outputs "out")
6299 "/share/games/fillets-ng")))
6300 (mkdir-p data)
6301 (invoke "tar" "-xvf"
6302 (assoc-ref inputs "fillets-ng-data")
6303 "--strip-components=1"
6304 "-C" data)))))))
6305 (inputs
6306 `(("sdl-union" ,(sdl-union (list sdl
6307 sdl-mixer
6308 sdl-image
6309 sdl-ttf)))
6310 ("fribidi" ,fribidi)
6311 ("libx11" ,libx11)
6312 ("lua" ,lua-5.1)))
6313 (native-inputs
6314 `(("pkg-config" ,pkg-config)
6315 ("fillets-ng-data"
6316 ,(origin
6317 (method url-fetch)
6318 (uri (string-append "mirror://sourceforge/fillets/"
6319 "Fish%20Fillets%20-%20Next%20Generation/"
6320 version "/fillets-ng-data-" version ".tar.gz"))
6321 (sha256
6322 (base32
6323 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6324 (home-page "http://fillets.sourceforge.net/")
6325 (synopsis "Puzzle game")
6326 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6327 every of the seventy levels is always the same: find a safe way out. The fish
6328 utter witty remarks about their surroundings, the various inhabitants of their
6329 underwater realm quarrel among themselves or comment on the efforts of your
6330 fish. The whole game is accompanied by quiet, comforting music.")
6331 (license license:gpl2+)))
6332
6333 (define-public crawl
6334 (package
6335 (name "crawl")
6336 (version "0.26.0")
6337 (source
6338 (origin
6339 (method url-fetch)
6340 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6341 version "/stone_soup-" version "-nodeps.tar.xz"))
6342 (sha256
6343 (base32 "1m81x1sp6p2ka5w2nib3pcw5w5iv58z41c8aqn0dayi1lb3yslfb"))
6344 (patches (search-patches "crawl-upgrade-saves.patch"))))
6345 (build-system gnu-build-system)
6346 (inputs
6347 `(("lua51" ,lua-5.1)
6348 ("ncurses" ,ncurses)
6349 ("sqlite" ,sqlite)
6350 ("zlib" ,zlib)))
6351 (native-inputs
6352 `(("bison" ,bison)
6353 ("flex" ,flex)
6354 ("perl" ,perl)
6355 ("python" ,python-wrapper)
6356 ("python-pyyaml" ,python-pyyaml)
6357 ("pkg-config" ,pkg-config)))
6358 (arguments
6359 `(#:make-flags
6360 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6361 (out (assoc-ref %outputs "out")))
6362 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6363 (string-append "prefix=" out)
6364 "SAVEDIR=~/.crawl"
6365 ;; Don't compile with SSE on systems which don't have it.
6366 ,@(match (%current-system)
6367 ((or "i686-linux" "x86_64-linux")
6368 '())
6369 (_ '("NOSSE=TRUE")))
6370 ;; don't build any bundled dependencies
6371 "BUILD_LUA="
6372 "BUILD_SQLITE="
6373 "BUILD_ZLIB="
6374 "-Csource"))
6375 #:phases
6376 (modify-phases %standard-phases
6377 (add-after 'unpack 'find-SDL-image
6378 (lambda _
6379 (substitute* "source/windowmanager-sdl.cc"
6380 (("SDL_image.h") "SDL2/SDL_image.h"))
6381 #t))
6382 (delete 'configure)
6383 (replace 'check
6384 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6385 (setenv "HOME" (getcwd))
6386 ;; Fake a terminal for the test cases.
6387 (setenv "TERM" "xterm-256color")
6388 ;; Run the tests that don't require a debug build.
6389 (apply invoke "make" "nondebugtest"
6390 (format #f "-j~d" (parallel-job-count))
6391 ;; Force command line build for test cases.
6392 (append make-flags '("GAME=crawl" "TILES="))))))))
6393 (synopsis "Roguelike dungeon crawler game")
6394 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6395 for short) is a roguelike adventure through dungeons filled with dangerous
6396 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6397 (home-page "https://crawl.develz.org")
6398 (license (list license:gpl2+
6399 license:bsd-2
6400 license:bsd-3
6401 license:cc0
6402 license:expat
6403 license:zlib
6404 license:asl2.0))))
6405
6406 ;; The linter here claims that patch file names should start with the package
6407 ;; name. But, in this case, the patches are inherited from crawl with the
6408 ;; "crawl-" prefix instead of "crawl-tiles-".
6409 (define-public crawl-tiles
6410 (package
6411 (inherit crawl)
6412 (name "crawl-tiles")
6413 (arguments
6414 (substitute-keyword-arguments
6415 (package-arguments crawl)
6416 ((#:make-flags flags)
6417 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6418 (cons*
6419 (string-append "PROPORTIONAL_FONT=" dejavu
6420 "/share/fonts/truetype/DejaVuSans.ttf")
6421 (string-append "MONOSPACED_FONT=" dejavu
6422 "/share/fonts/truetype/DejaVuSansMono.ttf")
6423 "TILES=y"
6424 ;; Rename the executable to allow parallel installation with crawl.
6425 "GAME=crawl-tiles"
6426 ,flags)))))
6427 (inputs
6428 `(,@(package-inputs crawl)
6429 ("font-dejavu" ,font-dejavu)
6430 ("freetype6" ,freetype)
6431 ("glu" ,glu)
6432 ("libpng" ,libpng)
6433 ("sdl2" ,sdl2)
6434 ("sdl2-image" ,sdl2-image)
6435 ("sdl2-mixer" ,sdl2-mixer)))
6436 (native-inputs
6437 `(,@(package-native-inputs crawl)
6438 ("pngcrush" ,pngcrush)
6439 ("which" ,which)))
6440 (synopsis "Graphical roguelike dungeon crawler game")))
6441
6442 (define-public lugaru
6443 (package
6444 (name "lugaru")
6445 (version "1.2")
6446 (source (origin
6447 (method url-fetch)
6448 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6449 "lugaru-" version ".tar.xz"))
6450 (sha256
6451 (base32
6452 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6453 (build-system cmake-build-system)
6454 (arguments
6455 `(#:configure-flags
6456 (list "-DSYSTEM_INSTALL=ON")
6457 ;; no test target
6458 #:tests? #f))
6459 (native-inputs
6460 `(("pkg-config" ,pkg-config)))
6461 (inputs
6462 `(("sdl2" ,sdl2)
6463 ("glu" ,glu)
6464 ("libjpeg" ,libjpeg-turbo)
6465 ("libpng" ,libpng)
6466 ("openal" ,openal)
6467 ("vorbis" ,libvorbis)
6468 ("zlib" ,zlib)))
6469 (home-page "https://osslugaru.gitlab.io")
6470 (synopsis "Cross-platform third-person action game")
6471 (description "Lugaru is a third-person action game. The main character,
6472 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6473 In his quest to find those responsible for slaughtering his village, he uncovers
6474 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6475 and the starving wolves from a nearby den. Turner takes it upon himself to
6476 fight against their plot and save his fellow rabbits from slavery.")
6477 (license (list license:gpl2+ ; code
6478 ;; assets:
6479 license:cc-by-sa3.0
6480 license:cc-by-sa4.0))))
6481
6482 (define-public 0ad-data
6483 (package
6484 (name "0ad-data")
6485 (version "0.0.23b-alpha")
6486 (source
6487 (origin
6488 (method url-fetch)
6489 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6490 version "-unix-data.tar.xz"))
6491 (file-name (string-append name "-" version ".tar.xz"))
6492 (sha256
6493 (base32
6494 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6495 (modules '((guix build utils)))
6496 (snippet
6497 #~(begin
6498 (for-each (lambda (name)
6499 (let* ((dir (string-append "binaries/data/mods/" name))
6500 (file (string-append dir "/" name ".zip"))
6501 (unzip #$(file-append unzip "/bin/unzip")))
6502 (invoke unzip "-d" dir file)
6503 (delete-file file)))
6504 '("mod" "public"))
6505 #t))))
6506 (build-system trivial-build-system)
6507 (native-inputs `(("tar" ,tar)
6508 ("xz" ,xz)))
6509 (arguments
6510 `(#:modules ((guix build utils))
6511 #:builder
6512 (begin
6513 (use-modules (guix build utils))
6514 (let ((out (assoc-ref %outputs "out"))
6515 (source (assoc-ref %build-inputs "source"))
6516 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6517 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6518 (setenv "PATH" xz-path)
6519 (mkdir out)
6520 (invoke tar "xvf" source "-C" out "--strip=3")))))
6521 (synopsis "Data files for 0ad")
6522 (description "0ad-data provides the data files required by the game 0ad.")
6523 (home-page "https://play0ad.com")
6524 (license (list (license:fsdg-compatible
6525 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6526 "Similar to the license of the Bitstream Vera fonts.")
6527 (license:fsdg-compatible
6528 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6529 license:cc-by-sa3.0
6530 license:expat
6531 license:gfl1.0
6532 license:gpl2+
6533 license:gpl3+))))
6534
6535 (define-public 0ad
6536 (package
6537 (name "0ad")
6538 (version "0.0.23b-alpha")
6539 (source
6540 (origin
6541 (method url-fetch)
6542 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6543 version "-unix-build.tar.xz"))
6544 (file-name (string-append name "-" version ".tar.xz"))
6545 (sha256
6546 (base32
6547 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6548 ;; A snippet here would cause a build failure because of timestamps
6549 ;; reset. See https://bugs.gnu.org/26734.
6550 (inputs
6551 `(("0ad-data" ,0ad-data)
6552 ("curl" ,curl)
6553 ("enet" ,enet)
6554 ("gloox" ,gloox)
6555 ("icu4c" ,icu4c)
6556 ("libpng" ,libpng)
6557 ("libsodium" ,libsodium)
6558 ("libvorbis" ,libvorbis)
6559 ("libxcursor" ,libxcursor)
6560 ("libxml2" ,libxml2)
6561 ("miniupnpc" ,miniupnpc)
6562 ("mozjs-38" ,mozjs-38)
6563 ("openal" ,openal)
6564 ("sdl2" ,sdl2)
6565 ("wxwidgets" ,wxwidgets)
6566 ("zlib" ,zlib)))
6567 (native-inputs
6568 `(("boost" ,boost)
6569 ("cmake" ,cmake-minimal)
6570 ("mesa" ,mesa)
6571 ("pkg-config" ,pkg-config)
6572 ("python-2" ,python-2)))
6573 (build-system gnu-build-system)
6574 (arguments
6575 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6576 #:phases
6577 (modify-phases %standard-phases
6578 (add-after 'unpack 'delete-bundles
6579 (lambda _
6580 (delete-file-recursively "libraries/source/spidermonkey")
6581 #t))
6582 (add-after 'unpack 'fix-x11-includes
6583 (lambda _
6584 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6585 (("<Xlib.h>") "<X11/Xlib.h>"))
6586 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6587 (("<Xatom.h>") "<X11/Xatom.h>"))
6588 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6589 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6590 #t))
6591 (replace 'configure
6592 (lambda* (#:key inputs outputs #:allow-other-keys)
6593 (let* ((jobs (number->string (parallel-job-count)))
6594 (out (assoc-ref outputs "out"))
6595 (lib (string-append out "/lib"))
6596 (data (string-append out "/share/0ad")))
6597 (setenv "JOBS" (string-append "-j" jobs))
6598 (setenv "CC" "gcc")
6599 (with-directory-excursion "build/workspaces"
6600 (invoke "./update-workspaces.sh"
6601 (string-append "--libdir=" lib)
6602 (string-append "--datadir=" data)
6603 ;; TODO: "--with-system-nvtt"
6604 "--with-system-mozjs38")))))
6605 (delete 'check)
6606 (replace 'install
6607 (lambda* (#:key inputs outputs #:allow-other-keys)
6608 (chdir "binaries")
6609 (let* ((out (assoc-ref outputs "out"))
6610 (bin (string-append out "/bin"))
6611 (lib (string-append out "/lib"))
6612 (data (string-append out "/share/0ad"))
6613 (applications (string-append out "/share/applications"))
6614 (pixmaps (string-append out "/share/pixmaps"))
6615 (0ad-data (assoc-ref inputs "0ad-data")))
6616 ;; data
6617 (copy-recursively "data" data)
6618 (for-each (lambda (file)
6619 (symlink (string-append 0ad-data "/" file)
6620 (string-append data "/" file)))
6621 '("config" "mods/mod" "mods/public" "tools"))
6622 ;; libraries
6623 (for-each (lambda (file)
6624 (install-file file lib))
6625 (find-files "system" "\\.so$"))
6626 ;; binaries
6627 (install-file "system/pyrogenesis" bin)
6628 (with-directory-excursion bin
6629 (symlink "pyrogenesis" "0ad"))
6630 ;; resources
6631 (with-directory-excursion "../build/resources"
6632 (install-file "0ad.desktop" applications)
6633 (install-file "0ad.png" pixmaps))
6634 #t)))
6635 (add-after 'install 'check
6636 (lambda _
6637 (with-directory-excursion "system"
6638 (invoke "./test")))))))
6639 (home-page "https://play0ad.com")
6640 (synopsis "3D real-time strategy game of ancient warfare")
6641 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6642 warfare. It's a historically-based war/economy game that allows players to
6643 relive or rewrite the history of twelve ancient civilizations, each depicted
6644 at their peak of economic growth and military prowess.
6645
6646 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6647 (license (list license:bsd-2
6648 license:bsd-3
6649 license:expat
6650 license:gpl2+
6651 license:ibmpl1.0
6652 license:isc
6653 license:lgpl2.1
6654 license:lgpl3
6655 license:mpl2.0
6656 license:zlib))))
6657
6658 (define-public open-adventure
6659 (package
6660 (name "open-adventure")
6661 (version "1.9")
6662 (source
6663 (origin
6664 (method git-fetch)
6665 (uri (git-reference
6666 (url "https://gitlab.com/esr/open-adventure")
6667 (commit version)))
6668 (file-name (git-file-name name version))
6669 (sha256
6670 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6671 (build-system gnu-build-system)
6672 (arguments
6673 `(#:make-flags (list "CC=gcc")
6674 #:phases
6675 (modify-phases %standard-phases
6676 (delete 'configure) ;no configure script
6677 (add-before 'build 'use-echo
6678 (lambda _
6679 (substitute* "tests/Makefile"
6680 (("/bin/echo") (which "echo")))
6681 #t))
6682 (add-after 'build 'build-manpage
6683 (lambda _
6684 ;; This target is missing a dependency
6685 (substitute* "Makefile"
6686 ((".adoc.6:" line)
6687 (string-append line " advent.adoc")))
6688 (invoke "make" ".adoc.6")))
6689 ;; There is no install target.
6690 (replace 'install
6691 (lambda* (#:key outputs #:allow-other-keys)
6692 (let* ((out (assoc-ref outputs "out"))
6693 (bin (string-append out "/bin"))
6694 (man (string-append out "/share/man/man6")))
6695 (install-file "advent" bin)
6696 (install-file "advent.6" man))
6697 #t)))))
6698 (native-inputs
6699 `(("asciidoc" ,asciidoc)
6700 ("libedit" ,libedit)
6701 ("pkg-config" ,pkg-config)
6702 ("python" ,python-wrapper)
6703 ("python-pyyaml" ,python-pyyaml)))
6704 (home-page "https://gitlab.com/esr/open-adventure")
6705 (synopsis "Colossal Cave Adventure")
6706 (description
6707 "The original Colossal Cave Adventure from 1976 was the origin of all
6708 text adventures, dungeon-crawl (computer) games, and computer-hosted
6709 roleplaying games. This is a forward port of the last version released by
6710 Crowther & Woods, its original authors, in 1995. It has been known as
6711 ``adventure 2.5'' and ``430-point adventure''.")
6712 (license license:bsd-2)))
6713
6714 (define-public open-adventure-2.5
6715 (package
6716 (inherit open-adventure)
6717 (version "2.5")
6718 (properties `((superseded . ,open-adventure)))))
6719
6720 (define-public tome4
6721 (package
6722 (name "tome4")
6723 (version "1.7.2")
6724 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6725 (source
6726 (origin
6727 (method url-fetch)
6728 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6729 version ".tar.bz2"))
6730 (sha256
6731 (base32 "1xa0pdn9pggwf7hnqb87ya2qxqhjahkdjwf8cr2y01gixgrkj9lv"))
6732 (modules '((guix build utils)))
6733 (snippet
6734 '(begin
6735 (substitute* '("src/music.h" "src/tSDL.h")
6736 (("#elif defined(__FreeBSD__)" line)
6737 (string-append
6738 line " || defined(__GNUC__)")))
6739 (substitute* '("src/tgl.h")
6740 (("#include <GL/glext.h>") ""))
6741 #t))))
6742 (build-system gnu-build-system)
6743 (native-inputs
6744 `(("unzip" ,unzip)))
6745 (inputs
6746 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6747 ("glu" ,glu)
6748 ("premake4" ,premake4)
6749 ("openal" ,openal)
6750 ("vorbis" ,libvorbis)
6751 ("luajit" ,luajit)))
6752 (arguments
6753 `(#:make-flags
6754 (list (string-append "CC=" ,(cc-for-target))
6755 "config=release")
6756 ;; XXX: Building in parallel occasionally causes this build failure:
6757 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6758 ;; No such file or directory
6759 #:parallel-build? #f
6760 #:phases (modify-phases %standard-phases
6761 (delete 'bootstrap)
6762 (replace 'configure
6763 (lambda _
6764 (invoke "premake4" "gmake")
6765 #t))
6766 (add-after 'set-paths 'set-sdl-paths
6767 (lambda* (#:key inputs #:allow-other-keys)
6768 (setenv "CPATH"
6769 (string-append (assoc-ref inputs "sdl-union")
6770 "/include/SDL2:"
6771 (or (getenv "CPATH") "")))
6772 #t))
6773 (delete 'check)
6774 ;; premake doesn't provide install target
6775 (replace 'install
6776 (lambda* (#:key inputs outputs #:allow-other-keys)
6777 (let* ((out (assoc-ref outputs "out"))
6778 (usr (string-append out "/usr"))
6779 (bin (string-append out "/bin"))
6780 (licenses (string-append out "/share/licenses"))
6781 (documents (string-append out "/share/doc"))
6782 (pixmaps (string-append out "/share/pixmaps"))
6783 (icon "te4-icon.png")
6784 (data (string-append out "/share/" ,name))
6785 (applications (string-append
6786 out "/share/applications"))
6787 (unzip (string-append
6788 (assoc-ref inputs "unzip") "/bin/unzip"))
6789 (wrapper (string-append bin "/" ,name)))
6790 ;; icon
6791 (mkdir-p pixmaps)
6792 (invoke unzip "-j"
6793 (string-append
6794 "game/engines/te4-" ,version ".teae")
6795 (string-append
6796 "data/gfx/" icon) "-d" pixmaps)
6797 ;; game executable
6798 (install-file "t-engine" data)
6799 (mkdir-p bin)
6800 (with-output-to-file wrapper
6801 (lambda ()
6802 (display
6803 (string-append
6804 "#!/bin/sh\n"
6805 ;; No bootstrap code found,
6806 ;; defaulting to working directory
6807 ;; for engine code!
6808 "cd " data "\n"
6809 "exec -a tome4 ./t-engine \"$@\"\n"))))
6810 (chmod wrapper #o555)
6811 ;; licenses
6812 (for-each (lambda (file)
6813 (install-file file licenses))
6814 '("COPYING" "COPYING-MEDIA"))
6815 ;; documents
6816 (for-each (lambda (file)
6817 (install-file file documents))
6818 '("CONTRIBUTING" "CREDITS"))
6819 ;; data
6820 (copy-recursively "bootstrap" (string-append
6821 data "/bootstrap"))
6822 (copy-recursively "game" (string-append data "/game"))
6823 ;; launcher
6824 (mkdir-p applications)
6825 (make-desktop-entry-file
6826 (string-append applications "/" ,name ".desktop")
6827 #:name "ToME4"
6828 #:comment ,synopsis
6829 #:exec ,name
6830 #:icon icon
6831 #:categories '("Game" "RolePlaying")))
6832 #t)))))
6833 (home-page "https://te4.org")
6834 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6835 combat and advanced character building. Play as one of many unique races and
6836 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6837 challenging battles, and developing characters with your own tailored mix of
6838 abilities and powers. With a modern graphical and customisable interface,
6839 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6840 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6841 (license license:gpl3+)))
6842
6843 (define-public quakespasm
6844 (package
6845 (name "quakespasm")
6846 (version "0.93.2")
6847 (source
6848 (origin
6849 (method url-fetch)
6850 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6851 version ".tgz"))
6852 (sha256
6853 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6854 (arguments
6855 `(#:tests? #f
6856 #:make-flags '("CC=gcc"
6857 "MP3LIB=mpg123"
6858 "USE_CODEC_FLAC=1"
6859 "USE_CODEC_MIKMOD=1"
6860 "USE_SDL2=1"
6861 "-CQuake")
6862 #:phases (modify-phases %standard-phases
6863 (delete 'configure)
6864 (add-after 'unpack 'fix-makefile-paths
6865 (lambda* (#:key outputs #:allow-other-keys)
6866 (let ((out (assoc-ref outputs "out")))
6867 (mkdir-p (string-append out "/bin"))
6868 (substitute* "Quake/Makefile"
6869 (("/usr/local/games")
6870 (string-append out "/bin")))
6871 #t))))))
6872 (build-system gnu-build-system)
6873 (inputs `(("libmikmod" ,libmikmod)
6874 ("libvorbis" ,libvorbis)
6875 ("flac" ,flac)
6876 ("mesa" ,mesa)
6877 ("mpg123" ,mpg123)
6878 ("sdl2" ,sdl2)))
6879 (synopsis "First person shooter engine for Quake 1")
6880 (description "Quakespasm is a modern engine for id software's Quake 1.
6881 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6882 some graphical niceities, and numerous bug-fixes and other improvements.")
6883 (home-page "http://quakespasm.sourceforge.net/")
6884 (license license:gpl2+)))
6885
6886 (define-public vkquake
6887 (package
6888 (inherit quakespasm)
6889 (name "vkquake")
6890 (version "1.01.0")
6891 (source
6892 (origin
6893 (method git-fetch)
6894 (uri (git-reference
6895 (url "https://github.com/Novum/vkQuake")
6896 (commit version)))
6897 (file-name (git-file-name name version))
6898 (sha256
6899 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6900 (arguments
6901 `(#:make-flags
6902 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6903 "vulkan-loader") "/lib")))
6904 (list "CC=gcc"
6905 "MP3LIB=mpg123"
6906 "USE_CODEC_FLAC=1"
6907 "USE_CODEC_MIKMOD=1"
6908 "USE_SDL2=1"
6909 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
6910 "-CQuake"))
6911 #:phases (modify-phases %standard-phases
6912 (add-after 'unpack 'patch-for-new-vulkan
6913 (lambda _
6914 ;; Mimic upstream commit a869a22d9b51c68e for
6915 ;; compatibility with newer vulkan-headers.
6916 (substitute* "Quake/gl_rmisc.c"
6917 (("VK_DYNAMIC_STATE_RANGE_SIZE")
6918 "3"))
6919 #t))
6920 (delete 'configure)
6921 (add-after 'unpack 'fix-makefile-paths
6922 (lambda* (#:key outputs #:allow-other-keys)
6923 (let ((vulkan (assoc-ref %build-inputs
6924 "vulkan-loader"))
6925 (out (assoc-ref outputs "out")))
6926 (mkdir-p (string-append out "/bin"))
6927 (substitute* "Quake/Makefile" ((" /usr")
6928 (string-append " " out)))
6929 (substitute* "Quake/Makefile" (("/games")
6930 (string-append "/bin")))
6931 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
6932 #t))))
6933 ,@(strip-keyword-arguments '(#:make-flags #:phases)
6934 (package-arguments quakespasm))))
6935 (inputs `(("vulkan-headers" ,vulkan-headers)
6936 ("vulkan-loader" ,vulkan-loader)
6937 ,@(package-inputs quakespasm)))
6938 (description "vkquake is a modern engine for id software's Quake 1.
6939 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6940 some graphical niceities, and numerous bug-fixes and other improvements.")
6941 (home-page "https://github.com/Novum/vkQuake")))
6942
6943 (define-public yamagi-quake2
6944 (package
6945 (name "yamagi-quake2")
6946 (version "7.45")
6947 (source
6948 (origin
6949 (method url-fetch)
6950 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
6951 version ".tar.xz"))
6952 (sha256
6953 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
6954 (build-system gnu-build-system)
6955 (arguments
6956 `(#:tests? #f
6957 #:make-flags
6958 (list "CC=gcc"
6959 ;; link openAL instead of using dlopen at runtime
6960 "DLOPEN_OPENAL=\"no\""
6961 ;; an optional directory where it will look for quake2 data files
6962 ;; in addition to the current working directory
6963 "WITH_SYSTEMWIDE=yes"
6964 "WITH_SYSTEMDIR=\"/opt/quake2\"")
6965 #:phases
6966 (modify-phases %standard-phases
6967 (delete 'configure)
6968 (replace 'install
6969 (lambda* (#:key outputs #:allow-other-keys)
6970 (let ((out (assoc-ref outputs "out")))
6971 (mkdir-p (string-append out "/lib"))
6972 (mkdir-p (string-append out "/bin"))
6973 ;; The yamagi-quake2 binary must be in the same directory
6974 ;; as it's engine libraries, but symlinking it to /bin is okay
6975 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
6976 (copy-recursively "release"
6977 (string-append out "/lib/yamagi-quake2"))
6978 (symlink (string-append out "/lib/yamagi-quake2/quake2")
6979 (string-append out "/bin/yamagi-quake2"))
6980 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
6981 (string-append out "/bin/yamagi-q2ded"))))))))
6982 (native-inputs
6983 `(("pkg-config" ,pkg-config)))
6984 (inputs
6985 `(("curl" ,curl-minimal)
6986 ("libvorbis" ,libvorbis)
6987 ("mesa" ,mesa)
6988 ("openal" ,openal)
6989 ("sdl2" ,sdl2)
6990 ("zlib" ,zlib)))
6991 (synopsis "First person shooter engine based on quake2")
6992 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
6993 The main focus is an unchanged single player experience like back in 1997,
6994 thus the gameplay and the graphics are unaltered. However the user may use one
6995 of the unofficial retexturing packs. In comparison with the official client,
6996 over 1000 bugs were fixed and an extensive code audit done,
6997 making Yamagi Quake II one of the most solid Quake II implementations available.")
6998 (home-page "https://www.yamagi.org/quake2/")
6999 (license (list license:gpl2+ ; game and server
7000 (license:non-copyleft ; info-zip
7001 "file://LICENSE"
7002 "See Info-Zip section.")
7003 license:public-domain)))) ; stb
7004
7005 (define-public nudoku
7006 (package
7007 (name "nudoku")
7008 (version "2.1.0")
7009 (source
7010 (origin
7011 (method git-fetch)
7012 (uri (git-reference
7013 (url "https://github.com/jubalh/nudoku")
7014 (commit version)))
7015 (file-name (git-file-name name version))
7016 (sha256
7017 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
7018 (build-system gnu-build-system)
7019 (native-inputs
7020 `(("autoconf" ,autoconf)
7021 ("automake" ,automake)
7022 ("gettext" ,gettext-minimal)
7023 ("pkg-config" ,pkg-config)))
7024 (inputs
7025 `(("ncurses" ,ncurses)))
7026 (home-page "https://jubalh.github.io/nudoku/")
7027 (synopsis "Sudoku for your terminal")
7028 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
7029 (license license:gpl3+)))
7030
7031 (define-public the-butterfly-effect
7032 (package
7033 (name "the-butterfly-effect")
7034 (version "0.9.3.1")
7035 (source
7036 (origin
7037 (method git-fetch)
7038 (uri (git-reference
7039 (url "https://github.com/the-butterfly-effect/tbe")
7040 (commit (string-append "v" version))))
7041 (file-name (git-file-name name version))
7042 (sha256
7043 (base32
7044 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
7045 (build-system gnu-build-system)
7046 (arguments
7047 `(#:phases
7048 (modify-phases %standard-phases
7049 (delete 'configure)
7050 ;; There is no "install" phase. By default, tbe is installed
7051 ;; in the build directory. Provide our own installation.
7052 (replace 'install
7053 (lambda* (#:key outputs #:allow-other-keys)
7054 (let* ((out (assoc-ref outputs "out"))
7055 (bin (string-append out "/bin"))
7056 (share (string-append out "/share")))
7057 (install-file "usr/games/tbe" bin)
7058 (mkdir-p share)
7059 (copy-recursively "usr/share" share)
7060 #t))))
7061 ;; Test suite requires a running Xorg server. Even when
7062 ;; provided, it fails with "D-Bus library appears to be
7063 ;; incorrectly set up; failed to read machine uuid: Failed to
7064 ;; open "/etc/machine-id": No such file or directory" along
7065 ;; with multiple "QPainter:: ... Painter not active" warnings.
7066 #:tests? #f))
7067 (inputs
7068 `(("qtbase" ,qtbase)
7069 ("qtsvg" ,qtsvg)))
7070 (native-inputs
7071 `(("cmake" ,cmake-minimal)
7072 ("gettext-minimal" ,gettext-minimal)
7073 ("qttools" ,qttools)))
7074 (synopsis "Realistic physics puzzle game")
7075 (description "The Butterfly Effect (tbe) is a game that uses
7076 realistic physics simulations to combine lots of simple mechanical
7077 elements to achieve a simple goal in the most complex way possible.")
7078 (home-page "http://the-butterfly-effect.org/")
7079 ;; Main license is GPL2-only. However, artwork is distributed
7080 ;; under various licenses, listed here.
7081 (license (list license:gpl2 license:public-domain license:expat
7082 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7083
7084 (define-public pioneer
7085 (package
7086 (name "pioneer")
7087 (version "20210203")
7088 (source (origin
7089 (method git-fetch)
7090 (uri (git-reference
7091 (url "https://github.com/pioneerspacesim/pioneer")
7092 (commit version)))
7093 (file-name (git-file-name name version))
7094 (sha256
7095 (base32
7096 "1zyi1xyghj99hz8fa6dywpscj6flp04fspnlgxbivf3rgmnxflg7"))))
7097 (build-system cmake-build-system)
7098 (native-inputs
7099 `(("pkg-config" ,pkg-config)))
7100 (inputs
7101 `(("assimp" ,assimp)
7102 ("curl" ,curl)
7103 ("freetype" ,freetype)
7104 ("glew" ,glew)
7105 ("glu" ,glu)
7106 ("libpng" ,libpng)
7107 ("libsigc++" ,libsigc++)
7108 ("libvorbis" ,libvorbis)
7109 ("lua" ,lua-5.2) ;not compatible with 5.3
7110 ("mesa" ,mesa)
7111 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7112 (arguments
7113 `(#:tests? #f ;tests are broken
7114 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7115 (string-append "-DPIONEER_DATA_DIR="
7116 %output "/share/games/pioneer"))))
7117 (home-page "https://pioneerspacesim.net")
7118 (synopsis "Game of lonely space adventure")
7119 (description
7120 "Pioneer is a space adventure game set in our galaxy at the turn of the
7121 31st century. The game is open-ended, and you are free to eke out whatever
7122 kind of space-faring existence you can think of. Look for fame or fortune by
7123 exploring the millions of star systems. Turn to a life of crime as a pirate,
7124 smuggler or bounty hunter. Forge and break alliances with the various
7125 factions fighting for power, freedom or self-determination. The universe is
7126 whatever you make of it.")
7127 (license license:gpl3)))
7128
7129 (define-public badass
7130 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7131 (revision "0"))
7132 (package
7133 (name "badass")
7134 (version (git-version "0.0" revision commit))
7135 (source (origin
7136 (method git-fetch)
7137 (uri (git-reference
7138 (url "https://github.com/umayr/badass")
7139 (commit commit)))
7140 (file-name (git-file-name name version))
7141 (sha256
7142 (base32
7143 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7144 (build-system go-build-system)
7145 (arguments
7146 '(#:import-path "github.com/umayr/badass"))
7147 (synopsis "Hacking contribution graphs in git")
7148 (description
7149 "Badass generates false commits for a range of dates, essentially
7150 hacking the gamification of contribution graphs on platforms such as
7151 Github or Gitlab.")
7152 (home-page "https://github.com/umayr/badass")
7153 (license license:expat))))
7154
7155 (define-public colobot
7156 (package
7157 (name "colobot")
7158 (version "0.1.12-alpha")
7159 (source
7160 (origin
7161 (method git-fetch)
7162 (uri (git-reference
7163 (url "https://github.com/colobot/colobot")
7164 (commit (string-append "colobot-gold-" version))
7165 (recursive? #t))) ;for "data/" subdir
7166 (file-name (git-file-name name version))
7167 (sha256
7168 (base32
7169 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
7170 (build-system cmake-build-system)
7171 (arguments
7172 `(#:tests? #f ;no test
7173 #:phases
7174 (modify-phases %standard-phases
7175 (add-after 'unpack 'make-git-checkout-writable
7176 (lambda _
7177 (for-each make-file-writable (find-files "."))
7178 #t))
7179 (add-after 'unpack 'fix-directories
7180 (lambda _
7181 (substitute* "CMakeLists.txt"
7182 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7183 (string-append prefix "/bin"))
7184 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7185 (string-append prefix "/colobot")))
7186 #t))
7187 (add-after 'fix-directories 'install-music
7188 ;; Retrieve and install music files.
7189 (lambda* (#:key inputs #:allow-other-keys)
7190 ;; Installation process tries to download music files using
7191 ;; "wget" if not already present. Since we are going another
7192 ;; route, skip "wget" command check.
7193 (substitute* "data/music/CMakeLists.txt"
7194 (("find_program\\(WGET wget\\)") ""))
7195 ;; Populate "music/" directory.
7196 (let ((data (assoc-ref inputs "colobot-music")))
7197 (invoke "tar" "-xvf" data "-Cdata/music"))
7198 #t)))))
7199 (native-inputs
7200 `(("colobot-music"
7201 ,(origin
7202 (method url-fetch)
7203 (uri (string-append "https://colobot.info/files/music/"
7204 "colobot-music_ogg_" version ".tar.gz"))
7205 (sha256
7206 (base32
7207 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7208 ("gettext" ,gettext-minimal)
7209 ("librsvg" ,librsvg)
7210 ("po4a" ,po4a)
7211 ("python" ,python-wrapper)))
7212 (inputs
7213 `(("boost" ,boost)
7214 ("glew" ,glew)
7215 ("libogg" ,libogg)
7216 ("libpng" ,libpng)
7217 ("libsndfile" ,libsndfile)
7218 ("libvorbis" ,libvorbis)
7219 ("openal" ,openal)
7220 ("physfs" ,physfs)
7221 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7222 (synopsis "Educational programming strategy game")
7223 (description "Colobot: Gold Edition is a real-time strategy game, where
7224 you can program your units (bots) in a language called CBOT, which is similar
7225 to C++ and Java. Your mission is to find a new planet to live and survive.
7226 You can save humanity and get programming skills!")
7227 (home-page "https://colobot.info")
7228 (license license:gpl3+)))
7229
7230 (define-public gzdoom
7231 (package
7232 (name "gzdoom")
7233 (version "4.3.2")
7234 (source
7235 (origin
7236 (method git-fetch)
7237 (uri (git-reference
7238 (url "https://github.com/coelckers/gzdoom")
7239 (commit (string-append "g" version))))
7240 (file-name (git-file-name name version))
7241 (sha256
7242 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7243 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7244 "gzdoom-find-system-libgme.patch"))
7245 (modules '((guix build utils)))
7246 (snippet
7247 '(begin
7248 ;; Remove some bundled libraries. XXX There are more, but removing
7249 ;; them would require, at least, patching the build system.
7250 (with-directory-excursion "libraries"
7251 (delete-file-recursively "bzip2")
7252 (delete-file-recursively "game-music-emu")
7253 (delete-file-recursively "jpeg")
7254 (delete-file-recursively "zlib"))
7255 #t))))
7256 (arguments
7257 '(#:tests? #f
7258 #:configure-flags
7259 (let ((out (assoc-ref %outputs "out")))
7260 (list
7261 (string-append
7262 "-DCMAKE_CXX_FLAGS:="
7263 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7264 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7265
7266 ;; The build requires some extra convincing not to use the bundled
7267 ;; libgme previously deleted in the soure snippet.
7268 "-DFORCE_INTERNAL_GME=OFF"
7269
7270 ;; Link libraries at build time instead of loading them at run time.
7271 "-DDYN_OPENAL=OFF"
7272 "-DDYN_FLUIDSYNTH=OFF"
7273 "-DDYN_GTK=OFF"
7274 "-DDYN_MPG123=OFF"
7275 "-DDYN_SNDFILE=OFF"))
7276 #:phases
7277 (modify-phases %standard-phases
7278 (add-before 'configure 'fix-referenced-paths
7279 (lambda* (#:key inputs outputs #:allow-other-keys)
7280 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7281 (timidity++ (assoc-ref inputs "timidity++"))
7282 (out (assoc-ref outputs "out")))
7283
7284 (substitute*
7285 "src/CMakeLists.txt"
7286 (("COMMAND /bin/sh")
7287 (string-append "COMMAND " (which "sh"))))
7288
7289 (substitute*
7290 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7291 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7292 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7293
7294 (substitute*
7295 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7296 (("exename = \"timidity\"")
7297 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7298 #t))))))
7299 (build-system cmake-build-system)
7300 (inputs `(("bzip2" ,bzip2)
7301 ("fluid-3" ,fluid-3)
7302 ("fluidsynth" ,fluidsynth)
7303 ("gtk+3" ,gtk+)
7304 ("libgme" ,libgme)
7305 ("libjpeg" ,libjpeg-turbo)
7306 ("libsndfile" ,libsndfile)
7307 ("mesa" ,mesa)
7308 ("mpg123" ,mpg123)
7309 ("openal" ,openal)
7310 ("sdl2" ,sdl2)
7311 ("timidity++" ,timidity++)
7312 ("zlib" ,zlib)))
7313 (native-inputs `(("pkg-config" ,pkg-config)
7314 ("unzip" ,unzip)))
7315 (synopsis "Modern Doom 2 source port")
7316 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7317 renderer. It improves modding support with ZDoom's advanced mapping features
7318 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7319 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7320 (home-page "https://zdoom.org/index")
7321 ;; The source uses x86 assembly
7322 (supported-systems '("x86_64-linux" "i686-linux"))
7323 (license (list license:gpl3+ ; gzdoom game
7324 license:lgpl3+ ; gzdoom renderer
7325 license:expat ; gdtoa
7326 (license:non-copyleft ; modified dumb
7327 "file://dumb/licence.txt"
7328 "Dumb license, explicitly GPL compatible.")))))
7329
7330 (define-public odamex
7331 (package
7332 (name "odamex")
7333 (version "0.8.3")
7334 (source
7335 (origin
7336 (method url-fetch)
7337 (uri (string-append
7338 "mirror://sourceforge/odamex/Odamex/" version "/"
7339 "odamex-src-" version ".tar.gz"))
7340 (sha256
7341 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7342 (build-system cmake-build-system)
7343 (arguments `(#:tests? #f)) ; no tests
7344 (inputs
7345 `(("sdl" ,sdl)
7346 ("sdl-mixer" ,sdl-mixer)
7347 ("zlib" ,zlib)
7348 ("libpng" ,libpng)
7349 ("alsa-lib" ,alsa-lib)))
7350 (home-page "https://odamex.net/")
7351 (synopsis "Multiplayer Doom port")
7352 (description "Odamex is a modification of the Doom engine that
7353 allows players to easily join servers dedicated to playing Doom
7354 online.")
7355 (license license:gpl2+)))
7356
7357 (define-public chocolate-doom
7358 (package
7359 (name "chocolate-doom")
7360 (version "3.0.1")
7361 (source (origin
7362 (method url-fetch)
7363 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7364 version
7365 "/chocolate-doom-"
7366 version
7367 ".tar.gz"))
7368 (sha256
7369 (base32
7370 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7371 (build-system gnu-build-system)
7372 (inputs `(("sdl2-net" ,sdl2-net)
7373 ("sdl2-mixer" , sdl2-mixer)
7374 ("sdl2" ,sdl2)))
7375 (native-inputs
7376 `(("pkg-config" ,pkg-config)))
7377 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7378 Doom")
7379 (description
7380 "Chocolate Doom takes a different approach to other source ports. Its
7381 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7382 a conservative, historically accurate Doom source port, which is compatible
7383 with the thousands of mods and levels that were made before the Doom source
7384 code was released. Rather than flashy new graphics, Chocolate Doom's main
7385 features are its accurate reproduction of the game as it was played in the
7386 1990s. The project is developed around a carefully-considered philosophy that
7387 intentionally restricts which features may be added (and rejects any that
7388 affect gameplay).")
7389 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7390 (license license:gpl2)))
7391
7392 (define-public crispy-doom
7393 (package
7394 (inherit chocolate-doom)
7395 (name "crispy-doom")
7396 (version "5.8.0")
7397 (source (origin
7398 (method git-fetch)
7399 (uri (git-reference
7400 (url "https://github.com/fabiangreffrath/crispy-doom")
7401 (commit (string-append "crispy-doom-" version))))
7402 (file-name (git-file-name name version))
7403 (sha256
7404 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7405 (native-inputs
7406 (append
7407 (package-native-inputs chocolate-doom)
7408 `(("automake" ,automake)
7409 ("autoreconf" ,autoconf))))
7410 (arguments
7411 `(#:phases
7412 (modify-phases %standard-phases
7413 (replace 'bootstrap
7414 ;; The bundled autogen.sh script unconditionally runs ./configure.
7415 (lambda _ (invoke "autoreconf" "-vif"))))))
7416 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7417 Chocolate Doom")
7418 (description
7419 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7420 display resolution, removes the static limits of the Doom engine and offers
7421 further optional visual, tactical and physical enhancements while remaining
7422 entirely config file, savegame, netplay and demo compatible with the
7423 original.")
7424 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7425
7426 (define shlomif-cmake-modules
7427 (origin
7428 (method url-fetch)
7429 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7430 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7431 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7432 (sha256
7433 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7434
7435 (define-public rinutils
7436 (package
7437 (name "rinutils")
7438 (version "0.2.0")
7439 (source (origin
7440 (method git-fetch)
7441 (uri (git-reference
7442 (url "https://github.com/shlomif/rinutils")
7443 (commit version)))
7444 (file-name (git-file-name name version))
7445 (sha256
7446 (base32
7447 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7448 (native-inputs
7449 `(("perl" ,perl)
7450 ;; The following is only needed for tests.
7451 ("perl-file-find-object" ,perl-file-find-object)
7452 ("perl-test-differences" ,perl-test-differences)
7453 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7454 ("perl-io-all" ,perl-io-all)
7455 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7456 ("cmake-rules" ,shlomif-cmake-modules)
7457 ("pkg-config" ,pkg-config)))
7458 (inputs
7459 `(("cmocka" ,cmocka)
7460 ("perl-env-path" ,perl-env-path)
7461 ("perl-inline" ,perl-inline)
7462 ("perl-inline-c" ,perl-inline-c)
7463 ("perl-string-shellquote" ,perl-string-shellquote)
7464 ("perl-test-trailingspace" ,perl-test-trailingspace)
7465 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7466 ("perl-text-glob" ,perl-text-glob)
7467 ("perl-number-compare" ,perl-number-compare)
7468 ("perl-moo" ,perl-moo)))
7469 (arguments
7470 `(#:phases
7471 (modify-phases %standard-phases
7472 (add-after 'unpack 'fix-build-env
7473 (lambda* (#:key inputs #:allow-other-keys)
7474 (use-modules (guix build utils))
7475 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7476 (copy-file cmake-rules
7477 (string-append "cmake/"
7478 (strip-store-file-name cmake-rules)))
7479 #t)))
7480 (replace 'check
7481 (lambda _
7482 (with-directory-excursion "../source"
7483 (setenv "FCS_TEST_BUILD" "1")
7484 (setenv "RINUTILS_TEST_BUILD" "1")
7485 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7486 ;; which requires tidy-all.
7487 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7488 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7489 (build-system cmake-build-system)
7490 (home-page "https://www.shlomifish.org/open-source/projects/")
7491 (synopsis "C11 / gnu11 utilities C library")
7492 (description "This package provides C11 / gnu11 utilities C library")
7493 (license license:expat)))
7494
7495 (define-public fortune-mod
7496 (package
7497 (name "fortune-mod")
7498 (version "2.28.0")
7499 (source
7500 (origin
7501 (method git-fetch)
7502 (uri (git-reference
7503 (url "https://github.com/shlomif/fortune-mod")
7504 (commit (string-append "fortune-mod-" version))))
7505 (file-name (git-file-name name version))
7506 (sha256
7507 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7508 (build-system cmake-build-system)
7509 (arguments
7510 `(#:test-target "check"
7511 #:phases
7512 (modify-phases %standard-phases
7513 (add-after 'unpack 'fix-build-env
7514 (lambda* (#:key inputs #:allow-other-keys)
7515 (use-modules (guix build utils))
7516 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7517 (copy-file cmake-rules
7518 (string-append "fortune-mod/cmake/"
7519 (strip-store-file-name cmake-rules)))
7520 (chdir "fortune-mod")
7521 ;; TODO: Valgrind tests fail for some reason.
7522 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7523 (delete-file "tests/t/valgrind.t")
7524 #t)))
7525 (add-after 'install 'fix-install-directory
7526 (lambda* (#:key outputs #:allow-other-keys)
7527 ;; Move binary from "games/" to "bin/" and remove the latter. This
7528 ;; is easier than patching CMakeLists.txt since the tests hard-code
7529 ;; the location as well.
7530 (let* ((out (assoc-ref outputs "out"))
7531 (bin (string-append out "/bin"))
7532 (games (string-append out "/games")))
7533 (rename-file (string-append games "/fortune")
7534 (string-append bin "/fortune"))
7535 (rmdir games)
7536 #t))))))
7537 (inputs `(("recode" ,recode)))
7538 (native-inputs
7539 `(("perl" ,perl)
7540 ;; The following is only needed for tests.
7541 ("perl-file-find-object" ,perl-file-find-object)
7542 ("perl-test-differences" ,perl-test-differences)
7543 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7544 ("perl-io-all" ,perl-io-all)
7545 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7546 ("cmake-rules" ,shlomif-cmake-modules)
7547 ("rinutils" ,rinutils)))
7548 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7549 (synopsis "The Fortune Cookie program from BSD games")
7550 (description "Fortune is a command-line utility which displays a random
7551 quotation from a collection of quotes.")
7552 (license license:bsd-4)))
7553
7554 (define xonotic-data
7555 (package
7556 (name "xonotic-data")
7557 (version "0.8.2")
7558 (source
7559 (origin
7560 (method url-fetch)
7561 (uri (string-append "http://dl.xonotic.org/xonotic-"
7562 version ".zip"))
7563 (file-name (string-append name "-" version ".zip"))
7564 (sha256
7565 (base32
7566 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7567 (build-system trivial-build-system)
7568 (native-inputs
7569 `(("unzip" ,unzip)))
7570 (arguments
7571 `(#:modules ((guix build utils))
7572 #:builder
7573 (begin
7574 (use-modules (guix build utils))
7575 (let* ((out (assoc-ref %outputs "out"))
7576 (xonotic (string-append out "/share/xonotic"))
7577 (source (assoc-ref %build-inputs "source"))
7578 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7579 (copy-file source (string-append ,name "-" ,version ".zip"))
7580 (invoke unzip (string-append ,name "-" ,version ".zip"))
7581 (mkdir-p out)
7582 (mkdir-p xonotic)
7583 (chdir "Xonotic")
7584 (copy-recursively "data"
7585 (string-append xonotic "/data"))
7586 (copy-recursively "server"
7587 (string-append xonotic "/server"))
7588 (install-file "key_0.d0pk" xonotic)))))
7589 (home-page "http://xonotic.org")
7590 (synopsis "Data files for Xonotic")
7591 (description
7592 "Xonotic-data provides the data files required by the game Xonotic.")
7593 (license (list license:gpl2+
7594 (license:x11-style "file://server/rcon.pl")))))
7595
7596 (define-public xonotic
7597 (package
7598 (name "xonotic")
7599 (version "0.8.2")
7600 (source
7601 (origin
7602 (method url-fetch)
7603 (uri (string-append "http://dl.xonotic.org/xonotic-"
7604 version "-source.zip"))
7605 (file-name (string-append name "-" version ".zip"))
7606 (sha256
7607 (base32
7608 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7609 (build-system gnu-build-system)
7610 (arguments
7611 `(#:configure-flags (list (string-append "--prefix="
7612 (assoc-ref %outputs "out"))
7613 "--disable-rijndael")
7614 #:phases
7615 (modify-phases %standard-phases
7616 (add-before 'configure 'make-darkplaces
7617 (lambda* (#:key outputs #:allow-other-keys)
7618 (let* ((out (assoc-ref outputs "out"))
7619 (sharedir (string-append out "/share/xonotic/")))
7620 (invoke "make" "-C" "source/darkplaces"
7621 (string-append "DP_FS_BASEDIR="
7622 sharedir)
7623 "DP_LINK_TO_LIBJPEG=1"
7624 "DP_SOUND_API=ALSA"
7625 "CC=gcc"
7626 "-f" "makefile"
7627 "cl-release")
7628 (invoke "make" "-C" "source/darkplaces"
7629 (string-append "DP_FS_BASEDIR="
7630 sharedir)
7631 "DP_LINK_TO_LIBJPEG=1"
7632 "DP_SOUND_API=ALSA"
7633 "CC=gcc"
7634 "-f" "makefile"
7635 "sdl-release")
7636 (invoke "make" "-C" "source/darkplaces"
7637 (string-append "DP_FS_BASEDIR="
7638 sharedir)
7639 "DP_LINK_TO_LIBJPEG=1"
7640 "DP_SOUND_API=ALSA"
7641 "CC=gcc"
7642 "-f" "makefile"
7643 "sv-release"))))
7644 (add-before 'configure 'bootstrap
7645 (lambda _
7646 (chdir "source/d0_blind_id")
7647 (invoke "sh" "autogen.sh")))
7648 (add-after 'build 'install-desktop-entry
7649 (lambda* (#:key outputs #:allow-other-keys)
7650 ;; Add .desktop files for the 2 variants and the symlink
7651 (let* ((output (assoc-ref outputs "out"))
7652 (apps (string-append output "/share/applications")))
7653 (mkdir-p apps)
7654 (with-output-to-file
7655 (string-append apps "/xonotic-glx.desktop")
7656 (lambda _
7657 (format #t
7658 "[Desktop Entry]~@
7659 Name=xonotic-glx~@
7660 Comment=Xonotic glx~@
7661 Exec=~a/bin/xonotic-glx~@
7662 TryExec=~@*~a/bin/xonotic-glx~@
7663 Icon=xonotic~@
7664 Categories=Game~@
7665 Type=Application~%"
7666 output)))
7667 (with-output-to-file
7668 (string-append apps "/xonotic-sdl.desktop")
7669 (lambda _
7670 (format #t
7671 "[Desktop Entry]~@
7672 Name=xonotic-sdl~@
7673 Comment=Xonotic sdl~@
7674 Exec=~a/bin/xonotic-sdl~@
7675 TryExec=~@*~a/bin/xonotic-sdl~@
7676 Icon=xonotic~@
7677 Categories=Game~@
7678 Type=Application~%"
7679 output)))
7680 (with-output-to-file
7681 (string-append apps "/xonotic.desktop")
7682 (lambda _
7683 (format #t
7684 "[Desktop Entry]~@
7685 Name=xonotic~@
7686 Comment=Xonotic~@
7687 Exec=~a/bin/xonotic-glx~@
7688 TryExec=~@*~a/bin/xonotic~@
7689 Icon=xonotic~@
7690 Categories=Game~@
7691 Type=Application~%"
7692 output)))
7693 #t)))
7694 (add-after 'install-desktop-entry 'install-icons
7695 (lambda* (#:key outputs #:allow-other-keys)
7696 (let ((out (assoc-ref outputs "out")))
7697 (with-directory-excursion "../../misc/logos/icons_png/"
7698 (for-each
7699 (lambda (file)
7700 (let* ((size (string-filter char-numeric? file))
7701 (icons (string-append out "/share/icons/hicolor/"
7702 size "x" size "/apps")))
7703 (mkdir-p icons)
7704 (copy-file file (string-append icons "/xonotic.png"))))
7705 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7706 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7707 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7708 (add-after 'install-icons 'install-binaries
7709 (lambda* (#:key outputs #:allow-other-keys)
7710 (let ((out (assoc-ref outputs "out")))
7711 (define (install src dst)
7712 (let ((dst (string-append out dst)))
7713 (mkdir-p (dirname dst))
7714 (copy-file src dst)))
7715 (mkdir-p (string-append out "/bin"))
7716 (install "../darkplaces/darkplaces-dedicated"
7717 "/bin/xonotic-dedicated")
7718 (install "../darkplaces/darkplaces-glx"
7719 "/bin/xonotic-glx")
7720 (install "../darkplaces/darkplaces-sdl"
7721 "/bin/xonotic-sdl")
7722 ;; Provide a default xonotic executable, defaulting to SDL.
7723 (symlink (string-append out "/bin/xonotic-sdl")
7724 (string-append out "/bin/xonotic"))
7725 #t)))
7726 (add-after 'install-binaries 'install-data
7727 (lambda* (#:key outputs inputs #:allow-other-keys)
7728 (let* ((out (assoc-ref outputs "out"))
7729 (data (assoc-ref inputs "xonotic-data")))
7730 (symlink (string-append data "/share/xonotic")
7731 (string-append out "/share/xonotic"))
7732 #t)))
7733 (add-after 'install-binaries 'wrap-binaries
7734 (lambda* (#:key outputs inputs #:allow-other-keys)
7735 ;; Curl and libvorbis need to be wrapped so that we get
7736 ;; sound and networking.
7737 (let* ((out (assoc-ref outputs "out"))
7738 (bin (string-append out "/bin/xonotic"))
7739 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7740 (bin-glx (string-append out "/bin/xonotic-glx"))
7741 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7742 (curl (assoc-ref inputs "curl"))
7743 (vorbis (assoc-ref inputs "libvorbis")))
7744 (wrap-program bin
7745 `("LD_LIBRARY_PATH" ":" prefix
7746 (,(string-append curl "/lib:" vorbis "/lib"))))
7747 (wrap-program bin-sdl
7748 `("LD_LIBRARY_PATH" ":" prefix
7749 (,(string-append curl "/lib:" vorbis "/lib"))))
7750 (wrap-program bin-glx
7751 `("LD_LIBRARY_PATH" ":" prefix
7752 (,(string-append curl "/lib:" vorbis "/lib"))))
7753 (wrap-program bin-dedicated
7754 `("LD_LIBRARY_PATH" ":" prefix
7755 (,(string-append curl "/lib:" vorbis "/lib"))))
7756 #t))))))
7757 (inputs
7758 `(("xonotic-data" ,xonotic-data)
7759 ("alsa-lib" ,alsa-lib)
7760 ("curl" ,curl)
7761 ("libjpeg" ,libjpeg-turbo)
7762 ("libmodplug" ,libmodplug)
7763 ("libvorbis" ,libvorbis)
7764 ("libogg" ,libogg)
7765 ("libxpm" ,libxpm)
7766 ("libxxf86dga" ,libxxf86dga)
7767 ("libxxf86vm" ,libxxf86vm)
7768 ("libx11" ,libx11)
7769 ("libxext" ,libxext)
7770 ("libxau" ,libxau)
7771 ("libxdmcp" ,libxdmcp)
7772 ("mesa" ,mesa)
7773 ("glu" ,glu)
7774 ("freetype" ,freetype)
7775 ("sdl2" ,sdl2)
7776 ("libpng" ,libpng)
7777 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7778 (native-inputs
7779 `(("unzip" ,unzip)
7780 ("autoconf" ,autoconf)
7781 ("automake" ,automake)
7782 ("pkg-config" ,pkg-config)
7783 ("libtool" ,libtool)
7784 ("gmp" ,gmp)))
7785 (home-page "https://xonotic.org")
7786 (synopsis "Fast-paced first-person shooter game")
7787 (description
7788 "Xonotic is a free, fast-paced first-person shooter.
7789 The project is geared towards providing addictive arena shooter
7790 gameplay which is all spawned and driven by the community itself.
7791 Xonotic is a direct successor of the Nexuiz project with years of
7792 development between them, and it aims to become the best possible
7793 open-source FPS of its kind.")
7794 (license (list license:gpl2+
7795 license:bsd-3 ; /source/d0_blind_id folder and others
7796 (license:x11-style "" "See file rcon.pl.")))))
7797
7798 (define-public frotz
7799 (package
7800 (name "frotz")
7801 (version "2.44")
7802 (source (origin
7803 (method url-fetch)
7804 (uri (list (string-append
7805 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7806 "frotz/frotz-" version ".tar.gz")
7807 (string-append
7808 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7809 "frotz/frotz-" version ".tar.gz")))
7810 (sha256
7811 (base32
7812 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7813 (build-system gnu-build-system)
7814 (arguments
7815 `(#:tests? #f ; there are no tests
7816 #:phases
7817 (modify-phases %standard-phases
7818 (delete 'configure)
7819 (add-before 'build 'curses
7820 (lambda _
7821 (substitute* "Makefile"
7822 (("lcurses") "lncurses"))
7823 #t))
7824 (replace 'install
7825 (lambda* (#:key outputs #:allow-other-keys)
7826 (let* ((out (assoc-ref outputs "out"))
7827 (bin (string-append out "/bin"))
7828 (man (string-append out "/share/man/man6")))
7829 (install-file "frotz" bin)
7830 (mkdir-p man)
7831 (install-file "doc/frotz.6" man)
7832 #t))))))
7833 (inputs `(("libmodplug" ,libmodplug)
7834 ("libsamplerate" ,libsamplerate)
7835 ("libsndfile" ,libsndfile)
7836 ("libvorbis" ,libvorbis)
7837 ("ncurses" ,ncurses)))
7838 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7839 (description "Frotz is an interpreter for Infocom games and other Z-machine
7840 games in the text adventure/interactive fiction genre. This version of Frotz
7841 complies with standard 1.0 of Graham Nelson's specification. It plays all
7842 Z-code games V1-V8, including V6, with sound support through libao, and uses
7843 ncurses for text display.")
7844 (home-page "http://frotz.sourceforge.net")
7845 (license license:gpl2+)))
7846
7847 (define-public frotz-dumb-terminal
7848 (package
7849 (name "frotz-dumb-terminal")
7850 (version "2.44")
7851 (source (origin
7852 (method url-fetch)
7853 (uri (list (string-append
7854 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7855 "frotz/frotz-" version ".tar.gz")
7856 (string-append
7857 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7858 "frotz/frotz-" version ".tar.gz")))
7859 (sha256
7860 (base32
7861 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7862 (build-system gnu-build-system)
7863 (arguments
7864 `(#:tests? #f ; there are no tests
7865 #:phases
7866 (modify-phases %standard-phases
7867 (delete 'configure)
7868 (replace 'build
7869 (lambda _
7870 (invoke "make" "dumb")))
7871 (replace 'install
7872 (lambda* (#:key outputs #:allow-other-keys)
7873 (let* ((out (assoc-ref outputs "out"))
7874 (bin (string-append out "/bin"))
7875 (man (string-append out "/share/man/man6")))
7876 (install-file "dfrotz" bin)
7877 (mkdir-p man)
7878 (install-file "doc/dfrotz.6" man)
7879 #t))))))
7880 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7881 (description "Frotz is an interpreter for Infocom games and
7882 other Z-machine games in the text adventure/interactive fiction genre.
7883 dfrotz is the dumb interface version. You get no screen control; everything
7884 is just printed to the terminal line by line. The terminal handles all the
7885 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7886 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7887 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7888 to play games on webpages. It can also be made into a chat bot.")
7889 (home-page "http://frotz.sourceforge.net")
7890 (license license:gpl2+)))
7891
7892 (define-public frotz-sdl
7893 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7894 (package
7895 (name "frotz-sdl")
7896 (version "2.45pre")
7897 (source (origin
7898 (method git-fetch)
7899 (uri (git-reference
7900 (url "https://gitlab.com/DavidGriffith/frotz")
7901 (commit commit)))
7902 (sha256
7903 (base32
7904 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7905 (file-name (git-file-name name version))))
7906 (build-system gnu-build-system)
7907 (arguments
7908 `(#:tests? #f ; there are no tests
7909 #:phases
7910 (modify-phases %standard-phases
7911 (delete 'configure)
7912 (add-before 'build 'patch-makefile
7913 (lambda _
7914 (substitute* "Makefile"
7915 (("lcurses") "lncurses")
7916 (("^BUILD_DATE_TIME =.*$")
7917 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
7918 #t))
7919 (replace 'build
7920 (lambda _
7921 (invoke "make" "sdl")))
7922 (replace 'install
7923 (lambda* (#:key outputs #:allow-other-keys)
7924 (let* ((out (assoc-ref outputs "out"))
7925 (bin (string-append out "/bin"))
7926 (man (string-append out "/share/man/man6")))
7927 (install-file "sfrotz" bin)
7928 (mkdir-p man)
7929 (install-file "doc/sfrotz.6" man)
7930 #t))))))
7931 (native-inputs
7932 `(("pkg-config" ,pkg-config)
7933 ("which" ,which)
7934 ("perl" ,perl)))
7935 (inputs `(("sdl2" ,sdl2)
7936 ("sdl2-mixer" ,sdl2-mixer)
7937 ("libmodplug" ,libmodplug)
7938 ("libsamplerate" ,libsamplerate)
7939 ("libsndfile" ,libsndfile)
7940 ("libvorbis" ,libvorbis)
7941 ("ncurses" ,ncurses)
7942 ("freetype" ,freetype)
7943 ("libjpeg-turbo" ,libjpeg-turbo)))
7944 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
7945 (description "Frotz is an interpreter for Infocom games and other Z-machine
7946 games in the text adventure/interactive fiction genre. This version of Frotz
7947 using SDL fully supports all these versions of the Z-Machine including the
7948 graphical version 6. Graphics and sound are created through the use of the SDL
7949 libraries. AIFF sound effects and music in MOD and OGG formats are supported
7950 when packaged in Blorb container files or optionally from individual files.")
7951 (home-page "http://frotz.sourceforge.net")
7952 (license license:gpl2+))))
7953
7954 (define-public frozen-bubble
7955 ;; Last official release is very outdated (2010). Use latest commit (2017).
7956 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
7957 (revision "1"))
7958 (package
7959 (name "frozen-bubble")
7960 (version (git-version "2.2.1" revision commit))
7961 (source
7962 (origin
7963 (method git-fetch)
7964 (uri (git-reference
7965 (url "https://github.com/kthakore/frozen-bubble")
7966 (commit commit)))
7967 (file-name (git-file-name name version))
7968 (sha256
7969 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
7970 (build-system perl-build-system)
7971 (arguments
7972 `(#:phases
7973 (modify-phases %standard-phases
7974 ;; Build process needs to create files in the "server"
7975 ;; directory.
7976 (add-after 'unpack 'fix-permissions
7977 (lambda _
7978 (for-each make-file-writable
7979 (find-files "server" "." #:directories? #t))))
7980 ;; By default, build stops at warnings.
7981 (add-after 'unpack 'prevent-build-error
7982 (lambda _
7983 (substitute* "inc/My/Builder.pm"
7984 (("-Werror") ""))
7985 #t))
7986 (add-after 'install 'install-desktop-file-and-icons
7987 (lambda* (#:key outputs #:allow-other-keys)
7988 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
7989 (hicolor (string-append share "/icons/hicolor")))
7990 ;; Create desktop entry.
7991 (make-desktop-entry-file
7992 (string-append share "/applications/" ,name ".desktop")
7993 #:name "Frozen Bubble"
7994 #:comment "Frozen Bubble arcade game"
7995 #:exec ,name
7996 #:icon ,name
7997 #:categories '("Game" "ArcadeGame"))
7998 ;; Add icons.
7999 (with-directory-excursion "share/icons"
8000 (for-each
8001 (lambda (size)
8002 (let* ((dim (string-append size "x" size))
8003 (dir (string-append hicolor "/" dim "/apps")))
8004 (mkdir-p dir)
8005 (copy-file
8006 (string-append "frozen-bubble-icon-" dim ".png")
8007 (string-append dir "/frozen-bubble.png"))))
8008 '("16" "32" "48" "64"))))
8009 #t))
8010 (add-after 'install 'wrap-perl-libs
8011 (lambda* (#:key outputs #:allow-other-keys)
8012 (let ((out (assoc-ref outputs "out"))
8013 (perl5lib (getenv "PERL5LIB")))
8014 (for-each (lambda (prog)
8015 (wrap-program (string-append out "/" prog)
8016 `("PERL5LIB" ":" prefix
8017 (,(string-append perl5lib ":" out
8018 "/lib/perl5/site_perl")))))
8019 (find-files "bin" ".")))
8020 #t)))))
8021 (native-inputs
8022 `(("perl-alien-sdl" ,perl-alien-sdl)
8023 ("perl-capture-tiny" ,perl-capture-tiny)
8024 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
8025 ("perl-module-build" ,perl-module-build)
8026 ("pkg-config" ,pkg-config)))
8027 (inputs
8028 `(("glib" ,glib)
8029 ("perl-compress-bzip2" ,perl-compress-bzip2)
8030 ("perl-file-sharedir" ,perl-file-sharedir)
8031 ("perl-file-slurp" ,perl-file-slurp)
8032 ("perl-file-which" ,perl-file-which)
8033 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
8034 ("perl-sdl" ,perl-sdl)
8035 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
8036 (home-page "http://frozen-bubble.org/")
8037 (synopsis "Puzzle with bubbles")
8038 (description
8039 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
8040 you attempt to shoot bubbles into groups of the same color to cause them to
8041 pop.
8042
8043 Players compete as penguins and must use the arrow keys to aim a colored
8044 bubble at groups of bubbles. The objective is to clear all the bubbles off
8045 the screen before a bubble passes below a line at the bottom.
8046
8047 It features 100 single-player levels, a two-player mode, music and striking
8048 graphics. A level editor is also included to allow players to create and play
8049 their own levels.")
8050 (license license:gpl2))))
8051
8052 (define-public libmanette
8053 (package
8054 (name "libmanette")
8055 (version "0.2.6")
8056 (source (origin
8057 (method url-fetch)
8058 (uri (string-append "mirror://gnome/sources/libmanette/"
8059 (version-major+minor version) "/"
8060 "libmanette-" version ".tar.xz"))
8061 (sha256
8062 (base32
8063 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
8064 (build-system meson-build-system)
8065 (native-inputs
8066 `(("glib" ,glib "bin") ; for glib-compile-resources
8067 ("gobject-introspection" ,gobject-introspection)
8068 ("pkg-config" ,pkg-config)
8069 ("vala" ,vala)))
8070 (inputs
8071 `(("libevdev" ,libevdev)
8072 ("libgudev" ,libgudev)))
8073 (home-page "https://wiki.gnome.org/Apps/Games")
8074 (synopsis "Game controller library")
8075 (description "Libmanette is a small GObject library giving you simple
8076 access to game controllers. It supports the de-facto standard gamepads as
8077 defined by the W3C standard Gamepad specification or as implemented by the SDL
8078 GameController.")
8079 (license license:lgpl2.1+)))
8080
8081 (define-public quadrapassel
8082 (package
8083 (name "quadrapassel")
8084 (version "3.36.05")
8085 (source (origin
8086 (method url-fetch)
8087 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8088 (version-major+minor version) "/"
8089 "quadrapassel-" version ".tar.xz"))
8090 (sha256
8091 (base32
8092 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8093 (build-system meson-build-system)
8094 (arguments
8095 '(#:glib-or-gtk? #t
8096 #:phases
8097 (modify-phases %standard-phases
8098 (add-after 'unpack 'skip-gtk-update-icon-cache
8099 ;; Don't create 'icon-theme.cache'.
8100 (lambda _
8101 (substitute* "build-aux/meson_post_install.py"
8102 (("gtk-update-icon-cache") (which "true")))
8103 #t)))))
8104 (native-inputs
8105 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8106 ("gettext" ,gettext-minimal)
8107 ("glib" ,glib "bin") ;for glib-compile-resources
8108 ("itstool" ,itstool)
8109 ("libxml2" ,libxml2) ;for xmllint
8110 ("pkg-config" ,pkg-config)
8111 ("vala" ,vala)))
8112 (inputs
8113 `(("clutter" ,clutter)
8114 ("clutter-gtk" ,clutter-gtk)
8115 ("gsound" ,gsound)
8116 ("gtk+" ,gtk+)
8117 ("libcanberra" ,libcanberra)
8118 ("libmanette" ,libmanette)
8119 ("librsvg" ,librsvg)))
8120 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8121 (synopsis "GNOME version of Tetris")
8122 (description "Quadrapassel comes from the classic falling-block game,
8123 Tetris. The goal of the game is to create complete horizontal lines of
8124 blocks, which will disappear. The blocks come in seven different shapes made
8125 from four blocks each: one straight, two L-shaped, one square, and two
8126 S-shaped. The blocks fall from the top center of the screen in a random
8127 order. You rotate the blocks and move them across the screen to drop them in
8128 complete lines. You score by dropping blocks fast and completing lines. As
8129 your score gets higher, you level up and the blocks fall faster.")
8130 (license license:gpl2+)))
8131
8132 (define-public endless-sky
8133 (package
8134 (name "endless-sky")
8135 (version "0.9.12")
8136 (source
8137 (origin
8138 (method git-fetch)
8139 (uri (git-reference
8140 (url "https://github.com/endless-sky/endless-sky")
8141 (commit (string-append "v" version))))
8142 (file-name (git-file-name name version))
8143 (sha256
8144 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
8145 (build-system scons-build-system)
8146 (arguments
8147 `(#:scons ,scons-python2
8148 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8149 #:tests? #f ; no tests
8150 #:phases
8151 (modify-phases %standard-phases
8152 (add-after 'unpack 'patch-resource-locations
8153 (lambda* (#:key outputs #:allow-other-keys)
8154 (substitute* "source/Files.cpp"
8155 (("/usr/local/")
8156 (string-append (assoc-ref outputs "out") "/")))
8157 #t))
8158 (add-after 'unpack 'patch-scons
8159 (lambda _
8160 (substitute* "SConstruct"
8161 ;; Keep environmental variables
8162 (("Environment\\(\\)")
8163 "Environment(ENV = os.environ)")
8164 ;; Install into %out/bin
8165 (("games\"") "bin\""))
8166 #t)))))
8167 (inputs
8168 `(("glew" ,glew)
8169 ("libjpeg" ,libjpeg-turbo)
8170 ("libmad" ,libmad)
8171 ("libpng" ,libpng)
8172 ("openal" ,openal)
8173 ("sdl2" ,sdl2)))
8174 (home-page "https://endless-sky.github.io/")
8175 (synopsis "2D space trading and combat game")
8176 (description "Endless Sky is a 2D space trading and combat game. Explore
8177 other star systems. Earn money by trading, carrying passengers, or completing
8178 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8179 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8180 leave human space behind and hope to find friendly aliens whose culture is more
8181 civilized than your own.")
8182 (license (list license:gpl3+
8183 license:cc-by-sa3.0
8184 license:cc-by-sa4.0
8185 license:public-domain))))
8186
8187 (define-public stepmania
8188 (package
8189 (name "stepmania")
8190 (version "5.1.0-b2")
8191 (source
8192 (origin
8193 (method git-fetch)
8194 (uri (git-reference
8195 (url "https://github.com/stepmania/stepmania")
8196 (commit (string-append "v" version))))
8197 (file-name (git-file-name name version))
8198 (sha256
8199 (base32
8200 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8201 (modules '((guix build utils)))
8202 (snippet
8203 '(begin
8204 ;; Remove song files, which are licensed under a non-commercial
8205 ;; clause, and a course pointing to them.
8206 (for-each delete-file-recursively
8207 '("Songs/StepMania 5/Goin' Under"
8208 "Songs/StepMania 5/MechaTribe Assault"
8209 "Songs/StepMania 5/Springtime"))
8210 (for-each delete-file '("Courses/Default/Jupiter.crs"
8211 "Courses/Default/Jupiter.png"))
8212 ;; Unbundle libpng.
8213 (substitute* "extern/CMakeLists.txt"
8214 (("include\\(CMakeProject-png.cmake\\)") ""))
8215 (delete-file-recursively "extern/libpng")
8216 #t))))
8217 (build-system cmake-build-system)
8218 (arguments
8219 `(#:tests? #f ;FIXME: couldn't find how to run tests
8220 #:build-type "Release"
8221 #:out-of-source? #f ;for the 'install-desktop' phase
8222 #:configure-flags
8223 (list "-DWITH_SYSTEM_FFMPEG=1"
8224 ;; SSE instructions are available on Intel systems only.
8225 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8226 (%current-system)))
8227 '("x86_64" "i686"))
8228 '()
8229 '("-DWITH_SSE2=NO"))
8230 ;; Configuration cannot find GTK2 without the two following
8231 ;; flags.
8232 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8233 (assoc-ref %build-inputs "gtk+")
8234 "/lib/gtk-2.0/include")
8235 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8236 (assoc-ref %build-inputs "glib")
8237 "/lib/glib-2.0/include"))
8238 #:phases
8239 (modify-phases %standard-phases
8240 (add-after 'unpack 'ensure-application-files-can-be-found
8241 (lambda* (#:key outputs #:allow-other-keys)
8242 (let ((out (assoc-ref outputs "out")))
8243 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8244 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8245 (string-append "\"" out
8246 "/share/stepmania/GtkModule.so\"")))
8247 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8248 (("Root = sDirOfExecutable")
8249 (string-append "Root = \"" out "/share/stepmania/\""))
8250 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8251 (string-append "\"" out "/share/stepmania/" dir "\"")))
8252 (substitute* "src/RageFileManager.cpp"
8253 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8254 (string-append "\"" out "/share/stepmania/\""))))
8255 #t))
8256 (add-after 'unpack 'fix-install-subdir
8257 ;; Installation would be done in "%out/stepmania-X.Y", but we
8258 ;; prefer the more common layout "%out/share/stepmania".
8259 (lambda _
8260 (substitute* "src/CMakeLists.txt"
8261 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8262 #t))
8263 (add-after 'unpack 'unbundle-libpng
8264 (lambda* (#:key inputs #:allow-other-keys)
8265 (substitute* "src/CMakeLists.txt"
8266 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8267 (string-append (assoc-ref inputs "libpng") "/include")))
8268 #t))
8269 (add-after 'install 'install-executable
8270 (lambda* (#:key outputs #:allow-other-keys)
8271 (let* ((out (assoc-ref outputs "out"))
8272 (bin (string-append out "/bin"))
8273 (exe (string-append out "/share/stepmania/stepmania")))
8274 (mkdir-p bin)
8275 (symlink exe (string-append bin "/stepmania"))
8276 #t)))
8277 (add-after 'install-executable 'install-desktop
8278 (lambda* (#:key outputs #:allow-other-keys)
8279 (let* ((out (assoc-ref outputs "out"))
8280 (share (string-append out "/share"))
8281 (applications (string-append share "/applications"))
8282 (icons (string-append share "/icons")))
8283 (install-file "stepmania.desktop" applications)
8284 (mkdir-p icons)
8285 (copy-recursively "icons" icons)
8286 #t)))
8287 ;; Move documentation in a more usual place, i.e.,
8288 ;; "%out/share/doc/stepmania/".
8289 (add-after 'install-desktop 'install-doc
8290 (lambda* (#:key outputs #:allow-other-keys)
8291 (let* ((out (assoc-ref outputs "out"))
8292 (share (string-append out "/share")))
8293 (with-directory-excursion share
8294 (mkdir-p "doc")
8295 (symlink "../stepmania/Docs" "doc/stepmania"))
8296 #t))))))
8297 (native-inputs
8298 `(("pkg-config" ,pkg-config)
8299 ("yasm" ,yasm)))
8300 (inputs
8301 `(("alsa-lib" ,alsa-lib)
8302 ;; Per upstream, StepMania is only guaranteed to work with a very
8303 ;; specific FFmpeg version, which is included in the repository as
8304 ;; a Git submodule. This particular version requirement usually
8305 ;; changes every few years.
8306 ("ffmpeg" ,ffmpeg-for-stepmania)
8307 ("glib" ,glib)
8308 ("glew" ,glew)
8309 ("gtk+" ,gtk+-2)
8310 ("jsoncpp" ,jsoncpp)
8311 ("libpng" ,libpng)
8312 ("libjpeg" ,libjpeg-turbo)
8313 ("libmad" ,libmad)
8314 ("libogg" ,libogg)
8315 ("libva" ,libva)
8316 ("libvorbis" ,libvorbis)
8317 ("libxinerama" ,libxinerama)
8318 ("libxrandr" ,libxrandr)
8319 ("mesa" ,mesa)
8320 ("pcre" ,pcre)
8321 ("pulseaudio" ,pulseaudio)
8322 ("sdl" ,sdl2)
8323 ("udev" ,eudev)
8324 ("zlib" ,zlib)))
8325 (synopsis "Advanced rhythm game designed for both home and arcade use")
8326 (description "StepMania is a dance and rhythm game. It features 3D
8327 graphics, keyboard and dance pad support, and an editor for creating your own
8328 steps.
8329
8330 This package provides the core application, but no song is shipped. You need
8331 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8332 (home-page "https://www.stepmania.com")
8333 (license license:expat)))
8334
8335 (define-public btanks
8336 (package
8337 (name "btanks")
8338 (version "0.9.8083")
8339 (source
8340 (origin
8341 (method url-fetch)
8342 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8343 "btanks-" version ".tar.bz2"))
8344 (sha256
8345 (base32
8346 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8347 (build-system scons-build-system)
8348 (arguments
8349 `(#:tests? #f ; there are none
8350 #:scons ,scons-python2
8351 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8352 #:phases
8353 (modify-phases %standard-phases
8354 (add-after 'unpack 'replace-removed-scons-syntax
8355 (lambda _
8356 (substitute* "SConstruct"
8357 (("Options") "Variables")
8358 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8359 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8360 #t))
8361 (add-after 'set-paths 'set-sdl-paths
8362 (lambda* (#:key inputs #:allow-other-keys)
8363 (setenv "CPATH"
8364 (string-append (assoc-ref inputs "sdl")
8365 "/include/SDL:"
8366 (or (getenv "CPATH") "")))
8367 #t))
8368 (add-after 'unpack 'fix-compilation-errors
8369 (lambda _
8370 (substitute* "mrt/base_file.h"
8371 (("#include <string>" m)
8372 (string-append m "\n#include <sys/types.h>")))
8373 (substitute* '("engine/sl08/sl08.h"
8374 "engine/sl08/sl08.py")
8375 (("signal = NULL") "signal = 0")
8376 (("object\\(NULL\\)") "object(0)")
8377 (("func\\(NULL\\)") "func(0)")
8378 ((" connect\\(signal_ref\\)")
8379 " this->connect(signal_ref)"))
8380 (substitute* "math/range_list.h"
8381 ((" lower_bound\\(value\\)")
8382 " this->lower_bound(value)")
8383 ((" erase\\(i\\)")
8384 " this->erase(i)"))
8385 (substitute* "clunk/source.cpp"
8386 (("using namespace clunk" m)
8387 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8388 #t))
8389 (add-after 'unpack 'find-lua
8390 (lambda _
8391 (substitute* "engine/SConscript"
8392 (("lua5.1") "lua-5.1")
8393 (("bt_libs.append\\(lua\\)")
8394 "bt_libs.append(\"lua\")"))
8395 #t)))))
8396 (inputs
8397 `(("expat" ,expat)
8398 ("glu" ,glu)
8399 ("libsmpeg" ,libsmpeg-with-sdl1)
8400 ("libvorbis" ,libvorbis)
8401 ("lua51" ,lua-5.1)
8402 ("sdl" ,(sdl-union (list sdl
8403 sdl-mixer
8404 sdl-image
8405 sdl-ttf)))
8406 ("zlib" ,zlib)))
8407 (native-inputs
8408 `(("pkg-config" ,pkg-config)
8409 ("zip" ,zip)))
8410 (home-page "http://btanks.sourceforge.net")
8411 (synopsis "Multiplayer tank battle game")
8412 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8413 game, where you can choose one of three vehicles and eliminate your enemy
8414 using the whole arsenal of weapons. It has original cartoon-like graphics and
8415 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8416 and cooperative.")
8417 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8418 ;; released under GPLv2 or later. It comes with extra exceptions for the
8419 ;; developers.
8420 (license (list license:gpl2+ license:lgpl2.1+))))
8421
8422 (define-public slimevolley
8423 (package
8424 (name "slimevolley")
8425 (version "2.4.2")
8426 (source
8427 (origin
8428 (method url-fetch)
8429 (uri (string-append "https://download.tuxfamily.org/slime/"
8430 "slimevolley_" version ".tar.gz"))
8431 (sha256
8432 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8433 (build-system cmake-build-system)
8434 (arguments
8435 `(#:tests? #f ;no test
8436 ;; Work around build failure: "error adding symbols: DSO
8437 ;; missing from command line".
8438 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8439 (native-inputs
8440 `(("gettext" ,gettext-minimal)))
8441 (inputs
8442 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8443 (home-page "https://slime.tuxfamily.org/")
8444 (synopsis "Unrealistic 2D volleyball simulation")
8445 (description
8446 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8447 the spirit of some Java games of the same name.
8448
8449 Two teams, 1-3 players each, try to be the first to get 10 points.
8450 This happens when the one ball touches the floor on the other side of
8451 the net. There can be 1 to 8 balls in game. Once one ball touches
8452 the ground, the set ends and all balls are served again.")
8453 (license license:gpl3+)))
8454
8455 (define-public slingshot
8456 (package
8457 (name "slingshot")
8458 (version "0.9")
8459 (source
8460 (origin
8461 (method git-fetch)
8462 (uri (git-reference
8463 (url "https://github.com/ryanakca/slingshot")
8464 (commit version)))
8465 (file-name (git-file-name name version))
8466 (sha256
8467 (base32
8468 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8469 (build-system python-build-system)
8470 (arguments
8471 `(#:python ,python-2))
8472 (inputs
8473 `(("python-pygame" ,python2-pygame)))
8474 (home-page "https://github.com/ryanakca/slingshot")
8475 (synopsis "Simple 2D shooting strategy game set in space")
8476 (description "Slingshot is a two-dimensional strategy game where two
8477 players attempt to shoot one another through a section of space populated by
8478 planets. The main feature of the game is that the shots, once fired, are
8479 affected by the gravity of the planets.")
8480 (license license:gpl2+)))
8481
8482 (define-public 4dtris
8483 (package
8484 (name "4dtris")
8485 (version "0.4.3")
8486 (source
8487 (origin
8488 (method url-fetch)
8489 (uri (string-append "https://launchpad.net/4dtris/"
8490 (version-major+minor version)
8491 "/" version "/+download/4dtris_"
8492 version ".orig.tar.gz"))
8493 (sha256
8494 (base32
8495 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8496 (build-system gnu-build-system)
8497 (arguments
8498 `(#:phases
8499 (modify-phases %standard-phases
8500 (add-after 'unpack 'fix-install-directories
8501 (lambda* (#:key outputs #:allow-other-keys)
8502 (let ((out (assoc-ref outputs "out")))
8503 (substitute* "Makefile.in"
8504 (("bindir = /usr/games")
8505 (string-append "bindir = " out "/bin"))
8506 (("/usr/share/applications")
8507 (string-append out "/share/applications"))
8508 (("/usr/share/games/4dtris")
8509 (string-append out "/share/4dtris"))))
8510 #t))
8511 (add-after 'set-paths 'set-sdl-paths
8512 (lambda* (#:key inputs #:allow-other-keys)
8513 (setenv "CPATH"
8514 (string-append (assoc-ref inputs "sdl")
8515 "/include/SDL:"
8516 (or (getenv "CPATH") "")))
8517 #t)))))
8518 (inputs
8519 `(("fontconfig" ,fontconfig)
8520 ("freeglut" ,freeglut)
8521 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8522 (home-page "https://launchpad.net/4dtris/")
8523 (synopsis "4D Tetris")
8524 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8525 game field is extended to 4D space, which has to filled up by the gamer with
8526 4D hyper cubes.")
8527 (license license:gpl3)))
8528
8529 (define-public arx-libertatis
8530 (package
8531 (name "arx-libertatis")
8532 (version "1.1.2")
8533 (source
8534 (origin
8535 (method url-fetch)
8536 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8537 version ".tar.xz"))
8538 (sha256
8539 (base32
8540 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8541 (build-system cmake-build-system)
8542 (outputs '("out" "installer"))
8543 (arguments
8544 '(#:tests? #f ; No tests.
8545 #:phases
8546 (modify-phases %standard-phases
8547 (add-after 'unpack 'fix-install-helper-paths
8548 (lambda* (#:key inputs #:allow-other-keys)
8549 (let ((p7zip (assoc-ref inputs "p7zip"))
8550 (innoextract (assoc-ref inputs "innoextract"))
8551 (wget (assoc-ref inputs "wget"))
8552 (zenity (assoc-ref inputs "zenity")))
8553 (substitute* "scripts/arx-install-data"
8554 (("have innoextract")
8555 (string-append "have " innoextract "/bin/innoextract"))
8556 (("then innoextract")
8557 (string-append "then " innoextract "/bin/innoextract"))
8558 (("else innoextract")
8559 (string-append "else " innoextract "/bin/innoextract"))
8560 (("for _extract_zip_sz in 7za 7z")
8561 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8562 (("else if have 7z")
8563 (string-append "else if have " p7zip "/bin/7za"))
8564 (("7z x -tiso")
8565 (string-append p7zip "/bin/7z x -tiso"))
8566 (("if have wget")
8567 (string-append "if have " wget "/bin/wget"))
8568 (("wget -O")
8569 (string-append wget "/bin/wget -O"))
8570 (("for backend in \\$preferred zenity")
8571 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8572 (("zenity +--title")
8573 (string-append zenity "/bin/zenity --title"))
8574 (("^zenity\\)")
8575 (string-append zenity "/bin/zenity)"))))
8576 #t))
8577 (add-after 'install 'move-installer
8578 (lambda* (#:key outputs #:allow-other-keys)
8579 (let ((out (assoc-ref outputs "out"))
8580 (installer (assoc-ref outputs "installer")))
8581 (mkdir-p (string-append installer "/bin"))
8582 (rename-file (string-append out "/bin/arx-install-data")
8583 (string-append installer "/bin/arx-install-data"))))))))
8584 (inputs
8585 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8586 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8587 ("glew" ,glew)
8588 ("openal" ,openal)
8589 ("zlib" ,zlib)
8590 ("boost" ,boost)
8591 ("glm" ,glm)
8592 ("freetype" ,freetype)
8593 ;; The following are only needed by the arx-install-data script.
8594 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8595 ("zenity" ,zenity) ; GUI for install-helper.
8596 ("wget" ,wget) ; Used by the install-helper to download the patch.
8597 ;; The install-helper needs it to extract the patch.
8598 ("innoextract" ,innoextract)))
8599 (home-page "https://arx-libertatis.org/")
8600 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8601 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8602 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8603 This port however does not include the game data, so you need to obtain a copy
8604 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8605 features crafting, melee and ranged combat, as well as a unique casting system
8606 where the player draws runes in real time to effect the desired spell.")
8607 (license license:gpl3+)))
8608
8609 (define-public edgar
8610 (package
8611 (name "edgar")
8612 (version "1.33")
8613 (source
8614 (origin
8615 (method url-fetch)
8616 (uri
8617 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8618 version "/edgar-" version "-1.tar.gz"))
8619 (sha256
8620 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8621 (build-system gnu-build-system)
8622 (arguments '(#:tests? #f ; there are no tests
8623 #:make-flags
8624 (list "CC=gcc"
8625 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8626 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8627 #:phases
8628 (modify-phases %standard-phases
8629 (delete 'configure)
8630 (add-before 'build 'fix-env
8631 (lambda* (#:key inputs #:allow-other-keys)
8632 (setenv "CPATH"
8633 (string-append (assoc-ref inputs "sdl2-union")
8634 "/include/SDL2:"
8635 (or (getenv "CPATH") "")))
8636 #t)))))
8637 (inputs
8638 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8639 ("zlib" ,zlib)))
8640 (native-inputs
8641 `(("pkg-config" ,pkg-config)
8642 ("autoconf" ,autoconf)
8643 ("automake" ,automake)
8644 ("gnu-gettext" ,gettext-minimal)
8645 ("libtool" ,libtool)
8646 ("which" ,which)))
8647 (synopsis "2d action platformer game")
8648 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8649 When Edgar's father fails to return home after venturing out one dark and stormy night,
8650 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8651 a fortress beyond the forbidden swamp.")
8652 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8653 (license license:gpl2+)))
8654
8655 (define-public openclonk
8656 (package
8657 (name "openclonk")
8658 (version "8.1")
8659 (source (origin
8660 (method url-fetch)
8661 (uri (string-append
8662 "https://www.openclonk.org/builds/release/" version "/"
8663 "openclonk-" version "-src.tar.bz2"))
8664 (sha256
8665 (base32
8666 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8667 (build-system cmake-build-system)
8668 (arguments
8669 `(#:configure-flags '("-DAudio_TK=OpenAL")
8670 #:test-target "tests"
8671 #:phases
8672 (modify-phases %standard-phases
8673 (add-after 'unpack 'prepare-gmock
8674 (lambda* (#:key inputs #:allow-other-keys)
8675 (mkdir "gmock")
8676 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8677 (substitute* "tests/CMakeLists.txt"
8678 (("/usr/src/gmock")
8679 (string-append (getcwd) "/gmock/googlemock"))
8680 (("/usr/src/gtest")
8681 (string-append (getcwd) "/gmock/googletest"))
8682 (("PATH_SUFFIXES \"src\" \"gtest\"")
8683 "PATH_SUFFIXES \"src\""))
8684 #t))
8685 (add-after 'unpack 'adjust-backward-cpp-includes
8686 (lambda _
8687 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8688 ;; that includes external libraries such as libdl from glibc.
8689 ;; By default, CMake interface includes are treated as "system
8690 ;; headers", and GCC behaves poorly when glibc is passed as a
8691 ;; system header (causing #include_next failures).
8692
8693 ;; Here we prevent targets that consume the Backward::Backward
8694 ;; interface from treating it as "system includes".
8695 (substitute* "CMakeLists.txt"
8696 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8697 (string-append "set_property(TARGET " target " PROPERTY "
8698 "NO_SYSTEM_FROM_IMPORTED true)\n"
8699 all)))
8700 #t))
8701 (add-after 'unpack 'add-libiberty
8702 ;; Build fails upon linking executables without this.
8703 (lambda _
8704 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8705 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8706 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8707 #t))
8708 (add-after 'add-libiberty 'lax-freealut-requirement
8709 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8710 ;; it as 1.0.1. Force minimal version.
8711 (lambda _
8712 (substitute* "cmake/FindAudio.cmake"
8713 (("freealut>=1.1.0") "freealut>=1.0.1"))
8714 #t))
8715 (add-after 'lax-freealut-requirement 'fix-directories
8716 ;; Prefer "$out/share/openclonk" over
8717 ;; "$out/share/games/openclonk". Also install "openclonk"
8718 ;; binary in "bin/", not "games/".
8719 (lambda _
8720 (substitute* "CMakeLists.txt"
8721 (("share/games/openclonk") "share/openclonk")
8722 (("TARGETS openclonk DESTINATION games")
8723 "TARGETS openclonk DESTINATION bin"))
8724 #t)))))
8725 (native-inputs
8726 `(("googlemock" ,(package-source googletest))
8727 ("googletest" ,googletest)
8728 ("pkg-config" ,pkg-config)))
8729 (inputs
8730 `(("freealut" ,freealut)
8731 ("freetype" ,freetype)
8732 ("glew" ,glew)
8733 ("libiberty" ,libiberty)
8734 ("libjpeg" ,libjpeg-turbo)
8735 ("libogg" ,libogg)
8736 ("libpng" ,libpng)
8737 ("libvorbis" ,libvorbis)
8738 ("libxrandr" ,libxrandr)
8739 ("mesa" ,mesa)
8740 ("miniupnpc" ,miniupnpc)
8741 ("openal" ,openal)
8742 ("qtbase" ,qtbase)
8743 ("readline" ,readline)
8744 ("sdl" ,sdl2)
8745 ("tinyxml" ,tinyxml)
8746 ("zlib" ,zlib)))
8747 (home-page "https://www.openclonk.org/")
8748 (synopsis
8749 "Multiplayer action game where you control small and nimble humanoids")
8750 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8751 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8752 antfarm-style landscape, the player controls a crew of Clonks, small but
8753 robust humanoid beings. The game encourages free play but the normal goal is
8754 to either exploit valuable resources from the earth by building a mine or
8755 fight each other on an arena-like map.")
8756 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8757 (license (list license:isc license:cc-by3.0))))
8758
8759 (define-public flare-engine
8760 (package
8761 (name "flare-engine")
8762 (version "1.11")
8763 (source (origin
8764 (method git-fetch)
8765 (uri (git-reference
8766 (url "https://github.com/flareteam/flare-engine")
8767 (commit (string-append "v" version))))
8768 (file-name (git-file-name name version))
8769 (sha256
8770 (base32
8771 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8772 (build-system cmake-build-system)
8773 (arguments
8774 `(#:tests? #f ;no test
8775 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8776 (inputs
8777 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8778 ("python" ,python-wrapper)
8779 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8780 (home-page "http://www.flarerpg.org/")
8781 (synopsis "Action Roleplaying Engine")
8782 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8783 game engine built to handle a very specific kind of game: single-player 2D
8784 action RPGs.")
8785 (license license:gpl3+)))
8786
8787 (define-public flare-game
8788 (package
8789 (name "flare-game")
8790 (version "1.11")
8791 (source (origin
8792 (method git-fetch)
8793 (uri (git-reference
8794 (url "https://github.com/flareteam/flare-game")
8795 (commit (string-append "v" version))))
8796 (file-name (git-file-name name version))
8797 (sha256
8798 (base32
8799 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8800 (build-system cmake-build-system)
8801 (arguments
8802 `(#:tests? #f ;no test
8803 #:configure-flags '("-DDATADIR=share/flare")
8804 #:phases
8805 (modify-phases %standard-phases
8806 ;; Flare expects the mods to be located in the same folder.
8807 ;; Yet, "default" mod is in the engine, whereas the others
8808 ;; are in the current package. Merge everything here with
8809 ;; a symlink.
8810 (add-after 'install 'add-default-mod
8811 (lambda* (#:key inputs outputs #:allow-other-keys)
8812 (let* ((out (assoc-ref outputs "out"))
8813 (mods (string-append out "/share/flare/mods")))
8814 (with-directory-excursion mods
8815 (symlink (string-append (assoc-ref inputs "flare-engine")
8816 "/share/flare/mods/default")
8817 "default")))
8818 #t))
8819 (add-after 'install 'install-executable
8820 ;; The package only provides assets for the game, the
8821 ;; executable coming from "flare-engine". Since more than
8822 ;; one game may use the engine, we create a new executable,
8823 ;; "flare-game", which launches the engine with appropriate
8824 ;; parameters.
8825 (lambda* (#:key inputs outputs #:allow-other-keys)
8826 (let* ((out (assoc-ref outputs "out"))
8827 (bash (string-append (assoc-ref inputs "bash")
8828 "/bin/bash"))
8829 (flare (string-append (assoc-ref inputs "flare-engine")
8830 "/bin/flare"))
8831 (script (string-append out "/bin/flare-game")))
8832 (mkdir-p (dirname script))
8833 (call-with-output-file script
8834 (lambda (port)
8835 (format port
8836 "#!~a
8837 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8838 bash
8839 flare
8840 out)))
8841 (chmod script #o755))
8842 #t)))))
8843 (inputs
8844 `(("flare-engine" ,flare-engine)))
8845 (home-page "http://www.flarerpg.org/")
8846 (synopsis "Fantasy action RPG using the FLARE engine")
8847 (description "Flare is a single-player 2D action RPG with
8848 fast-paced action and a dark fantasy style.")
8849 (license license:cc-by-sa3.0)))
8850
8851 (define-public meritous
8852 (package
8853 (name "meritous")
8854 (version "1.5")
8855 (source (origin
8856 (method git-fetch)
8857 (uri (git-reference
8858 (url "https://gitlab.com/meritous/meritous.git")
8859 (commit (string-append "v" version))))
8860 (file-name (git-file-name name version))
8861 (sha256
8862 (base32
8863 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8864 (build-system gnu-build-system)
8865 (arguments
8866 `(#:tests? #f ;no test
8867 #:make-flags
8868 (list "CC=gcc"
8869 (string-append "prefix=" (assoc-ref %outputs "out")))
8870 #:phases
8871 (modify-phases %standard-phases
8872 (delete 'configure)
8873 (add-after 'unpack 'fix-sdl-path
8874 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
8875 ;; directory, not SDL-union provided as an input to the package.
8876 ;; We force the latter with "--prefix=" option.
8877 (lambda* (#:key inputs #:allow-other-keys)
8878 (substitute* "Makefile"
8879 (("sdl-config" command)
8880 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8881 #t))
8882 (add-after 'unpack 'fix-crash
8883 ;; XXX: Songs are not present in the repository, due to licensing
8884 ;; issues. Yet, the game tries to load them, and, since it cannot
8885 ;; find them, crashes. Users cannot add them back, the store being
8886 ;; read-only, so we turn off background music altogether.
8887 (lambda _
8888 (substitute* "src/audio.c"
8889 (("PlayBackgroundMusic\\(new_track\\);" all)
8890 (string-append "// " all)))
8891 #t)))))
8892 (native-inputs
8893 `(("intltool" ,intltool)))
8894 (inputs
8895 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
8896 ("zlib" ,zlib)))
8897 (home-page "https://gitlab.com/meritous/meritous")
8898 (synopsis "Action-adventure dungeon crawl game")
8899 (description "Far below the surface of the planet is a place of limitless
8900 power. Those that seek to control such a utopia will soon bring an end to
8901 themselves. Seeking an end to the troubles that plague him, PSI user Merit
8902 journeys into the hallowed Orcus Dome in search of answers.
8903
8904 Meritous is a action-adventure game with simple controls but a challenge to
8905 find a balance of power versus recovery time during real-time battles. Set in
8906 a procedurally generated world, the player can explore thousands of rooms in
8907 search of powerful artifacts, tools to help them, and to eventually free the
8908 Orcus Dome from evil.")
8909 (license license:gpl3+)))
8910
8911 (define-public marble-marcher
8912 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
8913 (revision "1"))
8914 (package
8915 (name "marble-marcher")
8916 (version (git-version "0" revision commit))
8917 (source (origin
8918 (method git-fetch)
8919 (uri (git-reference
8920 (url "https://github.com/HackerPoet/MarbleMarcher")
8921 (commit commit)))
8922 (file-name (git-file-name name version))
8923 (sha256
8924 (base32
8925 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
8926 (build-system cmake-build-system)
8927 (arguments
8928 `(#:tests? #f ; there are none
8929 #:phases
8930 (modify-phases %standard-phases
8931 (add-after 'unpack 'embed-asset-directory
8932 (lambda* (#:key outputs #:allow-other-keys)
8933 (let ((assets (string-append (assoc-ref outputs "out")
8934 "/share/marble-marcher/assets/")))
8935 ;; Some of the files we're patching are
8936 ;; ISO-8859-1-encoded, so choose it as the default
8937 ;; encoding so the byte encoding is preserved.
8938 (with-fluids ((%default-port-encoding #f))
8939 (substitute* "src/Resource.rc"
8940 (("../assets/icon.ico")
8941 (string-append assets "icon.ico")))
8942 (substitute* "src/Res.h"
8943 (("assets/") assets))))
8944 #t))
8945 (replace 'install
8946 (lambda* (#:key outputs #:allow-other-keys)
8947 (let* ((out (assoc-ref outputs "out"))
8948 (assets (string-append out "/share/marble-marcher/assets"))
8949 (bin (string-append out "/bin/")))
8950 (mkdir-p bin)
8951 (mkdir-p assets)
8952 (copy-recursively "../source/assets" assets)
8953 (install-file "MarbleMarcher" bin))
8954 #t)))))
8955 (inputs
8956 `(("eigen" ,eigen)
8957 ("mesa" ,mesa)
8958 ("sfml" ,sfml)))
8959 (native-inputs
8960 `(("pkg-config" ,pkg-config)))
8961 (home-page "https://codeparade.itch.io/marblemarcher")
8962 (synopsis "Guide a marble across fractal landscapes")
8963 (description "Marble Marcher is a video game that uses a fractal physics
8964 engine and fully procedural rendering to produce beautiful and unique
8965 gameplay. The game is played on the surface of evolving fractals. The goal
8966 of the game is to get your marble to the flag as quickly as possible. But be
8967 careful not to fall off the level or get crushed by the fractal! There are 24
8968 levels to unlock.")
8969 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
8970 (license (list license:gpl2+
8971 license:silofl1.1
8972 license:cc-by-sa3.0)))))
8973
8974 ;; This must be updated together with flightgear.
8975 (define simgear
8976 (package
8977 (name "simgear")
8978 (version "2018.3.5")
8979 (source
8980 (origin
8981 (method url-fetch)
8982 (uri (string-append "mirror://sourceforge/flightgear/release-"
8983 (version-major+minor version) "/"
8984 "simgear-" version ".tar.bz2"))
8985 (sha256
8986 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
8987 (build-system cmake-build-system)
8988 (arguments
8989 `(#:phases
8990 (modify-phases %standard-phases
8991 (replace 'check
8992 (lambda _
8993 ;; Skip tests that require internet access.
8994 (invoke "ctest" "-E" "(http|dns)"))))))
8995 (inputs
8996 `(("boost" ,boost-for-mysql) ; fails with 1.69
8997 ("curl" ,curl)
8998 ("expat" ,expat)
8999 ("mesa" ,mesa)
9000 ("openal" ,openal)
9001 ("openscenegraph" ,openscenegraph-3.4)
9002 ("zlib" ,zlib)))
9003 (home-page "https://home.flightgear.org/")
9004 (synopsis "Libraries for 3D simulations and games")
9005 (description "SimGear is a set of libraries designed to be used as
9006 building blocks for quickly assembling 3D simulations, games, and
9007 visualization applications. SimGear is developed by the FlightGear project
9008 and also provides the base for the FlightGear Flight Simulator.")
9009 (license license:lgpl2.0+)))
9010
9011 (define-public flightgear
9012 (package
9013 (name "flightgear")
9014 (version (package-version simgear))
9015 (source
9016 (origin
9017 (method url-fetch)
9018 (uri (string-append "mirror://sourceforge/flightgear/release-"
9019 (version-major+minor version) "/"
9020 "flightgear-" version ".tar.bz2"))
9021 (sha256
9022 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
9023 (modules '((guix build utils)))
9024 (snippet
9025 '(begin
9026 ;; There are some bundled libraries.
9027 (for-each delete-file-recursively
9028 '("3rdparty/sqlite3/"))
9029 #t))))
9030 (build-system cmake-build-system)
9031 (arguments
9032 `(#:configure-flags
9033 (list "-DSYSTEM_SQLITE=ON"
9034 (string-append "-DFG_DATA_DIR="
9035 (assoc-ref %outputs "out")
9036 "/share/flightgear"))
9037 ;; TODO: test cannot be run because the "run_test_suite" executable
9038 ;; does not seem to be built.
9039 #:tests? #f
9040 #:phases
9041 (modify-phases %standard-phases
9042 (add-after 'install 'wrap-executable
9043 (lambda* (#:key inputs outputs #:allow-other-keys)
9044 (let ((out (assoc-ref outputs "out")))
9045 (wrap-program (string-append out "/bin/fgfs")
9046 `("QT_PLUGIN_PATH" ":" prefix
9047 ,(map (lambda (label)
9048 (string-append (assoc-ref inputs label)
9049 "/lib/qt5/plugins"))
9050 '("qtbase" "qtdeclarative" "qtsvg")))
9051 `("QML2_IMPORT_PATH" ":" prefix
9052 ,(map (lambda (label)
9053 (string-append (assoc-ref inputs label)
9054 "/lib/qt5/qml"))
9055 '("qtdeclarative" "qtsvg"))))
9056 #t)))
9057 (add-after 'install 'install-data
9058 (lambda* (#:key inputs outputs #:allow-other-keys)
9059 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
9060 (mkdir-p share)
9061 (with-directory-excursion share
9062 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
9063 "--strip-components=1")))
9064 #t)))))
9065 (inputs
9066 `(("boost" ,boost-for-mysql) ; same as simgear
9067 ("dbus" ,dbus)
9068 ("eudev" ,eudev)
9069 ("freeglut" ,freeglut)
9070 ("freetype" ,freetype)
9071 ("glew" ,glew)
9072 ("libpng" ,libpng)
9073 ("openal" ,openal)
9074 ("openscenegraph" ,openscenegraph-3.4)
9075 ("plib" ,plib)
9076 ("qtbase" ,qtbase)
9077 ("qtdeclarative" ,qtdeclarative)
9078 ("qtsvg" ,qtsvg)
9079 ("simgear" ,simgear)
9080 ("speexdsp" ,speexdsp)
9081 ("sqlite" ,sqlite)
9082 ("zlib" ,zlib)))
9083 (native-inputs
9084 `(("cppunit" ,cppunit)
9085 ("pkg-config" ,pkg-config)
9086 ("qttools" ,qttools)
9087 ("flightgear-data"
9088 ,(origin
9089 (method url-fetch)
9090 (uri (string-append "mirror://sourceforge/flightgear/release-"
9091 (version-major+minor version) "/"
9092 "FlightGear-" version "-data.tar.bz2"))
9093 (sha256
9094 (base32
9095 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9096 (home-page "https://home.flightgear.org/")
9097 (synopsis "Flight simulator")
9098 (description "The goal of the FlightGear project is to create a
9099 sophisticated flight simulator framework for use in research or academic
9100 environments, pilot training, as an industry engineering tool, for DIY-ers to
9101 pursue their favorite interesting flight simulation idea, and last but
9102 certainly not least as a fun, realistic, and challenging desktop flight
9103 simulator.")
9104 (license license:gpl2+)))
9105
9106 (define-public jumpnbump
9107 (package
9108 (name "jumpnbump")
9109 (version "1.61")
9110 (source (origin
9111 (method git-fetch)
9112 (uri (git-reference
9113 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9114 (commit version)))
9115 (file-name (git-file-name name version))
9116 (sha256
9117 (base32
9118 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9119 (build-system gnu-build-system)
9120 (arguments
9121 `(#:make-flags
9122 (list "CC=gcc"
9123 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9124 #:tests? #f ;no test
9125 #:phases
9126 (modify-phases %standard-phases
9127 (delete 'configure) ;no configure script
9128 (add-after 'unpack 'fix-sdl-path
9129 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9130 ;; directory, not SDL-union provided as an input to the package.
9131 ;; We force the latter with "--prefix=" option.
9132 (lambda* (#:key inputs #:allow-other-keys)
9133 (substitute* "Makefile"
9134 (("sdl2-config" command)
9135 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9136 #t)))))
9137 (inputs
9138 `(("bzip2" ,bzip2)
9139 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9140 ("zlib" ,zlib)))
9141 (native-inputs
9142 `(("gettext" ,gettext-minimal))) ;for msgfmt
9143 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9144 (synopsis "Multiplayer platform game with bunnies")
9145 (description "You, as a bunny, have to jump on your opponents to make them
9146 explode. It is a true multiplayer game; you cannot play this alone. You can
9147 play with up to four players simultaneously. It has network support.")
9148 (license license:gpl2+)))
9149
9150 (define-public hedgewars
9151 (package
9152 (name "hedgewars")
9153 (version "1.0.0")
9154 (source (origin
9155 (method url-fetch)
9156 (uri (string-append "https://www.hedgewars.org/download/releases/"
9157 "hedgewars-src-" version ".tar.bz2"))
9158 (sha256
9159 (base32
9160 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9161 (build-system cmake-build-system)
9162 (arguments
9163 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9164 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9165 ;; a Pascal to C translator and Clang instead.
9166 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9167 "-Dhaskell_flags=-dynamic;-fPIC")
9168 #:phases
9169 (modify-phases %standard-phases
9170 (replace 'check
9171 (lambda _ (invoke "ctest")))
9172 (add-after 'install 'install-icon
9173 (lambda _
9174 ;; Install icon for the desktop file.
9175 (let* ((out (assoc-ref %outputs "out"))
9176 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9177 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9178 (install-file "misc/hedgewars.png" icons)))
9179 #t)))))
9180 (inputs
9181 `(("ffmpeg" ,ffmpeg)
9182 ("freeglut" ,freeglut)
9183 ("ghc-entropy" ,ghc-entropy)
9184 ("ghc-hslogger" ,ghc-hslogger)
9185 ("ghc-network" ,ghc-network)
9186 ("ghc-random" ,ghc-random)
9187 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9188 ("ghc-sandi" ,ghc-sandi)
9189 ("ghc-sha" ,ghc-sha)
9190 ("ghc-utf8-string" ,ghc-utf8-string)
9191 ("ghc-vector" ,ghc-vector)
9192 ("ghc-zlib" ,ghc-zlib)
9193 ("glew" ,glew)
9194 ("libpng" ,libpng)
9195 ("lua" ,lua-5.1)
9196 ("physfs" ,physfs)
9197 ("qtbase" ,qtbase)
9198 ("sdl" ,(sdl-union
9199 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9200 (native-inputs
9201 `(("clang" ,clang)
9202 ("ghc" ,ghc)
9203 ("pkg-config" ,pkg-config)
9204 ("qttools" ,qttools)))
9205 (home-page "https://hedgewars.org/")
9206 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9207 (description
9208 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9209 featuring the antics of pink hedgehogs with attitude as they battle from the
9210 depths of hell to the depths of space.
9211
9212 As commander, it's your job to assemble your crack team of hedgehog soldiers
9213 and bring the war to your enemy.")
9214 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9215 ;; scripts are distributed under various terms.
9216 (license (list license:gpl2
9217 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9218 license:expat license:fdl1.3+ license:public-domain
9219 license:zlib))))
9220
9221 (define-public harmonist
9222 (package
9223 (name "harmonist")
9224 (version "0.3.0")
9225 (source (origin
9226 (method git-fetch)
9227 (uri (git-reference
9228 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9229 (commit (string-append "v" version))))
9230 (file-name (git-file-name name version))
9231 (sha256
9232 (base32
9233 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
9234 (build-system go-build-system)
9235 (arguments
9236 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9237 (inputs
9238 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
9239 (home-page "https://harmonist.tuxfamily.org/")
9240 (synopsis "Stealth coffee-break roguelike game")
9241 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9242 coffee-break roguelike game. The game has a heavy focus on tactical
9243 positioning, light and noise mechanisms, making use of various terrain types
9244 and cones of view for monsters. Aiming for a replayable streamlined experience,
9245 the game avoids complex inventory management and character building, relying
9246 on items and player adaptability for character progression.")
9247 (license license:isc)))
9248
9249 (define-public harmonist-tk
9250 (package
9251 (inherit harmonist)
9252 (name "harmonist-tk")
9253 (arguments
9254 (append
9255 (package-arguments harmonist)
9256 `(#:phases
9257 (modify-phases %standard-phases
9258 (replace 'build
9259 (lambda _
9260 (invoke "go" "install" "-v" "-x" "--tags" "tk"
9261 "git.tuxfamily.org/harmonist/harmonist")))
9262 (replace 'check
9263 (lambda _
9264 (invoke "go" "test" "--tags" "tk"
9265 "git.tuxfamily.org/harmonist/harmonist")))))))
9266 (inputs
9267 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
9268
9269 (define-public drascula
9270 (package
9271 (name "drascula")
9272 (version "1.0")
9273 (source (origin
9274 (method url-fetch)
9275 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9276 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9277 "drascula-" version ".zip"))
9278 (sha256
9279 (base32
9280 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9281 (build-system trivial-build-system)
9282 (arguments
9283 `(#:modules ((guix build utils))
9284 #:builder
9285 (begin
9286 (use-modules (guix build utils)
9287 (ice-9 match))
9288 (let* ((out (assoc-ref %outputs "out"))
9289 (share (string-append out "/share/drascula"))
9290 (scummvm (assoc-ref %build-inputs "scummvm")))
9291 ;; Install data.
9292 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9293 "/bin/unzip"))
9294 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9295 (for-each
9296 (lambda (input)
9297 (invoke unzip
9298 "-j"
9299 (assoc-ref %build-inputs input)
9300 "-x" "__MACOSX")
9301 ;; Every input provides "readme.txt", and we want to
9302 ;; preserve them all. Therefore we rename them first.
9303 (match input
9304 ("drascula-int"
9305 (rename-file "readme.txt" "readme-international.txt"))
9306 ("drascula-audio"
9307 (rename-file "readme.txt" "readme-audio.txt"))
9308 (_ #f))
9309 ;; Install documentation.
9310 (for-each (lambda (f) (install-file f doc))
9311 (find-files "." "\\.(txt|doc)$"))
9312 ;; Install data.
9313 (for-each (lambda (f) (install-file f share))
9314 (find-files "." "\\.(ogg|00[0-9])$")))
9315 '("drascula-audio" "drascula-int" "source")))
9316 ;; Create standalone executable.
9317 (let* ((bin (string-append out "/bin"))
9318 (executable (string-append bin "/drascula"))
9319 (bash (string-append (assoc-ref %build-inputs "bash")
9320 "/bin/bash")))
9321 (mkdir-p bin)
9322 (with-output-to-file executable
9323 (lambda ()
9324 (format #t "#!~a~%" bash)
9325 (format #t
9326 "exec ~a/bin/scummvm --path=~a drascula~%"
9327 scummvm share)))
9328 (chmod executable #o755))
9329 ;; Create desktop file. There is no dedicated icon for the
9330 ;; game, so we borrow SCUMMVM's.
9331 (let ((apps (string-append out "/share/applications")))
9332 (mkdir-p apps)
9333 (make-desktop-entry-file
9334 (string-append apps "/drascula.desktop")
9335 #:name "Drascula: The Vampire Strikes Back"
9336 #:generic-name "Drascula"
9337 #:exec (string-append out "/bin/drascula")
9338 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9339 #:categories '("AdventureGame" "Game" "RolePlaying")
9340 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9341 #:comment '((#f "Classic 2D point and click adventure game")
9342 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9343 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9344 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9345 #t))))
9346 (native-inputs
9347 `(("bash" ,bash)
9348 ("unzip" ,unzip)))
9349 (inputs
9350 `(("scummvm" ,scummvm)
9351 ("drascula-int"
9352 ,(let ((version "1.1"))
9353 (origin
9354 (method url-fetch)
9355 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9356 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9357 "drascula-int-" version ".zip"))
9358 (sha256
9359 (base32
9360 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9361 ("drascula-audio"
9362 ,(let ((version "2.0"))
9363 (origin
9364 (method url-fetch)
9365 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9366 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9367 "drascula-audio-" version ".zip"))
9368 (sha256
9369 (base32
9370 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9371 (home-page "https://www.scummvm.org")
9372 (synopsis "Classic 2D point and click adventure game")
9373 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9374 point and click adventure game.
9375
9376 In Drascula you play the role of John Hacker, a British estate agent, that
9377 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9378 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9379 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9380 the World and demonstrating that he is even more evil than his brother Vlad.")
9381 ;; Drascula uses a BSD-like license.
9382 (license (license:non-copyleft "file:///readme.txt"))))
9383
9384 (define (make-lure-package name language hash)
9385 (package
9386 (name name)
9387 (version "1.1")
9388 (source
9389 (origin
9390 (method url-fetch)
9391 (uri (string-append
9392 "mirror://sourceforge/scummvm/extras/"
9393 "Lure%20of%20the%20Temptress/"
9394 name "-" version ".zip"))
9395 (sha256
9396 (base32 hash))))
9397 (build-system trivial-build-system)
9398 (arguments
9399 `(#:modules ((guix build utils))
9400 #:builder
9401 (begin
9402 (use-modules (guix build utils))
9403 (let* ((out (assoc-ref %outputs "out"))
9404 (share (string-append out "/share"))
9405 (data (string-append share "/" ,name "/" ,language))
9406 (apps (string-append share "/applications"))
9407 (bin (string-append out "/bin"))
9408 (executable (string-append bin "/" ,name))
9409 (scummvm (assoc-ref %build-inputs "scummvm")))
9410 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9411 "/bin/unzip")))
9412 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9413 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9414 (for-each (lambda (f) (install-file f doc))
9415 (find-files "." "\\.(txt|PDF|pdf)$")))
9416 (for-each (lambda (f) (install-file f data))
9417 (find-files "." "\\.(vga|VGA)$"))
9418 ;; Build the executable.
9419 (mkdir-p bin)
9420 (let ((bash (assoc-ref %build-inputs "bash")))
9421 (with-output-to-file executable
9422 (lambda ()
9423 (format #t "#!~a/bin/bash~%" bash)
9424 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9425 scummvm ,language data))))
9426 (chmod executable #o755)
9427 ;; Create desktop file. There is no dedicated
9428 ;; icon for the game, so we borrow SCUMMVM's.
9429 (mkdir-p apps)
9430 (with-output-to-file (string-append apps "/" ,name ".desktop")
9431 (lambda _
9432 (format #t
9433 "[Desktop Entry]~@
9434 Name=Lure of the Temptress~@
9435 GenericName=Lure~@
9436 Exec=~a~@
9437 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9438 Categories=AdventureGame;Game;RolePlaying;~@
9439 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9440 Comment=Classic 2D point and click adventure game~@
9441 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9442 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9443 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9444 Type=Application~%"
9445 executable scummvm)))
9446 #t))))
9447 (native-inputs
9448 `(("unzip" ,unzip)))
9449 (inputs
9450 `(("bash" ,bash)
9451 ("scummvm" ,scummvm)))
9452 (home-page "https://www.scummvm.org")
9453 (synopsis "2D point and click fantasy adventure game")
9454 (description
9455 "Lure of the Temptress is a classic 2D point and click adventure game.
9456
9457 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9458 intents and purposes, a good man. After decades of unrest the King has united
9459 the warring factions in his kingdom and all his lands are at peace, except
9460 a remote region around a town called Turnvale. A revolt has recently taken
9461 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9462 Selena, the titular temptress. The king calls together his finest horsemen
9463 and heads off (with you in tow) to Turnvale just to witness how hellish
9464 mercenary monsters called Skorl are invading the town.
9465
9466 The king's men are defeated, the king is killed and you fall of your horse and
9467 bang your head heavily on the ground. You have been *unconscious for a while
9468 when you realize that you are in a dingy cell guarded by a not so friendly
9469 Skorl. Maybe it would be an idea to try and escape...")
9470 (license (license:non-copyleft "file:///README"))))
9471
9472 (define-public lure
9473 (make-lure-package
9474 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9475
9476 (define-public lure-de
9477 (make-lure-package
9478 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9479
9480 (define-public lure-es
9481 (make-lure-package
9482 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9483
9484 (define-public lure-fr
9485 (make-lure-package
9486 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9487
9488 (define-public lure-it
9489 (make-lure-package
9490 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9491
9492 (define (make-queen-package name file-prefix release language hash)
9493 (package
9494 (name name)
9495 (version release)
9496 (source
9497 (origin
9498 (method url-fetch)
9499 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9500 "Flight%20of%20the%20Amazon%20Queen/"
9501 file-prefix release ".zip"))
9502 (sha256
9503 (base32 hash))))
9504 (build-system trivial-build-system)
9505 (arguments
9506 `(#:modules ((guix build utils))
9507 #:builder
9508 (begin
9509 (use-modules (guix build utils))
9510 (let* ((out (assoc-ref %outputs "out"))
9511 (share (string-append out "/share"))
9512 (data (string-append share "/" ,name))
9513 (apps (string-append share "/applications"))
9514 (bin (string-append out "/bin"))
9515 (executable (string-append bin "/" ,name))
9516 (scummvm (assoc-ref %build-inputs "scummvm")))
9517 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9518 "/bin/unzip")))
9519 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9520 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9521 (install-file "readme.txt" doc))
9522 (install-file "queen.1c" data)
9523 (mkdir-p bin)
9524 (let ((bash (assoc-ref %build-inputs "bash")))
9525 (with-output-to-file executable
9526 (lambda ()
9527 (format #t "#!~a/bin/bash~%" bash)
9528 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9529 scummvm data))))
9530 (chmod executable #o755)
9531 ;; Create desktop file. There is no dedicated
9532 ;; icon for the game, so we borrow SCUMMVM's.
9533 (mkdir-p apps)
9534 (with-output-to-file (string-append apps "/" ,name ".desktop")
9535 (lambda _
9536 (format #t
9537 "[Desktop Entry]~@
9538 Name=Flight of the Amazon Queen~@
9539 GenericName=Queen~@
9540 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~@
9541 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~@
9542 Type=Application~@
9543 Exec=~a~@
9544 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9545 Categories=AdventureGame;Game;RolePlaying;~@
9546 Keywords=adventure;game;roleplaying;fantasy;~%"
9547 executable scummvm))))
9548 #t)))
9549 (native-inputs
9550 `(("unzip" ,unzip)))
9551 (inputs
9552 `(("bash" ,bash)
9553 ("scummvm" ,scummvm)))
9554 (home-page "https://www.scummvm.org/")
9555 (synopsis "Classic 2D point and click adventure game")
9556 (description "Flight of the Amazon Queen is a 2D point-and-click
9557 adventure game set in the 1940s.
9558
9559 You assume the role of Joe King, a pilot for hire who is given the job
9560 of flying Faye Russell (a famous movie star) into the Amazon jungle
9561 for a photo shoot. Of course, things never go according to plans.
9562 After an unfortunate turn of events they find themselves stranded in
9563 the heart of the Amazon jungle, where Joe will embark on a quest to
9564 rescue a kidnapped princess and in the process, discover the true
9565 sinister intentions of a suspiciously located Lederhosen company. In
9566 a rich 2D environment, Joe will cross paths with a variety of unlikely
9567 jungle inhabitants including, but not limited to, a tribe of Amazon
9568 women and 6-foot-tall pygmies.")
9569 (license (license:non-copyleft "file:///readme.txt"))))
9570
9571 (define-public queen
9572 (make-queen-package
9573 "queen" "FOTAQ_Talkie-" "1.1" "en"
9574 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9575
9576 (define-public queen-de
9577 (make-queen-package
9578 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9579 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9580
9581 (define-public queen-fr
9582 (make-queen-package
9583 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9584 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9585
9586 (define-public queen-it
9587 (make-queen-package
9588 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9589 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9590
9591 (define-public sky
9592 (package
9593 (name "sky")
9594 (version "1.2") ;1.3 is floppy version
9595 (source
9596 (origin
9597 (method url-fetch)
9598 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9599 "Beneath%20a%20Steel%20Sky/"
9600 "bass-cd-" version ".zip"))
9601 (sha256
9602 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9603 (build-system trivial-build-system)
9604 (arguments
9605 `(#:modules ((guix build utils))
9606 #:builder
9607 (begin
9608 (use-modules (guix build utils))
9609 (let* ((out (assoc-ref %outputs "out"))
9610 (share (string-append out "/share"))
9611 (data (string-append share "/" ,name))
9612 (apps (string-append share "/applications"))
9613 (bin (string-append out "/bin"))
9614 (executable (string-append bin "/" ,name))
9615 (scummvm (assoc-ref %build-inputs "scummvm")))
9616 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9617 "/bin/unzip")))
9618 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9619 (let ((doc (string-append share "/doc/bass-" ,version)))
9620 (install-file "readme.txt" doc))
9621 (for-each (lambda (f) (install-file f data))
9622 (find-files "." "^sky\\."))
9623 ;; Build the executable.
9624 (mkdir-p bin)
9625 (let ((bash (assoc-ref %build-inputs "bash")))
9626 (with-output-to-file executable
9627 (lambda ()
9628 (format #t "#!~a/bin/bash~%" bash)
9629 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9630 (chmod executable #o755)
9631 ;; Create desktop file. There is no dedicated
9632 ;; icon for the game, so we borrow SCUMMVM's.
9633 (mkdir-p apps)
9634 (with-output-to-file (string-append apps "/" ,name ".desktop")
9635 (lambda _
9636 (format #t
9637 "[Desktop Entry]~@
9638 Name=Beneath a Steel Sky~@
9639 GenericName=Bass~@
9640 Exec=~a~@
9641 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9642 Categories=AdventureGame;Game;RolePlaying;~@
9643 Keywords=adventure;game;roleplaying;cyberpunk;~@
9644 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9645 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9646 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9647 Type=Application~%"
9648 executable scummvm)))
9649 #t))))
9650 (native-inputs
9651 `(("unzip" ,unzip)))
9652 (inputs
9653 `(("bash" ,bash)
9654 ("scummvm" ,scummvm)))
9655 (home-page "https://www.scummvm.org/")
9656 (synopsis "Classic 2D point and click science-fiction adventure game")
9657 (description
9658 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9659 post-apocalyptic vision of the future. It revolves around Union City,
9660 where selfishness, rivalry, and corruption by its citizens seems to be
9661 all too common, those who can afford it live underground, away from
9662 the pollution and social problems which are plaguing the city.
9663
9664 You take on the role of Robert Foster, an outcast of sorts from the
9665 city since a boy who was raised in a remote environment outside of
9666 Union City simply termed ``the gap''. Robert's mother took him away
9667 from Union City as a child on their way to ``Hobart'' but the
9668 helicopter crashed on its way. Unfortunately, Robert's mother died,
9669 but he survived and was left to be raised by a local tribe from the
9670 gap.
9671
9672 Years later, Union City security drops by and abducts Robert, killing
9673 his tribe in the process; upon reaching the city the helicopter taking
9674 him there crashes with him escaping, high upon a tower block in the
9675 middle of the city. He sets out to discover the truth about his past,
9676 and to seek vengeance for the killing of his tribe.")
9677 (license (license:non-copyleft "file:///readme.txt"))))
9678
9679 (define-public gnurobots
9680 (package
9681 (name "gnurobots")
9682 (version "1.2.0")
9683 (source
9684 (origin
9685 (method url-fetch)
9686 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9687 version ".tar.gz"))
9688 (sha256
9689 (base32
9690 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9691 (build-system gnu-build-system)
9692 (inputs
9693 `(("glib" ,glib)
9694 ("gtk+" ,gtk+-2)
9695 ("vte" ,vte/gtk+-2)
9696 ("readline" ,readline)
9697 ("guile" ,guile-1.8)))
9698 (native-inputs
9699 `(("pkg-config" ,pkg-config)))
9700 (arguments
9701 `(#:make-flags
9702 (list
9703 ;; Do not abort build on "deprecated-declarations" warnings.
9704 "CFLAGS=-Wno-error=deprecated-declarations"
9705 ;; Find readline headers in sub-directory.
9706 (string-append "READLINE_CFLAGS=-I"
9707 (assoc-ref %build-inputs "readline")
9708 "/include/readline/"))
9709 #:phases
9710 (modify-phases %standard-phases
9711 (add-after 'install 'install-doc
9712 (lambda* (#:key outputs #:allow-other-keys)
9713 (install-file "doc/Robots-HOWTO"
9714 (string-append (assoc-ref outputs "out")
9715 "/share/doc/gnurobots-"
9716 ,version))
9717 #t)))))
9718 (home-page "https://www.gnu.org/software/gnurobots/")
9719 (synopsis "Program a little robot and watch it explore a world")
9720 (description
9721 "GNU Robots is a game in which you program a robot to explore a world
9722 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9723 the game is to stay alive and collect prizes. The robot program conveniently
9724 may be written in a plain text file in the Scheme programming language.")
9725 (license license:gpl3+)))
9726
9727 (define-public ri-li
9728 (package
9729 (name "ri-li")
9730 (version "2.0.1")
9731 (source (origin
9732 (method url-fetch)
9733 (uri (string-append "mirror://sourceforge/ri-li/"
9734 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9735 "Ri-li-" version ".tar.bz2"))
9736 (sha256
9737 (base32
9738 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9739 ;; Taken from
9740 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9741 ;; It doesn't build otherwise.
9742 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9743 (build-system gnu-build-system)
9744 (arguments
9745 `(#:phases
9746 (modify-phases %standard-phases
9747 ;; Remove "gentoo" subdirectory from Makefile, as it is
9748 ;; missing a make file and generates a build failure.
9749 (add-after 'configure 'fix-build
9750 (lambda _
9751 (substitute* "Makefile"
9752 ((" gentoo") ""))
9753 #t))
9754 (add-after 'install 'install-desktop-file
9755 (lambda* (#:key outputs #:allow-other-keys)
9756 (let* ((out (assoc-ref outputs "out"))
9757 (apps (string-append out "/share/applications"))
9758 (pixmaps (string-append out "/share/pixmaps")))
9759 (for-each (lambda (f) (install-file f pixmaps))
9760 (find-files "data" "\\.(png|ico)$"))
9761 (mkdir-p apps)
9762 (with-output-to-file (string-append apps "/ri-li.desktop")
9763 (lambda _
9764 (format #t
9765 "[Desktop Entry]~@
9766 Name=Ri-li~@
9767 Exec=~a/bin/Ri_li~@
9768 Icon=~a/Ri-li-icon-32x32.png~@
9769 Categories=Game;ArcadeGame;~@
9770 Keywords=toy;train;wooden;snake-like;engine;~@
9771 Comment=a toy simulator game~@
9772 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9773 Comment[fr]=un jeu de petit train~@
9774 Comment[ro_RO]=un joc cu un tren de jucărie~@
9775 Terminal=false~@
9776 Type=Application~%"
9777 out pixmaps))))
9778 #t))
9779 (add-after 'install-desktop-file 'remove-spurious-files
9780 ;; Delete redundant files already installed somewhere else.
9781 (lambda* (#:key outputs #:allow-other-keys)
9782 (let ((out (assoc-ref outputs "out")))
9783 (for-each delete-file
9784 (find-files (string-append out "/share/Ri-li")
9785 "\\.(png|ico)|COPYING"))
9786 #t))))))
9787 (inputs
9788 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9789 (home-page "http://www.ri-li.org")
9790 (synopsis "Toy train simulation game")
9791 (description "Ri-li is a game in which you drive a wooden toy
9792 steam locomotive across many levels and collect all the coaches to
9793 win.")
9794 ;; The project is dual-licensed GPL2+ and GPL3+.
9795 (license (list license:gpl2+ license:gpl3+))))
9796
9797 (define-public freeorion
9798 (package
9799 (name "freeorion")
9800 (version "0.4.10")
9801 (source
9802 (origin
9803 (method url-fetch)
9804 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9805 "download/v" version "/FreeOrion_v" version
9806 "_2020-07-10.f3d403e_Source.tar.gz"))
9807 (sha256
9808 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9809 (modules '((guix build utils)))
9810 (snippet
9811 '(begin
9812 ;; There are some bundled fonts.
9813 (for-each delete-file-recursively '("default/data/fonts"))
9814 #t))))
9815 (build-system cmake-build-system)
9816 (arguments
9817 '(#:tests? #f ;no test
9818 #:phases
9819 (modify-phases %standard-phases
9820 (add-after 'unpack 'unbundle-fonts
9821 (lambda* (#:key inputs #:allow-other-keys)
9822 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9823 "/share/fonts/truetype/")))
9824 (substitute* "UI/ClientUI.cpp"
9825 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9826 all type)
9827 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9828 #t))))))
9829 (inputs
9830 `(("boost" ,boost)
9831 ("boost_signals" ,boost-signals2)
9832 ("font-dejavu" ,font-dejavu)
9833 ("font-roboto" ,font-google-roboto)
9834 ("freetype2" ,freetype)
9835 ("glew" ,glew)
9836 ("glu" ,glu)
9837 ("libogg" ,libogg)
9838 ("libpng" ,libpng)
9839 ("libvorbis" ,libvorbis)
9840 ("openal" ,openal)
9841 ("python" ,python)
9842 ("sdl2" ,sdl2)
9843 ("zlib" ,zlib)))
9844 (home-page "https://www.freeorion.org/index.php/Main_Page")
9845 (synopsis "Turn-based space empire and galactic conquest computer game")
9846 (description
9847 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9848 computer game being designed and built by the FreeOrion project. Control an
9849 empire with the goal of exploring the galaxy, expanding your territory,
9850 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9851 inspired by the tradition of the Master of Orion games, but is not a clone or
9852 remake of that series or any other game.")
9853 ;; Source code is released under gpl2. Artwork, music and sounds, and
9854 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9855 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9856 ;; released under lgpl2.1+.
9857 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9858
9859 (define-public leela-zero
9860 (package
9861 (name "leela-zero")
9862 (version "0.17")
9863 (source
9864 (origin
9865 (method git-fetch)
9866 (uri (git-reference
9867 (url "https://github.com/leela-zero/leela-zero")
9868 (commit (string-append "v" version))))
9869 (file-name (git-file-name name version))
9870 (sha256
9871 (base32
9872 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
9873 (patches (search-patches "leela-zero-gtest.patch"))))
9874 (build-system cmake-build-system)
9875 (native-inputs
9876 `(("googletest" ,googletest)))
9877 (inputs
9878 `(("boost" ,boost)
9879 ("ocl-icd" ,ocl-icd)
9880 ("openblas" ,openblas)
9881 ("opencl-headers" ,opencl-headers)
9882 ("qtbase" ,qtbase)
9883 ("zlib" ,zlib)))
9884 (arguments
9885 '(#:configure-flags '("-DUSE_BLAS=YES")
9886 #:phases (modify-phases %standard-phases
9887 (add-before 'configure 'fix-tests
9888 (lambda* (#:key outputs #:allow-other-keys)
9889 (let ((home (getcwd)))
9890 (setenv "HOME" home)
9891 (substitute* "src/tests/gtests.cpp"
9892 (("\\.\\./src/tests/0k\\.txt")
9893 (string-append home "/src/tests/0k.txt"))
9894 (("cfg_gtp_mode = true;")
9895 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
9896 #t))
9897 (replace 'check
9898 (lambda _
9899 (invoke "./tests"))))))
9900 (home-page "https://github.com/leela-zero/leela-zero")
9901 (synopsis "Program playing the game of Go")
9902 (description
9903 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
9904 the AlphaGo Zero paper. The current best network weights file for the engine
9905 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
9906 (license license:gpl3+)))
9907
9908 (define-public q5go
9909 (package
9910 (name "q5go")
9911 (version "1.0")
9912 (source (origin
9913 (method git-fetch)
9914 (uri (git-reference
9915 (url "https://github.com/bernds/q5Go")
9916 (commit (string-append "q5go-" version))))
9917 (file-name (git-file-name name version))
9918 (sha256
9919 (base32
9920 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
9921 (build-system gnu-build-system)
9922 (native-inputs
9923 `(("pkg-config" ,pkg-config)))
9924 (inputs
9925 `(("qtbase" ,qtbase)
9926 ("qtmultimedia" ,qtmultimedia)
9927 ("qtsvg" ,qtsvg)))
9928 (arguments
9929 '(#:phases
9930 (modify-phases %standard-phases
9931 (add-after 'unpack 'fix-configure-script
9932 (lambda _
9933 ;; Bypass the unavailable qtchooser program.
9934 (substitute* "configure"
9935 (("test -z \"QTCHOOSER\"")
9936 "false")
9937 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
9938 command))
9939 #t))
9940 (add-after 'unpack 'fix-paths
9941 (lambda _
9942 (substitute* '("src/pics/Makefile.in"
9943 "src/translations/Makefile.in")
9944 (("\\$\\(datadir\\)/qGo/")
9945 "$(datadir)/q5go/"))
9946 #t))
9947 (add-after 'install 'install-desktop-file
9948 (lambda* (#:key outputs #:allow-other-keys)
9949 (let* ((out (assoc-ref outputs "out"))
9950 (apps (string-append out "/share/applications"))
9951 (pics (string-append out "/share/q5go/pics")))
9952 (delete-file-recursively (string-append out "/share/applnk"))
9953 (delete-file-recursively (string-append out "/share/mimelnk"))
9954 (install-file "../source/src/pics/Bowl.ico" pics)
9955 (mkdir-p apps)
9956 (with-output-to-file (string-append apps "/q5go.desktop")
9957 (lambda _
9958 (format #t
9959 "[Desktop Entry]~@
9960 Name=q5go~@
9961 Exec=~a/bin/q5go~@
9962 Icon=~a/Bowl.ico~@
9963 Categories=Game;~@
9964 Comment=Game of Go~@
9965 Comment[de]=Spiel des Go~@
9966 Comment[eo]=Goo~@
9967 Comment[es]=Juego de Go~@
9968 Comment[fr]=Jeu de Go~@
9969 Comment[ja]=囲碁~@
9970 Comment[ko]=바둑~@
9971 Comment[zh]=围棋~@
9972 Terminal=false~@
9973 Type=Application~%"
9974 out pics))))
9975 #t)))))
9976 (synopsis "Qt GUI to play the game of Go")
9977 (description
9978 "This a tool for Go players which performs the following functions:
9979 @itemize
9980 @item SGF editor,
9981 @item Analysis frontend for Leela Zero (or compatible engines),
9982 @item GTP interface (to play against an engine),
9983 @item IGS client (to play on the internet),
9984 @item Export games to a variety of formats.
9985 @end itemize")
9986 (home-page "https://github.com/bernds/q5Go")
9987 (license license:gpl2+)))
9988
9989 (define-public ktuberling
9990 (package
9991 (name "ktuberling")
9992 (version "20.12.0")
9993 (source
9994 (origin
9995 (method url-fetch)
9996 (uri (string-append "mirror://kde/stable/release-service/" version
9997 "/src/ktuberling-" version ".tar.xz"))
9998 (sha256
9999 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
10000 (build-system qt-build-system)
10001 (native-inputs
10002 `(("extra-cmake-modules" ,extra-cmake-modules)
10003 ("kdoctools" ,kdoctools)
10004 ("perl" ,perl)))
10005 (inputs
10006 `(("kcompletion" ,kcompletion)
10007 ("kconfigwidgets" ,kconfigwidgets)
10008 ("kcoreaddons" ,kcoreaddons)
10009 ("kcrash" ,kcrash)
10010 ("kdbusaddons" ,kdbusaddons)
10011 ("ki18n" ,ki18n)
10012 ("kio" ,kio)
10013 ("kwidgetsaddons" ,kwidgetsaddons)
10014 ("kxmlgui" ,kxmlgui)
10015 ("libkdegames" ,libkdegames)
10016 ("python" ,python-wrapper)
10017 ("qtbase" ,qtbase)
10018 ("qtmultimedia" ,qtmultimedia)
10019 ("qtdeclarative" ,qtdeclarative)
10020 ("qtsvg" ,qtsvg)))
10021 (home-page "https://games.kde.org/")
10022 (synopsis "Stamp drawing toy")
10023 (description "KTuberling is a drawing toy intended for small children and
10024 adults who remain young at heart. The game has no winner; the only purpose is
10025 to make the funniest faces you can. Several activities are possible, e.g.:
10026
10027 @itemize
10028 @item Give the potato a funny face, clothes, and other goodies
10029 @item Build a small town, complete with school, zoo, and fire department
10030 @item Create a fantastic moonscape with spaceships and aliens
10031 @item Top a pizza
10032 @end itemize
10033
10034 KTuberling can speak the name of each the object in several languages,
10035 to assist in learning basic vocabulary.
10036
10037 This package is part of the KDE games module.")
10038 (license (list license:gpl2+ license:fdl1.2+))))
10039
10040 (define-public picmi
10041 (package
10042 (name "picmi")
10043 (version "20.12.0")
10044 (source
10045 (origin
10046 (method url-fetch)
10047 (uri (string-append "mirror://kde/stable/release-service/" version
10048 "/src/picmi-" version ".tar.xz"))
10049 (sha256
10050 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
10051 (build-system qt-build-system)
10052 (native-inputs
10053 `(("extra-cmake-modules" ,extra-cmake-modules)
10054 ("kdoctools" ,kdoctools)))
10055 (inputs
10056 `(("kcoreaddons" ,kcoreaddons)
10057 ("kcrash" ,kcrash)
10058 ("kdbusaddons" ,kdbusaddons)
10059 ("kdeclarative" ,kdeclarative)
10060 ("ki18n" ,ki18n)
10061 ("kio" ,kio)
10062 ("knewstuff" ,knewstuff)
10063 ("kxmlgui" ,kxmlgui)
10064 ("libkdegames" ,libkdegames)
10065 ("qtbase" ,qtbase)
10066 ("qtdeclarative" ,qtdeclarative)
10067 ("qtsvg" ,qtsvg)))
10068 (home-page "https://games.kde.org/")
10069 (synopsis "Number logic game")
10070 (description "Picmi is a number logic game in which cells in a grid have
10071 to be colored or left blank according to numbers given at the side of the
10072 grid. The aim is to reveal a hidden picture.
10073
10074 This package is part of the KDE games module.")
10075 (license (list license:gpl2+ license:fdl1.2+))))
10076
10077 (define-public kolf
10078 (package
10079 (name "kolf")
10080 (version "20.12.0")
10081 (source
10082 (origin
10083 (method url-fetch)
10084 (uri (string-append "mirror://kde/stable/release-service/" version
10085 "/src/kolf-" version ".tar.xz"))
10086 (sha256
10087 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10088 (build-system qt-build-system)
10089 (native-inputs
10090 `(("extra-cmake-modules" ,extra-cmake-modules)
10091 ("kdoctools" ,kdoctools)))
10092 (inputs
10093 `(("kcompletion" ,kcompletion)
10094 ("kconfigwidgets" ,kconfigwidgets)
10095 ("kcoreaddons" ,kcoreaddons)
10096 ("kcrash" ,kcrash)
10097 ("kdbusaddons" ,kdbusaddons)
10098 ("ki18n" ,ki18n)
10099 ("kio" ,kio)
10100 ("kwidgetsaddons" ,kwidgetsaddons)
10101 ("kxmlgui" ,kxmlgui)
10102 ("ktextwidgets" ,ktextwidgets)
10103 ("libkdegames" ,libkdegames)
10104 ("qtbase" ,qtbase)
10105 ("qtdeclarative" ,qtdeclarative)))
10106 (home-page "https://games.kde.org/")
10107 (synopsis "Miniature golf game")
10108 (description "Kolf is a miniature golf game for one to ten players. The
10109 game is played from an overhead view, with a short bar representing the golf
10110 club. Kolf features many different types of objects, such as water hazards,
10111 slopes, sand traps, and black holes (warps), among others.
10112
10113 Features are:
10114 @itemize
10115 @item Single and Multi-player (up to ten players) modes
10116 @item High scores table
10117 @item Dynamic courses
10118 @item Third-party courses
10119 @item Course editor
10120 @end itemize
10121
10122 This package is part of the KDE games module.")
10123 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10124
10125 (define-public libkmahjongg
10126 (package
10127 (name "libkmahjongg")
10128 (version "20.12.0")
10129 (source
10130 (origin
10131 (method url-fetch)
10132 (uri (string-append "mirror://kde/stable/release-service/"
10133 version "/src/libkmahjongg-" version ".tar.xz"))
10134 (sha256
10135 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10136 (build-system qt-build-system)
10137 (native-inputs
10138 `(("extra-cmake-modules" ,extra-cmake-modules)))
10139 (inputs
10140 `(("kauth" ,kauth)
10141 ("kcompletion" ,kcompletion)
10142 ;("kconfig" ,kconfig)
10143 ("kcodecs" ,kcodecs)
10144 ("kconfigwidgets" ,kconfigwidgets)
10145 ("kcoreaddons" ,kcoreaddons)
10146 ("ki18n" ,ki18n)
10147 ("kwidgetsaddons" ,kwidgetsaddons)
10148 ("qtbase" ,qtbase)
10149 ("qtsvg" ,qtsvg)))
10150 (home-page "https://games.kde.org/")
10151 (synopsis "Shared library for kmahjongg and kshisen")
10152 (description "Shared library and common files for kmahjongg, kshisen and
10153 other Mah Jongg like games.")
10154 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10155
10156 (define-public kmahjongg
10157 (package
10158 (name "kmahjongg")
10159 (version "20.12.0")
10160 (source
10161 (origin
10162 (method url-fetch)
10163 (uri (string-append "mirror://kde/stable/release-service/"
10164 version "/src/kmahjongg-" version ".tar.xz"))
10165 (sha256
10166 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10167 (build-system qt-build-system)
10168 (native-inputs
10169 `(("extra-cmake-modules" ,extra-cmake-modules)
10170 ("kdoctools" ,kdoctools)))
10171 (inputs
10172 `(("kcompletion" ,kcompletion)
10173 ("kcrash" ,kcrash)
10174 ("kdbusaddons" ,kdbusaddons)
10175 ("kdeclarative" ,kdeclarative)
10176 ("ki18n" ,ki18n)
10177 ("knewstuff" ,knewstuff)
10178 ("kxmlgui" ,kxmlgui)
10179 ("libkdegames" ,libkdegames)
10180 ("libkmahjongg" ,libkmahjongg)
10181 ("qtbase" ,qtbase)
10182 ("qtdeclarative" ,qtdeclarative)
10183 ("qtsvg" ,qtsvg)))
10184 (home-page "https://games.kde.org/")
10185 (synopsis "Tile laying patience")
10186 (description "In KMahjongg the tiles are scrambled and staked on top of
10187 each other to resemble a certain shape. The player is then expected to remove
10188 all the tiles off the game board by locating each tile's matching pair.
10189
10190 A variety of tile layouts are included, as well as an editor to create new
10191 layouts.
10192
10193 This package is part of the KDE games module.")
10194 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10195
10196 (define-public kshisen
10197 (package
10198 (name "kshisen")
10199 (version "20.12.0")
10200 (source
10201 (origin
10202 (method url-fetch)
10203 (uri (string-append "mirror://kde/stable/release-service/"
10204 version "/src/kshisen-" version ".tar.xz"))
10205 (sha256
10206 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10207 (build-system qt-build-system)
10208 (native-inputs
10209 `(("extra-cmake-modules" ,extra-cmake-modules)
10210 ;("perl" ,perl)
10211 ;("pkg-config" ,pkg-config)
10212 ("kdoctools" ,kdoctools)))
10213 (inputs
10214 `(("kauth" ,kauth)
10215 ("kcompletion" ,kcompletion)
10216 ("kconfigwidgets" ,kconfigwidgets)
10217 ("kcoreaddons" ,kcoreaddons)
10218 ("kcrash" ,kcrash)
10219 ("kdbusaddons" ,kdbusaddons)
10220 ("ki18n" ,ki18n)
10221 ("kxmlgui" ,kxmlgui)
10222 ("libkdegames" ,libkdegames)
10223 ("libkmahjongg" ,libkmahjongg)
10224 ("qtbase" ,qtbase)
10225 ("qtdeclarative" ,qtdeclarative)))
10226 (home-page "https://games.kde.org/")
10227 (synopsis "Shisen-Sho solitaire game")
10228 (description "KShisen is a solitaire-like game played using the standard
10229 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10230 scrambled tiles
10231
10232 This package is part of the KDE games module.")
10233 (license license:gpl2+)))
10234
10235 (define-public kajongg
10236 (package
10237 (name "kajongg")
10238 (version "20.12.0")
10239 (source
10240 (origin
10241 (method url-fetch)
10242 (uri (string-append "mirror://kde/stable/release-service/"
10243 version "/src/kajongg-" version ".tar.xz"))
10244 (sha256
10245 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10246 (build-system qt-build-system)
10247 (arguments
10248 `(#:phases
10249 (modify-phases %standard-phases
10250 (add-after 'install 'wrap
10251 (lambda* (#:key outputs #:allow-other-keys)
10252 (let ((out (assoc-ref outputs "out")))
10253 (wrap-program (string-append out "/bin/kajongg")
10254 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
10255 #t))))))
10256 (native-inputs
10257 `(("extra-cmake-modules" ,extra-cmake-modules)
10258 ;("perl" ,perl)
10259 ("kdoctools" ,kdoctools)))
10260 (inputs
10261 `(("kconfig" ,kconfig)
10262 ("kconfigwidgets" ,kconfigwidgets)
10263 ("kcoreaddons" ,kcoreaddons)
10264 ("ki18n" ,ki18n)
10265 ("libkmahjongg" ,libkmahjongg)
10266 ("python" ,python)
10267 ("python-twisted" ,python-twisted)
10268 ("python-pyqt" ,python-pyqt)
10269 ("qtbase" ,qtbase)
10270 ("qtsvg" ,qtsvg)))
10271 (home-page "https://games.kde.org/")
10272 (synopsis "Classical Mah Jongg game for 4 players")
10273 (description "Kajongg is the ancient Chinese board game for 4 players.
10274
10275 If you are looking for the Mah Jongg solitaire please use the application
10276 kmahjongg.
10277
10278 Kajongg can be used in two different ways: Scoring a manual game where you
10279 play as always and use Kajongg for the computation of scores and for
10280 bookkeeping. Or you can use Kajongg to play against any combination of other
10281 human players or computer players.
10282
10283 This package is part of the KDE games module.")
10284 (license (list license:gpl2+ license:fdl1.2+))))
10285
10286 (define-public kbreakout
10287 (package
10288 (name "kbreakout")
10289 (version "20.12.0")
10290 (source
10291 (origin
10292 (method url-fetch)
10293 (uri (string-append "mirror://kde/stable/release-service/" version
10294 "/src/kbreakout-" version ".tar.xz"))
10295 (sha256
10296 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10297 (build-system qt-build-system)
10298 (native-inputs
10299 `(("extra-cmake-modules" ,extra-cmake-modules)
10300 ("kdoctools" ,kdoctools)))
10301 (inputs
10302 `(("kcompletion" ,kcompletion)
10303 ("kconfig" ,kconfig)
10304 ("kconfigwidgets" ,kconfigwidgets)
10305 ("kcoreaddons" ,kcoreaddons)
10306 ("kcrash" ,kcrash)
10307 ("kdbusaddons" ,kdbusaddons)
10308 ("ki18n" ,ki18n)
10309 ("kwidgetsaddons" ,kwidgetsaddons)
10310 ("kxmlgui" ,kxmlgui)
10311 ("libkdegames" ,libkdegames)
10312 ("qtbase" ,qtbase)
10313 ("qtdeclarative" ,qtdeclarative)))
10314 (home-page "https://games.kde.org/")
10315 (synopsis "Breakout like game")
10316 (description "KBreakout is similar to the classics breakout and xboing,
10317 featuring a number of added graphical enhancements and effects. You control a
10318 paddle at the bottom of the playing-field, and must destroy bricks at the top
10319 by bouncing balls against them.
10320
10321 This package is part of the KDE games module.")
10322 (license (list license:gpl2+ license:fdl1.2+))))
10323
10324 (define-public kmines
10325 (package
10326 (name "kmines")
10327 (version "20.12.0")
10328 (source
10329 (origin
10330 (method url-fetch)
10331 (uri (string-append "mirror://kde/stable/release-service/" version
10332 "/src/kmines-" version ".tar.xz"))
10333 (sha256
10334 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10335 (build-system qt-build-system)
10336 (native-inputs
10337 `(("extra-cmake-modules" ,extra-cmake-modules)
10338 ("kdoctools" ,kdoctools)))
10339 (inputs
10340 `(("kcompletion" ,kcompletion)
10341 ("kconfig" ,kconfig)
10342 ("kconfigwidgets" ,kconfigwidgets)
10343 ("kcoreaddons" ,kcoreaddons)
10344 ("kcrash" ,kcrash)
10345 ("kdbusaddons" ,kdbusaddons)
10346 ("ki18n" ,ki18n)
10347 ("ktextwidgets" ,ktextwidgets)
10348 ("kwidgetsaddons" ,kwidgetsaddons)
10349 ("kxmlgui" ,kxmlgui)
10350 ("libkdegames" ,libkdegames)
10351 ("qtbase" ,qtbase)
10352 ("qtdeclarative" ,qtdeclarative)))
10353 (home-page "https://games.kde.org/")
10354 (synopsis "Classical mine sweeper game")
10355 (description "KMines is a classic Minesweeper game. The idea is to
10356 uncover all the squares without blowing up any mines. When a mine is blown
10357 up, the game is over.
10358
10359 This package is part of the KDE games module.")
10360 (license (list license:gpl2+ license:fdl1.2+))))
10361
10362 (define-public konquest
10363 (package
10364 (name "konquest")
10365 (version "20.12.0")
10366 (source
10367 (origin
10368 (method url-fetch)
10369 (uri (string-append "mirror://kde/stable/release-service/"
10370 version "/src/konquest-" version ".tar.xz"))
10371 (sha256
10372 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10373 (build-system qt-build-system)
10374 (native-inputs
10375 `(("extra-cmake-modules" ,extra-cmake-modules)
10376 ("kdoctools" ,kdoctools)))
10377 (inputs
10378 `(("kcompletion" ,kcompletion)
10379 ("kconfig" ,kconfig)
10380 ("kcoreaddons" ,kcoreaddons)
10381 ("kcrash" ,kcrash)
10382 ("kdbusaddons" ,kdbusaddons)
10383 ("kguiaddons" ,kguiaddons)
10384 ("ki18n" ,ki18n)
10385 ("kwidgetsaddons" ,kwidgetsaddons)
10386 ("kxmlgui" ,kxmlgui)
10387 ("libkdegames" ,libkdegames)
10388 ("qtbase" ,qtbase)
10389 ("qtdeclarative" ,qtdeclarative)
10390 ("qtsvg" ,qtsvg)))
10391 (home-page "https://games.kde.org/")
10392 (synopsis "Simple turn-based strategy game")
10393 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10394 conquer other planets by sending ships to them. The goal is to build an
10395 interstellar empire and ultimately conquer all other player's planets. The
10396 game can be played with up to nine empires, commanded either by the computer
10397 or by puny earthlings.
10398
10399 This package is part of the KDE games module.")
10400 (license (list license:gpl2+ license:fdl1.2+))))
10401
10402 (define-public kbounce
10403 (package
10404 (name "kbounce")
10405 (version "20.12.0")
10406 (source
10407 (origin
10408 (method url-fetch)
10409 (uri (string-append "mirror://kde/stable/release-service/"
10410 version "/src/kbounce-" version ".tar.xz"))
10411 (sha256
10412 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10413 (build-system qt-build-system)
10414 (native-inputs
10415 `(("extra-cmake-modules" ,extra-cmake-modules)
10416 ("kdoctools" ,kdoctools)))
10417 (inputs
10418 `(("kcompletion" ,kcompletion)
10419 ("kconfigwidgets" ,kconfigwidgets)
10420 ("kcoreaddons" ,kcoreaddons)
10421 ("kcrash" ,kcrash)
10422 ("kdbusaddons" ,kdbusaddons)
10423 ("ki18n" ,ki18n)
10424 ("kio" ,kio)
10425 ("kwidgetsaddons" ,kwidgetsaddons)
10426 ("kxmlgui" ,kxmlgui)
10427 ("libkdegames" ,libkdegames)
10428 ("qtbase" ,qtbase)
10429 ("qtdeclarative" ,qtdeclarative)
10430 ("qtsvg" ,qtsvg)))
10431 (home-page "https://games.kde.org/")
10432 (synopsis "Jezzball arcade game")
10433 (description "KBounce is a single player arcade game with the elements of
10434 puzzle. It is played on a field, surrounded by wall, with two or more balls
10435 bouncing around within the walls. The object of the game is to build new
10436 walls to decrease the size of the active field.
10437
10438 This package is part of the KDE games module.")
10439 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10440
10441 (define-public kblocks
10442 (package
10443 (name "kblocks")
10444 (version "20.12.0")
10445 (source
10446 (origin
10447 (method url-fetch)
10448 (uri (string-append "mirror://kde/stable/release-service/"
10449 version "/src/kblocks-" version ".tar.xz"))
10450 (sha256
10451 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10452 (build-system qt-build-system)
10453 (native-inputs
10454 `(("extra-cmake-modules" ,extra-cmake-modules)
10455 ("kdoctools" ,kdoctools)))
10456 (inputs
10457 `(("kcompletion" ,kcompletion)
10458 ("kconfig" ,kconfig)
10459 ("kconfigwidgets" ,kconfigwidgets)
10460 ("kcoreaddons" ,kcoreaddons)
10461 ("kcrash" ,kcrash)
10462 ("kdbusaddons" ,kdbusaddons)
10463 ("ki18n" ,ki18n)
10464 ("kwidgetsaddons" ,kwidgetsaddons)
10465 ("kxmlgui" ,kxmlgui)
10466 ("libkdegames" ,libkdegames)
10467 ("qtbase" ,qtbase)
10468 ("qtdeclarative" ,qtdeclarative)
10469 ("qtsvg" ,qtsvg)))
10470 (home-page "https://games.kde.org/")
10471 (synopsis "Single player falling blocks puzzle game")
10472 (description "KBlocks is the classic Tetris-like falling blocks game.
10473
10474 The idea is to stack the falling blocks to create horizontal lines without any
10475 gaps. When a line is completed it is removed, and more space is available in
10476 the play area. When there is not enough space for blocks to fall, the game is
10477 over.
10478
10479 This package is part of the KDE games module.")
10480 (license (list license:gpl2+ license:fdl1.2+))))
10481
10482 (define-public ksudoku
10483 (package
10484 (name "ksudoku")
10485 (version "20.12.0")
10486 (source
10487 (origin
10488 (method url-fetch)
10489 (uri (string-append "mirror://kde/stable/release-service/"
10490 version "/src/ksudoku-" version ".tar.xz"))
10491 (sha256
10492 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10493 (build-system qt-build-system)
10494 (native-inputs
10495 `(("extra-cmake-modules" ,extra-cmake-modules)
10496 ("kdoctools" ,kdoctools)))
10497 (inputs
10498 `(("karchive" ,karchive)
10499 ("kconfig" ,kconfig)
10500 ("kconfigwidgets" ,kconfigwidgets)
10501 ("kcoreaddons" ,kcoreaddons)
10502 ("kcrash" ,kcrash)
10503 ("kguiaddons" ,kguiaddons)
10504 ("ki18n" ,ki18n)
10505 ("kiconthemes" ,kiconthemes)
10506 ("kio" ,kio)
10507 ("kwidgetsaddons" ,kwidgetsaddons)
10508 ("kxmlgui" ,kxmlgui)
10509 ("libkdegames" ,libkdegames)
10510 ("glu" ,glu)
10511 ("qtbase" ,qtbase)
10512 ("qtdeclarative" ,qtdeclarative)
10513 ("qtsvg" ,qtsvg)))
10514 (home-page "https://games.kde.org/")
10515 (synopsis "Sudoku puzzle game and solver")
10516 (description "KSudoku is a Sudoku game and solver, supporting a range of
10517 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10518 puzzle sheets and find the solution to any Sudoku puzzle.
10519
10520 The word Sudoku means \"single number in an allotted place\" in Japanese.
10521 These are the basic rules: Every Sudoku is a square divided into 3x3
10522 subsquares with 3x3 cells each.
10523
10524 Some cells are filled with a number at the beginning. The remaining ones are
10525 to be filled by the player using numbers from 1 to 9, without repeating a
10526 number twice on each column, row or subsquare (each of them must contain only
10527 one 1, one 2, one 3, and so on). The game requires logic and patience.
10528 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10529 and experience.
10530
10531 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10532 board we use letters): arithmetic relationships between numbers are
10533 irrelevant.
10534
10535 This program supports also 16x16 games with numbers from 1 to 16 and 256
10536 cells with 16 cols, rows and subsquares!
10537
10538 More information at http://en.wikipedia.org/wiki/Sudoku
10539
10540 This package is part of the KDE games module.")
10541 (license (list license:gpl2+ license:fdl1.2+))))
10542
10543 (define-public klines
10544 (package
10545 (name "klines")
10546 (version "20.12.0")
10547 (source
10548 (origin
10549 (method url-fetch)
10550 (uri (string-append "mirror://kde/stable/release-service/" version
10551 "/src/klines-" version ".tar.xz"))
10552 (sha256
10553 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10554 (build-system qt-build-system)
10555 (native-inputs
10556 `(("extra-cmake-modules" ,extra-cmake-modules)
10557 ("kdoctools" ,kdoctools)))
10558 (inputs
10559 `(("kcompletion" ,kcompletion)
10560 ("kconfigwidgets" ,kconfigwidgets)
10561 ("kcoreaddons" ,kcoreaddons)
10562 ("kcrash" ,kcrash)
10563 ("kdbusaddons" ,kdbusaddons)
10564 ("ki18n" ,ki18n)
10565 ("kwidgetsaddons" ,kwidgetsaddons)
10566 ("kxmlgui" ,kxmlgui)
10567 ("libkdegames" ,libkdegames)
10568 ("qtbase" ,qtbase)
10569 ("qtdeclarative" ,qtdeclarative)))
10570 (home-page "https://games.kde.org/")
10571 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10572 (description "KLines is a simple but highly addictive one player game.
10573
10574 The player has to move the colored balls around the game board, gathering them
10575 into the lines of the same color by five. Once the line is complete it is
10576 removed from the board, therefore freeing precious space. In the same time
10577 the new balls keep arriving by three after each move, filling up the game
10578 board.
10579
10580 KLines is a single-player game where the player removes colored balls from the
10581 board by arranging them into lines of five or more. However, every time the
10582 player moves a ball, three more balls are added to the board.
10583
10584 This package is part of the KDE games module.")
10585 (license (list license:gpl2+ license:fdl1.2+))))
10586
10587 (define-public kgoldrunner
10588 (package
10589 (name "kgoldrunner")
10590 (version "20.12.0")
10591 (source
10592 (origin
10593 (method url-fetch)
10594 (uri (string-append "mirror://kde/stable/release-service/" version
10595 "/src/kgoldrunner-" version ".tar.xz"))
10596 (sha256
10597 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
10598 (build-system qt-build-system)
10599 (native-inputs
10600 `(("extra-cmake-modules" ,extra-cmake-modules)
10601 ("kdoctools" ,kdoctools)))
10602 (inputs
10603 `(("kcompletion" ,kcompletion)
10604 ("kcoreaddons" ,kcoreaddons)
10605 ("kcrash" ,kcrash)
10606 ("kdbusaddons" ,kdbusaddons)
10607 ("ki18n" ,ki18n)
10608 ("kio" ,kio)
10609 ("kwidgetsaddons" ,kwidgetsaddons)
10610 ("kxmlgui" ,kxmlgui)
10611 ("libkdegames" ,libkdegames)
10612 ("qtbase" ,qtbase)
10613 ("qtdeclarative" ,qtdeclarative)))
10614 (home-page "https://games.kde.org/")
10615 (synopsis "Action and puzzle solving game")
10616 (description "KGoldrunner is an action game where the hero runs through a
10617 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10618 gold nuggets and escape to the next level. Your enemies are also after the
10619 gold. Worse still, they are after you!.
10620
10621 KGoldrunner is a fast-paced platform game where the player must navigate a
10622 maze while collecting gold nuggets and avoiding enemies. A variety of level
10623 packs are included, as well as an editor to create new levels.
10624
10625 This package is part of the KDE games module.")
10626 (license (list license:gpl2+ license:fdl1.2+))))
10627
10628 (define-public kdiamond
10629 (package
10630 (name "kdiamond")
10631 (version "20.12.0")
10632 (source
10633 (origin
10634 (method url-fetch)
10635 (uri (string-append "mirror://kde/stable/release-service/" version
10636 "/src/kdiamond-" version ".tar.xz"))
10637 (sha256
10638 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
10639 (build-system qt-build-system)
10640 (native-inputs
10641 `(("extra-cmake-modules" ,extra-cmake-modules)
10642 ("kdoctools" ,kdoctools)))
10643 (inputs
10644 `(("kcompletion" ,kcompletion)
10645 ("kconfig" ,kconfig)
10646 ("kconfigwidgets" ,kconfigwidgets)
10647 ("kcoreaddons" ,kcoreaddons)
10648 ("kcrash" ,kcrash)
10649 ("kdbusaddons" ,kdbusaddons)
10650 ("ki18n" ,ki18n)
10651 ("knotifications" ,knotifications)
10652 ("knotifyconfig" ,knotifyconfig)
10653 ("kwidgetsaddons" ,kwidgetsaddons)
10654 ("kxmlgui" ,kxmlgui)
10655 ("libkdegames" ,libkdegames)
10656 ("qtbase" ,qtbase)
10657 ("qtdeclarative" ,qtdeclarative)))
10658 (home-page "https://games.kde.org/")
10659 (synopsis "Three-in-a-row game")
10660 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10661 features unlimited fun with randomly generated games and five difficulty
10662 levels with varying number of diamond colors and board sizes.
10663
10664 This package is part of the KDE games module.")
10665 (license (list license:gpl2+ license:fdl1.2+))))
10666
10667 (define-public kfourinline
10668 (package
10669 (name "kfourinline")
10670 (version "20.12.0")
10671 (source
10672 (origin
10673 (method url-fetch)
10674 (uri (string-append "mirror://kde/stable/release-service/" version
10675 "/src/kfourinline-" version ".tar.xz"))
10676 (sha256
10677 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10678 (build-system qt-build-system)
10679 (native-inputs
10680 `(("extra-cmake-modules" ,extra-cmake-modules)
10681 ("kdoctools" ,kdoctools)))
10682 (inputs
10683 `(("kcompletion" ,kcompletion)
10684 ("kconfig" ,kconfig)
10685 ("kconfigwidgets" ,kconfigwidgets)
10686 ("kcoreaddons" ,kcoreaddons)
10687 ("kcrash" ,kcrash)
10688 ("kdnssd" ,kdnssd)
10689 ("ki18n" ,ki18n)
10690 ("kxmlgui" ,kxmlgui)
10691 ("libkdegames" ,libkdegames)
10692 ("qtbase" ,qtbase)
10693 ("qtdeclarative" ,qtdeclarative)
10694 ("qtsvg" ,qtsvg)))
10695 (home-page "https://games.kde.org/")
10696 (synopsis "Place 4 pieces in a row")
10697 (description "KFourInLine is a board game for two players based on the
10698 Connect-Four game.
10699
10700 KFourInLine is a game where two players take turns dropping pieces into a
10701 grid, the winner being the first to place four pieces in a line.
10702
10703 This package is part of the KDE games module.")
10704 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10705
10706 (define-public kblackbox
10707 (package
10708 (name "kblackbox")
10709 (version "20.12.0")
10710 (source
10711 (origin
10712 (method url-fetch)
10713 (uri (string-append "mirror://kde/stable/release-service/" version
10714 "/src/kblackbox-" version ".tar.xz"))
10715 (sha256
10716 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10717 (build-system qt-build-system)
10718 (native-inputs
10719 `(("extra-cmake-modules" ,extra-cmake-modules)
10720 ("kdoctools" ,kdoctools)))
10721 (inputs
10722 `(("karchive" ,karchive)
10723 ("kcompletion" ,kcompletion)
10724 ("kconfig" ,kconfig)
10725 ("kcoreaddons" ,kcoreaddons)
10726 ("kcrash" ,kcrash)
10727 ("kdbusaddons" ,kdbusaddons)
10728 ("ki18n" ,ki18n)
10729 ("ktextwidgets" ,ktextwidgets)
10730 ("kxmlgui" ,kxmlgui)
10731 ("libkdegames" ,libkdegames)
10732 ("qtbase" ,qtbase)
10733 ("qtdeclarative" ,qtdeclarative)
10734 ("qtsvg" ,qtsvg)))
10735 (home-page "https://games.kde.org/")
10736 (synopsis "Find atoms in a grid by shooting electrons")
10737 (description "KBlackbox is a game of hide and seek played on a grid of
10738 boxes where the computer has hidden several balls. The position of the hidden
10739 balls can be deduced by shooting beams into the box
10740
10741 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10742 player shoots rays into the grid to deduce the positions of hidden objects.
10743
10744 This package is part of the KDE games module.")
10745 (license (list license:gpl2+ license:fdl1.2+))))
10746
10747 (define-public knetwalk
10748 (package
10749 (name "knetwalk")
10750 (version "20.12.0")
10751 (source
10752 (origin
10753 (method url-fetch)
10754 (uri (string-append "mirror://kde/stable/release-service/" version
10755 "/src/knetwalk-" version ".tar.xz"))
10756 (sha256
10757 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
10758 (build-system qt-build-system)
10759 (native-inputs
10760 `(("extra-cmake-modules" ,extra-cmake-modules)
10761 ("kdoctools" ,kdoctools)))
10762 (inputs
10763 `(("kcompletion" ,kcompletion)
10764 ("kconfig" ,kconfig)
10765 ("kconfigwidgets" ,kconfigwidgets)
10766 ("kcoreaddons" ,kcoreaddons)
10767 ("kcrash" ,kcrash)
10768 ("kdbusaddons" ,kdbusaddons)
10769 ("ki18n" ,ki18n)
10770 ("ktextwidgets" ,ktextwidgets)
10771 ("kwidgetsaddons" ,kwidgetsaddons)
10772 ("kxmlgui" ,kxmlgui)
10773 ("libkdegames" ,libkdegames)
10774 ("qtbase" ,qtbase)
10775 ("qtdeclarative" ,qtdeclarative)))
10776 (home-page "https://games.kde.org/")
10777 (synopsis "Turn the board pieces to get all computers connected")
10778 (description "KNetWalk is a small game where you have to build up a
10779 computer network by rotating the wires to connect the terminals to the server.
10780 When the network is build, a highscore-list comes up where competitions can be
10781 fought out.
10782
10783 KNetwalk is a puzzle game where the player arranges sections of wire to
10784 connect all the computers on the board.
10785
10786 This package is part of the KDE games module.")
10787 (license (list license:gpl2+ license:fdl1.2+))))
10788
10789 (define-public bomber
10790 (package
10791 (name "bomber")
10792 (version "20.12.0")
10793 (source
10794 (origin
10795 (method url-fetch)
10796 (uri (string-append "mirror://kde/stable/release-service/" version
10797 "/src/bomber-" version ".tar.xz"))
10798 (sha256
10799 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
10800 (build-system qt-build-system)
10801 (native-inputs
10802 `(("extra-cmake-modules" ,extra-cmake-modules)
10803 ("kdoctools" ,kdoctools)))
10804 (inputs
10805 `(("kcompletiom" ,kcompletion)
10806 ("kconfig" ,kconfig)
10807 ("kcoreaddons" ,kcoreaddons)
10808 ("kcrash" ,kcrash)
10809 ("kdbusaddons" ,kdbusaddons)
10810 ("ki18n" ,ki18n)
10811 ("kxmlgui" ,kxmlgui)
10812 ("libkdegames" ,libkdegames)
10813 ("qtbase" ,qtbase)
10814 ("qtdeclarative" ,qtdeclarative)))
10815 (home-page "https://games.kde.org/")
10816 (synopsis "Arcade bombing game")
10817 (description "Bomber is a single player arcade game.
10818
10819 The player is invading various cities in a plane that is decreasing in height.
10820 The goal of the game is to destroy all the buildings and advance to the next
10821 level. Each level gets a bit harder by increasing the speed of the plane and
10822 the height of the buildings.
10823
10824 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10825 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10826 not destroyed a building in your path, you will crash into it.
10827
10828 This package is part of the KDE games module.")
10829 (license (list license:gpl2+ license:fdl1.2+))))
10830
10831 (define-public granatier
10832 (package
10833 (name "granatier")
10834 (version "20.12.0")
10835 (source
10836 (origin
10837 (method url-fetch)
10838 (uri (string-append "mirror://kde/stable/release-service/" version
10839 "/src/granatier-" version ".tar.xz"))
10840 (sha256
10841 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
10842 (build-system qt-build-system)
10843 (native-inputs
10844 `(("extra-cmake-modules" ,extra-cmake-modules)
10845 ("kdoctools" ,kdoctools)))
10846 (inputs
10847 `(("kcompletion" ,kcompletion)
10848 ("kconfig" ,kconfig)
10849 ("kconfigwidgets" ,kconfigwidgets)
10850 ("kcoreaddons" ,kcoreaddons)
10851 ("kcrash" ,kcrash)
10852 ("kdbusaddons" ,kdbusaddons)
10853 ("ki18n" ,ki18n)
10854 ("knewstuff" ,knewstuff)
10855 ("kwidgetsaddons" ,kwidgetsaddons)
10856 ("kxmlgui" ,kxmlgui)
10857 ("libkdegames" ,libkdegames)
10858 ("qtbase" ,qtbase)
10859 ("qtdeclarative" ,qtdeclarative)
10860 ("qtsvg" ,qtsvg)))
10861 (home-page "https://games.kde.org/")
10862 (synopsis "Bomberman clone")
10863 (description "Granatier is a clone of the classic Bomberman game,
10864 inspired by the work of the Clanbomber clone.
10865
10866 This package is part of the KDE games module.")
10867 (license (list license:gpl2+ license:fdl1.2+))))
10868
10869 (define-public ksirk
10870 (package
10871 (name "ksirk")
10872 (version "20.12.0")
10873 (source
10874 (origin
10875 (method url-fetch)
10876 (uri (string-append "mirror://kde/stable/release-service/" version
10877 "/src/ksirk-" version ".tar.xz"))
10878 (sha256
10879 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
10880 (build-system qt-build-system)
10881 (native-inputs
10882 `(("extra-cmake-modules" ,extra-cmake-modules)
10883 ("kdoctools" ,kdoctools)))
10884 (inputs
10885 `(("kcrash" ,kcrash)
10886 ("ki18n" ,ki18n)
10887 ("kiconthemes" ,kiconthemes)
10888 ("kio" ,kio)
10889 ("knewstuff" ,knewstuff)
10890 ("kwallet" ,kwallet)
10891 ("kxmlgui" ,kxmlgui)
10892 ("libkdegames" ,libkdegames)
10893 ("phonon" ,phonon)
10894 ("qca" ,qca)
10895 ("qtbase" ,qtbase)
10896 ("qtdeclarative" ,qtdeclarative)
10897 ("qtsvg" ,qtsvg)
10898 ("zlib" ,zlib)))
10899 (home-page "https://games.kde.org/")
10900 (synopsis "Computerized version of the well known strategy board game
10901 'Risk'")
10902 (description "KsirK is a multi-player network-enabled game. The goal of
10903 the game is simply to conquer the world by attacking your neighbors with your
10904 armies.
10905
10906 At the beginning of the game, countries are distributed to all the players.
10907 Each country contains one army represented by an infantryman. Each player has
10908 some armies to distribute to his countries. On each turn, each player can
10909 attack his neighbours, eventually conquering one or more countries. At the
10910 end of each turn, some bonus armies are distributed to the players in function
10911 of the number of countries they own. The winner is the player that conquered
10912 all the world.
10913
10914 Features:
10915 @itemize
10916 @item Support for 1-6 human or computer players
10917 @item Multi-player gaming over a network
10918 @item You can easily create new skins with SVG graphics and the skin editor
10919 @item Hot New Stuff support. You can easily download and install new skins
10920 @end itemize
10921
10922 This package is part of the KDE games module.")
10923 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10924
10925 (define-public palapeli
10926 (package
10927 (name "palapeli")
10928 (version "20.12.0")
10929 (source
10930 (origin
10931 (method url-fetch)
10932 (uri (string-append "mirror://kde/stable/release-service/" version
10933 "/src/palapeli-" version ".tar.xz"))
10934 (sha256
10935 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
10936 (build-system qt-build-system)
10937 (native-inputs
10938 `(("extra-cmake-modules" ,extra-cmake-modules)
10939 ("kdoctools" ,kdoctools)))
10940 (inputs
10941 `(("karchive" ,karchive)
10942 ("kcompletion" ,kcompletion)
10943 ("kconfig" ,kconfig)
10944 ("kconfigwidgets" ,kconfigwidgets)
10945 ("kcoreaddons" ,kcoreaddons)
10946 ("kcrash" ,kcrash)
10947 ("kcrash" ,kcrash)
10948 ("ki18n" ,ki18n)
10949 ("ki18n" ,ki18n)
10950 ("kio" ,kio)
10951 ("kitemviews" ,kitemviews)
10952 ("knotifications" ,knotifications)
10953 ("kservice" ,kservice)
10954 ("kwidgetsaddons" ,kwidgetsaddons)
10955 ("kxmlgui" ,kxmlgui)
10956 ("libkdegames" ,libkdegames)
10957 ("qtbase" ,qtbase)
10958 ("qtdeclarative" ,qtdeclarative)
10959 ("qtsvg" ,qtsvg)
10960 ("shared-mime-info" ,shared-mime-info)))
10961 (home-page "https://games.kde.org/")
10962 (synopsis "Jigsaw puzzle game")
10963 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
10964 that genre, you are not limited to aligning pieces on imaginary grids. The
10965 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
10966 everything you do is saved on your disk immediately.
10967
10968 Palapeli is the Finnish word for jigsaw puzzle.
10969
10970 This package is part of the KDE games module.")
10971 (license license:gpl2+)))
10972
10973 (define-public kiriki
10974 (package
10975 (name "kiriki")
10976 (version "20.12.0")
10977 (source
10978 (origin
10979 (method url-fetch)
10980 (uri (string-append "mirror://kde/stable/release-service/" version
10981 "/src/kiriki-" version ".tar.xz"))
10982 (sha256
10983 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
10984 (build-system qt-build-system)
10985 (native-inputs
10986 `(("extra-cmake-modules" ,extra-cmake-modules)
10987 ("kdoctools" ,kdoctools)))
10988 (inputs
10989 `(("kcompletion" ,kcompletion)
10990 ("kconfig" ,kconfig)
10991 ("kconfigwidgets" ,kconfigwidgets)
10992 ("kcoreaddons" ,kcoreaddons)
10993 ("kcrash" ,kcrash)
10994 ("kdbusaddons" ,kdbusaddons)
10995 ("ki18n" ,ki18n)
10996 ("kiconthemes" ,kiconthemes)
10997 ("kxmlgui" ,kxmlgui)
10998 ("libkdegames" ,libkdegames)
10999 ("qtbase" ,qtbase)
11000 ("qtdeclarative" ,qtdeclarative)))
11001 (home-page "https://games.kde.org/")
11002 (synopsis "Yahtzee dice game")
11003 (description "Kiriki is an addictive and fun dice game, designed to be
11004 played by as many as six players.
11005
11006 Participants have to collect points by rolling five dice for up to three times
11007 per single turn to make combinations with the highest score.
11008
11009 This package is part of the KDE games module.")
11010 (license (list license:gpl2+ license:fdl1.2+))))
11011
11012 (define-public kigo
11013 (package
11014 (name "kigo")
11015 (version "20.12.0")
11016 (source
11017 (origin
11018 (method url-fetch)
11019 (uri (string-append "mirror://kde/stable/release-service/" version
11020 "/src/kigo-" version ".tar.xz"))
11021 (sha256
11022 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
11023 (build-system qt-build-system)
11024 (native-inputs
11025 `(("extra-cmake-modules" ,extra-cmake-modules)
11026 ("kdoctools" ,kdoctools)))
11027 (inputs
11028 `(("kconfig" ,kconfig)
11029 ("kconfigwidgets" ,kconfigwidgets)
11030 ("kcoreaddons" ,kcoreaddons)
11031 ("kcrash" ,kcrash)
11032 ("kdbusaddons" ,kdbusaddons)
11033 ("ki18n" ,ki18n)
11034 ("kio" ,kio)
11035 ("knewstuff" ,knewstuff)
11036 ("ktextwidgets" ,ktextwidgets)
11037 ("kxmlgui" ,kxmlgui)
11038 ("libkdegames" ,libkdegames)
11039 ("qtbase" ,qtbase)
11040 ("qtdeclarative" ,qtdeclarative)
11041 ("qtsvg" ,qtsvg)))
11042 (home-page "https://games.kde.org/")
11043 (synopsis "Go board game")
11044 (description "Kigo is an open-source implementation of the popular Go
11045 game.
11046
11047 Go is a strategic board game for two players. It is also known as
11048 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
11049 for being rich in strategic complexity despite its simple rules. The game is
11050 played by two players who alternately place black and white stones (playing
11051 pieces, now usually made of glass or plastic) on the vacant intersections of a
11052 grid of 19x19 lines (9x9 or 13x13 for easier games).
11053
11054 You also need to install a go engine, e.g. @code{gnugo}.
11055
11056 This package is part of the KDE games module.")
11057 (license license:gpl3+)))
11058
11059 (define-public kubrick
11060 (package
11061 (name "kubrick")
11062 (version "20.12.0")
11063 (source
11064 (origin
11065 (method url-fetch)
11066 (uri (string-append "mirror://kde/stable/release-service/" version
11067 "/src/kubrick-" version ".tar.xz"))
11068 (sha256
11069 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
11070 (build-system qt-build-system)
11071 (native-inputs
11072 `(("extra-cmake-modules" ,extra-cmake-modules)
11073 ("kdoctools" ,kdoctools)))
11074 (inputs
11075 `(("glu" ,glu)
11076 ("kconfig" ,kconfig)
11077 ("kconfigwidgets" ,kconfigwidgets)
11078 ("kcoreaddons" ,kcoreaddons)
11079 ("kcrash" ,kcrash)
11080 ("ki18n" ,ki18n)
11081 ("kio" ,kio)
11082 ("kwidgetsaddons" ,kwidgetsaddons)
11083 ("kxmlgui" ,kxmlgui)
11084 ("libkdegames" ,libkdegames)
11085 ("qtbase" ,qtbase)
11086 ("qtdeclarative" ,qtdeclarative)
11087 ("qtsvg" ,qtsvg)))
11088 (home-page "https://games.kde.org/")
11089 (synopsis "Game based on Rubik's Cube")
11090 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11091
11092 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11093 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11094 selection of puzzles at several levels of difficulty, as well as demos of
11095 pretty patterns and solution moves, or you can make up your own puzzles. The
11096 game has unlimited undo, redo, save and reload capabilities.
11097
11098 This package is part of the KDE games module.")
11099 (license (list license:gpl2+ license:fdl1.2+))))
11100
11101 (define-public lskat
11102 (package
11103 (name "lskat")
11104 (version "20.12.0")
11105 (source
11106 (origin
11107 (method url-fetch)
11108 (uri (string-append "mirror://kde/stable/release-service/" version
11109 "/src/lskat-" version ".tar.xz"))
11110 (sha256
11111 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11112 (build-system qt-build-system)
11113 (native-inputs
11114 `(("extra-cmake-modules" ,extra-cmake-modules)
11115 ("kdoctools" ,kdoctools)))
11116 (inputs
11117 `(("kcompletion" ,kcompletion)
11118 ("kconfig" ,kconfig)
11119 ("kcoreaddons" ,kcoreaddons)
11120 ("kcrash" ,kcrash)
11121 ("kguiaddons" ,kguiaddons)
11122 ("ki18n" ,ki18n)
11123 ("kwidgetsaddons" ,kwidgetsaddons)
11124 ("kxmlgui" ,kxmlgui)
11125 ("libkdegames" ,libkdegames)
11126 ("qtbase" ,qtbase)
11127 ("qtdeclarative" ,qtdeclarative)
11128 ("qtsvg" ,qtsvg)))
11129 (home-page "https://games.kde.org/")
11130 (synopsis "Lieutnant Skat card game")
11131 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11132 engaging card game for two players, where the second player is either live
11133 opponent, or a built in artificial intelligence.
11134
11135 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11136
11137 This package is part of the KDE games module.")
11138 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11139
11140 (define-public kapman
11141 (package
11142 (name "kapman")
11143 (version "20.12.0")
11144 (source
11145 (origin
11146 (method url-fetch)
11147 (uri (string-append "mirror://kde/stable/release-service/" version
11148 "/src/kapman-" version ".tar.xz"))
11149 (sha256
11150 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11151 (build-system qt-build-system)
11152 (native-inputs
11153 `(("extra-cmake-modules" ,extra-cmake-modules)
11154 ("kdoctools" ,kdoctools)))
11155 (inputs
11156 `(("kcompletion" ,kcompletion)
11157 ("kconfig" ,kconfig)
11158 ("kconfigwidgets" ,kconfigwidgets)
11159 ("kcoreaddons" ,kcoreaddons)
11160 ("kcrash" ,kcrash)
11161 ("kdbusaddons" ,kdbusaddons)
11162 ("ki18n" ,ki18n)
11163 ("kxmlgui" ,kxmlgui)
11164 ("libkdegames" ,libkdegames)
11165 ("qtbase" ,qtbase)
11166 ("qtdeclarative" ,qtdeclarative)
11167 ("qtsvg" ,qtsvg)))
11168 (home-page "https://games.kde.org/")
11169 (synopsis "Pac-Man clone")
11170 (description "Kapman is a clone of the well known game Pac-Man.
11171
11172 You must run through the maze to eat all pills without being captured by a
11173 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11174 few seconds. When a stage is cleared of pills and energizer the player is
11175 taken to the next stage with slightly increased game speed
11176
11177 This package is part of the KDE games module.")
11178 (license (list license:gpl2+ license:fdl1.2+))))
11179
11180 (define-public kspaceduel
11181 (package
11182 (name "kspaceduel")
11183 (version "20.12.0")
11184 (source
11185 (origin
11186 (method url-fetch)
11187 (uri (string-append "mirror://kde/stable/release-service/" version
11188 "/src/kspaceduel-" version ".tar.xz"))
11189 (sha256
11190 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11191 (build-system qt-build-system)
11192 (native-inputs
11193 `(("extra-cmake-modules" ,extra-cmake-modules)
11194 ("kdoctools" ,kdoctools)))
11195 (inputs
11196 `(("kcompletion" ,kcompletion)
11197 ("kconfig" ,kconfig)
11198 ("kconfigwidgets" ,kconfigwidgets)
11199 ("kcoreaddons" ,kcoreaddons)
11200 ("kcrash" ,kcrash)
11201 ("kdbusaddons" ,kdbusaddons)
11202 ("ki18n" ,ki18n)
11203 ("kxmlgui" ,kxmlgui)
11204 ("libkdegames" ,libkdegames)
11205 ("qtbase" ,qtbase)
11206 ("qtdeclarative" ,qtdeclarative)
11207 ("qtsvg" ,qtsvg)))
11208 (home-page "https://games.kde.org/")
11209 (synopsis "Two player game with shooting spaceships flying around a sun")
11210 (description "KSpaceduel is a space battle game for one or two players,
11211 where two ships fly around a star in a struggle to be the only survivor.
11212
11213 This package is part of the KDE games module.")
11214 (license (list license:gpl2+ license:fdl1.2+))))
11215
11216 (define-public bovo
11217 (package
11218 (name "bovo")
11219 (version "20.12.0")
11220 (source
11221 (origin
11222 (method url-fetch)
11223 (uri (string-append "mirror://kde/stable/release-service/" version
11224 "/src/bovo-" version ".tar.xz"))
11225 (sha256
11226 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11227 (build-system qt-build-system)
11228 (native-inputs
11229 `(("extra-cmake-modules" ,extra-cmake-modules)
11230 ("kdoctools" ,kdoctools)))
11231 (inputs
11232 `(("kcompletion" ,kcompletion)
11233 ("kcoreaddons" ,kcoreaddons)
11234 ("kcrash" ,kcrash)
11235 ("kdbusaddons" ,kdbusaddons)
11236 ("ki18n" ,ki18n)
11237 ("kxmlgui" ,kxmlgui)
11238 ("libkdegames" ,libkdegames)
11239 ("qtbase" ,qtbase)
11240 ("qtdeclarative" ,qtdeclarative)
11241 ("qtsvg" ,qtsvg)))
11242 (home-page "https://games.kde.org/")
11243 (synopsis "Classic pen and paper game: five in a line")
11244 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11245 points\") like game for two players, where the opponents alternate in placing
11246 their respective pictogram on the game board. The winner is the first to
11247 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11248 X and O, Naughts and Crosses)
11249
11250 This package is part of the KDE games module.")
11251 (license (list license:gpl2+ license:fdl1.2+))))
11252
11253 (define-public killbots
11254 (package
11255 (name "killbots")
11256 (version "20.12.0")
11257 (source
11258 (origin
11259 (method url-fetch)
11260 (uri (string-append "mirror://kde/stable/release-service/" version
11261 "/src/killbots-" version ".tar.xz"))
11262 (sha256
11263 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11264 (build-system qt-build-system)
11265 (native-inputs
11266 `(("extra-cmake-modules" ,extra-cmake-modules)
11267 ("kdoctools" ,kdoctools)))
11268 (inputs
11269 `(("kcompletion" ,kcompletion)
11270 ("kconfig" ,kconfig)
11271 ("kconfigwidgets" ,kconfigwidgets)
11272 ("kcoreaddons" ,kcoreaddons)
11273 ("kcrash" ,kcrash)
11274 ("kdbusaddons" ,kdbusaddons)
11275 ("ki18n" ,ki18n)
11276 ("kwidgetsaddons" ,kwidgetsaddons)
11277 ("kxmlgui" ,kxmlgui)
11278 ("libkdegames" ,libkdegames)
11279 ("qtbase" ,qtbase)
11280 ("qtdeclarative" ,qtdeclarative)))
11281 (home-page "https://games.kde.org/")
11282 (synopsis "Port of the classic BSD console game robots")
11283 (description "Killbots is a simple game of evading killer robots.
11284
11285 Who created the robots and why they have been programmed to destroy, no one
11286 knows. All that is known is that the robots are numerous and their sole
11287 objective is to destroy you. Fortunately for you, their creator has focused
11288 on quantity rather than quality and as a result the robots are severely
11289 lacking in intelligence. Your superior wit and a fancy teleportation device
11290 are your only weapons against the never-ending stream of mindless automatons.
11291
11292 This package is part of the KDE games module.")
11293 (license (list license:gpl2+ license:fdl1.2+))))
11294
11295 (define-public ksnakeduel
11296 (package
11297 (name "ksnakeduel")
11298 (version "20.12.0")
11299 (source
11300 (origin
11301 (method url-fetch)
11302 (uri (string-append "mirror://kde/stable/release-service/" version
11303 "/src/ksnakeduel-" version ".tar.xz"))
11304 (sha256
11305 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11306 (build-system qt-build-system)
11307 (native-inputs
11308 `(("extra-cmake-modules" ,extra-cmake-modules)
11309 ("kdoctools" ,kdoctools)))
11310 (inputs
11311 `(("kcompletion" ,kcompletion)
11312 ("kconfig" ,kconfig)
11313 ("kconfigwidgets" ,kconfigwidgets)
11314 ("kcoreaddons" ,kcoreaddons)
11315 ("kcrash" ,kcrash)
11316 ("kdbusaddons" ,kdbusaddons)
11317 ("kguiaddons" ,kguiaddons)
11318 ("ki18n" ,ki18n)
11319 ("kxmlgui" ,kxmlgui)
11320 ("libkdegames" ,libkdegames)
11321 ("qtbase" ,qtbase)
11322 ("qtdeclarative" ,qtdeclarative)
11323 ("qtsvg" ,qtsvg)))
11324 (home-page "https://games.kde.org/")
11325 (synopsis "Snake race played against the computer")
11326 (description "KSnakeDuel is a fast action game where you steer a snake
11327 which has to eat food. While eating the snake grows. But once a player
11328 collides with the other snake or the wall the game is lost. This becomes of
11329 course more and more difficult the longer the snakes grow.
11330
11331 This package is part of the KDE games module.")
11332 (license (list license:gpl2+ license:fdl1.2+))))
11333
11334 (define-public kollision
11335 (package
11336 (name "kollision")
11337 (version "20.12.0")
11338 (source
11339 (origin
11340 (method url-fetch)
11341 (uri (string-append "mirror://kde/stable/release-service/" version
11342 "/src/kollision-" version ".tar.xz"))
11343 (sha256
11344 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11345 (build-system qt-build-system)
11346 (native-inputs
11347 `(("extra-cmake-modules" ,extra-cmake-modules)
11348 ("kdoctools" ,kdoctools)))
11349 (inputs
11350 `(("kcompletion" ,kcompletion)
11351 ("kconfig" ,kconfig)
11352 ("kcoreaddons" ,kcoreaddons)
11353 ("kcrash" ,kcrash)
11354 ("kdbusaddons" ,kdbusaddons)
11355 ("ki18n" ,ki18n)
11356 ("kwidgetsaddons" ,kwidgetsaddons)
11357 ("kxmlgui" ,kxmlgui)
11358 ("libkdegames" ,libkdegames)
11359 ("qtbase" ,qtbase)
11360 ("qtdeclarative" ,qtdeclarative)))
11361 (home-page "https://games.kde.org/")
11362 (synopsis "Simple ball dodging game")
11363 (description "In Kollision you use mouse to control a small blue ball in a
11364 closed space environment filled with small red balls, which move about
11365 chaotically. Your goal is to avoid touching any of those red balls with your
11366 blue one, because the moment you do the game will be over. The longer you can
11367 stay in game the higher will your score be.
11368
11369 This package is part of the KDE games module.")
11370 (license (list license:gpl2+ license:fdl1.2+))))
11371
11372 (define-public knavalbattle
11373 (package
11374 (name "knavalbattle")
11375 (version "20.12.0")
11376 (source
11377 (origin
11378 (method url-fetch)
11379 (uri (string-append "mirror://kde/stable/release-service/" version
11380 "/src/knavalbattle-" version ".tar.xz"))
11381 (sha256
11382 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11383 (build-system qt-build-system)
11384 (native-inputs
11385 `(("extra-cmake-modules" ,extra-cmake-modules)
11386 ("kdoctools" ,kdoctools)))
11387 (inputs
11388 `(("kauth" ,kauth)
11389 ("kcompletion" ,kcompletion)
11390 ("kconfig" ,kconfig)
11391 ("kconfigwidgets" ,kconfigwidgets)
11392 ("kcoreaddons" ,kcoreaddons)
11393 ("kcrash" ,kcrash)
11394 ("kdbusaddons" ,kdbusaddons)
11395 ("kdnssd" ,kdnssd)
11396 ("ki18n" ,ki18n)
11397 ("ktextwidgets" ,ktextwidgets)
11398 ("kxmlgui" ,kxmlgui)
11399 ("libkdegames" ,libkdegames)
11400 ("qtbase" ,qtbase)
11401 ("qtdeclarative" ,qtdeclarative)))
11402 (home-page "https://games.kde.org/")
11403 (synopsis "Battleship board game with built-in game server")
11404 (description "KBattleship is a Battle Ship game for KDE.
11405
11406 Ships are placed on a board which represents the sea. Players try to hit each
11407 others ships in turns without knowing where they are placed. The first player
11408 to destroy all ships wins the game.
11409
11410 This package is part of the KDE games module.")
11411 (license (list license:gpl2+ license:fdl1.2+))))
11412
11413 (define-public kreversi
11414 (package
11415 (name "kreversi")
11416 (version "20.08.3")
11417 (source
11418 (origin
11419 (method url-fetch)
11420 (uri (string-append "mirror://kde/stable/release-service/" version
11421 "/src/kreversi-" version ".tar.xz"))
11422 (sha256
11423 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11424 (build-system qt-build-system)
11425 (native-inputs
11426 `(("extra-cmake-modules" ,extra-cmake-modules)
11427 ("kdoctools" ,kdoctools)))
11428 (inputs
11429 `(("kconfig" ,kconfig)
11430 ("kconfigwidgets" ,kconfigwidgets)
11431 ("kcoreaddons" ,kcoreaddons)
11432 ("kcrash" ,kcrash)
11433 ("kdbusaddons" ,kdbusaddons)
11434 ("kdeclarative" ,kdeclarative)
11435 ("ki18n" ,ki18n)
11436 ("kiconthemes" ,kiconthemes)
11437 ("kio" ,kio)
11438 ("kxmlgui" ,kxmlgui)
11439 ("libkdegames" ,libkdegames)
11440 ("qtbase" ,qtbase)
11441 ("qtdeclarative" ,qtdeclarative)
11442 ("qtsvg" ,qtsvg)))
11443 (home-page "https://games.kde.org/")
11444 (synopsis "Old reversi board game, also known as othello")
11445 (description "KReversi is a simple one player strategy game played
11446 against the computer.
11447
11448 If a player's piece is captured by an opposing player, that piece is turned
11449 over to reveal the color of that player. A winner is declared when one player
11450 has more pieces of his own color on the board and there are no more possible
11451 moves.
11452
11453 This package is part of the KDE games module.")
11454 (license (list license:gpl2+ license:fdl1.2+))))
11455
11456 (define-public ksquares
11457 (package
11458 (name "ksquares")
11459 (version "20.12.0")
11460 (source
11461 (origin
11462 (method url-fetch)
11463 (uri (string-append "mirror://kde/stable/release-service/" version
11464 "/src/ksquares-" version ".tar.xz"))
11465 (sha256
11466 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11467 (build-system qt-build-system)
11468 (native-inputs
11469 `(("extra-cmake-modules" ,extra-cmake-modules)
11470 ("kdoctools" ,kdoctools)))
11471 (inputs
11472 `(("kcompletion" ,kcompletion)
11473 ("kconfig" ,kconfig)
11474 ("kconfigwidgets" ,kconfigwidgets)
11475 ("kcoreaddons" ,kcoreaddons)
11476 ("kcrash" ,kcrash)
11477 ("kdbusaddons" ,kdbusaddons)
11478 ("ki18n" ,ki18n)
11479 ("kwidgetsaddons" ,kwidgetsaddons)
11480 ("kxmlgui" ,kxmlgui)
11481 ("libkdegames" ,libkdegames)
11482 ("qtbase" ,qtbase)
11483 ("qtdeclarative" ,qtdeclarative)))
11484 (home-page "https://games.kde.org/")
11485 (synopsis "Dots and Boxes game")
11486 (description "KSquares is an implementation of the popular paper based
11487 game Squares. Two players take turns connecting dots on a grid to complete
11488 squares, the player with the most squares wins.
11489
11490 This package is part of the KDE games module.")
11491 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11492
11493 (define-public kjumpingcube
11494 (package
11495 (name "kjumpingcube")
11496 (version "20.12.0")
11497 (source
11498 (origin
11499 (method url-fetch)
11500 (uri (string-append "mirror://kde/stable/release-service/" version
11501 "/src/kjumpingcube-" version ".tar.xz"))
11502 (sha256
11503 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11504 (build-system qt-build-system)
11505 (native-inputs
11506 `(("extra-cmake-modules" ,extra-cmake-modules)
11507 ("kdoctools" ,kdoctools)))
11508 (inputs
11509 `(("kconfig" ,kconfig)
11510 ("kconfigwidgets" ,kconfigwidgets)
11511 ("kcoreaddons" ,kcoreaddons)
11512 ("kcrash" ,kcrash)
11513 ("kdbusaddons" ,kdbusaddons)
11514 ("ki18n" ,ki18n)
11515 ("kio" ,kio)
11516 ("kwidgetsaddons" ,kwidgetsaddons)
11517 ("kxmlgui" ,kxmlgui)
11518 ("libkdegames" ,libkdegames)
11519 ("qtbase" ,qtbase)
11520 ("qtdeclarative" ,qtdeclarative)
11521 ("qtsvg" ,qtsvg)))
11522 (home-page "https://games.kde.org/")
11523 (synopsis "Simple tactical game for number-crunchers")
11524 (description "KJumpingcube is a simple tactical game for one or two
11525 players, played on a grid of numbered squares. Each turn, players compete for
11526 control of the board by capturing or adding to one square.
11527
11528 This package is part of the KDE games module.")
11529 (license (list license:gpl2+ license:fdl1.2+))))
11530
11531 (define-public xmoto
11532 (package
11533 (name "xmoto")
11534 (version "0.6.1")
11535 (source
11536 (origin
11537 (method git-fetch)
11538 (uri (git-reference
11539 (url "https://github.com/xmoto/xmoto")
11540 (commit version)))
11541 (file-name (git-file-name name version))
11542 (sha256
11543 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11544 (modules '((guix build utils)
11545 (ice-9 ftw)
11546 (srfi srfi-1)))
11547 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11548 ;; it appears to be incompatible with the (older) one bundled.
11549 (snippet
11550 `(begin
11551 (let ((keep '("chipmunk" "glad" "md5sum")))
11552 (with-directory-excursion "vendor"
11553 (for-each delete-file-recursively
11554 (lset-difference string=?
11555 (scandir ".")
11556 (cons* "." ".." keep))))
11557 (substitute* "src/CMakeLists.txt"
11558 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11559 (if (member library keep) line ""))))
11560 #t))))
11561 (build-system cmake-build-system)
11562 (arguments
11563 `(#:tests? #f ;no test
11564 #:phases
11565 (modify-phases %standard-phases
11566 (add-after 'unpack 'fix-hard-coded-directory
11567 (lambda* (#:key outputs #:allow-other-keys)
11568 (substitute* "src/common/VFileIO.cpp"
11569 (("/usr/share")
11570 (string-append (assoc-ref outputs "out") "/share")))
11571 #t))
11572 (add-before 'build 'set-SDL
11573 ;; Set correct environment for SDL.
11574 (lambda* (#:key inputs #:allow-other-keys)
11575 (setenv "CPATH"
11576 (string-append
11577 (assoc-ref inputs "sdl") "/include/SDL:"
11578 (or (getenv "CPATH") "")))
11579 #t))
11580 (add-after 'install 'unbundle-fonts
11581 ;; Unbundle DejaVuSans TTF files.
11582 (lambda* (#:key outputs inputs #:allow-other-keys)
11583 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11584 "/share/fonts/truetype/"))
11585 (target-dir (string-append (assoc-ref outputs "out")
11586 "/share/xmoto/Textures/Fonts/")))
11587 (for-each (lambda (f)
11588 (let ((font (string-append font-dir f))
11589 (target (string-append target-dir f)))
11590 (delete-file target)
11591 (symlink font target)))
11592 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11593 #t))))))
11594 (native-inputs
11595 `(("gettext" ,gettext-minimal)
11596 ("pkg-config" ,pkg-config)))
11597 (inputs
11598 `(("bzip2" ,bzip2)
11599 ("curl" ,curl)
11600 ("font-dejavu" ,font-dejavu)
11601 ("glu" ,glu)
11602 ("libjpeg" ,libjpeg-turbo)
11603 ("libpng" ,libpng)
11604 ("libxdg-basedir" ,libxdg-basedir)
11605 ("libxml2" ,libxml2)
11606 ("lua" ,lua-5.1)
11607 ("ode" ,ode)
11608 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11609 ("sqlite" ,sqlite)
11610 ("zlib" ,zlib)))
11611 (home-page "https://xmoto.tuxfamily.org/")
11612 (synopsis "2D motocross platform game")
11613 (description
11614 "X-Moto is a challenging 2D motocross platform game, where
11615 physics play an all important role in the gameplay. You need to
11616 control your bike to its limit, if you want to have a chance finishing
11617 the more difficult challenges.")
11618 (license (list license:gpl2+ ;whole project
11619 license:bsd-3 ;vendor/md5sum
11620 license:lgpl2.1+
11621 license:expat))))
11622
11623 (define-public eboard
11624 (package
11625 (name "eboard")
11626 (version "1.1.3")
11627 (source
11628 (origin
11629 (method git-fetch)
11630 (uri (git-reference
11631 (url "https://github.com/fbergo/eboard")
11632 (commit (string-append "v" version))))
11633 (file-name (git-file-name name version))
11634 (sha256
11635 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11636 (build-system gnu-build-system)
11637 (native-inputs
11638 `(("perl" ,perl)
11639 ("pkg-config" ,pkg-config)))
11640 (inputs
11641 `(("gtk+" ,gtk+-2)
11642 ("libpng" ,libpng)
11643 ("gstreamer" ,gstreamer)))
11644 (arguments
11645 `(#:tests? #f
11646 #:phases
11647 (modify-phases %standard-phases
11648 (replace 'configure
11649 (lambda* (#:key outputs #:allow-other-keys)
11650 (make-file-writable "eboard-config")
11651 (setenv "CC" "gcc")
11652 (invoke "./configure"
11653 (string-append "--prefix=" (assoc-ref outputs "out")))
11654 #t))
11655 (add-before 'install 'make-required-directories
11656 (lambda* (#:key outputs #:allow-other-keys)
11657 (mkdir-p (string-append (assoc-ref outputs "out")
11658 "/share/eboard"))
11659 #t)))))
11660 (synopsis "Graphical user interface to play chess")
11661 (description
11662 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11663 and chess engines.")
11664 (home-page "https://www.bergo.eng.br/eboard/")
11665 (license license:gpl2+)))
11666
11667 (define-public chessx
11668 (package
11669 (name "chessx")
11670 (version "1.5.4")
11671 (source
11672 (origin
11673 (method url-fetch)
11674 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11675 version "/chessx-" version ".tgz"))
11676 (sha256
11677 (base32 "1a3541vl5hp6jllgx998w9kjh9kp3wrl80yfwkxmq1bc5bzsrnz2"))))
11678 (build-system qt-build-system)
11679 (native-inputs
11680 `(("qttools" ,qttools)))
11681 (inputs
11682 `(("qtbase" ,qtbase)
11683 ("qtmultimedia" ,qtmultimedia)
11684 ("qtspeech" ,qtspeech)
11685 ("qtsvg" ,qtsvg)
11686 ("zlib" ,zlib)))
11687 (arguments
11688 `(#:tests? #f
11689 #:phases
11690 (modify-phases %standard-phases
11691 (add-after 'unpack 'fix-paths
11692 (lambda* (#:key inputs #:allow-other-keys)
11693 (substitute* "chessx.pro"
11694 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11695 (string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
11696 ;; Fix missing translations.
11697 (("TRANSLATIONS = i18n/chessx_de.ts")
11698 "TRANSLATIONS = i18n/chessx_de.ts i18n/chessx_da.ts \\
11699 i18n/chessx_fr.ts i18n/chessx_it.ts i18n/chessx_cz.ts i18n/chessx_ru.ts \\
11700 i18n/chessx_es.ts"))
11701 #t))
11702 (add-after 'fix-paths 'make-qt-deterministic
11703 (lambda _
11704 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11705 #t))
11706 (replace 'configure
11707 (lambda _
11708 (invoke "qmake")
11709 #t))
11710 (replace 'install
11711 (lambda* (#:key outputs #:allow-other-keys)
11712 (let ((out (assoc-ref outputs "out")))
11713 (install-file "release/chessx" (string-append out "/bin"))
11714 (install-file "unix/chessx.desktop"
11715 (string-append out "/share/applications")))
11716 #t)))))
11717 (synopsis "Chess game database")
11718 (description
11719 "ChessX is a chess database. With ChessX you can operate on your
11720 collection of chess games in many ways: browse, edit, add, organize, analyze,
11721 etc. You can also play games on FICS or against an engine.")
11722 (home-page "http://chessx.sourceforge.net/")
11723 (license license:gpl2+)))
11724
11725 (define-public stockfish
11726 (package
11727 (name "stockfish")
11728 (version "12")
11729 (source
11730 (origin
11731 (method git-fetch)
11732 (uri (git-reference
11733 (url "https://github.com/official-stockfish/Stockfish")
11734 (commit (string-append "sf_" version))))
11735 (file-name (git-file-name name version))
11736 (sha256
11737 (base32 "0vcymbwp5nf114pp3ax40s21ki5dckda15vmhr77d1mnq3fn0l32"))))
11738 (build-system gnu-build-system)
11739 (inputs
11740 `(("neural-network"
11741 ,(origin
11742 (method url-fetch)
11743 (uri "https://tests.stockfishchess.org/api/nn/nn-82215d0fd0df.nnue")
11744 (sha256
11745 (base32 "1r4yqrh4di05syyhl84hqcz84djpbd605b27zhbxwg6zs07ms8c2"))))))
11746 (arguments
11747 `(#:tests? #f
11748 #:make-flags (list "-C" "src"
11749 "build"
11750 (string-append "PREFIX="
11751 (assoc-ref %outputs "out"))
11752 (string-append "ARCH="
11753 ,(match (%current-system)
11754 ("x86_64-linux" "x86-64")
11755 ("i686-linux" "x86-32")
11756 ("aarch64-linux" "general-64")
11757 ("armhf-linux" "armv7")
11758 ("mips64el-linux" "general-64")
11759 (_ "general-32"))))
11760 #:phases (modify-phases %standard-phases
11761 (delete 'configure)
11762 ;; The official neural network file is needed for building
11763 ;; and is embedded in the resulting binary.
11764 (add-after 'unpack 'copy-net
11765 (lambda* (#:key inputs #:allow-other-keys)
11766 (copy-file (assoc-ref inputs "neural-network")
11767 "src/nn-82215d0fd0df.nnue")
11768 #t)))))
11769 (synopsis "Strong chess engine")
11770 (description
11771 "Stockfish is a very strong chess engine. It is much stronger than the
11772 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11773 ChessX.")
11774 (home-page "https://stockfishchess.org/")
11775 (license license:gpl3+)))
11776
11777 (define-public barrage
11778 (package
11779 (name "barrage")
11780 (version "1.0.5")
11781 (source
11782 (origin
11783 (method url-fetch)
11784 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11785 "barrage-" version ".tar.gz"))
11786 (sha256
11787 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11788 (build-system gnu-build-system)
11789 (inputs
11790 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11791 ("sdl" ,sdl)
11792 ("sdl-mixer" ,sdl-mixer)))
11793 (arguments
11794 `(#:configure-flags
11795 (list
11796 (string-append "CFLAGS="
11797 "-I" (assoc-ref %build-inputs "sdl-mixer")
11798 "/include/SDL"))))
11799 (home-page "http://lgames.sourceforge.net/Barrage/")
11800 (synopsis "Violent point-and-click shooting game with nice effects")
11801 (description
11802 "Barrage is a rather destructive action game that puts you on a shooting
11803 range with the objective to hit as many dummy targets as possible within
11804 3 minutes. You control a gun that may either fire small or large grenades at
11805 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11806 get high scores.")
11807 (license license:gpl2+)))
11808
11809 (define-public burgerspace
11810 (package
11811 (name "burgerspace")
11812 (version "1.9.3")
11813 (source
11814 (origin
11815 (method url-fetch)
11816 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11817 "burgerspace-" version ".tar.gz"))
11818 (sha256
11819 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11820 (build-system gnu-build-system)
11821 (native-inputs
11822 `(("pkg-config" ,pkg-config)))
11823 (inputs
11824 `(("flatzebra" ,flatzebra)))
11825 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11826 (synopsis "Avoid evil foodstuffs and make burgers")
11827 (description
11828 "This is a clone of the classic game BurgerTime. In it, you play
11829 the part of a chef who must create burgers by stepping repeatedly on
11830 the ingredients until they fall into place. And to make things more
11831 complicated, you also must avoid evil animate food items while
11832 performing this task, with nothing but your trusty pepper shaker to
11833 protect you.")
11834 (license license:gpl2+)))
11835
11836 (define-public 7kaa
11837 (package
11838 (name "7kaa")
11839 (version "2.15.4p1")
11840 (source
11841 (origin
11842 (method url-fetch)
11843 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11844 "releases/download/v" version "/"
11845 "7kaa-" version ".tar.xz"))
11846 (sha256
11847 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
11848 (build-system gnu-build-system)
11849 (native-inputs
11850 `(("gettext" ,gettext-minimal)
11851 ("pkg-config" ,pkg-config)))
11852 (inputs
11853 `(("curl" ,curl)
11854 ("enet" ,enet)
11855 ("openal" ,openal)
11856 ("sdl2" ,sdl2)))
11857 (home-page "https://7kfans.com/")
11858 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11859 (description
11860 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11861 Strategy with the addition of trade, diplomacy, and espionage. The game
11862 enables players to compete against up to six other kingdoms allowing players
11863 to conquer opponents by defeating them in war (with troops or machines),
11864 capturing their buildings with spies, or offering opponents money for their
11865 kingdom.")
11866 (license license:gpl2+)))
11867
11868 (define-public neverball
11869 ;; Git version is 6-years younger than latest release.
11870 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
11871 (revision "1"))
11872 (package
11873 (name "neverball")
11874 (version (git-version "1.6.0" revision commit))
11875 (source
11876 (origin
11877 (method git-fetch)
11878 (uri (git-reference
11879 (url "https://github.com/Neverball/neverball")
11880 (commit commit)))
11881 (sha256
11882 (base32
11883 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
11884 (file-name (git-file-name name version))
11885 (modules '((guix build utils)))
11886 (snippet
11887 '(begin
11888 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
11889 (delete-file-recursively "data/ball/octocat")
11890 #t))))
11891 (build-system copy-build-system)
11892 (arguments
11893 `(#:install-plan
11894 '(("neverball" "bin/")
11895 ("neverputt" "bin/")
11896 ("mapc" "bin/")
11897 ("data" "share/games/neverball/")
11898 ("locale" "share/")
11899 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
11900 "neverlogos.svg"
11901 "svg readme.txt"))
11902 ("dist/" "share/applications" #:include ("neverball.desktop"
11903 "neverputt.desktop"))
11904 ("dist/neverball_16.png"
11905 "/share/icons/hicolor/16x16/apps/neverball.png")
11906 ("dist/neverball_24.png"
11907 "/share/icons/hicolor/24x24/apps/neverball.png")
11908 ("dist/neverball_32.png"
11909 "/share/icons/hicolor/32x32/apps/neverball.png")
11910 ("dist/neverball_48.png"
11911 "/share/icons/hicolor/48x48/apps/neverball.png")
11912 ("dist/neverball_64.png"
11913 "/share/icons/hicolor/64x64/apps/neverball.png")
11914 ("dist/neverball_128.png"
11915 "/share/icons/hicolor/128x128/apps/neverball.png")
11916 ("dist/neverball_256.png"
11917 "/share/icons/hicolor/256x256/apps/neverball.png")
11918 ("dist/neverball_512.png"
11919 "/share/icons/hicolor/512x512/apps/neverball.png")
11920 ("dist/neverputt_16.png"
11921 "/share/icons/hicolor/16x16/apps/neverputt.png")
11922 ("dist/neverputt_24.png"
11923 "/share/icons/hicolor/24x24/apps/neverputt.png")
11924 ("dist/neverputt_32.png"
11925 "/share/icons/hicolor/32x32/apps/neverputt.png")
11926 ("dist/neverputt_48.png"
11927 "/share/icons/hicolor/48x48/apps/neverputt.png")
11928 ("dist/neverputt_64.png"
11929 "/share/icons/hicolor/64x64/apps/neverputt.png")
11930 ("dist/neverputt_128.png"
11931 "/share/icons/hicolor/128x128/apps/neverputt.png")
11932 ("dist/neverputt_256.png"
11933 "/share/icons/hicolor/256x256/apps/neverputt.png")
11934 ("dist/neverputt_512.png"
11935 "/share/icons/hicolor/512x512/apps/neverputt.png")
11936 ("dist/" "share/man/man1" #:include ("mapc.1"))
11937 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
11938 ("doc/" "share/doc/neverball")
11939 ("README.md" "share/doc/neverball/"))
11940 #:phases
11941 (modify-phases %standard-phases
11942 (add-before 'install 'build
11943 (lambda* (#:key inputs outputs #:allow-other-keys)
11944 (let* ((out (assoc-ref outputs "out"))
11945 (sdl (assoc-ref inputs "sdl")))
11946 (invoke "make" "-j" (number->string (parallel-job-count))
11947 "--environment-overrides"
11948 "CC=gcc" "BUILD=release"
11949 (string-append "DATADIR="
11950 out
11951 "/share/games/neverball/data")
11952 (string-append "LOCALEDIR=" out "/share/locale")
11953 (string-append "SDL_CPPFLAGS=-I"
11954 sdl
11955 "/include/SDL2/")))
11956 #t))
11957 (add-after 'install 'fix-some-broken-fonts
11958 (lambda* (#:key outputs #:allow-other-keys)
11959 (let* ((out (assoc-ref outputs "out")))
11960 (wrap-program (string-append out "/bin/neverball")
11961 `("LANG" = ("en_US.utf8")))
11962 (wrap-program (string-append out "/bin/neverputt")
11963 `("LANG" = ("en_US.utf8"))))
11964 #t)))))
11965 (native-inputs
11966 `(("gettext" ,gettext-minimal))) ;for msgfmt
11967 (inputs
11968 `(("libjpeg" ,libjpeg-turbo)
11969 ("libpng" ,libpng)
11970 ("libvorbis" ,libvorbis)
11971 ("physfs" ,physfs)
11972 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
11973 (home-page "https://neverball.org/")
11974 (synopsis "3D floor-tilting game")
11975 (description
11976 "In the grand tradition of Marble Madness and Super Monkey Ball,
11977 Neverball has you guide a rolling ball through dangerous territory. Balance
11978 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
11979 and shovers to get to the goal. Race against the clock to collect coins to
11980 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
11981 game.") ;thanks to Debian for description
11982 (license license:gpl2+))))
11983
11984 (define-public pokerth
11985 (package
11986 (name "pokerth")
11987 (version "1.1.2")
11988 (source
11989 (origin
11990 (method url-fetch)
11991 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
11992 version "/pokerth-" version ".tar.gz"))
11993 (sha256
11994 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
11995 (modules '((guix build utils)))
11996 (snippet
11997 '(begin
11998 ;; Remove bundled websocketpp.
11999 (delete-file-recursively "src/third_party/websocketpp")
12000 (substitute* "pokerth_lib.pro"
12001 (("src/third_party/websocketpp")
12002 ""))
12003 #t))))
12004 (build-system qt-build-system)
12005 (inputs
12006 `(("boost" ,boost)
12007 ("curl" ,curl)
12008 ("gsasl" ,gsasl)
12009 ("libgcrypt" ,libgcrypt)
12010 ("libircclient" ,libircclient)
12011 ("protobuf" ,protobuf-2) ; remove package when no longer needed
12012 ("qtbase" ,qtbase)
12013 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
12014 ("sqlite" ,sqlite)
12015 ("tinyxml" ,tinyxml)
12016 ("websocketpp" ,websocketpp)
12017 ("zlib" ,zlib)))
12018 (arguments
12019 `(#:tests? #f ; No test suite
12020 #:phases
12021 (modify-phases %standard-phases
12022 (add-after 'unpack 'fix-paths
12023 (lambda* (#:key inputs #:allow-other-keys)
12024 (substitute* (find-files "." "\\.pro$")
12025 (("/opt/gsasl")
12026 (assoc-ref inputs "gsasl"))
12027 (("\\$\\$\\{PREFIX\\}/include/libircclient")
12028 (string-append (assoc-ref inputs "libircclient")
12029 "/include/libircclient"))
12030 (("LIB_DIRS =")
12031 (string-append "LIB_DIRS = "
12032 (assoc-ref inputs "boost") "/lib")))
12033 #t))
12034 (add-after 'unpack 'fix-build
12035 (lambda _
12036 ;; Fixes for Boost versions >= 1.66.
12037 (substitute* '("src/net/common/clientthread.cpp"
12038 "src/net/serveraccepthelper.h")
12039 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
12040 "")
12041 (("newSock->io_control\\(command\\);")
12042 "newSock->non_blocking(true);")
12043 (("acceptedSocket->io_control\\(command\\);")
12044 "acceptedSocket->non_blocking(true);"))
12045 #t))
12046 (replace 'configure
12047 (lambda* (#:key outputs #:allow-other-keys)
12048 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
12049 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
12050 (home-page "https://www.pokerth.net")
12051 (synopsis "Texas holdem poker game")
12052 (description
12053 "With PokerTH you can play the Texas holdem poker game, either against
12054 computer opponents or against real players online.")
12055 (license license:agpl3+)))
12056
12057 (define-public azimuth
12058 (package
12059 (name "azimuth")
12060 ;; Not marked as latest release, but it fixes a compiling issue
12061 ;; and adds the install target.
12062 (version "1.0.3")
12063 (source
12064 (origin
12065 (method git-fetch)
12066 (uri (git-reference
12067 (url "https://github.com/mdsteele/azimuth")
12068 (commit (string-append "v" version))))
12069 (file-name (git-file-name name version))
12070 (sha256
12071 (base32
12072 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
12073 (build-system gnu-build-system)
12074 (arguments
12075 `(#:test-target "test"
12076 #:phases
12077 (modify-phases %standard-phases
12078 (delete 'configure) ; no configure script
12079 ;; Build release version instead of debug version.
12080 (add-after 'unpack 'set-release
12081 (lambda _
12082 (setenv "BUILDTYPE" "release") #t))
12083 (add-after 'unpack 'fix-install ; set install directory
12084 (lambda* (#:key outputs #:allow-other-keys)
12085 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12086 (inputs `(("sdl" ,sdl)))
12087 (home-page "https://mdsteele.games/azimuth/")
12088 (synopsis "Metroidvania game with vector graphics")
12089 (description
12090 "Pilot your ship inside a planet to find and rescue the colonists trapped
12091 inside the Zenith Colony.")
12092 (license license:gpl3+)))
12093
12094 (define-public cgoban
12095 (package
12096 (name "cgoban")
12097 (version "1.9.14")
12098 (source
12099 (origin
12100 (method url-fetch)
12101 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12102 version "/cgoban-" version ".tar.gz"))
12103 (sha256
12104 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12105 (build-system gnu-build-system)
12106 (inputs
12107 `(("libx11" ,libx11)
12108 ("libxt" ,libxt)
12109 ("xorgproto" ,xorgproto)))
12110 (home-page "http://cgoban1.sourceforge.net/")
12111 (synopsis "Go client for X11")
12112 (description "Provides a large set of Go-related services for X11:
12113 @itemize
12114 @item Local games with precise implementation of the Chinese and Japanese rulesets
12115 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12116 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12117 such as GnuGo.
12118 @end itemize")
12119 (license license:gpl2+)))
12120
12121 (define-public paperview
12122 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12123 (revision "1"))
12124 (package
12125 (name "paperview")
12126 (version (git-version "0.0.1" revision commit)) ;no upstream release
12127 (source (origin
12128 (method git-fetch)
12129 (uri (git-reference
12130 (url "https://github.com/glouw/paperview")
12131 (commit commit)))
12132 (file-name (git-file-name name version))
12133 (sha256
12134 (base32
12135 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12136 (build-system gnu-build-system)
12137 (inputs
12138 `(("sdl2" ,sdl2)))
12139 (arguments
12140 '(#:tests? #f ;no tests
12141 #:make-flags
12142 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12143 #:phases
12144 (modify-phases %standard-phases
12145 (delete 'configure))))
12146 (home-page "https://github.com/glouw/paperview/")
12147 (synopsis "High performance X11 animated wallpaper setter")
12148 (description "High performance animated desktop background setter for
12149 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12150 game FPS.")
12151 (license license:unlicense))))
12152
12153 (define-public curseofwar
12154 (package
12155 (name "curseofwar")
12156 (version "1.3.0")
12157 (source
12158 (origin
12159 (method git-fetch)
12160 (uri (git-reference
12161 (url "https://github.com/a-nikolaev/curseofwar")
12162 (commit (string-append "v" version))))
12163 (file-name (git-file-name name version))
12164 (sha256
12165 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12166 (build-system gnu-build-system)
12167 (arguments
12168 `(#:tests? #f ; no tests
12169 #:make-flags
12170 (list (string-append "CC=" ,(cc-for-target))
12171 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12172 #:phases
12173 (modify-phases %standard-phases
12174 (delete 'configure))))
12175 (inputs `(("ncurses" ,ncurses)))
12176 (home-page "https://a-nikolaev.github.io/curseofwar/")
12177 (synopsis "Fast-paced action strategy game")
12178 (description "Curse of War is a fast-paced action strategy game originally
12179 implemented using ncurses user interface. An SDL graphical version is also
12180 available.")
12181 (license license:gpl3+)))