gnu: fontconfig: Add replacement with font-dejavu instead of gs-fonts.
[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 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 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 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017, 2018, 2019, 2020 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 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 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 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 ;;;
55 ;;; This file is part of GNU Guix.
56 ;;;
57 ;;; GNU Guix is free software; you can redistribute it and/or modify it
58 ;;; under the terms of the GNU General Public License as published by
59 ;;; the Free Software Foundation; either version 3 of the License, or (at
60 ;;; your option) any later version.
61 ;;;
62 ;;; GNU Guix is distributed in the hope that it will be useful, but
63 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
64 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
65 ;;; GNU General Public License for more details.
66 ;;;
67 ;;; You should have received a copy of the GNU General Public License
68 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
69
70 (define-module (gnu packages games)
71 #:use-module (ice-9 match)
72 #:use-module ((guix licenses) #:prefix license:)
73 #:use-module (guix utils)
74 #:use-module (guix packages)
75 #:use-module (guix download)
76 #:use-module (guix git-download)
77 #:use-module (guix svn-download)
78 #:use-module (guix gexp)
79 #:use-module (gnu packages)
80 #:use-module (gnu packages algebra)
81 #:use-module (gnu packages autotools)
82 #:use-module (gnu packages backup)
83 #:use-module (gnu packages base)
84 #:use-module (gnu packages build-tools)
85 #:use-module (gnu packages admin)
86 #:use-module (gnu packages audio)
87 #:use-module (gnu packages avahi)
88 #:use-module (gnu packages assembly)
89 #:use-module (gnu packages bash)
90 #:use-module (gnu packages bison)
91 #:use-module (gnu packages boost)
92 #:use-module (gnu packages check)
93 #:use-module (gnu packages cmake)
94 #:use-module (gnu packages compression)
95 #:use-module (gnu packages curl)
96 #:use-module (gnu packages crypto)
97 #:use-module (gnu packages cyrus-sasl)
98 #:use-module (gnu packages documentation)
99 #:use-module (gnu packages docbook)
100 #:use-module (gnu packages emulators)
101 #:use-module (gnu packages flex)
102 #:use-module (gnu packages fltk)
103 #:use-module (gnu packages fonts)
104 #:use-module (gnu packages fontutils)
105 #:use-module (gnu packages freedesktop)
106 #:use-module (gnu packages fribidi)
107 #:use-module (gnu packages game-development)
108 #:use-module (gnu packages gcc)
109 #:use-module (gnu packages gettext)
110 #:use-module (gnu packages ghostscript)
111 #:use-module (gnu packages gimp)
112 #:use-module (gnu packages gl)
113 #:use-module (gnu packages glib)
114 #:use-module (gnu packages gnome)
115 #:use-module (gnu packages gnuzilla)
116 #:use-module (gnu packages gperf)
117 #:use-module (gnu packages graphics)
118 #:use-module (gnu packages gstreamer)
119 #:use-module (gnu packages gtk)
120 #:use-module (gnu packages guile)
121 #:use-module (gnu packages haskell)
122 #:use-module (gnu packages haskell-crypto)
123 #:use-module (gnu packages haskell-xyz)
124 #:use-module (gnu packages icu4c)
125 #:use-module (gnu packages image)
126 #:use-module (gnu packages imagemagick)
127 #:use-module (gnu packages kde)
128 #:use-module (gnu packages kde-frameworks)
129 #:use-module (gnu packages less)
130 #:use-module (gnu packages libcanberra)
131 #:use-module (gnu packages libedit)
132 #:use-module (gnu packages libunwind)
133 #:use-module (gnu packages linux)
134 #:use-module (gnu packages llvm)
135 #:use-module (gnu packages lua)
136 #:use-module (gnu packages man)
137 #:use-module (gnu packages maths)
138 #:use-module (gnu packages mp3)
139 #:use-module (gnu packages music)
140 #:use-module (gnu packages multiprecision)
141 #:use-module (gnu packages ncurses)
142 #:use-module (gnu packages netpbm)
143 #:use-module (gnu packages networking)
144 #:use-module (gnu packages ocaml)
145 #:use-module (gnu packages opencl)
146 #:use-module (gnu packages pcre)
147 #:use-module (gnu packages perl)
148 #:use-module (gnu packages perl-check)
149 #:use-module (gnu packages pkg-config)
150 #:use-module (gnu packages pulseaudio)
151 #:use-module (gnu packages python)
152 #:use-module (gnu packages python-xyz)
153 #:use-module (gnu packages qt)
154 #:use-module (gnu packages readline)
155 #:use-module (gnu packages shells)
156 #:use-module (gnu packages sdl)
157 #:use-module (gnu packages serialization)
158 #:use-module (gnu packages sqlite)
159 #:use-module (gnu packages squirrel)
160 #:use-module (gnu packages swig)
161 #:use-module (gnu packages tcl)
162 #:use-module (gnu packages terminals)
163 #:use-module (gnu packages texinfo)
164 #:use-module (gnu packages textutils)
165 #:use-module (gnu packages tls)
166 #:use-module (gnu packages upnp)
167 #:use-module (gnu packages video)
168 #:use-module (gnu packages vulkan)
169 #:use-module (gnu packages web)
170 #:use-module (gnu packages wget)
171 #:use-module (gnu packages wxwidgets)
172 #:use-module (gnu packages xdisorg)
173 #:use-module (gnu packages xorg)
174 #:use-module (gnu packages xiph)
175 #:use-module (gnu packages xml)
176 #:use-module (gnu packages messaging)
177 #:use-module (gnu packages networking)
178 #:use-module (guix build-system copy)
179 #:use-module (guix build-system glib-or-gtk)
180 #:use-module (guix build-system gnu)
181 #:use-module (guix build-system go)
182 #:use-module (guix build-system meson)
183 #:use-module (guix build-system scons)
184 #:use-module (guix build-system python)
185 #:use-module (guix build-system cmake)
186 #:use-module (guix build-system qt)
187 #:use-module (guix build-system trivial)
188 #:use-module ((srfi srfi-1) #:hide (zip))
189 #:use-module (srfi srfi-26))
190
191 ;; Data package for adanaxisgpl.
192 (define adanaxis-mush
193 (let ((version "1.1.0"))
194 (origin
195 (method url-fetch)
196 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
197 version ".tar.gz"))
198 (sha256
199 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
200
201 (define-public adanaxisgpl
202 (package
203 (name "adanaxisgpl")
204 (version "1.2.5")
205 (source
206 (origin
207 (method url-fetch)
208 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
209 version ".tar.gz"))
210 (sha256
211 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
212 (modules '((guix build utils)))
213 (snippet
214 '(begin
215 ;; Necessary for building with gcc >=4.7.
216 (substitute* "src/Mushcore/MushcoreSingleton.h"
217 (("SingletonPtrSet\\(new SingletonType\\);")
218 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
219 ;; Avoid an "invalid conversion from const char* to char*" error.
220 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
221 (("char \\*end, \\*result;")
222 (string-append "const char *end;"
223 "\n"
224 "char *result;")))
225 #t))))
226 (build-system gnu-build-system)
227 (arguments
228 `(#:tests? #f ; no check target
229 #:phases
230 (modify-phases %standard-phases
231 (add-after 'install 'install-data
232 (lambda* (#:key inputs outputs #:allow-other-keys)
233 (let ((data (assoc-ref inputs "adanaxis-mush"))
234 (share (string-append (assoc-ref outputs "out")
235 "/share/" ,name "-" ,version)))
236 (mkdir-p share)
237 (invoke "tar" "xvf" data "-C" share)))))))
238 (native-inputs
239 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
240 (inputs
241 `(("expat" ,expat)
242 ("freeglut" ,freeglut)
243 ("glu" ,glu)
244 ("libjpeg" ,libjpeg-turbo)
245 ("libogg" ,libogg)
246 ("libtiff" ,libtiff)
247 ("libvorbis" ,libvorbis)
248 ("libx11" ,libx11)
249 ("libxext" ,libxext)
250 ("pcre" ,pcre)
251 ("sdl" ,sdl)
252 ("sdl-mixer" ,sdl-mixer)))
253 (home-page "https://www.mushware.com")
254 (synopsis "Action game in four spatial dimensions")
255 (description
256 "Adanaxis is a fast-moving first person shooter set in deep space, where
257 the fundamentals of space itself are changed. By adding another dimension to
258 space this game provides an environment with movement in four directions and
259 six planes of rotation. Initially the game explains the 4D control system via
260 a graphical sequence, before moving on to 30 levels of gameplay with numerous
261 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
262 mouse and joystick control, and original music.")
263 (license license:gpl2)))
264
265 (define-public alex4
266 (package
267 (name "alex4")
268 (version "1.2.1")
269 (source
270 (origin
271 (method git-fetch)
272 (uri (git-reference
273 (url "https://github.com/carstene1ns/alex4.git")
274 (commit version)))
275 (file-name (git-file-name name version))
276 (sha256
277 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
278 (build-system gnu-build-system)
279 (arguments
280 `(#:tests? #f ; no check target
281 #:make-flags
282 (list "CC=gcc"
283 "CFLAGS=-D_FILE_OFFSET_BITS=64"
284 (string-append "PREFIX=" (assoc-ref %outputs "out")))
285 #:phases
286 (modify-phases %standard-phases
287 (delete 'configure) ; no configure script
288 (add-after 'install 'install-data
289 (lambda* (#:key outputs #:allow-other-keys)
290 (let ((share (string-append (assoc-ref outputs "out")
291 "/share/" ,name)))
292 (install-file "alex4.ini" share)
293 #t))))))
294 (inputs
295 `(("allegro" ,allegro-4)
296 ("dumb" ,dumb-allegro4)))
297 (home-page "http://allegator.sourceforge.net/")
298 (synopsis "Retro platform game")
299 (description
300 "Guide Alex the Allegator through the jungle in order to save his
301 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
302 Plenty of classic platforming in four nice colors guaranteed!
303
304 The game includes a built-in editor so you can design and share your own maps.")
305 (license license:gpl2+)))
306
307 (define-public armagetronad
308 (package
309 (name "armagetronad")
310 (version "0.2.8.3.5")
311 (source (origin
312 (method url-fetch)
313 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
314 version "/armagetronad-" version ".src.tar.gz"))
315 (sha256
316 (base32
317 "1z266haq22n5b0733h7qsg1rpzhz8lvm82f7wd06r008iiar7jdl"))))
318 (build-system gnu-build-system)
319 (inputs
320 `(("libxml2" ,libxml2)
321 ("sdl" ,sdl)
322 ("sdl-image" ,sdl-image)
323 ("freeglut" ,freeglut)
324 ("libpng" ,libpng)
325 ("libjpeg-turbo" ,libjpeg-turbo)))
326 (home-page "http://www.armagetronad.org")
327 (synopsis "Tron clone in 3D")
328 (description "Armagetron Advanced is a multiplayer game in 3d that
329 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
330 It's an old school arcade game slung into the 21st century. Highlights
331 include a customizable playing arena, HUD, unique graphics, and AI bots. For
332 the more advanced player there are new game modes and a wide variety of
333 physics settings to tweak as well.")
334 (license license:gpl2+)))
335
336 (define-public bastet
337 (package
338 (name "bastet")
339 (version "0.43.2")
340 (source
341 (origin
342 (method git-fetch)
343 (uri (git-reference
344 (url "https://github.com/fph/bastet.git")
345 (commit version)))
346 (file-name (git-file-name name version))
347 (sha256
348 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
349 (patches
350 (search-patches "bastet-change-source-of-unordered_set.patch"))))
351 (build-system gnu-build-system)
352 (arguments
353 `(#:make-flags
354 (list (string-append "CXXFLAGS=-I"
355 (assoc-ref %build-inputs "boost") "/include"))
356 #:phases
357 (modify-phases %standard-phases
358 (delete 'configure) ; no configure script
359 (replace 'check
360 ;; The 'Test' target builds the tests, but doesn't actually run them.
361 (lambda* (#:key make-flags #:allow-other-keys)
362 (apply invoke "make" "Test" make-flags)
363 (setenv "HOME" ".")
364 (invoke "./Test")))
365 (replace 'install
366 (lambda* (#:key outputs #:allow-other-keys)
367 (let* ((out (assoc-ref outputs "out"))
368 (share (string-append out "/share"))
369 (hicolor (string-append share "/icons/hicolor")))
370 (install-file "bastet"
371 (string-append out "/bin"))
372
373 (install-file "bastet.desktop"
374 (string-append share "/applications"))
375 (install-file "bastet.svg"
376 (string-append hicolor "/scalable/apps"))
377
378 (install-file "bastet.appdata.xml"
379 (string-append share "/appdata"))
380
381 (install-file "bastet.6"
382 (string-append out "/share/man/man6"))
383 #t))))))
384 (native-inputs
385 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
386 (inputs
387 `(("boost" ,boost)
388 ("ncurses" ,ncurses)))
389 (home-page "https://fph.altervista.org/prog/bastet.html")
390 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
391 (description
392 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
393 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
394 Instead, it uses a special algorithm to choose the worst brick possible.
395
396 Playing bastet can be a painful experience, especially if you usually make
397 canyons and wait for the long I-shaped block to clear four rows at a time.")
398 (license license:gpl3+)))
399
400 (define-public blobwars
401 (package
402 (name "blobwars")
403 (version "2.00")
404 (source
405 (origin
406 (method url-fetch)
407 (uri (string-append "mirror://sourceforge/blobwars/"
408 "blobwars-" version ".tar.gz"))
409 (sha256
410 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
411 (build-system gnu-build-system)
412 (arguments
413 `(#:tests? #f ;no test
414 #:make-flags
415 (let ((out (assoc-ref %outputs "out")))
416 (list (string-append "PREFIX=" out)
417 (string-append "BINDIR=" out "/bin/")
418 "USEPAK=1"
419 "RELEASE=1"))
420 #:phases
421 (modify-phases %standard-phases
422 (add-after 'unpack 'werror-begone
423 (lambda _
424 (substitute* "Makefile" (("-Werror") ""))
425 #t))
426 (delete 'configure)))) ;no configure script
427 (native-inputs
428 `(("gettext" ,gettext-minimal)
429 ("pkg-config" ,pkg-config)))
430 (inputs
431 `(("hicolor-icon-theme" ,hicolor-icon-theme)
432 ("sdl" ,(sdl-union (list sdl2
433 sdl2-image
434 sdl2-mixer
435 sdl2-ttf
436 sdl2-net)))))
437 (home-page "https://sourceforge.net/projects/blobwars/")
438 (synopsis "Platform action game featuring a blob with a lot of weapons")
439 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
440 in the Blobwars series. You take on the role of a fearless Blob agent. Your
441 mission is to infiltrate various enemy bases and rescue as many MIAs as
442 possible, while battling many vicious aliens.")
443 (license (list license:gpl2 ; For code and graphics
444 license:cc0 ; Music and sounds have specific licenses
445 license:cc-by3.0 ; see /doc/readme
446 license:cc-by-sa3.0
447 license:lgpl2.1+
448 license:bsd-2))))
449
450 (define-public cataclysm-dda
451 (package
452 (name "cataclysm-dda")
453 (version "0.E")
454 (source
455 (origin
456 (method git-fetch)
457 (uri (git-reference
458 (url "https://github.com/CleverRaven/Cataclysm-DDA.git")
459 (commit version)))
460 (sha256
461 (base32 "0pbi0fw37zimzdklfj58s1ql0wlqq7dy6idkcsib3hn910ajaxan"))
462 (file-name (git-file-name name version))))
463 (build-system gnu-build-system)
464 (arguments
465 '(#:make-flags
466 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
467 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
468 "LOCALIZE=1" "LANGUAGES=all")
469 #:phases
470 (modify-phases %standard-phases
471 (delete 'configure)
472 (add-after 'build 'build-tiles
473 (lambda* (#:key make-flags outputs #:allow-other-keys)
474 ;; Change prefix directory and enable tile graphics and sound.
475 (apply invoke "make" "TILES=1" "SOUND=1"
476 (string-append "PREFIX="
477 (assoc-ref outputs "tiles"))
478 (cdr make-flags))))
479 (add-after 'install 'install-tiles
480 (lambda* (#:key make-flags outputs #:allow-other-keys)
481 (apply invoke "make" "install" "TILES=1" "SOUND=1"
482 (string-append "PREFIX="
483 (assoc-ref outputs "tiles"))
484 (cdr make-flags)))))
485 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
486 ;; input in order to support tests.
487 #:tests? #f))
488 (outputs '("out"
489 "tiles")) ;for tile graphics and sound support
490 (native-inputs
491 `(("gettext" ,gettext-minimal)
492 ("pkg-config" ,pkg-config)))
493 (inputs
494 `(("freetype" ,freetype)
495 ("libogg" ,libogg)
496 ("libvorbis" ,libvorbis)
497 ("ncurses" ,ncurses)
498 ("sdl2" ,sdl2)
499 ("sdl2-image" ,sdl2-image)
500 ("sdl2-ttf" ,sdl2-ttf)
501 ("sdl2-mixer" ,sdl2-mixer)))
502 (home-page "https://cataclysmdda.org/")
503 (synopsis "Survival horror roguelike video game")
504 (description
505 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
506 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
507 procedurally generated world. Scavenge the remnants of a dead civilization
508 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
509 to get you out of Dodge. Fight to defeat or escape from a wide variety of
510 powerful monstrosities, from zombies to giant insects to killer robots and
511 things far stranger and deadlier, and against the others like yourself, that
512 want what you have.")
513 (license license:cc-by-sa3.0)))
514
515 (define-public corsix-th
516 (package
517 (name "corsix-th")
518 (version "0.63")
519 (source
520 (origin
521 (method git-fetch)
522 (uri (git-reference
523 (url "https://github.com/CorsixTH/CorsixTH.git")
524 (commit (string-append "v" version))))
525 (file-name (git-file-name name version))
526 (sha256
527 (base32 "1rkyk8g55xny276s0hr5k8mq6f4nzz56d3k2mp09dzfymrqb8hgi"))))
528 (build-system cmake-build-system)
529 (arguments
530 `(#:phases
531 (modify-phases %standard-phases
532 (add-after 'install 'wrap-binary
533 (lambda _
534 ;; Set Lua module paths and default MIDI soundfont on startup.
535 (let* ((out (assoc-ref %outputs "out"))
536 (fluid (assoc-ref %build-inputs "fluid-3"))
537 (lua-version ,(version-major+minor (package-version lua)))
538 (lua-cpath
539 (map (lambda (lib)
540 (string-append
541 (assoc-ref %build-inputs (string-append "lua-" lib))
542 "/lib/lua/" lua-version "/?.so"))
543 '("filesystem" "lpeg"))))
544 (wrap-program (string-append out "/bin/corsix-th")
545 `("LUA_CPATH" ";" = ,lua-cpath)
546 `("SDL_SOUNDFONTS" ":" suffix
547 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
548 #t)))
549 #:tests? #f)) ; TODO need busted package to run tests
550 ;; Omit Lua-Socket dependency to disable automatic updates.
551 (inputs
552 `(("ffmpeg" ,ffmpeg)
553 ("fluid-3" ,fluid-3)
554 ("freetype" ,freetype)
555 ("lua" ,lua)
556 ("lua-filesystem" ,lua-filesystem)
557 ("lua-lpeg" ,lua-lpeg)
558 ("sdl2" ,sdl2)
559 ("sdl2-mixer" ,sdl2-mixer)))
560 (home-page "https://corsixth.com")
561 (synopsis "Implementation of the @i{Theme Hospital} game engine")
562 (description
563 "This package provides a reimplementation of the 1997 Bullfrog business
564 simulation game @i{Theme Hospital}. As well as faithfully recreating the
565 original engine, CorsixTH adds support for high resolutions, custom levels and
566 more. This package does @emph{not} provide the game assets.")
567 (license (list
568 license:expat ; main license
569 license:bsd-3)))) ; CorsixTH/Src/random.c
570
571 (define-public cowsay
572 (package
573 (name "cowsay")
574 (version "3.04")
575 (source (origin
576 (method git-fetch)
577 (uri (git-reference
578 (url "https://github.com/tnalpgge/rank-amateur-cowsay.git")
579 (commit (string-append name "-" version))))
580 (file-name (git-file-name name version))
581 (sha256
582 (base32
583 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
584 (build-system gnu-build-system)
585 (arguments
586 `(#:phases
587 (modify-phases %standard-phases
588 (delete 'configure) ; no configure script
589 (delete 'build) ; nothing to be built
590 (replace 'install
591 (lambda* (#:key outputs #:allow-other-keys)
592 (invoke "sh" "install.sh"
593 (assoc-ref outputs "out"))))
594 (delete 'check)
595 (add-after 'install 'check
596 (lambda* (#:key outputs #:allow-other-keys)
597 (invoke (string-append (assoc-ref outputs "out")
598 "/bin/cowsay")
599 "We're done!"))))))
600 (inputs
601 `(("perl" ,perl)))
602 (home-page (string-append "https://web.archive.org/web/20071026043648/"
603 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
604 (synopsis "Speaking cow text filter")
605 (description "Cowsay is basically a text filter. Send some text into it,
606 and you get a cow saying your text. If you think a talking cow isn't enough,
607 cows can think too: all you have to do is run @command{cowthink}. If you're
608 tired of cows, a variety of other ASCII-art messengers are available.")
609 (license license:gpl3+)))
610
611 (define-public lolcat
612 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
613 (revision "0"))
614 (package
615 (name "lolcat")
616 (version (git-version "1.0" revision commit))
617 (source
618 (origin
619 (method git-fetch)
620 (uri (git-reference
621 (url "https://github.com/jaseg/lolcat.git")
622 (commit commit)))
623 (sha256
624 (base32
625 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
626 (file-name (git-file-name name version))))
627 (build-system gnu-build-system)
628 (arguments
629 `(#:tests? #f ;; no check target
630 #:make-flags (list "CC=gcc")
631 #:phases
632 (modify-phases %standard-phases
633 (delete 'bootstrap)
634 (delete 'configure)
635 (replace 'install
636 (lambda* (#:key outputs #:allow-other-keys)
637 (let* ((out (assoc-ref outputs "out"))
638 (dest (string-append out "/bin")))
639 (mkdir-p dest)
640 (install-file "lolcat" dest)
641 (install-file "censor" dest)
642 #t))))))
643 (home-page "https://github.com/jaseg/lolcat")
644 (synopsis "Rainbow coloring effect for text console display")
645 (description "@command{lolcat} concatenates files and streams like
646 regular @command{cat}, but it also adds terminal escape codes between
647 characters and lines resulting in a rainbow effect.")
648 (license license:wtfpl2))))
649
650 (define-public foobillard++
651 ;; Even though this latest revision is old already, stable release is
652 ;; lagging way behind it, and has issues with textures rendering.
653 (let ((svn-revision 170))
654 (package
655 (name "foobillard++")
656 (version (string-append "3.43-r" (number->string svn-revision)))
657 (source
658 (origin
659 (method svn-fetch)
660 (uri (svn-reference
661 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
662 (revision svn-revision)))
663 (file-name (git-file-name name version))
664 (sha256
665 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
666 (patches
667 (search-patches "foobillard++-pkg-config.patch"))
668 (modules '((guix build utils)))
669 (snippet
670 '(begin
671 ;; Unfortunately, the game includes background music with
672 ;; a non-commercial clause. Delete it.
673 (for-each delete-file (find-files "data/music" "\\.ogg$"))
674 #t))))
675 (build-system gnu-build-system)
676 (arguments
677 `(#:configure-flags
678 (list
679 ;; Install data in a less exotic location.
680 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
681 ;; Prevent a build error about undefined trigonometric functions.
682 "--enable-fastmath=no")
683 #:phases
684 (modify-phases %standard-phases
685 (add-after 'unpack 'fix-makefile
686 ;; Remove hard-coded directories. Also fix installation
687 ;; rule: it tries to move around non-existent files or
688 ;; files already moved.
689 (lambda* (#:key outputs #:allow-other-keys)
690 (substitute* "Makefile.am"
691 (("/usr") (assoc-ref outputs "out"))
692 (("cp .*?/foobillardplus\\.desktop.*") "")
693 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
694 ""))
695 #t))
696 (add-after 'unpack 'unbundle-font
697 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
698 ;; LinBiolinum_aS.ttf, which are not provided by
699 ;; `font-linuxlibertine' package. Therefore, we cannot replace
700 ;; them yet.
701 (lambda* (#:key inputs #:allow-other-keys)
702 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
703 "/share/fonts/truetype/")))
704 (with-directory-excursion "data"
705 (for-each (lambda (f)
706 (delete-file f)
707 (symlink (string-append dejavu f) f))
708 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
709 #t))
710 (replace 'bootstrap
711 (lambda _
712 (invoke "aclocal" "--force")
713 (invoke "autoconf" "-f")
714 (invoke "autoheader" "-f")
715 (invoke "automake" "-a" "-c" "-f")))
716 (add-before 'build 'prepare-build
717 ;; Set correct environment for SDL.
718 (lambda* (#:key inputs #:allow-other-keys)
719 (setenv "CPATH"
720 (string-append (assoc-ref inputs "sdl")
721 "/include/SDL:"
722 (or (getenv "CPATH") "")))
723 #t))
724 (add-before 'build 'fix-settings-directory
725 ;; Hide foobillardplus settings directory in $HOME.
726 (lambda _
727 (substitute* "src/history.c"
728 (("/foobillardplus-data") "/.foobillardplus"))
729 #t))
730 (add-before 'install 'create-directories
731 ;; Install process does not create directories before
732 ;; trying to move file in it.
733 (lambda* (#:key outputs #:allow-other-keys)
734 (let ((out (assoc-ref outputs "out")))
735 (mkdir-p (string-append out "/share/icons"))
736 (mkdir-p (string-append out "/share/applications")))
737 #t))
738 (add-after 'install 'symlink-executable
739 ;; Symlink executable to $out/bin.
740 (lambda* (#:key outputs #:allow-other-keys)
741 (let* ((out (assoc-ref outputs "out"))
742 (bin (string-append out "/bin")))
743 (mkdir-p bin)
744 (with-directory-excursion bin
745 (symlink "../share/foobillardplus/bin/foobillardplus"
746 "foobillardplus"))
747 #t))))))
748 (native-inputs
749 `(("autoconf" ,autoconf)
750 ("automake" ,automake)
751 ("pkg-config" ,pkg-config)))
752 (inputs
753 `(("font-dejavu" ,font-dejavu)
754 ("freetype" ,freetype)
755 ("glu" ,glu)
756 ("libpng" ,libpng)
757 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
758 (home-page "http://foobillardplus.sourceforge.net/")
759 (synopsis "3D billiard game")
760 (description "FooBillard++ is an advanced 3D OpenGL billiard game
761 based on the original foobillard 3.0a sources from Florian Berger.
762 You can play it with one or two players or against the computer.
763
764 The game features:
765
766 @itemize
767 @item Wood paneled table with gold covers and gold diamonds.
768 @item Reflections on balls.
769 @item Zoom in and out, rotation, different angles and bird's eye view.
770 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
771 @item Tournaments. Compete against other players.
772 @item Animated cue with strength and eccentric hit adjustment.
773 @item Jump shots and snipping.
774 @item Realistic gameplay and billiard sounds.
775 @item Red-Green stereo.
776 @item And much more.
777 @end itemize")
778 (license (list license:gpl2 license:silofl1.1)))))
779
780 (define-public freedoom
781 (package
782 (name "freedoom")
783 (version "0.12.1")
784 (source
785 (origin
786 (method git-fetch)
787 (uri (git-reference
788 (url "https://github.com/freedoom/freedoom.git")
789 (commit (string-append "v" version))))
790 (file-name (git-file-name name version))
791 (sha256
792 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
793 (build-system gnu-build-system)
794 (arguments
795 '(#:make-flags
796 (list (string-append "prefix=" (assoc-ref %outputs "out")))
797 #:tests? #f ; no check target
798 #:phases
799 (modify-phases %standard-phases
800 (delete 'bootstrap)
801 (replace 'configure
802 (lambda* (#:key inputs outputs #:allow-other-keys)
803 (let* ((freedoom (assoc-ref outputs "out"))
804 (wad-dir (string-append freedoom "/share/games/doom")))
805 ;; Make sure that the install scripts know where to find
806 ;; the appropriate WAD files.
807 (substitute* "dist/freedoom"
808 (("IWAD=freedm.wad")
809 (string-append "IWAD=" wad-dir "/freedm.wad"))
810 (("IWAD=freedoom1.wad")
811 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
812 (("IWAD=freedoom2.wad")
813 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
814 #t))))))
815 (native-inputs
816 `(("asciidoc" ,asciidoc)
817 ("deutex" ,deutex)
818 ("python" ,python)
819 ("python-pillow" ,python-pillow)))
820 (home-page "https://freedoom.github.io/")
821 (synopsis "Free content game based on the Doom engine")
822 (native-search-paths
823 (list (search-path-specification
824 (variable "DOOMWADDIR")
825 (files '("share/games/doom")))
826 (search-path-specification
827 (variable "DOOMWADPATH")
828 (files '("share/games/doom")))))
829 (description
830 "The Freedoom project aims to create a complete free content first person
831 shooter game. Freedoom by itself is just the raw material for a game: it must
832 be paired with a compatible game engine (such as @code{prboom-plus}) to be
833 played. Freedoom complements the Doom engine with free levels, artwork, sound
834 effects and music to make a completely free game.")
835 (license license:bsd-3)))
836
837 (define-public freedroidrpg
838 (package
839 (name "freedroidrpg")
840 (version "0.16.1")
841 (source
842 (origin
843 (method url-fetch)
844 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
845 "freedroidRPG-" (version-major+minor version) "/"
846 "freedroidRPG-" version ".tar.gz"))
847 (sha256
848 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
849 (build-system gnu-build-system)
850 (arguments
851 `(#:configure-flags
852 (list
853 (string-append "CFLAGS="
854 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
855 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
856 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
857 "--enable-opengl")
858 ;; FIXME: the test suite fails with the following error output:
859 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
860 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
861 #:tests? #f))
862 (native-inputs
863 `(("pkg-config" ,pkg-config)))
864 (inputs
865 `(("glu" ,glu)
866 ("libjpeg" ,libjpeg-turbo)
867 ("libogg" ,libogg)
868 ("libpng" ,libpng)
869 ("libvorbis" ,libvorbis)
870 ("mesa" ,mesa)
871 ("python" ,python-wrapper)
872 ("sdl" ,sdl)
873 ("sdl-gfx" ,sdl-gfx)
874 ("sdl-image" ,sdl-image)
875 ("sdl-mixer" ,sdl-mixer)
876 ("zlib" ,zlib)))
877 (home-page "http://www.freedroid.org/")
878 (synopsis "Isometric role-playing game against killer robots")
879 (description
880 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
881 The game tells the story of a world destroyed by a conflict between robots and
882 their human masters. To restore peace to humankind, the player must complete
883 numerous quests while fighting off rebelling robots---either by taking control
884 of them, or by simply blasting them to pieces with melee and ranged weapons in
885 real-time combat.")
886 (license (list license:expat ; lua/
887 license:gpl3 ; src/gen_savestruct.py
888 license:gpl2+)))) ; the rest
889
890 (define-public golly
891 (package
892 (name "golly")
893 (version "3.3")
894 (source (origin
895 (method url-fetch)
896 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
897 version "/golly-" version
898 "-src.tar.gz"))
899 (sha256
900 (base32
901 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
902 (build-system gnu-build-system)
903 (arguments
904 '(#:make-flags (list "CC=gcc"
905 (string-append "GOLLYDIR="
906 (assoc-ref %outputs "out")
907 "/share/golly"))
908 #:tests? #f ; no check target
909 #:phases
910 (modify-phases %standard-phases
911 (replace 'configure
912 (lambda* (#:key inputs #:allow-other-keys)
913 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
914 ;; properly set the path to the Python shared library. This
915 ;; substitution acheives the same end by different means.
916 (substitute* "gui-wx/wxprefs.cpp"
917 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
918 (string-append "pythonlib = \""
919 (assoc-ref inputs "python")
920 "/lib/libpython-2.7.so\"")))
921 #t))
922 (replace 'build
923 (lambda* (#:key make-flags outputs #:allow-other-keys)
924 (with-directory-excursion "gui-wx"
925 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
926 (replace 'install
927 (lambda* (#:key outputs #:allow-other-keys)
928 (let* ((out (assoc-ref outputs "out"))
929 (bin (string-append out "/bin"))
930 (doc (string-append out "/share/doc/golly"))
931 (pixmaps (string-append out "/share/pixmaps"))
932 (share (string-append out "/share/golly")))
933 (for-each (lambda (binary)
934 (install-file binary bin))
935 '("bgolly" "golly"))
936 (for-each (lambda (document)
937 (install-file
938 (string-append "docs/" document ".html")
939 doc))
940 '("License" "ReadMe" "ToDo"))
941 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
942 (for-each (lambda (folder)
943 (copy-recursively
944 folder
945 (string-append share "/" folder)))
946 '("Help" "Patterns" "Rules" "Scripts")))
947 #t)))))
948 (native-inputs
949 `(("lua" ,lua)))
950 (inputs
951 `(("glu" ,glu)
952 ("mesa" ,mesa)
953 ("python" ,python-2)
954 ("wxwidgets" ,wxwidgets-gtk2)
955 ("zlib" ,zlib)))
956 (home-page "http://golly.sourceforge.net/")
957 (synopsis "Software for exploring cellular automata")
958 (description
959 "Golly simulates Conway's Game of Life and many other types of cellular
960 automata. The following features are available:
961 @enumerate
962 @item Support for bounded and unbounded universes, with cells of up to 256
963 states.
964 @item Support for multiple algorithms, including Bill Gosper's Hashlife
965 algorithm.
966 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
967 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
968 @item Scriptable via Lua or Python.
969 @item Extracting patterns, rules and scripts from zip files.
970 @item Downloading patterns, rules and scripts from online archives.
971 @item Pasting patterns from the clipboard.
972 @item Unlimited undo/redo.
973 @item Configurable keyboard shortcuts.
974 @item Auto fit option to keep patterns within the view.
975 @end enumerate")
976 (license license:gpl2+)))
977
978 (define-public julius
979 (package
980 (name "julius")
981 (version "1.4.0")
982 (source
983 (origin
984 (method git-fetch)
985 (uri (git-reference
986 (url "https://github.com/bvschaik/julius.git")
987 (commit (string-append "v" version))))
988 (file-name (git-file-name name version))
989 (sha256
990 (base32 "01rygr592ar530qv1flmaiq8icl0qdxgc8lhkcdyn1g09941z47v"))
991 ;; Remove unused bundled libraries.
992 (modules '((guix build utils)))
993 (snippet
994 '(begin
995 (with-directory-excursion "ext"
996 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
997 #t))))
998 (build-system cmake-build-system)
999 (inputs
1000 `(("libpng" ,libpng)
1001 ("sdl2" ,sdl2)
1002 ("sdl2-mixer" ,sdl2-mixer)))
1003 (home-page "https://github.com/bvschaik/julius")
1004 (synopsis "Re-implementation of Caesar III game engine")
1005 (description
1006 "Engine for Caesar III, a city-building real-time strategy game.
1007 Julius includes some UI enhancements while preserving the logic (including
1008 bugs) of the original game, so that saved games are compatible. This package
1009 does not include game data.")
1010 (license (list license:agpl3
1011 license:zlib)))) ; ext/tinyfiledialogs
1012
1013 (define-public meandmyshadow
1014 (package
1015 (name "meandmyshadow")
1016 (version "0.5a")
1017 (source (origin
1018 (method url-fetch)
1019 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1020 version "/meandmyshadow-" version
1021 "-src.tar.gz"))
1022 (sha256
1023 (base32
1024 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1025 (build-system cmake-build-system)
1026 (arguments
1027 `(#:tests? #f)) ; there are no tests
1028 (native-inputs
1029 `(("pkg-config" ,pkg-config)))
1030 (inputs
1031 `(("curl" ,curl)
1032 ("libarchive" ,libarchive)
1033 ("lua" ,lua)
1034 ("sdl" ,(sdl-union (list sdl2
1035 sdl2-image
1036 sdl2-mixer
1037 sdl2-ttf)))))
1038 (home-page "https://acmepjz.github.io/meandmyshadow/")
1039 (synopsis "Puzzle/platform game")
1040 (description "Me and My Shadow is a puzzle/platform game in which you try
1041 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1042 and much more stand between you and the exit. Record your moves and let your
1043 shadow mimic them to reach blocks you couldn't reach alone.")
1044 (license license:gpl3+)))
1045
1046 (define-public opensurge
1047 (package
1048 (name "opensurge")
1049 (version "0.5.1.2")
1050 (source
1051 (origin
1052 (method git-fetch)
1053 (uri (git-reference
1054 (url "https://github.com/alemart/opensurge.git")
1055 (commit (string-append "v" version))))
1056 (file-name (git-file-name name version))
1057 (sha256
1058 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1059 (build-system cmake-build-system)
1060 (arguments
1061 `(#:tests? #f ;there are no tests
1062 #:configure-flags
1063 (let* ((out (assoc-ref %outputs "out"))
1064 (share (string-append out "/share")))
1065 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1066 (string-append "-DGAME_DATADIR=" share "/" ,name)
1067 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1068 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1069 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1070 #:phases
1071 (modify-phases %standard-phases
1072 (add-after 'unpack 'fix-xdg-open-path
1073 (lambda* (#:key inputs #:allow-other-keys)
1074 ;; Look for xdg-open in the store.
1075 (substitute* "src/core/web.c"
1076 (("/usr(/bin/xdg-open)" _ bin)
1077 (string-append (assoc-ref inputs "xdg-utils") bin)))
1078 #t))
1079 (add-after 'unpack 'unbundle-fonts
1080 (lambda* (#:key inputs #:allow-other-keys)
1081 ;; Replace bundled Roboto fonts with links to the store.
1082 (with-directory-excursion "fonts"
1083 (let ((roboto-dir (string-append
1084 (assoc-ref inputs "font-google-roboto")
1085 "/share/fonts/truetype/")))
1086 (for-each
1087 (lambda (font)
1088 (delete-file font)
1089 (symlink (string-append roboto-dir font) font))
1090 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1091 #t))))))
1092 (inputs
1093 `(("allegro" ,allegro)
1094 ("font-google-roboto" ,font-google-roboto)
1095 ("surgescript" ,surgescript)
1096 ("xdg-utils" ,xdg-utils)))
1097 (home-page "https://opensurge2d.org")
1098 (synopsis "2D retro side-scrolling game")
1099 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1100 inspired by the Sonic games. The player runs at high speeds through each
1101 level while collecting items and avoiding obstacles. The game includes a
1102 built-in level editor.")
1103 (license
1104 ;; Code is under GPL 3+, assets are under various licenses.
1105 ;; See src/misc/credits.c for details.
1106 (list license:gpl3+
1107 license:cc0
1108 license:cc-by3.0
1109 license:cc-by-sa3.0
1110 license:expat
1111 license:public-domain
1112 license:silofl1.1))))
1113
1114 (define-public knights
1115 (package
1116 (name "knights")
1117 (version "025")
1118 (source (origin
1119 (method url-fetch)
1120 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1121 version "_src.tar.gz"))
1122 (sha256
1123 (base32
1124 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1125 (build-system gnu-build-system)
1126 (arguments
1127 '(#:make-flags
1128 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1129 #:phases
1130 (modify-phases %standard-phases
1131 ;; No configure script.
1132 (delete 'configure))
1133 #:tests? #f)) ;; No check target.
1134 (inputs
1135 `(("boost" ,boost)
1136 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1137 ("freetype" ,freetype)
1138 ("fontconfig" ,fontconfig)
1139 ("curl" ,curl)))
1140 (native-inputs
1141 `(("pkg-config" ,pkg-config)))
1142 (home-page "http://www.knightsgame.org.uk/")
1143 (synopsis "Multiplayer dungeon game involving knights and quests")
1144 (description "Knights is a multiplayer game involving several knights who
1145 must run around a dungeon and complete various quests. Each game revolves
1146 around a quest – for example, you might have to find some items and carry them
1147 back to your starting point. This may sound easy, but as there are only
1148 enough items in the dungeon for one player to win, you may end up having to
1149 kill your opponents to get their stuff! Other quests involve escaping from
1150 the dungeon, fighting a duel to the death against the enemy knights, or
1151 destroying an ancient book using a special wand.")
1152 ;; This package includes modified sources of lua (X11), enet (Expat), and
1153 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1154 ;; license. The whole package is released under GPLv3+.
1155 (license license:gpl3+)))
1156
1157 (define-public gnome-chess
1158 (package
1159 (name "gnome-chess")
1160 (version "3.36.0")
1161 (source (origin
1162 (method url-fetch)
1163 (uri (string-append "mirror://gnome/sources/" name "/"
1164 (version-major+minor version) "/"
1165 name "-" version ".tar.xz"))
1166 (sha256
1167 (base32
1168 "1a9fgi749gy1f60vbcyrqqkab9vqs42hji70q73k1xx8rv0agmg0"))))
1169 (build-system meson-build-system)
1170 (arguments
1171 '(#:glib-or-gtk? #t
1172 #:phases
1173 (modify-phases %standard-phases
1174 (add-after 'unpack 'skip-gtk-update-icon-cache
1175 ;; Don't create 'icon-theme.cache'.
1176 (lambda _
1177 (substitute* "meson_post_install.py"
1178 (("gtk-update-icon-cache") "true"))
1179 #t)))))
1180 (inputs
1181 `(("gtk+" ,gtk+)
1182 ("librsvg" ,librsvg)))
1183 (native-inputs
1184 `(("gettext" ,gettext-minimal)
1185 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1186 ("itstool" ,itstool)
1187 ("pkg-config" ,pkg-config)
1188 ("vala" ,vala)))
1189 (home-page "https://wiki.gnome.org/Apps/Chess")
1190 (synopsis "Chess board for GNOME")
1191 (description "GNOME Chess provides a 2D board for playing chess games
1192 against human or computer players. It supports loading and saving games in
1193 Portable Game Notation. To play against a computer, install a chess engine
1194 such as chess or stockfish.")
1195 (license license:gpl3+)))
1196
1197 (define-public gnubg
1198 (package
1199 (name "gnubg")
1200 (version "1.06.002")
1201 (source
1202 (origin
1203 (method url-fetch)
1204 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1205 version "-sources.tar.gz"))
1206 (sha256
1207 (base32
1208 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1209 (build-system gnu-build-system)
1210 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1211 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1212 ("pango" ,pango-1.42)
1213
1214 ("glib" ,glib)
1215 ("readline" ,readline)
1216 ("gtk+" ,gtk+-2)
1217 ("mesa" ,mesa)
1218 ("glu" ,glu)
1219 ("gtkglext" ,gtkglext)
1220 ("sqlite" ,sqlite)
1221 ("libcanberra" ,libcanberra)))
1222 (native-inputs `(("python-2" ,python-2)
1223 ("pkg-config" ,pkg-config)))
1224 (arguments
1225 `(#:phases
1226 (modify-phases %standard-phases
1227 (add-after 'install 'install-desktop-file
1228 (lambda* (#:key outputs #:allow-other-keys)
1229 (let* ((out (assoc-ref outputs "out"))
1230 (apps (string-append out "/share/applications")))
1231 (mkdir-p apps)
1232 (with-output-to-file (string-append apps "/gnubg.desktop")
1233 (lambda _
1234 (format #t
1235 "[Desktop Entry]~@
1236 Name=GNU Backgammon~@
1237 Exec=~a/bin/gnubg -w~@
1238 Icon=gnubg~@
1239 Categories=Game;~@
1240 Terminal=false~@
1241 Type=Application~%"
1242 out))))
1243 #t)))))
1244 (home-page "https://www.gnu.org/software/gnubg/")
1245 (synopsis "Backgammon game")
1246 (description "The GNU backgammon application (also known as \"gnubg\") can
1247 be used for playing, analyzing and teaching the game. It has an advanced
1248 evaluation engine based on artificial neural networks suitable for both
1249 beginners and advanced players. In addition to a command-line interface, it
1250 also features an attractive, 3D representation of the playing board.")
1251 (license license:gpl3+)))
1252
1253 (define-public gnubik
1254 (package
1255 (name "gnubik")
1256 (version "2.4.3")
1257 (source
1258 (origin
1259 (method url-fetch)
1260 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1261 version ".tar.gz"))
1262 (sha256
1263 (base32
1264 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1265 (build-system gnu-build-system)
1266 (arguments
1267 '(#:phases (modify-phases %standard-phases
1268 (add-after 'unpack 'skip-gtk-update-icon-cache
1269 (lambda _
1270 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1271 ;; unnecessary and causes a needless dependency on glib.
1272 (substitute* "Makefile.in"
1273 (("gtk-update-icon-cache")
1274 "true"))
1275 #t)))))
1276 (inputs `(("gtk+" ,gtk+-2)
1277 ("mesa" ,mesa)
1278 ("glu" ,glu)
1279 ("libx11" ,libx11)
1280 ("guile" ,guile-2.0)
1281 ("gtkglext" ,gtkglext)))
1282 (native-inputs `(("gettext" ,gettext-minimal)
1283 ("pkg-config" ,pkg-config)))
1284 (home-page "https://www.gnu.org/software/gnubik/")
1285 (synopsis "3d Rubik's cube game")
1286 (description
1287 "GNUbik is a puzzle game in which you must manipulate a cube to make
1288 each of its faces have a uniform color. The game is customizable, allowing
1289 you to set the size of the cube (the default is 3x3) or to change the colors.
1290 You may even apply photos to the faces instead of colors. The game is
1291 scriptable with Guile.")
1292 (license license:gpl3+)))
1293
1294 (define-public gnushogi
1295 (package
1296 (name "gnushogi")
1297 (version "1.4.2")
1298 (source
1299 (origin
1300 (method url-fetch)
1301 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1302 version ".tar.gz"))
1303 (sha256
1304 (base32
1305 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1306 (arguments `(#:tests? #f)) ;; No check target.
1307 (build-system gnu-build-system)
1308 (home-page "https://www.gnu.org/software/gnushogi/")
1309 (synopsis "The game of Shogi (Japanese chess)")
1310 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1311 Chess). It is similar to standard chess but this variant is far more complicated.")
1312 (license license:gpl3+)))
1313
1314 (define-public ltris
1315 (package
1316 (name "ltris")
1317 (version "1.0.19")
1318 (source
1319 (origin
1320 (method url-fetch)
1321 (uri (string-append "http://prdownloads.sourceforge.net/lgames/"
1322 "ltris-" version ".tar.gz"))
1323 (sha256
1324 (base32
1325 "1895wv1fqklrj4apkz47rnkcfhfav7zjknskw6p0886j35vrwslg"))))
1326 (build-system gnu-build-system)
1327 (arguments
1328 '(;; The code in LTris uses traditional GNU semantics for inline functions
1329 #:configure-flags '("CFLAGS=-fgnu89-inline")
1330 #:phases
1331 (modify-phases %standard-phases
1332 (add-after 'set-paths 'set-sdl-paths
1333 (lambda* (#:key inputs #:allow-other-keys)
1334 (setenv "CPATH"
1335 (string-append (assoc-ref inputs "sdl-union")
1336 "/include/SDL:"
1337 (or (getenv "CPATH") "")))
1338 #t)))))
1339 (inputs
1340 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1341 (home-page "http://lgames.sourceforge.net/LTris/")
1342 (synopsis "Tetris clone based on the SDL library")
1343 (description
1344 "LTris is a tetris clone: differently shaped blocks are falling down the
1345 rectangular playing field and can be moved sideways or rotated by 90 degree
1346 units with the aim of building lines without gaps which then disappear (causing
1347 any block above the deleted line to fall down). LTris has three game modes: In
1348 Classic you play until the stack of blocks reaches the top of the playing field
1349 and no new blocks can enter. In Figures the playing field is reset to a new
1350 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1351 up to three players (either human or CPU) compete with each other sending
1352 removed lines to all opponents. There is also a Demo mode in which you can
1353 watch your CPU playing while enjoying a cup of tea!")
1354 (license license:gpl2+)))
1355
1356 (define-public nethack
1357 (package
1358 (name "nethack")
1359 (version "3.6.6")
1360 (source
1361 (origin
1362 (method url-fetch)
1363 (uri
1364 (string-append "https://www.nethack.org/download/" version "/nethack-"
1365 (string-join (string-split version #\.) "") "-src.tgz"))
1366 (sha256
1367 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1368 (native-inputs
1369 `(("bison" ,bison)
1370 ("flex" ,flex)))
1371 (inputs
1372 `(("ncurses" ,ncurses)
1373 ("less" ,less)))
1374 (build-system gnu-build-system)
1375 (arguments
1376 '(#:make-flags
1377 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1378 #:phases
1379 (modify-phases %standard-phases
1380 (add-before 'configure 'patch-paths
1381 (lambda _
1382 (substitute* "sys/unix/nethack.sh"
1383 (("^ *cd .*$") ""))
1384 (substitute* "sys/unix/Makefile.utl"
1385 (("^YACC *=.*$") "YACC = bison -y\n")
1386 (("^LEX *=.*$") "LEX = flex\n")
1387 (("^# CC = gcc") "CC = gcc"))
1388 (substitute* "sys/unix/hints/linux"
1389 (("/bin/gzip") (string-append
1390 (assoc-ref %build-inputs "gzip")
1391 "/bin/gzip"))
1392 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1393 (substitute* "include/config.h"
1394 (("^.*define CHDIR.*$") "")
1395 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1396 ;; Honor SOURCE_DATE_EPOCH.
1397 "#define REPRODUCIBLE_BUILD"))
1398
1399 ;; Note: 'makedefs' rejects and ignores dates that are too old
1400 ;; or too new, so we must choose something reasonable here.
1401 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1402
1403 (substitute* "sys/unix/Makefile.src"
1404 (("^# CC = gcc") "CC = gcc"))
1405 #t))
1406 (replace 'configure
1407 (lambda _
1408 (let ((bash (string-append
1409 (assoc-ref %build-inputs "bash")
1410 "/bin/bash")))
1411 (with-directory-excursion "sys/unix"
1412 (substitute* "setup.sh" (("/bin/sh") bash))
1413 (invoke bash "setup.sh" "hints/linux"))
1414 #t)))
1415 (add-after 'install 'fixup-paths
1416 (lambda _
1417 (let* ((output (assoc-ref %outputs "out"))
1418 (nethack-script (string-append output "/bin/nethack")))
1419 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1420 (for-each
1421 (lambda (file)
1422 (rename-file
1423 (string-append output "/games/lib/nethackdir/" file)
1424 (string-append output "/games/lib/nethackuserdir/"
1425 file)))
1426 '("xlogfile" "logfile" "perm" "record" "save"))
1427 (mkdir-p (string-append output "/bin"))
1428 (call-with-output-file nethack-script
1429 (lambda (port)
1430 (format port "#!~a/bin/sh
1431 PATH=~a:$PATH
1432 if [ ! -d ~~/.config/nethack ]; then
1433 mkdir -p ~~/.config/nethack
1434 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1435 chmod -R +w ~~/.config/nethack
1436 fi
1437
1438 RUNDIR=$(mktemp -d)
1439
1440 cleanup() {
1441 rm -rf $RUNDIR
1442 }
1443 trap cleanup EXIT
1444
1445 cd $RUNDIR
1446 for i in ~~/.config/nethack/*; do
1447 ln -s $i $(basename $i)
1448 done
1449 for i in ~a/games/lib/nethackdir/*; do
1450 ln -s $i $(basename $i)
1451 done
1452 ~a/games/nethack"
1453 (assoc-ref %build-inputs "bash")
1454 (list->search-path-as-string
1455 (list
1456 (string-append
1457 (assoc-ref %build-inputs "coreutils") "/bin")
1458 (string-append
1459 (assoc-ref %build-inputs "less") "/bin"))
1460 ":")
1461 output
1462 output
1463 output)))
1464 (chmod nethack-script #o555)
1465 #t)))
1466 (delete 'check))))
1467 (home-page "https://nethack.org")
1468 (synopsis "Classic dungeon crawl game")
1469 (description "NetHack is a single player dungeon exploration game that runs
1470 on a wide variety of computer systems, with a variety of graphical and text
1471 interfaces all using the same game engine. Unlike many other Dungeons &
1472 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1473 the dungeon and not simply killing everything in sight - in fact, killing
1474 everything in sight is a good way to die quickly. Each game presents a
1475 different landscape - the random number generator provides an essentially
1476 unlimited number of variations of the dungeon and its denizens to be discovered
1477 by the player in one of a number of characters: you can pick your race, your
1478 role, and your gender.")
1479 (license
1480 (license:fsdg-compatible
1481 "https://nethack.org/common/license.html"))))
1482
1483 (define-public pipewalker
1484 (package
1485 (name "pipewalker")
1486 (version "0.9.4")
1487 (source
1488 (origin
1489 (method url-fetch)
1490 (uri (string-append "http://downloads.sourceforge.net/pipewalker/"
1491 "pipewalker-" version ".tar.gz"))
1492 (sha256
1493 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1494 (build-system gnu-build-system)
1495 (arguments
1496 `(#:configure-flags
1497 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1498 "/share/doc/" ,name "-" ,version))
1499 #:phases
1500 (modify-phases %standard-phases
1501 (add-after 'configure 'patch-docdir
1502 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1503 (lambda _
1504 (substitute* "Makefile"
1505 (("(pkgdocdatadir = ).*" _ assignment)
1506 (string-append assignment "$(docdir)\n")))
1507 #t)))))
1508 (inputs
1509 `(("libpng" ,libpng)
1510 ("mesa" ,mesa)
1511 ("sdl" ,sdl)))
1512 (home-page "http://pipewalker.sourceforge.net/")
1513 (synopsis "Logical tile puzzle")
1514 (description
1515 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1516 computers to one network server, bring water from a source to the taps, etc.
1517 The underlying mechanism is always the same: you must turn each tile in the
1518 grid in the right direction to combine all components into a single circuit.
1519 Every puzzle has a complete solution, although there may be more than one.")
1520 (license license:gpl3+)))
1521
1522 (define-public prboom-plus
1523 (package
1524 (name "prboom-plus")
1525 (version "2.5.1.4")
1526 (source (origin
1527 (method url-fetch)
1528 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
1529 version "/prboom-plus-" version ".tar.gz"))
1530 (sha256
1531 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
1532 (modules '((guix build utils)))
1533 (snippet
1534 '(begin
1535 (substitute* "src/version.c"
1536 (("__DATE__") "")
1537 (("__TIME__") ""))
1538 #t))))
1539 (build-system gnu-build-system)
1540 (arguments
1541 '(#:configure-flags '("--disable-cpu-opt")
1542 #:make-flags `(,(string-append "gamesdir="
1543 (assoc-ref %outputs "out") "/bin"))
1544 #:phases
1545 (modify-phases %standard-phases
1546 (add-after 'set-paths 'set-sdl'paths
1547 (lambda* (#:key inputs #:allow-other-keys)
1548 (setenv "CPATH"
1549 (string-append (assoc-ref inputs "sdl-union")
1550 "/include/SDL:"
1551 (or (getenv "CPATH") "")))
1552 #t)))))
1553 (inputs
1554 `(("fluidsynth" ,fluidsynth)
1555 ("glu" ,glu)
1556 ("libmad" ,libmad)
1557 ("libpng" ,libpng)
1558 ("libvorbis" ,libvorbis)
1559 ("pcre" ,pcre)
1560 ("portmidi" ,portmidi)
1561 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
1562 (home-page "http://prboom-plus.sourceforge.net/")
1563 (synopsis "Version of the classic 3D shoot'em'up game Doom")
1564 (description
1565 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
1566 (license license:gpl2+)))
1567
1568 (define-public retux
1569 (package
1570 (name "retux")
1571 (version "1.3.6")
1572 (source (origin
1573 (method url-fetch)
1574 (uri (string-append "mirror://savannah/retux/"
1575 (version-major+minor version) "/retux-"
1576 version "-src.tar.gz"))
1577 (sha256
1578 (base32
1579 "01bidh4zisjp3nc436x0g85v60dvwb3ig37i7y01sa71j8fm4fmb"))))
1580 (build-system python-build-system)
1581 (arguments
1582 `(#:tests? #f ; no check target
1583 #:phases
1584 (modify-phases %standard-phases
1585 ;; no setup.py script
1586 (delete 'build)
1587 (replace 'install
1588 (lambda* (#:key outputs #:allow-other-keys)
1589 (let* ((out (assoc-ref outputs "out"))
1590 (bin (string-append out "/bin"))
1591 (data (string-append out "/share/retux"))
1592 (doc (string-append out "/share/doc/retux")))
1593 (mkdir-p bin)
1594
1595 (substitute* "retux.py"
1596 ;; Use the correct data directory.
1597 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
1598 (string-append "\"" data "\","))
1599 ;; Use Python 3 so the patch-shebangs phase works properly.
1600 ((".*python2.*") "#!/usr/bin/python3"))
1601
1602 (copy-file "retux.py" (string-append bin "/retux"))
1603
1604 (copy-recursively "data" data)
1605
1606 (install-file "COPYING" doc)
1607 #t))))))
1608 (inputs
1609 `(("python-sge-pygame" ,python-sge-pygame)
1610 ("python-six" ,python-six)
1611 ("python-xsge" ,python-xsge)))
1612 (home-page "http://retux.nongnu.org")
1613 (synopsis "Action platformer game")
1614 (description
1615 "ReTux is an action platformer loosely inspired by the Mario games,
1616 utilizing the art assets from the @code{SuperTux} project.")
1617 ;; GPL version 3 or later is the license for the code and some art.
1618 ;; The rest of the licenses are for the art exclusively, as listed in
1619 ;; data/LICENSES.
1620 (license (list license:cc0
1621 license:cc-by3.0
1622 license:cc-by-sa3.0
1623 license:cc-by-sa4.0
1624 license:gpl2+
1625 license:gpl3+))))
1626
1627 (define-public roguebox-adventures
1628 (package
1629 (name "roguebox-adventures")
1630 (version "3.0.1")
1631 (source
1632 (origin
1633 (method url-fetch)
1634 (uri (string-append
1635 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
1636 (string-join (string-split version #\.) "_") "_Source.zip"))
1637 (file-name (string-append name "-" version ".zip"))
1638 (sha256
1639 (base32
1640 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
1641 (build-system python-build-system)
1642 (arguments
1643 `(#:tests? #f ; no check target
1644 #:phases
1645 (modify-phases %standard-phases
1646 (replace 'unpack
1647 (lambda* (#:key source #:allow-other-keys)
1648 (and (invoke "unzip" source)
1649 ;; The actual source is buried a few directories deep.
1650 (chdir (string-append "RogueBoxAdventures_v"
1651 (string-join
1652 (string-split ,version #\.) "_")
1653 "_Source")))))
1654 ;; no setup.py script
1655 (replace 'build
1656 (lambda* (#:key outputs #:allow-other-keys)
1657 (let* ((out (assoc-ref outputs "out"))
1658 (data (string-append
1659 out "/share/games/roguebox-adventures")))
1660 ;; Use the correct data directory.
1661 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
1662 (("basic_path + os\\.sep + 'DATA'")
1663 (string-append "'" data "'"))
1664 (("^basic_path.*$")
1665 (string-append "basic_path ='" data "'\n")))
1666 (substitute* "LIB/dialog.py"
1667 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
1668 (string-append "d_path = '" data "'")))
1669 (substitute* "LIB/gra_files.py"
1670 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
1671 (string-append "basic_path ='" data "'\n")))
1672
1673 ;; The game must save in the user's home directory because
1674 ;; the store is read-only.
1675 (substitute* "main.py"
1676 (("home_save = False") "home_save = True")
1677 (("'icon_small.png'")
1678 (string-append "'" data "/icon_small.png'"))))
1679 #t))
1680 (replace 'install
1681 (lambda* (#:key outputs #:allow-other-keys)
1682 (let* ((out (assoc-ref outputs "out"))
1683 (bin (string-append out "/bin"))
1684 (roguebox-adventures
1685 (string-append bin "/roguebox-adventures"))
1686 (data (string-append
1687 out "/share/games/roguebox-adventures"))
1688 (lib (string-append data "/LIB"))
1689 (doc (string-append
1690 out "/share/doc/roguebox-adventures")))
1691 (mkdir-p bin)
1692 (mkdir-p doc)
1693
1694 (for-each (lambda (file)
1695 (copy-recursively file
1696 (string-append data "/" file)))
1697 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
1698 "icon_big.png" "icon_small.png"))
1699 (for-each (lambda (file)
1700 (chmod file #o555)
1701 (install-file file lib))
1702 '("main.py" "run.py"))
1703
1704 (copy-recursively "DOC" doc)
1705
1706 (call-with-output-file
1707 roguebox-adventures
1708 (lambda (p)
1709 (format p "\
1710 #!~a
1711 export PYTHONPATH=~a/LIB:~a
1712 exec -a \"~a\" ~a \"$@\"\n"
1713 (which "bash") data (getenv "PYTHONPATH")
1714 (which "python3")
1715 (string-append lib "/main.py"))))
1716 (chmod roguebox-adventures #o555))
1717 #t)))))
1718 (native-inputs
1719 `(("unzip" ,unzip)))
1720 (inputs
1721 `(("python-pygame" ,python-pygame)
1722 ("python-tmx" ,python-tmx)))
1723 (home-page "https://rogueboxadventures.tuxfamily.org")
1724 (synopsis "A classical roguelike/sandbox game")
1725 (description
1726 "RogueBox Adventures is a graphical roguelike with strong influences
1727 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
1728 Adventures is to offer the player a kind of roguelike toy-world. This world
1729 can be explored and changed freely.")
1730 ;; The GPL3+ is for code, the rest are for art.
1731 (license (list license:cc0
1732 license:cc-by3.0
1733 license:gpl3+
1734 license:silofl1.1))))
1735
1736 (define-public superstarfighter
1737 (package
1738 (name "superstarfighter")
1739 (version "0.6.4")
1740 (source
1741 (origin
1742 (method git-fetch)
1743 (uri (git-reference
1744 (url "https://github.com/notapixelstudio/superstarfighter.git")
1745 (commit (string-append "v" version))))
1746 (file-name (git-file-name name version))
1747 (sha256
1748 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
1749 (build-system gnu-build-system)
1750 (arguments
1751 `(#:tests? #f ;there are no tests
1752 #:phases
1753 (modify-phases %standard-phases
1754 (replace 'configure
1755 (lambda _
1756 (chdir "godot")
1757 (setenv "HOME" (getcwd))
1758 (with-output-to-file "export_presets.cfg"
1759 (lambda ()
1760 (display
1761 "[preset.0]
1762 name=\"Guix\"
1763 platform=\"Linux/X11\"
1764 runnable=true
1765 [preset.0.options]")))
1766 #t))
1767 (replace 'build
1768 (lambda _
1769 (let ((godot (assoc-ref %build-inputs "godot-headless")))
1770 (invoke (string-append godot "/bin/godot_server")
1771 "--export-pack" "Guix"
1772 "superstarfighter.pck" "project.godot"))
1773 #t))
1774 (replace 'install
1775 (lambda* (#:key inputs outputs #:allow-other-keys)
1776 (let* ((out (assoc-ref outputs "out"))
1777 (bin (string-append out "/bin"))
1778 (share (string-append out "/share"))
1779 (data (string-append share "/superstarfighter"))
1780 (icons (string-append share "/icons/hicolor/256x256/apps")))
1781 (install-file "superstarfighter.pck" data)
1782 (mkdir-p bin)
1783 (call-with-output-file (string-append bin "/superstarfighter")
1784 (lambda (port)
1785 (format port
1786 "#!/bin/sh~@
1787 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
1788 (assoc-ref inputs "godot")
1789 data)
1790 (chmod port #o755)))
1791 (mkdir-p icons)
1792 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
1793 (make-desktop-entry-file
1794 (string-append share "/applications/" ,name ".desktop")
1795 #:name "SuperStarfighter"
1796 #:comment "Fast-paced arcade combat game"
1797 #:exec ,name
1798 #:icon ,name
1799 #:categories '("Game" "ArcadeGame")))
1800 #t)))))
1801 (native-inputs
1802 `(("godot-headless" ,godot "headless")))
1803 (inputs
1804 `(("godot" ,godot)))
1805 (home-page "https://notapixel.itch.io/superstarfighter")
1806 (synopsis "Fast-paced local multiplayer arcade game")
1807 (description "In SuperStarfighter, up to four local players compete in a
1808 2D arena with fast-moving ships and missiles. Different game types are
1809 available, as well as a single-player mode with AI-controlled ships.")
1810 (license (list license:expat ; game
1811 license:silofl1.1)))) ; fonts
1812
1813 (define-public xshogi
1814 (package
1815 (name "xshogi")
1816 (version "1.4.2")
1817 (source
1818 (origin
1819 (method url-fetch)
1820 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
1821 version ".tar.gz"))
1822 (sha256
1823 (base32
1824 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
1825 (build-system gnu-build-system)
1826 (inputs
1827 `(("libxaw" ,libxaw)
1828 ("libxt" ,libxt)))
1829 (home-page "https://www.gnu.org/software/gnushogi/")
1830 (synopsis "User interface for gnushogi")
1831 (description "A graphical user interface for the package @code{gnushogi}.")
1832 ;; Contains a copy of GPLv3 but the licence notices simply
1833 ;; state "GNU General Public Licence" without specifying a version.
1834 (license license:gpl1+)))
1835
1836 (define-public abbaye
1837 (package
1838 (name "abbaye")
1839 (version "2.0.1")
1840 (source
1841 (origin
1842 (method git-fetch)
1843 (uri (git-reference
1844 (url "https://github.com/nevat/abbayedesmorts-gpl.git")
1845 (commit (string-append "v" version))))
1846 (file-name (git-file-name name version))
1847 (sha256
1848 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
1849 (modules '((guix build utils)))
1850 (snippet
1851 ;; Unbundle fonts.
1852 '(begin
1853 (delete-file-recursively "fonts")
1854 #t))))
1855 (build-system gnu-build-system)
1856 (arguments
1857 '(#:make-flags '("CC=gcc")
1858 #:phases (modify-phases %standard-phases
1859 (add-after 'set-paths 'set-sdl-paths
1860 (lambda* (#:key inputs #:allow-other-keys)
1861 (setenv "CPATH"
1862 (string-append (assoc-ref inputs "sdl-union")
1863 "/include/SDL:"
1864 (or (getenv "CPATH") "")))))
1865 (add-after 'patch-source-shebangs 'patch-makefile
1866 (lambda* (#:key outputs #:allow-other-keys)
1867 ;; Replace /usr with package output directory.
1868 (substitute* "Makefile"
1869 (("/usr") (assoc-ref outputs "out")))))
1870 (add-before 'install 'make-install-dirs
1871 (lambda* (#:key outputs #:allow-other-keys)
1872 (let ((prefix (assoc-ref outputs "out")))
1873 ;; Create directories that the makefile assumes exist.
1874 (mkdir-p (string-append prefix "/bin"))
1875 (mkdir-p (string-append prefix "/share/applications"))
1876 (mkdir-p (string-append prefix "/share/pixmaps")))))
1877 ;; No configure script.
1878 (delete 'configure))
1879 #:tests? #f)) ;; No check target.
1880 (native-inputs `(("pkg-config" ,pkg-config)))
1881 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
1882 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
1883 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
1884 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
1885 France. The Cathars, who preach about good Christian beliefs, were being
1886 expelled by the Catholic Church out of the Languedoc region in France. One of
1887 them, called Jean Raymond, found an old church in which to hide, not knowing
1888 that beneath its ruins lay buried an ancient evil.")
1889 (license license:gpl3)))
1890
1891 (define-public angband
1892 (package
1893 (name "angband")
1894 (version "4.2.0")
1895 (source
1896 (origin
1897 (method url-fetch)
1898 (uri (string-append "http://rephial.org/downloads/"
1899 (version-major+minor version)
1900 "/angband-" version ".tar.gz"))
1901 (sha256
1902 (base32
1903 "0vdm1ymm28wawp94nl1p5q3lhc0k7cnn2kkvvrkfx962gif4kqfk"))
1904 (modules '((guix build utils)))
1905 (snippet
1906 ;; So, some of the sounds/graphics/tilesets are under different
1907 ;; licenses... some of them even nonfree! This is a console-only
1908 ;; version of this package so we just remove them.
1909 ;; In the future, if someone tries to make a graphical variant of
1910 ;; this package, they can deal with that mess themselves. :)
1911 '(begin
1912 (for-each (lambda (subdir)
1913 (let ((lib-subdir (string-append "lib/" subdir)))
1914 (delete-file-recursively lib-subdir)))
1915 '("fonts" "icons" "sounds" "tiles"))
1916 (substitute* "lib/Makefile"
1917 ;; And don't try to invoke makefiles in the directories we removed.
1918 (("gamedata customize help screens fonts tiles sounds icons user")
1919 "gamedata customize help screens user"))
1920 #t))))
1921 (build-system gnu-build-system)
1922 (arguments
1923 `(#:tests? #f ; no check target
1924 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
1925 #:phases
1926 (modify-phases %standard-phases
1927 (replace 'bootstrap
1928 (lambda _
1929 (substitute* "acinclude.m4"
1930 (("ncursesw5-config") "ncursesw6-config"))
1931 (invoke "sh" "autogen.sh"))))))
1932 (native-inputs
1933 `(("autoconf" ,autoconf)
1934 ("automake" ,automake)))
1935 (inputs `(("ncurses" ,ncurses)))
1936 (home-page "http://rephial.org/")
1937 (synopsis "Dungeon exploration roguelike")
1938 (description "Angband is a Classic dungeon exploration roguelike. Explore
1939 the depths below Angband, seeking riches, fighting monsters, and preparing to
1940 fight Morgoth, the Lord of Darkness.")
1941 (license license:gpl2)))
1942
1943 (define-public pingus
1944 (package
1945 (name "pingus")
1946 (version "0.7.6")
1947 (source
1948 (origin
1949 (method git-fetch)
1950 (uri (git-reference
1951 (url "https://gitlab.com/pingus/pingus.git")
1952 (commit (string-append "v" version))))
1953 (file-name (git-file-name name version))
1954 (sha256
1955 (base32
1956 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
1957 (patches (search-patches "pingus-boost-headers.patch"
1958 "pingus-sdl-libs-config.patch"))
1959 (modules '((guix build utils)))
1960 (snippet
1961 '(begin
1962 (substitute* "src/pingus/screens/demo_session.cpp"
1963 (("#include <iostream>")
1964 ;; std::function moved to <functional> with C++ 11.
1965 ;; Remove this for versions newer than 0.7.6.
1966 "#include <iostream>\n#include <functional>"))
1967 #t))))
1968 (build-system gnu-build-system)
1969 (native-inputs `(("pkg-config" ,pkg-config)
1970 ("scons-python2" ,scons-python2)))
1971 (inputs `(("sdl" ,sdl)
1972 ("sdl-image" ,sdl-image)
1973 ("sdl-mixer" ,sdl-mixer)
1974 ("mesa" ,mesa)
1975 ("glu" ,glu)
1976 ("libpng" ,libpng)
1977 ("boost" ,boost)))
1978 (arguments
1979 '(#:make-flags (list (string-append "PREFIX=" %output))
1980 #:tests? #f ; no check target
1981 #:phases
1982 (modify-phases %standard-phases
1983 (delete 'configure)))) ; no configure script
1984 (home-page "https://pingus.seul.org/")
1985 (synopsis "Lemmings clone")
1986 (description
1987 "Pingus is a free Lemmings-like puzzle game in which the player takes
1988 command of a bunch of small animals and has to guide them through levels.
1989 Since the animals walk on their own, the player can only influence them by
1990 giving them commands, like build a bridge, dig a hole, or redirect all animals
1991 in the other direction. Multiple such commands are necessary to reach the
1992 level's exit. The game is presented in a 2D side view.")
1993 ;; Some source files are under bsd-3 and gpl2+ licenses.
1994 (license license:gpl3+)))
1995
1996 (define-public talkfilters
1997 (package
1998 (name "talkfilters")
1999 (version "2.3.8")
2000 (source
2001 (origin
2002 (method url-fetch)
2003 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
2004 "talkfilters-" version ".tar.gz"))
2005 (sha256
2006 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
2007 (build-system gnu-build-system)
2008 (home-page "https://www.gnu.org/software/talkfilters/")
2009 (synopsis "Convert English text to humorous dialects")
2010 (description "The GNU Talk Filters are programs that convert English text
2011 into stereotyped or otherwise humorous dialects. The filters are provided as
2012 a C library, so they can easily be integrated into other programs.")
2013 (license license:gpl2+)))
2014
2015 (define-public cmatrix
2016 (package
2017 (name "cmatrix")
2018 (version "2.0")
2019 (source
2020 (origin
2021 (method git-fetch)
2022 (uri (git-reference
2023 (url "https://github.com/abishekvashok/cmatrix.git")
2024 (commit (string-append "v" version))))
2025 (file-name (git-file-name name version))
2026 (sha256
2027 (base32
2028 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
2029 (build-system gnu-build-system)
2030 (native-inputs
2031 `(("autoconf" ,autoconf)
2032 ("automake" ,automake)))
2033 (arguments
2034 '(#:phases
2035 (modify-phases %standard-phases
2036 (replace 'configure
2037 (lambda* (#:key outputs #:allow-other-keys)
2038 ;; This old ‘configure’ script doesn't support
2039 ;; variables passed as arguments.
2040 (let ((out (assoc-ref outputs "out")))
2041 (setenv "CONFIG_SHELL" (which "bash"))
2042 (invoke "./configure"
2043 (string-append "--prefix=" out))))))))
2044 (inputs `(("ncurses" ,ncurses)))
2045 (home-page "http://www.asty.org/cmatrix")
2046 (synopsis "Simulate the display from \"The Matrix\"")
2047 (description "CMatrix simulates the display from \"The Matrix\" and is
2048 based on the screensaver from the movie's website. It works with terminal
2049 settings up to 132x300 and can scroll lines all at the same rate or
2050 asynchronously and at a user-defined speed.")
2051 (license license:gpl2+)))
2052
2053 (define-public chess
2054 (package
2055 (name "chess")
2056 (version "6.2.6")
2057 (source
2058 (origin
2059 (method url-fetch)
2060 (uri (string-append "mirror://gnu/chess/gnuchess-" version
2061 ".tar.gz"))
2062 (sha256
2063 (base32
2064 "0kxhdv01ia91v2y0cmzbll391ns2vbmn65jjrv37h4s1srszh5yn"))))
2065 (build-system gnu-build-system)
2066 (home-page "https://www.gnu.org/software/chess/")
2067 (synopsis "Full chess implementation")
2068 (description "GNU Chess is a chess engine. It allows you to compete
2069 against the computer in a game of chess, either through the default terminal
2070 interface or via an external visual interface such as GNU XBoard.")
2071 (properties '((upstream-name . "gnuchess")
2072 (ftp-directory . "/chess")))
2073 (license license:gpl3+)))
2074
2075 (define freedink-engine
2076 (package
2077 (name "freedink-engine")
2078 (version "109.6")
2079 (source (origin
2080 (method url-fetch)
2081 (uri (string-append "mirror://gnu/freedink/freedink-" version
2082 ".tar.gz"))
2083 (sha256
2084 (base32
2085 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
2086 (build-system gnu-build-system)
2087 (arguments
2088 `(#:configure-flags '("--disable-embedded-resources")
2089 #:phases
2090 (modify-phases %standard-phases
2091 (add-after 'unpack 'disable-graphical-tests
2092 (lambda _
2093 ;; These tests require a graphical interface.
2094 (substitute* "src/Makefile.am"
2095 (("test_gfx_fonts TestIOGfxDisplay") ""))
2096 #t)))))
2097 (native-inputs `(("autoconf" ,autoconf)
2098 ("automake" ,automake)
2099 ("cxxtest" ,cxxtest)
2100 ("gettext" ,gettext-minimal)
2101 ("help2man" ,help2man)
2102 ("pkg-config" ,pkg-config)))
2103 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
2104 sdl2-ttf sdl2-gfx)))
2105 ("fontconfig" ,fontconfig)
2106 ("glm" ,glm)))
2107 (properties '((ftp-directory . "/freedink")
2108 (upstream-name . "freedink")))
2109 (home-page "https://www.gnu.org/software/freedink/")
2110 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
2111 (description
2112 "GNU FreeDink is a free and portable re-implementation of the engine
2113 for the role-playing game Dink Smallwood. It supports not only the original
2114 game data files but it also supports user-produced game mods or \"D-Mods\".
2115 To that extent, it also includes a front-end for managing all of your D-Mods.")
2116 (license license:gpl3+)))
2117
2118 (define freedink-data
2119 (package
2120 (name "freedink-data")
2121 (version "1.08.20190120")
2122 (source (origin
2123 (method url-fetch)
2124 (uri (string-append "mirror://gnu/freedink/freedink-data-"
2125 version ".tar.gz"))
2126 (sha256
2127 (base32
2128 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
2129 (build-system gnu-build-system)
2130 (arguments
2131 `(#:phases
2132 (modify-phases %standard-phases
2133 (delete 'configure) ; no configure script
2134 (delete 'check)) ; no tests
2135 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
2136 (properties '((ftp-directory . "/freedink")))
2137 (home-page "https://www.gnu.org/software/freedink/")
2138 (synopsis "Game data for GNU Freedink")
2139 (description
2140 "This package contains the game data of GNU Freedink.")
2141 (license license:gpl3+)))
2142
2143 (define-public freedink-dfarc
2144 (package
2145 (name "freedink-dfarc")
2146 (version "3.14")
2147 (source (origin
2148 (method url-fetch)
2149 (uri (string-append "mirror://gnu/freedink/dfarc-"
2150 version ".tar.gz"))
2151 (sha256
2152 (base32
2153 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
2154 (build-system gnu-build-system)
2155 (native-inputs
2156 `(("intltool" ,intltool)))
2157 (inputs
2158 `(("bzip2" ,bzip2)
2159 ("wxwidgets" ,wxwidgets)))
2160 (properties '((ftp-directory . "/freedink")
2161 (upstream-name . "dfarc")))
2162 (home-page "https://www.gnu.org/software/freedink/")
2163 (synopsis "Front-end for managing and playing Dink Modules")
2164 (description "DFArc makes it easy to play and manage the GNU FreeDink game
2165 and its numerous D-Mods.")
2166 (license license:gpl3+)))
2167
2168 (define-public freedink
2169 ;; This is a wrapper that tells the engine where to find the data.
2170 (package (inherit freedink-engine)
2171 (name "freedink")
2172 (build-system trivial-build-system)
2173 (arguments
2174 '(#:builder (begin
2175 (use-modules (guix build utils))
2176
2177 (let* ((output (assoc-ref %outputs "out"))
2178 (bin (string-append output "/bin"))
2179 (executable (string-append bin "/freedink")))
2180 (mkdir-p bin)
2181 (call-with-output-file executable
2182 (lambda (port)
2183 (format port "#!~a/bin/sh
2184 exec ~a/bin/freedink -refdir ~a/share/dink\n"
2185 (assoc-ref %build-inputs "bash")
2186 (assoc-ref %build-inputs "engine")
2187 (assoc-ref %build-inputs "data"))
2188 (chmod port #o777)))
2189 #t))
2190 #:modules ((guix build utils))))
2191 (inputs `(("engine" ,freedink-engine)
2192 ("data" ,freedink-data)
2193 ("bash" ,bash)))
2194 (native-inputs '())))
2195
2196 (define-public xboard
2197 (package
2198 (name "xboard")
2199 (version "4.9.1")
2200 (source
2201 (origin
2202 (method url-fetch)
2203 (uri (string-append "mirror://gnu/xboard/xboard-" version
2204 ".tar.gz"))
2205 (sha256
2206 (base32
2207 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
2208 (build-system gnu-build-system)
2209 (inputs
2210 `(("gtk+" ,gtk+-2)
2211 ("librsvg" ,librsvg)))
2212 (native-inputs
2213 `(("texinfo" ,texinfo)
2214 ("pkg-config" ,pkg-config)))
2215 (home-page "https://www.gnu.org/software/xboard/")
2216 (synopsis "Graphical user interface for chess programs")
2217 (description "GNU XBoard is a graphical board for all varieties of chess,
2218 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
2219 and Makruk. Several lesser-known variants are also supported. It presents a
2220 fully interactive graphical interface and it can load and save games in the
2221 Portable Game Notation.")
2222 (license license:gpl3+)))
2223
2224 (define-public gtypist
2225 (package
2226 (name "gtypist")
2227 (version "2.9.5")
2228 (source (origin
2229 (method url-fetch)
2230 (uri (string-append "mirror://gnu/gtypist/gtypist-"
2231 version ".tar.xz"))
2232 (sha256
2233 (base32
2234 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
2235 (modules '((guix build utils)))
2236 (snippet
2237 ;; We do not provide `ncurses.h' within an `ncursesw'
2238 ;; sub-directory, so patch the source accordingly. See
2239 ;; <http://bugs.gnu.org/19018>.
2240 '(begin
2241 (for-each (lambda (file)
2242 (substitute* file
2243 (("ncursesw/ncurses.h")
2244 "ncurses.h")))
2245 (find-files "." "configure$|\\.c$"))
2246 #t))))
2247 (build-system gnu-build-system)
2248 (inputs `(("ncurses" ,ncurses)
2249 ("perl" ,perl)))
2250 (home-page "https://www.gnu.org/software/gtypist/")
2251 (synopsis "Typing tutor")
2252 (description
2253 "GNU Typist is a universal typing tutor. It can be used to learn and
2254 practice touch-typing. Several tutorials are included; in addition to
2255 tutorials for the standard QWERTY layout, there are also tutorials for the
2256 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
2257 are primarily in English, however some in other languages are provided.")
2258 (license license:gpl3+)))
2259
2260 (define-public irrlicht
2261 (package
2262 (name "irrlicht")
2263 (version "1.8.4")
2264 (source (origin
2265 (method url-fetch)
2266 (uri (string-append
2267 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
2268 (version-major+minor version)
2269 "/" version "/irrlicht-" version ".zip"))
2270 (sha256
2271 (base32
2272 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
2273 (patches (search-patches "irrlicht-use-system-libs.patch"))
2274 (modules '((guix build utils)))
2275 (snippet
2276 '(begin
2277 (for-each delete-file-recursively
2278 '("bin" ; bundled compiled Windows binaries"
2279 "source/Irrlicht/MacOSX"
2280 "source/Irrlicht/bzip2"
2281 "source/Irrlicht/jpeglib"
2282 "source/Irrlicht/libpng"
2283 "source/Irrlicht/lzma"
2284 "source/Irrlicht/zlib"))
2285 (delete-file "source/Irrlicht/glext.h")
2286 (delete-file "source/Irrlicht/glxext.h")
2287 (delete-file "source/Irrlicht/wglext.h")
2288 #t))))
2289 (build-system gnu-build-system)
2290 (arguments
2291 `(#:phases
2292 (modify-phases %standard-phases
2293 (add-after 'unpack 'chdir-to-source
2294 (lambda _
2295 ;; The actual source is buried a few directories deep.
2296 (chdir "source/Irrlicht/")
2297 #t))
2298 (add-after 'chdir-to-source 'fix-build-env
2299 (lambda* (#:key outputs #:allow-other-keys)
2300 (let ((out (assoc-ref outputs "out")))
2301 (substitute* "Makefile"
2302 (("INSTALL_DIR = /usr/local/lib")
2303 (string-append "INSTALL_DIR = " out "/lib"))
2304 ;; Add '-fpermissive' to the CXXFLAGS
2305 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
2306 ;; The Makefile assumes these directories exist.
2307 (mkdir-p (string-append out "/lib"))
2308 (mkdir-p (string-append out "/include")))))
2309 (delete 'configure)) ; no configure script
2310 #:tests? #f ; no check target
2311 #:make-flags '("CC=gcc" "sharedlib")))
2312 (inputs
2313 `(("bzip2" ,bzip2)
2314 ("libjpeg" ,libjpeg-turbo)
2315 ("libpng" ,libpng)
2316 ("libx11" ,libx11)
2317 ("libxxf86vm" ,libxxf86vm)
2318 ("mesa" ,mesa)))
2319 (synopsis "3D game engine written in C++")
2320 (description
2321 "The Irrlicht Engine is a high performance realtime 3D engine written in
2322 C++. Features include an OpenGL renderer, extensible materials, scene graph
2323 management, character animation, particle and other special effects, support
2324 for common mesh file formats, and collision detection.")
2325 (home-page "http://irrlicht.sourceforge.net/")
2326 (license license:zlib)))
2327
2328 (define-public mars
2329 ;; The latest release on SourceForge relies on an unreleased version of SFML
2330 ;; with a different API, so we take the latest version from the official
2331 ;; repository on Github.
2332 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
2333 (revision "1"))
2334 (package
2335 (name "mars")
2336 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
2337 (source (origin
2338 (method git-fetch)
2339 (uri (git-reference
2340 (url "https://github.com/thelaui/M.A.R.S..git")
2341 (commit commit)))
2342 (file-name (git-file-name name version))
2343 (sha256
2344 (base32
2345 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
2346 (patches (search-patches "mars-sfml-2.3.patch"
2347 "mars-install.patch"))))
2348 (build-system cmake-build-system)
2349 (arguments
2350 `(#:tests? #f ; There are no tests
2351 #:phases
2352 (modify-phases %standard-phases
2353 (add-after 'unpack 'fix-install-path
2354 (lambda _
2355 (substitute* "src/CMakeLists.txt"
2356 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
2357 "${CMAKE_INSTALL_PREFIX}/bin"))
2358 #t))
2359 (add-after 'unpack 'fix-data-path
2360 (lambda* (#:key outputs #:allow-other-keys)
2361 (substitute* "src/System/settings.cpp"
2362 (("C_dataPath = \"./data/\";")
2363 (string-append "C_dataPath = \""
2364 (assoc-ref outputs "out")
2365 "/share/games/marsshooter/\";")))
2366 #t)))))
2367 (inputs
2368 `(("mesa" ,mesa)
2369 ("fribidi" ,fribidi)
2370 ("taglib" ,taglib)
2371 ("sfml" ,sfml)))
2372 (home-page "http://mars-game.sourceforge.net/")
2373 (synopsis "2D space shooter")
2374 (description
2375 "M.A.R.S. is a 2D space shooter with pretty visual effects and
2376 attractive physics. Players can battle each other or computer controlled
2377 enemies in different game modes such as space ball, death match, team death
2378 match, cannon keep, and grave-itation pit.")
2379 (license license:gpl3+))))
2380
2381 (define minetest-data
2382 (package
2383 (name "minetest-data")
2384 (version "5.1.1")
2385 (source (origin
2386 (method git-fetch)
2387 (uri (git-reference
2388 (url "https://github.com/minetest/minetest_game")
2389 (commit version)))
2390 (file-name (git-file-name name version))
2391 (sha256
2392 (base32
2393 "1r9fxz2j24q74a9injvbxbf2xk67fzabv616i676zw2cvgv9hn39"))))
2394 (build-system trivial-build-system)
2395 (native-inputs
2396 `(("source" ,source)))
2397 (arguments
2398 `(#:modules ((guix build utils))
2399 #:builder (begin
2400 (use-modules (guix build utils))
2401 (let ((install-dir (string-append
2402 %output
2403 "/share/minetest/games/minetest_game")))
2404 (mkdir-p install-dir)
2405 (copy-recursively
2406 (assoc-ref %build-inputs "source")
2407 install-dir)
2408 #t))))
2409 (synopsis "Main game data for the Minetest game engine")
2410 (description
2411 "Game data for the Minetest infinite-world block sandbox game.")
2412 (home-page "https://www.minetest.net/")
2413 (license license:lgpl2.1+)))
2414
2415 (define-public minetest
2416 (package
2417 (name "minetest")
2418 (version "5.1.1")
2419 (source (origin
2420 (method git-fetch)
2421 (uri (git-reference
2422 (url "https://github.com/minetest/minetest")
2423 (commit version)))
2424 (file-name (git-file-name name version))
2425 (sha256
2426 (base32
2427 "0cjj63333b7j4ydfq0h9yc6d2jvmyjd7n7zbd08yrf0rcibrj2k0"))
2428 (modules '((guix build utils)))
2429 (snippet
2430 '(begin
2431 ;; Delete bundled libraries.
2432 (delete-file-recursively "lib")
2433 #t))))
2434 (build-system cmake-build-system)
2435 (arguments
2436 '(#:configure-flags
2437 (list "-DRUN_IN_PLACE=0"
2438 "-DENABLE_FREETYPE=1"
2439 "-DENABLE_GETTEXT=1"
2440 "-DENABLE_SYSTEM_JSONCPP=TRUE"
2441 (string-append "-DIRRLICHT_INCLUDE_DIR="
2442 (assoc-ref %build-inputs "irrlicht")
2443 "/include/irrlicht")
2444 (string-append "-DCURL_INCLUDE_DIR="
2445 (assoc-ref %build-inputs "curl")
2446 "/include/curl"))
2447 #:tests? #f)) ;no check target
2448 (native-search-paths
2449 (list (search-path-specification
2450 (variable "MINETEST_SUBGAME_PATH")
2451 (files '("share/minetest/games")))))
2452 (native-inputs
2453 `(("pkg-config" ,pkg-config)))
2454 (inputs
2455 `(("curl" ,curl)
2456 ("freetype" ,freetype)
2457 ("gettext" ,gettext-minimal)
2458 ("gmp" ,gmp)
2459 ("irrlicht" ,irrlicht)
2460 ("jsoncpp" ,jsoncpp)
2461 ("libjpeg" ,libjpeg-turbo)
2462 ("libpng" ,libpng)
2463 ("libogg" ,libogg)
2464 ("libvorbis" ,libvorbis)
2465 ("libxxf86vm" ,libxxf86vm)
2466 ("luajit" ,luajit)
2467 ("mesa" ,mesa)
2468 ("ncurses" ,ncurses)
2469 ("openal" ,openal)
2470 ("sqlite" ,sqlite)))
2471 (propagated-inputs
2472 `(("minetest-data" ,minetest-data)))
2473 (synopsis "Infinite-world block sandbox game")
2474 (description
2475 "Minetest is a sandbox construction game. Players can create and destroy
2476 various types of blocks in a three-dimensional open world. This allows
2477 forming structures in every possible creation, on multiplayer servers or as a
2478 single player. Mods and texture packs allow players to personalize the game
2479 in different ways.")
2480 (home-page "https://www.minetest.net/")
2481 (license license:lgpl2.1+)))
2482
2483 (define glkterm
2484 (package
2485 (name "glkterm")
2486 (version "1.0.4")
2487 (source
2488 (origin
2489 (method url-fetch)
2490 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
2491 "glk/implementations/glkterm-104.tar.gz"))
2492 (sha256
2493 (base32
2494 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
2495 (build-system gnu-build-system)
2496 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
2497 (arguments
2498 '(#:tests? #f ; no check target
2499 #:phases
2500 (modify-phases %standard-phases
2501 (replace 'install
2502 (lambda* (#:key outputs #:allow-other-keys)
2503 (let* ((out (assoc-ref outputs "out"))
2504 (inc (string-append out "/include"))
2505 (lib (string-append out "/lib")))
2506 (for-each
2507 (lambda (file)
2508 (install-file file inc))
2509 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
2510 (install-file "libglkterm.a" lib))
2511 #t))
2512 (delete 'configure)))) ; no configure script
2513 (home-page "http://www.eblong.com/zarf/glk/")
2514 (synopsis "Curses Implementation of the Glk API")
2515 (description
2516 "Glk defines a portable API for applications with text UIs. It was
2517 primarily designed for interactive fiction, but it should be suitable for many
2518 interactive text utilities, particularly those based on a command line.
2519 This is an implementation of the Glk library which runs in a terminal window,
2520 using the @code{curses.h} library for screen control.")
2521 (license (license:fsf-free "file://README"))))
2522
2523 (define-public glulxe
2524 (package
2525 (name "glulxe")
2526 (version "0.5.4")
2527 (source
2528 (origin
2529 (method url-fetch)
2530 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
2531 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
2532 (sha256
2533 (base32
2534 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
2535 (build-system gnu-build-system)
2536 (inputs `(("glk" ,glkterm)))
2537 (arguments
2538 '(#:tests? #f ; no check target
2539 #:make-flags
2540 (let* ((glk (assoc-ref %build-inputs "glk")))
2541 (list (string-append "GLKINCLUDEDIR=" glk "/include")
2542 (string-append "GLKLIBDIR=" glk "/lib")
2543 (string-append "GLKMAKEFILE=" "Make.glkterm")))
2544 #:phases
2545 (modify-phases %standard-phases
2546 (replace 'install
2547 (lambda* (#:key outputs #:allow-other-keys)
2548 (let* ((out (assoc-ref outputs "out"))
2549 (bin (string-append out "/bin")))
2550 (install-file "glulxe" bin))
2551 #t))
2552 (delete 'configure)))) ; no configure script
2553 (home-page "https://www.eblong.com/zarf/glulx/")
2554 (synopsis "Interpreter for Glulx VM")
2555 (description
2556 "Glulx is a 32-bit portable virtual machine intended for writing and
2557 playing interactive fiction. It was designed by Andrew Plotkin to relieve
2558 some of the restrictions in the venerable Z-machine format. This is the
2559 reference interpreter, using the Glk API.")
2560 (license license:expat)))
2561
2562 (define-public fifechan
2563 (package
2564 (name "fifechan")
2565 (version "0.1.5")
2566 (source (origin
2567 (method url-fetch)
2568 (uri (string-append "https://codeload.github.com/fifengine/"
2569 "fifechan/tar.gz/" version))
2570 (file-name (string-append name "-" version ".tar.gz"))
2571 (sha256
2572 (base32
2573 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
2574 (build-system cmake-build-system)
2575 (inputs
2576 `(("sdl2" ,sdl2)
2577 ("sdl2-image" ,sdl2-image)
2578 ("mesa" ,mesa)))
2579 (arguments
2580 '(#:tests? #f)) ; No included tests
2581 (home-page "https://fifengine.github.io/fifechan/")
2582 (synopsis "Cross platform GUI library specifically for games")
2583 (description
2584 "Fifechan is a lightweight cross platform GUI library written in C++
2585 specifically designed for games. It has a built in set of extendable GUI
2586 Widgets, and allows users to create more.")
2587 (license license:lgpl2.1+)))
2588
2589 (define-public fifengine
2590 (package
2591 (name "fifengine")
2592 (version "0.4.2")
2593 (source (origin
2594 (method url-fetch)
2595 (uri (string-append "https://codeload.github.com/fifengine/"
2596 "fifengine/tar.gz/" version))
2597 (file-name (string-append name "-" version ".tar.gz"))
2598 (patches (search-patches "fifengine-swig-compat.patch"))
2599 (sha256
2600 (base32
2601 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
2602 (build-system cmake-build-system)
2603 (arguments
2604 `(#:tests? #f ; TODO The test running fails to run some tests.
2605 #:modules ((srfi srfi-1)
2606 (guix build cmake-build-system)
2607 (guix build utils))
2608 #:configure-flags
2609 (list
2610 (string-append "-DOPENALSOFT_INCLUDE_DIR="
2611 (assoc-ref %build-inputs "openal")
2612 "/include/AL")
2613 (string-append "-DPYTHON_SITE_PACKAGES="
2614 (assoc-ref %outputs "out")
2615 "/lib/python"
2616 ,(version-major+minor (package-version python))
2617 "/site-packages"))
2618 #:phases
2619 (modify-phases %standard-phases
2620 (add-after 'unpack 'patch-run_tests.py
2621 (lambda _
2622 ;; Patch the test runner to exit with a status of 1 if any test
2623 ;; fails, to allow detecting failures.
2624 (substitute* "run_tests.py"
2625 (("ERROR\\. One or more tests failed!'\\)")
2626 "ERROR. One or more tests failed!')
2627 \t\texit(1)"))
2628 #t))
2629 ;; Run tests after installation so that we can make use of the built
2630 ;; python modules.
2631 (delete 'check)
2632 (add-after 'install 'check
2633 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
2634 (define python-version
2635 (let* ((version (last (string-split
2636 (assoc-ref inputs "python")
2637 #\-)))
2638 (components (string-split version #\.))
2639 (major+minor (take components 2)))
2640 (string-join major+minor ".")))
2641
2642 (when tests?
2643 ;; Set PYTHONPATH so that python finds the installed modules.
2644 (setenv "PYTHONPATH"
2645 (string-append (getenv "PYTHONPATH") ":"
2646 (assoc-ref outputs "out")
2647 "/lib/python"
2648 python-version
2649 "/site-packages"))
2650 ;; The tests require an X server.
2651 (system "Xvfb :1 &")
2652 (setenv "DISPLAY" ":1")
2653 (setenv "XDG_RUNTIME_DIR" "/tmp")
2654 ;; Run tests
2655 (chdir ,(string-append "../" name "-" version))
2656 (invoke "python3" "run_tests.py" "-a"))
2657 #t)))))
2658 (inputs
2659 `(("sdl2" ,sdl2)
2660 ("sdl2-image" ,sdl2-image)
2661 ("sdl2-ttf" ,sdl2-ttf)
2662 ("tinyxml" ,tinyxml)
2663 ("openal" ,openal)
2664 ("libogg" ,libogg)
2665 ("glew" ,glew)
2666 ("libvorbis" ,libvorbis)
2667 ("boost" ,boost)
2668 ("fifechan" ,fifechan)
2669 ("swig" ,swig)
2670 ("python" ,python)))
2671 (native-inputs
2672 `(("python" ,python)
2673 ("swig" ,swig)
2674 ("xvfb" ,xorg-server)))
2675 (propagated-inputs
2676 `(("python-future" ,python-future)))
2677 (home-page "https://www.fifengine.net/")
2678 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
2679 (description
2680 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
2681 isometric game engine. Python bindings are included allowing users to create
2682 games using Python as well as C++.")
2683 (license license:lgpl2.1+)))
2684
2685 (define-public fizmo
2686 (package
2687 (name "fizmo")
2688 (version "0.8.5")
2689 (source (origin
2690 (method url-fetch)
2691 (uri (string-append "https://fizmo.spellbreaker.org/source/"
2692 "fizmo-" version ".tar.gz"))
2693 (sha256
2694 (base32
2695 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
2696 (build-system gnu-build-system)
2697 (arguments
2698 '(#:configure-flags
2699 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
2700 (ncurses (assoc-ref %build-inputs "ncurses")))
2701 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
2702 (native-inputs
2703 `(("pkg-config" ,pkg-config)))
2704 (inputs
2705 `(("freetype" ,freetype)
2706 ("libjpeg" ,libjpeg-turbo)
2707 ("libpng" ,libpng)
2708 ("libsndfile" ,libsndfile)
2709 ("libxml2" ,libxml2)
2710 ("ncurses" ,ncurses)
2711 ("sdl2" ,sdl2)))
2712 (home-page "https://fizmo.spellbreaker.org/")
2713 (synopsis "Z-machine interpreter")
2714 (description
2715 "Fizmo is a console-based Z-machine interpreter. It is used to play
2716 interactive fiction, also known as text adventures, which were implemented
2717 either by Infocom or created using the Inform compiler.")
2718 (license license:bsd-3)))
2719
2720 (define-public gnugo
2721 (package
2722 (name "gnugo")
2723 (version "3.8")
2724 (source (origin
2725 (method url-fetch)
2726 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
2727 ".tar.gz"))
2728 (sha256
2729 (base32
2730 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
2731 (build-system gnu-build-system)
2732 (inputs `(("readline" ,readline)))
2733 (synopsis "Play the game of Go")
2734 (description
2735 "GNU Go is a program that plays the game of Go, in which players
2736 place stones on a grid to form territory or capture other stones. While
2737 it can be played directly from the terminal, rendered in ASCII characters,
2738 it is also possible to play GNU Go with 3rd party graphical interfaces or
2739 even in Emacs. It supports the standard game storage format (SGF, Smart
2740 Game Format) and inter-process communication format (GMP, Go Modem
2741 Protocol).")
2742 (home-page "https://www.gnu.org/software/gnugo/")
2743 (license license:gpl3+)))
2744
2745 (define-public extremetuxracer
2746 (package
2747 (name "extremetuxracer")
2748 (version "0.8.0")
2749 (source (origin
2750 (method url-fetch)
2751 (uri (string-append
2752 "mirror://sourceforge/extremetuxracer/releases/"
2753 version "/etr-" version ".tar.xz"))
2754 (sha256
2755 (base32
2756 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
2757 (build-system gnu-build-system)
2758 (native-inputs
2759 `(("pkg-config" ,pkg-config)))
2760 (inputs
2761 `(("glu" ,glu)
2762 ("sfml" ,sfml)))
2763 (synopsis "High-speed arctic racing game based on Tux Racer")
2764 ;; Snarfed straight from Debian.
2765 (description "Extreme Tux Racer, or etracer as it is called for short, is
2766 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
2767 game is to slide down a snow- and ice-covered mountain as quickly as possible,
2768 avoiding the trees and rocks that will slow you down.
2769
2770 Collect herrings and other goodies while sliding down the hill, but avoid fish
2771 bones.
2772
2773 This game is based on the GPL version of the famous game TuxRacer.")
2774 (home-page "https://sourceforge.net/projects/extremetuxracer/")
2775 (license license:gpl2+)))
2776
2777 (define-public supertuxkart
2778 (package
2779 (name "supertuxkart")
2780 (version "1.1")
2781 (source
2782 (origin
2783 (method url-fetch)
2784 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
2785 version "/supertuxkart-" version "-src.tar.xz"))
2786 (sha256
2787 (base32
2788 "1s0ai07g3sswck9mr0142989mrgzzq1njc1qxk5als5b245jpc79"))
2789 (modules '((guix build utils)))
2790 (snippet
2791 ;; Delete bundled library sources
2792 '(begin
2793 ;; Supertuxkart uses modified versions of the Irrlicht engine
2794 ;; and the bullet library. The developers gave an explanation
2795 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
2796 ;; FIXME: try to unbundle angelscript and libraqm
2797 (for-each delete-file-recursively
2798 '("lib/zlib"
2799 "lib/libpng"
2800 "lib/jpeglib"
2801 "lib/glew"
2802 "lib/wiiuse"
2803 "lib/enet"))
2804 #t))))
2805 (build-system cmake-build-system)
2806 (arguments
2807 `(#:tests? #f ; no check target
2808 #:configure-flags
2809 (list "-DUSE_WIIUSE=0"
2810 ;; Do not use the bundled zlib, glew and enet.
2811 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
2812 "-DUSE_SYSTEM_GLEW=TRUE"
2813 "-DUSE_SYSTEM_ENET=TRUE"
2814 ;; In order to use the system ENet library, IPv6 support (added in
2815 ;; SuperTuxKart version 1.1) must be disabled.
2816 "-DUSE_IPV6=FALSE"
2817 ;; FIXME: needs libopenglrecorder
2818 "-DBUILD_RECORDER=0"
2819 ;; Irrlicht returns an integer instead of a boolean
2820 "-DCMAKE_C_FLAGS=-fpermissive")))
2821 (inputs
2822 `(("glew" ,glew)
2823 ("zlib" ,zlib)
2824 ("openal" ,openal)
2825 ("libvorbis" ,libvorbis)
2826 ("freetype" ,freetype)
2827 ("fribidi" ,fribidi)
2828 ("harfbuzz" ,harfbuzz)
2829 ("mesa" ,mesa)
2830 ("libx11" ,libx11)
2831 ("libxrandr" ,libxrandr)
2832 ("curl" ,curl)
2833 ;; The following input is needed to build the bundled and modified
2834 ;; version of irrlicht.
2835 ("libjpeg" ,libjpeg-turbo)
2836 ("openssl" ,openssl)
2837 ("enet" ,enet)))
2838 (native-inputs
2839 `(("pkg-config" ,pkg-config)))
2840 (home-page "https://supertuxkart.net/Main_Page")
2841 (synopsis "3D kart racing game")
2842 (description "SuperTuxKart is a 3D kart racing game, with a focus on
2843 having fun over realism. You can play with up to 4 friends on one PC, racing
2844 against each other or just trying to beat the computer; single-player mode is
2845 also available.")
2846 (license license:gpl3+)))
2847
2848 (define-public unknown-horizons
2849 (package
2850 (name "unknown-horizons")
2851 (version "2019.1")
2852 (source (origin
2853 (method url-fetch)
2854 (uri (string-append "https://codeload.github.com/unknown-horizons/"
2855 "unknown-horizons/tar.gz/" version))
2856 (file-name (string-append name "-" version ".tar.gz"))
2857 (sha256
2858 (base32
2859 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))))
2860 (build-system python-build-system)
2861 (arguments
2862 '(#:phases
2863 (modify-phases %standard-phases
2864 (add-before 'build 'set-HOME
2865 (lambda _
2866 (setenv "HOME" "/tmp")))
2867 (add-after 'build 'build-extra
2868 (lambda _
2869 (invoke "python3" "./setup.py" "build_i18n")
2870 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
2871 #t))
2872 (add-after 'install 'patch
2873 (lambda* (#:key outputs #:allow-other-keys)
2874 (let ((out (assoc-ref outputs "out")))
2875 (substitute* (string-append out "/bin/unknown-horizons")
2876 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
2877 (string-append "os.chdir(\""
2878 (assoc-ref outputs "out")
2879 "/share/unknown-horizons\")"))))
2880 #t))
2881 ;; TODO: Run GUI tests as well
2882 (replace 'check
2883 (lambda _
2884 (substitute* "horizons/constants.py"
2885 (("IS_DEV_VERSION = False")
2886 "IS_DEV_VERSION = True"))
2887 (invoke "pytest" "tests")
2888 (substitute* "horizons/constants.py"
2889 (("IS_DEV_VERSION = True")
2890 "IS_DEV_VERSION = False"))
2891 #t)))))
2892 (inputs
2893 `(("fifengine" ,fifengine)
2894 ("python:tk" ,python "tk")
2895 ("python-pillow" ,python-pillow)
2896 ("python-pyyaml" ,python-pyyaml)))
2897 (native-inputs
2898 `(("intltool" ,intltool)
2899
2900 ;; Required for tests
2901 ("python-greenlet" ,python-greenlet)
2902 ("python-polib" ,python-polib)
2903 ("python-pytest" ,python-pytest)
2904 ("python-pytest-mock" ,python-pytest-mock)))
2905 (home-page "http://unknown-horizons.org/")
2906 (synopsis "Isometric realtime strategy, economy and city building simulation")
2907 (description
2908 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
2909 on economy and city building. Expand your small settlement to a strong and
2910 wealthy colony, collect taxes and supply your inhabitants with valuable
2911 goods. Increase your power with a well balanced economy and with strategic
2912 trade and diplomacy.")
2913 (license (list
2914 license:gpl2+ ; Covers code
2915 license:expat ; tests/dummy.py, ext/polib.py
2916 license:cc-by-sa3.0 ; Covers some media content
2917 license:cc-by3.0 ; Covers some media content
2918 license:bsd-3)))) ; horizons/ext/speaklater.py
2919
2920 (define-public gnujump
2921 (package
2922 (name "gnujump")
2923 (version "1.0.8")
2924 (source (origin
2925 (method url-fetch)
2926 (uri (string-append "mirror://gnu/gnujump/gnujump-"
2927 version ".tar.gz"))
2928 (sha256
2929 (base32
2930 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
2931 (build-system gnu-build-system)
2932 (arguments
2933 '(#:phases
2934 (modify-phases %standard-phases
2935 (add-before
2936 'configure 'link-libm
2937 (lambda _ (setenv "LIBS" "-lm")))
2938 (add-after 'install 'create-desktop-entry
2939 (lambda* (#:key outputs #:allow-other-keys)
2940 (let* ((out (assoc-ref outputs "out"))
2941 (apps (string-append out "/share/applications")))
2942 (mkdir-p apps)
2943 (with-output-to-file
2944 (string-append apps "/gnujump.desktop")
2945 (lambda _
2946 (format #t
2947 "[Desktop Entry]~@
2948 Name=GNUjump~@
2949 Comment=Jump up the tower to survive~@
2950 Exec=~a/bin/gnujump~@
2951 Terminal=false~@
2952 Type=Application~@
2953 Categories=Game;ArcadeGame~%"
2954 out)))))))))
2955 (inputs
2956 `(("glu" ,glu)
2957 ("mesa" ,mesa)
2958 ("sdl" ,sdl)
2959 ("sdl-image" ,sdl-image)
2960 ("sdl-mixer" ,sdl-mixer)))
2961 (home-page "http://gnujump.es.gnu.org/")
2962 (synopsis
2963 "Game of jumping to the next floor, trying not to fall")
2964 (description
2965 "GNUjump is a simple, yet addictive game in which you must jump from
2966 platform to platform to avoid falling, while the platforms drop at faster rates
2967 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
2968 falling, themeable graphics and sounds, and replays.")
2969 (license license:gpl3+)))
2970
2971 (define-public wesnoth
2972 (package
2973 (name "wesnoth")
2974 (version "1.14.11")
2975 (source (origin
2976 (method url-fetch)
2977 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
2978 (version-major+minor version)
2979 "/wesnoth-" version "/"
2980 "wesnoth-" version ".tar.bz2"))
2981 (sha256
2982 (base32
2983 "1i8mz6gw3qar09bscczhki0g4scj8pl58v85rp0g55r4bcq41l5v"))))
2984 (build-system cmake-build-system)
2985 (arguments
2986 `(#:tests? #f)) ;no check target
2987 (native-inputs
2988 `(("gettext" ,gettext-minimal)
2989 ("pkg-config" ,pkg-config)))
2990 (inputs
2991 `(("boost" ,boost)
2992 ("dbus" ,dbus)
2993 ("fribidi" ,fribidi)
2994 ("libvorbis" ,libvorbis)
2995 ("openssl" ,openssl)
2996 ("pango" ,pango)
2997 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
2998 (home-page "https://www.wesnoth.org/")
2999 (synopsis "Turn-based strategy game")
3000 (description
3001 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
3002 with several single player campaigns, and multiplayer games (both networked and
3003 local).
3004
3005 Battle for control on a range of maps, using variety of units which have
3006 advantages and disadvantages against different types of attacks. Units gain
3007 experience and advance levels, and are carried over from one scenario to the
3008 next campaign.")
3009 (license license:gpl2+)))
3010
3011 (define-public wesnoth-server
3012 (package
3013 (inherit wesnoth)
3014 (name "wesnoth-server")
3015 (inputs
3016 `(("boost" ,boost)
3017 ("icu4c" ,icu4c)
3018 ("openssl" ,openssl)
3019 ("sdl2" ,sdl2)))
3020 (arguments
3021 `(#:configure-flags '("-DENABLE_GAME=OFF")
3022 ,@(package-arguments wesnoth)))
3023 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
3024 (description "This package contains a dedicated server for @emph{The
3025 Battle for Wesnoth}.")))
3026
3027 (define-public gamine
3028 (package
3029 (name "gamine")
3030 (version "1.6")
3031 (source (origin
3032 (method url-fetch)
3033 (uri (string-append "mirror://sourceforge/gamine-game/"
3034 "gamine-" version ".tar.gz"))
3035 (sha256
3036 (base32
3037 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
3038 (build-system gnu-build-system)
3039 (native-inputs
3040 `(("pkg-config" ,pkg-config)
3041 ("intltool" ,intltool)))
3042 (inputs
3043 `(("gstreamer" ,gstreamer)
3044 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
3045 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
3046 ("gtk+" ,gtk+)))
3047 (arguments
3048 `(#:tests? #f
3049 #:make-flags
3050 (let ((out (assoc-ref %outputs "out")))
3051 (list (string-append "PREFIX=" out)
3052 (string-append "SYSCONFDIR=" out "/etc")))
3053 #:phases
3054 (modify-phases %standard-phases
3055 (delete 'configure)
3056 (add-after
3057 'install 'wrap-gamine
3058 (lambda* (#:key outputs #:allow-other-keys)
3059 (let ((out (assoc-ref outputs "out"))
3060 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
3061 (wrap-program (string-append out "/bin/gamine")
3062 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
3063 #t)))))
3064 (home-page "http://gamine-game.sourceforge.net/")
3065 (synopsis "Mouse and keyboard discovery for children")
3066 (description
3067 "Gamine is a game designed for young children who are learning to use the
3068 mouse and keyboard. The child uses the mouse to draw colored dots and lines
3069 on the screen and keyboard to display letters.")
3070 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
3071 (license license:gpl3)))
3072
3073 (define-public manaplus
3074 (package
3075 (name "manaplus")
3076 (version "1.9.3.23")
3077 (source (origin
3078 (method url-fetch)
3079 (uri (string-append
3080 "https://repo.manaplus.org/manaplus/download/"
3081 version "/manaplus-" version ".tar.xz"))
3082 (sha256
3083 (base32
3084 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
3085 (build-system gnu-build-system)
3086 (arguments
3087 '(#:configure-flags
3088 (list (string-append "CPPFLAGS=-I"
3089 (assoc-ref %build-inputs "sdl-union")
3090 "/include/SDL"))))
3091 (native-inputs
3092 `(("pkg-config" ,pkg-config)))
3093 (inputs
3094 `(("glu" ,glu)
3095 ("curl" ,curl)
3096 ("libxml2" ,libxml2)
3097 ("mesa" ,mesa)
3098 ("sdl-union" ,(sdl-union))))
3099 (home-page "https://manaplus.org")
3100 (synopsis "Client for 'The Mana World' and similar games")
3101 (description
3102 "ManaPlus is a 2D MMORPG client for game servers. It is the only
3103 fully supported client for @uref{http://www.themanaworld.org, The mana
3104 world}, @uref{http://evolonline.org, Evol Online} and
3105 @uref{http://landoffire.org, Land of fire}.")
3106 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
3107 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
3108 ;; The rest is under GPL2+.
3109 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
3110
3111 (define openttd-engine
3112 (package
3113 (name "openttd-engine")
3114 (version "1.10.0")
3115 (source
3116 (origin (method url-fetch)
3117 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
3118 version "/openttd-" version "-source.tar.xz"))
3119 (sha256
3120 (base32
3121 "0lz2y2rjc23k0d97y65cqhy2splw9cmrbvhgz0iqps8xkan1m8hv"))))
3122 (build-system gnu-build-system)
3123 (arguments
3124 `(#:tests? #f ; no "check" target
3125 #:phases
3126 (modify-phases %standard-phases
3127 ;; The build process fails if the configure script is passed the
3128 ;; option "--enable-fast-install".
3129 (replace 'configure
3130 (lambda* (#:key inputs outputs (configure-flags '())
3131 #:allow-other-keys)
3132 (let ((out (assoc-ref outputs "out"))
3133 (lzo (assoc-ref inputs "lzo")))
3134 (apply invoke "./configure"
3135 (string-append "--prefix=" out)
3136 ;; Provide the "lzo" path.
3137 (string-append "--with-liblzo2="
3138 lzo "/lib/liblzo2.a")
3139 ;; Put the binary in 'bin' instead of 'games'.
3140 "--binary-dir=bin"
3141 configure-flags)))))))
3142 (native-inputs `(("pkg-config" ,pkg-config)))
3143 (inputs
3144 `(("allegro" ,allegro)
3145 ("fontconfig" ,fontconfig)
3146 ("freetype" ,freetype)
3147 ("icu4c" ,icu4c)
3148 ("libpng" ,libpng)
3149 ("lzo" ,lzo)
3150 ("sdl" ,sdl)
3151 ("xz" ,xz)
3152 ("zlib" ,zlib)))
3153 (synopsis "Transportation economics simulator game")
3154 (description "OpenTTD is a game in which you transport goods and
3155 passengers by land, water and air. It is a re-implementation of Transport
3156 Tycoon Deluxe with many enhancements including multiplayer mode,
3157 internationalization support, conditional orders and the ability to clone,
3158 autoreplace and autoupdate vehicles. This package only includes the game
3159 engine. When you start it you will be prompted to download a graphics set.")
3160 (home-page "https://www.openttd.org/")
3161 ;; This package is GPLv2, except for a few files located in
3162 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
3163 ;; licenses. In addition, this software contains an in-game downloader
3164 ;; from which the user may find non-functional data licensed under
3165 ;; different terms.
3166 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
3167
3168 (define openttd-opengfx
3169 (package
3170 (name "openttd-opengfx")
3171 (version "0.6.0")
3172 (source
3173 (origin
3174 (method url-fetch)
3175 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
3176 version "/opengfx-" version "-source.tar.xz"))
3177 (sha256
3178 (base32
3179 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
3180 (build-system gnu-build-system)
3181 (arguments
3182 '(#:make-flags (list "CC=gcc"
3183 (string-append "INSTALL_DIR="
3184 (assoc-ref %outputs "out")
3185 "/share/games/openttd/baseset/opengfx"))
3186 #:phases
3187 (modify-phases %standard-phases
3188 (replace 'configure
3189 (lambda _
3190 ;; Make sure HOME is writable for GIMP.
3191 (setenv "HOME" (getcwd))
3192
3193 ;; Redirect stdout, not stderr, to /dev/null. This prevents
3194 ;; dos2unix from receiving its version information as a flag.
3195 (substitute* "Makefile"
3196 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
3197 "$(UNIX2DOS) -q --version 1>/dev/null")))))
3198 ;; The check phase for this package only checks the md5sums of the built
3199 ;; GRF files against the md5sums of the release versions. Because we use
3200 ;; different software versions than upstream does, some of the md5sums
3201 ;; are different. However, the package is still reproducible, it's safe
3202 ;; to disable this test.
3203 #:tests? #f
3204 #:parallel-build? #f))
3205 (native-inputs `(("dos2unix" ,dos2unix)
3206 ("gimp" ,gimp)
3207 ("grfcodec" ,grfcodec)
3208 ("nml" ,nml)
3209 ("which" ,which)
3210 ("python" ,python-2)))
3211 (home-page "http://dev.openttdcoop.org/projects/opengfx")
3212 (synopsis "Base graphics set for OpenTTD")
3213 (description
3214 "The OpenGFX projects is an implementation of the OpenTTD base grahics
3215 set that aims to ensure the best possible out-of-the-box experience.
3216
3217 OpenGFX provides you with...
3218 @enumerate
3219 @item All graphics you need to enjoy OpenTTD.
3220 @item Uniquely drawn rail vehicles for every climate.
3221 @item Completely snow-aware rivers.
3222 @item Different river and sea water.
3223 @item Snow-aware buoys.
3224 @end enumerate")
3225 (license license:gpl2)))
3226
3227 (define openttd-opensfx
3228 (package
3229 (name "openttd-opensfx")
3230 (version "0.2.3")
3231 (source
3232 (origin
3233 (method url-fetch)
3234 (uri (string-append
3235 "https://binaries.openttd.org/extra/opensfx/"
3236 version "/opensfx-" version "-source.tar.gz"))
3237 (sha256
3238 (base32
3239 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
3240 (build-system gnu-build-system)
3241 (native-inputs
3242 `(("catcodec" ,catcodec)
3243 ("python" ,python-2)))
3244 (arguments
3245 `(#:make-flags
3246 (list (string-append "INSTALL_DIR=" %output
3247 "/share/games/openttd/baseset/opensfx"))
3248 #:phases
3249 (modify-phases %standard-phases
3250 (add-after 'unpack 'make-reproducible
3251 (lambda _
3252 ;; Remove the time dependency of the installed tarball by setting
3253 ;; the modification times if its members to 0.
3254 (substitute* "scripts/Makefile.def"
3255 (("-cf") " --mtime=@0 -cf"))
3256 #t))
3257 (delete 'configure))))
3258 (home-page "http://dev.openttdcoop.org/projects/opensfx")
3259 (synopsis "Base sounds for OpenTTD")
3260 (description "OpenSFX is a set of free base sounds for OpenTTD which make
3261 it possible to play OpenTTD without requiring the proprietary sound files from
3262 the original Transport Tycoon Deluxe.")
3263 (license license:cc-sampling-plus-1.0)))
3264
3265 (define openttd-openmsx
3266 (package
3267 (name "openttd-openmsx")
3268 (version "0.3.1")
3269 (source
3270 (origin
3271 (method url-fetch)
3272 (uri (string-append
3273 "https://binaries.openttd.org/extra/openmsx/"
3274 version "/openmsx-" version "-source.tar.gz"))
3275 (sha256
3276 (base32
3277 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
3278 (build-system gnu-build-system)
3279 (native-inputs
3280 `(("python" ,python-2)))
3281 (arguments
3282 `(#:make-flags
3283 (list (string-append "INSTALL_DIR=" %output
3284 "/share/games/openttd/baseset"))
3285 #:phases
3286 (modify-phases %standard-phases
3287 (delete 'configure)
3288 (add-after 'install 'post-install
3289 ;; Rename openmsx-version to openmsx
3290 (lambda* (#:key outputs #:allow-other-keys)
3291 (let ((install-directory (string-append (assoc-ref outputs "out")
3292 "/share/games/openttd/baseset")))
3293 (rename-file (string-append install-directory "/openmsx-" ,version)
3294 (string-append install-directory "/openmsx"))
3295 #t))))))
3296 (home-page "http://dev.openttdcoop.org/projects/openmsx")
3297 (synopsis "Music set for OpenTTD")
3298 (description "OpenMSX is a music set for OpenTTD which makes it possible
3299 to play OpenTTD without requiring the proprietary music from the original
3300 Transport Tycoon Deluxe.")
3301 (license license:gpl2)))
3302
3303 (define-public openttd
3304 (package
3305 (inherit openttd-engine)
3306 (name "openttd")
3307 (arguments
3308 `(#:configure-flags
3309 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
3310 "/bin/timidity"))
3311 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
3312 ((#:phases phases)
3313 `(modify-phases ,phases
3314 (add-after 'install 'install-data
3315 (lambda* (#:key inputs outputs #:allow-other-keys)
3316 (for-each
3317 (lambda (input)
3318 (copy-recursively (assoc-ref inputs input)
3319 (assoc-ref outputs "out")))
3320 (list "opengfx" "openmsx" "opensfx"))
3321 #t)))))))
3322 (inputs
3323 `(("timidity++" ,timidity++)
3324 ,@(package-inputs openttd-engine)))
3325 (native-inputs
3326 `(("opengfx" ,openttd-opengfx)
3327 ("openmsx" ,openttd-openmsx)
3328 ("opensfx" ,openttd-opensfx)
3329 ,@(package-native-inputs openttd-engine)))))
3330
3331 (define openrct2-title-sequences
3332 (package
3333 (name "openrct2-title-sequences")
3334 (version "0.1.2")
3335 (source
3336 (origin
3337 (method url-fetch)
3338 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
3339 version "/title-sequence-v" version ".zip"))
3340 (file-name (string-append name "-" version ".zip"))
3341 (sha256
3342 (base32
3343 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
3344 (build-system trivial-build-system)
3345 (native-inputs
3346 `(("bash" ,bash)
3347 ("coreutils" ,coreutils)
3348 ("unzip" ,unzip)))
3349 (arguments
3350 `(#:modules ((guix build utils))
3351 #:builder
3352 (begin
3353 (use-modules (guix build utils))
3354 (let* ((out (assoc-ref %outputs "out"))
3355 (openrct2-title-sequences (string-append out
3356 "/share/openrct2/title-sequences"))
3357 (source (assoc-ref %build-inputs "source"))
3358 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
3359 (copy-file source (string-append ,name "-" ,version ".zip"))
3360 (invoke unzip (string-append ,name "-" ,version ".zip"))
3361 (delete-file (string-append ,name "-" ,version ".zip"))
3362 (mkdir-p openrct2-title-sequences)
3363 (copy-recursively "."
3364 openrct2-title-sequences)
3365 #t))))
3366 (home-page "https://github.com/OpenRCT2/OpenRCT2")
3367 (synopsis "Title sequences for OpenRCT2")
3368 (description
3369 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
3370 (license license:gpl3+)))
3371
3372 (define openrct2-objects
3373 (package
3374 (name "openrct2-objects")
3375 (version "1.0.9")
3376 (source
3377 (origin
3378 (method url-fetch)
3379 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
3380 version "/objects.zip"))
3381 (file-name (string-append name "-" version ".zip"))
3382 (sha256
3383 (base32 "02apb8h553m7d6jvysgb1zahvxc1yzyygfca2iclb21b3fhpsas4"))))
3384 (build-system trivial-build-system)
3385 (native-inputs
3386 `(("bash" ,bash)
3387 ("coreutils" ,coreutils)
3388 ("unzip" ,unzip)))
3389 (arguments
3390 `(#:modules ((guix build utils))
3391 #:builder
3392 (begin
3393 (use-modules (guix build utils))
3394 (let* ((out (assoc-ref %outputs "out"))
3395 (openrct2-objects (string-append out
3396 "/share/openrct2/objects"))
3397 (source (assoc-ref %build-inputs "source"))
3398 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
3399 (copy-file source (string-append ,name "-" ,version ".zip"))
3400 (invoke unzip (string-append ,name "-" ,version ".zip"))
3401 (delete-file (string-append ,name "-" ,version ".zip"))
3402 (mkdir-p openrct2-objects)
3403 (copy-recursively "."
3404 openrct2-objects)
3405 #t))))
3406 (home-page "https://github.com/OpenRCT2/OpenRCT2")
3407 (synopsis "Objects for OpenRCT2")
3408 (description
3409 "openrct2-objects is a set of objects for OpenRCT2.")
3410 (license license:gpl3+)))
3411
3412 (define-public openrct2
3413 (package
3414 (name "openrct2")
3415 (version "0.2.6")
3416 (source
3417 (origin
3418 (method git-fetch)
3419 (uri (git-reference
3420 (url "https://github.com/OpenRCT2/OpenRCT2.git")
3421 (commit (string-append "v" version))))
3422 (file-name (git-file-name name version))
3423 (sha256
3424 (base32 "1vikbkg3wh5ngzdfilb6irbh6nqinf138qpdz8wz9izlvl8s36k4"))))
3425 (build-system cmake-build-system)
3426 (arguments
3427 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
3428 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
3429 #:tests? #f ; tests require network access
3430 #:phases
3431 (modify-phases %standard-phases
3432 (add-after 'unpack 'fix-usr-share-paths&add-data
3433 (lambda* (#:key inputs outputs #:allow-other-keys)
3434 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
3435 (objects (assoc-ref inputs "openrct2-objects")))
3436 ;; Fix some references to /usr/share.
3437 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
3438 (("/usr/share")
3439 (string-append (assoc-ref %outputs "out") "/share")))
3440 (copy-recursively
3441 (string-append titles "/share/openrct2/title-sequences")
3442 "data/title")
3443 (copy-recursively
3444 (string-append objects "/share/openrct2/objects")
3445 "data/object"))))
3446 (add-before 'configure 'get-rid-of-errors
3447 (lambda _
3448 ;; Don't treat warnings as errors.
3449 (substitute* "CMakeLists.txt"
3450 (("-Werror") ""))
3451 #t)))))
3452 (inputs `(("curl" ,curl)
3453 ("fontconfig" ,fontconfig)
3454 ("freetype" ,freetype)
3455 ("icu4c" ,icu4c)
3456 ("jansson" ,jansson)
3457 ("libpng" ,libpng)
3458 ("libzip" ,libzip)
3459 ("mesa" ,mesa)
3460 ("openrct2-objects" ,openrct2-objects)
3461 ("openrct2-title-sequences" ,openrct2-title-sequences)
3462 ("openssl" ,openssl)
3463 ("sdl2" ,sdl2)
3464 ("speexdsp" ,speexdsp)
3465 ("zlib" ,zlib)))
3466 (native-inputs
3467 `(("pkg-config" ,pkg-config)))
3468 (home-page "https://github.com/OpenRCT2/OpenRCT2")
3469 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
3470 (description "OpenRCT2 is a free software re-implementation of
3471 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
3472 maintaining an amusement park containing attractions, shops and facilities.
3473
3474 Note that this package does @emph{not} provide the game assets (sounds,
3475 images, etc.)")
3476 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
3477 ;; regarding assets.
3478 (license license:gpl3+)))
3479
3480 (define-public pinball
3481 (package
3482 (name "pinball")
3483 (version "0.3.1")
3484 (source
3485 (origin (method url-fetch)
3486 (uri (string-append "mirror://sourceforge/pinball/pinball/"
3487 "pinball-" version "/"
3488 "pinball-" version ".tar.gz"))
3489 (sha256
3490 (base32
3491 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
3492 (patches (search-patches "pinball-const-fix.patch"
3493 "pinball-cstddef.patch"
3494 "pinball-missing-separators.patch"
3495 "pinball-src-deps.patch"
3496 "pinball-system-ltdl.patch"))))
3497 (build-system gnu-build-system)
3498 (inputs
3499 `(("glu" ,glu)
3500 ("mesa" ,mesa)
3501 ("sdl" ,sdl)
3502 ("sdl-image" ,sdl-image)
3503 ("sdl-mixer" ,sdl-mixer)))
3504 (arguments
3505 '(#:configure-flags
3506 (list (string-append "CPPFLAGS=-I"
3507 (assoc-ref %build-inputs "sdl-image")
3508 "/include/SDL -I"
3509 (assoc-ref %build-inputs "sdl-mixer")
3510 "/include/SDL"))))
3511 (home-page "http://pinball.sourceforge.net")
3512 (synopsis "Pinball simulator")
3513 (description "The Emilia Pinball Project is a pinball simulator. There
3514 are only two levels to play with, but they are very addictive.")
3515 (license license:gpl2)))
3516
3517 (define-public pioneers
3518 (package
3519 (name "pioneers")
3520 (version "15.5")
3521 (source (origin
3522 (method url-fetch)
3523 (uri (string-append "http://downloads.sourceforge.net/pio/"
3524 "pioneers-" version ".tar.gz"))
3525 (sha256
3526 (base32
3527 "037gdiiw690jw3wd1s9lxmkqx0caxyk0b4drpm7i9p28gig43q9y"))))
3528 (build-system gnu-build-system)
3529 (inputs `(("avahi" ,avahi)
3530 ("gtk+" ,gtk+)
3531 ("librsvg" ,librsvg)))
3532 (native-inputs `(("intltool" ,intltool)
3533 ("itstool" ,itstool)
3534 ("libxml2" ,libxml2)
3535 ("pkg-config" ,pkg-config)))
3536 (synopsis "Board game inspired by The Settlers of Catan")
3537 (description "Pioneers is an emulation of the board game The Settlers of
3538 Catan. It can be played on a local network, on the internet, and with AI
3539 players.")
3540 (home-page "http://pio.sourceforge.net/")
3541 (license license:gpl2+)))
3542
3543 (define-public einstein
3544 (package
3545 (name "einstein")
3546 (version "2.0")
3547 (source (origin
3548 (method url-fetch)
3549 (uri (string-append "mirror://debian/pool/main/e/"
3550 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
3551 (sha256
3552 (base32
3553 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
3554 (patches (search-patches "einstein-build.patch"))))
3555 (build-system gnu-build-system)
3556 (inputs
3557 `(("freetype" ,freetype)
3558 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
3559 ("zlib" ,zlib)))
3560 (native-inputs
3561 `(("font-dejavu" ,font-dejavu)))
3562 (arguments
3563 `(#:tests? #f ; no check target
3564 #:phases
3565 (modify-phases %standard-phases
3566 (replace 'configure
3567 (lambda* (#:key outputs inputs #:allow-other-keys)
3568 (let ((out (assoc-ref outputs "out"))
3569 (dejavu (string-append (assoc-ref inputs "font-dejavu")
3570 "/share/fonts/truetype/DejaVuSans.ttf")))
3571 (substitute* "Makefile"
3572 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
3573 ;; The patch above registers a free font for use by the binary,
3574 ;; but the font is copied during the compile phase into a
3575 ;; resources file, so we need to make the ttf file available.
3576 (symlink dejavu "res/DejaVuSans.ttf")
3577 #t))))))
3578 (synopsis "Logic puzzle game")
3579 (description "The goal of this logic game is to open all cards in a 6x6
3580 grid, using a number of hints as to their relative position. The game idea
3581 is attributed to Albert Einstein.")
3582 ;; The original home page has disappeared.
3583 (home-page (string-append "http://web.archive.org/web/20120521062745/"
3584 "http://games.flowix.com/en/index.html"))
3585 ;; License according to
3586 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
3587 ;; The source code is a DFSG-sanitized tarball and does not contain any
3588 ;; license information.
3589 (license license:gpl3+)))
3590
3591 (define-public powwow
3592 (package
3593 (name "powwow")
3594 (version "1.2.19")
3595 (source (origin
3596 (method url-fetch)
3597 (uri (string-append
3598 "https://www.hoopajoo.net/static/projects/powwow-"
3599 version ".tar.gz"))
3600 (sha256
3601 (base32
3602 "10rjl63hmf62qslyhzqrbw3i2zf09dgxv65avhj0iiz0m4pbc9wy"))))
3603 (inputs
3604 `(("ncurses" ,ncurses)))
3605 (build-system gnu-build-system)
3606 (home-page "https://www.hoopajoo.net/projects/powwow.html")
3607 (synopsis "MUD and telnet client")
3608 (description
3609 "POWWOW is a client software which can be used for telnet as well as for
3610 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
3611 the chat server psyced with the specific config located at
3612 http://lavachat.symlynx.com/unix/")
3613 (license license:gpl2+)))
3614
3615 (define-public red-eclipse
3616 (let ((release "2.0.0")
3617 (revision 0))
3618 (package
3619 (name "red-eclipse")
3620 (version (if (zero? revision)
3621 release
3622 (string-append release "-"
3623 (number->string revision))))
3624 (source
3625 (origin
3626 (method git-fetch)
3627 (uri (git-reference
3628 (url "https://github.com/redeclipse/base.git")
3629 (commit (string-append "v" release))
3630 (recursive? #t))) ; for game data
3631 (file-name (git-file-name name version))
3632 (sha256
3633 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
3634 (modules '((guix build utils)))
3635 (snippet
3636 ;; Remove proprietary libraries and other pre-compiled binaries.
3637 '(begin
3638 (delete-file-recursively "bin")
3639 #t))))
3640 (build-system gnu-build-system)
3641 (arguments
3642 `(#:tests? #f ; no check target
3643 #:make-flags (list "CC=gcc" "-Csrc"
3644 (string-append "INSTDIR="
3645 (assoc-ref %outputs "out") "/bin")
3646 (string-append "prefix="
3647 (assoc-ref %outputs "out")))
3648 #:phases
3649 (modify-phases %standard-phases
3650 (add-after 'unpack 'add-store-data-package-path-as-default
3651 (lambda* (#:key outputs #:allow-other-keys)
3652 (substitute* "src/engine/server.cpp"
3653 (("data = \"data\"")
3654 (string-append "data = \""
3655 (assoc-ref outputs "out")
3656 "/share/redeclipse/data\"")))
3657 #t))
3658 (delete 'configure) ; no configure script
3659 (add-after 'set-paths 'set-sdl-paths
3660 (lambda* (#:key inputs #:allow-other-keys)
3661 (setenv "CPATH"
3662 (string-append (assoc-ref inputs "sdl-union")
3663 "/include/SDL2:"
3664 (or (getenv "CPATH") "")))
3665 #t))
3666 (add-after 'install 'copy-data
3667 (lambda* (#:key outputs #:allow-other-keys)
3668 (let ((out (assoc-ref outputs "out")))
3669 (copy-recursively "config"
3670 (string-append out "/config"))
3671 (copy-file "doc/examples/servinit.cfg"
3672 (string-append out "/config/servinit.cfg"))
3673 (copy-recursively "data"
3674 (string-append out "/share/redeclipse/data"))
3675 (mkdir-p (string-append out "/lib/redeclipse"))
3676 (symlink (string-append out "/share/redeclipse/data")
3677 (string-append out "/lib/redeclipse/data")))
3678 #t))
3679 (add-after 'copy-data 'wrap-program
3680 (lambda* (#:key inputs outputs #:allow-other-keys)
3681 (let* ((out (assoc-ref outputs "out"))
3682 (bin (string-append out "/bin")))
3683 (with-directory-excursion bin
3684 (rename-file "redeclipse_linux"
3685 ".redeclipse_linux-real")
3686 (rename-file "redeclipse_server_linux"
3687 ".redeclipse_server_linux-real")
3688 (call-with-output-file "redeclipse_linux"
3689 (lambda (port)
3690 (format port "#!~a/bin/sh
3691 # Run the thing from its home, otherwise it just bails out.
3692 cd \"~a\"
3693 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
3694 (assoc-ref inputs "bash") ;implicit input
3695 (string-append out)
3696 (string-append bin))))
3697 (call-with-output-file "redeclipse_server_linux"
3698 (lambda (port)
3699 (format port "#!~a/bin/sh
3700 # Run the thing from its home, otherwise it just bails out.
3701 cd \"~a\"
3702 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
3703 (assoc-ref inputs "bash") ;implicit input
3704 (string-append out)
3705 (string-append bin))))
3706 (chmod "redeclipse_linux" #o555)
3707 (chmod "redeclipse_server_linux" #o555)))
3708 #t)))))
3709 (native-inputs
3710 `(("pkg-config" ,pkg-config)))
3711 (inputs
3712 `(("curl" ,curl)
3713 ("freetype" ,freetype)
3714 ("glu" ,glu)
3715 ("sdl-union" ,(sdl-union (list sdl2
3716 sdl2-image
3717 sdl2-mixer)))))
3718 (home-page "https://redeclipse.net/")
3719 (synopsis "Arena shooter derived from the Cube 2 engine")
3720 (description
3721 "Red Eclipse is an arena shooter, created from the Cube2 engine.
3722 Offering an innovative parkour system and distinct but all potent weapons,
3723 Red Eclipse provides fast paced and accessible gameplay.")
3724 ;; The engine is under Zlib; data files are covered by the other
3725 ;; licenses. More details at file:///doc/all-licenses.txt.
3726 (license (list license:expat
3727 license:zlib
3728 license:cc-by-sa4.0
3729 license:cc-by-sa3.0
3730 license:cc-by3.0
3731 license:cc0
3732 license:public-domain
3733 license:silofl1.1)))))
3734
3735 (define-public grue-hunter
3736 (package
3737 (name "grue-hunter")
3738 (version "1.0")
3739 (source (origin
3740 (method url-fetch)
3741 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
3742 (sha256
3743 (base32
3744 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
3745 (build-system trivial-build-system) ; no Makefile.PL
3746 (arguments `(#:modules ((guix build utils))
3747 #:builder
3748 (begin
3749 (use-modules (guix build utils))
3750 (use-modules (srfi srfi-1))
3751
3752 (let* ((tarball (assoc-ref %build-inputs "tarball"))
3753 (perl (string-append (assoc-ref %build-inputs
3754 "perl")
3755 "/bin"))
3756 (gzip (string-append (assoc-ref %build-inputs
3757 "gzip")
3758 "/bin/gzip"))
3759 (tar (string-append (assoc-ref %build-inputs
3760 "tar")
3761 "/bin/tar"))
3762 (out (assoc-ref %outputs "out"))
3763 (bin (string-append out "/bin"))
3764 (doc (string-append out
3765 "/share/doc/grue-hunter")))
3766 (copy-file tarball "grue-hunter.tar.gz")
3767 (invoke gzip "-d" "grue-hunter.tar.gz")
3768 (invoke tar "xvf" "grue-hunter.tar")
3769
3770 (mkdir-p bin)
3771 (copy-file "grue-hunter/gh.pl"
3772 (string-append bin "/grue-hunter"))
3773 (patch-shebang (string-append bin "/grue-hunter")
3774 (list perl))
3775
3776 (install-file "grue-hunter/AGPLv3.txt" doc)
3777
3778 #t))))
3779 (inputs `(("perl" ,perl)
3780 ("tar" ,tar)
3781 ("gzip" ,gzip)
3782 ("tarball" ,source)))
3783 (home-page "https://jxself.org/grue-hunter.shtml")
3784 (synopsis "Text adventure game")
3785 (description
3786 "Grue Hunter is a text adventure game written in Perl. You must make
3787 your way through an underground cave system in search of the Grue. Can you
3788 capture it and get out alive?")
3789 (license license:agpl3+)))
3790
3791 (define-public lierolibre
3792 (package
3793 (name "lierolibre")
3794 (version "0.5")
3795 (source (origin
3796 (method url-fetch)
3797 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
3798 version "/+download/lierolibre-"
3799 version ".tar.xz"))
3800 (sha256
3801 (base32
3802 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
3803 (patches
3804 (search-patches "lierolibre-check-unaligned-access.patch"
3805 "lierolibre-try-building-other-arch.patch"
3806 "lierolibre-remove-arch-warning.patch"
3807 "lierolibre-newer-libconfig.patch"
3808 "lierolibre-is-free-software.patch"))
3809 (modules '((guix build utils)))
3810 (snippet
3811 '(begin
3812 ;; Delete pre-compiled files.
3813 (delete-file "data/LIERO.CHR")
3814 (delete-file "data/LIERO.SND")
3815 #t))))
3816 (build-system gnu-build-system)
3817 (native-inputs
3818 `(("imagemagick" ,imagemagick)
3819 ("pkg-config" ,pkg-config)
3820 ("util-linux" ,util-linux)
3821 ("sox" ,sox)))
3822 (inputs
3823 `(("boost" ,boost)
3824 ("libconfig" ,libconfig)
3825 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
3826 ("zlib" ,zlib)))
3827 (home-page "https://gitlab.com/lierolibre/lierolibre")
3828 (synopsis "Old-school earthworm action game")
3829 (description
3830 "lierolibre is an earthworm action game where you fight another player
3831 (or the computer) underground using a wide array of weapons.
3832
3833 Features:
3834 @itemize
3835 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
3836 and Game of Tag, plus AI-players without true intelligence!
3837 @item Dat nostalgia.
3838 @item Extensions via a hidden F1 menu:
3839 @itemize
3840 @item Replays
3841 @item Game controller support
3842 @item Powerlevel palettes
3843 @end itemize
3844 @item Ability to write game variables to plain text files.
3845 @item Ability to load game variables from both EXE and plain text files.
3846 @item Scripts to extract and repack graphics, sounds and levels.
3847 @end itemize
3848
3849 To switch between different window sizes, use F6, F7 and F8, to switch to
3850 fullscreen, use F5 or Alt+Enter.")
3851 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
3852 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
3853
3854 (define-public tennix
3855 (package
3856 (name "tennix")
3857 (version "1.3.1")
3858 (source
3859 (origin
3860 (method git-fetch)
3861 (uri (git-reference
3862 (url "https://repo.or.cz/tennix.git")
3863 (commit (string-append "tennix-" version))))
3864 (file-name (git-file-name name version))
3865 (sha256
3866 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
3867 ;; Remove non-free images.
3868 (modules '((guix build utils)))
3869 (snippet
3870 '(begin
3871 (for-each delete-file
3872 '("data/loc_training_camp.png"
3873 "data/loc_austrian_open.png"
3874 "data/loc_olympic_green_tennis.png"))
3875 #t))))
3876 (build-system gnu-build-system)
3877 (arguments
3878 `(#:tests? #f ;no test
3879 #:phases
3880 (modify-phases %standard-phases
3881 (add-after 'unpack 'fix-include
3882 (lambda _
3883 (substitute* '("src/graphics.h" "src/sound.h")
3884 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
3885 (string-append "#include \"SDL/" header "\"")))
3886 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
3887 (("#include <SDL.h>") "#include <SDL/SDL.h>")
3888 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
3889 #t))
3890 (add-after 'unpack 'locate-install
3891 ;; Build process cannot expand "$(INSTALL)" in Makefile.
3892 (lambda _
3893 (substitute* "makefile"
3894 (("^CONFIGURE_OUTPUT :=.*" all)
3895 (string-append "INSTALL := install -c\n" all)))
3896 #t))
3897 (replace 'configure
3898 ;; The "configure" script is picky about the arguments it
3899 ;; gets. Call it ourselves.
3900 (lambda _
3901 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
3902 (native-inputs
3903 `(("which" ,which)))
3904 (inputs
3905 `(("python" ,python-wrapper)
3906 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
3907 (home-page "http://icculus.org/tennix/")
3908 (synopsis "Play tennis against the computer or a friend")
3909 (description "Tennix is a 2D tennis game. You can play against the
3910 computer or against another player using the keyboard. The game runs
3911 in-window at 640x480 resolution or fullscreen.")
3912 ;; Project is licensed under GPL2+ terms. It includes images
3913 ;; released under Public Domain terms, and SDL_rotozoom, released
3914 ;; under LGPL2.1 terms.
3915 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
3916
3917 (define-public warzone2100
3918 (package
3919 (name "warzone2100")
3920 (version "3.2.3")
3921 (source
3922 (origin
3923 (method url-fetch)
3924 (uri (string-append "mirror://sourceforge/warzone2100/archives/"
3925 "unsupported/Warzone2100-"
3926 (version-major+minor version) "/" version
3927 "/warzone2100-" version ".tar.xz"))
3928 (sha256
3929 (base32 "10kmpr4cby95zwqsl1zwx95d9achli6khq7flv6xmrq30a39xazw"))))
3930 (build-system gnu-build-system)
3931 (arguments
3932 `(#:configure-flags '("--with-distributor=Guix")
3933 #:phases
3934 (modify-phases %standard-phases
3935 (add-after 'unpack 'link-tests-with-qt
3936 (lambda _
3937 (substitute* "tests/Makefile.in"
3938 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
3939 (string-append prefix "$(QT5_LIBS) ")))
3940 #t))
3941 (add-after 'unpack 'fix-ivis-linktest
3942 (lambda _
3943 (substitute* "tests/ivis_linktest.cpp"
3944 (("iV_DrawTextRotated.*;")
3945 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
3946 "100, 100, 0.0f, font_regular);")))
3947 #t)))))
3948 (native-inputs `(("gettext" ,gettext-minimal)
3949 ("pkg-config" ,pkg-config)
3950 ("unzip" ,unzip)
3951 ("zip" ,zip)))
3952 (inputs `(("fontconfig" ,fontconfig)
3953 ("freetype" ,freetype)
3954 ("fribidi" ,fribidi)
3955 ("glew" ,glew)
3956 ("harfbuzz" ,harfbuzz)
3957 ("libtheora" ,libtheora)
3958 ("libvorbis" ,libvorbis)
3959 ("libxrandr" ,libxrandr)
3960 ("openal" ,openal)
3961 ("physfs" ,physfs)
3962 ("qtbase" ,qtbase)
3963 ("qtscript" ,qtscript)
3964 ("openssl" ,openssl)
3965 ("sdl2" ,sdl2)))
3966 (home-page "https://wz2100.net")
3967 (synopsis "3D Real-time strategy and real-time tactics game")
3968 (description
3969 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
3970 modes. An extensive tech tree with over 400 different technologies, combined
3971 with the unit design system, allows for a wide variety of possible units and
3972 tactics.")
3973 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
3974 (license (list license:bsd-3
3975 license:cc0
3976 license:cc-by-sa3.0
3977 license:expat
3978 license:gpl2+
3979 license:lgpl2.1+))))
3980
3981 (define-public starfighter
3982 (package
3983 (name "starfighter")
3984 (version "2.0.0.3")
3985 (source (origin
3986 (method url-fetch)
3987 (uri (string-append
3988 "https://github.com/pr-starfighter/starfighter/releases"
3989 "/download/v" version "/starfighter-"
3990 (version-major+minor version) "-src.tar.gz"))
3991 (sha256
3992 (base32
3993 "13vi5kh9ahws4f52421cbyw0jn7pmbnld358lqfmr6flql7ilj3b"))))
3994 (build-system gnu-build-system)
3995 (native-inputs
3996 `(("pkg-config" ,pkg-config)))
3997 (inputs
3998 `(("pango" ,pango)
3999 ("sdl2" ,sdl2)
4000 ("sdl2-image" ,sdl2-image)
4001 ("sdl2-mixer" ,sdl2-mixer)
4002 ("sdl2-ttf" ,sdl2-ttf)))
4003 (home-page "https://pr-starfighter.github.io/")
4004 (synopsis "2D scrolling shooter game")
4005 (description
4006 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
4007 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
4008 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
4009 way, you will encounter new foes, make new allies, and assist local rebels
4010 in strikes against the evil corporation.")
4011 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
4012 (license (list license:gpl3+
4013 license:cc-by3.0
4014 license:cc-by-sa3.0
4015 license:cc0
4016 license:public-domain))))
4017
4018 (define-public chromium-bsu
4019 (package
4020 (name "chromium-bsu")
4021 (version "0.9.16.1")
4022 (source (origin
4023 (method url-fetch)
4024 (uri (string-append "mirror://sourceforge/chromium-bsu"
4025 "/Chromium B.S.U. source code/"
4026 "chromium-bsu-" version ".tar.gz"))
4027 (sha256
4028 (base32
4029 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
4030 (build-system gnu-build-system)
4031 (native-inputs `(("pkg-config" ,pkg-config)))
4032 (inputs `(("gettext" ,gettext-minimal)
4033 ("glu" ,glu)
4034 ("quesoglc" ,quesoglc)
4035 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
4036 (home-page "http://chromium-bsu.sourceforge.net/")
4037 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
4038 (description
4039 "In this game you are the captain of the cargo ship Chromium B.S.U. and
4040 are responsible for delivering supplies to the troops on the front line. Your
4041 ship has a small fleet of robotic fighters which you control from the relative
4042 safety of the Chromium vessel.")
4043 ;; Clarified Artistic License for everything but sound, which is covered
4044 ;; by the Expat License.
4045 (license (list license:clarified-artistic license:expat))))
4046
4047 (define-public tuxpaint
4048 (package
4049 (name "tuxpaint")
4050 (version "0.9.23") ;keep VER_DATE below in sync
4051 (source
4052 (origin
4053 (method url-fetch)
4054 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
4055 version "/tuxpaint-" version ".tar.gz"))
4056 (sha256
4057 (base32
4058 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
4059 (modules '((guix build utils)))
4060 (snippet
4061 '(begin
4062 ;; Remove win32 directory which contains binary dll's and the
4063 ;; deprecated visualc directory.
4064 (for-each delete-file-recursively '("win32" "visualc"))
4065 (substitute* "Makefile"
4066 ;; Do not rely on $(GPERF) being an absolute file name
4067 (("\\[ -x \\$\\(GPERF\\) \\]")
4068 "$(GPERF) --version >/dev/null 2>&1"))
4069 #t))
4070 (patches (search-patches "tuxpaint-stamps-path.patch"))))
4071 (build-system gnu-build-system)
4072 (native-inputs
4073 `(("gperf" ,gperf)
4074 ("pkg-config" ,pkg-config)))
4075 (inputs
4076 `(("cairo" ,cairo)
4077 ("fribidi" ,fribidi)
4078 ("gettext" ,gettext-minimal)
4079 ("libpng" ,libpng)
4080 ("librsvg" ,librsvg)
4081 ("libpaper" ,libpaper)
4082 ("netpbm" ,netpbm)
4083 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
4084 ;; TODO: Use system fonts rather than those in data/fonts
4085 (arguments
4086 `(#:make-flags `("VER_DATE=2018-09-02"
4087 "GPERF=gperf" "CC=gcc"
4088 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
4089 ,(string-append "PREFIX=" %output)
4090 "KDE_PREFIX=$(PREFIX)/share/applications"
4091 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
4092 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
4093 #:parallel-build? #f ;fails on some systems
4094 #:tests? #f ;No tests
4095 #:phases (modify-phases %standard-phases
4096 (delete 'configure) ;no configure phase
4097 (add-before 'install 'no-sys-cache
4098 (lambda _ ;do not rebuild system conf cache
4099 (substitute* "Makefile"
4100 (("kbuildsycoca4") ""))
4101 #t))
4102 (add-after 'install 'fix-import
4103 (lambda* (#:key inputs outputs #:allow-other-keys)
4104 (let* ((out (assoc-ref outputs "out"))
4105 (net (assoc-ref inputs "netpbm"))
4106 (tpi (string-append out "/bin/tuxpaint-import")))
4107 (substitute* tpi
4108 ;; Point to installation prefix so that the default
4109 ;; configure file is found.
4110 (("/usr/local") out))
4111 ;; tuxpaint-import uses a bunch of programs from
4112 ;; netpbm, so make sure it knows where those are
4113 (wrap-program tpi
4114 `("PATH" ":" prefix
4115 (,(string-append net "/bin"))))))))))
4116 (native-search-paths
4117 (list (search-path-specification
4118 (variable "TUXPAINT_STAMPS_PATH")
4119 (files '("share/tuxpaint/stamps")))))
4120 (home-page "http://www.tuxpaint.org")
4121 (synopsis "Drawing software for children")
4122 (description
4123 "Tux Paint is a free drawing program designed for young children (kids
4124 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
4125 and an encouraging cartoon mascot who helps guide children as they use the
4126 program. It provides a blank canvas and a variety of drawing tools to help
4127 your child be creative.")
4128 (license license:gpl2+)))
4129
4130 (define-public tuxpaint-stamps
4131 (package
4132 (name "tuxpaint-stamps")
4133 (version "2018.09.01")
4134 (source
4135 (origin
4136 (method url-fetch)
4137 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
4138 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
4139 "/tuxpaint-stamps-" version ".tar.gz"))
4140 (sha256
4141 (base32
4142 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
4143 (build-system trivial-build-system)
4144 (native-inputs
4145 `(("tar" ,tar)
4146 ("gzip" ,gzip)))
4147 (arguments
4148 `(#:modules ((guix build utils))
4149 #:builder (begin
4150 (use-modules (guix build utils))
4151 (setenv "PATH"
4152 (string-append
4153 (assoc-ref %build-inputs "tar") "/bin" ":"
4154 (assoc-ref %build-inputs "gzip") "/bin"))
4155 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
4156 (chdir (string-append ,name "-" ,version))
4157 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
4158 (mkdir-p dir)
4159 (copy-recursively "stamps" dir))
4160 #t)))
4161 (home-page (package-home-page tuxpaint))
4162 (synopsis "Stamp images for Tux Paint")
4163 (description
4164 "This package contains a set of \"Rubber Stamp\" images which can be used
4165 with the \"Stamp\" tool within Tux Paint.")
4166 (license license:gpl2+)))
4167
4168 (define-public tuxpaint-config
4169 (package
4170 (name "tuxpaint-config")
4171 (version "0.0.14") ;keep VER_DATE below in sync
4172 (source
4173 (origin
4174 (method url-fetch)
4175 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
4176 version "/tuxpaint-config-" version ".tar.gz"))
4177 (sha256
4178 (base32
4179 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
4180 (build-system gnu-build-system)
4181 (native-inputs
4182 `(("gettext" ,gettext-minimal)))
4183 (inputs
4184 `(("fltk" ,fltk)
4185 ("libpaper" ,libpaper)
4186 ;; TODO: Should the following be propagated by fltk?
4187 ("libx11" ,libx11)
4188 ("libxft" ,libxft)
4189 ("mesa" ,mesa)))
4190 (arguments
4191 `(#:make-flags `("VER_DATE=2018-09-01"
4192 "CONFDIR=/etc/tuxpaint" ;don't write to store
4193 ,(string-append "PREFIX=" %output)
4194 "GNOME_PREFIX=$(PREFIX)")
4195 #:parallel-build? #f ;race conditions
4196 #:tests? #f ;no tests
4197 #:phases (modify-phases %standard-phases
4198 (delete 'configure) ;no configure phase
4199 (add-before 'install 'gzip-no-name
4200 (lambda* _
4201 (substitute* "Makefile"
4202 ;; tuxpaint-config compresses its own documentation;
4203 ;; make sure it uses flags for reproducibility.
4204 (("gzip") "gzip --no-name"))))
4205 (add-before 'install 'make-install-dirs
4206 (lambda* (#:key outputs #:allow-other-keys)
4207 (let ((out (assoc-ref outputs "out")))
4208 (mkdir-p (string-append out "/bin"))
4209 #t))))))
4210 (home-page (package-home-page tuxpaint))
4211 (synopsis "Configure Tux Paint")
4212 (description
4213 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
4214 (license license:gpl2))) ;no "or later" present
4215
4216 (define-public supertux
4217 (package
4218 (name "supertux")
4219 (version "0.6.2")
4220 (source (origin
4221 (method url-fetch)
4222 (uri (string-append "https://github.com/SuperTux/supertux/"
4223 "releases/download/v" version "/SuperTux-v"
4224 version "-Source.tar.gz"))
4225 (file-name (string-append name "-" version ".tar.gz"))
4226 (sha256
4227 (base32
4228 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
4229 (patches
4230 (search-patches "supertux-unbundle-squirrel.patch"))))
4231 (arguments
4232 '(#:tests? #f
4233 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
4234 "-DUSE_SYSTEM_PHYSFS=ON")
4235 #:phases
4236 (modify-phases %standard-phases
4237 (add-after 'unpack 'patch-squirrel-path
4238 (lambda* (#:key inputs #:allow-other-keys)
4239 (let ((squirrel (assoc-ref inputs "squirrel")))
4240 (substitute* "CMakeLists.txt"
4241 (("set\\(SQUIRREL_PREFIX.*")
4242 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
4243 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
4244 (("\\$\\{SQUIRREL_PREFIX\\}/include")
4245 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
4246 #t)))))
4247 (build-system cmake-build-system)
4248 (inputs `(("sdl2" ,sdl2)
4249 ("sdl2-image" ,sdl2-image)
4250 ("sdl2-mixer" ,sdl2-mixer)
4251 ("openal" ,openal)
4252 ("mesa" ,mesa)
4253 ("glew" ,glew)
4254 ("libvorbis" ,libvorbis)
4255 ("libogg" ,libogg)
4256 ("physfs" ,physfs)
4257 ("curl" ,curl)
4258 ("boost" ,boost)
4259 ("freetype" ,freetype)
4260 ("squirrel" ,squirrel)))
4261 (native-inputs
4262 `(("pkg-config" ,pkg-config)))
4263 (synopsis "2D platformer game")
4264 (description "SuperTux is a classic 2D jump'n run sidescroller game in
4265 a style similar to the original Super Mario games.")
4266 (home-page "https://supertux.org/")
4267 (license license:gpl3+)))
4268
4269 (define-public tintin++
4270 (package
4271 (name "tintin++")
4272 (version "2.02.02")
4273 (source
4274 (origin
4275 (method url-fetch)
4276 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
4277 (string-drop-right version 1)
4278 "/tintin-" version ".tar.gz"))
4279 (sha256
4280 (base32 "11ylbp8ip7dwmh4gzb53z147pcfxkl3lwhyy8ngyn2zc634vdn65"))))
4281 (inputs
4282 `(("gnutls" ,gnutls)
4283 ("pcre" ,pcre)
4284 ("readline" ,readline)
4285 ("zlib" ,zlib)))
4286 (arguments
4287 '(#:tests? #f ; no test suite
4288 #:phases
4289 (modify-phases %standard-phases
4290 ;; The source is in tt/src.
4291 (add-before 'configure 'chdir
4292 (lambda _
4293 (chdir "src")
4294 #t)))))
4295 (build-system gnu-build-system)
4296 (home-page "https://tintin.mudhalla.net/")
4297 (synopsis "MUD client")
4298 (description
4299 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
4300 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
4301 options used by MUDs, as well as those required to login via telnet on
4302 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
4303 (license license:gpl3+)))
4304
4305 (define-public laby
4306 (package
4307 (name "laby")
4308 (version "0.6.4")
4309 (source
4310 (origin (method git-fetch)
4311 (uri (git-reference
4312 (url "https://github.com/sgimenez/laby.git")
4313 (commit (string-append name "-" version))))
4314 (file-name (git-file-name name version))
4315 (sha256
4316 (base32
4317 "12fq9hhrxpzgfinmj9ra9ckss9yficwdlrmgjvvsq7agvh3sgyl1"))
4318 (patches (search-patches "laby-make-install.patch"))))
4319 (build-system gnu-build-system)
4320 (inputs
4321 `(("lablgtk" ,lablgtk)
4322 ("ocaml" ,ocaml)
4323 ("ocaml-findlib" ,ocaml-findlib)
4324 ("ocamlbuild" ,ocamlbuild)))
4325 (arguments
4326 '(#:phases
4327 (modify-phases %standard-phases
4328 (delete 'configure)
4329 (add-before 'build 'allow-unsafe-strings
4330 ;; Fix a build failure with ocaml >=4.06.0.
4331 ;; See <https://github.com/sgimenez/laby/issues/53>.
4332 (lambda _
4333 (setenv "OCAMLPARAM" "safe-string=0,_")
4334 #t))
4335 (add-before 'build 'set-library-path
4336 (lambda* (#:key inputs #:allow-other-keys)
4337 (let ((lablgtk (assoc-ref inputs "lablgtk")))
4338 (setenv "LD_LIBRARY_PATH"
4339 (string-append lablgtk "/lib/ocaml/stublibs"))))))
4340 #:tests? #f ; no 'check' target
4341 #:make-flags
4342 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
4343 (home-page "https://sgimenez.github.io/laby/")
4344 (synopsis "Programming game")
4345 (description "Learn programming, playing with ants and spider webs ;-)
4346 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
4347 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
4348 programmers may also add their own favorite language.")
4349 (license license:gpl3+)))
4350
4351 (define-public bambam
4352 (package
4353 (name "bambam")
4354 (version "1.0.0")
4355 (source
4356 (origin
4357 (method git-fetch)
4358 (uri (git-reference
4359 (url "https://github.com/porridge/bambam")
4360 (commit (string-append "v" version))))
4361 (file-name (git-file-name name version))
4362 (sha256
4363 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
4364 (build-system python-build-system)
4365 (arguments
4366 `(#:tests? #f ; no tests
4367 #:phases
4368 (modify-phases %standard-phases
4369 (delete 'build) ; nothing to build
4370 (replace 'install
4371 (lambda* (#:key outputs #:allow-other-keys)
4372 (let* ((out (assoc-ref outputs "out"))
4373 (bin (string-append out "/bin"))
4374 (share (string-append out "/share")))
4375 (mkdir-p bin)
4376 (copy-file "bambam.py" (string-append bin "/bambam"))
4377 (install-file "bambam.6" (string-append share "/man/man6"))
4378 (copy-recursively "data" (string-append share "/bambam/data")))
4379 #t)))))
4380 (inputs
4381 `(("python-pygame" ,python-pygame)))
4382 (home-page "https://github.com/porridge/bambam")
4383 (synopsis "Keyboard mashing and doodling game for babies")
4384 (description "Bambam is a simple baby keyboard (and gamepad) masher
4385 application that locks the keyboard and mouse and instead displays bright
4386 colors, pictures, and sounds.")
4387 (license license:gpl3+)))
4388
4389 (define-public mrrescue
4390 (package
4391 (name "mrrescue")
4392 (version "1.02e")
4393 (source (origin
4394 (method url-fetch)
4395 (uri (string-append
4396 "https://github.com/SimonLarsen/mrrescue/releases/"
4397 "download/" version "/mrrescue" version ".love"))
4398 (file-name (string-append name "-" version ".love"))
4399 (sha256
4400 (base32
4401 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
4402 (build-system trivial-build-system)
4403 (arguments
4404 `(#:modules ((guix build utils))
4405 #:builder
4406 (begin
4407 (use-modules (guix build utils))
4408 (let* ((out (assoc-ref %outputs "out"))
4409 (script (string-append out "/bin/" ,name))
4410 (data (string-append out "/share/" ,name))
4411 (source (assoc-ref %build-inputs "source"))
4412 (unzip (string-append (assoc-ref %build-inputs "unzip")
4413 "/bin/unzip"))
4414 (patch (string-append (assoc-ref %build-inputs "patch")
4415 "/bin/patch"))
4416 (bash (string-append (assoc-ref %build-inputs "bash")
4417 "/bin/bash"))
4418 (love (string-append (assoc-ref %build-inputs "love")
4419 "/bin/love")))
4420
4421 (mkdir-p (dirname script))
4422 (with-output-to-file script
4423 (lambda ()
4424 (format #t "#!~a~%" bash)
4425 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
4426 (chmod script #o755)
4427
4428 ;; The better way to package this game would be to install *only* the
4429 ;; script above, pointing to the unextracted .love file in the store.
4430 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
4431 ;; Instead of extracting the .love file, patching it, and re-zipping
4432 ;; it to the store, simply point the script to the extracted patched
4433 ;; data directory directly.
4434 (mkdir-p data)
4435 (with-directory-excursion data
4436 (invoke unzip source)
4437 (invoke patch "-p1" "-i"
4438 (assoc-ref %build-inputs "love-11.patch")))
4439 #t))))
4440 (native-inputs
4441 `(("unzip" ,unzip)
4442 ("patch" ,patch)
4443 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
4444 (inputs
4445 `(("bash" ,bash)
4446 ("love" ,love)))
4447 (home-page "https://tangramgames.dk/games/mrrescue")
4448 (synopsis "Arcade-style fire fighting game")
4449 (description
4450 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
4451 civilians from burning buildings. The game features fast-paced fire
4452 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
4453 throwing people around in pseudo-randomly generated buildings.")
4454 (license (list license:zlib ; for source code
4455 license:cc-by-sa3.0)))) ; for graphics and music assets
4456
4457 (define-public hyperrogue
4458 (package
4459 (name "hyperrogue")
4460 (version "11.3a")
4461 ;; When updating this package, be sure to update the "hyperrogue-data"
4462 ;; origin in native-inputs.
4463 (source (origin
4464 (method url-fetch)
4465 (uri (string-append
4466 "https://www.roguetemple.com/z/hyper/hyperrogue"
4467 (string-join (string-split version #\.) "")
4468 "-src.tgz"))
4469 (sha256
4470 (base32
4471 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
4472 (build-system gnu-build-system)
4473 (arguments
4474 `(#:tests? #f ; no check target
4475 #:make-flags '("HYPERROGUE_USE_GLEW=1"
4476 "HYPERROGUE_USE_PNG=1")
4477 #:phases
4478 (modify-phases %standard-phases
4479 (add-after 'set-paths 'set-sdl-paths
4480 (lambda* (#:key inputs #:allow-other-keys)
4481 (setenv "CPATH"
4482 (string-append (or (getenv "CPATH") "") ":"
4483 (assoc-ref inputs "sdl-union")
4484 "/include/SDL"))))
4485 (replace 'configure
4486 (lambda* (#:key inputs outputs #:allow-other-keys)
4487 (let* ((out (assoc-ref outputs "out"))
4488 (share-dir (string-append out "/share/hyperrogue"))
4489 (dejavu-dir (string-append
4490 (assoc-ref inputs "font-dejavu")
4491 "/share/fonts/truetype"))
4492 (dejavu-font "DejaVuSans-Bold.ttf")
4493 (music-file "hyperrogue-music.txt"))
4494 ;; Fix font and music paths.
4495 (substitute* "basegraph.cpp"
4496 ((dejavu-font)
4497 (string-append dejavu-dir "/" dejavu-font)))
4498 (substitute* music-file
4499 (("\\*/")
4500 (string-append share-dir "/sounds/")))
4501 (substitute* "sound.cpp"
4502 (("musicfile = \"\"")
4503 (string-append "musicfile = \""
4504 share-dir "/" music-file "\"")))
4505 ;; Disable build machine CPU optimizations and warnings treated
4506 ;; as errors.
4507 (substitute* "Makefile"
4508 (("-march=native") "")
4509 (("-Werror") "")))
4510 #t))
4511 (replace 'install
4512 (lambda* (#:key inputs outputs #:allow-other-keys)
4513 (let* ((out (assoc-ref outputs "out"))
4514 (bin (string-append out "/bin"))
4515 (share-dir (string-append out "/share/hyperrogue")))
4516 (mkdir-p bin)
4517 (install-file "hyperrogue" bin)
4518 (install-file "hyperrogue-music.txt" share-dir))
4519 #t))
4520 (add-after 'install 'install-data
4521 (lambda* (#:key inputs outputs #:allow-other-keys)
4522 (let* ((data (assoc-ref inputs "hyperrogue-data"))
4523 (out (assoc-ref outputs "out"))
4524 (sounds (string-append out "/share/hyperrogue/sounds"))
4525 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
4526 ;; Extract media license information into sounds directory.
4527 (invoke unzip "-j" data
4528 (string-append
4529 "hyperrogue"
4530 (string-join (string-split ,version #\.) "")
4531 "/sounds/credits.txt") "-d" sounds)
4532 ;; Extract sounds and music into sounds directory.
4533 (invoke "unzip" "-j" data
4534 (string-append
4535 "hyperrogue"
4536 (string-join (string-split ,version #\.) "")
4537 "/*.ogg") "-d" sounds)))))))
4538 (native-inputs
4539 `(("hyperrogue-data"
4540 ,(origin
4541 (method url-fetch)
4542 (uri
4543 (string-append
4544 "https://www.roguetemple.com/z/hyper/hyperrogue"
4545 (string-join (string-split version #\.) "")
4546 "-win.zip"))
4547 (sha256
4548 (base32
4549 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
4550 ("unzip" ,unzip)))
4551 (inputs
4552 `(("font-dejavu" ,font-dejavu)
4553 ("glew" ,glew)
4554 ("libpng" ,libpng)
4555 ("sdl-union" ,(sdl-union (list sdl
4556 sdl-gfx
4557 sdl-mixer
4558 sdl-ttf)))))
4559 (home-page "https://www.roguetemple.com/z/hyper/")
4560 (synopsis "Non-euclidean graphical rogue-like game")
4561 (description
4562 "HyperRogue is a game in which the player collects treasures and fights
4563 monsters -- rogue-like but for the fact that it is played on the hyperbolic
4564 plane and not in euclidean space.
4565
4566 In HyperRogue, the player can move through different parts of the world, which
4567 are home to particular creatures and may be subject to their own rules of
4568 \"physics\".
4569
4570 While the game can use ASCII characters to display the the classical rogue
4571 symbols, it still needs graphics to render the non-euclidean world.")
4572 (license (list license:bsd-3 ; glew.c, mtrand.*
4573 license:cc-by-sa3.0 ; music
4574 license:cc-by-sa4.0 ; sounds
4575 license:cc0
4576 license:public-domain ; direntx.*, some sounds
4577 license:zlib ; savepng.*
4578 license:gpl2+)))) ; remaining files
4579
4580 (define-public kobodeluxe
4581 (package
4582 (name "kobodeluxe")
4583 (version "0.5.1")
4584 (source (origin
4585 (method url-fetch)
4586 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
4587 version ".tar.bz2"))
4588 (sha256
4589 (base32
4590 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
4591 (patches (search-patches
4592 "kobodeluxe-const-charp-conversion.patch"
4593 "kobodeluxe-enemies-pipe-decl.patch"
4594 "kobodeluxe-graphics-window-signed-char.patch"
4595 "kobodeluxe-manpage-minus-not-hyphen.patch"
4596 "kobodeluxe-midicon-segmentation-fault.patch"
4597 "kobodeluxe-paths.patch"))))
4598 (build-system gnu-build-system)
4599 (arguments
4600 '(#:configure-flags
4601 (list (string-append "CPPFLAGS=-I"
4602 (assoc-ref %build-inputs "sdl-union")
4603 "/include/SDL"))))
4604 (inputs
4605 `(("glu" ,glu)
4606 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
4607 (synopsis "Shooter with space station destruction")
4608 (description
4609 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
4610 for Un*x systems with X11.")
4611 (home-page "http://olofson.net/kobodl/")
4612 (license license:gpl2+)))
4613
4614 (define-public freeciv
4615 (package
4616 (name "freeciv")
4617 (version "2.6.2")
4618 (source
4619 (origin
4620 (method url-fetch)
4621 (uri (list (string-append
4622 "http://files.freeciv.org/stable/freeciv-"
4623 version ".tar.bz2")
4624 (string-append
4625 "mirror://sourceforge/freeciv/Freeciv%20"
4626 (version-major+minor version) "/" version
4627 "/freeciv-" version ".tar.bz2")))
4628 (sha256
4629 (base32 "13vc2xg1cf19rhbnr7k38b56b2hdapqymq5vma1l69kn7hyyz0b1"))))
4630 (build-system gnu-build-system)
4631 (inputs
4632 `(("curl" ,curl)
4633 ("cyrus-sasl" ,cyrus-sasl)
4634 ("gtk+" ,gtk+)
4635 ("sdl-mixer" ,sdl-mixer)
4636 ("zlib" ,zlib)))
4637 (native-inputs
4638 `(("pkg-config" ,pkg-config)))
4639 (home-page "http://www.freeciv.org/")
4640 (synopsis "Turn-based empire building strategy game")
4641 (description "Freeciv is a turn-based empire building strategy game
4642 inspired by the history of human civilization. The game commences in
4643 prehistory and your mission is to lead your tribe from the Stone Age
4644 into the Space Age.")
4645 (license license:gpl2+)))
4646
4647 (define-public no-more-secrets
4648 (package
4649 (name "no-more-secrets")
4650 (version "0.3.3")
4651 (source
4652 (origin
4653 (method git-fetch)
4654 (uri (git-reference
4655 (url "https://github.com/bartobri/no-more-secrets.git")
4656 (commit (string-append "v" version))))
4657 (file-name (git-file-name name version))
4658 (sha256
4659 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
4660 (build-system gnu-build-system)
4661 (arguments
4662 `(#:tests? #f
4663 #:make-flags (list "CC=gcc" "all-ncurses"
4664 (string-append "prefix="
4665 (assoc-ref %outputs "out")))
4666 #:phases
4667 (modify-phases %standard-phases
4668 (delete 'configure))))
4669 (inputs
4670 `(("ncurses" ,ncurses)))
4671 (home-page "https://github.com/bartobri/no-more-secrets")
4672 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
4673 (description
4674 "@code{No More Secrets} provides a command line tool called \"nms\"
4675 that recreates the famous data decryption effect seen on screen in the 1992
4676 movie \"Sneakers\".
4677
4678 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
4679 it will apply the hollywood effect, initially showing encrypted data, then
4680 starting a decryption sequence to reveal the original plaintext characters.")
4681 (license license:expat)))
4682
4683 (define-public megaglest-data
4684 (package
4685 (name "megaglest-data")
4686 (version "3.13.0")
4687 (source
4688 (origin
4689 (method url-fetch)
4690 (uri (string-append
4691 "https://github.com/MegaGlest/megaglest-data"
4692 "/releases/download/" version "/megaglest-data-"
4693 version ".tar.xz"))
4694 (sha256
4695 (base32
4696 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
4697 (build-system cmake-build-system)
4698 (arguments
4699 `(#:tests? #f))
4700 (home-page "https://megaglest.org/")
4701 (synopsis "Data files for MegaGlest")
4702 (description "This package contains the data files required for MegaGlest.")
4703 (license license:cc-by-sa3.0)))
4704
4705 (define-public megaglest
4706 (package
4707 (name "megaglest")
4708 (version "3.13.0")
4709 (source
4710 (origin
4711 (method url-fetch)
4712 (uri (string-append
4713 "https://github.com/MegaGlest/megaglest-source"
4714 "/releases/download/" version "/megaglest-source-"
4715 version ".tar.xz"))
4716 (sha256
4717 (base32
4718 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
4719 (build-system cmake-build-system)
4720 (inputs
4721 `(("curl" ,curl)
4722 ("fontconfig" ,fontconfig)
4723 ("ftgl" ,ftgl)
4724 ("glew" ,glew)
4725 ("libjpeg-turbo" ,libjpeg-turbo)
4726 ("megaglest-data" ,megaglest-data)
4727 ("mesa" ,mesa)
4728 ("miniupnpc" ,miniupnpc)
4729 ("openal" ,openal)
4730 ("libircclient" ,libircclient)
4731 ("libpng" ,libpng)
4732 ("libvorbis" ,libvorbis)
4733 ("lua" ,lua)
4734 ("sdl2" ,sdl2)
4735 ("wxwidgets" ,wxwidgets)))
4736 (native-inputs
4737 `(("cppunit" ,cppunit)
4738 ("pkg-config" ,pkg-config)))
4739 (arguments
4740 `(#:configure-flags
4741 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
4742 (assoc-ref %build-inputs "megaglest-data")
4743 "/share/megaglest")
4744 "-DBUILD_MEGAGLEST_TESTS=ON")
4745 #:phases
4746 (modify-phases %standard-phases
4747 (add-after 'unpack 'fix-ini-search-path
4748 (lambda* (#:key outputs #:allow-other-keys)
4749 (substitute* "source/glest_game/global/config.cpp"
4750 (("/usr/share/megaglest/")
4751 (string-append (assoc-ref outputs "out")
4752 "/share/megaglest/"))))))
4753 #:test-target "megaglest_tests"))
4754 (home-page "https://megaglest.org/")
4755 (synopsis "3D real-time strategy (RTS) game")
4756 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
4757 game, where you control the armies of one of seven different factions: Tech,
4758 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
4759 (license license:gpl2+)))
4760
4761 (define-public freegish
4762 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
4763 (revision "1"))
4764 (package
4765 (name "freegish")
4766 (version (string-append "0-" revision "." (string-take commit 9)))
4767 (source (origin
4768 (method git-fetch)
4769 (uri (git-reference
4770 (url "https://github.com/freegish/freegish.git")
4771 (commit commit)))
4772 (file-name (git-file-name name version))
4773 (sha256
4774 (base32
4775 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
4776 (modules '((guix build utils)))
4777 ;; The audio files in the "music" directory are licensed under
4778 ;; CC-BY-NC, so we delete them.
4779 (snippet
4780 '(begin
4781 (delete-file-recursively "music")
4782 #t))))
4783 (build-system cmake-build-system)
4784 (arguments
4785 `(#:tests? #f ; no tests included
4786 #:configure-flags
4787 (list "-DCMAKE_INSTALL_FHS=ON")
4788 #:phases
4789 (modify-phases %standard-phases
4790 (add-after 'unpack 'set-DATAPATH
4791 (lambda* (#:key outputs #:allow-other-keys)
4792 (substitute* "CMakeLists.txt"
4793 (("^option\\(INSTALL_FHS" line)
4794 (string-append "add_definitions(-DDATAPATH=\""
4795 (assoc-ref outputs "out") "/share/freegish\")\n"
4796 line)))
4797 #t)))))
4798 (inputs
4799 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
4800 ("openal" ,openal)
4801 ("libvorbis" ,libvorbis)
4802 ("libogg" ,libogg)
4803 ("mesa" ,mesa)
4804 ("libpng" ,libpng)
4805 ("zlib" ,zlib)))
4806 (home-page "https://github.com/freegish/freegish")
4807 (synopsis "Side-scrolling physics platformer with a ball of tar")
4808 (description "In FreeGish you control Gish, a ball of tar who lives
4809 happily with his girlfriend Brea, until one day a mysterious dark creature
4810 emerges from a sewer hole and pulls her below ground.")
4811 ;; The textures are available under the Expat license. All other assets
4812 ;; (including levels) are covered under CC-BY-SA or public domain. The
4813 ;; source code is under GPLv2+.
4814 (license (list license:gpl2+
4815 license:expat
4816 license:public-domain
4817 license:cc-by-sa3.0)))))
4818
4819 (define-public cdogs-sdl
4820 (package
4821 (name "cdogs-sdl")
4822 (version "0.6.9")
4823 (source (origin
4824 (method git-fetch)
4825 (uri (git-reference
4826 (url "https://github.com/cxong/cdogs-sdl.git")
4827 (commit version)))
4828 (file-name (git-file-name name version))
4829 (sha256
4830 (base32
4831 "13gyv2hzk43za1n3lsjnd5v64xlzfzq7n10scd1rcbsnk1n007zr"))))
4832 (build-system cmake-build-system)
4833 (arguments
4834 `(#:configure-flags
4835 (list (string-append "-DCDOGS_DATA_DIR="
4836 (assoc-ref %outputs "out")
4837 "/share/cdogs-sdl/"))))
4838 (inputs
4839 `(("mesa" ,mesa)
4840 ("sdl2" ,sdl2)
4841 ("sdl2-image" ,sdl2-image)
4842 ("sdl2-mixer" ,sdl2-mixer)))
4843 (home-page "https://cxong.github.io/cdogs-sdl/")
4844 (synopsis "Classic overhead run-and-gun game")
4845 (description "C-Dogs SDL is a classic overhead run-and-gun game,
4846 supporting up to 4 players in co-op and deathmatch modes. Customize your
4847 player, choose from many weapons, and blast, slide and slash your way through
4848 over 100 user-created campaigns.")
4849 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
4850 ;; CC0/CC-BY/CC-BY-SA for assets.
4851 (license (list license:gpl2+
4852 license:bsd-2
4853 license:bsd-3
4854 license:cc0
4855 license:cc-by3.0
4856 license:cc-by-sa3.0))))
4857
4858 (define-public kiki
4859 (package
4860 (name "kiki")
4861 (version "1.0.2")
4862 (source (origin
4863 (method url-fetch)
4864 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
4865 version "/kiki-" version "-src.tgz"))
4866 (sha256
4867 (base32
4868 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
4869 (modules '((guix build utils)))
4870 (snippet
4871 '(begin
4872 (for-each delete-file (find-files "." "\\.dll$"))
4873 #t))
4874 (patches
4875 (search-patches "kiki-level-selection-crash.patch"
4876 "kiki-makefile.patch"
4877 "kiki-missing-includes.patch"
4878 "kiki-portability-64bit.patch"))))
4879 (build-system gnu-build-system)
4880 (arguments
4881 `(#:tests? #f ; there are no tests
4882 #:make-flags '("CXX=g++")
4883 #:phases
4884 (modify-phases %standard-phases
4885 (replace 'configure
4886 (lambda* (#:key inputs outputs #:allow-other-keys)
4887 (setenv "CPLUS_INCLUDE_PATH"
4888 (string-append (assoc-ref inputs "sdl-union")
4889 "/include/SDL:"
4890 (assoc-ref inputs "python")
4891 "/include/python2.7:"
4892 (or (getenv "CPLUS_INCLUDE_PATH") "")))
4893 (substitute* "src/main/main.cpp"
4894 (("#include <SDL.h>" line)
4895 (string-append line "
4896 #define K_INCLUDE_GLUT
4897 #include \"KIncludeTools.h\""))
4898 (("// initialize SDL" line)
4899 (string-append "glutInit(&argc,argv);\n" line)))
4900 (substitute* "src/main/KikiController.cpp"
4901 (("getenv\\(\"KIKI_HOME\"\\)")
4902 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
4903 (substitute* "linux/Makefile"
4904 (("CXXOPTS =" line)
4905 (string-append line " -fpermissive"))
4906 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
4907 (("PYTHONHOME =.*")
4908 (string-append "PYTHONHOME = "
4909 (assoc-ref inputs "python")
4910 "/lib/python2.7/"))
4911 (("\\$\\(GLLIBS\\)" line)
4912 (string-append line " -lm -lpython2.7")))
4913 (substitute* "src/main/KikiPythonWidget.h"
4914 (("#define __KikiPythonWidget" line)
4915 (string-append line "\n#include \"KikiPython.h\"")))
4916 #t))
4917 (add-before 'build 'build-kodilib
4918 (lambda* (#:key make-flags #:allow-other-keys)
4919 (with-directory-excursion "kodilib/linux"
4920 (apply invoke "make" make-flags))))
4921 (add-after 'build-kodilib 'chdir
4922 (lambda _ (chdir "linux") #t))
4923 (replace 'install
4924 (lambda* (#:key outputs #:allow-other-keys)
4925 (let* ((out (assoc-ref outputs "out"))
4926 (bin (string-append out "/bin"))
4927 (share (string-append out "/share/kiki")))
4928 (mkdir-p bin)
4929 (mkdir-p share)
4930 (install-file "kiki" bin)
4931 (copy-recursively "../py" (string-append share "/py"))
4932 (copy-recursively "../sound" (string-append share "/sound"))
4933 #t))))))
4934 (inputs
4935 `(("glu" ,glu)
4936 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
4937 ("freeglut" ,freeglut-2.8)
4938 ("sdl-union" ,(sdl-union (list sdl
4939 sdl-mixer
4940 sdl-image)))
4941 ("python" ,python-2)))
4942 (native-inputs
4943 `(("swig" ,swig)))
4944 (home-page "http://kiki.sourceforge.net/")
4945 (synopsis "3D puzzle game")
4946 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
4947 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
4948 small robot living in the nano world, repair its maker.")
4949 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
4950 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
4951 ;; for a statement from the author.
4952 (license license:public-domain)))
4953
4954 (define-public teeworlds
4955 (package
4956 (name "teeworlds")
4957 (version "0.7.5")
4958 (source (origin
4959 (method git-fetch)
4960 (uri (git-reference
4961 (url "https://github.com/teeworlds/teeworlds.git")
4962 (commit version)))
4963 (file-name (git-file-name name version))
4964 (sha256
4965 (base32
4966 "169dl83q08zl4h813az8hjs4rs3dms9yjn6bnsld4fjcj0imvvc6"))
4967 (modules '((guix build utils)
4968 (ice-9 ftw)
4969 (ice-9 regex)
4970 (srfi srfi-1)
4971 (srfi srfi-26)))
4972 (snippet ; remove bundled libraries except md5
4973 '(let ((base-dir "src/engine/external/"))
4974 (for-each (compose (cut delete-file-recursively <>)
4975 (cut string-append base-dir <>))
4976 (remove (cut string-match "(^.)|(^md5$)" <>)
4977 (scandir base-dir)))
4978 #t))))
4979 (build-system gnu-build-system)
4980 (arguments
4981 `(#:tests? #f ; no tests included
4982 #:modules ((guix build gnu-build-system)
4983 (guix build utils)
4984 (srfi srfi-26))
4985 #:phases
4986 (modify-phases %standard-phases
4987 (replace 'configure
4988 (lambda* (#:key outputs #:allow-other-keys)
4989 ;; Embed path to assets.
4990 (substitute* "src/engine/shared/storage.cpp"
4991 (("#define DATA_DIR.*")
4992 (string-append "#define DATA_DIR \""
4993 (assoc-ref outputs "out")
4994 "/share/teeworlds/data"
4995 "\"")))
4996
4997 ;; Bam expects all files to have a recent time stamp.
4998 (for-each (cut utime <> 1 1)
4999 (find-files "."))
5000
5001 ;; Do not use bundled libraries.
5002 (substitute* "bam.lua"
5003 (("local json = Compile.+$")
5004 "local json = nil
5005 settings.link.libs:Add(\"jsonparser\")")
5006 (("local png = Compile.+$")
5007 "local png = nil
5008 settings.link.libs:Add(\"pnglite\")")
5009 (("local wavpack = Compile.+$")
5010 "local wavpack = nil
5011 settings.link.libs:Add(\"wavpack\")")
5012 (("if config\\.zlib\\.value == 1")
5013 "if config.zlib.value"))
5014 (substitute* "src/engine/client/graphics_threaded.cpp"
5015 (("engine/external/pnglite/pnglite\\.h")
5016 "pnglite.h"))
5017 (substitute* "src/engine/client/sound.cpp"
5018 (("engine/external/wavpack/wavpack\\.h")
5019 "wavpack/wavpack.h"))
5020 #t))
5021 (replace 'build
5022 (lambda _
5023 (invoke "bam" "-a" "-v" "conf=release")))
5024 (replace 'install
5025 (lambda* (#:key outputs #:allow-other-keys)
5026 (let* ((arch ,(system->linux-architecture
5027 (or (%current-target-system)
5028 (%current-system))))
5029 (build (string-append "build/" (if (string=? arch "i386")
5030 "x86" arch)
5031 "/release/"))
5032 (data-built (string-append build "data/"))
5033 (out (assoc-ref outputs "out"))
5034 (bin (string-append out "/bin/"))
5035 (data (string-append out "/share/teeworlds/data/")))
5036 (for-each (cut install-file <> bin)
5037 (map (cut string-append build <>)
5038 '("teeworlds" "teeworlds_srv")))
5039 (copy-recursively data-built data)
5040 #t))))))
5041 (inputs
5042 `(("freetype" ,freetype)
5043 ("glu" ,glu)
5044 ("json-parser" ,json-parser)
5045 ("mesa" ,mesa)
5046 ("pnglite" ,pnglite)
5047 ("sdl2" ,sdl2)
5048 ("sdl2-image" ,sdl2-image)
5049 ("sdl2-mixer" ,sdl2-mixer)
5050 ("wavpack" ,wavpack)
5051 ("zlib" ,zlib)))
5052 (native-inputs
5053 `(("bam" ,bam)
5054 ("python" ,python-wrapper)
5055 ("pkg-config" ,pkg-config)))
5056 (home-page "https://www.teeworlds.com")
5057 (synopsis "2D retro multiplayer shooter game")
5058 (description "Teeworlds is an online multiplayer game. Battle with up to
5059 16 players in a variety of game modes, including Team Deathmatch and Capture
5060 The Flag. You can even design your own maps!")
5061 (license license:bsd-3)))
5062
5063 (define-public enigma
5064 (package
5065 (name "enigma")
5066 (version "1.21")
5067 (source (origin
5068 (method url-fetch)
5069 (uri (string-append "mirror://sourceforge/enigma-game/"
5070 "Release%20" version "/enigma-"
5071 version ".tar.gz"))
5072 (sha256
5073 (base32
5074 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
5075 (build-system gnu-build-system)
5076 (arguments
5077 `(#:configure-flags
5078 (list "--with-system-enet")
5079 #:phases
5080 (modify-phases %standard-phases
5081 (add-after 'unpack 'find-sdl
5082 (lambda _
5083 (substitute* "configure"
5084 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
5085 (substitute* '("tools/ttf2bmf.cc"
5086 "lib-src/enigma-core/ecl_font.cc"
5087 "lib-src/enigma-core/ecl_video.cc"
5088 "lib-src/enigma-core/ecl_buffer.hh"
5089 "src/SoundEngine.cc"
5090 "src/SoundEngine.hh"
5091 "src/MusicManager.cc"
5092 "src/MusicManager.hh"
5093 "src/d_models.cc"
5094 "src/main.cc"
5095 "src/network.cc")
5096 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
5097 (string-append "#include \"SDL/SDL_" header ".h\"")))
5098 (substitute* "src/main.cc"
5099 (("#include <SDL_(image|ttf|mixer).h>" line header)
5100 (string-append "#include \"SDL/SDL_" header ".h\"")))
5101 #t)))))
5102 (inputs
5103 `(("xerces-c" ,xerces-c)
5104 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
5105 ("curl" ,curl)
5106 ("enet" ,enet)))
5107 (native-inputs
5108 `(("pkg-config" ,pkg-config)
5109 ("imagemagick" ,imagemagick)))
5110 (home-page "https://www.nongnu.org/enigma")
5111 (synopsis "Puzzle game with a dexterity component")
5112 (description "Enigma is a puzzle game with 550 unique levels. The object
5113 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
5114 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
5115 and most of all, countless hairy puzzles usually block your direct way to the
5116 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
5117 get bored) interact in many unexpected ways, and since many of them follow the
5118 laws of physics (Enigma’s special laws of physics, that is), controlling them
5119 with the mouse isn’t always trivial.")
5120 (license license:gpl2+)))
5121
5122 (define-public chroma
5123 (package
5124 (name "chroma")
5125 (version "1.17")
5126 (source (origin
5127 (method url-fetch)
5128 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
5129 version ".tar.bz2"))
5130 (sha256
5131 (base32
5132 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
5133 (build-system gnu-build-system)
5134 (arguments
5135 `(#:tests? #f)) ; no tests included
5136 (inputs
5137 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
5138 ("freetype" ,freetype)
5139 ("ncurses" ,ncurses)
5140 ("fontconfig" ,fontconfig)
5141 ("libxft" ,libxft)))
5142 (native-inputs
5143 `(("pkg-config" ,pkg-config)))
5144 (home-page "http://level7.org.uk/chroma/")
5145 (synopsis "Abstract puzzle game")
5146 (description "Chroma is an abstract puzzle game. A variety of colourful
5147 shapes are arranged in a series of increasingly complex patterns, forming
5148 fiendish traps that must be disarmed and mysterious puzzles that must be
5149 manipulated in order to give up their subtle secrets. Initially so
5150 straightforward that anyone can pick it up and begin to play, yet gradually
5151 becoming difficult enough to tax even the brightest of minds.")
5152 (license license:gpl2+)))
5153
5154 (define-public fillets-ng
5155 (package
5156 (name "fillets-ng")
5157 (version "1.0.1")
5158 (source (origin
5159 (method url-fetch)
5160 (uri (string-append "mirror://sourceforge/fillets/"
5161 "Fish%20Fillets%20-%20Next%20Generation/"
5162 version "/fillets-ng-" version ".tar.gz"))
5163 (sha256
5164 (base32
5165 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
5166 (build-system gnu-build-system)
5167 (arguments
5168 `(#:configure-flags
5169 (list (string-append "--with-lua="
5170 (assoc-ref %build-inputs "lua")))
5171 #:make-flags
5172 (list (string-append "CFLAGS=-I"
5173 (assoc-ref %build-inputs "sdl-union")
5174 "/include/SDL")
5175 (string-append "CXXFLAGS=-I"
5176 (assoc-ref %build-inputs "sdl-union")
5177 "/include/SDL"))
5178 #:phases
5179 (modify-phases %standard-phases
5180 ;; Lua 5.1 does not provide it.
5181 (add-after 'unpack 'do-not-link-with-lualib
5182 (lambda _
5183 (substitute* "configure"
5184 (("-llualib") ""))
5185 #t))
5186 (add-after 'install 'install-data
5187 (lambda* (#:key inputs outputs #:allow-other-keys)
5188 (let ((data (string-append (assoc-ref outputs "out")
5189 "/share/games/fillets-ng")))
5190 (mkdir-p data)
5191 (invoke "tar" "-xvf"
5192 (assoc-ref inputs "fillets-ng-data")
5193 "--strip-components=1"
5194 "-C" data)))))))
5195 (inputs
5196 `(("sdl-union" ,(sdl-union (list sdl
5197 sdl-mixer
5198 sdl-image
5199 sdl-ttf)))
5200 ("fribidi" ,fribidi)
5201 ("libx11" ,libx11)
5202 ("lua" ,lua-5.1)))
5203 (native-inputs
5204 `(("pkg-config" ,pkg-config)
5205 ("fillets-ng-data"
5206 ,(origin
5207 (method url-fetch)
5208 (uri (string-append "mirror://sourceforge/fillets/"
5209 "Fish%20Fillets%20-%20Next%20Generation/"
5210 version "/fillets-ng-data-" version ".tar.gz"))
5211 (sha256
5212 (base32
5213 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
5214 (home-page "http://fillets.sourceforge.net/")
5215 (synopsis "Puzzle game")
5216 (description "Fish Fillets NG is strictly a puzzle game. The goal in
5217 every of the seventy levels is always the same: find a safe way out. The fish
5218 utter witty remarks about their surroundings, the various inhabitants of their
5219 underwater realm quarrel among themselves or comment on the efforts of your
5220 fish. The whole game is accompanied by quiet, comforting music.")
5221 (license license:gpl2+)))
5222
5223 (define-public crawl
5224 (package
5225 (name "crawl")
5226 (version "0.24.0")
5227 (source
5228 (origin
5229 (method url-fetch)
5230 (uri (list
5231 ;; Older releases get moved into a versioned directory
5232 (string-append "http://crawl.develz.org/release/"
5233 (version-major+minor version) "/stone_soup-"
5234 version "-nodeps.tar.xz")
5235 ;; Only the latest release is in this directory
5236 (string-append "http://crawl.develz.org/release/stone_soup-"
5237 version "-nodeps.tar.xz")))
5238 (sha256
5239 (base32 "0kdq6s12myxfdg75ma9x3ys2nd0xwb3xm2ynlmhg4628va0pnixr"))
5240 (patches (search-patches "crawl-upgrade-saves.patch"))))
5241 (build-system gnu-build-system)
5242 (inputs
5243 `(("lua51" ,lua-5.1)
5244 ("ncurses" ,ncurses)
5245 ("sqlite" ,sqlite)
5246 ("zlib" ,zlib)))
5247 (native-inputs
5248 `(("bison" ,bison)
5249 ("flex" ,flex)
5250 ("perl" ,perl)
5251 ("python" ,python-wrapper)
5252 ("python-pyyaml" ,python-pyyaml)
5253 ("pkg-config" ,pkg-config)))
5254 (arguments
5255 `(#:make-flags
5256 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
5257 (out (assoc-ref %outputs "out")))
5258 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
5259 (string-append "prefix=" out)
5260 "SAVEDIR=~/.crawl"
5261 ;; Don't compile with SSE on systems which don't have it.
5262 ,@(match (%current-system)
5263 ((or "i686-linux" "x86_64-linux")
5264 '())
5265 (_ '("NOSSE=TRUE")))
5266 ;; don't build any bundled dependencies
5267 "BUILD_LUA="
5268 "BUILD_SQLITE="
5269 "BUILD_ZLIB="
5270 "-Csource"))
5271 #:phases
5272 (modify-phases %standard-phases
5273 (add-after 'unpack 'find-SDL-image
5274 (lambda _
5275 (substitute* "source/windowmanager-sdl.cc"
5276 (("SDL_image.h") "SDL2/SDL_image.h"))
5277 #t))
5278 (delete 'configure)
5279 (replace 'check
5280 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
5281 (setenv "HOME" (getcwd))
5282 ;; Fake a terminal for the test cases.
5283 (setenv "TERM" "xterm-256color")
5284 ;; Run the tests that don't require a debug build.
5285 (apply invoke "make" "nondebugtest"
5286 (format #f "-j~d" (parallel-job-count))
5287 ;; Force command line build for test cases.
5288 (append make-flags '("GAME=crawl" "TILES="))))))))
5289 (synopsis "Roguelike dungeon crawler game")
5290 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
5291 for short) is a roguelike adventure through dungeons filled with dangerous
5292 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
5293 (home-page "https://crawl.develz.org")
5294 (license (list license:gpl2+
5295 license:bsd-2
5296 license:bsd-3
5297 license:cc0
5298 license:expat
5299 license:zlib
5300 license:asl2.0))))
5301
5302 ;; The linter here claims that patch file names should start with the package
5303 ;; name. But, in this case, the patches are inherited from crawl with the
5304 ;; "crawl-" prefix instead of "crawl-tiles-".
5305 (define-public crawl-tiles
5306 (package
5307 (inherit crawl)
5308 (name "crawl-tiles")
5309 (arguments
5310 (substitute-keyword-arguments
5311 (package-arguments crawl)
5312 ((#:make-flags flags)
5313 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
5314 (cons*
5315 (string-append "PROPORTIONAL_FONT=" dejavu
5316 "/share/fonts/truetype/DejaVuSans.ttf")
5317 (string-append "MONOSPACED_FONT=" dejavu
5318 "/share/fonts/truetype/DejaVuSansMono.ttf")
5319 "TILES=y"
5320 ;; Rename the executable to allow parallel installation with crawl.
5321 "GAME=crawl-tiles"
5322 ,flags)))))
5323 (inputs
5324 `(,@(package-inputs crawl)
5325 ("font-dejavu" ,font-dejavu)
5326 ("freetype6" ,freetype)
5327 ("glu" ,glu)
5328 ("libpng" ,libpng)
5329 ("sdl2" ,sdl2)
5330 ("sdl2-image" ,sdl2-image)
5331 ("sdl2-mixer" ,sdl2-mixer)))
5332 (native-inputs
5333 `(,@(package-native-inputs crawl)
5334 ("pngcrush" ,pngcrush)
5335 ("which" ,which)))
5336 (synopsis "Graphical roguelike dungeon crawler game")))
5337
5338 (define-public lugaru
5339 (package
5340 (name "lugaru")
5341 (version "1.2")
5342 (source (origin
5343 (method url-fetch)
5344 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
5345 "lugaru-" version ".tar.xz"))
5346 (sha256
5347 (base32
5348 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
5349 (build-system cmake-build-system)
5350 (arguments
5351 `(#:configure-flags
5352 (list "-DSYSTEM_INSTALL=ON")
5353 ;; no test target
5354 #:tests? #f))
5355 (native-inputs
5356 `(("pkg-config" ,pkg-config)))
5357 (inputs
5358 `(("sdl2" ,sdl2)
5359 ("glu" ,glu)
5360 ("libjpeg" ,libjpeg-turbo)
5361 ("libpng" ,libpng)
5362 ("openal" ,openal)
5363 ("vorbis" ,libvorbis)
5364 ("zlib" ,zlib)))
5365 (home-page "https://osslugaru.gitlab.io")
5366 (synopsis "Cross-platform third-person action game")
5367 (description "Lugaru is a third-person action game. The main character,
5368 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
5369 In his quest to find those responsible for slaughtering his village, he uncovers
5370 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
5371 and the starving wolves from a nearby den. Turner takes it upon himself to
5372 fight against their plot and save his fellow rabbits from slavery.")
5373 (license (list license:gpl2+ ; code
5374 ;; assets:
5375 license:cc-by-sa3.0
5376 license:cc-by-sa4.0))))
5377
5378 (define-public 0ad-data
5379 (package
5380 (name "0ad-data")
5381 (version "0.0.23b-alpha")
5382 (source
5383 (origin
5384 (method url-fetch)
5385 (uri (string-append "https://releases.wildfiregames.com/0ad-"
5386 version "-unix-data.tar.xz"))
5387 (file-name (string-append name "-" version ".tar.xz"))
5388 (sha256
5389 (base32
5390 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
5391 (modules '((guix build utils)))
5392 (snippet
5393 #~(begin
5394 (for-each (lambda (name)
5395 (let* ((dir (string-append "binaries/data/mods/" name))
5396 (file (string-append dir "/" name ".zip"))
5397 (unzip #$(file-append unzip "/bin/unzip")))
5398 (invoke unzip "-d" dir file)
5399 (delete-file file)))
5400 '("mod" "public"))
5401 #t))))
5402 (build-system trivial-build-system)
5403 (native-inputs `(("tar" ,tar)
5404 ("xz" ,xz)))
5405 (arguments
5406 `(#:modules ((guix build utils))
5407 #:builder
5408 (begin
5409 (use-modules (guix build utils))
5410 (let ((out (assoc-ref %outputs "out"))
5411 (source (assoc-ref %build-inputs "source"))
5412 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
5413 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
5414 (setenv "PATH" xz-path)
5415 (mkdir out)
5416 (invoke tar "xvf" source "-C" out "--strip=3")))))
5417 (synopsis "Data files for 0ad")
5418 (description "0ad-data provides the data files required by the game 0ad.")
5419 (home-page "https://play0ad.com")
5420 (license (list (license:fsdg-compatible
5421 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
5422 "Similar to the license of the Bitstream Vera fonts.")
5423 (license:fsdg-compatible
5424 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
5425 license:cc-by-sa3.0
5426 license:expat
5427 license:gfl1.0
5428 license:gpl2+
5429 license:gpl3+))))
5430
5431 (define-public 0ad
5432 (package
5433 (name "0ad")
5434 (version "0.0.23b-alpha")
5435 (source
5436 (origin
5437 (method url-fetch)
5438 (uri (string-append "https://releases.wildfiregames.com/0ad-"
5439 version "-unix-build.tar.xz"))
5440 (file-name (string-append name "-" version ".tar.xz"))
5441 (sha256
5442 (base32
5443 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
5444 ;; A snippet here would cause a build failure because of timestamps
5445 ;; reset. See https://bugs.gnu.org/26734.
5446 (inputs
5447 `(("0ad-data" ,0ad-data)
5448 ("curl" ,curl)
5449 ("enet" ,enet)
5450 ("gloox" ,gloox)
5451 ("icu4c" ,icu4c)
5452 ("libpng" ,libpng)
5453 ("libsodium" ,libsodium)
5454 ("libvorbis" ,libvorbis)
5455 ("libxcursor" ,libxcursor)
5456 ("libxml2" ,libxml2)
5457 ("miniupnpc" ,miniupnpc)
5458 ("mozjs-38" ,mozjs-38)
5459 ("openal" ,openal)
5460 ("sdl2" ,sdl2)
5461 ("wxwidgets" ,wxwidgets)
5462 ("zlib" ,zlib)))
5463 (native-inputs
5464 `(("boost" ,boost)
5465 ("cmake" ,cmake-minimal)
5466 ("mesa" ,mesa)
5467 ("pkg-config" ,pkg-config)
5468 ("python-2" ,python-2)))
5469 (build-system gnu-build-system)
5470 (arguments
5471 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
5472 #:phases
5473 (modify-phases %standard-phases
5474 (add-after 'unpack 'delete-bundles
5475 (lambda _
5476 (delete-file-recursively "libraries/source/spidermonkey")
5477 #t))
5478 (add-after 'unpack 'fix-x11-includes
5479 (lambda _
5480 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
5481 (("<Xlib.h>") "<X11/Xlib.h>"))
5482 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
5483 (("<Xatom.h>") "<X11/Xatom.h>"))
5484 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
5485 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
5486 #t))
5487 (replace 'configure
5488 (lambda* (#:key inputs outputs #:allow-other-keys)
5489 (let* ((jobs (number->string (parallel-job-count)))
5490 (out (assoc-ref outputs "out"))
5491 (lib (string-append out "/lib"))
5492 (data (string-append out "/share/0ad")))
5493 (setenv "JOBS" (string-append "-j" jobs))
5494 (setenv "CC" "gcc")
5495 (with-directory-excursion "build/workspaces"
5496 (invoke "./update-workspaces.sh"
5497 (string-append "--libdir=" lib)
5498 (string-append "--datadir=" data)
5499 ;; TODO: "--with-system-nvtt"
5500 "--with-system-mozjs38")))))
5501 (delete 'check)
5502 (replace 'install
5503 (lambda* (#:key inputs outputs #:allow-other-keys)
5504 (chdir "binaries")
5505 (let* ((out (assoc-ref outputs "out"))
5506 (bin (string-append out "/bin"))
5507 (lib (string-append out "/lib"))
5508 (data (string-append out "/share/0ad"))
5509 (applications (string-append out "/share/applications"))
5510 (pixmaps (string-append out "/share/pixmaps"))
5511 (0ad-data (assoc-ref inputs "0ad-data")))
5512 ;; data
5513 (copy-recursively "data" data)
5514 (for-each (lambda (file)
5515 (symlink (string-append 0ad-data "/" file)
5516 (string-append data "/" file)))
5517 '("config" "mods/mod" "mods/public" "tools"))
5518 ;; libraries
5519 (for-each (lambda (file)
5520 (install-file file lib))
5521 (find-files "system" "\\.so$"))
5522 ;; binaries
5523 (install-file "system/pyrogenesis" bin)
5524 (with-directory-excursion bin
5525 (symlink "pyrogenesis" "0ad"))
5526 ;; resources
5527 (with-directory-excursion "../build/resources"
5528 (install-file "0ad.desktop" applications)
5529 (install-file "0ad.png" pixmaps))
5530 #t)))
5531 (add-after 'install 'check
5532 (lambda _
5533 (with-directory-excursion "system"
5534 (invoke "./test")))))))
5535 (home-page "https://play0ad.com")
5536 (synopsis "3D real-time strategy game of ancient warfare")
5537 (description "0 A.D. is a real-time strategy (RTS) game of ancient
5538 warfare. It's a historically-based war/economy game that allows players to
5539 relive or rewrite the history of twelve ancient civilizations, each depicted
5540 at their peak of economic growth and military prowess.
5541
5542 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
5543 (license (list license:bsd-2
5544 license:bsd-3
5545 license:expat
5546 license:gpl2+
5547 license:ibmpl1.0
5548 license:isc
5549 license:lgpl2.1
5550 license:lgpl3
5551 license:mpl2.0
5552 license:zlib))))
5553
5554 ;; There have been no official releases.
5555 (define-public open-adventure
5556 (let* ((commit "d43854f0f6bb8e9eea7fbce80348150e7e7fc34d")
5557 (revision "2"))
5558 (package
5559 (name "open-adventure")
5560 (version (string-append "2.5-" revision "." (string-take commit 7)))
5561 (source (origin
5562 (method git-fetch)
5563 (uri (git-reference
5564 (url "https://gitlab.com/esr/open-adventure")
5565 (commit commit)))
5566 (file-name (string-append name "-" version "-checkout"))
5567 (sha256
5568 (base32
5569 "08bwrvf4axb1rsfd6ia1fddsky9pc1p350vjskhaakg2czc6dsk0"))))
5570 (build-system gnu-build-system)
5571 (arguments
5572 `(#:make-flags (list "CC=gcc")
5573 #:parallel-build? #f ; not supported
5574 #:phases
5575 (modify-phases %standard-phases
5576 (replace 'configure
5577 (lambda* (#:key inputs outputs #:allow-other-keys)
5578 ;; Linenoise is meant to be included, so we have to
5579 ;; copy it into the working directory.
5580 (let* ((linenoise (assoc-ref inputs "linenoise"))
5581 (noisepath (string-append linenoise "/include/linenoise"))
5582 (out (assoc-ref outputs "out")))
5583 (copy-recursively noisepath "linenoise"))
5584 #t))
5585 (add-before 'build 'use-echo
5586 (lambda _
5587 (substitute* "tests/Makefile"
5588 (("/bin/echo") (which "echo")))
5589 #t))
5590 (add-after 'build 'build-manpage
5591 (lambda _
5592 ;; This target is missing a dependency
5593 (substitute* "Makefile"
5594 ((".adoc.6:" line)
5595 (string-append line " advent.adoc")))
5596 (invoke "make" ".adoc.6")))
5597 ;; There is no install target
5598 (replace 'install
5599 (lambda* (#:key outputs #:allow-other-keys)
5600 (let* ((out (assoc-ref outputs "out"))
5601 (bin (string-append out "/bin"))
5602 (man (string-append out "/share/man/man6")))
5603 (install-file "advent" bin)
5604 (install-file "advent.6" man))
5605 #t)))))
5606 (native-inputs
5607 `(("asciidoc" ,asciidoc)
5608 ("linenoise" ,linenoise)
5609 ("python" ,python)
5610 ("python-pyyaml" ,python-pyyaml)))
5611 (home-page "https://gitlab.com/esr/open-adventure")
5612 (synopsis "Colossal Cave Adventure")
5613 (description "The original Colossal Cave Adventure from 1976 was the
5614 origin of all text adventures, dungeon-crawl (computer) games, and
5615 computer-hosted roleplaying games. This is the last version released by
5616 Crowther & Woods, its original authors, in 1995. It has been known as
5617 \"adventure 2.5\" and \"430-point adventure\".")
5618 (license license:bsd-2))))
5619
5620 (define-public tome4
5621 (package
5622 (name "tome4")
5623 (version "1.6.7")
5624 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
5625 (source
5626 (origin
5627 (method url-fetch)
5628 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
5629 version ".tar.bz2"))
5630 (sha256
5631 (base32 "0283hvms5hr29zr0grd6gq059k0hg8hcz3fsmwjmysiih8790i68"))
5632 (modules '((guix build utils)))
5633 (snippet
5634 '(begin
5635 (substitute* '("src/music.h" "src/tSDL.h")
5636 (("#elif defined(__FreeBSD__)" line)
5637 (string-append
5638 line " || defined(__GNUC__)")))
5639 (substitute* '("src/tgl.h")
5640 (("#include <GL/glext.h>") ""))
5641 #t))))
5642 (build-system gnu-build-system)
5643 (native-inputs
5644 `(("unzip" ,unzip)))
5645 (inputs
5646 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5647 ("glu" ,glu)
5648 ("premake4" ,premake4)
5649 ("openal" ,openal)
5650 ("vorbis" ,libvorbis)
5651 ("luajit" ,luajit)))
5652 (arguments
5653 `(#:make-flags '("CC=gcc" "config=release")
5654 ;; XXX: Building in parallel occasionally causes this build failure:
5655 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
5656 ;; No such file or directory
5657 #:parallel-build? #f
5658 #:phases (modify-phases %standard-phases
5659 (delete 'bootstrap)
5660 (replace 'configure
5661 (lambda _
5662 (invoke "premake4" "gmake")
5663 #t))
5664 (add-after 'set-paths 'set-sdl-paths
5665 (lambda* (#:key inputs #:allow-other-keys)
5666 (setenv "CPATH"
5667 (string-append (assoc-ref inputs "sdl-union")
5668 "/include/SDL2:"
5669 (or (getenv "CPATH") "")))
5670 #t))
5671 (delete 'check)
5672 ;; premake doesn't provide install target
5673 (replace 'install
5674 (lambda* (#:key inputs outputs #:allow-other-keys)
5675 (let* ((out (assoc-ref outputs "out"))
5676 (usr (string-append out "/usr"))
5677 (bin (string-append out "/bin"))
5678 (licenses (string-append out "/share/licenses"))
5679 (documents (string-append out "/share/doc"))
5680 (pixmaps (string-append out "/share/pixmaps"))
5681 (icon "te4-icon.png")
5682 (data (string-append out "/share/" ,name))
5683 (applications (string-append
5684 out "/share/applications"))
5685 (unzip (string-append
5686 (assoc-ref inputs "unzip") "/bin/unzip"))
5687 (wrapper (string-append bin "/" ,name)))
5688 ;; icon
5689 (mkdir-p pixmaps)
5690 (invoke unzip "-j"
5691 (string-append
5692 "game/engines/te4-" ,version ".teae")
5693 (string-append
5694 "data/gfx/" icon) "-d" pixmaps)
5695 ;; game executable
5696 (install-file "t-engine" data)
5697 (mkdir-p bin)
5698 (with-output-to-file wrapper
5699 (lambda ()
5700 (display
5701 (string-append
5702 "#!/bin/sh\n"
5703 ;; No bootstrap code found,
5704 ;; defaulting to working directory
5705 ;; for engine code!
5706 "cd " data "\n"
5707 "exec -a tome4 ./t-engine \"$@\"\n"))))
5708 (chmod wrapper #o555)
5709 ;; licenses
5710 (for-each (lambda (file)
5711 (install-file file licenses))
5712 '("COPYING" "COPYING-MEDIA"))
5713 ;; documents
5714 (for-each (lambda (file)
5715 (install-file file documents))
5716 '("CONTRIBUTING" "CREDITS"))
5717 ;; data
5718 (copy-recursively "bootstrap" (string-append
5719 data "/bootstrap"))
5720 (copy-recursively "game" (string-append data "/game"))
5721 ;; launcher
5722 (mkdir-p applications)
5723 (make-desktop-entry-file
5724 (string-append applications "/" ,name ".desktop")
5725 #:name "ToME4"
5726 #:comment ,synopsis
5727 #:exec ,name
5728 #:icon icon
5729 #:categories '("Game" "RolePlaying")))
5730 #t)))))
5731 (home-page "https://te4.org")
5732 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
5733 combat and advanced character building. Play as one of many unique races and
5734 classes in the lore-filled world of Eyal, exploring random dungeons, facing
5735 challenging battles, and developing characters with your own tailored mix of
5736 abilities and powers. With a modern graphical and customisable interface,
5737 intuitive mouse control, streamlined mechanics and deep, challenging combat,
5738 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
5739 (license license:gpl3+)))
5740
5741 (define-public quakespasm
5742 (package
5743 (name "quakespasm")
5744 (version "0.93.2")
5745 (source
5746 (origin
5747 (method url-fetch)
5748 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
5749 version ".tgz"))
5750 (sha256
5751 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
5752 (arguments
5753 `(#:tests? #f
5754 #:make-flags '("CC=gcc"
5755 "MP3LIB=mpg123"
5756 "USE_CODEC_FLAC=1"
5757 "USE_CODEC_MIKMOD=1"
5758 "USE_SDL2=1"
5759 "-CQuake")
5760 #:phases (modify-phases %standard-phases
5761 (delete 'configure)
5762 (add-after 'unpack 'fix-makefile-paths
5763 (lambda* (#:key outputs #:allow-other-keys)
5764 (let ((out (assoc-ref outputs "out")))
5765 (mkdir-p (string-append out "/bin"))
5766 (substitute* "Quake/Makefile"
5767 (("/usr/local/games")
5768 (string-append out "/bin")))
5769 #t))))))
5770 (build-system gnu-build-system)
5771 (inputs `(("libmikmod" ,libmikmod)
5772 ("libvorbis" ,libvorbis)
5773 ("flac" ,flac)
5774 ("mesa" ,mesa)
5775 ("mpg123" ,mpg123)
5776 ("sdl2" ,sdl2)))
5777 (synopsis "First person shooter engine for Quake 1")
5778 (description "Quakespasm is a modern engine for id software's Quake 1.
5779 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
5780 some graphical niceities, and numerous bug-fixes and other improvements.")
5781 (home-page "http://quakespasm.sourceforge.net/")
5782 (license license:gpl2+)))
5783
5784 (define-public vkquake
5785 (package
5786 (inherit quakespasm)
5787 (name "vkquake")
5788 (version "1.01.0")
5789 (source
5790 (origin
5791 (method git-fetch)
5792 (uri (git-reference
5793 (url "https://github.com/Novum/vkQuake.git")
5794 (commit version)))
5795 (file-name (git-file-name name version))
5796 (sha256
5797 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
5798 (arguments
5799 `(#:make-flags
5800 (let ((vulkanlib (string-append (assoc-ref %build-inputs
5801 "vulkan-loader") "/lib")))
5802 (list "CC=gcc"
5803 "MP3LIB=mpg123"
5804 "USE_CODEC_FLAC=1"
5805 "USE_CODEC_MIKMOD=1"
5806 "USE_SDL2=1"
5807 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
5808 "-CQuake"))
5809 #:phases (modify-phases %standard-phases
5810 (delete 'configure)
5811 (add-after 'unpack 'fix-makefile-paths
5812 (lambda* (#:key outputs #:allow-other-keys)
5813 (let ((vulkan (assoc-ref %build-inputs
5814 "vulkan-loader"))
5815 (out (assoc-ref outputs "out")))
5816 (mkdir-p (string-append out "/bin"))
5817 (substitute* "Quake/Makefile" ((" /usr")
5818 (string-append " " out)))
5819 (substitute* "Quake/Makefile" (("/games")
5820 (string-append "/bin")))
5821 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
5822 #t))))
5823 ,@(strip-keyword-arguments '(#:make-flags #:phases)
5824 (package-arguments quakespasm))))
5825 (inputs `(("vulkan-headers" ,vulkan-headers)
5826 ("vulkan-loader" ,vulkan-loader)
5827 ,@(package-inputs quakespasm)))
5828 (description "vkquake is a modern engine for id software's Quake 1.
5829 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
5830 some graphical niceities, and numerous bug-fixes and other improvements.")
5831 (home-page "https://github.com/Novum/vkQuake")))
5832
5833 (define-public yamagi-quake2
5834 (package
5835 (name "yamagi-quake2")
5836 (version "7.10")
5837 (source
5838 (origin
5839 (method url-fetch)
5840 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
5841 version ".tar.xz"))
5842 (sha256
5843 (base32
5844 "0psinbg25mysd58k99s1n34w31w5hj1vppb39gdjb0zqi6sl6cps"))))
5845 (build-system gnu-build-system)
5846 (arguments
5847 `(#:tests? #f
5848 #:make-flags
5849 (list "CC=gcc"
5850 ;; link openAL instead of using dlopen at runtime
5851 "DLOPEN_OPENAL=\"no\""
5852 ;; an optional directory where it will look for quake2 data files
5853 ;; in addition to the current working directory
5854 "WITH_SYSTEMWIDE=yes"
5855 "WITH_SYSTEMDIR=\"/opt/quake2\"")
5856 #:phases
5857 (modify-phases %standard-phases
5858 (delete 'configure)
5859 (replace 'install
5860 (lambda* (#:key outputs #:allow-other-keys)
5861 (let ((out (assoc-ref outputs "out")))
5862 (mkdir-p (string-append out "/lib"))
5863 (mkdir-p (string-append out "/bin"))
5864 ;; The yamagi-quake2 binary must be in the same directory
5865 ;; as it's engine libraries, but symlinking it to /bin is okay
5866 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
5867 (copy-recursively "release"
5868 (string-append out "/lib/yamagi-quake2"))
5869 (symlink (string-append out "/lib/yamagi-quake2/quake2")
5870 (string-append out "/bin/yamagi-quake2"))
5871 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
5872 (string-append out "/bin/yamagi-q2ded"))))))))
5873 (inputs `(("sdl2" ,sdl2)
5874 ("mesa" ,mesa)
5875 ("libvorbis" ,libvorbis)
5876 ("zlib" ,zlib)
5877 ("openal" ,openal)))
5878 (native-inputs `(("pkg-config" ,pkg-config)))
5879 (synopsis "First person shooter engine based on quake2")
5880 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
5881 The main focus is an unchanged single player experience like back in 1997,
5882 thus the gameplay and the graphics are unaltered. However the user may use one
5883 of the unofficial retexturing packs. In comparison with the official client,
5884 over 1000 bugs were fixed and an extensive code audit done,
5885 making Yamagi Quake II one of the most solid Quake II implementations available.")
5886 (home-page "https://www.yamagi.org/quake2/")
5887 (license (list license:gpl2+ ; game and server
5888 (license:non-copyleft ; info-zip
5889 "file://LICENSE"
5890 "See Info-Zip section.")
5891 license:public-domain)))) ; stb
5892
5893 (define-public nudoku
5894 (package
5895 (name "nudoku")
5896 (version "1.0.0")
5897 (source (origin
5898 (method url-fetch)
5899 (uri (string-append "https://github.com/jubalh/nudoku/"
5900 "releases/download/" version
5901 "/nudoku-" version ".tar.xz"))
5902 (sha256
5903 (base32
5904 "0nr2j2z07nxk70s8xnmmpzccxicf7kn5mbwby2kg6aq8paarjm8k"))))
5905 (build-system gnu-build-system)
5906 (inputs `(("ncurses" ,ncurses)))
5907 (home-page "https://jubalh.github.io/nudoku/")
5908 (synopsis "Sudoku for your terminal")
5909 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
5910 (license license:gpl3+)))
5911
5912 (define-public the-butterfly-effect
5913 (package
5914 (name "the-butterfly-effect")
5915 (version "0.9.3.1")
5916 (source
5917 (origin
5918 (method git-fetch)
5919 (uri (git-reference
5920 (url "https://github.com/the-butterfly-effect/tbe.git")
5921 (commit (string-append "v" version))))
5922 (file-name (git-file-name name version))
5923 (sha256
5924 (base32
5925 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
5926 (build-system gnu-build-system)
5927 (arguments
5928 `(#:phases
5929 (modify-phases %standard-phases
5930 (delete 'configure)
5931 ;; There is no "install" phase. By default, tbe is installed
5932 ;; in the build directory. Provide our own installation.
5933 (replace 'install
5934 (lambda* (#:key outputs #:allow-other-keys)
5935 (let* ((out (assoc-ref outputs "out"))
5936 (bin (string-append out "/bin"))
5937 (share (string-append out "/share")))
5938 (install-file "usr/games/tbe" bin)
5939 (mkdir-p share)
5940 (copy-recursively "usr/share" share)
5941 #t))))
5942 ;; Test suite requires a running Xorg server. Even when
5943 ;; provided, it fails with "D-Bus library appears to be
5944 ;; incorrectly set up; failed to read machine uuid: Failed to
5945 ;; open "/etc/machine-id": No such file or directory" along
5946 ;; with multiple "QPainter:: ... Painter not active" warnings.
5947 #:tests? #f))
5948 (inputs
5949 `(("qtbase" ,qtbase)
5950 ("qtsvg" ,qtsvg)))
5951 (native-inputs
5952 `(("cmake" ,cmake-minimal)
5953 ("gettext-minimal" ,gettext-minimal)
5954 ("qttools" ,qttools)))
5955 (synopsis "Realistic physics puzzle game")
5956 (description "The Butterfly Effect (tbe) is a game that uses
5957 realistic physics simulations to combine lots of simple mechanical
5958 elements to achieve a simple goal in the most complex way possible.")
5959 (home-page "http://the-butterfly-effect.org/")
5960 ;; Main license is GPL2-only. However, artwork is distributed
5961 ;; under various licenses, listed here.
5962 (license (list license:gpl2 license:public-domain license:expat
5963 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
5964
5965 (define-public pioneer
5966 (package
5967 (name "pioneer")
5968 (version "20200203")
5969 (source (origin
5970 (method git-fetch)
5971 (uri (git-reference
5972 (url "https://github.com/pioneerspacesim/pioneer.git")
5973 (commit version)))
5974 (file-name (git-file-name name version))
5975 (sha256
5976 (base32
5977 "1011xsi94jhw98mhm8kryq8ajig0qfbrdx5xdasi92bd4nk7lcp8"))))
5978 (build-system cmake-build-system)
5979 (native-inputs
5980 `(("pkg-config" ,pkg-config)))
5981 (inputs
5982 `(("assimp" ,assimp)
5983 ("curl" ,curl)
5984 ("freetype" ,freetype)
5985 ("glew" ,glew)
5986 ("glu" ,glu)
5987 ("libpng" ,libpng)
5988 ("libsigc++" ,libsigc++)
5989 ("libvorbis" ,libvorbis)
5990 ("lua" ,lua-5.2) ;not compatible with 5.3
5991 ("mesa" ,mesa)
5992 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
5993 (arguments
5994 `(#:tests? #f ;tests are broken
5995 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
5996 (string-append "-DPIONEER_DATA_DIR="
5997 %output "/share/games/pioneer"))))
5998 (home-page "https://pioneerspacesim.net")
5999 (synopsis "Game of lonely space adventure")
6000 (description
6001 "Pioneer is a space adventure game set in our galaxy at the turn of the
6002 31st century. The game is open-ended, and you are free to eke out whatever
6003 kind of space-faring existence you can think of. Look for fame or fortune by
6004 exploring the millions of star systems. Turn to a life of crime as a pirate,
6005 smuggler or bounty hunter. Forge and break alliances with the various
6006 factions fighting for power, freedom or self-determination. The universe is
6007 whatever you make of it.")
6008 (license license:gpl3)))
6009
6010 (define-public badass
6011 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
6012 (revision "0"))
6013 (package
6014 (name "badass")
6015 (version (git-version "0.0" revision commit))
6016 (source (origin
6017 (method git-fetch)
6018 (uri (git-reference
6019 (url "https://github.com/umayr/badass.git")
6020 (commit commit)))
6021 (file-name (git-file-name name version))
6022 (sha256
6023 (base32
6024 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
6025 (build-system go-build-system)
6026 (arguments
6027 '(#:import-path "github.com/umayr/badass"))
6028 (synopsis "Hacking contribution graphs in git")
6029 (description
6030 "Badass generates false commits for a range of dates, essentially
6031 hacking the gamification of contribution graphs on platforms such as
6032 Github or Gitlab.")
6033 (home-page "https://github.com/umayr/badass")
6034 (license license:expat))))
6035
6036 (define-public colobot
6037 (package
6038 (name "colobot")
6039 (version "0.1.12-alpha")
6040 (source
6041 (origin
6042 (method git-fetch)
6043 (uri (git-reference
6044 (url "https://github.com/colobot/colobot.git")
6045 (commit (string-append "colobot-gold-" version))
6046 (recursive? #t))) ;for "data/" subdir
6047 (file-name (git-file-name name version))
6048 (sha256
6049 (base32
6050 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
6051 (build-system cmake-build-system)
6052 (arguments
6053 `(#:tests? #f ;no test
6054 #:phases
6055 (modify-phases %standard-phases
6056 (add-after 'unpack 'make-git-checkout-writable
6057 (lambda _
6058 (for-each make-file-writable (find-files "."))
6059 #t))
6060 (add-after 'unpack 'fix-directories
6061 (lambda _
6062 (substitute* "CMakeLists.txt"
6063 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
6064 (string-append prefix "/bin"))
6065 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
6066 (string-append prefix "/colobot")))
6067 #t))
6068 (add-after 'fix-directories 'install-music
6069 ;; Retrieve and install music files.
6070 (lambda* (#:key inputs #:allow-other-keys)
6071 ;; Installation process tries to download music files using
6072 ;; "wget" if not already present. Since we are going another
6073 ;; route, skip "wget" command check.
6074 (substitute* "data/music/CMakeLists.txt"
6075 (("find_program\\(WGET wget\\)") ""))
6076 ;; Populate "music/" directory.
6077 (let ((data (assoc-ref inputs "colobot-music")))
6078 (invoke "tar" "-xvf" data "-Cdata/music"))
6079 #t)))))
6080 (native-inputs
6081 `(("colobot-music"
6082 ,(origin
6083 (method url-fetch)
6084 (uri (string-append "https://colobot.info/files/music/"
6085 "colobot-music_ogg_" version ".tar.gz"))
6086 (sha256
6087 (base32
6088 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
6089 ("gettext" ,gettext-minimal)
6090 ("librsvg" ,librsvg)
6091 ("po4a" ,po4a)
6092 ("python" ,python-wrapper)))
6093 (inputs
6094 `(("boost" ,boost)
6095 ("glew" ,glew)
6096 ("libogg" ,libogg)
6097 ("libpng" ,libpng)
6098 ("libsndfile" ,libsndfile)
6099 ("libvorbis" ,libvorbis)
6100 ("openal" ,openal)
6101 ("physfs" ,physfs)
6102 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
6103 (synopsis "Educational programming strategy game")
6104 (description "Colobot: Gold Edition is a real-time strategy game, where
6105 you can program your units (bots) in a language called CBOT, which is similar
6106 to C++ and Java. Your mission is to find a new planet to live and survive.
6107 You can save humanity and get programming skills!")
6108 (home-page "https://colobot.info")
6109 (license license:gpl3+)))
6110
6111 (define-public gzdoom
6112 (package
6113 (name "gzdoom")
6114 (version "4.3.2")
6115 (source
6116 (origin
6117 (method git-fetch)
6118 (uri (git-reference
6119 (url "https://github.com/coelckers/gzdoom.git")
6120 (commit (string-append "g" version))))
6121 (file-name (git-file-name name version))
6122 (sha256
6123 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
6124 (patches (search-patches "gzdoom-search-in-installed-share.patch"
6125 "gzdoom-find-system-libgme.patch"))
6126 (modules '((guix build utils)))
6127 (snippet
6128 '(begin
6129 ;; Remove some bundled libraries. XXX There are more, but removing
6130 ;; them would require, at least, patching the build system.
6131 (with-directory-excursion "libraries"
6132 (delete-file-recursively "bzip2")
6133 (delete-file-recursively "game-music-emu")
6134 (delete-file-recursively "jpeg")
6135 (delete-file-recursively "zlib"))
6136 #t))))
6137 (arguments
6138 '(#:tests? #f
6139 #:configure-flags
6140 (let ((out (assoc-ref %outputs "out")))
6141 (list
6142 (string-append
6143 "-DCMAKE_CXX_FLAGS:="
6144 "-DSHARE_DIR=\\\"" out "/share/\\\" "
6145 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
6146
6147 ;; The build requires some extra convincing not to use the bundled
6148 ;; libgme previously deleted in the soure snippet.
6149 "-DFORCE_INTERNAL_GME=OFF"
6150
6151 ;; Link libraries at build time instead of loading them at run time.
6152 "-DDYN_OPENAL=OFF"
6153 "-DDYN_FLUIDSYNTH=OFF"
6154 "-DDYN_GTK=OFF"
6155 "-DDYN_MPG123=OFF"
6156 "-DDYN_SNDFILE=OFF"))
6157 #:phases
6158 (modify-phases %standard-phases
6159 (add-before 'configure 'fix-referenced-paths
6160 (lambda* (#:key inputs outputs #:allow-other-keys)
6161 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
6162 (timidity++ (assoc-ref inputs "timidity++"))
6163 (out (assoc-ref outputs "out")))
6164
6165 (substitute*
6166 "src/CMakeLists.txt"
6167 (("COMMAND /bin/sh")
6168 (string-append "COMMAND " (which "sh"))))
6169
6170 (substitute*
6171 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
6172 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
6173 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
6174
6175 (substitute*
6176 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
6177 (("exename = \"timidity\"")
6178 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
6179 #t))))))
6180 (build-system cmake-build-system)
6181 (inputs `(("bzip2" ,bzip2)
6182 ("fluid-3" ,fluid-3)
6183 ("fluidsynth" ,fluidsynth)
6184 ("gtk+3" ,gtk+)
6185 ("libgme" ,libgme)
6186 ("libjpeg" ,libjpeg-turbo)
6187 ("libsndfile" ,libsndfile)
6188 ("mesa" ,mesa)
6189 ("mpg123" ,mpg123)
6190 ("openal" ,openal)
6191 ("sdl2" ,sdl2)
6192 ("timidity++" ,timidity++)
6193 ("zlib" ,zlib)))
6194 (native-inputs `(("pkg-config" ,pkg-config)
6195 ("unzip" ,unzip)))
6196 (synopsis "Modern Doom 2 source port")
6197 (description "GZdoom is a port of the Doom 2 game engine, with a modern
6198 renderer. It improves modding support with ZDoom's advanced mapping features
6199 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
6200 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
6201 (home-page "https://zdoom.org/index")
6202 ;; The source uses x86 assembly
6203 (supported-systems '("x86_64-linux" "i686-linux"))
6204 (license (list license:gpl3+ ; gzdoom game
6205 license:lgpl3+ ; gzdoom renderer
6206 license:expat ; gdtoa
6207 (license:non-copyleft ; modified dumb
6208 "file://dumb/licence.txt"
6209 "Dumb license, explicitly GPL compatible.")))))
6210
6211 (define-public odamex
6212 (package
6213 (name "odamex")
6214 (version "0.8.1")
6215 (source
6216 (origin
6217 (method url-fetch)
6218 (uri (string-append
6219 "mirror://sourceforge/odamex/Odamex/" version "/"
6220 "odamex-src-" version ".tar.gz"))
6221 (sha256
6222 (base32 "1ywbqkfacc9fc5di3dn95y5ah2ys9i241j64q3f37a73x92llw1i"))))
6223 (build-system cmake-build-system)
6224 (arguments `(#:tests? #f)) ; no tests
6225 (inputs
6226 `(("sdl" ,sdl)
6227 ("sdl-mixer" ,sdl-mixer)
6228 ("zlib" ,zlib)
6229 ("libpng" ,libpng)
6230 ("alsa-lib" ,alsa-lib)))
6231 (home-page "https://odamex.net/")
6232 (synopsis "Multiplayer Doom port")
6233 (description "Odamex is a modification of the Doom engine that
6234 allows players to easily join servers dedicated to playing Doom
6235 online.")
6236 (license license:gpl2+)))
6237
6238 (define-public chocolate-doom
6239 (package
6240 (name "chocolate-doom")
6241 (version "3.0.0")
6242 (source (origin
6243 (method url-fetch)
6244 (uri (string-append "https://www.chocolate-doom.org/downloads/"
6245 version
6246 "/chocolate-doom-"
6247 version
6248 ".tar.gz"))
6249 (sha256
6250 (base32
6251 "1f6sw6qa9z0a70dsjh5cs45fkyyxw68s7vkqlykihz8cjcisdbkk"))))
6252 (build-system gnu-build-system)
6253 (inputs `(("sdl2-net" ,sdl2-net)
6254 ("sdl2-mixer" , sdl2-mixer)
6255 ("sdl2" ,sdl2)))
6256 (native-inputs
6257 `(("pkg-config" ,pkg-config)))
6258 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
6259 Doom")
6260 (description
6261 "Chocolate Doom takes a different approach to other source ports. Its
6262 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
6263 a conservative, historically accurate Doom source port, which is compatible
6264 with the thousands of mods and levels that were made before the Doom source
6265 code was released. Rather than flashy new graphics, Chocolate Doom's main
6266 features are its accurate reproduction of the game as it was played in the
6267 1990s. The project is developed around a carefully-considered philosophy that
6268 intentionally restricts which features may be added (and rejects any that
6269 affect gameplay).")
6270 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
6271 (license license:gpl2)))
6272
6273 (define-public crispy-doom
6274 (package
6275 (inherit chocolate-doom)
6276 (name "crispy-doom")
6277 (version "5.8.0")
6278 (source (origin
6279 (method git-fetch)
6280 (uri (git-reference
6281 (url "https://github.com/fabiangreffrath/crispy-doom.git")
6282 (commit (string-append "crispy-doom-" version))))
6283 (file-name (git-file-name name version))
6284 (sha256
6285 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
6286 (native-inputs
6287 (append
6288 (package-native-inputs chocolate-doom)
6289 `(("automake" ,automake)
6290 ("autoreconf" ,autoconf))))
6291 (arguments
6292 `(#:phases
6293 (modify-phases %standard-phases
6294 (replace 'bootstrap
6295 ;; The bundled autogen.sh script unconditionally runs ./configure.
6296 (lambda _ (invoke "autoreconf" "-vif"))))))
6297 (synopsis "Limit-removing enhanced-resolution Doom source port based on
6298 Chocolate Doom")
6299 (description
6300 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
6301 display resolution, removes the static limits of the Doom engine and offers
6302 further optional visual, tactical and physical enhancements while remaining
6303 entirely config file, savegame, netplay and demo compatible with the
6304 original.")
6305 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
6306
6307 (define shlomif-cmake-modules
6308 (origin
6309 (method url-fetch)
6310 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
6311 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
6312 "shlomif-cmake-modules/Shlomif_Common.cmake"))
6313 (sha256
6314 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
6315
6316 (define-public rinutils
6317 (package
6318 (name "rinutils")
6319 (version "0.2.0")
6320 (source (origin
6321 (method git-fetch)
6322 (uri (git-reference
6323 (url "https://github.com/shlomif/rinutils.git")
6324 (commit version)))
6325 (file-name (git-file-name name version))
6326 (sha256
6327 (base32
6328 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
6329 (native-inputs
6330 `(("perl" ,perl)
6331 ;; The following is only needed for tests.
6332 ("perl-file-find-object" ,perl-file-find-object)
6333 ("perl-test-differences" ,perl-test-differences)
6334 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
6335 ("perl-io-all" ,perl-io-all)
6336 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
6337 ("cmake-rules" ,shlomif-cmake-modules)
6338 ("pkg-config" ,pkg-config)))
6339 (inputs
6340 `(("cmocka" ,cmocka)
6341 ("perl-env-path", perl-env-path)
6342 ("perl-inline" ,perl-inline)
6343 ("perl-inline-c" ,perl-inline-c)
6344 ("perl-string-shellquote" ,perl-string-shellquote)
6345 ("perl-test-trailingspace" ,perl-test-trailingspace)
6346 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
6347 ("perl-text-glob" ,perl-text-glob)
6348 ("perl-number-compare" ,perl-number-compare)
6349 ("perl-moo" ,perl-moo)))
6350 (arguments
6351 `(#:phases
6352 (modify-phases %standard-phases
6353 (add-after 'unpack 'fix-build-env
6354 (lambda* (#:key inputs #:allow-other-keys)
6355 (use-modules (guix build utils))
6356 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
6357 (copy-file cmake-rules
6358 (string-append "cmake/"
6359 (strip-store-file-name cmake-rules)))
6360 #t)))
6361 (replace 'check
6362 (lambda _
6363 (with-directory-excursion "../source"
6364 (setenv "FCS_TEST_BUILD" "1")
6365 (setenv "RINUTILS_TEST_BUILD" "1")
6366 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
6367 ;; which requires tidy-all.
6368 ;; (setenv "RINUTILS_TEST_TIDY" "1")
6369 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
6370 (build-system cmake-build-system)
6371 (home-page "https://www.shlomifish.org/open-source/projects/")
6372 (synopsis "C11 / gnu11 utilities C library")
6373 (description "This package provides C11 / gnu11 utilities C library")
6374 (license license:expat)))
6375
6376 (define-public fortune-mod
6377 (package
6378 (name "fortune-mod")
6379 (version "2.12.0")
6380 (source
6381 (origin
6382 (method git-fetch)
6383 (uri (git-reference
6384 (url "https://github.com/shlomif/fortune-mod")
6385 (commit (string-append "fortune-mod-" version))))
6386 (file-name (git-file-name name version))
6387 (sha256
6388 (base32
6389 "0laxgqsdg7kvpvvm1f54b94ga9r0cr9g3ffii8avg8fy65x6pzc9"))))
6390 (build-system cmake-build-system)
6391 (arguments
6392 `(#:test-target "check"
6393 #:phases
6394 (modify-phases %standard-phases
6395 (add-after 'unpack 'fix-build-env
6396 (lambda* (#:key inputs #:allow-other-keys)
6397 (use-modules (guix build utils))
6398 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
6399 (copy-file cmake-rules
6400 (string-append "fortune-mod/cmake/"
6401 (strip-store-file-name cmake-rules)))
6402 (chdir "fortune-mod")
6403 ;; TODO: Valgrind tests fail for some reason.
6404 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
6405 (delete-file "tests/t/valgrind.t")
6406 #t)))
6407 (add-after 'install 'fix-install-directory
6408 (lambda* (#:key outputs #:allow-other-keys)
6409 ;; Move binary from "games/" to "bin/" and remove the latter. This
6410 ;; is easier than patching CMakeLists.txt since the tests hard-code
6411 ;; the location as well.
6412 (let* ((out (assoc-ref outputs "out"))
6413 (bin (string-append out "/bin"))
6414 (games (string-append out "/games")))
6415 (rename-file (string-append games "/fortune")
6416 (string-append bin "/fortune"))
6417 (rmdir games)
6418 #t))))))
6419 (inputs `(("recode" ,recode)))
6420 (native-inputs
6421 `(("perl" ,perl)
6422 ;; The following is only needed for tests.
6423 ("perl-file-find-object" ,perl-file-find-object)
6424 ("perl-test-differences" ,perl-test-differences)
6425 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
6426 ("perl-io-all" ,perl-io-all)
6427 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
6428 ("cmake-rules" ,shlomif-cmake-modules)
6429 ("rinutils" ,rinutils)))
6430 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
6431 (synopsis "The Fortune Cookie program from BSD games")
6432 (description "Fortune is a command-line utility which displays a random
6433 quotation from a collection of quotes.")
6434 (license license:bsd-4)))
6435
6436 (define xonotic-data
6437 (package
6438 (name "xonotic-data")
6439 (version "0.8.2")
6440 (source
6441 (origin
6442 (method url-fetch)
6443 (uri (string-append "http://dl.xonotic.org/xonotic-"
6444 version ".zip"))
6445 (file-name (string-append name "-" version ".zip"))
6446 (sha256
6447 (base32
6448 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
6449 (build-system trivial-build-system)
6450 (native-inputs
6451 `(("unzip" ,unzip)))
6452 (arguments
6453 `(#:modules ((guix build utils))
6454 #:builder
6455 (begin
6456 (use-modules (guix build utils))
6457 (let* ((out (assoc-ref %outputs "out"))
6458 (xonotic (string-append out "/share/xonotic"))
6459 (source (assoc-ref %build-inputs "source"))
6460 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
6461 (copy-file source (string-append ,name "-" ,version ".zip"))
6462 (invoke unzip (string-append ,name "-" ,version ".zip"))
6463 (mkdir-p out)
6464 (mkdir-p xonotic)
6465 (chdir "Xonotic")
6466 (copy-recursively "data"
6467 (string-append xonotic "/data"))
6468 (copy-recursively "server"
6469 (string-append xonotic "/server"))
6470 (install-file "key_0.d0pk" xonotic)))))
6471 (home-page "http://xonotic.org")
6472 (synopsis "Data files for Xonotic")
6473 (description
6474 "Xonotic-data provides the data files required by the game Xonotic.")
6475 (license (list license:gpl2+
6476 (license:x11-style "file://server/rcon.pl")))))
6477
6478 (define-public xonotic
6479 (package
6480 (name "xonotic")
6481 (version "0.8.2")
6482 (source
6483 (origin
6484 (method url-fetch)
6485 (uri (string-append "http://dl.xonotic.org/xonotic-"
6486 version "-source.zip"))
6487 (file-name (string-append name "-" version ".zip"))
6488 (sha256
6489 (base32
6490 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
6491 (build-system gnu-build-system)
6492 (arguments
6493 `(#:configure-flags (list (string-append "--prefix="
6494 (assoc-ref %outputs "out"))
6495 "--disable-rijndael")
6496 #:phases
6497 (modify-phases %standard-phases
6498 (add-before 'configure 'make-darkplaces
6499 (lambda* (#:key outputs #:allow-other-keys)
6500 (let* ((out (assoc-ref outputs "out"))
6501 (sharedir (string-append out "/share/xonotic/")))
6502 (invoke "make" "-C" "source/darkplaces"
6503 (string-append "DP_FS_BASEDIR="
6504 sharedir)
6505 "DP_LINK_TO_LIBJPEG=1"
6506 "DP_SOUND_API=ALSA"
6507 "CC=gcc"
6508 "-f" "makefile"
6509 "cl-release")
6510 (invoke "make" "-C" "source/darkplaces"
6511 (string-append "DP_FS_BASEDIR="
6512 sharedir)
6513 "DP_LINK_TO_LIBJPEG=1"
6514 "DP_SOUND_API=ALSA"
6515 "CC=gcc"
6516 "-f" "makefile"
6517 "sdl-release")
6518 (invoke "make" "-C" "source/darkplaces"
6519 (string-append "DP_FS_BASEDIR="
6520 sharedir)
6521 "DP_LINK_TO_LIBJPEG=1"
6522 "DP_SOUND_API=ALSA"
6523 "CC=gcc"
6524 "-f" "makefile"
6525 "sv-release"))))
6526 (add-before 'configure 'bootstrap
6527 (lambda _
6528 (chdir "source/d0_blind_id")
6529 (invoke "sh" "autogen.sh")))
6530 (add-after 'build 'install-desktop-entry
6531 (lambda* (#:key outputs #:allow-other-keys)
6532 ;; Add .desktop files for the 2 variants and the symlink
6533 (let* ((output (assoc-ref outputs "out"))
6534 (apps (string-append output "/share/applications")))
6535 (mkdir-p apps)
6536 (with-output-to-file
6537 (string-append apps "/xonotic-glx.desktop")
6538 (lambda _
6539 (format #t
6540 "[Desktop Entry]~@
6541 Name=xonotic-glx~@
6542 Comment=Xonotic glx~@
6543 Exec=~a/bin/xonotic-glx~@
6544 TryExec=~@*~a/bin/xonotic-glx~@
6545 Icon=xonotic~@
6546 Categories=Game~@
6547 Type=Application~%"
6548 output)))
6549 (with-output-to-file
6550 (string-append apps "/xonotic-sdl.desktop")
6551 (lambda _
6552 (format #t
6553 "[Desktop Entry]~@
6554 Name=xonotic-sdl~@
6555 Comment=Xonotic sdl~@
6556 Exec=~a/bin/xonotic-sdl~@
6557 TryExec=~@*~a/bin/xonotic-sdl~@
6558 Icon=xonotic~@
6559 Categories=Game~@
6560 Type=Application~%"
6561 output)))
6562 (with-output-to-file
6563 (string-append apps "/xonotic.desktop")
6564 (lambda _
6565 (format #t
6566 "[Desktop Entry]~@
6567 Name=xonotic~@
6568 Comment=Xonotic~@
6569 Exec=~a/bin/xonotic-glx~@
6570 TryExec=~@*~a/bin/xonotic~@
6571 Icon=xonotic~@
6572 Categories=Game~@
6573 Type=Application~%"
6574 output)))
6575 #t)))
6576 (add-after 'install-desktop-entry 'install-icons
6577 (lambda* (#:key outputs #:allow-other-keys)
6578 (let ((out (assoc-ref outputs "out")))
6579 (with-directory-excursion "../../misc/logos/icons_png/"
6580 (for-each
6581 (lambda (file)
6582 (let* ((size (string-filter char-numeric? file))
6583 (icons (string-append out "/share/icons/hicolor/"
6584 size "x" size "/apps")))
6585 (mkdir-p icons)
6586 (copy-file file (string-append icons "/xonotic.png"))))
6587 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
6588 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
6589 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
6590 (add-after 'install-icons 'install-binaries
6591 (lambda* (#:key outputs #:allow-other-keys)
6592 (let ((out (assoc-ref outputs "out")))
6593 (define (install src dst)
6594 (let ((dst (string-append out dst)))
6595 (mkdir-p (dirname dst))
6596 (copy-file src dst)))
6597 (mkdir-p (string-append out "/bin"))
6598 (install "../darkplaces/darkplaces-dedicated"
6599 "/bin/xonotic-dedicated")
6600 (install "../darkplaces/darkplaces-glx"
6601 "/bin/xonotic-glx")
6602 (install "../darkplaces/darkplaces-sdl"
6603 "/bin/xonotic-sdl")
6604 ;; Provide a default xonotic executable, defaulting to SDL.
6605 (symlink (string-append out "/bin/xonotic-sdl")
6606 (string-append out "/bin/xonotic"))
6607 #t)))
6608 (add-after 'install-binaries 'install-data
6609 (lambda* (#:key outputs inputs #:allow-other-keys)
6610 (let* ((out (assoc-ref outputs "out"))
6611 (data (assoc-ref inputs "xonotic-data")))
6612 (symlink (string-append data "/share/xonotic")
6613 (string-append out "/share/xonotic"))
6614 #t)))
6615 (add-after 'install-binaries 'wrap-binaries
6616 (lambda* (#:key outputs inputs #:allow-other-keys)
6617 ;; Curl and libvorbis need to be wrapped so that we get
6618 ;; sound and networking.
6619 (let* ((out (assoc-ref outputs "out"))
6620 (bin (string-append out "/bin/xonotic"))
6621 (bin-sdl (string-append out "/bin/xonotic-sdl"))
6622 (bin-glx (string-append out "/bin/xonotic-glx"))
6623 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
6624 (curl (assoc-ref inputs "curl"))
6625 (vorbis (assoc-ref inputs "libvorbis")))
6626 (wrap-program bin
6627 `("LD_LIBRARY_PATH" ":" prefix
6628 (,(string-append curl "/lib:" vorbis "/lib"))))
6629 (wrap-program bin-sdl
6630 `("LD_LIBRARY_PATH" ":" prefix
6631 (,(string-append curl "/lib:" vorbis "/lib"))))
6632 (wrap-program bin-glx
6633 `("LD_LIBRARY_PATH" ":" prefix
6634 (,(string-append curl "/lib:" vorbis "/lib"))))
6635 (wrap-program bin-dedicated
6636 `("LD_LIBRARY_PATH" ":" prefix
6637 (,(string-append curl "/lib:" vorbis "/lib"))))
6638 #t))))))
6639 (inputs
6640 `(("xonotic-data" ,xonotic-data)
6641 ("alsa-lib" ,alsa-lib)
6642 ("curl" ,curl)
6643 ("libjpeg" ,libjpeg-turbo)
6644 ("libmodplug" ,libmodplug)
6645 ("libvorbis" ,libvorbis)
6646 ("libogg" ,libogg)
6647 ("libxpm" ,libxpm)
6648 ("libxxf86dga" ,libxxf86dga)
6649 ("libxxf86vm" ,libxxf86vm)
6650 ("libx11" ,libx11)
6651 ("libxext" ,libxext)
6652 ("libxau" ,libxau)
6653 ("libxdmcp" ,libxdmcp)
6654 ("mesa" ,mesa)
6655 ("glu" ,glu)
6656 ("freetype" ,freetype)
6657 ("sdl2" ,sdl2)
6658 ("libpng" ,libpng)
6659 ("hicolor-icon-theme" ,hicolor-icon-theme)))
6660 (native-inputs
6661 `(("unzip" ,unzip)
6662 ("autoconf" ,autoconf)
6663 ("automake" ,automake)
6664 ("pkg-config" ,pkg-config)
6665 ("libtool" ,libtool)
6666 ("gmp" ,gmp)))
6667 (home-page "http://xonotic.org")
6668 (synopsis "Fast-paced first-person shooter game")
6669 (description
6670 "Xonotic is a free, fast-paced first-person shooter.
6671 The project is geared towards providing addictive arena shooter
6672 gameplay which is all spawned and driven by the community itself.
6673 Xonotic is a direct successor of the Nexuiz project with years of
6674 development between them, and it aims to become the best possible
6675 open-source FPS of its kind.")
6676 (license (list license:gpl2+
6677 license:bsd-3 ; /source/d0_blind_id folder and others
6678 (license:x11-style "" "See file rcon.pl.")))))
6679
6680 (define-public frotz
6681 (package
6682 (name "frotz")
6683 (version "2.44")
6684 (source (origin
6685 (method url-fetch)
6686 (uri (list (string-append
6687 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
6688 "frotz/frotz-" version ".tar.gz")
6689 (string-append
6690 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
6691 "frotz/frotz-" version ".tar.gz")))
6692 (sha256
6693 (base32
6694 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
6695 (build-system gnu-build-system)
6696 (arguments
6697 `(#:tests? #f ; there are no tests
6698 #:phases
6699 (modify-phases %standard-phases
6700 (delete 'configure)
6701 (add-before 'build 'curses
6702 (lambda _
6703 (substitute* "Makefile"
6704 (("lcurses") "lncurses"))
6705 #t))
6706 (replace 'install
6707 (lambda* (#:key outputs #:allow-other-keys)
6708 (let* ((out (assoc-ref outputs "out"))
6709 (bin (string-append out "/bin"))
6710 (man (string-append out "/share/man/man6")))
6711 (install-file "frotz" bin)
6712 (mkdir-p man)
6713 (install-file "doc/frotz.6" man)
6714 #t))))))
6715 (inputs `(("libmodplug" ,libmodplug)
6716 ("libsamplerate" ,libsamplerate)
6717 ("libsndfile" ,libsndfile)
6718 ("libvorbis" ,libvorbis)
6719 ("ncurses" ,ncurses)))
6720 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
6721 (description "Frotz is an interpreter for Infocom games and other Z-machine
6722 games in the text adventure/interactive fiction genre. This version of Frotz
6723 complies with standard 1.0 of Graham Nelson's specification. It plays all
6724 Z-code games V1-V8, including V6, with sound support through libao, and uses
6725 ncurses for text display.")
6726 (home-page "http://frotz.sourceforge.net")
6727 (license license:gpl2+)))
6728
6729 (define-public frotz-dumb-terminal
6730 (package
6731 (name "frotz-dumb-terminal")
6732 (version "2.44")
6733 (source (origin
6734 (method url-fetch)
6735 (uri (list (string-append
6736 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
6737 "frotz/frotz-" version ".tar.gz")
6738 (string-append
6739 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
6740 "frotz/frotz-" version ".tar.gz")))
6741 (sha256
6742 (base32
6743 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
6744 (build-system gnu-build-system)
6745 (arguments
6746 `(#:tests? #f ; there are no tests
6747 #:phases
6748 (modify-phases %standard-phases
6749 (delete 'configure)
6750 (replace 'build
6751 (lambda _
6752 (invoke "make" "dumb")))
6753 (replace 'install
6754 (lambda* (#:key outputs #:allow-other-keys)
6755 (let* ((out (assoc-ref outputs "out"))
6756 (bin (string-append out "/bin"))
6757 (man (string-append out "/share/man/man6")))
6758 (install-file "dfrotz" bin)
6759 (mkdir-p man)
6760 (install-file "doc/dfrotz.6" man)
6761 #t))))))
6762 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
6763 (description "Frotz is an interpreter for Infocom games and
6764 other Z-machine games in the text adventure/interactive fiction genre.
6765 dfrotz is the dumb interface version. You get no screen control; everything
6766 is just printed to the terminal line by line. The terminal handles all the
6767 scrolling. Maybe you'd like to experience what it's like to play Adventure on
6768 a teletype. A much cooler use for compiling Frotz with the dumb interface is
6769 that it can be wrapped in CGI scripting, PHP, and the like to allow people
6770 to play games on webpages. It can also be made into a chat bot.")
6771 (home-page "http://frotz.sourceforge.net")
6772 (license license:gpl2+)))
6773
6774 (define-public frotz-sdl
6775 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
6776 (package
6777 (name "frotz-sdl")
6778 (version "2.45pre")
6779 (source (origin
6780 (method git-fetch)
6781 (uri (git-reference
6782 (url "https://gitlab.com/DavidGriffith/frotz")
6783 (commit commit)))
6784 (sha256
6785 (base32
6786 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
6787 (file-name (git-file-name name version))))
6788 (build-system gnu-build-system)
6789 (arguments
6790 `(#:tests? #f ; there are no tests
6791 #:phases
6792 (modify-phases %standard-phases
6793 (delete 'configure)
6794 (add-before 'build 'patch-makefile
6795 (lambda _
6796 (substitute* "Makefile"
6797 (("lcurses") "lncurses")
6798 (("^BUILD_DATE_TIME =.*$")
6799 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
6800 #t))
6801 (replace 'build
6802 (lambda _
6803 (invoke "make" "sdl")))
6804 (replace 'install
6805 (lambda* (#:key outputs #:allow-other-keys)
6806 (let* ((out (assoc-ref outputs "out"))
6807 (bin (string-append out "/bin"))
6808 (man (string-append out "/share/man/man6")))
6809 (install-file "sfrotz" bin)
6810 (mkdir-p man)
6811 (install-file "doc/sfrotz.6" man)
6812 #t))))))
6813 (native-inputs
6814 `(("pkg-config" ,pkg-config)
6815 ("which" ,which)
6816 ("perl" ,perl)))
6817 (inputs `(("sdl2" ,sdl2)
6818 ("sdl2-mixer" ,sdl2-mixer)
6819 ("libmodplug" ,libmodplug)
6820 ("libsamplerate" ,libsamplerate)
6821 ("libsndfile" ,libsndfile)
6822 ("libvorbis" ,libvorbis)
6823 ("ncurses" ,ncurses)
6824 ("freetype" ,freetype)
6825 ("libjpeg-turbo" ,libjpeg-turbo)))
6826 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
6827 (description "Frotz is an interpreter for Infocom games and other Z-machine
6828 games in the text adventure/interactive fiction genre. This version of Frotz
6829 using SDL fully supports all these versions of the Z-Machine including the
6830 graphical version 6. Graphics and sound are created through the use of the SDL
6831 libraries. AIFF sound effects and music in MOD and OGG formats are supported
6832 when packaged in Blorb container files or optionally from individual files.")
6833 (home-page "http://frotz.sourceforge.net")
6834 (license license:gpl2+))))
6835
6836 (define-public libmanette
6837 (package
6838 (name "libmanette")
6839 (version "0.2.4")
6840 (source (origin
6841 (method url-fetch)
6842 (uri (string-append "mirror://gnome/sources/libmanette/"
6843 (version-major+minor version) "/"
6844 "libmanette-" version ".tar.xz"))
6845 (sha256
6846 (base32
6847 "1xrc6rh73v5w3kbkflzv1yg8sbxk4wf06hfk95raxhxlssza9q2g"))))
6848 (build-system meson-build-system)
6849 (native-inputs
6850 `(("glib" ,glib "bin") ; for glib-compile-resources
6851 ("gobject-introspection" ,gobject-introspection)
6852 ("pkg-config" ,pkg-config)
6853 ("vala" ,vala)))
6854 (inputs
6855 `(("libevdev" ,libevdev)
6856 ("libgudev" ,libgudev)))
6857 (home-page "https://wiki.gnome.org/Apps/Games")
6858 (synopsis "Game controller library")
6859 (description "Libmanette is a small GObject library giving you simple
6860 access to game controllers. It supports the de-facto standard gamepads as
6861 defined by the W3C standard Gamepad specification or as implemented by the SDL
6862 GameController.")
6863 (license license:lgpl2.1+)))
6864
6865 (define-public quadrapassel
6866 (package
6867 (name "quadrapassel")
6868 (version "3.32.0")
6869 (source (origin
6870 (method url-fetch)
6871 (uri (string-append "mirror://gnome/sources/quadrapassel/"
6872 (version-major+minor version) "/"
6873 "quadrapassel-" version ".tar.xz"))
6874 (sha256
6875 (base32
6876 "1zhi1957knz9dm98drn2dh95mr33sdch590yddh1f8r6bzsfjvpy"))))
6877 (build-system meson-build-system)
6878 (arguments
6879 '(#:glib-or-gtk? #t
6880 #:phases
6881 (modify-phases %standard-phases
6882 (add-after 'unpack 'skip-gtk-update-icon-cache
6883 ;; Don't create 'icon-theme.cache'.
6884 (lambda _
6885 (substitute* "build-aux/meson_post_install.py"
6886 (("gtk-update-icon-cache") (which "true")))
6887 #t)))))
6888 (native-inputs
6889 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
6890 ("gettext" ,gettext-minimal)
6891 ("glib" ,glib "bin") ;for glib-compile-resources
6892 ("itstool" ,itstool)
6893 ("libxml2" ,libxml2) ;for xmllint
6894 ("pkg-config" ,pkg-config)
6895 ("vala" ,vala)))
6896 (inputs
6897 `(("clutter" ,clutter)
6898 ("clutter-gtk" ,clutter-gtk)
6899 ("gtk+" ,gtk+)
6900 ("libcanberra" ,libcanberra)
6901 ("libmanette" ,libmanette)
6902 ("librsvg" ,librsvg)))
6903 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
6904 (synopsis "GNOME version of Tetris")
6905 (description "Quadrapassel comes from the classic falling-block game,
6906 Tetris. The goal of the game is to create complete horizontal lines of
6907 blocks, which will disappear. The blocks come in seven different shapes made
6908 from four blocks each: one straight, two L-shaped, one square, and two
6909 S-shaped. The blocks fall from the top center of the screen in a random
6910 order. You rotate the blocks and move them across the screen to drop them in
6911 complete lines. You score by dropping blocks fast and completing lines. As
6912 your score gets higher, you level up and the blocks fall faster.")
6913 (license license:gpl2+)))
6914
6915 (define-public endless-sky
6916 (package
6917 (name "endless-sky")
6918 (version "0.9.12")
6919 (source
6920 (origin
6921 (method git-fetch)
6922 (uri (git-reference
6923 (url "https://github.com/endless-sky/endless-sky")
6924 (commit (string-append "v" version))))
6925 (file-name (git-file-name name version))
6926 (sha256
6927 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
6928 (build-system scons-build-system)
6929 (arguments
6930 `(#:scons ,scons-python2
6931 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
6932 #:tests? #f ; no tests
6933 #:phases
6934 (modify-phases %standard-phases
6935 (add-after 'unpack 'patch-resource-locations
6936 (lambda* (#:key outputs #:allow-other-keys)
6937 (substitute* "source/Files.cpp"
6938 (("/usr/local/")
6939 (string-append (assoc-ref outputs "out") "/")))
6940 #t))
6941 (add-after 'unpack 'patch-scons
6942 (lambda _
6943 (substitute* "SConstruct"
6944 ;; Keep environmental variables
6945 (("Environment\\(\\)")
6946 "Environment(ENV = os.environ)")
6947 ;; Install into %out/bin
6948 (("games\"") "bin\""))
6949 #t)))))
6950 (inputs
6951 `(("glew" ,glew)
6952 ("libjpeg" ,libjpeg-turbo)
6953 ("libmad" ,libmad)
6954 ("libpng" ,libpng)
6955 ("openal" ,openal)
6956 ("sdl2" ,sdl2)))
6957 (home-page "https://endless-sky.github.io/")
6958 (synopsis "2D space trading and combat game")
6959 (description "Endless Sky is a 2D space trading and combat game. Explore
6960 other star systems. Earn money by trading, carrying passengers, or completing
6961 missions. Use your earnings to buy a better ship or to upgrade the weapons and
6962 engines on your current one. Blow up pirates. Take sides in a civil war. Or
6963 leave human space behind and hope to find friendly aliens whose culture is more
6964 civilized than your own.")
6965 (license (list license:gpl3+
6966 license:cc-by-sa3.0
6967 license:cc-by-sa4.0
6968 license:public-domain))))
6969
6970 (define-public stepmania
6971 (package
6972 (name "stepmania")
6973 (version "5.1.0-b2")
6974 (source
6975 (origin
6976 (method git-fetch)
6977 (uri (git-reference
6978 (url "https://github.com/stepmania/stepmania.git")
6979 (commit (string-append "v" version))))
6980 (file-name (git-file-name name version))
6981 (sha256
6982 (base32
6983 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
6984 (modules '((guix build utils)))
6985 (snippet
6986 '(begin
6987 ;; Remove song files, which are licensed under a non-commercial
6988 ;; clause, and a course pointing to them.
6989 (for-each delete-file-recursively
6990 '("Songs/StepMania 5/Goin' Under"
6991 "Songs/StepMania 5/MechaTribe Assault"
6992 "Songs/StepMania 5/Springtime"))
6993 (for-each delete-file '("Courses/Default/Jupiter.crs"
6994 "Courses/Default/Jupiter.png"))
6995 ;; Unbundle libpng.
6996 (substitute* "extern/CMakeLists.txt"
6997 (("include\\(CMakeProject-png.cmake\\)") ""))
6998 (delete-file-recursively "extern/libpng")
6999 #t))))
7000 (build-system cmake-build-system)
7001 (arguments
7002 `(#:tests? #f ;FIXME: couldn't find how to run tests
7003 #:build-type "Release"
7004 #:out-of-source? #f ;for the 'install-desktop' phase
7005 #:configure-flags
7006 (list "-DWITH_SYSTEM_FFMPEG=1"
7007 ;; SSE instructions are available on Intel systems only.
7008 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
7009 (%current-system)))
7010 '("x64_64" "i686"))
7011 '()
7012 '("-DWITH_SSE2=NO"))
7013 ;; Configuration cannot find GTK2 without the two following
7014 ;; flags.
7015 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
7016 (assoc-ref %build-inputs "gtk+")
7017 "/lib/gtk-2.0/include")
7018 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
7019 (assoc-ref %build-inputs "glib")
7020 "/lib/glib-2.0/include"))
7021 #:phases
7022 (modify-phases %standard-phases
7023 (add-after 'unpack 'ensure-application-files-can-be-found
7024 (lambda* (#:key outputs #:allow-other-keys)
7025 (let ((out (assoc-ref outputs "out")))
7026 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
7027 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
7028 (string-append "\"" out
7029 "/share/stepmania/GtkModule.so\"")))
7030 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
7031 (("Root = sDirOfExecutable")
7032 (string-append "Root = \"" out "/share/stepmania/\""))
7033 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
7034 (string-append "\"" out "/share/stepmania/" dir "\"")))
7035 (substitute* "src/RageFileManager.cpp"
7036 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
7037 (string-append "\"" out "/share/stepmania/\""))))
7038 #t))
7039 (add-after 'unpack 'fix-install-subdir
7040 ;; Installation would be done in "%out/stepmania-X.Y", but we
7041 ;; prefer the more common layout "%out/share/stepmania".
7042 (lambda _
7043 (substitute* "src/CMakeLists.txt"
7044 (("\"stepmania-.*?\"") "\"share/stepmania\""))
7045 #t))
7046 (add-after 'unpack 'unbundle-libpng
7047 (lambda* (#:key inputs #:allow-other-keys)
7048 (substitute* "src/CMakeLists.txt"
7049 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
7050 (string-append (assoc-ref inputs "libpng") "/include")))
7051 #t))
7052 (add-after 'install 'install-executable
7053 (lambda* (#:key outputs #:allow-other-keys)
7054 (let* ((out (assoc-ref outputs "out"))
7055 (bin (string-append out "/bin"))
7056 (exe (string-append out "/share/stepmania/stepmania")))
7057 (mkdir-p bin)
7058 (symlink exe (string-append bin "/stepmania"))
7059 #t)))
7060 (add-after 'install-executable 'install-desktop
7061 (lambda* (#:key outputs #:allow-other-keys)
7062 (let* ((out (assoc-ref outputs "out"))
7063 (share (string-append out "/share"))
7064 (applications (string-append share "/applications"))
7065 (icons (string-append share "/icons")))
7066 (install-file "stepmania.desktop" applications)
7067 (mkdir-p icons)
7068 (copy-recursively "icons" icons)
7069 #t)))
7070 ;; Move documentation in a more usual place, i.e.,
7071 ;; "%out/share/doc/stepmania/".
7072 (add-after 'install-desktop 'install-doc
7073 (lambda* (#:key outputs #:allow-other-keys)
7074 (let* ((out (assoc-ref outputs "out"))
7075 (share (string-append out "/share")))
7076 (with-directory-excursion share
7077 (mkdir-p "doc")
7078 (symlink "../stepmania/Docs" "doc/stepmania"))
7079 #t))))))
7080 (native-inputs
7081 `(("pkg-config" ,pkg-config)
7082 ("yasm" ,yasm)))
7083 (inputs
7084 `(("alsa-lib" ,alsa-lib)
7085 ;; Per upstream, StepMania is only guaranteed to work with a very
7086 ;; specific FFmpeg version, which is included in the repository as
7087 ;; a Git submodule. This particular version requirement usually
7088 ;; changes every few years.
7089 ("ffmpeg" ,ffmpeg-for-stepmania)
7090 ("glib" ,glib)
7091 ("glew" ,glew)
7092 ("gtk+" ,gtk+-2)
7093 ("jsoncpp" ,jsoncpp)
7094 ("libpng" ,libpng)
7095 ("libjpeg" ,libjpeg-turbo)
7096 ("libmad" ,libmad)
7097 ("libogg" ,libogg)
7098 ("libva" ,libva)
7099 ("libvorbis" ,libvorbis)
7100 ("libxinerama" ,libxinerama)
7101 ("libxrandr" ,libxrandr)
7102 ("mesa" ,mesa)
7103 ("pcre" ,pcre)
7104 ("pulseaudio" ,pulseaudio)
7105 ("sdl" ,sdl2)
7106 ("udev" ,eudev)
7107 ("zlib" ,zlib)))
7108 (synopsis "Advanced rhythm game designed for both home and arcade use")
7109 (description "StepMania is a dance and rhythm game. It features 3D
7110 graphics, keyboard and dance pad support, and an editor for creating your own
7111 steps.
7112
7113 This package provides the core application, but no song is shipped. You need
7114 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
7115 (home-page "https://www.stepmania.com")
7116 (license license:expat)))
7117
7118 (define-public btanks
7119 (package
7120 (name "btanks")
7121 (version "0.9.8083")
7122 (source
7123 (origin
7124 (method url-fetch)
7125 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
7126 "btanks-" version ".tar.bz2"))
7127 (sha256
7128 (base32
7129 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
7130 (build-system scons-build-system)
7131 (arguments
7132 `(#:tests? #f ; there are none
7133 #:scons ,scons-python2
7134 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
7135 #:phases
7136 (modify-phases %standard-phases
7137 (add-after 'unpack 'replace-removed-scons-syntax
7138 (lambda _
7139 (substitute* "SConstruct"
7140 (("Options") "Variables")
7141 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
7142 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
7143 #t))
7144 (add-after 'set-paths 'set-sdl-paths
7145 (lambda* (#:key inputs #:allow-other-keys)
7146 (setenv "CPATH"
7147 (string-append (assoc-ref inputs "sdl")
7148 "/include/SDL:"
7149 (or (getenv "CPATH") "")))
7150 #t))
7151 (add-after 'unpack 'fix-compilation-errors
7152 (lambda _
7153 (substitute* "mrt/base_file.h"
7154 (("#include <string>" m)
7155 (string-append m "\n#include <sys/types.h>")))
7156 (substitute* '("engine/sl08/sl08.h"
7157 "engine/sl08/sl08.py")
7158 (("signal = NULL") "signal = 0")
7159 (("object\\(NULL\\)") "object(0)")
7160 (("func\\(NULL\\)") "func(0)")
7161 ((" connect\\(signal_ref\\)")
7162 " this->connect(signal_ref)"))
7163 (substitute* "math/range_list.h"
7164 ((" lower_bound\\(value\\)")
7165 " this->lower_bound(value)")
7166 ((" erase\\(i\\)")
7167 " this->erase(i)"))
7168 (substitute* "clunk/source.cpp"
7169 (("using namespace clunk" m)
7170 (string-append "# define pow10f(x) exp10f(x)\n" m)))
7171 #t))
7172 (add-after 'unpack 'find-lua
7173 (lambda _
7174 (substitute* "engine/SConscript"
7175 (("lua5.1") "lua-5.1")
7176 (("bt_libs.append\\(lua\\)")
7177 "bt_libs.append(\"lua\")"))
7178 #t)))))
7179 (inputs
7180 `(("expat" ,expat)
7181 ("glu" ,glu)
7182 ("libsmpeg" ,libsmpeg-with-sdl1)
7183 ("libvorbis" ,libvorbis)
7184 ("lua51" ,lua-5.1)
7185 ("sdl" ,(sdl-union (list sdl
7186 sdl-mixer
7187 sdl-image
7188 sdl-ttf)))
7189 ("zlib" ,zlib)))
7190 (native-inputs
7191 `(("pkg-config" ,pkg-config)
7192 ("zip" ,zip)))
7193 (home-page "http://btanks.sourceforge.net")
7194 (synopsis "Multiplayer tank battle game")
7195 (description "Battle Tanks (also known as \"btanks\") is a funny battle
7196 game, where you can choose one of three vehicles and eliminate your enemy
7197 using the whole arsenal of weapons. It has original cartoon-like graphics and
7198 cool music, it’s fun and dynamic, it has several network modes for deathmatch
7199 and cooperative.")
7200 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
7201 ;; released under GPLv2 or later. It comes with extra exceptions for the
7202 ;; developers.
7203 (license (list license:gpl2+ license:lgpl2.1+))))
7204
7205 (define-public slingshot
7206 (package
7207 (name "slingshot")
7208 (version "0.9")
7209 (source
7210 (origin
7211 (method git-fetch)
7212 (uri (git-reference
7213 (url "https://github.com/ryanakca/slingshot.git")
7214 (commit version)))
7215 (file-name (git-file-name name version))
7216 (sha256
7217 (base32
7218 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
7219 (build-system python-build-system)
7220 (arguments
7221 `(#:python ,python-2))
7222 (inputs
7223 `(("python-pygame" ,python2-pygame)))
7224 (home-page "https://github.com/ryanakca/slingshot")
7225 (synopsis "Simple 2D shooting strategy game set in space")
7226 (description "Slingshot is a two-dimensional strategy game where two
7227 players attempt to shoot one another through a section of space populated by
7228 planets. The main feature of the game is that the shots, once fired, are
7229 affected by the gravity of the planets.")
7230 (license license:gpl2+)))
7231
7232 (define-public 4dtris
7233 (package
7234 (name "4dtris")
7235 (version "0.4.3")
7236 (source
7237 (origin
7238 (method url-fetch)
7239 (uri (string-append "https://launchpad.net/4dtris/"
7240 (version-major+minor version)
7241 "/" version "/+download/4dtris_"
7242 version ".orig.tar.gz"))
7243 (sha256
7244 (base32
7245 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
7246 (build-system gnu-build-system)
7247 (arguments
7248 `(#:phases
7249 (modify-phases %standard-phases
7250 (add-after 'unpack 'fix-install-directories
7251 (lambda* (#:key outputs #:allow-other-keys)
7252 (let ((out (assoc-ref outputs "out")))
7253 (substitute* "Makefile.in"
7254 (("bindir = /usr/games")
7255 (string-append "bindir = " out "/bin"))
7256 (("/usr/share/applications")
7257 (string-append out "/share/applications"))
7258 (("/usr/share/games/4dtris")
7259 (string-append out "/share/4dtris"))))
7260 #t))
7261 (add-after 'set-paths 'set-sdl-paths
7262 (lambda* (#:key inputs #:allow-other-keys)
7263 (setenv "CPATH"
7264 (string-append (assoc-ref inputs "sdl")
7265 "/include/SDL:"
7266 (or (getenv "CPATH") "")))
7267 #t)))))
7268 (inputs
7269 `(("fontconfig" ,fontconfig)
7270 ("freeglut" ,freeglut)
7271 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
7272 (home-page "https://launchpad.net/4dtris/")
7273 (synopsis "4D Tetris")
7274 (description "4D-TRIS is an alteration of the well-known Tetris game. The
7275 game field is extended to 4D space, which has to filled up by the gamer with
7276 4D hyper cubes.")
7277 (license license:gpl3)))
7278
7279 (define-public arx-libertatis
7280 (package
7281 (name "arx-libertatis")
7282 (version "1.1.2")
7283 (source
7284 (origin
7285 (method url-fetch)
7286 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
7287 version ".tar.xz"))
7288 (sha256
7289 (base32
7290 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
7291 (build-system cmake-build-system)
7292 (outputs '("out" "installer"))
7293 (arguments
7294 '(#:tests? #f ; No tests.
7295 #:phases
7296 (modify-phases %standard-phases
7297 (add-after 'unpack 'fix-install-helper-paths
7298 (lambda* (#:key inputs #:allow-other-keys)
7299 (let ((p7zip (assoc-ref inputs "p7zip"))
7300 (innoextract (assoc-ref inputs "innoextract"))
7301 (wget (assoc-ref inputs "wget"))
7302 (zenity (assoc-ref inputs "zenity")))
7303 (substitute* "scripts/arx-install-data"
7304 (("have innoextract")
7305 (string-append "have " innoextract "/bin/innoextract"))
7306 (("then innoextract")
7307 (string-append "then " innoextract "/bin/innoextract"))
7308 (("else innoextract")
7309 (string-append "else " innoextract "/bin/innoextract"))
7310 (("for _extract_zip_sz in 7za 7z")
7311 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
7312 (("else if have 7z")
7313 (string-append "else if have " p7zip "/bin/7za"))
7314 (("7z x -tiso")
7315 (string-append p7zip "/bin/7z x -tiso"))
7316 (("if have wget")
7317 (string-append "if have " wget "/bin/wget"))
7318 (("wget -O")
7319 (string-append wget "/bin/wget -O"))
7320 (("for backend in \\$preferred zenity")
7321 (string-append "for backend in $preferred " zenity "/bin/zenity"))
7322 (("zenity +--title")
7323 (string-append zenity "/bin/zenity --title"))
7324 (("^zenity\\)")
7325 (string-append zenity "/bin/zenity)"))))
7326 #t))
7327 (add-after 'install 'move-installer
7328 (lambda* (#:key outputs #:allow-other-keys)
7329 (let ((out (assoc-ref outputs "out"))
7330 (installer (assoc-ref outputs "installer")))
7331 (mkdir-p (string-append installer "/bin"))
7332 (rename-file (string-append out "/bin/arx-install-data")
7333 (string-append installer "/bin/arx-install-data"))))))))
7334 (inputs
7335 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
7336 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
7337 ("glew" ,glew)
7338 ("openal" ,openal)
7339 ("zlib" ,zlib)
7340 ("boost" ,boost)
7341 ("glm" ,glm)
7342 ("freetype" ,freetype)
7343 ;; The following are only needed by the arx-install-data script.
7344 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
7345 ("zenity" ,zenity) ; GUI for install-helper.
7346 ("wget" ,wget) ; Used by the install-helper to download the patch.
7347 ;; The install-helper needs it to extract the patch.
7348 ("innoextract" ,innoextract)))
7349 (home-page "https://arx-libertatis.org/")
7350 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
7351 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
7352 first-person role-playing game / dungeon crawler developed by Arkane Studios.
7353 This port however does not include the game data, so you need to obtain a copy
7354 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
7355 features crafting, melee and ranged combat, as well as a unique casting system
7356 where the player draws runes in real time to effect the desired spell.")
7357 (license license:gpl3+)))
7358
7359 (define-public edgar
7360 (package
7361 (name "edgar")
7362 (version "1.32")
7363 (source
7364 (origin
7365 (method url-fetch)
7366 (uri
7367 (string-append "https://github.com/riksweeney/edgar/releases/download/"
7368 version "/edgar-" version "-1.tar.gz"))
7369 (sha256
7370 (base32 "12lam6qcscc5ima1w2ksd1cvsvxbd17h6mqkgsqpzx8ap43p2r5p"))))
7371 (build-system gnu-build-system)
7372 (arguments '(#:tests? #f ; there are no tests
7373 #:make-flags
7374 (list "CC=gcc"
7375 (string-append "PREFIX=" (assoc-ref %outputs "out"))
7376 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
7377 #:phases
7378 (modify-phases %standard-phases
7379 (delete 'configure)
7380 (add-before 'build 'fix-env
7381 (lambda* (#:key inputs #:allow-other-keys)
7382 (setenv "CPATH"
7383 (string-append (assoc-ref inputs "sdl2-union")
7384 "/include/SDL2:"
7385 (or (getenv "CPATH") "")))
7386 #t)))))
7387 (inputs
7388 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
7389 ("zlib" ,zlib)))
7390 (native-inputs
7391 `(("pkg-config" ,pkg-config)
7392 ("autoconf" ,autoconf)
7393 ("automake" ,automake)
7394 ("gnu-gettext" ,gettext-minimal)
7395 ("libtool" ,libtool)
7396 ("which" ,which)))
7397 (synopsis "2d action platformer game")
7398 (description "The Legend of Edgar is a 2D platform game with a persistent world.
7399 When Edgar's father fails to return home after venturing out one dark and stormy night,
7400 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
7401 a fortress beyond the forbidden swamp.")
7402 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
7403 (license license:gpl2+)))
7404
7405 (define-public openclonk
7406 (package
7407 (name "openclonk")
7408 (version "8.1")
7409 (source (origin
7410 (method url-fetch)
7411 (uri (string-append
7412 "https://www.openclonk.org/builds/release/" version "/"
7413 "openclonk-" version "-src.tar.bz2"))
7414 (sha256
7415 (base32
7416 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
7417 (build-system cmake-build-system)
7418 (arguments
7419 `(#:configure-flags '("-DAudio_TK=OpenAL")
7420 #:test-target "tests"
7421 #:phases
7422 (modify-phases %standard-phases
7423 (add-after 'unpack 'prepare-gmock
7424 (lambda* (#:key inputs #:allow-other-keys)
7425 (mkdir "gmock")
7426 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
7427 (substitute* "tests/CMakeLists.txt"
7428 (("/usr/src/gmock")
7429 (string-append (getcwd) "/gmock/googlemock"))
7430 (("/usr/src/gtest")
7431 (string-append (getcwd) "/gmock/googletest"))
7432 (("PATH_SUFFIXES \"src\" \"gtest\"")
7433 "PATH_SUFFIXES \"src\""))
7434 #t))
7435 (add-after 'unpack 'adjust-backward-cpp-includes
7436 (lambda _
7437 ;; XXX: The bundled backward-cpp exports a CMake "interface"
7438 ;; that includes external libraries such as libdl from glibc.
7439 ;; By default, CMake interface includes are treated as "system
7440 ;; headers", and GCC behaves poorly when glibc is passed as a
7441 ;; system header (causing #include_next failures).
7442
7443 ;; Here we prevent targets that consume the Backward::Backward
7444 ;; interface from treating it as "system includes".
7445 (substitute* "CMakeLists.txt"
7446 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
7447 (string-append "set_property(TARGET " target " PROPERTY "
7448 "NO_SYSTEM_FROM_IMPORTED true)\n"
7449 all)))
7450 #t))
7451 (add-after 'unpack 'add-libiberty
7452 ;; Build fails upon linking executables without this.
7453 (lambda _
7454 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
7455 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
7456 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
7457 #t))
7458 (add-after 'add-libiberty 'lax-freealut-requirement
7459 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
7460 ;; it as 1.0.1. Force minimal version.
7461 (lambda _
7462 (substitute* "cmake/FindAudio.cmake"
7463 (("freealut>=1.1.0") "freealut>=1.0.1"))
7464 #t))
7465 (add-after 'lax-freealut-requirement 'fix-directories
7466 ;; Prefer "$out/share/openclonk" over
7467 ;; "$out/share/games/openclonk". Also install "openclonk"
7468 ;; binary in "bin/", not "games/".
7469 (lambda _
7470 (substitute* "CMakeLists.txt"
7471 (("share/games/openclonk") "share/openclonk")
7472 (("TARGETS openclonk DESTINATION games")
7473 "TARGETS openclonk DESTINATION bin"))
7474 #t)))))
7475 (native-inputs
7476 `(("googlemock" ,(package-source googletest))
7477 ("googletest" ,googletest)
7478 ("pkg-config" ,pkg-config)))
7479 (inputs
7480 `(("freealut" ,freealut)
7481 ("freetype" ,freetype)
7482 ("glew" ,glew)
7483 ("libiberty" ,libiberty)
7484 ("libjpeg" ,libjpeg-turbo)
7485 ("libogg" ,libogg)
7486 ("libpng" ,libpng)
7487 ("libvorbis" ,libvorbis)
7488 ("libxrandr" ,libxrandr)
7489 ("mesa" ,mesa)
7490 ("miniupnpc" ,miniupnpc)
7491 ("openal" ,openal)
7492 ("qtbase" ,qtbase)
7493 ("readline" ,readline)
7494 ("sdl" ,sdl2)
7495 ("tinyxml" ,tinyxml)
7496 ("zlib" ,zlib)))
7497 (home-page "https://www.openclonk.org/")
7498 (synopsis
7499 "Multiplayer action game where you control small and nimble humanoids")
7500 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
7501 often referred to as a mixture of The Settlers and Worms. In a simple 2D
7502 antfarm-style landscape, the player controls a crew of Clonks, small but
7503 robust humanoid beings. The game encourages free play but the normal goal is
7504 to either exploit valuable resources from the earth by building a mine or
7505 fight each other on an arena-like map.")
7506 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
7507 (license (list license:isc license:cc-by3.0))))
7508
7509 (define-public flare-engine
7510 (package
7511 (name "flare-engine")
7512 (version "1.11")
7513 (source (origin
7514 (method git-fetch)
7515 (uri (git-reference
7516 (url "https://github.com/flareteam/flare-engine.git")
7517 (commit (string-append "v" version))))
7518 (file-name (git-file-name name version))
7519 (sha256
7520 (base32
7521 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
7522 (build-system cmake-build-system)
7523 (arguments
7524 `(#:tests? #f ;no test
7525 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
7526 (inputs
7527 `(("hicolor-icon-theme" ,hicolor-icon-theme)
7528 ("python" ,python-wrapper)
7529 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
7530 (home-page "http://www.flarerpg.org/")
7531 (synopsis "Action Roleplaying Engine")
7532 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
7533 game engine built to handle a very specific kind of game: single-player 2D
7534 action RPGs.")
7535 (license license:gpl3+)))
7536
7537 (define-public flare-game
7538 (package
7539 (name "flare-game")
7540 (version "1.11")
7541 (source (origin
7542 (method git-fetch)
7543 (uri (git-reference
7544 (url "https://github.com/flareteam/flare-game.git")
7545 (commit (string-append "v" version))))
7546 (file-name (git-file-name name version))
7547 (sha256
7548 (base32
7549 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
7550 (build-system cmake-build-system)
7551 (arguments
7552 `(#:tests? #f ;no test
7553 #:configure-flags '("-DDATADIR=share/flare")
7554 #:phases
7555 (modify-phases %standard-phases
7556 ;; Flare expects the mods to be located in the same folder.
7557 ;; Yet, "default" mod is in the engine, whereas the others
7558 ;; are in the current package. Merge everything here with
7559 ;; a symlink.
7560 (add-after 'install 'add-default-mod
7561 (lambda* (#:key inputs outputs #:allow-other-keys)
7562 (let* ((out (assoc-ref outputs "out"))
7563 (mods (string-append out "/share/flare/mods")))
7564 (with-directory-excursion mods
7565 (symlink (string-append (assoc-ref inputs "flare-engine")
7566 "/share/flare/mods/default")
7567 "default")))
7568 #t))
7569 (add-after 'install 'install-executable
7570 ;; The package only provides assets for the game, the
7571 ;; executable coming from "flare-engine". Since more than
7572 ;; one game may use the engine, we create a new executable,
7573 ;; "flare-game", which launches the engine with appropriate
7574 ;; parameters.
7575 (lambda* (#:key inputs outputs #:allow-other-keys)
7576 (let* ((out (assoc-ref outputs "out"))
7577 (bash (string-append (assoc-ref inputs "bash")
7578 "/bin/bash"))
7579 (flare (string-append (assoc-ref inputs "flare-engine")
7580 "/bin/flare"))
7581 (script (string-append out "/bin/flare-game")))
7582 (mkdir-p (dirname script))
7583 (call-with-output-file script
7584 (lambda (port)
7585 (format port
7586 "#!~a
7587 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
7588 bash
7589 flare
7590 out)))
7591 (chmod script #o755))
7592 #t)))))
7593 (inputs
7594 `(("flare-engine" ,flare-engine)))
7595 (home-page "http://www.flarerpg.org/")
7596 (synopsis "Fantasy action RPG using the FLARE engine")
7597 (description "Flare is a single-player 2D action RPG with
7598 fast-paced action and a dark fantasy style.")
7599 (license license:cc-by-sa3.0)))
7600
7601 (define-public meritous
7602 (package
7603 (name "meritous")
7604 (version "1.5")
7605 (source (origin
7606 (method git-fetch)
7607 (uri (git-reference
7608 (url "https://gitlab.com/meritous/meritous.git")
7609 (commit (string-append "v" version))))
7610 (file-name (git-file-name name version))
7611 (sha256
7612 (base32
7613 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
7614 (build-system gnu-build-system)
7615 (arguments
7616 `(#:tests? #f ;no test
7617 #:make-flags
7618 (list "CC=gcc"
7619 (string-append "prefix=" (assoc-ref %outputs "out")))
7620 #:phases
7621 (modify-phases %standard-phases
7622 (delete 'configure)
7623 (add-after 'unpack 'fix-sdl-path
7624 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
7625 ;; directory, not SDL-union provided as an input to the package.
7626 ;; We force the latter with "--prefix=" option.
7627 (lambda* (#:key inputs #:allow-other-keys)
7628 (substitute* "Makefile"
7629 (("sdl-config" command)
7630 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
7631 #t))
7632 (add-after 'unpack 'fix-crash
7633 ;; XXX: Songs are not present in the repository, due to licensing
7634 ;; issues. Yet, the game tries to load them, and, since it cannot
7635 ;; find them, crashes. Users cannot add them back, the store being
7636 ;; read-only, so we turn off background music altogether.
7637 (lambda _
7638 (substitute* "src/audio.c"
7639 (("PlayBackgroundMusic\\(new_track\\);" all)
7640 (string-append "// " all)))
7641 #t)))))
7642 (native-inputs
7643 `(("intltool" ,intltool)))
7644 (inputs
7645 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
7646 ("zlib" ,zlib)))
7647 (home-page "https://gitlab.com/meritous/meritous")
7648 (synopsis "Action-adventure dungeon crawl game")
7649 (description "Far below the surface of the planet is a place of limitless
7650 power. Those that seek to control such a utopia will soon bring an end to
7651 themselves. Seeking an end to the troubles that plague him, PSI user Merit
7652 journeys into the hallowed Orcus Dome in search of answers.
7653
7654 Meritous is a action-adventure game with simple controls but a challenge to
7655 find a balance of power versus recovery time during real-time battles. Set in
7656 a procedurally generated world, the player can explore thousands of rooms in
7657 search of powerful artifacts, tools to help them, and to eventually free the
7658 Orcus Dome from evil.")
7659 (license license:gpl3+)))
7660
7661 (define-public marble-marcher
7662 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
7663 (revision "1"))
7664 (package
7665 (name "marble-marcher")
7666 (version (git-version "0" revision commit))
7667 (source (origin
7668 (method git-fetch)
7669 (uri (git-reference
7670 (url "https://github.com/HackerPoet/MarbleMarcher.git")
7671 (commit commit)))
7672 (file-name (git-file-name name version))
7673 (sha256
7674 (base32
7675 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
7676 (build-system cmake-build-system)
7677 (arguments
7678 `(#:tests? #f ; there are none
7679 #:phases
7680 (modify-phases %standard-phases
7681 (add-after 'unpack 'embed-asset-directory
7682 (lambda* (#:key outputs #:allow-other-keys)
7683 (let ((assets (string-append (assoc-ref outputs "out")
7684 "/share/marble-marcher/assets/")))
7685 ;; Some of the files we're patching are
7686 ;; ISO-8859-1-encoded, so choose it as the default
7687 ;; encoding so the byte encoding is preserved.
7688 (with-fluids ((%default-port-encoding #f))
7689 (substitute* "src/Resource.rc"
7690 (("../assets/icon.ico")
7691 (string-append assets "icon.ico")))
7692 (substitute* "src/Res.h"
7693 (("assets/") assets))))
7694 #t))
7695 (replace 'install
7696 (lambda* (#:key outputs #:allow-other-keys)
7697 (let* ((out (assoc-ref outputs "out"))
7698 (assets (string-append out "/share/marble-marcher/assets"))
7699 (bin (string-append out "/bin/")))
7700 (mkdir-p bin)
7701 (mkdir-p assets)
7702 (copy-recursively "../source/assets" assets)
7703 (install-file "MarbleMarcher" bin))
7704 #t)))))
7705 (inputs
7706 `(("eigen" ,eigen)
7707 ("mesa" ,mesa)
7708 ("sfml" ,sfml)))
7709 (native-inputs
7710 `(("pkg-config" ,pkg-config)))
7711 (home-page "https://codeparade.itch.io/marblemarcher")
7712 (synopsis "Guide a marble across fractal landscapes")
7713 (description "Marble Marcher is a video game that uses a fractal physics
7714 engine and fully procedural rendering to produce beautiful and unique
7715 gameplay. The game is played on the surface of evolving fractals. The goal
7716 of the game is to get your marble to the flag as quickly as possible. But be
7717 careful not to fall off the level or get crushed by the fractal! There are 24
7718 levels to unlock.")
7719 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
7720 (license (list license:gpl2+
7721 license:silofl1.1
7722 license:cc-by-sa3.0)))))
7723
7724 ;; This must be updated together with flightgear.
7725 (define simgear
7726 (package
7727 (name "simgear")
7728 (version "2018.3.2")
7729 (source (origin
7730 (method url-fetch)
7731 (uri (string-append "mirror://sourceforge/flightgear/release-"
7732 (version-major+minor version) "/"
7733 "simgear-" version ".tar.bz2"))
7734 (sha256
7735 (base32
7736 "1941ay8rngz4vwsx37bbpxr48hpcvcbj3xw1hy264lq4qnl99c68"))))
7737 (build-system cmake-build-system)
7738 (arguments
7739 `(#:phases
7740 (modify-phases %standard-phases
7741 (replace 'check
7742 (lambda _
7743 ;; Skip tests that require internet access.
7744 (invoke "ctest" "-E" "(http|dns)"))))))
7745 (inputs
7746 `(("boost" ,boost-for-mysql) ; fails with 1.69
7747 ("curl" ,curl)
7748 ("expat" ,expat)
7749 ("mesa" ,mesa)
7750 ("openal" ,openal)
7751 ("openscenegraph" ,openscenegraph-3.4)
7752 ("zlib" ,zlib)))
7753 (home-page "https://home.flightgear.org/")
7754 (synopsis "Libraries for 3D simulations and games")
7755 (description "SimGear is a set of libraries designed to be used as
7756 building blocks for quickly assembling 3D simulations, games, and
7757 visualization applications. SimGear is developed by the FlightGear project
7758 and also provides the base for the FlightGear Flight Simulator.")
7759 (license license:lgpl2.0+)))
7760
7761 (define-public flightgear
7762 (package
7763 (name "flightgear")
7764 (version (package-version simgear))
7765 (source (origin
7766 (method url-fetch)
7767 (uri (string-append "mirror://sourceforge/flightgear/release-"
7768 (version-major+minor version) "/"
7769 "flightgear-" version ".tar.bz2"))
7770 (sha256
7771 (base32
7772 "0lzy524cjzs8vldcjcc750bgg5c4mq9fkymxxxzqf68ilc4d1jss"))
7773 (modules '((guix build utils)))
7774 (snippet
7775 '(begin
7776 ;; There are some bundled libraries.
7777 (for-each delete-file-recursively
7778 '("3rdparty/sqlite3/"))
7779 #t))))
7780 (build-system cmake-build-system)
7781 (arguments
7782 `(#:configure-flags
7783 (list "-DSYSTEM_SQLITE=ON"
7784 (string-append "-DFG_DATA_DIR="
7785 (assoc-ref %outputs "out")
7786 "/share/flightgear"))
7787 ;; TODO: test cannot be run because the "run_test_suite" executable
7788 ;; does not seem to be built.
7789 #:tests? #f
7790 #:phases
7791 (modify-phases %standard-phases
7792 (add-after 'install 'wrap-executable
7793 (lambda* (#:key inputs outputs #:allow-other-keys)
7794 (let ((out (assoc-ref outputs "out")))
7795 (wrap-program (string-append out "/bin/fgfs")
7796 `("QT_PLUGIN_PATH" ":" prefix
7797 ,(map (lambda (label)
7798 (string-append (assoc-ref inputs label)
7799 "/lib/qt5/plugins"))
7800 '("qtbase" "qtdeclarative" "qtsvg")))
7801 `("QML2_IMPORT_PATH" ":" prefix
7802 ,(map (lambda (label)
7803 (string-append (assoc-ref inputs label)
7804 "/lib/qt5/qml"))
7805 '("qtdeclarative" "qtsvg"))))
7806 #t)))
7807 (add-after 'install 'install-data
7808 (lambda* (#:key inputs outputs #:allow-other-keys)
7809 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
7810 (mkdir-p share)
7811 (with-directory-excursion share
7812 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
7813 "--strip-components=1")))
7814 #t)))))
7815 (inputs
7816 `(("boost" ,boost-for-mysql) ; same as simgear
7817 ("dbus" ,dbus)
7818 ("eudev" ,eudev)
7819 ("freeglut" ,freeglut)
7820 ("freetype" ,freetype)
7821 ("glew" ,glew)
7822 ("libpng" ,libpng)
7823 ("openal" ,openal)
7824 ("openscenegraph" ,openscenegraph-3.4)
7825 ("plib" ,plib)
7826 ("qtbase" ,qtbase)
7827 ("qtdeclarative" ,qtdeclarative)
7828 ("qtsvg" ,qtsvg)
7829 ("simgear" ,simgear)
7830 ("speexdsp" ,speexdsp)
7831 ("sqlite" ,sqlite)
7832 ("zlib" ,zlib)))
7833 (native-inputs
7834 `(("cppunit" ,cppunit)
7835 ("pkg-config" ,pkg-config)
7836 ("qttools" ,qttools)
7837 ("flightgear-data"
7838 ,(origin
7839 (method url-fetch)
7840 (uri (string-append "mirror://sourceforge/flightgear/release-"
7841 (version-major+minor version) "/"
7842 "FlightGear-" version "-data.tar.bz2"))
7843 (sha256
7844 (base32
7845 "0h4npa7gqpf5fw6pv2bpw0wbwr7fa2vhia21cjbigfgd75x82zi7"))))))
7846 (home-page "https://home.flightgear.org/")
7847 (synopsis "Flight simulator")
7848 (description "The goal of the FlightGear project is to create a
7849 sophisticated flight simulator framework for use in research or academic
7850 environments, pilot training, as an industry engineering tool, for DIY-ers to
7851 pursue their favorite interesting flight simulation idea, and last but
7852 certainly not least as a fun, realistic, and challenging desktop flight
7853 simulator.")
7854 (license license:gpl2+)))
7855
7856 (define-public jumpnbump
7857 (package
7858 (name "jumpnbump")
7859 (version "1.61")
7860 (source (origin
7861 (method git-fetch)
7862 (uri (git-reference
7863 (url "https://gitlab.com/LibreGames/jumpnbump.git")
7864 (commit version)))
7865 (file-name (git-file-name name version))
7866 (sha256
7867 (base32
7868 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
7869 (build-system gnu-build-system)
7870 (arguments
7871 `(#:make-flags
7872 (list "CC=gcc"
7873 (string-append "PREFIX=" (assoc-ref %outputs "out")))
7874 #:tests? #f ;no test
7875 #:phases
7876 (modify-phases %standard-phases
7877 (delete 'configure) ;no configure script
7878 (add-after 'unpack 'fix-sdl-path
7879 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
7880 ;; directory, not SDL-union provided as an input to the package.
7881 ;; We force the latter with "--prefix=" option.
7882 (lambda* (#:key inputs #:allow-other-keys)
7883 (substitute* "Makefile"
7884 (("sdl2-config" command)
7885 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
7886 #t)))))
7887 (inputs
7888 `(("bzip2" ,bzip2)
7889 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
7890 ("zlib" ,zlib)))
7891 (native-inputs
7892 `(("gettext" ,gettext-minimal))) ;for msgfmt
7893 (home-page "https://gitlab.com/LibreGames/jumpnbump")
7894 (synopsis "Multiplayer platform game with bunnies")
7895 (description "You, as a bunny, have to jump on your opponents to make them
7896 explode. It is a true multiplayer game; you cannot play this alone. You can
7897 play with up to four players simultaneously. It has network support.")
7898 (license license:gpl2+)))
7899
7900 (define-public hedgewars
7901 (package
7902 (name "hedgewars")
7903 (version "1.0.0")
7904 (source (origin
7905 (method url-fetch)
7906 (uri (string-append "https://www.hedgewars.org/download/releases/"
7907 "hedgewars-src-" version ".tar.bz2"))
7908 (sha256
7909 (base32
7910 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
7911 (build-system cmake-build-system)
7912 (arguments
7913 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
7914 ;; Compiler, which we haven't packaged yet. With the flag below, we use
7915 ;; a Pascal to C translator and Clang instead.
7916 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON")
7917 #:phases
7918 (modify-phases %standard-phases
7919 (replace 'check
7920 (lambda _ (invoke "ctest"))))))
7921 (inputs
7922 `(("ffmpeg" ,ffmpeg)
7923 ("freeglut" ,freeglut)
7924 ("ghc-entropy" ,ghc-entropy)
7925 ("ghc-hslogger" ,ghc-hslogger)
7926 ("ghc-network" ,ghc-network)
7927 ("ghc-random" ,ghc-random)
7928 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
7929 ("ghc-sandi" ,ghc-sandi)
7930 ("ghc-sha" ,ghc-sha)
7931 ("ghc-utf8-string" ,ghc-utf8-string)
7932 ("ghc-vector" ,ghc-vector)
7933 ("ghc-zlib" ,ghc-zlib)
7934 ("glew" ,glew)
7935 ("libpng" ,libpng)
7936 ("lua" ,lua-5.1)
7937 ("physfs" ,physfs)
7938 ("qtbase" ,qtbase)
7939 ("sdl" ,(sdl-union
7940 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
7941 (native-inputs
7942 `(("clang" ,clang)
7943 ("ghc" ,ghc)
7944 ("pkg-config" ,pkg-config)
7945 ("qttools" ,qttools)))
7946 (home-page "https://hedgewars.org/")
7947 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
7948 (description
7949 "Hedgewars is a turn based strategy, artillery, action and comedy game,
7950 featuring the antics of pink hedgehogs with attitude as they battle from the
7951 depths of hell to the depths of space.
7952
7953 As commander, it's your job to assemble your crack team of hedgehog soldiers
7954 and bring the war to your enemy.")
7955 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
7956 ;; scripts are distributed under various terms.
7957 (license (list license:gpl2
7958 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
7959 license:expat license:fdl1.3+ license:public-domain
7960 license:zlib))))
7961
7962 (define-public harmonist
7963 (package
7964 (name "harmonist")
7965 (version "0.3.0")
7966 (source (origin
7967 (method git-fetch)
7968 (uri (git-reference
7969 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
7970 (commit (string-append "v" version))))
7971 (file-name (git-file-name name version))
7972 (sha256
7973 (base32
7974 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
7975 (build-system go-build-system)
7976 (arguments
7977 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
7978 (inputs
7979 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
7980 (home-page "https://harmonist.tuxfamily.org/")
7981 (synopsis "Stealth coffee-break roguelike game")
7982 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
7983 coffee-break roguelike game. The game has a heavy focus on tactical
7984 positioning, light and noise mechanisms, making use of various terrain types
7985 and cones of view for monsters. Aiming for a replayable streamlined experience,
7986 the game avoids complex inventory management and character building, relying
7987 on items and player adaptability for character progression.")
7988 (license license:isc)))
7989
7990 (define-public harmonist-tk
7991 (package
7992 (inherit harmonist)
7993 (name "harmonist-tk")
7994 (arguments
7995 (append
7996 (package-arguments harmonist)
7997 `(#:phases
7998 (modify-phases %standard-phases
7999 (replace 'build
8000 (lambda _
8001 (invoke "go" "install" "-v" "-x" "--tags" "tk"
8002 "git.tuxfamily.org/harmonist/harmonist")))
8003 (replace 'check
8004 (lambda _
8005 (invoke "go" "test" "--tags" "tk"
8006 "git.tuxfamily.org/harmonist/harmonist")))))))
8007 (inputs
8008 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
8009
8010 (define-public drascula
8011 (package
8012 (name "drascula")
8013 (version "1.0")
8014 (source (origin
8015 (method url-fetch)
8016 (uri (string-append "mirror://sourceforge/scummvm/extras/"
8017 "Drascula_%20The%20Vampire%20Strikes%20Back/"
8018 "drascula-" version ".zip"))
8019 (sha256
8020 (base32
8021 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
8022 (build-system trivial-build-system)
8023 (arguments
8024 `(#:modules ((guix build utils))
8025 #:builder
8026 (begin
8027 (use-modules (guix build utils)
8028 (ice-9 match))
8029 (let* ((out (assoc-ref %outputs "out"))
8030 (share (string-append out "/share/drascula"))
8031 (scummvm (assoc-ref %build-inputs "scummvm")))
8032 ;; Install data.
8033 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
8034 "/bin/unzip"))
8035 (doc (string-append out "/share/doc/" ,name "-" ,version)))
8036 (for-each
8037 (lambda (input)
8038 (invoke unzip
8039 "-j"
8040 (assoc-ref %build-inputs input)
8041 "-x" "__MACOSX")
8042 ;; Every input provides "readme.txt", and we want to
8043 ;; preserve them all. Therefore we rename them first.
8044 (match input
8045 ("drascula-int"
8046 (rename-file "readme.txt" "readme-international.txt"))
8047 ("drascula-audio"
8048 (rename-file "readme.txt" "readme-audio.txt"))
8049 (_ #f))
8050 ;; Install documentation.
8051 (for-each (lambda (f) (install-file f doc))
8052 (find-files "." "\\.(txt|doc)$"))
8053 ;; Install data.
8054 (for-each (lambda (f) (install-file f share))
8055 (find-files "." "\\.(ogg|00[0-9])$")))
8056 '("drascula-audio" "drascula-int" "source")))
8057 ;; Create standalone executable.
8058 (let* ((bin (string-append out "/bin"))
8059 (executable (string-append bin "/drascula"))
8060 (bash (string-append (assoc-ref %build-inputs "bash")
8061 "/bin/bash")))
8062 (mkdir-p bin)
8063 (with-output-to-file executable
8064 (lambda ()
8065 (format #t "#!~a~%" bash)
8066 (format #t
8067 "exec ~a/bin/scummvm --path=~a drascula~%"
8068 scummvm share)))
8069 (chmod executable #o755))
8070 ;; Create desktop file. There is no dedicated icon for the
8071 ;; game, so we borrow SCUMMVM's.
8072 (let ((apps (string-append out "/share/applications")))
8073 (mkdir-p apps)
8074 (make-desktop-entry-file
8075 (string-append apps "/drascula.desktop")
8076 #:name "Drascula: The Vampire Strikes Back"
8077 #:generic-name "Drascula"
8078 #:exec (string-append out "/bin/drascula")
8079 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
8080 #:categories '("AdventureGame" "Game" "RolePlaying")
8081 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
8082 #:comment '((#f "Classic 2D point and click adventure game")
8083 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
8084 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
8085 ("it" "Gioco classico di avventura punta e clicca 2D"))))
8086 #t))))
8087 (native-inputs
8088 `(("bash" ,bash)
8089 ("unzip" ,unzip)))
8090 (inputs
8091 `(("scummvm" ,scummvm)
8092 ("drascula-int"
8093 ,(let ((version "1.1"))
8094 (origin
8095 (method url-fetch)
8096 (uri (string-append "mirror://sourceforge/scummvm/extras/"
8097 "Drascula_%20The%20Vampire%20Strikes%20Back/"
8098 "drascula-int-" version ".zip"))
8099 (sha256
8100 (base32
8101 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
8102 ("drascula-audio"
8103 ,(let ((version "2.0"))
8104 (origin
8105 (method url-fetch)
8106 (uri (string-append "mirror://sourceforge/scummvm/extras/"
8107 "Drascula_%20The%20Vampire%20Strikes%20Back/"
8108 "drascula-audio-" version ".zip"))
8109 (sha256
8110 (base32
8111 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
8112 (home-page "https://www.scummvm.org")
8113 (synopsis "Classic 2D point and click adventure game")
8114 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
8115 point and click adventure game.
8116
8117 In Drascula you play the role of John Hacker, a British estate agent, that
8118 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
8119 Count Drascula and embark on a fun yet dangerous quest to rescue her.
8120 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
8121 the World and demonstrating that he is even more evil than his brother Vlad.")
8122 ;; Drascula uses a BSD-like license.
8123 (license (license:non-copyleft "file:///readme.txt"))))
8124
8125 (define (make-lure-package name language hash)
8126 (package
8127 (name name)
8128 (version "1.1")
8129 (source
8130 (origin
8131 (method url-fetch)
8132 (uri (string-append
8133 "mirror://sourceforge/scummvm/extras/"
8134 "Lure%20of%20the%20Temptress/"
8135 name "-" version ".zip"))
8136 (sha256
8137 (base32 hash))))
8138 (build-system trivial-build-system)
8139 (arguments
8140 `(#:modules ((guix build utils))
8141 #:builder
8142 (begin
8143 (use-modules (guix build utils))
8144 (let* ((out (assoc-ref %outputs "out"))
8145 (share (string-append out "/share"))
8146 (data (string-append share "/" ,name "/" ,language))
8147 (apps (string-append share "/applications"))
8148 (bin (string-append out "/bin"))
8149 (executable (string-append bin "/" ,name))
8150 (scummvm (assoc-ref %build-inputs "scummvm")))
8151 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
8152 "/bin/unzip")))
8153 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
8154 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
8155 (for-each (lambda (f) (install-file f doc))
8156 (find-files "." "\\.(txt|PDF|pdf)$")))
8157 (for-each (lambda (f) (install-file f data))
8158 (find-files "." "\\.(vga|VGA)$"))
8159 ;; Build the executable.
8160 (mkdir-p bin)
8161 (let ((bash (assoc-ref %build-inputs "bash")))
8162 (with-output-to-file executable
8163 (lambda ()
8164 (format #t "#!~a/bin/bash~%" bash)
8165 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
8166 scummvm ,language data))))
8167 (chmod executable #o755)
8168 ;; Create desktop file. There is no dedicated
8169 ;; icon for the game, so we borrow SCUMMVM's.
8170 (mkdir-p apps)
8171 (with-output-to-file (string-append apps "/" ,name ".desktop")
8172 (lambda _
8173 (format #t
8174 "[Desktop Entry]~@
8175 Name=Lure of the Temptress~@
8176 GenericName=Lure~@
8177 Exec=~a~@
8178 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
8179 Categories=AdventureGame;Game;RolePlaying;~@
8180 Keywords=game;adventure;roleplaying;2D,fantasy;~@
8181 Comment=Classic 2D point and click adventure game~@
8182 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
8183 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
8184 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
8185 Type=Application~%"
8186 executable scummvm)))
8187 #t))))
8188 (native-inputs
8189 `(("unzip" ,unzip)))
8190 (inputs
8191 `(("bash" ,bash)
8192 ("scummvm" ,scummvm)))
8193 (home-page "https://www.scummvm.org")
8194 (synopsis "2D point and click fantasy adventure game")
8195 (description
8196 "Lure of the Temptress is a classic 2D point and click adventure game.
8197
8198 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
8199 intents and purposes, a good man. After decades of unrest the King has united
8200 the warring factions in his kingdom and all his lands are at peace, except
8201 a remote region around a town called Turnvale. A revolt has recently taken
8202 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
8203 Selena, the titular temptress. The king calls together his finest horsemen
8204 and heads off (with you in tow) to Turnvale just to witness how hellish
8205 mercenary monsters called Skorl are invading the town.
8206
8207 The king's men are defeated, the king is killed and you fall of your horse and
8208 bang your head heavily on the ground. You have been *unconscious for a while
8209 when you realize that you are in a dingy cell guarded by a not so friendly
8210 Skorl. Maybe it would be an idea to try and escape...")
8211 (license (license:non-copyleft "file:///README"))))
8212
8213 (define-public lure
8214 (make-lure-package
8215 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
8216
8217 (define-public lure-de
8218 (make-lure-package
8219 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
8220
8221 (define-public lure-es
8222 (make-lure-package
8223 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
8224
8225 (define-public lure-fr
8226 (make-lure-package
8227 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
8228
8229 (define-public lure-it
8230 (make-lure-package
8231 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
8232
8233 (define (make-queen-package name file-prefix release language hash)
8234 (package
8235 (name name)
8236 (version release)
8237 (source
8238 (origin
8239 (method url-fetch)
8240 (uri (string-append "mirror://sourceforge/scummvm/extras/"
8241 "Flight%20of%20the%20Amazon%20Queen/"
8242 file-prefix release ".zip"))
8243 (sha256
8244 (base32 hash))))
8245 (build-system trivial-build-system)
8246 (arguments
8247 `(#:modules ((guix build utils))
8248 #:builder
8249 (begin
8250 (use-modules (guix build utils))
8251 (let* ((out (assoc-ref %outputs "out"))
8252 (share (string-append out "/share"))
8253 (data (string-append share "/" ,name))
8254 (apps (string-append share "/applications"))
8255 (bin (string-append out "/bin"))
8256 (executable (string-append bin "/" ,name))
8257 (scummvm (assoc-ref %build-inputs "scummvm")))
8258 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
8259 "/bin/unzip")))
8260 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
8261 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
8262 (install-file "readme.txt" doc))
8263 (install-file "queen.1c" data)
8264 (mkdir-p bin)
8265 (let ((bash (assoc-ref %build-inputs "bash")))
8266 (with-output-to-file executable
8267 (lambda ()
8268 (format #t "#!~a/bin/bash~%" bash)
8269 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
8270 scummvm data))))
8271 (chmod executable #o755)
8272 ;; Create desktop file. There is no dedicated
8273 ;; icon for the game, so we borrow SCUMMVM's.
8274 (mkdir-p apps)
8275 (with-output-to-file (string-append apps "/" ,name ".desktop")
8276 (lambda _
8277 (format #t
8278 "[Desktop Entry]~@
8279 Name=Flight of the Amazon Queen~@
8280 GenericName=Queen~@
8281 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~@
8282 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~@
8283 Type=Application~@
8284 Exec=~a~@
8285 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
8286 Categories=AdventureGame;Game;RolePlaying;~@
8287 Keywords=adventure;game;roleplaying;fantasy;~%"
8288 executable scummvm))))
8289 #t)))
8290 (native-inputs
8291 `(("unzip" ,unzip)))
8292 (inputs
8293 `(("bash" ,bash)
8294 ("scummvm" ,scummvm)))
8295 (home-page "https://www.scummvm.org/")
8296 (synopsis "Classic 2D point and click adventure game")
8297 (description "Flight of the Amazon Queen is a 2D point-and-click
8298 adventure game set in the 1940s.
8299
8300 You assume the role of Joe King, a pilot for hire who is given the job
8301 of flying Faye Russell (a famous movie star) into the Amazon jungle
8302 for a photo shoot. Of course, things never go according to plans.
8303 After an unfortunate turn of events they find themselves stranded in
8304 the heart of the Amazon jungle, where Joe will embark on a quest to
8305 rescue a kidnapped princess and in the process, discover the true
8306 sinister intentions of a suspiciously located Lederhosen company. In
8307 a rich 2D environment, Joe will cross paths with a variety of unlikely
8308 jungle inhabitants including, but not limited to, a tribe of Amazon
8309 women and 6-foot-tall pygmies.")
8310 (license (license:non-copyleft "file:///readme.txt"))))
8311
8312 (define-public queen
8313 (make-queen-package
8314 "queen" "FOTAQ_Talkie-" "1.1" "en"
8315 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
8316
8317 (define-public queen-de
8318 (make-queen-package
8319 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
8320 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
8321
8322 (define-public queen-fr
8323 (make-queen-package
8324 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
8325 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
8326
8327 (define-public queen-it
8328 (make-queen-package
8329 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
8330 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
8331
8332 (define-public sky
8333 (package
8334 (name "sky")
8335 (version "1.2") ;1.3 is floppy version
8336 (source
8337 (origin
8338 (method url-fetch)
8339 (uri (string-append "mirror://sourceforge/scummvm/extras/"
8340 "Beneath%20a%20Steel%20Sky/"
8341 "bass-cd-" version ".zip"))
8342 (sha256
8343 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
8344 (build-system trivial-build-system)
8345 (arguments
8346 `(#:modules ((guix build utils))
8347 #:builder
8348 (begin
8349 (use-modules (guix build utils))
8350 (let* ((out (assoc-ref %outputs "out"))
8351 (share (string-append out "/share"))
8352 (data (string-append share "/" ,name))
8353 (apps (string-append share "/applications"))
8354 (bin (string-append out "/bin"))
8355 (executable (string-append bin "/" ,name))
8356 (scummvm (assoc-ref %build-inputs "scummvm")))
8357 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
8358 "/bin/unzip")))
8359 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
8360 (let ((doc (string-append share "/doc/bass-" ,version)))
8361 (install-file "readme.txt" doc))
8362 (for-each (lambda (f) (install-file f data))
8363 (find-files "." "^sky\\."))
8364 ;; Build the executable.
8365 (mkdir-p bin)
8366 (let ((bash (assoc-ref %build-inputs "bash")))
8367 (with-output-to-file executable
8368 (lambda ()
8369 (format #t "#!~a/bin/bash~%" bash)
8370 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
8371 (chmod executable #o755)
8372 ;; Create desktop file. There is no dedicated
8373 ;; icon for the game, so we borrow SCUMMVM's.
8374 (mkdir-p apps)
8375 (with-output-to-file (string-append apps "/" ,name ".desktop")
8376 (lambda _
8377 (format #t
8378 "[Desktop Entry]~@
8379 Name=Beneath a Steel Sky~@
8380 GenericName=Bass~@
8381 Exec=~a~@
8382 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
8383 Categories=AdventureGame;Game;RolePlaying;~@
8384 Keywords=adventure;game;roleplaying;cyberpunk;~@
8385 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
8386 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
8387 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
8388 Type=Application~%"
8389 executable scummvm)))
8390 #t))))
8391 (native-inputs
8392 `(("unzip" ,unzip)))
8393 (inputs
8394 `(("bash" ,bash)
8395 ("scummvm" ,scummvm)))
8396 (home-page "https://www.scummvm.org/")
8397 (synopsis "Classic 2D point an click science-fiction adventure game")
8398 (description
8399 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
8400 post-apocalyptic vision of the future. It revolves around Union City,
8401 where selfishness, rivalry, and corruption by its citizens seems to be
8402 all too common, those who can afford it live underground, away from
8403 the pollution and social problems which are plaguing the city.
8404
8405 You take on the role of Robert Foster, an outcast of sorts from the
8406 city since a boy who was raised in a remote environment outside of
8407 Union City simply termed ``the gap''. Robert's mother took him away
8408 from Union City as a child on their way to ``Hobart'' but the
8409 helicopter crashed on its way. Unfortunately, Robert's mother died,
8410 but he survived and was left to be raised by a local tribe from the
8411 gap.
8412
8413 Years later, Union City security drops by and abducts Robert, killing
8414 his tribe in the process; upon reaching the city the helicopter taking
8415 him there crashes with him escaping, high upon a tower block in the
8416 middle of the city. He sets out to discover the truth about his past,
8417 and to seek vengeance for the killing of his tribe.")
8418 (license (license:non-copyleft "file:///readme.txt"))))
8419
8420 (define-public gnurobots
8421 (package
8422 (name "gnurobots")
8423 (version "1.2.0")
8424 (source
8425 (origin
8426 (method url-fetch)
8427 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
8428 version ".tar.gz"))
8429 (sha256
8430 (base32
8431 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
8432 (build-system gnu-build-system)
8433 (inputs
8434 `(("glib" ,glib)
8435 ("gtk+" ,gtk+-2)
8436 ("vte" ,vte/gtk+-2)
8437 ("readline" ,readline)
8438 ("guile" ,guile-1.8)))
8439 (native-inputs
8440 `(("pkg-config" ,pkg-config)))
8441 (arguments
8442 `(#:make-flags
8443 (list
8444 ;; Do not abort build on "deprecated-declarations" warnings.
8445 "CFLAGS=-Wno-error=deprecated-declarations"
8446 ;; Find readline headers in sub-directory.
8447 (string-append "READLINE_CFLAGS=-I"
8448 (assoc-ref %build-inputs "readline")
8449 "/include/readline/"))
8450 #:phases
8451 (modify-phases %standard-phases
8452 (add-after 'install 'install-doc
8453 (lambda* (#:key outputs #:allow-other-keys)
8454 (install-file "doc/Robots-HOWTO"
8455 (string-append (assoc-ref outputs "out")
8456 "/share/doc/gnurobots-"
8457 ,version))
8458 #t)))))
8459 (home-page "https://www.gnu.org/software/gnurobots/")
8460 (synopsis "Program a little robot and watch it explore a world")
8461 (description
8462 "GNU Robots is a game in which you program a robot to explore a world
8463 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
8464 the game is to stay alive and collect prizes. The robot program conveniently
8465 may be written in a plain text file in the Scheme programming language.")
8466 (license license:gpl3+)))
8467
8468 (define-public ri-li
8469 (package
8470 (name "ri-li")
8471 (version "2.0.1")
8472 (source (origin
8473 (method url-fetch)
8474 (uri (string-append "mirror://sourceforge/ri-li/"
8475 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
8476 "Ri-li-" version ".tar.bz2"))
8477 (sha256
8478 (base32
8479 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
8480 ;; Taken from
8481 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
8482 ;; It doesn't build otherwise.
8483 (patches (search-patches "ri-li-modernize_cpp.patch"))))
8484 (build-system gnu-build-system)
8485 (arguments
8486 `(#:phases
8487 (modify-phases %standard-phases
8488 ;; Remove "gentoo" subdirectory from Makefile, as it is
8489 ;; missing a make file and generates a build failure.
8490 (add-after 'configure 'fix-build
8491 (lambda _
8492 (substitute* "Makefile"
8493 ((" gentoo") ""))
8494 #t))
8495 (add-after 'install 'install-desktop-file
8496 (lambda* (#:key outputs #:allow-other-keys)
8497 (let* ((out (assoc-ref outputs "out"))
8498 (apps (string-append out "/share/applications"))
8499 (pixmaps (string-append out "/share/pixmaps")))
8500 (for-each (lambda (f) (install-file f pixmaps))
8501 (find-files "data" "\\.(png|ico)$"))
8502 (mkdir-p apps)
8503 (with-output-to-file (string-append apps "/ri-li.desktop")
8504 (lambda _
8505 (format #t
8506 "[Desktop Entry]~@
8507 Name=Ri-li~@
8508 Exec=~a/bin/Ri_li~@
8509 Icon=~a/Ri-li-icon-32x32.png~@
8510 Categories=Game;ArcadeGame;~@
8511 Keywords=toy;train;wooden;snake-like;engine;~@
8512 Comment=a toy simulator game~@
8513 Comment[de]=Ein Spiel mit einem kleinen Zug~@
8514 Comment[fr]=un jeu de petit train~@
8515 Comment[ro_RO]=un joc cu un tren de jucărie~@
8516 Terminal=false~@
8517 Type=Application~%"
8518 out pixmaps))))
8519 #t))
8520 (add-after 'install-desktop-file 'remove-spurious-files
8521 ;; Delete redundant files already installed somewhere else.
8522 (lambda* (#:key outputs #:allow-other-keys)
8523 (let ((out (assoc-ref outputs "out")))
8524 (for-each delete-file
8525 (find-files (string-append out "/share/Ri-li")
8526 "\\.(png|ico)|COPYING"))
8527 #t))))))
8528 (inputs
8529 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
8530 (home-page "http://www.ri-li.org")
8531 (synopsis "Toy train simulation game")
8532 (description "Ri-li is a game in which you drive a wooden toy
8533 steam locomotive across many levels and collect all the coaches to
8534 win.")
8535 ;; The project is dual-licensed GPL2+ and GPL3+.
8536 (license (list license:gpl2+ license:gpl3+))))
8537
8538 (define-public freeorion
8539 (package
8540 (name "freeorion")
8541 (version "0.4.9")
8542 (source
8543 (origin
8544 (method url-fetch)
8545 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
8546 "download/v" version "/FreeOrion_v" version
8547 "_2020-02-02.db53471_Source.tar.gz"))
8548 (sha256
8549 (base32 "1qfnqkysagh8dw26plk229qh17mv4prjxs6qhfyczrmrrakb72an"))
8550 (modules '((guix build utils)))
8551 (snippet
8552 '(begin
8553 ;; There are some bundled fonts.
8554 (for-each delete-file-recursively '("default/data/fonts"))
8555 #t))))
8556 (build-system cmake-build-system)
8557 (arguments
8558 '(#:tests? #f ;no test
8559 #:phases
8560 (modify-phases %standard-phases
8561 (add-after 'unpack 'unbundle-fonts
8562 (lambda* (#:key inputs #:allow-other-keys)
8563 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
8564 "/share/fonts/truetype/")))
8565 (substitute* "UI/ClientUI.cpp"
8566 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
8567 all type)
8568 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
8569 #t))))))
8570 (inputs
8571 `(("boost" ,boost)
8572 ("boost_signals" ,boost-signals2)
8573 ("font-dejavu" ,font-dejavu)
8574 ("font-roboto" ,font-google-roboto)
8575 ("freetype2" ,freetype)
8576 ("glew" ,glew)
8577 ("glu" ,glu)
8578 ("libogg" ,libogg)
8579 ("libpng" ,libpng)
8580 ("libvorbis" ,libvorbis)
8581 ("openal" ,openal)
8582 ("python2" ,python-2.7)
8583 ("sdl2" ,sdl2)
8584 ("zlib" ,zlib)))
8585 (home-page "https://www.freeorion.org/index.php/Main_Page")
8586 (synopsis "Turn-based space empire and galactic conquest computer game")
8587 (description
8588 "FreeOrion is a turn-based space empire and galactic conquest (4X)
8589 computer game being designed and built by the FreeOrion project. Control an
8590 empire with the goal of exploring the galaxy, expanding your territory,
8591 exploiting the resources, and exterminating rival alien empires. FreeOrion is
8592 inspired by the tradition of the Master of Orion games, but is not a clone or
8593 remake of that series or any other game.")
8594 ;; Source code is released under gpl2. Artwork, music and sounds, and
8595 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
8596 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
8597 ;; released under lgpl2.1+.
8598 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
8599
8600 (define-public leela-zero
8601 (package
8602 (name "leela-zero")
8603 (version "0.17")
8604 (source
8605 (origin
8606 (method git-fetch)
8607 (uri (git-reference
8608 (url "https://github.com/leela-zero/leela-zero.git")
8609 (commit (string-append "v" version))))
8610 (file-name (git-file-name name version))
8611 (sha256
8612 (base32
8613 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
8614 (patches (search-patches "leela-zero-gtest.patch"))))
8615 (build-system cmake-build-system)
8616 (native-inputs
8617 `(("googletest" ,googletest)))
8618 (inputs
8619 `(("boost" ,boost)
8620 ("ocl-icd" ,ocl-icd)
8621 ("openblas" ,openblas)
8622 ("opencl-headers" ,opencl-headers)
8623 ("qtbase" ,qtbase)
8624 ("zlib" ,zlib)))
8625 (arguments
8626 '(#:configure-flags '("-DUSE_BLAS=YES")
8627 #:phases (modify-phases %standard-phases
8628 (add-before 'configure 'fix-tests
8629 (lambda* (#:key outputs #:allow-other-keys)
8630 (let ((home (getcwd)))
8631 (setenv "HOME" home)
8632 (substitute* "src/tests/gtests.cpp"
8633 (("\\.\\./src/tests/0k\\.txt")
8634 (string-append home "/src/tests/0k.txt"))
8635 (("cfg_gtp_mode = true;")
8636 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
8637 #t))
8638 (replace 'check
8639 (lambda _
8640 (invoke "./tests"))))))
8641 (home-page "https://github.com/leela-zero/leela-zero")
8642 (synopsis "Program playing the game of Go")
8643 (description
8644 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
8645 the AlphaGo Zero paper. The current best network weights file for the engine
8646 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
8647 (license license:gpl3+)))
8648
8649 (define-public q5go
8650 (package
8651 (name "q5go")
8652 (version "1.0")
8653 (source (origin
8654 (method git-fetch)
8655 (uri (git-reference
8656 (url "https://github.com/bernds/q5Go.git")
8657 (commit (string-append "q5go-" version))))
8658 (file-name (git-file-name name version))
8659 (sha256
8660 (base32
8661 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
8662 (build-system gnu-build-system)
8663 (native-inputs
8664 `(("pkg-config" ,pkg-config)))
8665 (inputs
8666 `(("qtbase" ,qtbase)
8667 ("qtmultimedia" ,qtmultimedia)
8668 ("qtsvg" ,qtsvg)))
8669 (arguments
8670 '(#:phases
8671 (modify-phases %standard-phases
8672 (add-after 'unpack 'fix-configure-script
8673 (lambda _
8674 ;; Bypass the unavailable qtchooser program.
8675 (substitute* "configure"
8676 (("test -z \"QTCHOOSER\"")
8677 "false")
8678 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
8679 command))
8680 #t))
8681 (add-after 'unpack 'fix-paths
8682 (lambda _
8683 (substitute* '("src/pics/Makefile.in"
8684 "src/translations/Makefile.in")
8685 (("\\$\\(datadir\\)/qGo/")
8686 "$(datadir)/q5go/"))
8687 #t))
8688 (add-after 'install 'install-desktop-file
8689 (lambda* (#:key outputs #:allow-other-keys)
8690 (let* ((out (assoc-ref outputs "out"))
8691 (apps (string-append out "/share/applications"))
8692 (pics (string-append out "/share/q5go/pics")))
8693 (delete-file-recursively (string-append out "/share/applnk"))
8694 (delete-file-recursively (string-append out "/share/mimelnk"))
8695 (install-file "../source/src/pics/Bowl.ico" pics)
8696 (mkdir-p apps)
8697 (with-output-to-file (string-append apps "/q5go.desktop")
8698 (lambda _
8699 (format #t
8700 "[Desktop Entry]~@
8701 Name=q5go~@
8702 Exec=~a/bin/q5go~@
8703 Icon=~a/Bowl.ico~@
8704 Categories=Game;~@
8705 Comment=Game of Go~@
8706 Comment[de]=Spiel des Go~@
8707 Comment[eo]=Goo~@
8708 Comment[es]=Juego de Go~@
8709 Comment[fr]=Jeu de Go~@
8710 Comment[ja]=囲碁~@
8711 Comment[ko]=바둑~@
8712 Comment[zh]=围棋~@
8713 Terminal=false~@
8714 Type=Application~%"
8715 out pics))))
8716 #t)))))
8717 (synopsis "Qt GUI to play the game of Go")
8718 (description
8719 "This a tool for Go players which performs the following functions:
8720 @itemize
8721 @item SGF editor,
8722 @item Analysis frontend for Leela Zero (or compatible engines),
8723 @item GTP interface (to play against an engine),
8724 @item IGS client (to play on the internet),
8725 @item Export games to a variety of formats.
8726 @end itemize")
8727 (home-page "https://github.com/bernds/q5Go")
8728 (license license:gpl2+)))
8729
8730 (define-public ktuberling
8731 (package
8732 (name "ktuberling")
8733 (version "19.08.3")
8734 (source
8735 (origin
8736 (method url-fetch)
8737 (uri (string-append "mirror://kde/stable/applications/" version
8738 "/src/ktuberling-" version ".tar.xz"))
8739 (sha256
8740 (base32 "1qdf4q6wjh1lnlqw5c8z4rpj9w5vbyjfri1dah6yjm3mwppbc12j"))))
8741 (build-system qt-build-system)
8742 (native-inputs
8743 `(("extra-cmake-modules" ,extra-cmake-modules)
8744 ("perl" ,perl)))
8745 (inputs
8746 `(("kcompletion" ,kcompletion)
8747 ("kconfigwidgets" ,kconfigwidgets)
8748 ("kcoreaddons" ,kcoreaddons)
8749 ("kcrash" ,kcrash)
8750 ("kdbusaddons" ,kdbusaddons)
8751 ("kdelibs4support" ,kdelibs4support)
8752 ("ki18n" ,ki18n)
8753 ("kwidgetsaddons" ,kwidgetsaddons)
8754 ("kxmlgui" ,kxmlgui)
8755 ("libkdegames" ,libkdegames)
8756 ("qtbase" ,qtbase)
8757 ("qtmultimedia" ,qtmultimedia)
8758 ("qtdeclarative" ,qtdeclarative)
8759 ("qtsvg" ,qtsvg)))
8760 (home-page "https://games.kde.org/")
8761 (synopsis "Stamp drawing toy")
8762 (description "KTuberling is a drawing toy intended for small children and
8763 adults who remain young at heart. The game has no winner; the only purpose is
8764 to make the funniest faces you can. Several activites are possible, e.g.:
8765
8766 @itemize
8767 @item Give the potato a funny face, clothes, and other goodies
8768 @item Build a small town, complete with school, zoo, and fire department
8769 @item Create a fantastic moonscape with spaceships and aliens
8770 @item Top a pizza
8771 @end itemize
8772
8773 KTuberling can speak the name of each the object in several languages,
8774 to assist in learning basic vocabulary.
8775
8776 This package is part of the KDE games module.")
8777 (license (list license:gpl2+ license:fdl1.2+))))
8778
8779 (define-public picmi
8780 (package
8781 (name "picmi")
8782 (version "19.08.3")
8783 (source
8784 (origin
8785 (method url-fetch)
8786 (uri (string-append "mirror://kde/stable/applications/" version
8787 "/src/picmi-" version ".tar.xz"))
8788 (sha256
8789 (base32 "0z9mpmv49w914gqdx274brdzl6d1bz9j9nkvbwgmr3iq1ba49m3f"))))
8790 (build-system qt-build-system)
8791 (native-inputs
8792 `(("extra-cmake-modules" ,extra-cmake-modules)
8793 ("kdoctools" ,kdoctools)))
8794 (inputs
8795 `(("kcoreaddons" ,kcoreaddons)
8796 ("kcrash" ,kcrash)
8797 ("kdbusaddons" ,kdbusaddons)
8798 ("kdeclarative" ,kdeclarative)
8799 ("ki18n" ,ki18n)
8800 ("kio" ,kio)
8801 ("knewstuff" ,knewstuff)
8802 ("kxmlgui" ,kxmlgui)
8803 ("libkdegames" ,libkdegames)
8804 ("qtbase" ,qtbase)
8805 ("qtdeclarative" ,qtdeclarative)
8806 ("qtsvg" ,qtsvg)))
8807 (home-page "https://games.kde.org/")
8808 (synopsis "Number logic game")
8809 (description "Picmi is a number logic game in which cells in a grid have
8810 to be colored or left blank according to numbers given at the side of the
8811 grid. The aim is to reveal a hidden picture.
8812
8813 This package is part of the KDE games module.")
8814 (license (list license:gpl2+ license:fdl1.2+))))
8815
8816 (define-public kolf
8817 (package
8818 (name "kolf")
8819 (version "19.08.3")
8820 (source
8821 (origin
8822 (method url-fetch)
8823 (uri (string-append "mirror://kde/stable/applications/" version
8824 "/src/kolf-" version ".tar.xz"))
8825 (sha256
8826 (base32 "06sfd0llr5cc3zf1vrpcxgw9bm009ky7y8822kynic9ipcd4z1hw"))))
8827 (build-system qt-build-system)
8828 (native-inputs
8829 `(("extra-cmake-modules" ,extra-cmake-modules)
8830 ("kdoctools" ,kdoctools)))
8831 (inputs
8832 `(("kcompletion" ,kcompletion)
8833 ("kconfigwidgets" ,kconfigwidgets)
8834 ("kcoreaddons" ,kcoreaddons)
8835 ("kcrash" ,kcrash)
8836 ("kdbusaddons" ,kdbusaddons)
8837 ("ki18n" ,ki18n)
8838 ("kio" ,kio)
8839 ("kwidgetsaddons" ,kwidgetsaddons)
8840 ("kxmlgui" ,kxmlgui)
8841 ("ktextwidgets" ,ktextwidgets)
8842 ("libkdegames" ,libkdegames)
8843 ("qtbase" ,qtbase)
8844 ("qtdeclarative" ,qtdeclarative)))
8845 (home-page "https://games.kde.org/")
8846 (synopsis "Miniature golf game")
8847 (description "Kolf is a miniature golf game for one to ten players. The
8848 game is played from an overhead view, with a short bar representing the golf
8849 club. Kolf features many different types of objects, such as water hazards,
8850 slopes, sand traps, and black holes (warps), among others.
8851
8852 Features are:
8853 @itemize
8854 @item Single and Multi-player (up to ten players) modes
8855 @item High scores table
8856 @item Dynamic courses
8857 @item Third-party courses
8858 @item Course editor
8859 @end itemize
8860
8861 This package is part of the KDE games module.")
8862 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
8863
8864 (define-public libkmahjongg
8865 (package
8866 (name "libkmahjongg")
8867 (version "19.08.3")
8868 (source
8869 (origin
8870 (method url-fetch)
8871 (uri (string-append "mirror://kde/stable/applications/"
8872 version "/src/libkmahjongg-" version ".tar.xz"))
8873 (sha256
8874 (base32 "0rdimk11hrc8qrmiv26z0ddjzi1k6806c0rfskx4cwmildmh6zgx"))))
8875 (build-system qt-build-system)
8876 (native-inputs
8877 `(("extra-cmake-modules" ,extra-cmake-modules)))
8878 (inputs
8879 `(("kauth" ,kauth)
8880 ("kcompletion" ,kcompletion)
8881 ;("kconfig" ,kconfig)
8882 ("kcodecs" ,kcodecs)
8883 ("kconfigwidgets" ,kconfigwidgets)
8884 ("kcoreaddons" ,kcoreaddons)
8885 ("ki18n" ,ki18n)
8886 ("kwidgetsaddons" ,kwidgetsaddons)
8887 ("qtbase" ,qtbase)
8888 ("qtsvg" ,qtsvg)))
8889 (home-page "https://games.kde.org/")
8890 (synopsis "Shared library for kmahjongg and kshisen")
8891 (description "Shared library and common files for kmahjongg, kshisen and
8892 other Mah Jongg like games.")
8893 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
8894
8895 (define-public kmahjongg
8896 (package
8897 (name "kmahjongg")
8898 (version "19.08.3")
8899 (source
8900 (origin
8901 (method url-fetch)
8902 (uri (string-append "mirror://kde/stable/applications/"
8903 version "/src/kmahjongg-" version ".tar.xz"))
8904 (sha256
8905 (base32 "08na845h0nhmfrszdmvfq5y1dy7kgbrlzjp0f5snvbbf7w44ci6p"))))
8906 (build-system qt-build-system)
8907 (native-inputs
8908 `(("extra-cmake-modules" ,extra-cmake-modules)
8909 ("kdoctools" ,kdoctools)))
8910 (inputs
8911 `(("kcompletion" ,kcompletion)
8912 ("kcrash" ,kcrash)
8913 ("kdbusaddons" ,kdbusaddons)
8914 ("kdeclarative" ,kdeclarative)
8915 ("ki18n" ,ki18n)
8916 ("knewstuff" ,knewstuff)
8917 ("kxmlgui" ,kxmlgui)
8918 ("libkdegames" ,libkdegames)
8919 ("libkmahjongg" ,libkmahjongg)
8920 ("qtbase" ,qtbase)
8921 ("qtdeclarative" ,qtdeclarative)
8922 ("qtsvg" ,qtsvg)))
8923 (home-page "https://games.kde.org/")
8924 (synopsis "Tile laying patience")
8925 (description "In KMahjongg the tiles are scrambled and staked on top of
8926 each other to resemble a certain shape. The player is then expected to remove
8927 all the tiles off the game board by locating each tile's matching pair.
8928
8929 A variety of tile layouts are included, as well as an editor to create new
8930 layouts.
8931
8932 This package is part of the KDE games module.")
8933 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
8934
8935 (define-public kshisen
8936 (package
8937 (name "kshisen")
8938 (version "19.08.3")
8939 (source
8940 (origin
8941 (method url-fetch)
8942 (uri (string-append "mirror://kde/stable/applications/"
8943 version "/src/kshisen-" version ".tar.xz"))
8944 (sha256
8945 (base32 "1bq5m48af4h5apfp3bfsp76nlpv6h5sc0gd544zv7cgpfznz1sds"))))
8946 (build-system qt-build-system)
8947 (native-inputs
8948 `(("extra-cmake-modules" ,extra-cmake-modules)
8949 ;("perl" ,perl)
8950 ;("pkg-config" ,pkg-config)
8951 ("kdoctools" ,kdoctools)))
8952 (inputs
8953 `(("kauth" ,kauth)
8954 ("kcompletion" ,kcompletion)
8955 ("kconfigwidgets" ,kconfigwidgets)
8956 ("kcoreaddons" ,kcoreaddons)
8957 ("kcrash" ,kcrash)
8958 ("kdbusaddons" ,kdbusaddons)
8959 ("ki18n" ,ki18n)
8960 ("kxmlgui" ,kxmlgui)
8961 ("libkdegames" ,libkdegames)
8962 ("libkmahjongg" ,libkmahjongg)
8963 ("qtbase" ,qtbase)
8964 ("qtdeclarative" ,qtdeclarative)))
8965 (home-page "https://games.kde.org/")
8966 (synopsis "Shisen-Sho solitaire game")
8967 (description "KShisen is a solitaire-like game played using the standard
8968 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
8969 scrambled tiles
8970
8971 This package is part of the KDE games module.")
8972 (license license:gpl2+)))
8973
8974 (define-public kajongg
8975 (package
8976 (name "kajongg")
8977 (version "19.08.3")
8978 (source
8979 (origin
8980 (method url-fetch)
8981 (uri (string-append "mirror://kde/stable/applications/"
8982 version "/src/kajongg-" version ".tar.xz"))
8983 (sha256
8984 (base32 "0ql6p5zifdpdf65r7ki9ml123azpwwk9x3x8r9ij6xhjnf7p7x6w"))))
8985 (build-system qt-build-system)
8986 (native-inputs
8987 `(("extra-cmake-modules" ,extra-cmake-modules)
8988 ;("perl" ,perl)
8989 ("kdoctools" ,kdoctools)))
8990 (inputs
8991 `(("kconfig" ,kconfig)
8992 ("kconfigwidgets" ,kconfigwidgets)
8993 ("kcoreaddons" ,kcoreaddons)
8994 ("ki18n" ,ki18n)
8995 ("libkmahjongg" ,libkmahjongg)
8996 ("python" ,python)
8997 ("qtbase" ,qtbase)
8998 ("qtsvg" ,qtsvg)))
8999 (propagated-inputs
9000 `(("python-twisted" ,python-twisted)
9001 ("python-pyqt" ,python-pyqt)))
9002 ;; FIXME: Need to wrap PYTHONPATH
9003 (home-page "https://games.kde.org/")
9004 (synopsis "Classical Mah Jongg game for 4 players")
9005 (description "Kajongg is the ancient Chinese board game for 4 players.
9006
9007 If you are looking for the Mah Jongg solitaire please use the application
9008 kmahjongg.
9009
9010 Kajongg can be used in two different ways: Scoring a manual game where you
9011 play as always and use Kajongg for the computation of scores and for
9012 bookkeeping. Or you can use Kajongg to play against any combination of other
9013 human players or computer players.
9014
9015 This package is part of the KDE games module.")
9016 (license (list license:gpl2+ license:fdl1.2+))))
9017
9018 (define-public kbreakout
9019 (package
9020 (name "kbreakout")
9021 (version "19.08.3")
9022 (source
9023 (origin
9024 (method url-fetch)
9025 (uri (string-append "mirror://kde/stable/applications/" version
9026 "/src/kbreakout-" version ".tar.xz"))
9027 (sha256
9028 (base32 "0gwzx1z9mxrjlcjzglg8cxkyd6900whcar3b5j9laxxarc6xhj8w"))))
9029 (build-system qt-build-system)
9030 (native-inputs
9031 `(("extra-cmake-modules" ,extra-cmake-modules)
9032 ("kdoctools" ,kdoctools)))
9033 (inputs
9034 `(("kcompletion" ,kcompletion)
9035 ("kconfig" ,kconfig)
9036 ("kconfigwidgets" ,kconfigwidgets)
9037 ("kcoreaddons" ,kcoreaddons)
9038 ("kcrash" ,kcrash)
9039 ("kdbusaddons" ,kdbusaddons)
9040 ("ki18n" ,ki18n)
9041 ("kwidgetsaddons" ,kwidgetsaddons)
9042 ("kxmlgui" ,kxmlgui)
9043 ("libkdegames" ,libkdegames)
9044 ("qtbase" ,qtbase)
9045 ("qtdeclarative" ,qtdeclarative)))
9046 (home-page "https://games.kde.org/")
9047 (synopsis "Breakout like game")
9048 (description "KBreakout is similar to the classics breakout and xboing,
9049 featuring a number of added graphical enhancements and effects. You control a
9050 paddle at the bottom of the playing-field, and must destroy bricks at the top
9051 by bouncing balls against them.
9052
9053 This package is part of the KDE games module.")
9054 (license (list license:gpl2+ license:fdl1.2+))))
9055
9056 (define-public kmines
9057 (package
9058 (name "kmines")
9059 (version "19.08.3")
9060 (source
9061 (origin
9062 (method url-fetch)
9063 (uri (string-append "mirror://kde/stable/applications/" version
9064 "/src/kmines-" version ".tar.xz"))
9065 (sha256
9066 (base32 "0ac3za36lh8hpx6mqfic9amwmzhzhzplm9hg3pw12gxl5a9mvfsf"))))
9067 (build-system qt-build-system)
9068 (native-inputs
9069 `(("extra-cmake-modules" ,extra-cmake-modules)
9070 ("kdoctools" ,kdoctools)))
9071 (inputs
9072 `(("kcompletion" ,kcompletion)
9073 ("kconfig" ,kconfig)
9074 ("kconfigwidgets" ,kconfigwidgets)
9075 ("kcoreaddons" ,kcoreaddons)
9076 ("kcrash" ,kcrash)
9077 ("kdbusaddons" ,kdbusaddons)
9078 ("ki18n" ,ki18n)
9079 ("ktextwidgets" ,ktextwidgets)
9080 ("kwidgetsaddons" ,kwidgetsaddons)
9081 ("kxmlgui" ,kxmlgui)
9082 ("libkdegames" ,libkdegames)
9083 ("qtbase" ,qtbase)
9084 ("qtdeclarative" ,qtdeclarative)))
9085 (home-page "https://games.kde.org/")
9086 (synopsis "Classical mine sweeper game")
9087 (description "KMines is a classic Minesweeper game. The idea is to
9088 uncover all the squares without blowing up any mines. When a mine is blown
9089 up, the game is over.
9090
9091 This package is part of the KDE games module.")
9092 (license (list license:gpl2+ license:fdl1.2+))))
9093
9094 (define-public konquest
9095 (package
9096 (name "konquest")
9097 (version "19.08.3")
9098 (source
9099 (origin
9100 (method url-fetch)
9101 (uri (string-append "mirror://kde/stable/applications/"
9102 version "/src/konquest-" version ".tar.xz"))
9103 (sha256
9104 (base32 "02gjxskhi10a1sqh3skcild8zria7wncz1a4sbz7ax1p851q76k1"))))
9105 (build-system qt-build-system)
9106 (native-inputs
9107 `(("extra-cmake-modules" ,extra-cmake-modules)
9108 ("kdoctools" ,kdoctools)))
9109 (inputs
9110 `(("kcompletion" ,kcompletion)
9111 ("kconfig" ,kconfig)
9112 ("kcoreaddons" ,kcoreaddons)
9113 ("kcrash" ,kcrash)
9114 ("kdbusaddons" ,kdbusaddons)
9115 ("kguiaddons" ,kguiaddons)
9116 ("ki18n" ,ki18n)
9117 ("kwidgetsaddons" ,kwidgetsaddons)
9118 ("kxmlgui" ,kxmlgui)
9119 ("libkdegames" ,libkdegames)
9120 ("qtbase" ,qtbase)
9121 ("qtdeclarative" ,qtdeclarative)
9122 ("qtsvg" ,qtsvg)))
9123 (home-page "https://games.kde.org/")
9124 (synopsis "Simple turn-based strategy game")
9125 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
9126 conquer other planets by sending ships to them. The goal is to build an
9127 interstellar empire and ultimately conquer all other player's planets. The
9128 game can be played with up to nine empires, commanded either by the computer
9129 or by puny earthlings.
9130
9131 This package is part of the KDE games module.")
9132 (license (list license:gpl2+ license:fdl1.2+))))
9133
9134 (define-public kbounce
9135 (package
9136 (name "kbounce")
9137 (version "19.08.3")
9138 (source
9139 (origin
9140 (method url-fetch)
9141 (uri (string-append "mirror://kde/stable/applications/"
9142 version "/src/kbounce-" version ".tar.xz"))
9143 (sha256
9144 (base32 "02rfv0qzz5cmyfx8f56a45hbm9gsp6m3dcy8ajwx88rw5wpbrr11"))))
9145 (build-system qt-build-system)
9146 (native-inputs
9147 `(("extra-cmake-modules" ,extra-cmake-modules)
9148 ("kdoctools" ,kdoctools)))
9149 (inputs
9150 `(("kcompletion" ,kcompletion)
9151 ("kconfigwidgets" ,kconfigwidgets)
9152 ("kcoreaddons" ,kcoreaddons)
9153 ("kcrash" ,kcrash)
9154 ("kdbusaddons" ,kdbusaddons)
9155 ("ki18n" ,ki18n)
9156 ("kio" ,kio)
9157 ("kwidgetsaddons" ,kwidgetsaddons)
9158 ("kxmlgui" ,kxmlgui)
9159 ("libkdegames" ,libkdegames)
9160 ("qtbase" ,qtbase)
9161 ("qtdeclarative" ,qtdeclarative)
9162 ("qtsvg" ,qtsvg)))
9163 (home-page "https://games.kde.org/")
9164 (synopsis "Jezzball arcade game")
9165 (description "KBounce is a single player arcade game with the elements of
9166 puzzle. It is played on a field, surrounded by wall, with two or more balls
9167 bouncing around within the walls. The object of the game is to build new
9168 walls to decrease the size of the active field.
9169
9170 This package is part of the KDE games module.")
9171 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9172
9173 (define-public kblocks
9174 (package
9175 (name "kblocks")
9176 (version "19.08.3")
9177 (source
9178 (origin
9179 (method url-fetch)
9180 (uri (string-append "mirror://kde/stable/applications/"
9181 version "/src/kblocks-" version ".tar.xz"))
9182 (sha256
9183 (base32 "0qrm0dihzhkxsq9l49ndzms802x6jn92vvabb2zf2q9z593m69cx"))))
9184 (build-system qt-build-system)
9185 (native-inputs
9186 `(("extra-cmake-modules" ,extra-cmake-modules)
9187 ("kdoctools" ,kdoctools)))
9188 (inputs
9189 `(("kcompletion" ,kcompletion)
9190 ("kconfig" ,kconfig)
9191 ("kconfigwidgets" ,kconfigwidgets)
9192 ("kcoreaddons" ,kcoreaddons)
9193 ("kcrash" ,kcrash)
9194 ("kdbusaddons" ,kdbusaddons)
9195 ("ki18n" ,ki18n)
9196 ("kwidgetsaddons" ,kwidgetsaddons)
9197 ("kxmlgui" ,kxmlgui)
9198 ("libkdegames" ,libkdegames)
9199 ("qtbase" ,qtbase)
9200 ("qtdeclarative" ,qtdeclarative)
9201 ("qtsvg" ,qtsvg)))
9202 (home-page "https://games.kde.org/")
9203 (synopsis "Single player falling blocks puzzle game")
9204 (description "KBlocks is the classic Tetris-like falling blocks game.
9205
9206 The idea is to stack the falling blocks to create horizontal lines without any
9207 gaps. When a line is completed it is removed, and more space is available in
9208 the play area. When there is not enough space for blocks to fall, the game is
9209 over.
9210
9211 This package is part of the KDE games module.")
9212 (license (list license:gpl2+ license:fdl1.2+))))
9213
9214 (define-public ksudoku
9215 (package
9216 (name "ksudoku")
9217 (version "19.08.3")
9218 (source
9219 (origin
9220 (method url-fetch)
9221 (uri (string-append "mirror://kde/stable/applications/"
9222 version "/src/ksudoku-" version ".tar.xz"))
9223 (sha256
9224 (base32 "0rcscz91hilm7l3am5w02n0n8l7xhi4l0n4sskznh68kblw0ggw2"))))
9225 (build-system qt-build-system)
9226 (native-inputs
9227 `(("extra-cmake-modules" ,extra-cmake-modules)
9228 ("kdoctools" ,kdoctools)))
9229 (inputs
9230 `(("karchive", karchive)
9231 ("kconfig" ,kconfig)
9232 ("kconfigwidgets" ,kconfigwidgets)
9233 ("kcoreaddons" ,kcoreaddons)
9234 ("kcrash" ,kcrash)
9235 ("kguiaddons" ,kguiaddons)
9236 ("ki18n" ,ki18n)
9237 ("kiconthemes" ,kiconthemes)
9238 ("kio" ,kio)
9239 ("kwidgetsaddons" ,kwidgetsaddons)
9240 ("kxmlgui" ,kxmlgui)
9241 ("libkdegames" ,libkdegames)
9242 ("glu" ,glu)
9243 ("qtbase" ,qtbase)
9244 ("qtdeclarative" ,qtdeclarative)
9245 ("qtsvg" ,qtsvg)))
9246 (home-page "https://games.kde.org/")
9247 (synopsis "Sudoku puzzle game and solver")
9248 (description "KSudoku is a Sudoku game and solver, supporting a range of
9249 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
9250 puzzle sheets and find the solution to any Sudoku puzzle.
9251
9252 The word Sudoku means \"single number in an allotted place\" in Japanese.
9253 These are the basic rules: Every Sudoku is a square divided into 3x3
9254 subsquares with 3x3 cells each.
9255
9256 Some cells are filled with a number at the beginning. The remaining ones are
9257 to be filled by the player using numbers from 1 to 9, without repeating a
9258 number twice on each column, row or subsquare (each of them must contain only
9259 one 1, one 2, one 3, and so on). The game requires logic and patience.
9260 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
9261 and experience.
9262
9263 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
9264 board we use letters): arithmetic relationships between numbers are
9265 irrelevant.
9266
9267 This program supports also 16x16 games with numbers from 1 to 16 and 256
9268 cells with 16 cols, rows and subsquares!
9269
9270 More information at http://en.wikipedia.org/wiki/Sudoku
9271
9272 This package is part of the KDE games module.")
9273 (license (list license:gpl2+ license:fdl1.2+))))
9274
9275 (define-public klines
9276 (package
9277 (name "klines")
9278 (version "19.08.3")
9279 (source
9280 (origin
9281 (method url-fetch)
9282 (uri (string-append "mirror://kde/stable/applications/" version
9283 "/src/klines-" version ".tar.xz"))
9284 (sha256
9285 (base32 "1g1f46jp0rb8gpqkgcf915ydpsscn1sxk3gjvm8bcqgx9ddq59xa"))))
9286 (build-system qt-build-system)
9287 (native-inputs
9288 `(("extra-cmake-modules" ,extra-cmake-modules)
9289 ("kdoctools" ,kdoctools)))
9290 (inputs
9291 `(("kcompletion" ,kcompletion)
9292 ("kconfigwidgets" ,kconfigwidgets)
9293 ("kcoreaddons" ,kcoreaddons)
9294 ("kcrash" ,kcrash)
9295 ("kdbusaddons" ,kdbusaddons)
9296 ("ki18n" ,ki18n)
9297 ("kwidgetsaddons" ,kwidgetsaddons)
9298 ("kxmlgui" ,kxmlgui)
9299 ("libkdegames" ,libkdegames)
9300 ("qtbase" ,qtbase)
9301 ("qtdeclarative" ,qtdeclarative)))
9302 (home-page "https://games.kde.org/")
9303 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
9304 (description "KLines is a simple but highly addictive one player game.
9305
9306 The player has to move the colored balls around the game board, gathering them
9307 into the lines of the same color by five. Once the line is complete it is
9308 removed from the board, therefore freeing precious space. In the same time
9309 the new balls keep arriving by three after each move, filling up the game
9310 board.
9311
9312 KLines is a single-player game where the player removes colored balls from the
9313 board by arranging them into lines of five or more. However, every time the
9314 player moves a ball, three more balls are added to the board.
9315
9316 This package is part of the KDE games module.")
9317 (license (list license:gpl2+ license:fdl1.2+))))
9318
9319 (define-public kgoldrunner
9320 (package
9321 (name "kgoldrunner")
9322 (version "19.08.3")
9323 (source
9324 (origin
9325 (method url-fetch)
9326 (uri (string-append "mirror://kde/stable/applications/" version "/src/kgoldrunner-"
9327 version ".tar.xz"))
9328 (sha256
9329 (base32 "16rcvq796r3asz4v4ap75xvwnxd3dd2nsq5r9vxvzl6rrf1w9bj4"))))
9330 (build-system qt-build-system)
9331 (native-inputs
9332 `(("extra-cmake-modules" ,extra-cmake-modules)
9333 ("kdoctools" ,kdoctools)))
9334 (inputs
9335 `(("kcompletion" ,kcompletion)
9336 ("kcoreaddons" ,kcoreaddons)
9337 ("kcrash" ,kcrash)
9338 ("kdbusaddons" ,kdbusaddons)
9339 ("ki18n" ,ki18n)
9340 ("kio" ,kio)
9341 ("kwidgetsaddons" ,kwidgetsaddons)
9342 ("kxmlgui" ,kxmlgui)
9343 ("libkdegames" ,libkdegames)
9344 ("qtbase" ,qtbase)
9345 ("qtdeclarative" ,qtdeclarative)))
9346 (home-page "https://games.kde.org/")
9347 (synopsis "Action and puzzle solving game")
9348 (description "KGoldrunner is an action game where the hero runs through a
9349 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
9350 gold nuggets and escape to the next level. Your enemies are also after the
9351 gold. Worse still, they are after you!.
9352
9353 KGoldrunner is a fast-paced platform game where the player must navigate a
9354 maze while collecting gold nuggets and avoiding enemies. A variety of level
9355 packs are included, as well as an editor to create new levels.
9356
9357 This package is part of the KDE games module.")
9358 (license (list license:gpl2+ license:fdl1.2+))))
9359
9360 (define-public kdiamond
9361 (package
9362 (name "kdiamond")
9363 (version "19.08.3")
9364 (source
9365 (origin
9366 (method url-fetch)
9367 (uri (string-append "mirror://kde/stable/applications/" version
9368 "/src/kdiamond-" version ".tar.xz"))
9369 (sha256
9370 (base32 "1v5yb9hb26lk277zhw8d37ks829yfqr5anzx1qhms44gca5kqhva"))))
9371 (build-system qt-build-system)
9372 (native-inputs
9373 `(("extra-cmake-modules" ,extra-cmake-modules)
9374 ("kdoctools" ,kdoctools)))
9375 (inputs
9376 `(("kcompletion", kcompletion)
9377 ("kconfig" ,kconfig)
9378 ("kconfigwidgets" ,kconfigwidgets)
9379 ("kcoreaddons" ,kcoreaddons)
9380 ("kcrash" ,kcrash)
9381 ("kdbusaddons" ,kdbusaddons)
9382 ("ki18n" ,ki18n)
9383 ("knotifications" ,knotifications)
9384 ("knotifyconfig" ,knotifyconfig)
9385 ("kwidgetsaddons" ,kwidgetsaddons)
9386 ("kxmlgui" ,kxmlgui)
9387 ("libkdegames" ,libkdegames)
9388 ("qtbase" ,qtbase)
9389 ("qtdeclarative" ,qtdeclarative)))
9390 (home-page "https://games.kde.org/")
9391 (synopsis "Three-in-a-row game")
9392 (description "KDiamond is a three-in-a-row game like Bejeweled. It
9393 features unlimited fun with randomly generated games and five difficulty
9394 levels with varying number of diamond colors and board sizes.
9395
9396 This package is part of the KDE games module.")
9397 (license (list license:gpl2+ license:fdl1.2+))))
9398
9399 (define-public kfourinline
9400 (package
9401 (name "kfourinline")
9402 (version "19.08.3")
9403 (source
9404 (origin
9405 (method url-fetch)
9406 (uri (string-append "mirror://kde/stable/applications/" version
9407 "/src/kfourinline-" version ".tar.xz"))
9408 (sha256
9409 (base32 "1vprs6dc1ccn3g6k594i9s94xy4b91vzlqjysyc6fqcq2fs54ny3"))))
9410 (build-system qt-build-system)
9411 (native-inputs
9412 `(("extra-cmake-modules" ,extra-cmake-modules)
9413 ("kdoctools" ,kdoctools)))
9414 (inputs
9415 `(("kcompletion" ,kcompletion)
9416 ("kconfig" ,kconfig)
9417 ("kconfigwidgets" ,kconfigwidgets)
9418 ("kcoreaddons" ,kcoreaddons)
9419 ("kcrash" ,kcrash)
9420 ("kdelibs4support" ,kdelibs4support)
9421 ("kdnssd" ,kdnssd)
9422 ("ki18n" ,ki18n)
9423 ("kxmlgui" ,kxmlgui)
9424 ("libkdegames" ,libkdegames)
9425 ("qtbase" ,qtbase)
9426 ("qtdeclarative" ,qtdeclarative)
9427 ("qtsvg" ,qtsvg)))
9428 (home-page "https://games.kde.org/")
9429 (synopsis "Place 4 pieces in a row")
9430 (description "KFourInLine is a board game for two players based on the
9431 Connect-Four game.
9432
9433 KFourInLine is a game where two players take turns dropping pieces into a
9434 grid, the winner being the first to place four pieces in a line.
9435
9436 This package is part of the KDE games module.")
9437 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9438
9439 (define-public kblackbox
9440 (package
9441 (name "kblackbox")
9442 (version "19.08.3")
9443 (source
9444 (origin
9445 (method url-fetch)
9446 (uri (string-append "mirror://kde/stable/applications/" version
9447 "/src/kblackbox-" version ".tar.xz"))
9448 (sha256
9449 (base32 "1x42sfpf75c6mavwkc7g7dm11y9s5dpj8igphly5kvm0pajqby0n"))))
9450 (build-system qt-build-system)
9451 (native-inputs
9452 `(("extra-cmake-modules" ,extra-cmake-modules)
9453 ("kdoctools" ,kdoctools)))
9454 (inputs
9455 `(("karchive" ,karchive)
9456 ("kcompletion" ,kcompletion)
9457 ("kconfig" ,kconfig)
9458 ("kcoreaddons" ,kcoreaddons)
9459 ("kcrash" ,kcrash)
9460 ("kdbusaddons" ,kdbusaddons)
9461 ("ki18n" ,ki18n)
9462 ("ktextwidgets" ,ktextwidgets)
9463 ("kxmlgui" ,kxmlgui)
9464 ("libkdegames" ,libkdegames)
9465 ("qtbase" ,qtbase)
9466 ("qtdeclarative" ,qtdeclarative)
9467 ("qtsvg" ,qtsvg)))
9468 (home-page "https://games.kde.org/")
9469 (synopsis "Find atoms in a grid by shooting electrons")
9470 (description "KBlackbox is a game of hide and seek played on a grid of
9471 boxes where the computer has hidden several balls. The position of the hidden
9472 balls can be deduced by shooting beams into the box
9473
9474 KBlackBox is a game of hide and seek played on an grid of boxes, where the
9475 player shoots rays into the grid to deduce the positions of hidden objects.
9476
9477 This package is part of the KDE games module.")
9478 (license (list license:gpl2+ license:fdl1.2+))))
9479
9480 (define-public knetwalk
9481 (package
9482 (name "knetwalk")
9483 (version "19.08.3")
9484 (source
9485 (origin
9486 (method url-fetch)
9487 (uri (string-append "mirror://kde/stable/applications/" version
9488 "/src/knetwalk-" version ".tar.xz"))
9489 (sha256
9490 (base32 "1i340salzgqdw8y33wrrydmpgx3pvwf5wrbljlh67cjf6s4csx7d"))))
9491 (build-system qt-build-system)
9492 (native-inputs
9493 `(("extra-cmake-modules" ,extra-cmake-modules)
9494 ("kdoctools" ,kdoctools)))
9495 (inputs
9496 `(("kcompletion" ,kcompletion)
9497 ("kconfig" ,kconfig)
9498 ("kconfigwidgets" ,kconfigwidgets)
9499 ("kcoreaddons" ,kcoreaddons)
9500 ("kcrash" ,kcrash)
9501 ("kdbusaddons" ,kdbusaddons)
9502 ("ki18n" ,ki18n)
9503 ("ktextwidgets" ,ktextwidgets)
9504 ("kwidgetsaddons" ,kwidgetsaddons)
9505 ("kxmlgui" ,kxmlgui)
9506 ("libkdegames" ,libkdegames)
9507 ("qtbase" ,qtbase)
9508 ("qtdeclarative" ,qtdeclarative)))
9509 (home-page "https://games.kde.org/")
9510 (synopsis "Turn the board pieces to get all computers connected")
9511 (description "KNetWalk is a small game where you have to build up a
9512 computer network by rotating the wires to connect the terminals to the server.
9513 When the network is build, a highscore-list comes up where competitions can be
9514 fought out.
9515
9516 KNetwalk is a puzzle game where the player arranges sections of wire to
9517 connect all the computers on the board.
9518
9519 This package is part of the KDE games module.")
9520 (license (list license:gpl2+ license:fdl1.2+))))
9521
9522 (define-public bomber
9523 (package
9524 (name "bomber")
9525 (version "19.08.3")
9526 (source
9527 (origin
9528 (method url-fetch)
9529 (uri (string-append "mirror://kde/stable/applications/" version
9530 "/src/bomber-" version ".tar.xz"))
9531 (sha256
9532 (base32 "1lvzd0mzgq25akvwvkm57l3plm65k731v2i1ahakn985bb5gc3is"))))
9533 (build-system qt-build-system)
9534 (native-inputs
9535 `(("extra-cmake-modules" ,extra-cmake-modules)
9536 ("kdoctools" ,kdoctools)))
9537 (inputs
9538 `(("kcompletiom" ,kcompletion)
9539 ("kconfig" ,kconfig)
9540 ("kcoreaddons" ,kcoreaddons)
9541 ("kcrash" ,kcrash)
9542 ("kdbusaddons" ,kdbusaddons)
9543 ("ki18n" ,ki18n)
9544 ("kxmlgui" ,kxmlgui)
9545 ("libkdegames" ,libkdegames)
9546 ("qtbase" ,qtbase)
9547 ("qtdeclarative" ,qtdeclarative)))
9548 (home-page "https://games.kde.org/")
9549 (synopsis "Arcade bombing game")
9550 (description "Bomber is a single player arcade game.
9551
9552 The player is invading various cities in a plane that is decreasing in height.
9553 The goal of the game is to destroy all the buildings and advance to the next
9554 level. Each level gets a bit harder by increasing the speed of the plane and
9555 the height of the buildings.
9556
9557 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
9558 below you. Each pass the spaceship makes, it gets lower and lower. If you've
9559 not destroyed a building in your path, you will crash into it.
9560
9561 This package is part of the KDE games module.")
9562 (license (list license:gpl2+ license:fdl1.2+))))
9563
9564 (define-public granatier
9565 (package
9566 (name "granatier")
9567 (version "19.08.3")
9568 (source
9569 (origin
9570 (method url-fetch)
9571 (uri (string-append "mirror://kde/stable/applications/" version
9572 "/src/granatier-" version ".tar.xz"))
9573 (sha256
9574 (base32 "141qmdinz7ikbbrs8dq6cap3nl22sl7pw62r80pf3xxwn2q4phpa"))))
9575 (build-system qt-build-system)
9576 (native-inputs
9577 `(("extra-cmake-modules" ,extra-cmake-modules)
9578 ("kdoctools" ,kdoctools)))
9579 (inputs
9580 `(("kcompletion" ,kcompletion)
9581 ("kconfig" ,kconfig)
9582 ("kconfigwidgets" ,kconfigwidgets)
9583 ("kcoreaddons" ,kcoreaddons)
9584 ("kcrash" ,kcrash)
9585 ("kdbusaddons" ,kdbusaddons)
9586 ("ki18n" ,ki18n)
9587 ("knewstuff" ,knewstuff)
9588 ("kwidgetsaddons" ,kwidgetsaddons)
9589 ("kxmlgui" ,kxmlgui)
9590 ("libkdegames" ,libkdegames)
9591 ("qtbase" ,qtbase)
9592 ("qtdeclarative" ,qtdeclarative)
9593 ("qtsvg" ,qtsvg)))
9594 (home-page "https://games.kde.org/")
9595 (synopsis "Bomberman clone")
9596 (description "Granatier is a clone of the classic Bomberman game,
9597 inspired by the work of the Clanbomber clone.
9598
9599 This package is part of the KDE games module.")
9600 (license (list license:gpl2+ license:fdl1.2+))))
9601
9602 (define-public ksirk
9603 (package
9604 (name "ksirk")
9605 (version "19.08.3")
9606 (source
9607 (origin
9608 (method url-fetch)
9609 (uri (string-append "mirror://kde/stable/applications/" version
9610 "/src/ksirk-" version ".tar.xz"))
9611 (sha256
9612 (base32 "1b1wixs2hp5qnvdygfwa3kvy0kn94ysa4ifmx90q6r3yfr2lpfca"))))
9613 (build-system qt-build-system)
9614 (native-inputs
9615 `(("extra-cmake-modules" ,extra-cmake-modules)
9616 ("kdoctools" ,kdoctools)))
9617 (inputs
9618 `(("kcrash" ,kcrash)
9619 ("ki18n" ,ki18n)
9620 ("kiconthemes" ,kiconthemes)
9621 ("kio" ,kio)
9622 ("knewstuff" ,knewstuff)
9623 ("kwallet" ,kwallet)
9624 ("kxmlgui" ,kxmlgui)
9625 ("libkdegames" ,libkdegames)
9626 ("phonon" ,phonon)
9627 ("qca" ,qca)
9628 ("qtbase" ,qtbase)
9629 ("qtdeclarative" ,qtdeclarative)
9630 ("qtsvg" ,qtsvg)
9631 ("zlib" ,zlib)))
9632 (home-page "https://games.kde.org/")
9633 (synopsis "Computerized version of the well known strategy board game
9634 'Risk'")
9635 (description "KsirK is a multi-player network-enabled game. The goal of
9636 the game is simply to conquer the world by attacking your neighbors with your
9637 armies.
9638
9639 At the beginning of the game, countries are distributed to all the players.
9640 Each country contains one army represented by an infantryman. Each player has
9641 some armies to distribute to his countries. On each turn, each player can
9642 attack his neighbours, eventually conquering one or more countries. At the
9643 end of each turn, some bonus armies are distributed to the players in function
9644 of the number of countries they own. The winner is the player that conquered
9645 all the world.
9646
9647 Features:
9648 @itemize
9649 @item Support for 1-6 human or computer players
9650 @item Multi-player gaming over a network
9651 @item You can easily create new skins with SVG graphics and the skin editor
9652 @item Hot New Stuff support. You can easily download and install new skins
9653 @end itemize
9654
9655 This package is part of the KDE games module.")
9656 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9657
9658 (define-public palapeli
9659 (package
9660 (name "palapeli")
9661 (version "19.08.3")
9662 (source
9663 (origin
9664 (method url-fetch)
9665 (uri (string-append "mirror://kde/stable/applications/" version
9666 "/src/palapeli-" version ".tar.xz"))
9667 (sha256
9668 (base32 "1g91ydbc0x2y2gn3lcb5w03mn7k78l5bq4cb1s59kx6yjbflv3pw"))))
9669 (build-system qt-build-system)
9670 (native-inputs
9671 `(("extra-cmake-modules" ,extra-cmake-modules)
9672 ("kdoctools" ,kdoctools)))
9673 (inputs
9674 `(("karchive" ,karchive)
9675 ("kcompletion" ,kcompletion)
9676 ("kconfig" ,kconfig)
9677 ("kconfigwidgets" ,kconfigwidgets)
9678 ("kcoreaddons" ,kcoreaddons)
9679 ("kcrash" ,kcrash)
9680 ("kcrash" ,kcrash)
9681 ("ki18n" ,ki18n)
9682 ("ki18n" ,ki18n)
9683 ("kio" ,kio)
9684 ("kitemviews" ,kitemviews)
9685 ("knotifications" ,knotifications)
9686 ("kservice" ,kservice)
9687 ("kwidgetsaddons" ,kwidgetsaddons)
9688 ("kxmlgui" ,kxmlgui)
9689 ("libkdegames" ,libkdegames)
9690 ("qtbase" ,qtbase)
9691 ("qtdeclarative" ,qtdeclarative)
9692 ("qtsvg" ,qtsvg)
9693 ("shared-mime-info" ,shared-mime-info)))
9694 (home-page "https://games.kde.org/")
9695 (synopsis "Jigsaw puzzle game")
9696 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
9697 that genre, you are not limited to aligning pieces on imaginary grids. The
9698 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
9699 everything you do is saved on your disk immediately.
9700
9701 Palapeli is the Finnish word for jigsaw puzzle.
9702
9703 This package is part of the KDE games module.")
9704 (license license:gpl2+)))
9705
9706 (define-public kiriki
9707 (package
9708 (name "kiriki")
9709 (version "19.08.3")
9710 (source
9711 (origin
9712 (method url-fetch)
9713 (uri (string-append "mirror://kde/stable/applications/" version
9714 "/src/kiriki-" version ".tar.xz"))
9715 (sha256
9716 (base32 "1xg25dj95g81dc5l7k47am4j52abrwwfx4h73lvsbn4lc8lfmshw"))))
9717 (build-system qt-build-system)
9718 (native-inputs
9719 `(("extra-cmake-modules" ,extra-cmake-modules)
9720 ("kdoctools" ,kdoctools)))
9721 (inputs
9722 `(("kcompletion" ,kcompletion)
9723 ("kconfig" ,kconfig)
9724 ("kconfigwidgets" ,kconfigwidgets)
9725 ("kcoreaddons" ,kcoreaddons)
9726 ("kcrash" ,kcrash)
9727 ("kdbusaddons" ,kdbusaddons)
9728 ("ki18n" ,ki18n)
9729 ("kiconthemes" ,kiconthemes)
9730 ("kxmlgui" ,kxmlgui)
9731 ("libkdegames" ,libkdegames)
9732 ("qtbase" ,qtbase)
9733 ("qtdeclarative" ,qtdeclarative)))
9734 (home-page "https://games.kde.org/")
9735 (synopsis "Yahtzee dice game")
9736 (description "Kiriki is an addictive and fun dice game, designed to be
9737 played by as many as six players.
9738
9739 Participants have to collect points by rolling five dice for up to three times
9740 per single turn to make combinations with the highest score.
9741
9742 This package is part of the KDE games module.")
9743 (license (list license:gpl2+ license:fdl1.2+))))
9744
9745 (define-public kigo
9746 (package
9747 (name "kigo")
9748 (version "19.08.3")
9749 (source
9750 (origin
9751 (method url-fetch)
9752 (uri (string-append "mirror://kde/stable/applications/" version
9753 "/src/kigo-" version ".tar.xz"))
9754 (sha256
9755 (base32 "00l5gcbi8xyj9c1lngkrddka3a4m4cd78prfplrpq32ma9xq681f"))))
9756 (build-system qt-build-system)
9757 (native-inputs
9758 `(("extra-cmake-modules" ,extra-cmake-modules)
9759 ("kdoctools" ,kdoctools)))
9760 (inputs
9761 `(("kconfig" ,kconfig)
9762 ("kconfigwidgets" ,kconfigwidgets)
9763 ("kcoreaddons" ,kcoreaddons)
9764 ("kcrash" ,kcrash)
9765 ("kdbusaddons" ,kdbusaddons)
9766 ("ki18n" ,ki18n)
9767 ("kio" ,kio)
9768 ("knewstuff", knewstuff)
9769 ("ktextwidgets" ,ktextwidgets)
9770 ("kxmlgui" ,kxmlgui)
9771 ("libkdegames" ,libkdegames)
9772 ("qtbase" ,qtbase)
9773 ("qtdeclarative" ,qtdeclarative)
9774 ("qtsvg" ,qtsvg)))
9775 (home-page "https://games.kde.org/")
9776 (synopsis "Go board game")
9777 (description "Kigo is an open-source implementation of the popular Go
9778 game.
9779
9780 Go is a strategic board game for two players. It is also known as
9781 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
9782 for being rich in strategic complexity despite its simple rules. The game is
9783 played by two players who alternately place black and white stones (playing
9784 pieces, now usually made of glass or plastic) on the vacant intersections of a
9785 grid of 19x19 lines (9x9 or 13x13 for easier games).
9786
9787 You also need to install a go engine, e.g. @code{gnugo}.
9788
9789 This package is part of the KDE games module.")
9790 (license license:gpl3+)))
9791
9792 (define-public kubrick
9793 (package
9794 (name "kubrick")
9795 (version "19.08.3")
9796 (source
9797 (origin
9798 (method url-fetch)
9799 (uri (string-append "mirror://kde/stable/applications/" version
9800 "/src/kubrick-" version ".tar.xz"))
9801 (sha256
9802 (base32 "0ma8wja4rqlsmsr8cyicfpkwlgqva4450ls4c0ql53p0kabf04gx"))))
9803 (build-system qt-build-system)
9804 (native-inputs
9805 `(("extra-cmake-modules" ,extra-cmake-modules)
9806 ("kdoctools" ,kdoctools)))
9807 (inputs
9808 `(("glu" ,glu)
9809 ("kconfig" ,kconfig)
9810 ("kconfigwidgets" ,kconfigwidgets)
9811 ("kcoreaddons" ,kcoreaddons)
9812 ("kcrash" ,kcrash)
9813 ("ki18n" ,ki18n)
9814 ("kio" ,kio)
9815 ("kwidgetsaddons" ,kwidgetsaddons)
9816 ("kxmlgui" ,kxmlgui)
9817 ("libkdegames" ,libkdegames)
9818 ("qtbase" ,qtbase)
9819 ("qtdeclarative" ,qtdeclarative)
9820 ("qtsvg" ,qtsvg)))
9821 (home-page "https://games.kde.org/")
9822 (synopsis "Game based on Rubik's Cube")
9823 (description "Kubrick is a game based on the Rubik's Cube puzzle.
9824
9825 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
9826 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
9827 selection of puzzles at several levels of difficulty, as well as demos of
9828 pretty patterns and solution moves, or you can make up your own puzzles. The
9829 game has unlimited undo, redo, save and reload capabilities.
9830
9831 This package is part of the KDE games module.")
9832 (license (list license:gpl2+ license:fdl1.2+))))
9833
9834 (define-public lskat
9835 (package
9836 (name "lskat")
9837 (version "19.08.3")
9838 (source
9839 (origin
9840 (method url-fetch)
9841 (uri (string-append "mirror://kde/stable/applications/" version
9842 "/src/lskat-" version ".tar.xz"))
9843 (sha256
9844 (base32 "1qk5hd27zb42pbcxq5wyzz62nj5f0qdmgy54r9rnk92pzzzk94s9"))))
9845 (build-system qt-build-system)
9846 (native-inputs
9847 `(("extra-cmake-modules" ,extra-cmake-modules)
9848 ("kdoctools" ,kdoctools)))
9849 (inputs
9850 `(("kcompletion" ,kcompletion)
9851 ("kconfig" ,kconfig)
9852 ("kcoreaddons" ,kcoreaddons)
9853 ("kcrash" ,kcrash)
9854 ("kguiaddons" ,kguiaddons)
9855 ("ki18n" ,ki18n)
9856 ("kwidgetsaddons" ,kwidgetsaddons)
9857 ("kxmlgui" ,kxmlgui)
9858 ("libkdegames" ,libkdegames)
9859 ("qtbase" ,qtbase)
9860 ("qtdeclarative" ,qtdeclarative)
9861 ("qtsvg" ,qtsvg)))
9862 (home-page "https://games.kde.org/")
9863 (synopsis "Lieutnant Skat card game")
9864 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
9865 engaging card game for two players, where the second player is either live
9866 opponent, or a built in artificial intelligence.
9867
9868 Lieutnant Skat is a simplified variant of the Skat card game for two players.
9869
9870 This package is part of the KDE games module.")
9871 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9872
9873 (define-public kapman
9874 (package
9875 (name "kapman")
9876 (version "19.08.3")
9877 (source
9878 (origin
9879 (method url-fetch)
9880 (uri (string-append "mirror://kde/stable/applications/" version
9881 "/src/kapman-" version ".tar.xz"))
9882 (sha256
9883 (base32 "03pq38caam30q4bw14c045kayw2d87xq1yaa3s2jkrylylfq3p0f"))))
9884 (build-system qt-build-system)
9885 (native-inputs
9886 `(("extra-cmake-modules" ,extra-cmake-modules)
9887 ("kdoctools" ,kdoctools)))
9888 (inputs
9889 `(("kcompletion" ,kcompletion)
9890 ("kconfig" ,kconfig)
9891 ("kconfigwidgets" ,kconfigwidgets)
9892 ("kcoreaddons" ,kcoreaddons)
9893 ("kcrash" ,kcrash)
9894 ("kdbusaddons" ,kdbusaddons)
9895 ("ki18n" ,ki18n)
9896 ("kxmlgui" ,kxmlgui)
9897 ("libkdegames" ,libkdegames)
9898 ("qtbase" ,qtbase)
9899 ("qtdeclarative" ,qtdeclarative)
9900 ("qtsvg" ,qtsvg)))
9901 (home-page "https://games.kde.org/")
9902 (synopsis "Pac-Man clone")
9903 (description "Kapman is a clone of the well known game Pac-Man.
9904
9905 You must run through the maze to eat all pills without being captured by a
9906 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
9907 few seconds. When a stage is cleared of pills and energizer the player is
9908 taken to the next stage with slightly increased game speed
9909
9910 This package is part of the KDE games module.")
9911 (license (list license:gpl2+ license:fdl1.2+))))
9912
9913 (define-public kspaceduel
9914 (package
9915 (name "kspaceduel")
9916 (version "19.08.3")
9917 (source
9918 (origin
9919 (method url-fetch)
9920 (uri (string-append "mirror://kde/stable/applications/" version
9921 "/src/kspaceduel-" version ".tar.xz"))
9922 (sha256
9923 (base32 "1hppni0ihs7psc0dly5rxyy2a38nzhlig9yfyhi3lkh36z05pql8"))))
9924 (build-system qt-build-system)
9925 (native-inputs
9926 `(("extra-cmake-modules" ,extra-cmake-modules)
9927 ("kdoctools" ,kdoctools)))
9928 (inputs
9929 `(("kcompletion" ,kcompletion)
9930 ("kconfig" ,kconfig)
9931 ("kconfigwidgets" ,kconfigwidgets)
9932 ("kcoreaddons" ,kcoreaddons)
9933 ("kcrash" ,kcrash)
9934 ("kdbusaddons" ,kdbusaddons)
9935 ("ki18n" ,ki18n)
9936 ("kxmlgui" ,kxmlgui)
9937 ("libkdegames" ,libkdegames)
9938 ("qtbase" ,qtbase)
9939 ("qtdeclarative" ,qtdeclarative)
9940 ("qtsvg" ,qtsvg)))
9941 (home-page "https://games.kde.org/")
9942 (synopsis "Two player game with shooting spaceships flying around a sun")
9943 (description "KSpaceduel is a space battle game for one or two players,
9944 where two ships fly around a star in a struggle to be the only survivor.
9945
9946 This package is part of the KDE games module.")
9947 (license (list license:gpl2+ license:fdl1.2+))))
9948
9949 (define-public bovo
9950 (package
9951 (name "bovo")
9952 (version "19.08.3")
9953 (source
9954 (origin
9955 (method url-fetch)
9956 (uri (string-append "mirror://kde/stable/applications/" version
9957 "/src/bovo-" version ".tar.xz"))
9958 (sha256
9959 (base32 "0dbpng0w52nahmx7brsll66zw23ql1g6pcvn2k4g2lnvxch0i59g"))))
9960 (build-system qt-build-system)
9961 (native-inputs
9962 `(("extra-cmake-modules" ,extra-cmake-modules)
9963 ("kdoctools" ,kdoctools)))
9964 (inputs
9965 `(("kcompletion" ,kcompletion)
9966 ("kcoreaddons" ,kcoreaddons)
9967 ("kcrash" ,kcrash)
9968 ("kdbusaddons" ,kdbusaddons)
9969 ("ki18n" ,ki18n)
9970 ("kxmlgui" ,kxmlgui)
9971 ("libkdegames" ,libkdegames)
9972 ("qtbase" ,qtbase)
9973 ("qtdeclarative" ,qtdeclarative)
9974 ("qtsvg" ,qtsvg)))
9975 (home-page "https://games.kde.org/")
9976 (synopsis "Classic pen and paper game: five in a line")
9977 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
9978 points\") like game for two players, where the opponents alternate in placing
9979 their respective pictogram on the game board. The winner is the first to
9980 complete a line of five markers. (Also known as: Connect Five, Five in a row,
9981 X and O, Naughts and Crosses)
9982
9983 This package is part of the KDE games module.")
9984 (license (list license:gpl2+ license:fdl1.2+))))
9985
9986 (define-public killbots
9987 (package
9988 (name "killbots")
9989 (version "19.08.3")
9990 (source
9991 (origin
9992 (method url-fetch)
9993 (uri (string-append "mirror://kde/stable/applications/" version
9994 "/src/killbots-" version ".tar.xz"))
9995 (sha256
9996 (base32 "1qi86q7diw7glkp9v33yim9nhz2da4balbxa1hjrdgjdv8zdbxbm"))))
9997 (build-system qt-build-system)
9998 (native-inputs
9999 `(("extra-cmake-modules" ,extra-cmake-modules)
10000 ("kdoctools" ,kdoctools)))
10001 (inputs
10002 `(("kcompletion" ,kcompletion)
10003 ("kconfig" ,kconfig)
10004 ("kconfigwidgets" ,kconfigwidgets)
10005 ("kcoreaddons" ,kcoreaddons)
10006 ("kcrash" ,kcrash)
10007 ("kdbusaddons" ,kdbusaddons)
10008 ("ki18n" ,ki18n)
10009 ("kwidgetsaddons" ,kwidgetsaddons)
10010 ("kxmlgui" ,kxmlgui)
10011 ("libkdegames" ,libkdegames)
10012 ("qtbase" ,qtbase)
10013 ("qtdeclarative" ,qtdeclarative)))
10014 (home-page "https://games.kde.org/")
10015 (synopsis "Port of the classic BSD console game robots")
10016 (description "Killbots is a simple game of evading killer robots.
10017
10018 Who created the robots and why they have been programmed to destroy, no one
10019 knows. All that is known is that the robots are numerous and their sole
10020 objective is to destroy you. Fortunately for you, their creator has focused
10021 on quantity rather than quality and as a result the robots are severely
10022 lacking in intelligence. Your superior wit and a fancy teleportation device
10023 are your only weapons against the never-ending stream of mindless automatons.
10024
10025 This package is part of the KDE games module.")
10026 (license (list license:gpl2+ license:fdl1.2+))))
10027
10028 (define-public ksnakeduel
10029 (package
10030 (name "ksnakeduel")
10031 (version "19.08.3")
10032 (source
10033 (origin
10034 (method url-fetch)
10035 (uri (string-append "mirror://kde/stable/applications/" version
10036 "/src/ksnakeduel-" version ".tar.xz"))
10037 (sha256
10038 (base32 "0mprrnpax8pv7ab36zwhvdfj8id52w8g6x76nnj8qvkdlkjiqdnn"))))
10039 (build-system qt-build-system)
10040 (native-inputs
10041 `(("extra-cmake-modules" ,extra-cmake-modules)
10042 ("kdoctools" ,kdoctools)))
10043 (inputs
10044 `(("kcompletion" ,kcompletion)
10045 ("kconfig" ,kconfig)
10046 ("kconfigwidgets" ,kconfigwidgets)
10047 ("kcoreaddons" ,kcoreaddons)
10048 ("kcrash" ,kcrash)
10049 ("kdbusaddons" ,kdbusaddons)
10050 ("kguiaddons" ,kguiaddons)
10051 ("ki18n" ,ki18n)
10052 ("kxmlgui" ,kxmlgui)
10053 ("libkdegames" ,libkdegames)
10054 ("qtbase" ,qtbase)
10055 ("qtdeclarative" ,qtdeclarative)
10056 ("qtsvg" ,qtsvg)))
10057 (home-page "https://games.kde.org/")
10058 (synopsis "Snake race played against the computer")
10059 (description "KSnakeDuel is a fast action game where you steer a snake
10060 which has to eat food. While eating the snake grows. But once a player
10061 collides with the other snake or the wall the game is lost. This becomes of
10062 course more and more difficult the longer the snakes grow.
10063
10064 This package is part of the KDE games module.")
10065 (license (list license:gpl2+ license:fdl1.2+))))
10066
10067 (define-public kollision
10068 (package
10069 (name "kollision")
10070 (version "19.08.3")
10071 (source
10072 (origin
10073 (method url-fetch)
10074 (uri (string-append "mirror://kde/stable/applications/" version
10075 "/src/kollision-" version ".tar.xz"))
10076 (sha256
10077 (base32 "1p7qrn3d0ybpvc9k6k5wzj54dsrp1rqh39844maz0ay2fhvmch12"))))
10078 (build-system qt-build-system)
10079 (native-inputs
10080 `(("extra-cmake-modules" ,extra-cmake-modules)
10081 ("kdoctools" ,kdoctools)))
10082 (inputs
10083 `(("kcompletion" ,kcompletion)
10084 ("kconfig" ,kconfig)
10085 ("kcoreaddons" ,kcoreaddons)
10086 ("kcrash" ,kcrash)
10087 ("kdbusaddons" ,kdbusaddons)
10088 ("ki18n" ,ki18n)
10089 ("kwidgetsaddons" ,kwidgetsaddons)
10090 ("kxmlgui" ,kxmlgui)
10091 ("libkdegames" ,libkdegames)
10092 ("qtbase" ,qtbase)
10093 ("qtdeclarative" ,qtdeclarative)))
10094 (home-page "https://games.kde.org/")
10095 (synopsis "Simple ball dodging game")
10096 (description "In Kollision you use mouse to control a small blue ball in a
10097 closed space environment filled with small red balls, which move about
10098 chaotically. Your goal is to avoid touching any of those red balls with your
10099 blue one, because the moment you do the game will be over. The longer you can
10100 stay in game the higher will your score be.
10101
10102 This package is part of the KDE games module.")
10103 (license (list license:gpl2+ license:fdl1.2+))))
10104
10105 (define-public knavalbattle
10106 (package
10107 (name "knavalbattle")
10108 (version "19.08.3")
10109 (source
10110 (origin
10111 (method url-fetch)
10112 (uri (string-append "mirror://kde/stable/applications/" version
10113 "/src/knavalbattle-" version ".tar.xz"))
10114 (sha256
10115 (base32 "0sdfjplqkb30x2mvh66pkzay6vn5px87779sh2s8lpl6fcw0v9g4"))))
10116 (build-system qt-build-system)
10117 (native-inputs
10118 `(("extra-cmake-modules" ,extra-cmake-modules)
10119 ("kdoctools" ,kdoctools)))
10120 (inputs
10121 `(("kauth" ,kauth)
10122 ("kcompletion" ,kcompletion)
10123 ("kconfig" ,kconfig)
10124 ("kconfigwidgets" ,kconfigwidgets)
10125 ("kcoreaddons" ,kcoreaddons)
10126 ("kcrash" ,kcrash)
10127 ("kdbusaddons" ,kdbusaddons)
10128 ("kdnssd" ,kdnssd)
10129 ("ki18n" ,ki18n)
10130 ("ktextwidgets" ,ktextwidgets)
10131 ("kxmlgui" ,kxmlgui)
10132 ("libkdegames" ,libkdegames)
10133 ("qtbase" ,qtbase)
10134 ("qtdeclarative" ,qtdeclarative)))
10135 (home-page "https://games.kde.org/")
10136 (synopsis "Battleship board game with built-in game server")
10137 (description "KBattleship is a Battle Ship game for KDE.
10138
10139 Ships are placed on a board which represents the sea. Players try to hit each
10140 others ships in turns without knowing where they are placed. The first player
10141 to destroy all ships wins the game.
10142
10143 This package is part of the KDE games module.")
10144 (license (list license:gpl2+ license:fdl1.2+))))
10145
10146 (define-public kreversi
10147 (package
10148 (name "kreversi")
10149 (version "19.08.3")
10150 (source
10151 (origin
10152 (method url-fetch)
10153 (uri (string-append "mirror://kde/stable/applications/" version
10154 "/src/kreversi-" version ".tar.xz"))
10155 (sha256
10156 (base32 "0b6q8df2bawgnrswhq59z37axad0q3zpvvzxdds7sz1lw505xw9h"))))
10157 (build-system qt-build-system)
10158 (native-inputs
10159 `(("extra-cmake-modules" ,extra-cmake-modules)
10160 ("kdoctools" ,kdoctools)))
10161 (inputs
10162 `(("kconfig" ,kconfig)
10163 ("kconfigwidgets" ,kconfigwidgets)
10164 ("kcoreaddons" ,kcoreaddons)
10165 ("kcrash" ,kcrash)
10166 ("kdbusaddons" ,kdbusaddons)
10167 ("kdeclarative" ,kdeclarative)
10168 ("ki18n" ,ki18n)
10169 ("kiconthemes" ,kiconthemes)
10170 ("kio" ,kio)
10171 ("kxmlgui" ,kxmlgui)
10172 ("libkdegames" ,libkdegames)
10173 ("qtbase" ,qtbase)
10174 ("qtdeclarative" ,qtdeclarative)
10175 ("qtsvg" ,qtsvg)))
10176 (home-page "https://games.kde.org/")
10177 (synopsis "Old reversi board game, also known as othello")
10178 (description "KReversi is a simple one player strategy game played
10179 against the computer.
10180
10181 If a player's piece is captured by an opposing player, that piece is turned
10182 over to reveal the color of that player. A winner is declared when one player
10183 has more pieces of his own color on the board and there are no more possible
10184 moves.
10185
10186 This package is part of the KDE games module.")
10187 (license (list license:gpl2+ license:fdl1.2+))))
10188
10189 (define-public ksquares
10190 (package
10191 (name "ksquares")
10192 (version "19.08.3")
10193 (source
10194 (origin
10195 (method url-fetch)
10196 (uri (string-append "mirror://kde/stable/applications/" version
10197 "/src/ksquares-" version ".tar.xz"))
10198 (sha256
10199 (base32 "0hv8hls5s627lys08nnw72rfzsafj3dmp49mh2afzmh6lgk9h5vy"))))
10200 (build-system qt-build-system)
10201 (native-inputs
10202 `(("extra-cmake-modules" ,extra-cmake-modules)
10203 ("kdoctools" ,kdoctools)))
10204 (inputs
10205 `(("kcompletion" ,kcompletion)
10206 ("kconfig" ,kconfig)
10207 ("kconfigwidgets" ,kconfigwidgets)
10208 ("kcoreaddons" ,kcoreaddons)
10209 ("kcrash" ,kcrash)
10210 ("kdbusaddons" ,kdbusaddons)
10211 ("ki18n" ,ki18n)
10212 ("kwidgetsaddons" ,kwidgetsaddons)
10213 ("kxmlgui" ,kxmlgui)
10214 ("libkdegames" ,libkdegames)
10215 ("qtbase" ,qtbase)
10216 ("qtdeclarative" ,qtdeclarative)))
10217 (home-page "https://games.kde.org/")
10218 (synopsis "Dots and Boxes game")
10219 (description "KSquares is an implementation of the popular paper based
10220 game Squares. Two players take turns connecting dots on a grid to complete
10221 squares, the player with the most squares wins.
10222
10223 This package is part of the KDE games module.")
10224 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10225
10226 (define-public kjumpingcube
10227 (package
10228 (name "kjumpingcube")
10229 (version "19.08.3")
10230 (source
10231 (origin
10232 (method url-fetch)
10233 (uri (string-append "mirror://kde/stable/applications/" version
10234 "/src/kjumpingcube-" version ".tar.xz"))
10235 (sha256
10236 (base32 "0d67zqkf2xffjkj671gl2n6nj6jajyn6rgqqj5i6gm500mqi9rm1"))))
10237 (build-system qt-build-system)
10238 (native-inputs
10239 `(("extra-cmake-modules" ,extra-cmake-modules)
10240 ("kdoctools" ,kdoctools)))
10241 (inputs
10242 `(("kconfig" ,kconfig)
10243 ("kconfigwidgets" ,kconfigwidgets)
10244 ("kcoreaddons" ,kcoreaddons)
10245 ("kcrash" ,kcrash)
10246 ("kdbusaddons" ,kdbusaddons)
10247 ("ki18n" ,ki18n)
10248 ("kio" ,kio)
10249 ("kwidgetsaddons" ,kwidgetsaddons)
10250 ("kxmlgui" ,kxmlgui)
10251 ("libkdegames" ,libkdegames)
10252 ("qtbase" ,qtbase)
10253 ("qtdeclarative" ,qtdeclarative)
10254 ("qtsvg" ,qtsvg)))
10255 (home-page "https://games.kde.org/")
10256 (synopsis "Simple tactical game for number-crunchers")
10257 (description "KJumpingcube is a simple tactical game for one or two
10258 players, played on a grid of numbered squares. Each turn, players compete for
10259 control of the board by capturing or adding to one square.
10260
10261 This package is part of the KDE games module.")
10262 (license (list license:gpl2+ license:fdl1.2+))))
10263
10264 (define-public xmoto
10265 (package
10266 (name "xmoto")
10267 (version "0.5.11")
10268 (source
10269 (origin
10270 (method url-fetch)
10271 (uri (string-append
10272 "http://download.tuxfamily.org/xmoto/xmoto/" version "/"
10273 "xmoto-" version "-src.tar.gz"))
10274 (sha256
10275 (base32 "1ci6r8zd0l7z28cy92ddf9dmqbdqwinz2y1cny34c61b57wsd155"))
10276 (patches
10277 (search-patches
10278 "xmoto-remove-glext.patch" ;fixes licensing issue
10279 "xmoto-reproducible.patch"
10280 "xmoto-utf8.patch"))
10281 ;; Unbundle ODE.
10282 (modules '((guix build utils)))
10283 (snippet
10284 `(begin
10285 (delete-file-recursively "src/ode")
10286 #t))))
10287 (build-system gnu-build-system)
10288 (arguments
10289 ;; XXX: First flag prevents a build error with GCC7+. The second
10290 ;; flag works around missing text in game. Both are fixed
10291 ;; upstream. Remove once xmoto 0.5.12+ is released.
10292 `(#:make-flags '("CXXFLAGS=-fpermissive -D_GLIBCXX_USE_CXX11_ABI=0")
10293 #:phases
10294 (modify-phases %standard-phases
10295 (add-after 'install 'install-desktop-file
10296 (lambda* (#:key outputs #:allow-other-keys)
10297 (let* ((out (assoc-ref outputs "out"))
10298 (apps (string-append out "/share/applications"))
10299 (pixmaps (string-append out "/share/pixmaps")))
10300 (install-file "extra/xmoto.desktop" apps)
10301 (install-file "extra/xmoto.xpm" pixmaps)
10302 #t)))
10303 (add-after 'install-desktop-file 'install-fonts
10304 (lambda* (#:key outputs inputs #:allow-other-keys)
10305 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
10306 "/share/fonts/truetype/"))
10307 (target-dir (string-append (assoc-ref outputs "out")
10308 "/share/xmoto/Textures/Fonts/")))
10309 (for-each (lambda (f)
10310 (let ((font (string-append font-dir f))
10311 (target (string-append target-dir f)))
10312 (delete-file target)
10313 (symlink font target)))
10314 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
10315 #t)))
10316 (add-after 'install-fonts 'install-man-page
10317 (lambda* (#:key outputs #:allow-other-keys)
10318 (install-file "xmoto.6"
10319 (string-append (assoc-ref outputs "out")
10320 "/share/man/man6"))
10321 #t)))))
10322 (native-inputs
10323 `(("gettext" ,gettext-minimal)))
10324 (inputs
10325 `(("curl" ,curl)
10326 ("font-dejavu" ,font-dejavu)
10327 ("glu" ,glu)
10328 ("libjpeg" ,libjpeg-turbo)
10329 ("libpng" ,libpng)
10330 ("libxdg-basedir" ,libxdg-basedir)
10331 ("libxml2" ,libxml2)
10332 ("lua" ,lua-5.2)
10333 ("ode" ,ode)
10334 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
10335 ("sqlite" ,sqlite)
10336 ("zlib" ,zlib)))
10337 (home-page "https://xmoto.tuxfamily.org/")
10338 (synopsis "2D motocross platform game")
10339 (description "X-Moto is a challenging 2D motocross platform game, where
10340 physics play an all important role in the gameplay. You need to control your
10341 bike to its limit, if you want to have a chance finishing the more difficult
10342 challenges.")
10343 (license (list license:gpl2+ ;whole project
10344 license:bsd-4 ;src/bzip
10345 license:bsd-3 ;src/md5sum
10346 license:lgpl2.1+ ;src/iqsort.h
10347 license:expat))))
10348
10349 (define-public eboard
10350 (package
10351 (name "eboard")
10352 (version "1.1.3")
10353 (source
10354 (origin
10355 (method git-fetch)
10356 (uri (git-reference
10357 (url "https://github.com/fbergo/eboard.git")
10358 (commit (string-append "v" version))))
10359 (file-name (git-file-name name version))
10360 (sha256
10361 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
10362 (build-system gnu-build-system)
10363 (native-inputs
10364 `(("perl" ,perl)
10365 ("pkg-config" ,pkg-config)))
10366 (inputs
10367 `(("gtk+" ,gtk+-2)
10368 ("libpng" ,libpng)
10369 ("gstreamer" ,gstreamer)))
10370 (arguments
10371 `(#:tests? #f
10372 #:phases
10373 (modify-phases %standard-phases
10374 (replace 'configure
10375 (lambda* (#:key outputs #:allow-other-keys)
10376 (make-file-writable "eboard-config")
10377 (setenv "CC" "gcc")
10378 (invoke "./configure"
10379 (string-append "--prefix=" (assoc-ref outputs "out")))
10380 #t))
10381 (add-before 'install 'make-required-directories
10382 (lambda* (#:key outputs #:allow-other-keys)
10383 (mkdir-p (string-append (assoc-ref outputs "out")
10384 "/share/eboard"))
10385 #t)))))
10386 (synopsis "Graphical user interface to play chess")
10387 (description
10388 "Eboard is a chess board interface for ICS (Internet Chess Servers)
10389 and chess engines.")
10390 (home-page "https://www.bergo.eng.br/eboard/")
10391 (license license:gpl2+)))
10392
10393 (define-public chessx
10394 (package
10395 (name "chessx")
10396 (version "1.5.0")
10397 (source
10398 (origin
10399 (method url-fetch)
10400 (uri (string-append "mirror://sourceforge/chessx/chessx/"
10401 version "/chessx-" version ".tgz"))
10402 (sha256
10403 (base32 "09rqyra28w3z9ldw8sx07k5ap3sjlli848p737maj7c240rasc6i"))))
10404 (build-system qt-build-system)
10405 (native-inputs
10406 `(("qttools" ,qttools)))
10407 (inputs
10408 `(("qtbase" ,qtbase)
10409 ("qtmultimedia" ,qtmultimedia)
10410 ("qtsvg" ,qtsvg)
10411 ("zlib" ,zlib)))
10412 (arguments
10413 `(#:tests? #f
10414 #:phases
10415 (modify-phases %standard-phases
10416 (add-after 'unpack 'fix-paths
10417 (lambda* (#:key inputs #:allow-other-keys)
10418 (substitute* "chessx.pro"
10419 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
10420 (string-append (assoc-ref inputs "qttools") "/bin/lrelease")))
10421 #t))
10422 (add-after 'fix-paths 'make-qt-deterministic
10423 (lambda _
10424 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
10425 #t))
10426 (replace 'configure
10427 (lambda _
10428 (invoke "qmake")
10429 #t))
10430 (replace 'install
10431 (lambda* (#:key outputs #:allow-other-keys)
10432 (let ((out (assoc-ref outputs "out")))
10433 (install-file "release/chessx" (string-append out "/bin"))
10434 (install-file "unix/chessx.desktop"
10435 (string-append out "/share/applications")))
10436 #t)))))
10437 (synopsis "Chess game database")
10438 (description
10439 "ChessX is a chess database. With ChessX you can operate on your
10440 collection of chess games in many ways: browse, edit, add, organize, analyze,
10441 etc. You can also play games on FICS or against an engine.")
10442 (home-page "http://chessx.sourceforge.net/")
10443 (license license:gpl2+)))
10444
10445 (define-public stockfish
10446 (package
10447 (name "stockfish")
10448 (version "11")
10449 (source
10450 (origin
10451 (method git-fetch)
10452 (uri (git-reference
10453 (url "https://github.com/official-stockfish/Stockfish.git")
10454 (commit (string-append "sf_" version))))
10455 (file-name (git-file-name name version))
10456 (sha256
10457 (base32 "12mppipinymj8s1ipq9a7is453vncly49c32ym9wvyklsgyxfzlk"))))
10458 (build-system gnu-build-system)
10459 (arguments
10460 `(#:tests? #f
10461 #:make-flags (list "-C" "src"
10462 "build"
10463 (string-append "PREFIX="
10464 (assoc-ref %outputs "out"))
10465 (string-append "ARCH="
10466 ,(match (%current-system)
10467 ("x86_64-linux" "x86-64")
10468 ("i686-linux" "x86-32")
10469 ("aarch64-linux" "general-64")
10470 ("armhf-linux" "armv7")
10471 ("mips64el-linux" "general-64")
10472 (_ "general-32"))))
10473 #:phases (modify-phases %standard-phases
10474 (delete 'configure))))
10475 (synopsis "Strong chess engine")
10476 (description
10477 "Stockfish is a very strong chess engines. It is much stronger than the
10478 best human chess grandmasters. It can be used with UCI-compatible GUIs like
10479 ChessX.")
10480 (home-page "https://stockfishchess.org/")
10481 (license license:gpl3+)))
10482
10483 (define-public barrage
10484 (package
10485 (name "barrage")
10486 (version "1.0.5")
10487 (source
10488 (origin
10489 (method url-fetch)
10490 (uri (string-append "mirror://sourceforge/lgames/barrage/"
10491 "barrage-" version ".tar.gz"))
10492 (sha256
10493 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
10494 (build-system gnu-build-system)
10495 (inputs
10496 `(("hicolor-icon-theme" ,hicolor-icon-theme)
10497 ("sdl" ,sdl)
10498 ("sdl-mixer" ,sdl-mixer)))
10499 (arguments
10500 `(#:configure-flags
10501 (list
10502 (string-append "CFLAGS="
10503 "-I" (assoc-ref %build-inputs "sdl-mixer")
10504 "/include/SDL"))))
10505 (home-page "http://lgames.sourceforge.net/Barrage/")
10506 (synopsis "Violent point-and-click shooting game with nice effects")
10507 (description
10508 "Barrage is a rather destructive action game that puts you on a shooting
10509 range with the objective to hit as many dummy targets as possible within
10510 3 minutes. You control a gun that may either fire small or large grenades at
10511 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
10512 get high scores.")
10513 (license license:gpl2+)))
10514
10515 (define-public 7kaa
10516 (package
10517 (name "7kaa")
10518 (version "2.15.3")
10519 (source
10520 (origin
10521 (method url-fetch)
10522 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
10523 "releases/download/v" version "/"
10524 "7kaa-" version ".tar.xz"))
10525 (sha256
10526 (base32 "0blj47mcsfw1sn3465j6iham8m6ki07iggnq4q8nnaqnryx710jc"))))
10527 (build-system gnu-build-system)
10528 (native-inputs
10529 `(("gettext" ,gettext-minimal)
10530 ("pkg-config" ,pkg-config)))
10531 (inputs
10532 `(("curl" ,curl)
10533 ("enet" ,enet)
10534 ("openal" ,openal)
10535 ("sdl2" ,sdl2)))
10536 (home-page "https://7kfans.com/")
10537 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
10538 (description
10539 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
10540 Strategy with the addition of trade, diplomacy, and espionage. The game
10541 enables players to compete against up to six other kingdoms allowing players
10542 to conquer opponents by defeating them in war (with troops or machines),
10543 capturing their buildings with spies, or offering opponents money for their
10544 kingdom.")
10545 (license license:gpl2+)))
10546
10547 (define-public neverball
10548 ;; Git version is 6-years younger than latest release.
10549 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
10550 (revision "1"))
10551 (package
10552 (name "neverball")
10553 (version (git-version "1.6.0" revision commit))
10554 (source
10555 (origin
10556 (method git-fetch)
10557 (uri (git-reference
10558 (url "https://github.com/Neverball/neverball.git")
10559 (commit commit)))
10560 (sha256
10561 (base32
10562 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
10563 (file-name (git-file-name name version))
10564 (modules '((guix build utils)))
10565 (snippet
10566 '(begin
10567 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
10568 (delete-file-recursively "data/ball/octocat")
10569 #t))))
10570 (build-system copy-build-system)
10571 (arguments
10572 `(#:install-plan
10573 '(("neverball" "bin/")
10574 ("neverputt" "bin/")
10575 ("mapc" "bin/")
10576 ("data" "share/games/neverball/")
10577 ("locale" "share/")
10578 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
10579 "neverlogos.svg"
10580 "svg readme.txt"))
10581 ("dist/" "share/applications" #:include ("neverball.desktop"
10582 "neverputt.desktop"))
10583 ("dist/neverball_16.png"
10584 "/share/icons/hicolor/16x16/apps/neverball.png")
10585 ("dist/neverball_24.png"
10586 "/share/icons/hicolor/24x24/apps/neverball.png")
10587 ("dist/neverball_32.png"
10588 "/share/icons/hicolor/32x32/apps/neverball.png")
10589 ("dist/neverball_48.png"
10590 "/share/icons/hicolor/48x48/apps/neverball.png")
10591 ("dist/neverball_64.png"
10592 "/share/icons/hicolor/64x64/apps/neverball.png")
10593 ("dist/neverball_128.png"
10594 "/share/icons/hicolor/128x128/apps/neverball.png")
10595 ("dist/neverball_256.png"
10596 "/share/icons/hicolor/256x256/apps/neverball.png")
10597 ("dist/neverball_512.png"
10598 "/share/icons/hicolor/512x512/apps/neverball.png")
10599 ("dist/neverputt_16.png"
10600 "/share/icons/hicolor/16x16/apps/neverputt.png")
10601 ("dist/neverputt_24.png"
10602 "/share/icons/hicolor/24x24/apps/neverputt.png")
10603 ("dist/neverputt_32.png"
10604 "/share/icons/hicolor/32x32/apps/neverputt.png")
10605 ("dist/neverputt_48.png"
10606 "/share/icons/hicolor/48x48/apps/neverputt.png")
10607 ("dist/neverputt_64.png"
10608 "/share/icons/hicolor/64x64/apps/neverputt.png")
10609 ("dist/neverputt_128.png"
10610 "/share/icons/hicolor/128x128/apps/neverputt.png")
10611 ("dist/neverputt_256.png"
10612 "/share/icons/hicolor/256x256/apps/neverputt.png")
10613 ("dist/neverputt_512.png"
10614 "/share/icons/hicolor/512x512/apps/neverputt.png")
10615 ("dist/" "share/man/man1" #:include ("mapc.1"))
10616 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
10617 ("doc/" "share/doc/neverball")
10618 ("README.md" "share/doc/neverball/"))
10619 #:phases
10620 (modify-phases %standard-phases
10621 (add-before 'install 'build
10622 (lambda* (#:key inputs outputs #:allow-other-keys)
10623 (let* ((out (assoc-ref outputs "out"))
10624 (sdl (assoc-ref inputs "sdl")))
10625 (invoke "make" "-j" (number->string (parallel-job-count))
10626 "--environment-overrides"
10627 "CC=gcc" "BUILD=release"
10628 (string-append "DATADIR="
10629 out
10630 "/share/games/neverball/data")
10631 (string-append "LOCALEDIR=" out "/share/locale")
10632 (string-append "SDL_CPPFLAGS=-I"
10633 sdl
10634 "/include/SDL2/")))
10635 #t))
10636 (add-after 'install 'fix-some-broken-fonts
10637 (lambda* (#:key outputs #:allow-other-keys)
10638 (let* ((out (assoc-ref outputs "out")))
10639 (wrap-program (string-append out "/bin/neverball")
10640 `("LANG" = ("en_US.utf8")))
10641 (wrap-program (string-append out "/bin/neverputt")
10642 `("LANG" = ("en_US.utf8"))))
10643 #t)))))
10644 (native-inputs
10645 `(("gettext" ,gettext-minimal))) ;for msgfmt
10646 (inputs
10647 `(("libjpeg" ,libjpeg-turbo)
10648 ("libpng" ,libpng)
10649 ("libvorbis" ,libvorbis)
10650 ("physfs" ,physfs)
10651 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
10652 (home-page "https://neverball.org/")
10653 (synopsis "3D floor-tilting game")
10654 (description
10655 "In the grand tradition of Marble Madness and Super Monkey Ball,
10656 Neverball has you guide a rolling ball through dangerous territory. Balance
10657 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
10658 and shovers to get to the goal. Race against the clock to collect coins to
10659 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
10660 game.") ;thanks to Debian for description
10661 (license license:gpl2+))))