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, 2020 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, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
40 ;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
41 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
42 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
43 ;;; Copyright © 2019, 2020 Jesse Gibbons <jgibbons2357+guix@gmail.com>
44 ;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
45 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
46 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
47 ;;; Copyright © 2019 Josh Holland <josh@inv.alid.pw>
48 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
49 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
50 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
51 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
52 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
53 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
54 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
58 ;;; This file is part of GNU Guix.
60 ;;; GNU Guix is free software; you can redistribute it and/or modify it
61 ;;; under the terms of the GNU General Public License as published by
62 ;;; the Free Software Foundation; either version 3 of the License, or (at
63 ;;; your option) any later version.
65 ;;; GNU Guix is distributed in the hope that it will be useful, but
66 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
67 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68 ;;; GNU General Public License for more details.
70 ;;; You should have received a copy of the GNU General Public License
71 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
73 (define-module (gnu packages games)
74 #:use-module (ice-9 match)
75 #:use-module ((guix licenses) #:prefix license:)
76 #:use-module (guix utils)
77 #:use-module (guix packages)
78 #:use-module (guix download)
79 #:use-module (guix git-download)
80 #:use-module (guix svn-download)
81 #:use-module (guix gexp)
82 #:use-module (gnu packages)
83 #:use-module (gnu packages adns)
84 #:use-module (gnu packages algebra)
85 #:use-module (gnu packages autotools)
86 #:use-module (gnu packages backup)
87 #:use-module (gnu packages base)
88 #:use-module (gnu packages build-tools)
89 #:use-module (gnu packages admin)
90 #:use-module (gnu packages audio)
91 #:use-module (gnu packages avahi)
92 #:use-module (gnu packages assembly)
93 #:use-module (gnu packages bash)
94 #:use-module (gnu packages bison)
95 #:use-module (gnu packages boost)
96 #:use-module (gnu packages check)
97 #:use-module (gnu packages cmake)
98 #:use-module (gnu packages compression)
99 #:use-module (gnu packages curl)
100 #:use-module (gnu packages crypto)
101 #:use-module (gnu packages cyrus-sasl)
102 #:use-module (gnu packages documentation)
103 #:use-module (gnu packages docbook)
104 #:use-module (gnu packages emulators)
105 #:use-module (gnu packages flex)
106 #:use-module (gnu packages fltk)
107 #:use-module (gnu packages fonts)
108 #:use-module (gnu packages fontutils)
109 #:use-module (gnu packages freedesktop)
110 #:use-module (gnu packages fribidi)
111 #:use-module (gnu packages game-development)
112 #:use-module (gnu packages gcc)
113 #:use-module (gnu packages gettext)
114 #:use-module (gnu packages ghostscript)
115 #:use-module (gnu packages gimp)
116 #:use-module (gnu packages gl)
117 #:use-module (gnu packages glib)
118 #:use-module (gnu packages gnome)
119 #:use-module (gnu packages gnupg)
120 #:use-module (gnu packages gnuzilla)
121 #:use-module (gnu packages gperf)
122 #:use-module (gnu packages graphics)
123 #:use-module (gnu packages gsasl)
124 #:use-module (gnu packages gstreamer)
125 #:use-module (gnu packages gtk)
126 #:use-module (gnu packages guile)
127 #:use-module (gnu packages haskell)
128 #:use-module (gnu packages haskell-crypto)
129 #:use-module (gnu packages haskell-xyz)
130 #:use-module (gnu packages icu4c)
131 #:use-module (gnu packages image)
132 #:use-module (gnu packages imagemagick)
133 #:use-module (gnu packages kde)
134 #:use-module (gnu packages kde-frameworks)
135 #:use-module (gnu packages less)
136 #:use-module (gnu packages libcanberra)
137 #:use-module (gnu packages libedit)
138 #:use-module (gnu packages libunwind)
139 #:use-module (gnu packages linux)
140 #:use-module (gnu packages llvm)
141 #:use-module (gnu packages lua)
142 #:use-module (gnu packages man)
143 #:use-module (gnu packages maths)
144 #:use-module (gnu packages messaging)
145 #:use-module (gnu packages mp3)
146 #:use-module (gnu packages music)
147 #:use-module (gnu packages multiprecision)
148 #:use-module (gnu packages ncurses)
149 #:use-module (gnu packages netpbm)
150 #:use-module (gnu packages networking)
151 #:use-module (gnu packages ocaml)
152 #:use-module (gnu packages opencl)
153 #:use-module (gnu packages pcre)
154 #:use-module (gnu packages perl)
155 #:use-module (gnu packages perl-check)
156 #:use-module (gnu packages perl-compression)
157 #:use-module (gnu packages pkg-config)
158 #:use-module (gnu packages protobuf)
159 #:use-module (gnu packages pulseaudio)
160 #:use-module (gnu packages python)
161 #:use-module (gnu packages python-xyz)
162 #:use-module (gnu packages qt)
163 #:use-module (gnu packages readline)
164 #:use-module (gnu packages ruby)
165 #:use-module (gnu packages shells)
166 #:use-module (gnu packages sdl)
167 #:use-module (gnu packages serialization)
168 #:use-module (gnu packages sqlite)
169 #:use-module (gnu packages squirrel)
170 #:use-module (gnu packages swig)
171 #:use-module (gnu packages tcl)
172 #:use-module (gnu packages terminals)
173 #:use-module (gnu packages texinfo)
174 #:use-module (gnu packages textutils)
175 #:use-module (gnu packages tls)
176 #:use-module (gnu packages upnp)
177 #:use-module (gnu packages video)
178 #:use-module (gnu packages vulkan)
179 #:use-module (gnu packages web)
180 #:use-module (gnu packages wget)
181 #:use-module (gnu packages wxwidgets)
182 #:use-module (gnu packages xdisorg)
183 #:use-module (gnu packages xorg)
184 #:use-module (gnu packages xiph)
185 #:use-module (gnu packages xml)
186 #:use-module (guix build-system copy)
187 #:use-module (guix build-system cmake)
188 #:use-module (guix build-system glib-or-gtk)
189 #:use-module (guix build-system gnu)
190 #:use-module (guix build-system go)
191 #:use-module (guix build-system meson)
192 #:use-module (guix build-system perl)
193 #:use-module (guix build-system python)
194 #:use-module (guix build-system qt)
195 #:use-module (guix build-system scons)
196 #:use-module (guix build-system trivial)
197 #:use-module ((srfi srfi-1) #:hide (zip))
198 #:use-module (srfi srfi-26))
207 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
208 "/abe-" version ".tar.gz"))
210 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
211 (build-system gnu-build-system)
214 (list (string-append "--with-data-dir="
215 (assoc-ref %outputs "out")
218 (modify-phases %standard-phases
220 (lambda _ (invoke "sh" "autogen.sh")))
221 (add-before 'build 'set-SDL
222 ;; Set correct environment for SDL.
223 (lambda* (#:key inputs #:allow-other-keys)
226 (assoc-ref inputs "sdl") "/include/SDL:"
227 (or (getenv "CPATH") "")))
229 (add-after 'install 'finalize-install
230 (lambda* (#:key outputs #:allow-other-keys)
231 (let ((share (string-append (assoc-ref outputs "out") "/share")))
232 ;; Installation script does not copy game data files.
233 (let ((data (string-append share "/abe")))
234 (for-each (lambda (dir)
235 (let ((target (string-append data "/" dir)))
237 (copy-recursively dir target)))
238 '("images" "maps" "sounds")))
239 ;; Create desktop file.
240 (let ((apps (string-append share "/applications")))
242 (make-desktop-entry-file
243 (string-append apps "/abe.desktop")
244 #:name "Abe's Amazing Adventure"
246 #:categories '("AdventureGame" "Game")
248 '("side-scrolling" "adventure" "pyramid" "singleplayer")
250 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
251 (#f "Side-scrolling game")))))
254 `(("autoconf" ,autoconf)
255 ("automake" ,automake)))
260 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
261 (home-page "http://abe.sourceforge.net")
262 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
264 "Abe's Amazing Adventure is a scrolling,
265 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
266 the style of similar games for the Commodore+4.")
267 (license license:gpl2+)))
269 ;; Data package for adanaxisgpl.
270 (define adanaxis-mush
271 (let ((version "1.1.0"))
274 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
277 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
279 (define-public adanaxisgpl
286 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
289 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
290 (modules '((guix build utils)))
293 ;; Necessary for building with gcc >=4.7.
294 (substitute* "src/Mushcore/MushcoreSingleton.h"
295 (("SingletonPtrSet\\(new SingletonType\\);")
296 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
297 ;; Avoid an "invalid conversion from const char* to char*" error.
298 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
299 (("char \\*end, \\*result;")
300 (string-append "const char *end;"
304 (build-system gnu-build-system)
306 `(#:tests? #f ; no check target
308 (modify-phases %standard-phases
309 (add-after 'install 'install-data
310 (lambda* (#:key inputs outputs #:allow-other-keys)
311 (let ((data (assoc-ref inputs "adanaxis-mush"))
312 (share (string-append (assoc-ref outputs "out")
313 "/share/" ,name "-" ,version)))
315 (invoke "tar" "xvf" data "-C" share)))))))
317 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
320 ("freeglut" ,freeglut)
322 ("libjpeg" ,libjpeg-turbo)
325 ("libvorbis" ,libvorbis)
330 ("sdl-mixer" ,sdl-mixer)))
331 (home-page "https://www.mushware.com")
332 (synopsis "Action game in four spatial dimensions")
334 "Adanaxis is a fast-moving first person shooter set in deep space, where
335 the fundamentals of space itself are changed. By adding another dimension to
336 space this game provides an environment with movement in four directions and
337 six planes of rotation. Initially the game explains the 4D control system via
338 a graphical sequence, before moving on to 30 levels of gameplay with numerous
339 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
340 mouse and joystick control, and original music.")
341 (license license:gpl2)))
351 (url "https://github.com/carstene1ns/alex4")
353 (file-name (git-file-name name version))
355 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
356 (build-system gnu-build-system)
358 `(#:tests? #f ; no check target
361 "CFLAGS=-D_FILE_OFFSET_BITS=64"
362 (string-append "PREFIX=" (assoc-ref %outputs "out")))
364 (modify-phases %standard-phases
365 (delete 'configure) ; no configure script
366 (add-after 'install 'install-data
367 (lambda* (#:key outputs #:allow-other-keys)
368 (let ((share (string-append (assoc-ref outputs "out")
370 (install-file "alex4.ini" share)
373 `(("allegro" ,allegro-4)
374 ("dumb" ,dumb-allegro4)))
375 (home-page "http://allegator.sourceforge.net/")
376 (synopsis "Retro platform game")
378 "Guide Alex the Allegator through the jungle in order to save his
379 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
380 Plenty of classic platforming in four nice colors guaranteed!
382 The game includes a built-in editor so you can design and share your own maps.")
383 (license license:gpl2+)))
385 (define-public armagetronad
387 (name "armagetronad")
388 (version "0.2.8.3.5")
391 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
392 version "/armagetronad-" version ".src.tar.gz"))
395 "1z266haq22n5b0733h7qsg1rpzhz8lvm82f7wd06r008iiar7jdl"))))
396 (build-system gnu-build-system)
398 `(("libxml2" ,libxml2)
400 ("sdl-image" ,sdl-image)
401 ("freeglut" ,freeglut)
403 ("libjpeg-turbo" ,libjpeg-turbo)))
404 (home-page "http://www.armagetronad.org")
405 (synopsis "Tron clone in 3D")
406 (description "Armagetron Advanced is a multiplayer game in 3d that
407 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
408 It's an old school arcade game slung into the 21st century. Highlights
409 include a customizable playing arena, HUD, unique graphics, and AI bots. For
410 the more advanced player there are new game modes and a wide variety of
411 physics settings to tweak as well.")
412 (license license:gpl2+)))
414 (define-public astromenace
422 (url "https://github.com/viewizard/astromenace")
423 (commit (string-append "v" version))))
424 (file-name (git-file-name name version))
426 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
427 (build-system cmake-build-system)
429 `(#:tests? #f ;no test
430 #:configure-flags '("-DDATADIR=share/astromenace")
432 (modify-phases %standard-phases
434 ;; Upstream provides no install phase.
435 (lambda* (#:key inputs outputs #:allow-other-keys)
436 (let* ((out (assoc-ref outputs "out"))
437 (bin (string-append out "/bin"))
438 (share (string-append out "/share"))
439 (apps (string-append share "/applications"))
440 (data (string-append share "/astromenace"))
441 (icons (string-append share "/icons/hicolor/64x64/apps")))
442 (install-file "astromenace" bin)
443 (install-file "gamedata.vfs" data)
444 (let ((source (assoc-ref inputs "source")))
445 (with-directory-excursion (string-append source "/share")
446 (install-file "astromenace.desktop" apps)
448 (copy-file "astromenace_64.png"
449 (string-append icons "/astromenace.png")))))
452 `(("freealut" ,freealut)
453 ("freetype" ,freetype)
456 ("libvorbis" ,libvorbis)
459 (home-page "https://www.viewizard.com/")
460 (synopsis "3D space shooter with spaceship upgrade possibilities")
462 "Space is a vast area, an unbounded territory where it seems there is
463 a room for everybody, but reversal of fortune put things differently. The
464 hordes of hostile creatures crawled out from the dark corners of the universe,
465 craving to conquer your homeland. Their force is compelling, their legions
466 are interminable. However, humans didn't give up without a final showdown and
467 put their best pilot to fight back. These malicious invaders chose the wrong
468 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
469 regret their insolence.")
470 ;; Game is released under GPL3+ terms. Artwork is subject to CC
471 ;; BY-SA 4.0, and fonts to OFL1.1.
472 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
474 (define-public bastet
482 (url "https://github.com/fph/bastet")
484 (file-name (git-file-name name version))
486 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
488 (search-patches "bastet-change-source-of-unordered_set.patch"))))
489 (build-system gnu-build-system)
492 (list (string-append "CXXFLAGS=-I"
493 (assoc-ref %build-inputs "boost") "/include"))
495 (modify-phases %standard-phases
496 (delete 'configure) ; no configure script
498 ;; The 'Test' target builds the tests, but doesn't actually run them.
499 (lambda* (#:key make-flags #:allow-other-keys)
500 (apply invoke "make" "Test" make-flags)
504 (lambda* (#:key outputs #:allow-other-keys)
505 (let* ((out (assoc-ref outputs "out"))
506 (share (string-append out "/share"))
507 (hicolor (string-append share "/icons/hicolor")))
508 (install-file "bastet"
509 (string-append out "/bin"))
511 (install-file "bastet.desktop"
512 (string-append share "/applications"))
513 (install-file "bastet.svg"
514 (string-append hicolor "/scalable/apps"))
516 (install-file "bastet.appdata.xml"
517 (string-append share "/appdata"))
519 (install-file "bastet.6"
520 (string-append out "/share/man/man6"))
523 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
526 ("ncurses" ,ncurses)))
527 (home-page "https://fph.altervista.org/prog/bastet.html")
528 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
530 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
531 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
532 Instead, it uses a special algorithm to choose the worst brick possible.
534 Playing bastet can be a painful experience, especially if you usually make
535 canyons and wait for the long I-shaped block to clear four rows at a time.")
536 (license license:gpl3+)))
538 (define-public blobwars
545 (uri (string-append "mirror://sourceforge/blobwars/"
546 "blobwars-" version ".tar.gz"))
548 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
549 (build-system gnu-build-system)
551 `(#:tests? #f ;no test
553 (let ((out (assoc-ref %outputs "out")))
554 (list (string-append "PREFIX=" out)
555 (string-append "BINDIR=" out "/bin/")
559 (modify-phases %standard-phases
560 (add-after 'unpack 'werror-begone
562 (substitute* "Makefile" (("-Werror") ""))
564 (delete 'configure)))) ;no configure script
566 `(("gettext" ,gettext-minimal)
567 ("pkg-config" ,pkg-config)))
569 `(("hicolor-icon-theme" ,hicolor-icon-theme)
570 ("sdl" ,(sdl-union (list sdl2
575 (home-page "https://sourceforge.net/projects/blobwars/")
576 (synopsis "Platform action game featuring a blob with a lot of weapons")
577 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
578 in the Blobwars series. You take on the role of a fearless Blob agent. Your
579 mission is to infiltrate various enemy bases and rescue as many MIAs as
580 possible, while battling many vicious aliens.")
581 (license (list license:gpl2 ; For code and graphics
582 license:cc0 ; Music and sounds have specific licenses
583 license:cc-by3.0 ; see /doc/readme
588 (define-public bzflag
595 (uri (string-append "https://download.bzflag.org/bzflag/source/"
596 version "/bzflag-" version ".tar.bz2"))
598 (base32 "16brxqmfiyz4j4lb8ihzjcbwqmpsms6vm3ijbp34lnw0blbwdjb2"))))
599 (build-system gnu-build-system)
602 (modify-phases %standard-phases
603 (add-after 'install 'install-desktop-file-and-icons
604 (lambda* (#:key outputs #:allow-other-keys)
605 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
606 (data (string-append share "/bzflag"))
607 (hicolor (string-append share "/icons/hicolor"))
608 (applications (string-append share "/applications")))
609 ;; Move desktop file.
610 (install-file (string-append data "/bzflag.desktop")
613 (for-each (lambda (size)
614 (let* ((dim (string-append size "x" size))
615 (dir (string-append hicolor "/" dim "/apps")))
618 (string-append data "/bzflag-" dim ".png")
619 (string-append dir "/bzflag.png"))))
623 `(("pkg-config" ,pkg-config)))
631 (home-page "https://www.bzflag.org/")
632 (synopsis "3D first person tank battle game")
634 "BZFlag is a 3D multi-player multiplatform tank battle game that
635 allows users to play against each other in a network environment.
636 There are five teams: red, green, blue, purple and rogue (rogue tanks
637 are black). Destroying a player on another team scores a win, while
638 being destroyed or destroying a teammate scores a loss. Rogues have
639 no teammates (not even other rogues), so they cannot shoot teammates
640 and they do not have a team score.
642 There are two main styles of play: capture-the-flag and free-for-all.
643 In capture-the-flag, each team (except rogues) has a team base and
644 each team with at least one player has a team flag. The object is to
645 capture an enemy team's flag by bringing it to your team's base. This
646 destroys every player on the captured team, subtracts one from that
647 team's score, and adds one to your team's score. In free-for-all,
648 there are no team flags or team bases. The object is simply to get as
649 high a score as possible.")
650 ;; The game is dual-licensed.
651 (license (list license:lgpl2.1 license:mpl2.0))))
653 (define-public cataclysm-dda
655 (name "cataclysm-dda")
661 (url "https://github.com/CleverRaven/Cataclysm-DDA")
664 (base32 "15l6w6lxays7qmsv0ci2ry53asb9an9dh7l7fc13256k085qcg68"))
665 (file-name (git-file-name name version))))
666 (build-system gnu-build-system)
669 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
670 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
671 "LOCALIZE=1" "LANGUAGES=all")
673 (modify-phases %standard-phases
675 (add-after 'build 'build-tiles
676 (lambda* (#:key make-flags outputs #:allow-other-keys)
677 ;; Change prefix directory and enable tile graphics and sound.
678 (apply invoke "make" "TILES=1" "SOUND=1"
679 (string-append "PREFIX="
680 (assoc-ref outputs "tiles"))
682 (add-after 'install 'install-tiles
683 (lambda* (#:key make-flags outputs #:allow-other-keys)
684 (apply invoke "make" "install" "TILES=1" "SOUND=1"
685 (string-append "PREFIX="
686 (assoc-ref outputs "tiles"))
688 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
689 ;; input in order to support tests.
692 "tiles")) ;for tile graphics and sound support
694 `(("gettext" ,gettext-minimal)
695 ("pkg-config" ,pkg-config)))
697 `(("freetype" ,freetype)
699 ("libvorbis" ,libvorbis)
702 ("sdl2-image" ,sdl2-image)
703 ("sdl2-ttf" ,sdl2-ttf)
704 ("sdl2-mixer" ,sdl2-mixer)))
705 (home-page "https://cataclysmdda.org/")
706 (synopsis "Survival horror roguelike video game")
708 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
709 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
710 procedurally generated world. Scavenge the remnants of a dead civilization
711 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
712 to get you out of Dodge. Fight to defeat or escape from a wide variety of
713 powerful monstrosities, from zombies to giant insects to killer robots and
714 things far stranger and deadlier, and against the others like yourself, that
715 want what you have.")
716 (license license:cc-by-sa3.0)))
718 (define-public corsix-th
726 (url "https://github.com/CorsixTH/CorsixTH")
727 (commit (string-append "v" version))))
728 (file-name (git-file-name name version))
730 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
731 (build-system cmake-build-system)
734 (modify-phases %standard-phases
735 (add-after 'install 'wrap-binary
737 ;; Set Lua module paths and default MIDI soundfont on startup.
738 (let* ((out (assoc-ref %outputs "out"))
739 (fluid (assoc-ref %build-inputs "fluid-3"))
740 (lua-version ,(version-major+minor (package-version lua)))
744 (assoc-ref %build-inputs (string-append "lua-" lib))
745 "/lib/lua/" lua-version "/?.so"))
746 '("filesystem" "lpeg"))))
747 (wrap-program (string-append out "/bin/corsix-th")
748 `("LUA_CPATH" ";" = ,lua-cpath)
749 `("SDL_SOUNDFONTS" ":" suffix
750 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
752 #:tests? #f)) ; TODO need busted package to run tests
753 ;; Omit Lua-Socket dependency to disable automatic updates.
757 ("freetype" ,freetype)
759 ("lua-filesystem" ,lua-filesystem)
760 ("lua-lpeg" ,lua-lpeg)
762 ("sdl2-mixer" ,sdl2-mixer)))
763 (home-page "https://corsixth.com")
764 (synopsis "Implementation of the @i{Theme Hospital} game engine")
766 "This package provides a reimplementation of the 1997 Bullfrog business
767 simulation game @i{Theme Hospital}. As well as faithfully recreating the
768 original engine, CorsixTH adds support for high resolutions, custom levels and
769 more. This package does @emph{not} provide the game assets.")
771 license:expat ; main license
772 license:bsd-3)))) ; CorsixTH/Src/random.c
774 (define-public cowsay
781 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
782 (commit (string-append name "-" version))))
783 (file-name (git-file-name name version))
786 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
787 (build-system gnu-build-system)
790 (modify-phases %standard-phases
791 (delete 'configure) ; no configure script
792 (delete 'build) ; nothing to be built
794 (lambda* (#:key outputs #:allow-other-keys)
795 (invoke "sh" "install.sh"
796 (assoc-ref outputs "out"))))
798 (add-after 'install 'check
799 (lambda* (#:key outputs #:allow-other-keys)
800 (invoke (string-append (assoc-ref outputs "out")
805 (home-page (string-append "https://web.archive.org/web/20071026043648/"
806 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
807 (synopsis "Speaking cow text filter")
808 (description "Cowsay is basically a text filter. Send some text into it,
809 and you get a cow saying your text. If you think a talking cow isn't enough,
810 cows can think too: all you have to do is run @command{cowthink}. If you're
811 tired of cows, a variety of other ASCII-art messengers are available.")
812 (license license:gpl3+)))
814 (define-public lolcat
815 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
819 (version (git-version "1.0" revision commit))
824 (url "https://github.com/jaseg/lolcat")
828 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
829 (file-name (git-file-name name version))))
830 (build-system gnu-build-system)
832 `(#:tests? #f ; no check target
834 (list ,(string-append "CC=" (cc-for-target)))
836 (modify-phases %standard-phases
840 (lambda* (#:key outputs #:allow-other-keys)
841 (let* ((out (assoc-ref outputs "out"))
842 (dest (string-append out "/bin")))
844 (install-file "lolcat" dest)
845 (install-file "censor" dest)
847 (home-page "https://github.com/jaseg/lolcat")
848 (synopsis "Rainbow coloring effect for text console display")
849 (description "@command{lolcat} concatenates files and streams like
850 regular @command{cat}, but it also adds terminal escape codes between
851 characters and lines resulting in a rainbow effect.")
852 (license license:wtfpl2))))
854 (define-public foobillard++
855 ;; Even though this latest revision is old already, stable release is
856 ;; lagging way behind it, and has issues with textures rendering.
857 (let ((svn-revision 170))
859 (name "foobillard++")
860 (version (string-append "3.43-r" (number->string svn-revision)))
865 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
866 (revision svn-revision)))
867 (file-name (git-file-name name version))
869 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
871 (search-patches "foobillard++-pkg-config.patch"))
872 (modules '((guix build utils)))
875 ;; Unfortunately, the game includes background music with
876 ;; a non-commercial clause. Delete it.
877 (for-each delete-file (find-files "data/music" "\\.ogg$"))
879 (build-system gnu-build-system)
883 ;; Install data in a less exotic location.
884 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
885 ;; Prevent a build error about undefined trigonometric functions.
886 "--enable-fastmath=no")
888 (modify-phases %standard-phases
889 (add-after 'unpack 'fix-makefile
890 ;; Remove hard-coded directories. Also fix installation
891 ;; rule: it tries to move around non-existent files or
892 ;; files already moved.
893 (lambda* (#:key outputs #:allow-other-keys)
894 (substitute* "Makefile.am"
895 (("/usr") (assoc-ref outputs "out"))
896 (("cp .*?/foobillardplus\\.desktop.*") "")
897 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
900 (add-after 'unpack 'unbundle-font
901 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
902 ;; LinBiolinum_aS.ttf, which are not provided by
903 ;; `font-linuxlibertine' package. Therefore, we cannot replace
905 (lambda* (#:key inputs #:allow-other-keys)
906 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
907 "/share/fonts/truetype/")))
908 (with-directory-excursion "data"
909 (for-each (lambda (f)
911 (symlink (string-append dejavu f) f))
912 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
916 (invoke "aclocal" "--force")
917 (invoke "autoconf" "-f")
918 (invoke "autoheader" "-f")
919 (invoke "automake" "-a" "-c" "-f")))
920 (add-before 'build 'prepare-build
921 ;; Set correct environment for SDL.
922 (lambda* (#:key inputs #:allow-other-keys)
924 (string-append (assoc-ref inputs "sdl")
926 (or (getenv "CPATH") "")))
928 (add-before 'build 'fix-settings-directory
929 ;; Hide foobillardplus settings directory in $HOME.
931 (substitute* "src/history.c"
932 (("/foobillardplus-data") "/.foobillardplus"))
934 (add-before 'install 'create-directories
935 ;; Install process does not create directories before
936 ;; trying to move file in it.
937 (lambda* (#:key outputs #:allow-other-keys)
938 (let ((out (assoc-ref outputs "out")))
939 (mkdir-p (string-append out "/share/icons"))
940 (mkdir-p (string-append out "/share/applications")))
942 (add-after 'install 'symlink-executable
943 ;; Symlink executable to $out/bin.
944 (lambda* (#:key outputs #:allow-other-keys)
945 (let* ((out (assoc-ref outputs "out"))
946 (bin (string-append out "/bin")))
948 (with-directory-excursion bin
949 (symlink "../share/foobillardplus/bin/foobillardplus"
953 `(("autoconf" ,autoconf)
954 ("automake" ,automake)
955 ("pkg-config" ,pkg-config)))
957 `(("font-dejavu" ,font-dejavu)
958 ("freetype" ,freetype)
961 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
962 (home-page "http://foobillardplus.sourceforge.net/")
963 (synopsis "3D billiard game")
964 (description "FooBillard++ is an advanced 3D OpenGL billiard game
965 based on the original foobillard 3.0a sources from Florian Berger.
966 You can play it with one or two players or against the computer.
971 @item Wood paneled table with gold covers and gold diamonds.
972 @item Reflections on balls.
973 @item Zoom in and out, rotation, different angles and bird's eye view.
974 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
975 @item Tournaments. Compete against other players.
976 @item Animated cue with strength and eccentric hit adjustment.
977 @item Jump shots and snipping.
978 @item Realistic gameplay and billiard sounds.
979 @item Red-Green stereo.
982 (license (list license:gpl2 license:silofl1.1)))))
984 (define-public freedoom
992 (url "https://github.com/freedoom/freedoom")
993 (commit (string-append "v" version))))
994 (file-name (git-file-name name version))
996 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
997 (build-system gnu-build-system)
1000 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1001 #:tests? #f ; no check target
1003 (modify-phases %standard-phases
1006 (lambda* (#:key inputs outputs #:allow-other-keys)
1007 (let* ((freedoom (assoc-ref outputs "out"))
1008 (wad-dir (string-append freedoom "/share/games/doom")))
1009 ;; Make sure that the install scripts know where to find
1010 ;; the appropriate WAD files.
1011 (substitute* "dist/freedoom"
1012 (("IWAD=freedm.wad")
1013 (string-append "IWAD=" wad-dir "/freedm.wad"))
1014 (("IWAD=freedoom1.wad")
1015 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1016 (("IWAD=freedoom2.wad")
1017 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1020 `(("asciidoc" ,asciidoc)
1023 ("python-pillow" ,python-pillow)))
1024 (home-page "https://freedoom.github.io/")
1025 (synopsis "Free content game based on the Doom engine")
1026 (native-search-paths
1027 (list (search-path-specification
1028 (variable "DOOMWADDIR")
1029 (files '("share/games/doom")))
1030 (search-path-specification
1031 (variable "DOOMWADPATH")
1032 (files '("share/games/doom")))))
1034 "The Freedoom project aims to create a complete free content first person
1035 shooter game. Freedoom by itself is just the raw material for a game: it must
1036 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1037 played. Freedoom complements the Doom engine with free levels, artwork, sound
1038 effects and music to make a completely free game.")
1039 (license license:bsd-3)))
1041 (define-public freedroidrpg
1043 (name "freedroidrpg")
1048 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1049 "freedroidRPG-" (version-major+minor version) "/"
1050 "freedroidRPG-" version ".tar.gz"))
1052 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1053 (build-system gnu-build-system)
1057 (string-append "CFLAGS="
1058 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1059 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1060 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1062 ;; FIXME: the test suite fails with the following error output:
1063 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1064 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1067 `(("pkg-config" ,pkg-config)))
1070 ("libjpeg" ,libjpeg-turbo)
1073 ("libvorbis" ,libvorbis)
1075 ("python" ,python-wrapper)
1077 ("sdl-gfx" ,sdl-gfx)
1078 ("sdl-image" ,sdl-image)
1079 ("sdl-mixer" ,sdl-mixer)
1081 (home-page "http://www.freedroid.org/")
1082 (synopsis "Isometric role-playing game against killer robots")
1084 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1085 The game tells the story of a world destroyed by a conflict between robots and
1086 their human masters. To restore peace to humankind, the player must complete
1087 numerous quests while fighting off rebelling robots---either by taking control
1088 of them, or by simply blasting them to pieces with melee and ranged weapons in
1090 (license (list license:expat ; lua/
1091 license:gpl3 ; src/gen_savestruct.py
1092 license:gpl2+)))) ; the rest
1094 (define-public golly
1100 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1101 version "/golly-" version
1105 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1106 (build-system gnu-build-system)
1108 '(#:make-flags (list "CC=gcc"
1109 (string-append "GOLLYDIR="
1110 (assoc-ref %outputs "out")
1112 #:tests? #f ; no check target
1114 (modify-phases %standard-phases
1116 (lambda* (#:key inputs #:allow-other-keys)
1117 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1118 ;; properly set the path to the Python shared library. This
1119 ;; substitution acheives the same end by different means.
1120 (substitute* "gui-wx/wxprefs.cpp"
1121 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1122 (string-append "pythonlib = \""
1123 (assoc-ref inputs "python")
1124 "/lib/libpython-2.7.so\"")))
1127 (lambda* (#:key make-flags outputs #:allow-other-keys)
1128 (with-directory-excursion "gui-wx"
1129 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1131 (lambda* (#:key outputs #:allow-other-keys)
1132 (let* ((out (assoc-ref outputs "out"))
1133 (bin (string-append out "/bin"))
1134 (doc (string-append out "/share/doc/golly"))
1135 (pixmaps (string-append out "/share/pixmaps"))
1136 (share (string-append out "/share/golly")))
1137 (for-each (lambda (binary)
1138 (install-file binary bin))
1139 '("bgolly" "golly"))
1140 (for-each (lambda (document)
1142 (string-append "docs/" document ".html")
1144 '("License" "ReadMe" "ToDo"))
1145 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1146 (for-each (lambda (folder)
1149 (string-append share "/" folder)))
1150 '("Help" "Patterns" "Rules" "Scripts")))
1157 ("python" ,python-2)
1158 ("wxwidgets" ,wxwidgets-gtk2)
1160 (home-page "http://golly.sourceforge.net/")
1161 (synopsis "Software for exploring cellular automata")
1163 "Golly simulates Conway's Game of Life and many other types of cellular
1164 automata. The following features are available:
1166 @item Support for bounded and unbounded universes, with cells of up to 256
1168 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1170 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1171 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1172 @item Scriptable via Lua or Python.
1173 @item Extracting patterns, rules and scripts from zip files.
1174 @item Downloading patterns, rules and scripts from online archives.
1175 @item Pasting patterns from the clipboard.
1176 @item Unlimited undo/redo.
1177 @item Configurable keyboard shortcuts.
1178 @item Auto fit option to keep patterns within the view.
1180 (license license:gpl2+)))
1182 (define-public julius
1190 (url "https://github.com/bvschaik/julius")
1191 (commit (string-append "v" version))))
1192 (file-name (git-file-name name version))
1194 (base32 "12hhnhdwgz7hd3hlndbnk15pxggm1375qs0764ija4nl1gbpb110"))
1195 ;; Remove unused bundled libraries.
1196 (modules '((guix build utils)))
1199 (with-directory-excursion "ext"
1200 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1202 (build-system cmake-build-system)
1204 `(("libpng" ,libpng)
1206 ("sdl2-mixer" ,sdl2-mixer)))
1207 (home-page "https://github.com/bvschaik/julius")
1208 (synopsis "Re-implementation of Caesar III game engine")
1210 "Engine for Caesar III, a city-building real-time strategy game.
1211 Julius includes some UI enhancements while preserving the logic (including
1212 bugs) of the original game, so that saved games are compatible. This package
1213 does not include game data.")
1214 (license (list license:agpl3
1215 license:zlib)))) ; ext/tinyfiledialogs
1217 (define-public augustus
1221 (version (package-version julius))
1226 (url "https://github.com/Keriew/augustus")
1227 (commit (string-append "v" version))))
1228 (file-name (git-file-name name version))
1230 (base32 "0ii0w0iwa9zv5bbqfcps5mxifd796m6fw4gvjf09pkm3yjgqc0ag"))
1231 ;; Remove unused bundled libraries.
1232 (modules '((guix build utils)))
1235 (with-directory-excursion "ext"
1236 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1239 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1241 (home-page "https://github.com/Keriew/augustus")
1242 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1244 "Fork of Julius, an engine for the a city-building real-time strategy
1245 game Caesar III. Gameplay enhancements include:
1249 @item market special orders;
1250 @item global labour pool;
1251 @item partial warehouse storage;
1252 @item increased game limits;
1253 @item zoom controls.
1256 (define-public meandmyshadow
1258 (name "meandmyshadow")
1262 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1263 version "/meandmyshadow-" version
1267 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1268 (build-system cmake-build-system)
1270 `(#:tests? #f)) ; there are no tests
1272 `(("pkg-config" ,pkg-config)))
1275 ("libarchive" ,libarchive)
1277 ("sdl" ,(sdl-union (list sdl2
1281 (home-page "https://acmepjz.github.io/meandmyshadow/")
1282 (synopsis "Puzzle/platform game")
1283 (description "Me and My Shadow is a puzzle/platform game in which you try
1284 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1285 and much more stand between you and the exit. Record your moves and let your
1286 shadow mimic them to reach blocks you couldn't reach alone.")
1287 (license license:gpl3+)))
1289 (define-public opensurge
1297 (url "https://github.com/alemart/opensurge")
1298 (commit (string-append "v" version))))
1299 (file-name (git-file-name name version))
1301 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1302 (build-system cmake-build-system)
1304 `(#:tests? #f ;there are no tests
1306 (let* ((out (assoc-ref %outputs "out"))
1307 (share (string-append out "/share")))
1308 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1309 (string-append "-DGAME_DATADIR=" share "/" ,name)
1310 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1311 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1312 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1314 (modify-phases %standard-phases
1315 (add-after 'unpack 'fix-xdg-open-path
1316 (lambda* (#:key inputs #:allow-other-keys)
1317 ;; Look for xdg-open in the store.
1318 (substitute* "src/core/web.c"
1319 (("/usr(/bin/xdg-open)" _ bin)
1320 (string-append (assoc-ref inputs "xdg-utils") bin)))
1322 (add-after 'unpack 'unbundle-fonts
1323 (lambda* (#:key inputs #:allow-other-keys)
1324 ;; Replace bundled Roboto fonts with links to the store.
1325 (with-directory-excursion "fonts"
1326 (let ((roboto-dir (string-append
1327 (assoc-ref inputs "font-google-roboto")
1328 "/share/fonts/truetype/")))
1332 (symlink (string-append roboto-dir font) font))
1333 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1336 `(("allegro" ,allegro)
1337 ("font-google-roboto" ,font-google-roboto)
1338 ("surgescript" ,surgescript)
1339 ("xdg-utils" ,xdg-utils)))
1340 (home-page "https://opensurge2d.org")
1341 (synopsis "2D retro side-scrolling game")
1342 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1343 inspired by the Sonic games. The player runs at high speeds through each
1344 level while collecting items and avoiding obstacles. The game includes a
1345 built-in level editor.")
1347 ;; Code is under GPL 3+, assets are under various licenses.
1348 ;; See src/misc/credits.c for details.
1354 license:public-domain
1355 license:silofl1.1))))
1357 (define-public knights
1363 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1364 version "_src.tar.gz"))
1367 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1368 (build-system gnu-build-system)
1371 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1372 "CXXFLAGS=-lpthread")
1374 (modify-phases %standard-phases
1375 ;; No configure script.
1376 (delete 'configure))
1377 #:tests? #f)) ;; No check target.
1380 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1381 ("freetype" ,freetype)
1382 ("fontconfig" ,fontconfig)
1385 `(("pkg-config" ,pkg-config)))
1386 (home-page "http://www.knightsgame.org.uk/")
1387 (synopsis "Multiplayer dungeon game involving knights and quests")
1388 (description "Knights is a multiplayer game involving several knights who
1389 must run around a dungeon and complete various quests. Each game revolves
1390 around a quest – for example, you might have to find some items and carry them
1391 back to your starting point. This may sound easy, but as there are only
1392 enough items in the dungeon for one player to win, you may end up having to
1393 kill your opponents to get their stuff! Other quests involve escaping from
1394 the dungeon, fighting a duel to the death against the enemy knights, or
1395 destroying an ancient book using a special wand.")
1396 ;; This package includes modified sources of lua (X11), enet (Expat), and
1397 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1398 ;; license. The whole package is released under GPLv3+.
1399 (license license:gpl3+)))
1401 (define-public gnome-chess
1403 (name "gnome-chess")
1407 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1408 (version-major+minor version) "/"
1409 "gnome-chess-" version ".tar.xz"))
1412 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1413 (build-system meson-build-system)
1417 (modify-phases %standard-phases
1418 (add-after 'unpack 'skip-gtk-update-icon-cache
1419 ;; Don't create 'icon-theme.cache'.
1421 (substitute* "meson_post_install.py"
1422 (("gtk-update-icon-cache") "true"))
1426 ("librsvg" ,librsvg)))
1428 `(("gettext" ,gettext-minimal)
1429 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1430 ("itstool" ,itstool)
1431 ("pkg-config" ,pkg-config)
1433 (home-page "https://wiki.gnome.org/Apps/Chess")
1434 (synopsis "Chess board for GNOME")
1435 (description "GNOME Chess provides a 2D board for playing chess games
1436 against human or computer players. It supports loading and saving games in
1437 Portable Game Notation. To play against a computer, install a chess engine
1438 such as chess or stockfish.")
1439 (license license:gpl3+)))
1441 (define-public gnubg
1444 (version "1.06.002")
1448 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1449 version "-sources.tar.gz"))
1452 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1453 (build-system gnu-build-system)
1454 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1455 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1456 ("pango" ,pango-1.42)
1459 ("readline" ,readline)
1463 ("gtkglext" ,gtkglext)
1465 ("libcanberra" ,libcanberra)))
1466 (native-inputs `(("python-2" ,python-2)
1467 ("pkg-config" ,pkg-config)))
1470 (modify-phases %standard-phases
1471 (add-after 'install 'install-desktop-file
1472 (lambda* (#:key outputs #:allow-other-keys)
1473 (let* ((out (assoc-ref outputs "out"))
1474 (apps (string-append out "/share/applications")))
1476 (with-output-to-file (string-append apps "/gnubg.desktop")
1480 Name=GNU Backgammon~@
1481 Exec=~a/bin/gnubg -w~@
1488 (home-page "https://www.gnu.org/software/gnubg/")
1489 (synopsis "Backgammon game")
1490 (description "The GNU backgammon application (also known as \"gnubg\") can
1491 be used for playing, analyzing and teaching the game. It has an advanced
1492 evaluation engine based on artificial neural networks suitable for both
1493 beginners and advanced players. In addition to a command-line interface, it
1494 also features an attractive, 3D representation of the playing board.")
1495 (license license:gpl3+)))
1497 (define-public gnubik
1504 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1508 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1509 (build-system gnu-build-system)
1511 '(#:phases (modify-phases %standard-phases
1512 (add-after 'unpack 'skip-gtk-update-icon-cache
1514 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1515 ;; unnecessary and causes a needless dependency on glib.
1516 (substitute* "Makefile.in"
1517 (("gtk-update-icon-cache")
1520 (inputs `(("gtk+" ,gtk+-2)
1524 ("guile" ,guile-2.0)
1525 ("gtkglext" ,gtkglext)))
1526 (native-inputs `(("gettext" ,gettext-minimal)
1527 ("pkg-config" ,pkg-config)))
1528 (home-page "https://www.gnu.org/software/gnubik/")
1529 (synopsis "3d Rubik's cube game")
1531 "GNUbik is a puzzle game in which you must manipulate a cube to make
1532 each of its faces have a uniform color. The game is customizable, allowing
1533 you to set the size of the cube (the default is 3x3) or to change the colors.
1534 You may even apply photos to the faces instead of colors. The game is
1535 scriptable with Guile.")
1536 (license license:gpl3+)))
1538 (define-public gnushogi
1545 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1549 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1550 (arguments `(#:tests? #f)) ;; No check target.
1551 (build-system gnu-build-system)
1552 (home-page "https://www.gnu.org/software/gnushogi/")
1553 (synopsis "The game of Shogi (Japanese chess)")
1554 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1555 Chess). It is similar to standard chess but this variant is far more complicated.")
1556 (license license:gpl3+)))
1558 (define-public ltris
1565 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1566 "ltris-" version ".tar.gz"))
1568 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1569 (build-system gnu-build-system)
1571 '(;; The code in LTris uses traditional GNU semantics for inline functions
1572 #:configure-flags '("CFLAGS=-fgnu89-inline")
1574 (modify-phases %standard-phases
1575 (add-after 'set-paths 'set-sdl-paths
1576 (lambda* (#:key inputs #:allow-other-keys)
1578 (string-append (assoc-ref inputs "sdl-union")
1580 (or (getenv "CPATH") "")))
1583 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1584 (home-page "http://lgames.sourceforge.net/LTris/")
1585 (synopsis "Tetris clone based on the SDL library")
1587 "LTris is a tetris clone: differently shaped blocks are falling down the
1588 rectangular playing field and can be moved sideways or rotated by 90 degree
1589 units with the aim of building lines without gaps which then disappear (causing
1590 any block above the deleted line to fall down). LTris has three game modes: In
1591 Classic you play until the stack of blocks reaches the top of the playing field
1592 and no new blocks can enter. In Figures the playing field is reset to a new
1593 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1594 up to three players (either human or CPU) compete with each other sending
1595 removed lines to all opponents. There is also a Demo mode in which you can
1596 watch your CPU playing while enjoying a cup of tea!")
1597 (license license:gpl2+)))
1599 (define-public nethack
1607 (string-append "https://www.nethack.org/download/" version "/nethack-"
1608 (string-join (string-split version #\.) "") "-src.tgz"))
1610 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1615 `(("ncurses" ,ncurses)
1617 (build-system gnu-build-system)
1620 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1622 (modify-phases %standard-phases
1623 (add-before 'configure 'patch-paths
1625 (substitute* "sys/unix/nethack.sh"
1627 (substitute* "sys/unix/Makefile.utl"
1628 (("^YACC *=.*$") "YACC = bison -y\n")
1629 (("^LEX *=.*$") "LEX = flex\n")
1630 (("^# CC = gcc") "CC = gcc"))
1631 (substitute* "sys/unix/hints/linux"
1632 (("/bin/gzip") (string-append
1633 (assoc-ref %build-inputs "gzip")
1635 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1636 (substitute* "include/config.h"
1637 (("^.*define CHDIR.*$") "")
1638 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1639 ;; Honor SOURCE_DATE_EPOCH.
1640 "#define REPRODUCIBLE_BUILD"))
1642 ;; Note: 'makedefs' rejects and ignores dates that are too old
1643 ;; or too new, so we must choose something reasonable here.
1644 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1646 (substitute* "sys/unix/Makefile.src"
1647 (("^# CC = gcc") "CC = gcc"))
1651 (let ((bash (string-append
1652 (assoc-ref %build-inputs "bash")
1654 (with-directory-excursion "sys/unix"
1655 (substitute* "setup.sh" (("/bin/sh") bash))
1656 (invoke bash "setup.sh" "hints/linux"))
1658 (add-after 'install 'fixup-paths
1660 (let* ((output (assoc-ref %outputs "out"))
1661 (nethack-script (string-append output "/bin/nethack")))
1662 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1666 (string-append output "/games/lib/nethackdir/" file)
1667 (string-append output "/games/lib/nethackuserdir/"
1669 '("xlogfile" "logfile" "perm" "record" "save"))
1670 (mkdir-p (string-append output "/bin"))
1671 (call-with-output-file nethack-script
1673 (format port "#!~a/bin/sh
1675 if [ ! -d ~~/.config/nethack ]; then
1676 mkdir -p ~~/.config/nethack
1677 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1678 chmod -R +w ~~/.config/nethack
1689 for i in ~~/.config/nethack/*; do
1690 ln -s $i $(basename $i)
1692 for i in ~a/games/lib/nethackdir/*; do
1693 ln -s $i $(basename $i)
1696 (assoc-ref %build-inputs "bash")
1697 (list->search-path-as-string
1700 (assoc-ref %build-inputs "coreutils") "/bin")
1702 (assoc-ref %build-inputs "less") "/bin"))
1707 (chmod nethack-script #o555)
1710 (home-page "https://nethack.org")
1711 (synopsis "Classic dungeon crawl game")
1712 (description "NetHack is a single player dungeon exploration game that runs
1713 on a wide variety of computer systems, with a variety of graphical and text
1714 interfaces all using the same game engine. Unlike many other Dungeons &
1715 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1716 the dungeon and not simply killing everything in sight - in fact, killing
1717 everything in sight is a good way to die quickly. Each game presents a
1718 different landscape - the random number generator provides an essentially
1719 unlimited number of variations of the dungeon and its denizens to be discovered
1720 by the player in one of a number of characters: you can pick your race, your
1721 role, and your gender.")
1723 (license:fsdg-compatible
1724 "https://nethack.org/common/license.html"))))
1726 (define-public pipewalker
1733 (uri (string-append "http://downloads.sourceforge.net/pipewalker/"
1734 "pipewalker-" version ".tar.gz"))
1736 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1737 (build-system gnu-build-system)
1740 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1741 "/share/doc/" ,name "-" ,version))
1743 (modify-phases %standard-phases
1744 (add-after 'configure 'patch-docdir
1745 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1747 (substitute* "Makefile"
1748 (("(pkgdocdatadir = ).*" _ assignment)
1749 (string-append assignment "$(docdir)\n")))
1752 `(("libpng" ,libpng)
1755 (home-page "http://pipewalker.sourceforge.net/")
1756 (synopsis "Logical tile puzzle")
1758 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1759 computers to one network server, bring water from a source to the taps, etc.
1760 The underlying mechanism is always the same: you must turn each tile in the
1761 grid in the right direction to combine all components into a single circuit.
1762 Every puzzle has a complete solution, although there may be more than one.")
1763 (license license:gpl3+)))
1765 (define-public prboom-plus
1767 (name "prboom-plus")
1771 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
1772 version "/prboom-plus-" version ".tar.gz"))
1774 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
1775 (modules '((guix build utils)))
1778 (substitute* "src/version.c"
1782 (build-system gnu-build-system)
1784 '(#:configure-flags '("--disable-cpu-opt")
1785 #:make-flags `(,(string-append "gamesdir="
1786 (assoc-ref %outputs "out") "/bin"))
1788 (modify-phases %standard-phases
1789 (add-after 'set-paths 'set-sdl'paths
1790 (lambda* (#:key inputs #:allow-other-keys)
1792 (string-append (assoc-ref inputs "sdl-union")
1794 (or (getenv "CPATH") "")))
1797 `(("fluidsynth" ,fluidsynth)
1801 ("libvorbis" ,libvorbis)
1803 ("portmidi" ,portmidi)
1804 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
1805 (home-page "http://prboom-plus.sourceforge.net/")
1806 (synopsis "Version of the classic 3D shoot'em'up game Doom")
1808 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
1809 (license license:gpl2+)))
1811 (define-public retux
1817 (uri (string-append "mirror://savannah/retux/"
1818 (version-major+minor version) "/retux-"
1819 version "-src.tar.gz"))
1822 "01bidh4zisjp3nc436x0g85v60dvwb3ig37i7y01sa71j8fm4fmb"))))
1823 (build-system python-build-system)
1825 `(#:tests? #f ; no check target
1827 (modify-phases %standard-phases
1828 ;; no setup.py script
1831 (lambda* (#:key outputs #:allow-other-keys)
1832 (let* ((out (assoc-ref outputs "out"))
1833 (bin (string-append out "/bin"))
1834 (data (string-append out "/share/retux"))
1835 (doc (string-append out "/share/doc/retux")))
1838 (substitute* "retux.py"
1839 ;; Use the correct data directory.
1840 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
1841 (string-append "\"" data "\","))
1842 ;; Use Python 3 so the patch-shebangs phase works properly.
1843 ((".*python2.*") "#!/usr/bin/python3"))
1845 (copy-file "retux.py" (string-append bin "/retux"))
1847 (copy-recursively "data" data)
1849 (install-file "COPYING" doc)
1852 `(("python-sge-pygame" ,python-sge-pygame)
1853 ("python-six" ,python-six)
1854 ("python-xsge" ,python-xsge)))
1855 (home-page "http://retux.nongnu.org")
1856 (synopsis "Action platformer game")
1858 "ReTux is an action platformer loosely inspired by the Mario games,
1859 utilizing the art assets from the @code{SuperTux} project.")
1860 ;; GPL version 3 or later is the license for the code and some art.
1861 ;; The rest of the licenses are for the art exclusively, as listed in
1863 (license (list license:cc0
1870 (define-public roguebox-adventures
1872 (name "roguebox-adventures")
1878 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
1879 (string-join (string-split version #\.) "_") "_Source.zip"))
1880 (file-name (string-append name "-" version ".zip"))
1883 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
1884 (build-system python-build-system)
1886 `(#:tests? #f ; no check target
1888 (modify-phases %standard-phases
1890 (lambda* (#:key source #:allow-other-keys)
1891 (and (invoke "unzip" source)
1892 ;; The actual source is buried a few directories deep.
1893 (chdir (string-append "RogueBoxAdventures_v"
1895 (string-split ,version #\.) "_")
1897 ;; no setup.py script
1899 (lambda* (#:key outputs #:allow-other-keys)
1900 (let* ((out (assoc-ref outputs "out"))
1901 (data (string-append
1902 out "/share/games/roguebox-adventures")))
1903 ;; Use the correct data directory.
1904 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
1905 (("basic_path + os\\.sep + 'DATA'")
1906 (string-append "'" data "'"))
1908 (string-append "basic_path ='" data "'\n")))
1909 (substitute* "LIB/dialog.py"
1910 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
1911 (string-append "d_path = '" data "'")))
1912 (substitute* "LIB/gra_files.py"
1913 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
1914 (string-append "basic_path ='" data "'\n")))
1916 ;; The game must save in the user's home directory because
1917 ;; the store is read-only.
1918 (substitute* "main.py"
1919 (("home_save = False") "home_save = True")
1920 (("'icon_small.png'")
1921 (string-append "'" data "/icon_small.png'"))))
1924 (lambda* (#:key outputs #:allow-other-keys)
1925 (let* ((out (assoc-ref outputs "out"))
1926 (bin (string-append out "/bin"))
1927 (roguebox-adventures
1928 (string-append bin "/roguebox-adventures"))
1929 (data (string-append
1930 out "/share/games/roguebox-adventures"))
1931 (lib (string-append data "/LIB"))
1933 out "/share/doc/roguebox-adventures")))
1937 (for-each (lambda (file)
1938 (copy-recursively file
1939 (string-append data "/" file)))
1940 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
1941 "icon_big.png" "icon_small.png"))
1942 (for-each (lambda (file)
1944 (install-file file lib))
1945 '("main.py" "run.py"))
1947 (copy-recursively "DOC" doc)
1949 (call-with-output-file
1954 export PYTHONPATH=~a/LIB:~a
1955 exec -a \"~a\" ~a \"$@\"\n"
1956 (which "bash") data (getenv "PYTHONPATH")
1958 (string-append lib "/main.py"))))
1959 (chmod roguebox-adventures #o555))
1962 `(("unzip" ,unzip)))
1964 `(("python-pygame" ,python-pygame)
1965 ("python-tmx" ,python-tmx)))
1966 (home-page "https://rogueboxadventures.tuxfamily.org")
1967 (synopsis "A classical roguelike/sandbox game")
1969 "RogueBox Adventures is a graphical roguelike with strong influences
1970 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
1971 Adventures is to offer the player a kind of roguelike toy-world. This world
1972 can be explored and changed freely.")
1973 ;; The GPL3+ is for code, the rest are for art.
1974 (license (list license:cc0
1977 license:silofl1.1))))
1979 (define-public seahorse-adventures
1981 (name "seahorse-adventures")
1987 (url "https://github.com/dulsi/seahorse-adventures")
1988 (commit (string-append "release-" version))))
1989 (file-name (git-file-name name version))
1991 (base32 "1rnvk06npaqcpjz5z6xcmssz61i32s422lydp49vrnf3j2g4yimd"))
1992 (modules '((guix build utils)
1995 ;; Remove non-free (non-commercial) font.
1998 (for-each delete-file (find-files "data/fonts" "."))
2000 (build-system python-build-system)
2002 `(#:tests? #f ;no test
2004 (modify-phases %standard-phases
2005 (delete 'build) ;pure Python
2006 (replace 'install ;no install script
2007 (lambda* (#:key outputs #:allow-other-keys)
2008 (let* ((out (assoc-ref outputs "out"))
2009 (bin (string-append out "/bin"))
2010 (share (string-append out "/share"))
2011 (applications (string-append share "/applications"))
2012 (data (string-append share "/seahorse-adventures")))
2014 (for-each (lambda (f)
2016 (install-file f data))
2017 '("leveledit.py" "run_game.py" "tileedit.py"))
2018 (for-each (lambda (dir)
2019 (let ((target (string-append data "/" dir)))
2021 (copy-recursively dir target)))
2023 ;; Create executable.
2025 (let ((executable (string-append bin "/seahorse-adventures")))
2026 (call-with-output-file executable
2030 export PYTHONPATH=~a:~a~@
2031 exec -a \"~a\" ~a \"$@\"~%"
2032 (which "bash") data (getenv "PYTHONPATH")
2034 (string-append data "/run_game.py"))))
2035 (chmod executable #o555))
2036 ;; Add desktop file.
2037 (mkdir-p applications)
2038 (make-desktop-entry-file
2039 (string-append applications "/seahorse-adventures.desktop")
2040 #:name "Seahorse Adventures"
2042 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2045 #:categories '("Game" "ActionGame")
2046 #:keywords '("game" "retro" "platform"))
2050 (let ((dir (string-append share "/icons/hicolor/"
2051 size "x" size "/apps")))
2054 (string-append "icon" size ".png")
2055 (string-append dir "/searhorse-adventures.png"))))
2056 '("32" "64" "128")))
2058 (add-after 'install 'unbundle-fonts
2059 ;; Unbundle Bitstream Vera font and replace deleted one.
2060 (lambda* (#:key outputs inputs #:allow-other-keys)
2061 (let* ((out (assoc-ref outputs "out"))
2062 (data (string-append out "/share/seahorse-adventures"))
2063 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2064 "/share/fonts/truetype/Vera.ttf")))
2065 (let ((themes-dir (string-append data "/data/themes/")))
2068 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2069 (delete-file target)
2070 (symlink vera target)))
2071 '("default" "gray")))
2072 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2073 (substitute* (string-append data "/lib/main.py")
2074 (("f_scale = 0.35") "f_scale = 0.47")))
2077 `(("font-bitstream-vera" ,font-bitstream-vera)
2078 ("python-pygame" ,python-pygame)))
2079 (home-page "http://www.imitationpickles.org/barbie/")
2080 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2082 "Barbie Seahorse Adventures is a retro style platform arcade game.
2083 You are Barbie the seahorse who travels through the jungle, up to the
2084 volcano until you float on bubbles to the moon. On the way to your
2085 final destination you will encounter various enemies, servants of the
2086 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2087 and defeat them with your bubbles!")
2088 ;; GPL2+ is for code, CC0 is for art.
2089 (license (list license:gpl2+ license:cc0))))
2091 (define-public superstarfighter
2093 (name "superstarfighter")
2099 (url "https://github.com/notapixelstudio/superstarfighter")
2100 (commit (string-append "v" version))))
2101 (file-name (git-file-name name version))
2103 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2104 (build-system gnu-build-system)
2106 `(#:tests? #f ;there are no tests
2108 (modify-phases %standard-phases
2112 (setenv "HOME" (getcwd))
2113 (with-output-to-file "export_presets.cfg"
2118 platform=\"Linux/X11\"
2120 [preset.0.options]")))
2124 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2125 (invoke (string-append godot "/bin/godot_server")
2126 "--export-pack" "Guix"
2127 "superstarfighter.pck" "project.godot"))
2130 (lambda* (#:key inputs outputs #:allow-other-keys)
2131 (let* ((out (assoc-ref outputs "out"))
2132 (bin (string-append out "/bin"))
2133 (share (string-append out "/share"))
2134 (data (string-append share "/superstarfighter"))
2135 (icons (string-append share "/icons/hicolor/256x256/apps")))
2136 (install-file "superstarfighter.pck" data)
2138 (call-with-output-file (string-append bin "/superstarfighter")
2142 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2143 (assoc-ref inputs "godot")
2145 (chmod port #o755)))
2147 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2148 (make-desktop-entry-file
2149 (string-append share "/applications/" ,name ".desktop")
2150 #:name "SuperStarfighter"
2151 #:comment "Fast-paced arcade combat game"
2154 #:categories '("Game" "ArcadeGame")))
2157 `(("godot-headless" ,godot "headless")))
2159 `(("godot" ,godot)))
2160 (home-page "https://notapixel.itch.io/superstarfighter")
2161 (synopsis "Fast-paced local multiplayer arcade game")
2162 (description "In SuperStarfighter, up to four local players compete in a
2163 2D arena with fast-moving ships and missiles. Different game types are
2164 available, as well as a single-player mode with AI-controlled ships.")
2165 (license (list license:expat ; game
2166 license:silofl1.1)))) ; fonts
2168 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2169 (define %ufoai-revision "0")
2170 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2171 (define ufoai-source
2175 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2176 (commit %ufoai-commit)))
2177 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2180 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2181 (modules '((guix build utils)
2186 ;; Delete ~32MiB of bundled dependencies.
2187 (with-directory-excursion "src/libs"
2188 (for-each delete-file-recursively
2189 (lset-difference equal? (scandir ".")
2190 '("." ".." "gtest" "mumble"))))
2192 ;; Use relative path to Lua headers.
2193 (substitute* "src/common/scripts_lua.h"
2194 (("\\.\\./libs/lua/") ""))
2196 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2197 ;; it as a separate package. This way we don't need to make the same
2198 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2199 (substitute* "build/maps.mk"
2200 (("\\./ufo2map") "ufo2map")
2201 (("maps: ufo2map") "maps:"))
2202 (substitute* "build/modules/testall.mk"
2203 (("testall: ufo2map") "testall:"))
2205 ;; If no cURL headers are found, the build system will try to include
2206 ;; the bundled version, even when not required. Prevent that.
2207 (substitute* "build/default.mk"
2208 (("^include src/libs/curl/lib/Makefile\\.inc")
2211 ;; While here, improve reproducibility by adding the '-X' flag to the
2212 ;; zip command used to create the map files, in order to prevent time
2213 ;; stamps from making it into the generated archives.
2214 (substitute* "build/data.mk"
2215 (("\\$\\(call ZIP\\)")
2219 (define-public ufo2map
2222 (version %ufoai-version)
2223 (home-page "https://ufoai.org/")
2224 (source ufoai-source)
2225 (build-system gnu-build-system)
2227 '(#:configure-flags '("CC=gcc" "CXX=g++"
2230 "--disable-uforadiant"
2231 "--disable-cgame-campaign"
2232 "--disable-cgame-multiplayer"
2233 "--disable-cgame-skirmish"
2239 "--disable-ufomodel"
2240 "--disable-ufoslicer")
2241 #:tests? #f ;no tests
2242 #:phases (modify-phases %standard-phases
2244 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2245 ;; The home-made configure script does not understand
2246 ;; some of the default flags of gnu-build-system.
2247 (apply invoke "./configure" configure-flags)))
2249 (lambda* (#:key outputs #:allow-other-keys)
2250 (let ((out (assoc-ref outputs "out")))
2251 (install-file "ufo2map" (string-append out "/bin"))
2252 (install-file "debian/ufo2map.6"
2253 (string-append out "/share/man/man6"))
2256 `(("pkg-config" ,pkg-config)))
2258 `(("libjpeg" ,libjpeg-turbo)
2261 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2262 (synopsis "UFO: AI map generator")
2264 "This package provides @command{ufo2map}, a program used to generate
2265 maps for the UFO: Alien Invasion strategy game.")
2266 (license license:gpl2+)))
2271 (version %ufoai-version)
2272 (home-page "https://ufoai.org/")
2273 (source ufoai-source)
2274 (build-system gnu-build-system)
2277 #:configure-flags '("CC=gcc" "CXX=g++")
2278 #:phases (modify-phases %standard-phases
2280 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2281 (apply invoke "./configure" configure-flags)))
2283 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2285 "-j" (if parallel-build?
2286 (number->string (parallel-job-count))
2289 (add-after 'build 'pack
2291 (invoke "make" "pk3")))
2293 (lambda* (#:key outputs #:allow-other-keys)
2294 (let ((out (assoc-ref outputs "out")))
2295 (for-each (lambda (file)
2296 (install-file file out))
2297 (find-files "base" "\\.pk3$"))
2300 `(("python" ,python-2)
2301 ("ufo2map" ,ufo2map)
2304 (synopsis "UFO: AI data files")
2306 "This package contains maps and other assets for UFO: Alien Invasion.")
2307 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2308 ;; licenses, see LICENSES for details.
2309 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2310 license:cc-by-sa3.0 license:public-domain))))
2312 (define-public ufoai
2315 (version %ufoai-version)
2316 (home-page "https://ufoai.org/")
2317 (source ufoai-source)
2318 (build-system gnu-build-system)
2321 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2322 (string-append "--datadir=" (assoc-ref %outputs "out")
2328 "--disable-dependency-tracking"
2330 ;; Disable hard links to prevent huge NARs.
2331 "--disable-hardlinkedgame"
2332 "--disable-hardlinkedcgame")
2333 #:phases (modify-phases %standard-phases
2334 (add-after 'unpack 'symlink-data-files
2335 (lambda* (#:key inputs #:allow-other-keys)
2336 (let ((data (assoc-ref inputs "ufoai-data")))
2337 ;; Symlink the data files to where the build system
2338 ;; expects to find them. Ultimately these files are
2339 ;; copied to $out/share/games/ufoai/base, losing the
2340 ;; symlinks; we could fix that after install, but it
2341 ;; does not make a big difference in practice due to
2343 (with-directory-excursion "base"
2344 (for-each (lambda (file)
2345 (symlink file (basename file)))
2346 (find-files data "\\.pk3$")))
2348 (add-before 'configure 'create-language-files
2350 (invoke "make" "lang")))
2352 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2353 (apply invoke "./configure" configure-flags)))
2355 (lambda* (#:key tests? #:allow-other-keys)
2357 (invoke "./testall")
2358 (format #t "test suite not run~%"))
2360 (add-after 'install 'install-man-pages
2361 (lambda* (#:key outputs #:allow-other-keys)
2362 (let* ((out (assoc-ref outputs "out"))
2363 (man6 (string-append out "/share/man/man6")))
2364 (install-file "debian/ufo.6" man6)
2365 (install-file "debian/ufoded.6" man6)
2368 ;; TODO: Some map tests occasionally fail because of randomness issues,
2369 ;; e.g. not enough generated aliens. The test runner also fails early
2370 ;; in the build container with 'failed to shutdown server'?
2373 `(("gettext" ,gettext-minimal)
2374 ("pkg-config" ,pkg-config)
2375 ("python" ,python-2)
2376 ("ufo2map" ,ufo2map)
2377 ("ufoai-data" ,ufoai-data)))
2380 ("libjpeg" ,libjpeg-turbo)
2383 ("libtheora" ,libtheora)
2384 ("libvorbis" ,libvorbis)
2385 ("libxml2" ,libxml2)
2388 ("minixml" ,minixml)
2389 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2391 (synopsis "Turn-based tactical strategy game")
2393 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2394 You control a secret organisation charged with defending Earth from a brutal
2395 alien enemy. Build up your bases, prepare your team, and dive head-first into
2396 the fast and flowing turn-based combat.
2398 Over the long term you will need to conduct research into the alien threat to
2399 figure out their mysterious goals and use their powerful weapons for your own
2400 ends. You will produce unique items and use them in combat against your
2403 You can also use them against your friends with the multiplayer functionality.
2405 Warning: This is a pre-release version of UFO: AI! Some things may not work
2408 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2409 ;; because some assets do not use the "or later" clause. Many individual
2410 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2411 (license (delete license:gpl2+ (package-license ufoai-data)))))
2413 (define-public xshogi
2420 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2424 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2425 (build-system gnu-build-system)
2427 `(("libxaw" ,libxaw)
2429 (home-page "https://www.gnu.org/software/gnushogi/")
2430 (synopsis "User interface for gnushogi")
2431 (description "A graphical user interface for the package @code{gnushogi}.")
2432 ;; Contains a copy of GPLv3 but the licence notices simply
2433 ;; state "GNU General Public Licence" without specifying a version.
2434 (license license:gpl1+)))
2436 (define-public abbaye
2444 (url "https://github.com/nevat/abbayedesmorts-gpl")
2445 (commit (string-append "v" version))))
2446 (file-name (git-file-name name version))
2448 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2449 (modules '((guix build utils)))
2453 (delete-file-recursively "fonts")
2455 (build-system gnu-build-system)
2457 '(#:make-flags '("CC=gcc")
2458 #:phases (modify-phases %standard-phases
2459 (add-after 'set-paths 'set-sdl-paths
2460 (lambda* (#:key inputs #:allow-other-keys)
2462 (string-append (assoc-ref inputs "sdl-union")
2464 (or (getenv "CPATH") "")))))
2465 (add-after 'patch-source-shebangs 'patch-makefile
2466 (lambda* (#:key outputs #:allow-other-keys)
2467 ;; Replace /usr with package output directory.
2468 (substitute* "Makefile"
2469 (("/usr") (assoc-ref outputs "out")))))
2470 (add-before 'install 'make-install-dirs
2471 (lambda* (#:key outputs #:allow-other-keys)
2472 (let ((prefix (assoc-ref outputs "out")))
2473 ;; Create directories that the makefile assumes exist.
2474 (mkdir-p (string-append prefix "/bin"))
2475 (mkdir-p (string-append prefix "/share/applications"))
2476 (mkdir-p (string-append prefix "/share/pixmaps")))))
2477 ;; No configure script.
2478 (delete 'configure))
2479 #:tests? #f)) ;; No check target.
2480 (native-inputs `(("pkg-config" ,pkg-config)))
2481 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2482 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2483 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2484 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2485 France. The Cathars, who preach about good Christian beliefs, were being
2486 expelled by the Catholic Church out of the Languedoc region in France. One of
2487 them, called Jean Raymond, found an old church in which to hide, not knowing
2488 that beneath its ruins lay buried an ancient evil.")
2489 (license license:gpl3)))
2491 (define-public angband
2498 (uri (string-append "https://rephial.org/downloads/"
2499 (version-major+minor version)
2500 "/angband-" version ".tar.gz"))
2502 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2503 (modules '((guix build utils)))
2505 ;; So, some of the sounds/graphics/tilesets are under different
2506 ;; licenses... some of them even nonfree! This is a console-only
2507 ;; version of this package so we just remove them.
2508 ;; In the future, if someone tries to make a graphical variant of
2509 ;; this package, they can deal with that mess themselves. :)
2511 (for-each (lambda (subdir)
2512 (let ((lib-subdir (string-append "lib/" subdir)))
2513 (delete-file-recursively lib-subdir)))
2514 '("fonts" "icons" "sounds" "tiles"))
2515 (substitute* "lib/Makefile"
2516 ;; And don't try to invoke makefiles in the directories we removed.
2517 (("gamedata customize help screens fonts tiles sounds icons user")
2518 "gamedata customize help screens user"))
2520 (build-system gnu-build-system)
2522 `(#:tests? #f ; no check target
2523 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2525 (modify-phases %standard-phases
2528 (substitute* "acinclude.m4"
2529 (("ncursesw5-config") "ncursesw6-config"))
2530 (invoke "sh" "autogen.sh"))))))
2532 `(("autoconf" ,autoconf)
2533 ("automake" ,automake)))
2534 (inputs `(("ncurses" ,ncurses)))
2535 (home-page "https://rephial.org/")
2536 (synopsis "Dungeon exploration roguelike")
2537 (description "Angband is a Classic dungeon exploration roguelike. Explore
2538 the depths below Angband, seeking riches, fighting monsters, and preparing to
2539 fight Morgoth, the Lord of Darkness.")
2540 (license license:gpl2)))
2542 (define-public pingus
2550 (url "https://gitlab.com/pingus/pingus.git")
2551 (commit (string-append "v" version))))
2552 (file-name (git-file-name name version))
2555 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2556 (patches (search-patches "pingus-boost-headers.patch"
2557 "pingus-sdl-libs-config.patch"))
2558 (modules '((guix build utils)))
2561 (substitute* "src/pingus/screens/demo_session.cpp"
2562 (("#include <iostream>")
2563 ;; std::function moved to <functional> with C++ 11.
2564 ;; Remove this for versions newer than 0.7.6.
2565 "#include <iostream>\n#include <functional>"))
2567 (build-system gnu-build-system)
2568 (native-inputs `(("pkg-config" ,pkg-config)
2569 ("scons-python2" ,scons-python2)))
2570 (inputs `(("sdl" ,sdl)
2571 ("sdl-image" ,sdl-image)
2572 ("sdl-mixer" ,sdl-mixer)
2578 '(#:make-flags (list (string-append "PREFIX=" %output))
2579 #:tests? #f ; no check target
2581 (modify-phases %standard-phases
2582 (delete 'configure)))) ; no configure script
2583 (home-page "https://pingus.seul.org/")
2584 (synopsis "Lemmings clone")
2586 "Pingus is a free Lemmings-like puzzle game in which the player takes
2587 command of a bunch of small animals and has to guide them through levels.
2588 Since the animals walk on their own, the player can only influence them by
2589 giving them commands, like build a bridge, dig a hole, or redirect all animals
2590 in the other direction. Multiple such commands are necessary to reach the
2591 level's exit. The game is presented in a 2D side view.")
2592 ;; Some source files are under bsd-3 and gpl2+ licenses.
2593 (license license:gpl3+)))
2595 (define-public talkfilters
2597 (name "talkfilters")
2602 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
2603 "talkfilters-" version ".tar.gz"))
2605 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
2606 (build-system gnu-build-system)
2607 (home-page "https://www.gnu.org/software/talkfilters/")
2608 (synopsis "Convert English text to humorous dialects")
2609 (description "The GNU Talk Filters are programs that convert English text
2610 into stereotyped or otherwise humorous dialects. The filters are provided as
2611 a C library, so they can easily be integrated into other programs.")
2612 (license license:gpl2+)))
2614 (define-public taisei
2621 (uri (string-append "https://github.com/taisei-project/"
2622 "taisei/releases/download/v" version
2623 "/taisei-v" version ".tar.xz"))
2625 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
2626 (build-system meson-build-system)
2628 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
2630 (list "-Dr_default=gles30"
2633 "-Dshader_transpiler=true")))
2635 `(("pkg-config" ,pkg-config)
2637 ("python-docutils" ,python-docutils)
2638 ("python-pygments" ,python-pygments)))
2640 `(("freetype" ,freetype)
2642 ("libwebp" ,libwebp)
2645 ("openssl" ,openssl)
2646 ("opusfile" ,opusfile)
2648 ("sdl2-mixer" ,sdl2-mixer)
2649 ("shaderc" ,shaderc)
2650 ("spirv-cross" ,spirv-cross)
2652 (home-page "https://taisei-project.org/")
2653 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
2655 "The player controls a character (one of three: Good, Bad, and Dead),
2656 dodges the missiles (lots of it cover the screen, but the character's hitbox
2657 is very small), and shoot at the adversaries that keep appear on the screen.")
2658 (license (list ;;game
2660 ;;resources/00-taisei.pkgdir/bgm/
2665 license:public-domain))))
2667 (define-public cmatrix
2675 (url "https://github.com/abishekvashok/cmatrix")
2676 (commit (string-append "v" version))))
2677 (file-name (git-file-name name version))
2680 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
2681 (build-system gnu-build-system)
2683 `(("autoconf" ,autoconf)
2684 ("automake" ,automake)))
2687 (modify-phases %standard-phases
2689 (lambda* (#:key outputs #:allow-other-keys)
2690 ;; This old ‘configure’ script doesn't support
2691 ;; variables passed as arguments.
2692 (let ((out (assoc-ref outputs "out")))
2693 (setenv "CONFIG_SHELL" (which "bash"))
2694 (invoke "./configure"
2695 (string-append "--prefix=" out))))))))
2696 (inputs `(("ncurses" ,ncurses)))
2697 (home-page "http://www.asty.org/cmatrix")
2698 (synopsis "Simulate the display from \"The Matrix\"")
2699 (description "CMatrix simulates the display from \"The Matrix\" and is
2700 based on the screensaver from the movie's website. It works with terminal
2701 settings up to 132x300 and can scroll lines all at the same rate or
2702 asynchronously and at a user-defined speed.")
2703 (license license:gpl2+)))
2705 (define-public chess
2712 (uri (string-append "mirror://gnu/chess/gnuchess-" version
2716 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
2717 (build-system gnu-build-system)
2718 (home-page "https://www.gnu.org/software/chess/")
2719 (synopsis "Full chess implementation")
2720 (description "GNU Chess is a chess engine. It allows you to compete
2721 against the computer in a game of chess, either through the default terminal
2722 interface or via an external visual interface such as GNU XBoard.")
2723 (properties '((upstream-name . "gnuchess")
2724 (ftp-directory . "/chess")))
2725 (license license:gpl3+)))
2727 (define freedink-engine
2729 (name "freedink-engine")
2733 (uri (string-append "mirror://gnu/freedink/freedink-" version
2735 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
2738 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
2739 (build-system gnu-build-system)
2741 `(#:configure-flags '("--disable-embedded-resources")
2743 (modify-phases %standard-phases
2744 (add-after 'unpack 'disable-graphical-tests
2746 ;; These tests require a graphical interface.
2747 (substitute* "src/Makefile.am"
2748 (("test_gfx_fonts TestIOGfxDisplay") ""))
2750 (add-before 'bootstrap 'autoreconf
2752 ;; automake is out of date in the source
2753 ;; autoreconf updates the automake scripts
2754 (invoke "autoreconf")
2755 ;; Build fails when autom4te.cache exists.
2756 (delete-file-recursively "autom4te.cache")
2758 (native-inputs `(("autoconf" ,autoconf)
2759 ("automake" ,automake)
2760 ("cxxtest" ,cxxtest)
2761 ("gettext" ,gettext-minimal)
2762 ("help2man" ,help2man)
2763 ("pkg-config" ,pkg-config)))
2764 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
2765 sdl2-ttf sdl2-gfx)))
2766 ("fontconfig" ,fontconfig)
2768 (properties '((ftp-directory . "/freedink")
2769 (upstream-name . "freedink")))
2770 (home-page "https://www.gnu.org/software/freedink/")
2771 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
2773 "GNU FreeDink is a free and portable re-implementation of the engine
2774 for the role-playing game Dink Smallwood. It supports not only the original
2775 game data files but it also supports user-produced game mods or \"D-Mods\".
2776 To that extent, it also includes a front-end for managing all of your D-Mods.")
2777 (license license:gpl3+)))
2779 (define freedink-data
2781 (name "freedink-data")
2782 (version "1.08.20190120")
2785 (uri (string-append "mirror://gnu/freedink/freedink-data-"
2789 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
2790 (build-system gnu-build-system)
2793 (modify-phases %standard-phases
2794 (delete 'configure) ; no configure script
2795 (delete 'check)) ; no tests
2796 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
2797 (properties '((ftp-directory . "/freedink")))
2798 (home-page "https://www.gnu.org/software/freedink/")
2799 (synopsis "Game data for GNU Freedink")
2801 "This package contains the game data of GNU Freedink.")
2802 (license license:gpl3+)))
2804 (define-public freedink-dfarc
2806 (name "freedink-dfarc")
2810 (uri (string-append "mirror://gnu/freedink/dfarc-"
2814 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
2815 (build-system gnu-build-system)
2817 `(("intltool" ,intltool)))
2820 ("wxwidgets" ,wxwidgets)))
2821 (properties '((ftp-directory . "/freedink")
2822 (upstream-name . "dfarc")))
2823 (home-page "https://www.gnu.org/software/freedink/")
2824 (synopsis "Front-end for managing and playing Dink Modules")
2825 (description "DFArc makes it easy to play and manage the GNU FreeDink game
2826 and its numerous D-Mods.")
2827 (license license:gpl3+)))
2829 (define-public freedink
2830 ;; This is a wrapper that tells the engine where to find the data.
2831 (package (inherit freedink-engine)
2833 (build-system trivial-build-system)
2836 (use-modules (guix build utils))
2838 (let* ((output (assoc-ref %outputs "out"))
2839 (bin (string-append output "/bin"))
2840 (executable (string-append bin "/freedink")))
2842 (call-with-output-file executable
2844 (format port "#!~a/bin/sh
2845 exec ~a/bin/freedink -refdir ~a/share/dink\n"
2846 (assoc-ref %build-inputs "bash")
2847 (assoc-ref %build-inputs "engine")
2848 (assoc-ref %build-inputs "data"))
2849 (chmod port #o777)))
2851 #:modules ((guix build utils))))
2852 (inputs `(("engine" ,freedink-engine)
2853 ("data" ,freedink-data)
2855 (native-inputs '())))
2857 (define-public xboard
2864 (uri (string-append "mirror://gnu/xboard/xboard-" version
2868 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
2869 (build-system gnu-build-system)
2872 ("librsvg" ,librsvg)))
2874 `(("texinfo" ,texinfo)
2875 ("pkg-config" ,pkg-config)))
2876 (home-page "https://www.gnu.org/software/xboard/")
2877 (synopsis "Graphical user interface for chess programs")
2878 (description "GNU XBoard is a graphical board for all varieties of chess,
2879 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
2880 and Makruk. Several lesser-known variants are also supported. It presents a
2881 fully interactive graphical interface and it can load and save games in the
2882 Portable Game Notation.")
2883 (license license:gpl3+)))
2885 (define-public gtypist
2891 (uri (string-append "mirror://gnu/gtypist/gtypist-"
2895 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
2896 (modules '((guix build utils)))
2898 ;; We do not provide `ncurses.h' within an `ncursesw'
2899 ;; sub-directory, so patch the source accordingly. See
2900 ;; <http://bugs.gnu.org/19018>.
2902 (for-each (lambda (file)
2904 (("ncursesw/ncurses.h")
2906 (find-files "." "configure$|\\.c$"))
2908 (build-system gnu-build-system)
2909 (inputs `(("ncurses" ,ncurses)
2911 (home-page "https://www.gnu.org/software/gtypist/")
2912 (synopsis "Typing tutor")
2914 "GNU Typist is a universal typing tutor. It can be used to learn and
2915 practice touch-typing. Several tutorials are included; in addition to
2916 tutorials for the standard QWERTY layout, there are also tutorials for the
2917 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
2918 are primarily in English, however some in other languages are provided.")
2919 (license license:gpl3+)))
2921 (define-public irrlicht
2928 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
2929 (version-major+minor version)
2930 "/" version "/irrlicht-" version ".zip"))
2933 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
2934 (patches (search-patches "irrlicht-use-system-libs.patch"))
2935 (modules '((guix build utils)))
2938 (for-each delete-file-recursively
2939 '("bin" ; bundled compiled Windows binaries"
2940 "source/Irrlicht/MacOSX"
2941 "source/Irrlicht/bzip2"
2942 "source/Irrlicht/jpeglib"
2943 "source/Irrlicht/libpng"
2944 "source/Irrlicht/lzma"
2945 "source/Irrlicht/zlib"))
2946 (delete-file "source/Irrlicht/glext.h")
2947 (delete-file "source/Irrlicht/glxext.h")
2948 (delete-file "source/Irrlicht/wglext.h")
2950 (build-system gnu-build-system)
2953 (modify-phases %standard-phases
2954 (add-after 'unpack 'chdir-to-source
2956 ;; The actual source is buried a few directories deep.
2957 (chdir "source/Irrlicht/")
2959 (add-after 'chdir-to-source 'fix-build-env
2960 (lambda* (#:key outputs #:allow-other-keys)
2961 (let ((out (assoc-ref outputs "out")))
2962 (substitute* "Makefile"
2963 (("INSTALL_DIR = /usr/local/lib")
2964 (string-append "INSTALL_DIR = " out "/lib"))
2965 ;; Add '-fpermissive' to the CXXFLAGS
2966 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
2967 ;; The Makefile assumes these directories exist.
2968 (mkdir-p (string-append out "/lib"))
2969 (mkdir-p (string-append out "/include")))))
2970 (delete 'configure)) ; no configure script
2971 #:tests? #f ; no check target
2972 #:make-flags '("CC=gcc" "sharedlib")))
2975 ("libjpeg" ,libjpeg-turbo)
2978 ("libxxf86vm" ,libxxf86vm)
2980 (synopsis "3D game engine written in C++")
2982 "The Irrlicht Engine is a high performance realtime 3D engine written in
2983 C++. Features include an OpenGL renderer, extensible materials, scene graph
2984 management, character animation, particle and other special effects, support
2985 for common mesh file formats, and collision detection.")
2986 (home-page "http://irrlicht.sourceforge.net/")
2987 (license license:zlib)))
2990 ;; The latest release on SourceForge relies on an unreleased version of SFML
2991 ;; with a different API, so we take the latest version from the official
2992 ;; repository on Github.
2993 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
2997 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3001 (url "https://github.com/thelaui/M.A.R.S.")
3003 (file-name (git-file-name name version))
3006 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3007 (patches (search-patches "mars-sfml-2.3.patch"
3008 "mars-install.patch"))))
3009 (build-system cmake-build-system)
3011 `(#:tests? #f ; There are no tests
3013 (modify-phases %standard-phases
3014 (add-after 'unpack 'fix-install-path
3016 (substitute* "src/CMakeLists.txt"
3017 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3018 "${CMAKE_INSTALL_PREFIX}/bin"))
3020 (add-after 'unpack 'fix-data-path
3021 (lambda* (#:key outputs #:allow-other-keys)
3022 (substitute* "src/System/settings.cpp"
3023 (("C_dataPath = \"./data/\";")
3024 (string-append "C_dataPath = \""
3025 (assoc-ref outputs "out")
3026 "/share/games/marsshooter/\";")))
3030 ("fribidi" ,fribidi)
3033 (home-page "http://mars-game.sourceforge.net/")
3034 (synopsis "2D space shooter")
3036 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3037 attractive physics. Players can battle each other or computer controlled
3038 enemies in different game modes such as space ball, death match, team death
3039 match, cannon keep, and grave-itation pit.")
3040 (license license:gpl3+))))
3042 (define-public minetest
3049 (url "https://github.com/minetest/minetest")
3051 (file-name (git-file-name name version))
3054 "03ga3j3cg38w4lg4d4qxasmnjdl8n3lbizidrinanvyfdyvznyh6"))
3055 (modules '((guix build utils)))
3058 ;; Delete bundled libraries.
3059 (delete-file-recursively "lib")
3061 (build-system cmake-build-system)
3064 (list "-DRUN_IN_PLACE=0"
3065 "-DENABLE_FREETYPE=1"
3066 "-DENABLE_GETTEXT=1"
3067 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3068 (string-append "-DIRRLICHT_INCLUDE_DIR="
3069 (assoc-ref %build-inputs "irrlicht")
3070 "/include/irrlicht")
3071 (string-append "-DCURL_INCLUDE_DIR="
3072 (assoc-ref %build-inputs "curl")
3074 #:tests? #f)) ;no check target
3075 (native-search-paths
3076 (list (search-path-specification
3077 (variable "MINETEST_SUBGAME_PATH")
3078 (files '("share/minetest/games")))))
3080 `(("pkg-config" ,pkg-config)))
3083 ("freetype" ,freetype)
3084 ("gettext" ,gettext-minimal)
3086 ("irrlicht" ,irrlicht)
3087 ("jsoncpp" ,jsoncpp)
3088 ("libjpeg" ,libjpeg-turbo)
3091 ("libvorbis" ,libvorbis)
3092 ("libxxf86vm" ,libxxf86vm)
3095 ("ncurses" ,ncurses)
3097 ("sqlite" ,sqlite)))
3099 `(("minetest-data" ,minetest-data)))
3100 (synopsis "Infinite-world block sandbox game")
3102 "Minetest is a sandbox construction game. Players can create and destroy
3103 various types of blocks in a three-dimensional open world. This allows
3104 forming structures in every possible creation, on multiplayer servers or as a
3105 single player. Mods and texture packs allow players to personalize the game
3106 in different ways.")
3107 (home-page "https://www.minetest.net/")
3108 (license license:lgpl2.1+)))
3110 (define minetest-data
3112 (name "minetest-data")
3113 (version (package-version minetest))
3117 (url "https://github.com/minetest/minetest_game")
3119 (file-name (git-file-name name version))
3122 "1liciwlh013z5h08ib0psjbwn5wkvlr937ir7kslfk4vly984cjx"))))
3123 (build-system trivial-build-system)
3125 `(("source" ,source)))
3127 `(#:modules ((guix build utils))
3129 (use-modules (guix build utils))
3130 (let ((install-dir (string-append
3132 "/share/minetest/games/minetest_game")))
3133 (mkdir-p install-dir)
3135 (assoc-ref %build-inputs "source")
3138 (synopsis "Main game data for the Minetest game engine")
3140 "Game data for the Minetest infinite-world block sandbox game.")
3141 (home-page "https://www.minetest.net/")
3142 (license license:lgpl2.1+)))
3144 (define-public minetest-mineclone
3146 (name "minetest-mineclone")
3151 (url "https://git.minetest.land/Wuzzy/MineClone2")
3153 (file-name (git-file-name name version))
3156 "0miszzlzplpvaj0j1yii9867ydr42wsaqa9g6grxdrci75p05g00"))))
3157 (build-system copy-build-system)
3160 '(("." "share/minetest/games/mineclone"))))
3161 (synopsis "Minecraft clone based on Minetest engine")
3163 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3164 closely as the engine allows.")
3165 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3166 (license license:gpl3+)))
3175 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3176 "glk/implementations/glkterm-104.tar.gz"))
3179 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3180 (build-system gnu-build-system)
3181 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3183 '(#:tests? #f ; no check target
3185 (modify-phases %standard-phases
3187 (lambda* (#:key outputs #:allow-other-keys)
3188 (let* ((out (assoc-ref outputs "out"))
3189 (inc (string-append out "/include"))
3190 (lib (string-append out "/lib")))
3193 (install-file file inc))
3194 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3195 (install-file "libglkterm.a" lib))
3197 (delete 'configure)))) ; no configure script
3198 (home-page "http://www.eblong.com/zarf/glk/")
3199 (synopsis "Curses Implementation of the Glk API")
3201 "Glk defines a portable API for applications with text UIs. It was
3202 primarily designed for interactive fiction, but it should be suitable for many
3203 interactive text utilities, particularly those based on a command line.
3204 This is an implementation of the Glk library which runs in a terminal window,
3205 using the @code{curses.h} library for screen control.")
3206 (license (license:fsf-free "file://README"))))
3208 (define-public glulxe
3215 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3216 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3219 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3220 (build-system gnu-build-system)
3221 (inputs `(("glk" ,glkterm)))
3223 '(#:tests? #f ; no check target
3225 (let* ((glk (assoc-ref %build-inputs "glk")))
3226 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3227 (string-append "GLKLIBDIR=" glk "/lib")
3228 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3230 (modify-phases %standard-phases
3232 (lambda* (#:key outputs #:allow-other-keys)
3233 (let* ((out (assoc-ref outputs "out"))
3234 (bin (string-append out "/bin")))
3235 (install-file "glulxe" bin))
3237 (delete 'configure)))) ; no configure script
3238 (home-page "https://www.eblong.com/zarf/glulx/")
3239 (synopsis "Interpreter for Glulx VM")
3241 "Glulx is a 32-bit portable virtual machine intended for writing and
3242 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3243 some of the restrictions in the venerable Z-machine format. This is the
3244 reference interpreter, using the Glk API.")
3245 (license license:expat)))
3247 (define-public fifechan
3253 (uri (string-append "https://codeload.github.com/fifengine/"
3254 "fifechan/tar.gz/" version))
3255 (file-name (string-append name "-" version ".tar.gz"))
3258 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3259 (build-system cmake-build-system)
3262 ("sdl2-image" ,sdl2-image)
3265 '(#:tests? #f)) ; No included tests
3266 (home-page "https://fifengine.github.io/fifechan/")
3267 (synopsis "Cross platform GUI library specifically for games")
3269 "Fifechan is a lightweight cross platform GUI library written in C++
3270 specifically designed for games. It has a built in set of extendable GUI
3271 Widgets, and allows users to create more.")
3272 (license license:lgpl2.1+)))
3274 (define-public fifengine
3280 (uri (string-append "https://codeload.github.com/fifengine/"
3281 "fifengine/tar.gz/" version))
3282 (file-name (string-append name "-" version ".tar.gz"))
3283 (patches (search-patches "fifengine-swig-compat.patch"))
3286 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3287 (build-system cmake-build-system)
3289 `(#:tests? #f ; TODO The test running fails to run some tests.
3290 #:modules ((srfi srfi-1)
3291 (guix build cmake-build-system)
3295 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3296 (assoc-ref %build-inputs "openal")
3298 (string-append "-DPYTHON_SITE_PACKAGES="
3299 (assoc-ref %outputs "out")
3301 ,(version-major+minor (package-version python))
3304 (modify-phases %standard-phases
3305 (add-after 'unpack 'patch-run_tests.py
3307 ;; Patch the test runner to exit with a status of 1 if any test
3308 ;; fails, to allow detecting failures.
3309 (substitute* "run_tests.py"
3310 (("ERROR\\. One or more tests failed!'\\)")
3311 "ERROR. One or more tests failed!')
3314 ;; Run tests after installation so that we can make use of the built
3317 (add-after 'install 'check
3318 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3319 (define python-version
3320 (let* ((version (last (string-split
3321 (assoc-ref inputs "python")
3323 (components (string-split version #\.))
3324 (major+minor (take components 2)))
3325 (string-join major+minor ".")))
3328 ;; Set PYTHONPATH so that python finds the installed modules.
3329 (setenv "PYTHONPATH"
3330 (string-append (getenv "PYTHONPATH") ":"
3331 (assoc-ref outputs "out")
3335 ;; The tests require an X server.
3336 (system "Xvfb :1 &")
3337 (setenv "DISPLAY" ":1")
3338 (setenv "XDG_RUNTIME_DIR" "/tmp")
3340 (chdir ,(string-append "../" name "-" version))
3341 (invoke "python3" "run_tests.py" "-a"))
3345 ("sdl2-image" ,sdl2-image)
3346 ("sdl2-ttf" ,sdl2-ttf)
3347 ("tinyxml" ,tinyxml)
3351 ("libvorbis" ,libvorbis)
3353 ("fifechan" ,fifechan)
3355 ("python" ,python)))
3357 `(("python" ,python)
3359 ("xvfb" ,xorg-server)))
3361 `(("python-future" ,python-future)))
3362 (home-page "https://www.fifengine.net/")
3363 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3365 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3366 isometric game engine. Python bindings are included allowing users to create
3367 games using Python as well as C++.")
3368 (license license:lgpl2.1+)))
3370 (define-public fizmo
3376 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3377 "fizmo-" version ".tar.gz"))
3380 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3381 (build-system gnu-build-system)
3384 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3385 (ncurses (assoc-ref %build-inputs "ncurses")))
3386 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3388 `(("pkg-config" ,pkg-config)))
3390 `(("freetype" ,freetype)
3391 ("libjpeg" ,libjpeg-turbo)
3393 ("libsndfile" ,libsndfile)
3394 ("libxml2" ,libxml2)
3395 ("ncurses" ,ncurses)
3397 (home-page "https://fizmo.spellbreaker.org/")
3398 (synopsis "Z-machine interpreter")
3400 "Fizmo is a console-based Z-machine interpreter. It is used to play
3401 interactive fiction, also known as text adventures, which were implemented
3402 either by Infocom or created using the Inform compiler.")
3403 (license license:bsd-3)))
3405 (define-public gnugo
3411 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3415 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3416 (build-system gnu-build-system)
3417 (inputs `(("readline" ,readline)))
3418 (synopsis "Play the game of Go")
3420 "GNU Go is a program that plays the game of Go, in which players
3421 place stones on a grid to form territory or capture other stones. While
3422 it can be played directly from the terminal, rendered in ASCII characters,
3423 it is also possible to play GNU Go with 3rd party graphical interfaces or
3424 even in Emacs. It supports the standard game storage format (SGF, Smart
3425 Game Format) and inter-process communication format (GMP, Go Modem
3427 (home-page "https://www.gnu.org/software/gnugo/")
3428 (license license:gpl3+)))
3430 (define-public extremetuxracer
3432 (name "extremetuxracer")
3437 "mirror://sourceforge/extremetuxracer/releases/"
3438 version "/etr-" version ".tar.xz"))
3441 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3442 (build-system gnu-build-system)
3444 `(("pkg-config" ,pkg-config)))
3448 (synopsis "High-speed arctic racing game based on Tux Racer")
3449 ;; Snarfed straight from Debian.
3450 (description "Extreme Tux Racer, or etracer as it is called for short, is
3451 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3452 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3453 avoiding the trees and rocks that will slow you down.
3455 Collect herrings and other goodies while sliding down the hill, but avoid fish
3458 This game is based on the GPL version of the famous game TuxRacer.")
3459 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3460 (license license:gpl2+)))
3462 (define-public supertuxkart
3464 (name "supertuxkart")
3469 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3470 version "/supertuxkart-" version "-src.tar.xz"))
3473 "1s0ai07g3sswck9mr0142989mrgzzq1njc1qxk5als5b245jpc79"))
3474 (modules '((guix build utils)))
3476 ;; Delete bundled library sources
3478 ;; Supertuxkart uses modified versions of the Irrlicht engine
3479 ;; and the bullet library. The developers gave an explanation
3480 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3481 ;; FIXME: try to unbundle angelscript and libraqm
3482 (for-each delete-file-recursively
3490 (build-system cmake-build-system)
3492 `(#:tests? #f ; no check target
3494 (list "-DUSE_WIIUSE=0"
3495 ;; Do not use the bundled zlib, glew and enet.
3496 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
3497 "-DUSE_SYSTEM_GLEW=TRUE"
3498 "-DUSE_SYSTEM_ENET=TRUE"
3499 ;; In order to use the system ENet library, IPv6 support (added in
3500 ;; SuperTuxKart version 1.1) must be disabled.
3502 ;; FIXME: needs libopenglrecorder
3503 "-DBUILD_RECORDER=0"
3504 ;; Irrlicht returns an integer instead of a boolean
3505 "-DCMAKE_C_FLAGS=-fpermissive")))
3510 ("libvorbis" ,libvorbis)
3511 ("freetype" ,freetype)
3512 ("fribidi" ,fribidi)
3513 ("harfbuzz" ,harfbuzz)
3516 ("libxrandr" ,libxrandr)
3518 ;; The following input is needed to build the bundled and modified
3519 ;; version of irrlicht.
3520 ("libjpeg" ,libjpeg-turbo)
3521 ("openssl" ,openssl)
3524 `(("pkg-config" ,pkg-config)))
3525 (home-page "https://supertuxkart.net/Main_Page")
3526 (synopsis "3D kart racing game")
3527 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3528 having fun over realism. You can play with up to 4 friends on one PC, racing
3529 against each other or just trying to beat the computer; single-player mode is
3531 (license license:gpl3+)))
3533 (define-public unknown-horizons
3535 (name "unknown-horizons")
3539 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3540 "unknown-horizons/tar.gz/" version))
3541 (file-name (string-append name "-" version ".tar.gz"))
3544 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
3545 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
3546 (build-system python-build-system)
3549 (modify-phases %standard-phases
3550 (add-before 'build 'set-HOME
3552 (setenv "HOME" "/tmp")
3554 (add-after 'build 'build-extra
3556 (invoke "python3" "./setup.py" "build_i18n")
3557 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3559 (add-after 'install 'patch
3560 (lambda* (#:key outputs #:allow-other-keys)
3561 (let ((out (assoc-ref outputs "out")))
3562 (substitute* (string-append out "/bin/unknown-horizons")
3563 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3564 (string-append "os.chdir(\""
3565 (assoc-ref outputs "out")
3566 "/share/unknown-horizons\")"))))
3568 (add-before 'check 'fix-tests-with-pytest>=4
3570 (substitute* "tests/conftest.py"
3571 (("pytest_namespace")
3574 "get_closest_marker"))
3576 ;; TODO: Run GUI tests as well
3579 (substitute* "horizons/constants.py"
3580 (("IS_DEV_VERSION = False")
3581 "IS_DEV_VERSION = True"))
3582 (invoke "pytest" "tests")
3583 (substitute* "horizons/constants.py"
3584 (("IS_DEV_VERSION = True")
3585 "IS_DEV_VERSION = False"))
3588 `(("fifengine" ,fifengine)
3589 ("python:tk" ,python "tk")
3590 ("python-pillow" ,python-pillow)
3591 ("python-pyyaml" ,python-pyyaml)))
3593 `(("intltool" ,intltool)
3594 ("python-distro" ,python-distro)
3596 ;; Required for tests
3597 ("python-greenlet" ,python-greenlet)
3598 ("python-polib" ,python-polib)
3599 ("python-pytest" ,python-pytest)
3600 ("python-pytest-mock" ,python-pytest-mock)))
3601 (home-page "http://unknown-horizons.org/")
3602 (synopsis "Isometric realtime strategy, economy and city building simulation")
3604 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
3605 on economy and city building. Expand your small settlement to a strong and
3606 wealthy colony, collect taxes and supply your inhabitants with valuable
3607 goods. Increase your power with a well balanced economy and with strategic
3608 trade and diplomacy.")
3610 license:gpl2+ ; Covers code
3611 license:expat ; tests/dummy.py, ext/polib.py
3612 license:cc-by-sa3.0 ; Covers some media content
3613 license:cc-by3.0 ; Covers some media content
3614 license:bsd-3)))) ; horizons/ext/speaklater.py
3616 (define-public gnujump
3622 (uri (string-append "mirror://gnu/gnujump/gnujump-"
3626 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
3627 (build-system gnu-build-system)
3630 (modify-phases %standard-phases
3632 'configure 'link-libm
3633 (lambda _ (setenv "LIBS" "-lm")))
3634 (add-after 'install 'create-desktop-entry
3635 (lambda* (#:key outputs #:allow-other-keys)
3636 (let* ((out (assoc-ref outputs "out"))
3637 (apps (string-append out "/share/applications")))
3639 (with-output-to-file
3640 (string-append apps "/gnujump.desktop")
3645 Comment=Jump up the tower to survive~@
3646 Exec=~a/bin/gnujump~@
3649 Categories=Game;ArcadeGame~%"
3655 ("sdl-image" ,sdl-image)
3656 ("sdl-mixer" ,sdl-mixer)))
3657 (home-page "http://gnujump.es.gnu.org/")
3659 "Game of jumping to the next floor, trying not to fall")
3661 "GNUjump is a simple, yet addictive game in which you must jump from
3662 platform to platform to avoid falling, while the platforms drop at faster rates
3663 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
3664 falling, themeable graphics and sounds, and replays.")
3665 (license license:gpl3+)))
3667 (define-public wesnoth
3673 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
3674 (version-major+minor version)
3675 "/wesnoth-" version "/"
3676 "wesnoth-" version ".tar.bz2"))
3679 "1pmqj4rah0256qi9w394ksb9apid723i5f5agkg6x1lahb1ac91q"))))
3680 (build-system cmake-build-system)
3682 `(#:tests? #f)) ;no check target
3684 `(("gettext" ,gettext-minimal)
3685 ("pkg-config" ,pkg-config)))
3689 ("fribidi" ,fribidi)
3690 ("libvorbis" ,libvorbis)
3691 ("openssl" ,openssl)
3693 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
3694 (home-page "https://www.wesnoth.org/")
3695 (synopsis "Turn-based strategy game")
3697 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
3698 with several single player campaigns, and multiplayer games (both networked and
3701 Battle for control on a range of maps, using variety of units which have
3702 advantages and disadvantages against different types of attacks. Units gain
3703 experience and advance levels, and are carried over from one scenario to the
3705 (license license:gpl2+)))
3707 (define-public wesnoth-server
3710 (name "wesnoth-server")
3714 ("openssl" ,openssl)
3717 `(#:configure-flags '("-DENABLE_GAME=OFF")
3718 ,@(package-arguments wesnoth)))
3719 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
3720 (description "This package contains a dedicated server for @emph{The
3721 Battle for Wesnoth}.")))
3723 (define-public gamine
3729 (uri (string-append "mirror://sourceforge/gamine-game/"
3730 "gamine-" version ".tar.gz"))
3733 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
3734 (build-system gnu-build-system)
3736 `(("pkg-config" ,pkg-config)
3737 ("intltool" ,intltool)))
3739 `(("gstreamer" ,gstreamer)
3740 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
3741 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
3746 (let ((out (assoc-ref %outputs "out")))
3747 (list (string-append "PREFIX=" out)
3748 (string-append "SYSCONFDIR=" out "/etc")))
3750 (modify-phases %standard-phases
3753 'install 'wrap-gamine
3754 (lambda* (#:key outputs #:allow-other-keys)
3755 (let ((out (assoc-ref outputs "out"))
3756 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
3757 (wrap-program (string-append out "/bin/gamine")
3758 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
3760 (home-page "http://gamine-game.sourceforge.net/")
3761 (synopsis "Mouse and keyboard discovery for children")
3763 "Gamine is a game designed for young children who are learning to use the
3764 mouse and keyboard. The child uses the mouse to draw colored dots and lines
3765 on the screen and keyboard to display letters.")
3766 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
3767 (license license:gpl3)))
3769 (define-public manaplus
3772 (version "1.9.3.23")
3776 "https://repo.manaplus.org/manaplus/download/"
3777 version "/manaplus-" version ".tar.xz"))
3780 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
3781 (build-system gnu-build-system)
3784 (list (string-append "CPPFLAGS=-I"
3785 (assoc-ref %build-inputs "sdl-union")
3788 `(("pkg-config" ,pkg-config)))
3792 ("libxml2" ,libxml2)
3794 ("sdl-union" ,(sdl-union))))
3795 (home-page "https://manaplus.org")
3796 (synopsis "Client for 'The Mana World' and similar games")
3798 "ManaPlus is a 2D MMORPG client for game servers. It is the only
3799 fully supported client for @uref{http://www.themanaworld.org, The mana
3800 world}, @uref{http://evolonline.org, Evol Online} and
3801 @uref{http://landoffire.org, Land of fire}.")
3802 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
3803 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
3804 ;; The rest is under GPL2+.
3805 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
3807 (define openttd-engine
3809 (name "openttd-engine")
3812 (origin (method url-fetch)
3813 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
3814 version "/openttd-" version "-source.tar.xz"))
3817 "0lz2y2rjc23k0d97y65cqhy2splw9cmrbvhgz0iqps8xkan1m8hv"))))
3818 (build-system gnu-build-system)
3820 `(#:tests? #f ; no "check" target
3822 (modify-phases %standard-phases
3823 ;; The build process fails if the configure script is passed the
3824 ;; option "--enable-fast-install".
3826 (lambda* (#:key inputs outputs (configure-flags '())
3828 (let ((out (assoc-ref outputs "out"))
3829 (lzo (assoc-ref inputs "lzo")))
3830 (apply invoke "./configure"
3831 (string-append "--prefix=" out)
3832 ;; Provide the "lzo" path.
3833 (string-append "--with-liblzo2="
3834 lzo "/lib/liblzo2.a")
3835 ;; Put the binary in 'bin' instead of 'games'.
3837 configure-flags)))))))
3838 (native-inputs `(("pkg-config" ,pkg-config)))
3840 `(("allegro" ,allegro)
3841 ("fontconfig" ,fontconfig)
3842 ("freetype" ,freetype)
3849 (synopsis "Transportation economics simulator game")
3850 (description "OpenTTD is a game in which you transport goods and
3851 passengers by land, water and air. It is a re-implementation of Transport
3852 Tycoon Deluxe with many enhancements including multiplayer mode,
3853 internationalization support, conditional orders and the ability to clone,
3854 autoreplace and autoupdate vehicles. This package only includes the game
3855 engine. When you start it you will be prompted to download a graphics set.")
3856 (home-page "https://www.openttd.org/")
3857 ;; This package is GPLv2, except for a few files located in
3858 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
3859 ;; licenses. In addition, this software contains an in-game downloader
3860 ;; from which the user may find non-functional data licensed under
3862 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
3864 (define openttd-opengfx
3866 (name "openttd-opengfx")
3871 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
3872 version "/opengfx-" version "-source.tar.xz"))
3875 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
3876 (build-system gnu-build-system)
3878 '(#:make-flags (list "CC=gcc"
3879 (string-append "INSTALL_DIR="
3880 (assoc-ref %outputs "out")
3881 "/share/games/openttd/baseset/opengfx"))
3883 (modify-phases %standard-phases
3886 ;; Make sure HOME is writable for GIMP.
3887 (setenv "HOME" (getcwd))
3889 ;; Redirect stdout, not stderr, to /dev/null. This prevents
3890 ;; dos2unix from receiving its version information as a flag.
3891 (substitute* "Makefile"
3892 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
3893 "$(UNIX2DOS) -q --version 1>/dev/null")))))
3894 ;; The check phase for this package only checks the md5sums of the built
3895 ;; GRF files against the md5sums of the release versions. Because we use
3896 ;; different software versions than upstream does, some of the md5sums
3897 ;; are different. However, the package is still reproducible, it's safe
3898 ;; to disable this test.
3900 #:parallel-build? #f))
3901 (native-inputs `(("dos2unix" ,dos2unix)
3903 ("grfcodec" ,grfcodec)
3906 ("python" ,python-2)))
3907 (home-page "http://dev.openttdcoop.org/projects/opengfx")
3908 (synopsis "Base graphics set for OpenTTD")
3910 "The OpenGFX projects is an implementation of the OpenTTD base grahics
3911 set that aims to ensure the best possible out-of-the-box experience.
3913 OpenGFX provides you with...
3915 @item All graphics you need to enjoy OpenTTD.
3916 @item Uniquely drawn rail vehicles for every climate.
3917 @item Completely snow-aware rivers.
3918 @item Different river and sea water.
3919 @item Snow-aware buoys.
3921 (license license:gpl2)))
3923 (define openttd-opensfx
3925 (name "openttd-opensfx")
3931 "https://binaries.openttd.org/extra/opensfx/"
3932 version "/opensfx-" version "-source.tar.gz"))
3935 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
3936 (build-system gnu-build-system)
3938 `(("catcodec" ,catcodec)
3939 ("python" ,python-2)))
3942 (list (string-append "INSTALL_DIR=" %output
3943 "/share/games/openttd/baseset/opensfx"))
3945 (modify-phases %standard-phases
3946 (add-after 'unpack 'make-reproducible
3948 ;; Remove the time dependency of the installed tarball by setting
3949 ;; the modification times if its members to 0.
3950 (substitute* "scripts/Makefile.def"
3951 (("-cf") " --mtime=@0 -cf"))
3953 (delete 'configure))))
3954 (home-page "http://dev.openttdcoop.org/projects/opensfx")
3955 (synopsis "Base sounds for OpenTTD")
3956 (description "OpenSFX is a set of free base sounds for OpenTTD which make
3957 it possible to play OpenTTD without requiring the proprietary sound files from
3958 the original Transport Tycoon Deluxe.")
3959 (license license:cc-sampling-plus-1.0)))
3961 (define openttd-openmsx
3963 (name "openttd-openmsx")
3969 "https://binaries.openttd.org/extra/openmsx/"
3970 version "/openmsx-" version "-source.tar.gz"))
3973 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
3974 (build-system gnu-build-system)
3976 `(("python" ,python-2)))
3979 (list (string-append "INSTALL_DIR=" %output
3980 "/share/games/openttd/baseset"))
3982 (modify-phases %standard-phases
3984 (add-after 'install 'post-install
3985 ;; Rename openmsx-version to openmsx
3986 (lambda* (#:key outputs #:allow-other-keys)
3987 (let ((install-directory (string-append (assoc-ref outputs "out")
3988 "/share/games/openttd/baseset")))
3989 (rename-file (string-append install-directory "/openmsx-" ,version)
3990 (string-append install-directory "/openmsx"))
3992 (home-page "http://dev.openttdcoop.org/projects/openmsx")
3993 (synopsis "Music set for OpenTTD")
3994 (description "OpenMSX is a music set for OpenTTD which makes it possible
3995 to play OpenTTD without requiring the proprietary music from the original
3996 Transport Tycoon Deluxe.")
3997 (license license:gpl2)))
3999 (define-public openttd
4001 (inherit openttd-engine)
4005 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4007 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4009 `(modify-phases ,phases
4010 (add-after 'install 'install-data
4011 (lambda* (#:key inputs outputs #:allow-other-keys)
4014 (copy-recursively (assoc-ref inputs input)
4015 (assoc-ref outputs "out")))
4016 (list "opengfx" "openmsx" "opensfx"))
4019 `(("timidity++" ,timidity++)
4020 ,@(package-inputs openttd-engine)))
4022 `(("opengfx" ,openttd-opengfx)
4023 ("openmsx" ,openttd-openmsx)
4024 ("opensfx" ,openttd-opensfx)
4025 ,@(package-native-inputs openttd-engine)))))
4027 (define openrct2-title-sequences
4029 (name "openrct2-title-sequences")
4034 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4035 version "/title-sequence-v" version ".zip"))
4036 (file-name (string-append name "-" version ".zip"))
4039 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4040 (build-system trivial-build-system)
4043 ("coreutils" ,coreutils)
4046 `(#:modules ((guix build utils))
4049 (use-modules (guix build utils))
4050 (let* ((out (assoc-ref %outputs "out"))
4051 (openrct2-title-sequences (string-append out
4052 "/share/openrct2/title-sequences"))
4053 (source (assoc-ref %build-inputs "source"))
4054 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4055 (copy-file source (string-append ,name "-" ,version ".zip"))
4056 (invoke unzip (string-append ,name "-" ,version ".zip"))
4057 (delete-file (string-append ,name "-" ,version ".zip"))
4058 (mkdir-p openrct2-title-sequences)
4059 (copy-recursively "."
4060 openrct2-title-sequences)
4062 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4063 (synopsis "Title sequences for OpenRCT2")
4065 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4066 (license license:gpl3+)))
4068 (define openrct2-objects
4070 (name "openrct2-objects")
4075 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4076 version "/objects.zip"))
4077 (file-name (string-append name "-" version ".zip"))
4079 (base32 "02apb8h553m7d6jvysgb1zahvxc1yzyygfca2iclb21b3fhpsas4"))))
4080 (build-system trivial-build-system)
4083 ("coreutils" ,coreutils)
4086 `(#:modules ((guix build utils))
4089 (use-modules (guix build utils))
4090 (let* ((out (assoc-ref %outputs "out"))
4091 (openrct2-objects (string-append out
4092 "/share/openrct2/objects"))
4093 (source (assoc-ref %build-inputs "source"))
4094 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4095 (copy-file source (string-append ,name "-" ,version ".zip"))
4096 (invoke unzip (string-append ,name "-" ,version ".zip"))
4097 (delete-file (string-append ,name "-" ,version ".zip"))
4098 (mkdir-p openrct2-objects)
4099 (copy-recursively "."
4102 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4103 (synopsis "Objects for OpenRCT2")
4105 "openrct2-objects is a set of objects for OpenRCT2.")
4106 (license license:gpl3+)))
4108 (define-public openrct2
4116 (url "https://github.com/OpenRCT2/OpenRCT2")
4117 (commit (string-append "v" version))))
4118 (file-name (git-file-name name version))
4120 (base32 "1vikbkg3wh5ngzdfilb6irbh6nqinf138qpdz8wz9izlvl8s36k4"))))
4121 (build-system cmake-build-system)
4123 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4124 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4125 #:tests? #f ; tests require network access
4127 (modify-phases %standard-phases
4128 (add-after 'unpack 'fix-usr-share-paths&add-data
4129 (lambda* (#:key inputs outputs #:allow-other-keys)
4130 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4131 (objects (assoc-ref inputs "openrct2-objects")))
4132 ;; Fix some references to /usr/share.
4133 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4135 (string-append (assoc-ref %outputs "out") "/share")))
4137 (string-append titles "/share/openrct2/title-sequences")
4140 (string-append objects "/share/openrct2/objects")
4142 (add-before 'configure 'get-rid-of-errors
4144 ;; Don't treat warnings as errors.
4145 (substitute* "CMakeLists.txt"
4148 (inputs `(("curl" ,curl)
4149 ("fontconfig" ,fontconfig)
4150 ("freetype" ,freetype)
4152 ("jansson" ,jansson)
4156 ("openrct2-objects" ,openrct2-objects)
4157 ("openrct2-title-sequences" ,openrct2-title-sequences)
4158 ("openssl" ,openssl)
4160 ("speexdsp" ,speexdsp)
4163 `(("pkg-config" ,pkg-config)))
4164 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4165 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4166 (description "OpenRCT2 is a free software re-implementation of
4167 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4168 maintaining an amusement park containing attractions, shops and facilities.
4170 Note that this package does @emph{not} provide the game assets (sounds,
4172 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4173 ;; regarding assets.
4174 (license license:gpl3+)))
4176 (define-public pinball
4181 (origin (method url-fetch)
4182 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4183 "pinball-" version "/"
4184 "pinball-" version ".tar.gz"))
4187 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4188 (patches (search-patches "pinball-const-fix.patch"
4189 "pinball-cstddef.patch"
4190 "pinball-missing-separators.patch"
4191 "pinball-src-deps.patch"
4192 "pinball-system-ltdl.patch"))))
4193 (build-system gnu-build-system)
4198 ("sdl-image" ,sdl-image)
4199 ("sdl-mixer" ,sdl-mixer)))
4202 (list (string-append "CPPFLAGS=-I"
4203 (assoc-ref %build-inputs "sdl-image")
4205 (assoc-ref %build-inputs "sdl-mixer")
4207 (home-page "http://pinball.sourceforge.net")
4208 (synopsis "Pinball simulator")
4209 (description "The Emilia Pinball Project is a pinball simulator. There
4210 are only two levels to play with, but they are very addictive.")
4211 (license license:gpl2)))
4213 (define-public pioneers
4219 (uri (string-append "https://downloads.sourceforge.net/pio/"
4220 "pioneers-" version ".tar.gz"))
4223 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4224 (build-system gnu-build-system)
4225 (inputs `(("avahi" ,avahi)
4227 ("librsvg" ,librsvg)))
4228 (native-inputs `(("intltool" ,intltool)
4229 ("itstool" ,itstool)
4230 ("libxml2" ,libxml2)
4231 ("pkg-config" ,pkg-config)))
4232 (synopsis "Board game inspired by The Settlers of Catan")
4233 (description "Pioneers is an emulation of the board game The Settlers of
4234 Catan. It can be played on a local network, on the internet, and with AI
4236 (home-page "http://pio.sourceforge.net/")
4237 (license license:gpl2+)))
4239 (define-public einstein
4245 (uri (string-append "mirror://debian/pool/main/e/"
4246 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4249 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4250 (patches (search-patches "einstein-build.patch"))))
4251 (build-system gnu-build-system)
4253 `(("freetype" ,freetype)
4254 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4257 `(("font-dejavu" ,font-dejavu)))
4259 `(#:tests? #f ; no check target
4261 (modify-phases %standard-phases
4263 (lambda* (#:key outputs inputs #:allow-other-keys)
4264 (let ((out (assoc-ref outputs "out"))
4265 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4266 "/share/fonts/truetype/DejaVuSans.ttf")))
4267 (substitute* "Makefile"
4268 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4269 ;; The patch above registers a free font for use by the binary,
4270 ;; but the font is copied during the compile phase into a
4271 ;; resources file, so we need to make the ttf file available.
4272 (symlink dejavu "res/DejaVuSans.ttf")
4274 (synopsis "Logic puzzle game")
4275 (description "The goal of this logic game is to open all cards in a 6x6
4276 grid, using a number of hints as to their relative position. The game idea
4277 is attributed to Albert Einstein.")
4278 ;; The original home page has disappeared.
4279 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4280 "http://games.flowix.com/en/index.html"))
4281 ;; License according to
4282 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4283 ;; The source code is a DFSG-sanitized tarball and does not contain any
4284 ;; license information.
4285 (license license:gpl3+)))
4287 (define-public powwow
4294 "https://www.hoopajoo.net/static/projects/powwow-"
4298 "10rjl63hmf62qslyhzqrbw3i2zf09dgxv65avhj0iiz0m4pbc9wy"))))
4300 `(("ncurses" ,ncurses)))
4301 (build-system gnu-build-system)
4302 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4303 (synopsis "MUD and telnet client")
4305 "POWWOW is a client software which can be used for telnet as well as for
4306 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4307 the chat server psyced with the specific config located at
4308 http://lavachat.symlynx.com/unix/")
4309 (license license:gpl2+)))
4311 (define-public red-eclipse
4312 (let ((release "2.0.0")
4315 (name "red-eclipse")
4316 (version (if (zero? revision)
4318 (string-append release "-"
4319 (number->string revision))))
4324 (url "https://github.com/redeclipse/base")
4325 (commit (string-append "v" release))
4326 (recursive? #t))) ; for game data
4327 (file-name (git-file-name name version))
4329 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4330 (modules '((guix build utils)))
4332 ;; Remove proprietary libraries and other pre-compiled binaries.
4334 (delete-file-recursively "bin")
4336 (build-system gnu-build-system)
4338 `(#:tests? #f ; no check target
4339 #:make-flags (list "CC=gcc" "-Csrc"
4340 (string-append "INSTDIR="
4341 (assoc-ref %outputs "out") "/bin")
4342 (string-append "prefix="
4343 (assoc-ref %outputs "out")))
4345 (modify-phases %standard-phases
4346 (add-after 'unpack 'add-store-data-package-path-as-default
4347 (lambda* (#:key outputs #:allow-other-keys)
4348 (substitute* "src/engine/server.cpp"
4349 (("data = \"data\"")
4350 (string-append "data = \""
4351 (assoc-ref outputs "out")
4352 "/share/redeclipse/data\"")))
4354 (delete 'configure) ; no configure script
4355 (add-after 'set-paths 'set-sdl-paths
4356 (lambda* (#:key inputs #:allow-other-keys)
4358 (string-append (assoc-ref inputs "sdl-union")
4360 (or (getenv "CPATH") "")))
4362 (add-after 'install 'copy-data
4363 (lambda* (#:key outputs #:allow-other-keys)
4364 (let ((out (assoc-ref outputs "out")))
4365 (copy-recursively "config"
4366 (string-append out "/config"))
4367 (copy-file "doc/examples/servinit.cfg"
4368 (string-append out "/config/servinit.cfg"))
4369 (copy-recursively "data"
4370 (string-append out "/share/redeclipse/data"))
4371 (mkdir-p (string-append out "/lib/redeclipse"))
4372 (symlink (string-append out "/share/redeclipse/data")
4373 (string-append out "/lib/redeclipse/data")))
4375 (add-after 'copy-data 'wrap-program
4376 (lambda* (#:key inputs outputs #:allow-other-keys)
4377 (let* ((out (assoc-ref outputs "out"))
4378 (bin (string-append out "/bin")))
4379 (with-directory-excursion bin
4380 (rename-file "redeclipse_linux"
4381 ".redeclipse_linux-real")
4382 (rename-file "redeclipse_server_linux"
4383 ".redeclipse_server_linux-real")
4384 (call-with-output-file "redeclipse_linux"
4386 (format port "#!~a/bin/sh
4387 # Run the thing from its home, otherwise it just bails out.
4389 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4390 (assoc-ref inputs "bash") ;implicit input
4392 (string-append bin))))
4393 (call-with-output-file "redeclipse_server_linux"
4395 (format port "#!~a/bin/sh
4396 # Run the thing from its home, otherwise it just bails out.
4398 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4399 (assoc-ref inputs "bash") ;implicit input
4401 (string-append bin))))
4402 (chmod "redeclipse_linux" #o555)
4403 (chmod "redeclipse_server_linux" #o555)))
4406 `(("pkg-config" ,pkg-config)))
4409 ("freetype" ,freetype)
4411 ("sdl-union" ,(sdl-union (list sdl2
4414 (home-page "https://redeclipse.net/")
4415 (synopsis "Arena shooter derived from the Cube 2 engine")
4417 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4418 Offering an innovative parkour system and distinct but all potent weapons,
4419 Red Eclipse provides fast paced and accessible gameplay.")
4420 ;; The engine is under Zlib; data files are covered by the other
4421 ;; licenses. More details at file:///doc/all-licenses.txt.
4422 (license (list license:expat
4428 license:public-domain
4429 license:silofl1.1)))))
4431 (define-public grue-hunter
4433 (name "grue-hunter")
4437 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4440 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4441 (build-system trivial-build-system) ; no Makefile.PL
4442 (arguments `(#:modules ((guix build utils))
4445 (use-modules (guix build utils))
4446 (use-modules (srfi srfi-1))
4448 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4449 (perl (string-append (assoc-ref %build-inputs
4452 (gzip (string-append (assoc-ref %build-inputs
4455 (tar (string-append (assoc-ref %build-inputs
4458 (out (assoc-ref %outputs "out"))
4459 (bin (string-append out "/bin"))
4460 (doc (string-append out
4461 "/share/doc/grue-hunter")))
4462 (copy-file tarball "grue-hunter.tar.gz")
4463 (invoke gzip "-d" "grue-hunter.tar.gz")
4464 (invoke tar "xvf" "grue-hunter.tar")
4467 (copy-file "grue-hunter/gh.pl"
4468 (string-append bin "/grue-hunter"))
4469 (patch-shebang (string-append bin "/grue-hunter")
4472 (install-file "grue-hunter/AGPLv3.txt" doc)
4475 (inputs `(("perl" ,perl)
4478 ("tarball" ,source)))
4479 (home-page "https://jxself.org/grue-hunter.shtml")
4480 (synopsis "Text adventure game")
4482 "Grue Hunter is a text adventure game written in Perl. You must make
4483 your way through an underground cave system in search of the Grue. Can you
4484 capture it and get out alive?")
4485 (license license:agpl3+)))
4487 (define-public lierolibre
4493 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4494 version "/+download/lierolibre-"
4498 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4500 (search-patches "lierolibre-check-unaligned-access.patch"
4501 "lierolibre-try-building-other-arch.patch"
4502 "lierolibre-remove-arch-warning.patch"
4503 "lierolibre-newer-libconfig.patch"
4504 "lierolibre-is-free-software.patch"))
4505 (modules '((guix build utils)))
4508 ;; Delete pre-compiled files.
4509 (delete-file "data/LIERO.CHR")
4510 (delete-file "data/LIERO.SND")
4512 (build-system gnu-build-system)
4514 `(("imagemagick" ,imagemagick)
4515 ("pkg-config" ,pkg-config)
4516 ("util-linux" ,util-linux)
4520 ("libconfig" ,libconfig)
4521 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4523 (home-page "https://gitlab.com/lierolibre/lierolibre")
4524 (synopsis "Old-school earthworm action game")
4526 "lierolibre is an earthworm action game where you fight another player
4527 (or the computer) underground using a wide array of weapons.
4531 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4532 and Game of Tag, plus AI-players without true intelligence!
4533 @item Dat nostalgia.
4534 @item Extensions via a hidden F1 menu:
4537 @item Game controller support
4538 @item Powerlevel palettes
4540 @item Ability to write game variables to plain text files.
4541 @item Ability to load game variables from both EXE and plain text files.
4542 @item Scripts to extract and repack graphics, sounds and levels.
4545 To switch between different window sizes, use F6, F7 and F8, to switch to
4546 fullscreen, use F5 or Alt+Enter.")
4547 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4548 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4550 (define-public tennix
4558 (url "https://repo.or.cz/tennix.git")
4559 (commit (string-append "tennix-" version))))
4560 (file-name (git-file-name name version))
4562 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4563 ;; Remove non-free images.
4564 (modules '((guix build utils)))
4567 (for-each delete-file
4568 '("data/loc_training_camp.png"
4569 "data/loc_austrian_open.png"
4570 "data/loc_olympic_green_tennis.png"))
4572 (build-system gnu-build-system)
4574 `(#:tests? #f ;no test
4576 (modify-phases %standard-phases
4577 (add-after 'unpack 'fix-include
4579 (substitute* '("src/graphics.h" "src/sound.h")
4580 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
4581 (string-append "#include \"SDL/" header "\"")))
4582 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
4583 (("#include <SDL.h>") "#include <SDL/SDL.h>")
4584 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
4586 (add-after 'unpack 'locate-install
4587 ;; Build process cannot expand "$(INSTALL)" in Makefile.
4589 (substitute* "makefile"
4590 (("^CONFIGURE_OUTPUT :=.*" all)
4591 (string-append "INSTALL := install -c\n" all)))
4594 ;; The "configure" script is picky about the arguments it
4595 ;; gets. Call it ourselves.
4597 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
4599 `(("which" ,which)))
4601 `(("python" ,python-wrapper)
4602 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
4603 (home-page "http://icculus.org/tennix/")
4604 (synopsis "Play tennis against the computer or a friend")
4605 (description "Tennix is a 2D tennis game. You can play against the
4606 computer or against another player using the keyboard. The game runs
4607 in-window at 640x480 resolution or fullscreen.")
4608 ;; Project is licensed under GPL2+ terms. It includes images
4609 ;; released under Public Domain terms, and SDL_rotozoom, released
4610 ;; under LGPL2.1 terms.
4611 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
4613 (define-public warzone2100
4615 (name "warzone2100")
4620 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
4622 "/warzone2100_src.tar.xz"))
4624 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
4625 (modules '((guix build utils)))
4628 (with-directory-excursion "3rdparty"
4630 delete-file-recursively
4635 (build-system cmake-build-system)
4637 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
4638 "-DENABLE_DISCORD=off")
4639 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
4641 (modify-phases %standard-phases
4642 (add-after 'unpack 'fix-utfcpp-include
4644 (substitute* "lib/framework/wzstring.cpp"
4645 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
4647 (add-after 'unpack 'link-tests-with-qt
4649 (substitute* "tests/Makefile.am"
4650 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
4651 (string-append prefix "$(QT5_LIBS) ")))
4653 (add-after 'unpack 'fix-ivis-linktest
4655 (substitute* "tests/ivis_linktest.cpp"
4656 (("iV_DrawTextRotated.*;")
4657 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
4658 "100, 100, 0.0f, font_regular);")))
4660 (native-inputs `(("asciidoc" ,asciidoc)
4661 ("asciidoctor" ,ruby-asciidoctor)
4662 ("gettext" ,gettext-minimal)
4663 ("pkg-config" ,pkg-config)
4665 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
4667 (inputs `(("curl" ,curl)
4668 ("fontconfig" ,fontconfig)
4669 ("freetype" ,freetype)
4671 ("harfbuzz" ,harfbuzz)
4672 ("libtheora" ,libtheora)
4673 ("libvorbis" ,libvorbis)
4674 ("libxrandr" ,libxrandr)
4675 ("libsodium" ,libsodium)
4676 ("miniupnpc" ,miniupnpc)
4680 ("qtscript" ,qtscript)
4681 ("openssl" ,openssl)
4683 ("utfcpp" ,utfcpp)))
4684 (home-page "https://wz2100.net")
4685 (synopsis "3D Real-time strategy and real-time tactics game")
4687 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
4688 modes. An extensive tech tree with over 400 different technologies, combined
4689 with the unit design system, allows for a wide variety of possible units and
4691 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
4692 (license (list license:bsd-3
4697 license:lgpl2.1+))))
4699 (define-public widelands
4706 (uri (string-append "https://launchpad.net/widelands/"
4707 "build" version "/build" version "/+download/"
4708 "widelands-build" version "-source.tar.gz"))
4710 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
4711 (modules '((guix build utils)))
4714 (delete-file-recursively "src/third_party/minizip")
4717 ;; Use system Minizip. Patch is provided by Debian, and discussed
4718 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
4719 (search-patches "widelands-system-wide_minizip.patch"))))
4720 (build-system cmake-build-system)
4723 (let* ((out (assoc-ref %outputs "out"))
4724 (share (string-append out "/share")))
4725 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
4726 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
4727 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
4728 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
4729 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
4730 ;; type. When used, no game data is installed!
4731 "-DCMAKE_BUILD_TYPE=Release"))
4733 (modify-phases %standard-phases
4734 (add-after 'unpack 'unbundle-fonts
4735 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
4736 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
4737 (lambda* (#:key inputs #:allow-other-keys)
4738 (with-directory-excursion "data/i18n/fonts"
4739 (for-each (lambda (font)
4740 (delete-file-recursively font)
4741 (symlink (string-append (assoc-ref inputs font)
4742 "/share/fonts/truetype")
4744 '("DejaVu" "MicroHei")))
4747 `(("gettext" ,gettext-minimal)
4748 ("python" ,python-wrapper)))
4754 ("minizip" ,minizip)
4755 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
4757 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
4758 ("DejaVu" ,font-dejavu)
4759 ("MicroHei" ,font-wqy-microhei)))
4760 (home-page "https://www.widelands.org/")
4761 (synopsis "Fantasy real-time strategy game")
4763 "In Widelands, you are the regent of a small clan. You start out with
4764 nothing but your headquarters, where all your resources are stored.
4766 In the course of the game, you will build an ever growing settlement. Every
4767 member of your clan will do his or her part to produce more resources---wood,
4768 food, iron, gold and more---to further this growth. The economic network is
4769 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
4772 As you are not alone in the world, you will meet other clans sooner or later.
4773 Some of them may be friendly and you may eventually trade with them. However,
4774 if you want to rule the world, you will have to train soldiers and fight.
4776 Widelands offers single-player mode with different campaigns; the campaigns
4777 all tell stories of tribes and their struggle in the Widelands universe!
4778 However, settling really starts when you unite with friends over the Internet
4779 or LAN to build up new empires together---or to crush each other in the dusts
4780 of war. Widelands also offers an Artificial Intelligence to challenge you.")
4781 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
4782 ;; different licenses.
4783 (license (list license:gpl2+
4784 license:expat ;src/third_party/eris
4785 license:silofl1.1 ;Widelands.ttf
4786 license:cc-by-sa3.0)))) ;some music files
4788 (define-public starfighter
4790 (name "starfighter")
4795 "https://github.com/pr-starfighter/starfighter/releases"
4796 "/download/v" version "/starfighter-"
4797 version "-src.tar.gz"))
4800 "13396hvsj4cswlrw52kwqn37dadxps00vhr0hrqgm87fl4ih5yyx"))))
4801 (build-system gnu-build-system)
4803 `(("pkg-config" ,pkg-config)))
4807 ("sdl2-image" ,sdl2-image)
4808 ("sdl2-mixer" ,sdl2-mixer)
4809 ("sdl2-ttf" ,sdl2-ttf)))
4810 (home-page "https://pr-starfighter.github.io/")
4811 (synopsis "2D scrolling shooter game")
4813 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
4814 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
4815 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
4816 way, you will encounter new foes, make new allies, and assist local rebels
4817 in strikes against the evil corporation.")
4818 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
4819 (license (list license:gpl3+
4823 license:public-domain))))
4825 (define-public chromium-bsu
4827 (name "chromium-bsu")
4828 (version "0.9.16.1")
4831 (uri (string-append "mirror://sourceforge/chromium-bsu"
4832 "/Chromium B.S.U. source code/"
4833 "chromium-bsu-" version ".tar.gz"))
4836 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
4837 (build-system gnu-build-system)
4838 (native-inputs `(("pkg-config" ,pkg-config)))
4839 (inputs `(("gettext" ,gettext-minimal)
4841 ("quesoglc" ,quesoglc)
4842 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
4843 (home-page "http://chromium-bsu.sourceforge.net/")
4844 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
4846 "In this game you are the captain of the cargo ship Chromium B.S.U. and
4847 are responsible for delivering supplies to the troops on the front line. Your
4848 ship has a small fleet of robotic fighters which you control from the relative
4849 safety of the Chromium vessel.")
4850 ;; Clarified Artistic License for everything but sound, which is covered
4851 ;; by the Expat License.
4852 (license (list license:clarified-artistic license:expat))))
4854 (define-public tuxpaint
4857 (version "0.9.23") ;keep VER_DATE below in sync
4861 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
4862 version "/tuxpaint-" version ".tar.gz"))
4865 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
4866 (modules '((guix build utils)))
4869 ;; Remove win32 directory which contains binary dll's and the
4870 ;; deprecated visualc directory.
4871 (for-each delete-file-recursively '("win32" "visualc"))
4872 (substitute* "Makefile"
4873 ;; Do not rely on $(GPERF) being an absolute file name
4874 (("\\[ -x \\$\\(GPERF\\) \\]")
4875 "$(GPERF) --version >/dev/null 2>&1"))
4877 (patches (search-patches "tuxpaint-stamps-path.patch"))))
4878 (build-system gnu-build-system)
4881 ("pkg-config" ,pkg-config)))
4884 ("fribidi" ,fribidi)
4885 ("gettext" ,gettext-minimal)
4887 ("librsvg" ,librsvg)
4888 ("libpaper" ,libpaper)
4890 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
4891 ;; TODO: Use system fonts rather than those in data/fonts
4893 `(#:make-flags `("VER_DATE=2018-09-02"
4894 "GPERF=gperf" "CC=gcc"
4895 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
4896 ,(string-append "PREFIX=" %output)
4897 "KDE_PREFIX=$(PREFIX)/share/applications"
4898 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
4899 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
4900 #:parallel-build? #f ;fails on some systems
4901 #:tests? #f ;No tests
4902 #:phases (modify-phases %standard-phases
4903 (delete 'configure) ;no configure phase
4904 (add-before 'install 'no-sys-cache
4905 (lambda _ ;do not rebuild system conf cache
4906 (substitute* "Makefile"
4907 (("kbuildsycoca4") ""))
4909 (add-after 'install 'fix-import
4910 (lambda* (#:key inputs outputs #:allow-other-keys)
4911 (let* ((out (assoc-ref outputs "out"))
4912 (net (assoc-ref inputs "netpbm"))
4913 (tpi (string-append out "/bin/tuxpaint-import")))
4915 ;; Point to installation prefix so that the default
4916 ;; configure file is found.
4917 (("/usr/local") out))
4918 ;; tuxpaint-import uses a bunch of programs from
4919 ;; netpbm, so make sure it knows where those are
4922 (,(string-append net "/bin"))))))))))
4923 (native-search-paths
4924 (list (search-path-specification
4925 (variable "TUXPAINT_STAMPS_PATH")
4926 (files '("share/tuxpaint/stamps")))))
4927 (home-page "http://www.tuxpaint.org")
4928 (synopsis "Drawing software for children")
4930 "Tux Paint is a free drawing program designed for young children (kids
4931 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
4932 and an encouraging cartoon mascot who helps guide children as they use the
4933 program. It provides a blank canvas and a variety of drawing tools to help
4934 your child be creative.")
4935 (license license:gpl2+)))
4937 (define-public tuxpaint-stamps
4939 (name "tuxpaint-stamps")
4940 (version "2018.09.01")
4944 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
4945 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
4946 "/tuxpaint-stamps-" version ".tar.gz"))
4949 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
4950 (build-system trivial-build-system)
4955 `(#:modules ((guix build utils))
4957 (use-modules (guix build utils))
4960 (assoc-ref %build-inputs "tar") "/bin" ":"
4961 (assoc-ref %build-inputs "gzip") "/bin"))
4962 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
4963 (chdir (string-append ,name "-" ,version))
4964 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
4966 (copy-recursively "stamps" dir))
4968 (home-page (package-home-page tuxpaint))
4969 (synopsis "Stamp images for Tux Paint")
4971 "This package contains a set of \"Rubber Stamp\" images which can be used
4972 with the \"Stamp\" tool within Tux Paint.")
4973 (license license:gpl2+)))
4975 (define-public tuxpaint-config
4977 (name "tuxpaint-config")
4978 (version "0.0.14") ;keep VER_DATE below in sync
4982 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
4983 version "/tuxpaint-config-" version ".tar.gz"))
4986 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
4987 (build-system gnu-build-system)
4989 `(("gettext" ,gettext-minimal)))
4992 ("libpaper" ,libpaper)
4993 ;; TODO: Should the following be propagated by fltk?
4998 `(#:make-flags `("VER_DATE=2018-09-01"
4999 "CONFDIR=/etc/tuxpaint" ;don't write to store
5000 ,(string-append "PREFIX=" %output)
5001 "GNOME_PREFIX=$(PREFIX)")
5002 #:parallel-build? #f ;race conditions
5003 #:tests? #f ;no tests
5004 #:phases (modify-phases %standard-phases
5005 (delete 'configure) ;no configure phase
5006 (add-before 'install 'gzip-no-name
5008 (substitute* "Makefile"
5009 ;; tuxpaint-config compresses its own documentation;
5010 ;; make sure it uses flags for reproducibility.
5011 (("gzip") "gzip --no-name"))))
5012 (add-before 'install 'make-install-dirs
5013 (lambda* (#:key outputs #:allow-other-keys)
5014 (let ((out (assoc-ref outputs "out")))
5015 (mkdir-p (string-append out "/bin"))
5017 (home-page (package-home-page tuxpaint))
5018 (synopsis "Configure Tux Paint")
5020 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5021 (license license:gpl2))) ;no "or later" present
5023 (define-public supertux
5029 (uri (string-append "https://github.com/SuperTux/supertux/"
5030 "releases/download/v" version "/SuperTux-v"
5031 version "-Source.tar.gz"))
5032 (file-name (string-append name "-" version ".tar.gz"))
5035 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5037 (search-patches "supertux-unbundle-squirrel.patch"))))
5040 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5041 "-DUSE_SYSTEM_PHYSFS=ON")
5043 (modify-phases %standard-phases
5044 (add-after 'unpack 'patch-squirrel-path
5045 (lambda* (#:key inputs #:allow-other-keys)
5046 (let ((squirrel (assoc-ref inputs "squirrel")))
5047 (substitute* "CMakeLists.txt"
5048 (("set\\(SQUIRREL_PREFIX.*")
5049 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5050 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5051 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5052 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5054 (build-system cmake-build-system)
5055 (inputs `(("sdl2" ,sdl2)
5056 ("sdl2-image" ,sdl2-image)
5057 ("sdl2-mixer" ,sdl2-mixer)
5061 ("libvorbis" ,libvorbis)
5066 ("freetype" ,freetype)
5067 ("squirrel" ,squirrel)))
5069 `(("pkg-config" ,pkg-config)))
5070 (synopsis "2D platformer game")
5071 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5072 a style similar to the original Super Mario games.")
5073 (home-page "https://supertux.org/")
5074 (license license:gpl3+)))
5076 (define-public tintin++
5083 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5084 (string-drop-right version 1)
5085 "/tintin-" version ".tar.gz"))
5087 (base32 "11ylbp8ip7dwmh4gzb53z147pcfxkl3lwhyy8ngyn2zc634vdn65"))))
5089 `(("gnutls" ,gnutls)
5091 ("readline" ,readline)
5094 '(#:tests? #f ; no test suite
5096 (modify-phases %standard-phases
5097 ;; The source is in tt/src.
5098 (add-before 'configure 'chdir
5102 (build-system gnu-build-system)
5103 (home-page "https://tintin.mudhalla.net/")
5104 (synopsis "MUD client")
5106 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5107 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5108 options used by MUDs, as well as those required to login via telnet on
5109 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5110 (license license:gpl3+)))
5117 (origin (method git-fetch)
5119 (url "https://github.com/sgimenez/laby")
5120 (commit (string-append name "-" version))))
5121 (file-name (git-file-name name version))
5124 "12fq9hhrxpzgfinmj9ra9ckss9yficwdlrmgjvvsq7agvh3sgyl1"))
5125 (patches (search-patches "laby-make-install.patch"))))
5126 (build-system gnu-build-system)
5128 `(("lablgtk" ,lablgtk)
5130 ("ocaml-findlib" ,ocaml-findlib)
5131 ("ocamlbuild" ,ocamlbuild)))
5134 (modify-phases %standard-phases
5136 (add-before 'build 'allow-unsafe-strings
5137 ;; Fix a build failure with ocaml >=4.06.0.
5138 ;; See <https://github.com/sgimenez/laby/issues/53>.
5140 (setenv "OCAMLPARAM" "safe-string=0,_")
5142 (add-before 'build 'set-library-path
5143 (lambda* (#:key inputs #:allow-other-keys)
5144 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5145 (setenv "LD_LIBRARY_PATH"
5146 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5147 #:tests? #f ; no 'check' target
5149 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5150 (home-page "https://sgimenez.github.io/laby/")
5151 (synopsis "Programming game")
5152 (description "Learn programming, playing with ants and spider webs ;-)
5153 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5154 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5155 programmers may also add their own favorite language.")
5156 (license license:gpl3+)))
5158 (define-public bambam
5166 (url "https://github.com/porridge/bambam")
5167 (commit (string-append "v" version))))
5168 (file-name (git-file-name name version))
5170 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5171 (build-system python-build-system)
5173 `(#:tests? #f ; no tests
5175 (modify-phases %standard-phases
5176 (delete 'build) ; nothing to build
5178 (lambda* (#:key outputs #:allow-other-keys)
5179 (let* ((out (assoc-ref outputs "out"))
5180 (bin (string-append out "/bin"))
5181 (share (string-append out "/share")))
5183 (copy-file "bambam.py" (string-append bin "/bambam"))
5184 (install-file "bambam.6" (string-append share "/man/man6"))
5185 (copy-recursively "data" (string-append share "/bambam/data")))
5188 `(("python-pygame" ,python-pygame)))
5189 (home-page "https://github.com/porridge/bambam")
5190 (synopsis "Keyboard mashing and doodling game for babies")
5191 (description "Bambam is a simple baby keyboard (and gamepad) masher
5192 application that locks the keyboard and mouse and instead displays bright
5193 colors, pictures, and sounds.")
5194 (license license:gpl3+)))
5196 (define-public mrrescue
5203 "https://github.com/SimonLarsen/mrrescue/releases/"
5204 "download/" version "/mrrescue" version ".love"))
5205 (file-name (string-append name "-" version ".love"))
5208 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5209 (build-system trivial-build-system)
5211 `(#:modules ((guix build utils))
5214 (use-modules (guix build utils))
5215 (let* ((out (assoc-ref %outputs "out"))
5216 (script (string-append out "/bin/" ,name))
5217 (data (string-append out "/share/" ,name))
5218 (source (assoc-ref %build-inputs "source"))
5219 (unzip (string-append (assoc-ref %build-inputs "unzip")
5221 (patch (string-append (assoc-ref %build-inputs "patch")
5223 (bash (string-append (assoc-ref %build-inputs "bash")
5225 (love (string-append (assoc-ref %build-inputs "love")
5228 (mkdir-p (dirname script))
5229 (with-output-to-file script
5231 (format #t "#!~a~%" bash)
5232 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5233 (chmod script #o755)
5235 ;; The better way to package this game would be to install *only* the
5236 ;; script above, pointing to the unextracted .love file in the store.
5237 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5238 ;; Instead of extracting the .love file, patching it, and re-zipping
5239 ;; it to the store, simply point the script to the extracted patched
5240 ;; data directory directly.
5242 (with-directory-excursion data
5243 (invoke unzip source)
5244 (invoke patch "-p1" "-i"
5245 (assoc-ref %build-inputs "love-11.patch")))
5250 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5254 (home-page "https://tangramgames.dk/games/mrrescue")
5255 (synopsis "Arcade-style fire fighting game")
5257 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5258 civilians from burning buildings. The game features fast-paced fire
5259 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5260 throwing people around in pseudo-randomly generated buildings.")
5261 (license (list license:zlib ; for source code
5262 license:cc-by-sa3.0)))) ; for graphics and music assets
5264 (define-public hyperrogue
5268 ;; When updating this package, be sure to update the "hyperrogue-data"
5269 ;; origin in native-inputs.
5273 "https://www.roguetemple.com/z/hyper/hyperrogue"
5274 (string-join (string-split version #\.) "")
5278 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5279 (build-system gnu-build-system)
5281 `(#:tests? #f ; no check target
5282 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5283 "HYPERROGUE_USE_PNG=1")
5285 (modify-phases %standard-phases
5286 (add-after 'set-paths 'set-sdl-paths
5287 (lambda* (#:key inputs #:allow-other-keys)
5289 (string-append (or (getenv "CPATH") "") ":"
5290 (assoc-ref inputs "sdl-union")
5293 (lambda* (#:key inputs outputs #:allow-other-keys)
5294 (let* ((out (assoc-ref outputs "out"))
5295 (share-dir (string-append out "/share/hyperrogue"))
5296 (dejavu-dir (string-append
5297 (assoc-ref inputs "font-dejavu")
5298 "/share/fonts/truetype"))
5299 (dejavu-font "DejaVuSans-Bold.ttf")
5300 (music-file "hyperrogue-music.txt"))
5301 ;; Fix font and music paths.
5302 (substitute* "basegraph.cpp"
5304 (string-append dejavu-dir "/" dejavu-font)))
5305 (substitute* music-file
5307 (string-append share-dir "/sounds/")))
5308 (substitute* "sound.cpp"
5309 (("musicfile = \"\"")
5310 (string-append "musicfile = \""
5311 share-dir "/" music-file "\"")))
5312 ;; Disable build machine CPU optimizations and warnings treated
5314 (substitute* "Makefile"
5315 (("-march=native") "")
5319 (lambda* (#:key inputs outputs #:allow-other-keys)
5320 (let* ((out (assoc-ref outputs "out"))
5321 (bin (string-append out "/bin"))
5322 (share-dir (string-append out "/share/hyperrogue")))
5324 (install-file "hyperrogue" bin)
5325 (install-file "hyperrogue-music.txt" share-dir))
5327 (add-after 'install 'install-data
5328 (lambda* (#:key inputs outputs #:allow-other-keys)
5329 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5330 (out (assoc-ref outputs "out"))
5331 (sounds (string-append out "/share/hyperrogue/sounds"))
5332 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5333 ;; Extract media license information into sounds directory.
5334 (invoke unzip "-j" data
5337 (string-join (string-split ,version #\.) "")
5338 "/sounds/credits.txt") "-d" sounds)
5339 ;; Extract sounds and music into sounds directory.
5340 (invoke "unzip" "-j" data
5343 (string-join (string-split ,version #\.) "")
5344 "/*.ogg") "-d" sounds)))))))
5346 `(("hyperrogue-data"
5351 "https://www.roguetemple.com/z/hyper/hyperrogue"
5352 (string-join (string-split version #\.) "")
5356 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5359 `(("font-dejavu" ,font-dejavu)
5362 ("sdl-union" ,(sdl-union (list sdl
5366 (home-page "https://www.roguetemple.com/z/hyper/")
5367 (synopsis "Non-euclidean graphical rogue-like game")
5369 "HyperRogue is a game in which the player collects treasures and fights
5370 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5371 plane and not in euclidean space.
5373 In HyperRogue, the player can move through different parts of the world, which
5374 are home to particular creatures and may be subject to their own rules of
5377 While the game can use ASCII characters to display the the classical rogue
5378 symbols, it still needs graphics to render the non-euclidean world.")
5379 (license (list license:bsd-3 ; glew.c, mtrand.*
5380 license:cc-by-sa3.0 ; music
5381 license:cc-by-sa4.0 ; sounds
5383 license:public-domain ; direntx.*, some sounds
5384 license:zlib ; savepng.*
5385 license:gpl2+)))) ; remaining files
5387 (define-public kobodeluxe
5393 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5394 version ".tar.bz2"))
5397 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5398 (patches (search-patches
5399 "kobodeluxe-const-charp-conversion.patch"
5400 "kobodeluxe-enemies-pipe-decl.patch"
5401 "kobodeluxe-graphics-window-signed-char.patch"
5402 "kobodeluxe-manpage-minus-not-hyphen.patch"
5403 "kobodeluxe-midicon-segmentation-fault.patch"
5404 "kobodeluxe-paths.patch"))))
5405 (build-system gnu-build-system)
5408 (list (string-append "CPPFLAGS=-I"
5409 (assoc-ref %build-inputs "sdl-union")
5413 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5414 (synopsis "Shooter with space station destruction")
5416 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5417 for Un*x systems with X11.")
5418 (home-page "http://olofson.net/kobodl/")
5419 (license license:gpl2+)))
5421 (define-public freeciv
5428 (uri (list (string-append
5429 "http://files.freeciv.org/stable/freeciv-"
5432 "mirror://sourceforge/freeciv/Freeciv%20"
5433 (version-major+minor version) "/" version
5434 "/freeciv-" version ".tar.bz2")))
5436 (base32 "13vc2xg1cf19rhbnr7k38b56b2hdapqymq5vma1l69kn7hyyz0b1"))))
5437 (build-system gnu-build-system)
5440 ("cyrus-sasl" ,cyrus-sasl)
5442 ("sdl-mixer" ,sdl-mixer)
5445 `(("pkg-config" ,pkg-config)))
5446 (home-page "http://www.freeciv.org/")
5447 (synopsis "Turn-based empire building strategy game")
5448 (description "Freeciv is a turn-based empire building strategy game
5449 inspired by the history of human civilization. The game commences in
5450 prehistory and your mission is to lead your tribe from the Stone Age
5451 into the Space Age.")
5452 (license license:gpl2+)))
5454 (define-public no-more-secrets
5456 (name "no-more-secrets")
5462 (url "https://github.com/bartobri/no-more-secrets")
5463 (commit (string-append "v" version))))
5464 (file-name (git-file-name name version))
5466 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5467 (build-system gnu-build-system)
5470 #:make-flags (list "CC=gcc" "all-ncurses"
5471 (string-append "prefix="
5472 (assoc-ref %outputs "out")))
5474 (modify-phases %standard-phases
5475 (delete 'configure))))
5477 `(("ncurses" ,ncurses)))
5478 (home-page "https://github.com/bartobri/no-more-secrets")
5479 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5481 "@code{No More Secrets} provides a command line tool called \"nms\"
5482 that recreates the famous data decryption effect seen on screen in the 1992
5485 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5486 it will apply the hollywood effect, initially showing encrypted data, then
5487 starting a decryption sequence to reveal the original plaintext characters.")
5488 (license license:expat)))
5490 (define-public megaglest-data
5492 (name "megaglest-data")
5498 "https://github.com/MegaGlest/megaglest-data"
5499 "/releases/download/" version "/megaglest-data-"
5503 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5504 (build-system cmake-build-system)
5507 (home-page "https://megaglest.org/")
5508 (synopsis "Data files for MegaGlest")
5509 (description "This package contains the data files required for MegaGlest.")
5510 (license license:cc-by-sa3.0)))
5512 (define-public megaglest
5520 "https://github.com/MegaGlest/megaglest-source"
5521 "/releases/download/" version "/megaglest-source-"
5525 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5526 (build-system cmake-build-system)
5529 ("fontconfig" ,fontconfig)
5532 ("libjpeg-turbo" ,libjpeg-turbo)
5533 ("megaglest-data" ,megaglest-data)
5535 ("miniupnpc" ,miniupnpc)
5537 ("libircclient" ,libircclient)
5539 ("libvorbis" ,libvorbis)
5542 ("wxwidgets" ,wxwidgets)))
5544 `(("cppunit" ,cppunit)
5545 ("pkg-config" ,pkg-config)))
5548 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5549 (assoc-ref %build-inputs "megaglest-data")
5551 "-DBUILD_MEGAGLEST_TESTS=ON")
5553 (modify-phases %standard-phases
5554 (add-after 'unpack 'fix-ini-search-path
5555 (lambda* (#:key outputs #:allow-other-keys)
5556 (substitute* "source/glest_game/global/config.cpp"
5557 (("/usr/share/megaglest/")
5558 (string-append (assoc-ref outputs "out")
5559 "/share/megaglest/"))))))
5560 #:test-target "megaglest_tests"))
5561 (home-page "https://megaglest.org/")
5562 (synopsis "3D real-time strategy (RTS) game")
5563 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5564 game, where you control the armies of one of seven different factions: Tech,
5565 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5566 (license license:gpl2+)))
5568 (define-public freegish
5569 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5573 (version (string-append "0-" revision "." (string-take commit 9)))
5577 (url "https://github.com/freegish/freegish")
5579 (file-name (git-file-name name version))
5582 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
5583 (modules '((guix build utils)))
5584 ;; The audio files in the "music" directory are licensed under
5585 ;; CC-BY-NC, so we delete them.
5588 (delete-file-recursively "music")
5590 (build-system cmake-build-system)
5592 `(#:tests? #f ; no tests included
5594 (list "-DCMAKE_INSTALL_FHS=ON")
5596 (modify-phases %standard-phases
5597 (add-after 'unpack 'set-DATAPATH
5598 (lambda* (#:key outputs #:allow-other-keys)
5599 (substitute* "CMakeLists.txt"
5600 (("^option\\(INSTALL_FHS" line)
5601 (string-append "add_definitions(-DDATAPATH=\""
5602 (assoc-ref outputs "out") "/share/freegish\")\n"
5606 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
5608 ("libvorbis" ,libvorbis)
5613 (home-page "https://github.com/freegish/freegish")
5614 (synopsis "Side-scrolling physics platformer with a ball of tar")
5615 (description "In FreeGish you control Gish, a ball of tar who lives
5616 happily with his girlfriend Brea, until one day a mysterious dark creature
5617 emerges from a sewer hole and pulls her below ground.")
5618 ;; The textures are available under the Expat license. All other assets
5619 ;; (including levels) are covered under CC-BY-SA or public domain. The
5620 ;; source code is under GPLv2+.
5621 (license (list license:gpl2+
5623 license:public-domain
5624 license:cc-by-sa3.0)))))
5626 (define-public cdogs-sdl
5634 (url "https://github.com/cxong/cdogs-sdl")
5636 (file-name (git-file-name name version))
5638 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
5639 (build-system cmake-build-system)
5642 (list (string-append "-DCDOGS_DATA_DIR="
5643 (assoc-ref %outputs "out")
5644 "/share/cdogs-sdl/"))))
5646 `(("pkg-config" ,pkg-config)))
5651 ("sdl2-image" ,sdl2-image)
5652 ("sdl2-mixer" ,sdl2-mixer)))
5653 (home-page "https://cxong.github.io/cdogs-sdl/")
5654 (synopsis "Classic overhead run-and-gun game")
5655 (description "C-Dogs SDL is a classic overhead run-and-gun game,
5656 supporting up to 4 players in co-op and deathmatch modes. Customize your
5657 player, choose from many weapons, and blast, slide and slash your way through
5658 over 100 user-created campaigns.")
5659 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
5660 ;; CC0/CC-BY/CC-BY-SA for assets.
5661 (license (list license:gpl2+
5666 license:cc-by-sa3.0))))
5674 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
5675 version "/kiki-" version "-src.tgz"))
5678 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
5679 (modules '((guix build utils)))
5682 (for-each delete-file (find-files "." "\\.dll$"))
5685 (search-patches "kiki-level-selection-crash.patch"
5686 "kiki-makefile.patch"
5687 "kiki-missing-includes.patch"
5688 "kiki-portability-64bit.patch"))))
5689 (build-system gnu-build-system)
5691 `(#:tests? #f ; there are no tests
5692 #:make-flags '("CXX=g++")
5694 (modify-phases %standard-phases
5696 (lambda* (#:key inputs outputs #:allow-other-keys)
5697 (setenv "CPLUS_INCLUDE_PATH"
5698 (string-append (assoc-ref inputs "sdl-union")
5700 (assoc-ref inputs "python")
5701 "/include/python2.7:"
5702 (or (getenv "CPLUS_INCLUDE_PATH") "")))
5703 (substitute* "src/main/main.cpp"
5704 (("#include <SDL.h>" line)
5705 (string-append line "
5706 #define K_INCLUDE_GLUT
5707 #include \"KIncludeTools.h\""))
5708 (("// initialize SDL" line)
5709 (string-append "glutInit(&argc,argv);\n" line)))
5710 (substitute* "src/main/KikiController.cpp"
5711 (("getenv\\(\"KIKI_HOME\"\\)")
5712 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
5713 (substitute* "linux/Makefile"
5715 (string-append line " -fpermissive"))
5716 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
5718 (string-append "PYTHONHOME = "
5719 (assoc-ref inputs "python")
5721 (("\\$\\(GLLIBS\\)" line)
5722 (string-append line " -lm -lpython2.7")))
5723 (substitute* "src/main/KikiPythonWidget.h"
5724 (("#define __KikiPythonWidget" line)
5725 (string-append line "\n#include \"KikiPython.h\"")))
5727 (add-before 'build 'build-kodilib
5728 (lambda* (#:key make-flags #:allow-other-keys)
5729 (with-directory-excursion "kodilib/linux"
5730 (apply invoke "make" make-flags))))
5731 (add-after 'build-kodilib 'chdir
5732 (lambda _ (chdir "linux") #t))
5734 (lambda* (#:key outputs #:allow-other-keys)
5735 (let* ((out (assoc-ref outputs "out"))
5736 (bin (string-append out "/bin"))
5737 (share (string-append out "/share/kiki")))
5740 (install-file "kiki" bin)
5741 (copy-recursively "../py" (string-append share "/py"))
5742 (copy-recursively "../sound" (string-append share "/sound"))
5746 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
5747 ("freeglut" ,freeglut-2.8)
5748 ("sdl-union" ,(sdl-union (list sdl
5751 ("python" ,python-2)))
5754 (home-page "http://kiki.sourceforge.net/")
5755 (synopsis "3D puzzle game")
5756 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
5757 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
5758 small robot living in the nano world, repair its maker.")
5759 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
5760 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
5761 ;; for a statement from the author.
5762 (license license:public-domain)))
5764 (define-public teeworlds
5771 (url "https://github.com/teeworlds/teeworlds")
5773 (file-name (git-file-name name version))
5776 "169dl83q08zl4h813az8hjs4rs3dms9yjn6bnsld4fjcj0imvvc6"))
5777 (modules '((guix build utils)
5782 (snippet ; remove bundled libraries except md5
5783 '(let ((base-dir "src/engine/external/"))
5784 (for-each (compose (cut delete-file-recursively <>)
5785 (cut string-append base-dir <>))
5786 (remove (cut string-match "(^.)|(^md5$)" <>)
5787 (scandir base-dir)))
5789 (build-system gnu-build-system)
5791 `(#:tests? #f ; no tests included
5792 #:modules ((guix build gnu-build-system)
5796 (modify-phases %standard-phases
5798 (lambda* (#:key outputs #:allow-other-keys)
5799 ;; Embed path to assets.
5800 (substitute* "src/engine/shared/storage.cpp"
5801 (("#define DATA_DIR.*")
5802 (string-append "#define DATA_DIR \""
5803 (assoc-ref outputs "out")
5804 "/share/teeworlds/data"
5807 ;; Bam expects all files to have a recent time stamp.
5808 (for-each (cut utime <> 1 1)
5811 ;; Do not use bundled libraries.
5812 (substitute* "bam.lua"
5813 (("local json = Compile.+$")
5815 settings.link.libs:Add(\"jsonparser\")")
5816 (("local png = Compile.+$")
5818 settings.link.libs:Add(\"pnglite\")")
5819 (("local wavpack = Compile.+$")
5820 "local wavpack = nil
5821 settings.link.libs:Add(\"wavpack\")")
5822 (("if config\\.zlib\\.value == 1")
5823 "if config.zlib.value"))
5824 (substitute* "src/engine/client/graphics_threaded.cpp"
5825 (("engine/external/pnglite/pnglite\\.h")
5827 (substitute* "src/engine/client/sound.cpp"
5828 (("engine/external/wavpack/wavpack\\.h")
5829 "wavpack/wavpack.h"))
5833 (invoke "bam" "-a" "-v" "conf=release")))
5835 (lambda* (#:key outputs #:allow-other-keys)
5836 (let* ((arch ,(system->linux-architecture
5837 (or (%current-target-system)
5838 (%current-system))))
5839 (build (string-append "build/" (if (string=? arch "i386")
5842 (data-built (string-append build "data/"))
5843 (out (assoc-ref outputs "out"))
5844 (bin (string-append out "/bin/"))
5845 (data (string-append out "/share/teeworlds/data/")))
5846 (for-each (cut install-file <> bin)
5847 (map (cut string-append build <>)
5848 '("teeworlds" "teeworlds_srv")))
5849 (copy-recursively data-built data)
5852 `(("freetype" ,freetype)
5854 ("json-parser" ,json-parser)
5856 ("pnglite" ,pnglite)
5858 ("sdl2-image" ,sdl2-image)
5859 ("sdl2-mixer" ,sdl2-mixer)
5860 ("wavpack" ,wavpack)
5864 ("python" ,python-wrapper)
5865 ("pkg-config" ,pkg-config)))
5866 (home-page "https://www.teeworlds.com")
5867 (synopsis "2D retro multiplayer shooter game")
5868 (description "Teeworlds is an online multiplayer game. Battle with up to
5869 16 players in a variety of game modes, including Team Deathmatch and Capture
5870 The Flag. You can even design your own maps!")
5871 (license license:bsd-3)))
5873 (define-public enigma
5879 (uri (string-append "mirror://sourceforge/enigma-game/"
5880 "Release%20" version "/enigma-"
5884 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
5885 (build-system gnu-build-system)
5888 (list "--with-system-enet")
5890 (modify-phases %standard-phases
5891 (add-after 'unpack 'fix-build-with-new-gcc
5893 ;; Fix build with GCC6 and later by avoiding comparing ifstream
5894 ;; to NULL. Can be removed for versions > 1.21.
5895 (substitute* "src/lev/Proxy.cc"
5899 (add-after 'unpack 'find-sdl
5901 (substitute* "configure"
5902 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
5903 (substitute* '("tools/ttf2bmf.cc"
5904 "lib-src/enigma-core/ecl_font.cc"
5905 "lib-src/enigma-core/ecl_video.cc"
5906 "lib-src/enigma-core/ecl_buffer.hh"
5907 "src/SoundEngine.cc"
5908 "src/SoundEngine.hh"
5909 "src/MusicManager.cc"
5910 "src/MusicManager.hh"
5914 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
5915 (string-append "#include \"SDL/SDL_" header ".h\"")))
5916 (substitute* "src/main.cc"
5917 (("#include <SDL_(image|ttf|mixer).h>" line header)
5918 (string-append "#include \"SDL/SDL_" header ".h\"")))
5921 `(("xerces-c" ,xerces-c)
5922 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
5926 `(("pkg-config" ,pkg-config)
5927 ("imagemagick" ,imagemagick)))
5928 (home-page "https://www.nongnu.org/enigma")
5929 (synopsis "Puzzle game with a dexterity component")
5930 (description "Enigma is a puzzle game with 550 unique levels. The object
5931 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
5932 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
5933 and most of all, countless hairy puzzles usually block your direct way to the
5934 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
5935 get bored) interact in many unexpected ways, and since many of them follow the
5936 laws of physics (Enigma’s special laws of physics, that is), controlling them
5937 with the mouse isn’t always trivial.")
5938 (license license:gpl2+)))
5940 (define-public chroma
5946 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
5947 version ".tar.bz2"))
5950 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
5951 (build-system gnu-build-system)
5953 `(#:tests? #f ; no tests included
5954 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
5956 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
5957 ("freetype" ,freetype)
5958 ("ncurses" ,ncurses)
5959 ("fontconfig" ,fontconfig)
5960 ("libxft" ,libxft)))
5962 `(("pkg-config" ,pkg-config)))
5963 (home-page "http://level7.org.uk/chroma/")
5964 (synopsis "Abstract puzzle game")
5965 (description "Chroma is an abstract puzzle game. A variety of colourful
5966 shapes are arranged in a series of increasingly complex patterns, forming
5967 fiendish traps that must be disarmed and mysterious puzzles that must be
5968 manipulated in order to give up their subtle secrets. Initially so
5969 straightforward that anyone can pick it up and begin to play, yet gradually
5970 becoming difficult enough to tax even the brightest of minds.")
5971 (license license:gpl2+)))
5973 (define-public fillets-ng
5979 (uri (string-append "mirror://sourceforge/fillets/"
5980 "Fish%20Fillets%20-%20Next%20Generation/"
5981 version "/fillets-ng-" version ".tar.gz"))
5984 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
5985 (build-system gnu-build-system)
5988 (list (string-append "--with-lua="
5989 (assoc-ref %build-inputs "lua")))
5991 (list (string-append "CFLAGS=-I"
5992 (assoc-ref %build-inputs "sdl-union")
5994 (string-append "CXXFLAGS=-I"
5995 (assoc-ref %build-inputs "sdl-union")
5998 (modify-phases %standard-phases
5999 ;; Lua 5.1 does not provide it.
6000 (add-after 'unpack 'do-not-link-with-lualib
6002 (substitute* "configure"
6005 (add-after 'install 'install-data
6006 (lambda* (#:key inputs outputs #:allow-other-keys)
6007 (let ((data (string-append (assoc-ref outputs "out")
6008 "/share/games/fillets-ng")))
6010 (invoke "tar" "-xvf"
6011 (assoc-ref inputs "fillets-ng-data")
6012 "--strip-components=1"
6015 `(("sdl-union" ,(sdl-union (list sdl
6019 ("fribidi" ,fribidi)
6023 `(("pkg-config" ,pkg-config)
6027 (uri (string-append "mirror://sourceforge/fillets/"
6028 "Fish%20Fillets%20-%20Next%20Generation/"
6029 version "/fillets-ng-data-" version ".tar.gz"))
6032 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6033 (home-page "http://fillets.sourceforge.net/")
6034 (synopsis "Puzzle game")
6035 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6036 every of the seventy levels is always the same: find a safe way out. The fish
6037 utter witty remarks about their surroundings, the various inhabitants of their
6038 underwater realm quarrel among themselves or comment on the efforts of your
6039 fish. The whole game is accompanied by quiet, comforting music.")
6040 (license license:gpl2+)))
6042 (define-public crawl
6050 ;; Older releases get moved into a versioned directory
6051 (string-append "http://crawl.develz.org/release/"
6052 (version-major+minor version) "/stone_soup-"
6053 version "-nodeps.tar.xz")
6054 ;; Only the latest release is in this directory
6055 (string-append "http://crawl.develz.org/release/stone_soup-"
6056 version "-nodeps.tar.xz")))
6058 (base32 "0rn1wjxdqw33caiwisfypm1j8cid3c9pz01ahicl17144zs29z3d"))
6059 (patches (search-patches "crawl-upgrade-saves.patch"))
6060 ;; The 0.25.0 -nodeps.tar.xz was built from an OSX machine; normally
6061 ;; apparently it's built from a Debian machine before the Debian
6062 ;; packages are made. These ._* files are binary and have the string
6063 ;; "Mac OS X" in them... removing these seems to result in compilation
6065 (modules '((guix build utils)))
6068 (for-each delete-file (find-files "." "^\\._"))
6070 (build-system gnu-build-system)
6072 `(("lua51" ,lua-5.1)
6073 ("ncurses" ,ncurses)
6080 ("python" ,python-wrapper)
6081 ("python-pyyaml" ,python-pyyaml)
6082 ("pkg-config" ,pkg-config)))
6085 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6086 (out (assoc-ref %outputs "out")))
6087 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6088 (string-append "prefix=" out)
6090 ;; Don't compile with SSE on systems which don't have it.
6091 ,@(match (%current-system)
6092 ((or "i686-linux" "x86_64-linux")
6094 (_ '("NOSSE=TRUE")))
6095 ;; don't build any bundled dependencies
6101 (modify-phases %standard-phases
6102 (add-after 'unpack 'find-SDL-image
6104 (substitute* "source/windowmanager-sdl.cc"
6105 (("SDL_image.h") "SDL2/SDL_image.h"))
6109 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6110 (setenv "HOME" (getcwd))
6111 ;; Fake a terminal for the test cases.
6112 (setenv "TERM" "xterm-256color")
6113 ;; Run the tests that don't require a debug build.
6114 (apply invoke "make" "nondebugtest"
6115 (format #f "-j~d" (parallel-job-count))
6116 ;; Force command line build for test cases.
6117 (append make-flags '("GAME=crawl" "TILES="))))))))
6118 (synopsis "Roguelike dungeon crawler game")
6119 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6120 for short) is a roguelike adventure through dungeons filled with dangerous
6121 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6122 (home-page "https://crawl.develz.org")
6123 (license (list license:gpl2+
6131 ;; The linter here claims that patch file names should start with the package
6132 ;; name. But, in this case, the patches are inherited from crawl with the
6133 ;; "crawl-" prefix instead of "crawl-tiles-".
6134 (define-public crawl-tiles
6137 (name "crawl-tiles")
6139 (substitute-keyword-arguments
6140 (package-arguments crawl)
6141 ((#:make-flags flags)
6142 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6144 (string-append "PROPORTIONAL_FONT=" dejavu
6145 "/share/fonts/truetype/DejaVuSans.ttf")
6146 (string-append "MONOSPACED_FONT=" dejavu
6147 "/share/fonts/truetype/DejaVuSansMono.ttf")
6149 ;; Rename the executable to allow parallel installation with crawl.
6153 `(,@(package-inputs crawl)
6154 ("font-dejavu" ,font-dejavu)
6155 ("freetype6" ,freetype)
6159 ("sdl2-image" ,sdl2-image)
6160 ("sdl2-mixer" ,sdl2-mixer)))
6162 `(,@(package-native-inputs crawl)
6163 ("pngcrush" ,pngcrush)
6165 (synopsis "Graphical roguelike dungeon crawler game")))
6167 (define-public lugaru
6173 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6174 "lugaru-" version ".tar.xz"))
6177 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6178 (build-system cmake-build-system)
6181 (list "-DSYSTEM_INSTALL=ON")
6185 `(("pkg-config" ,pkg-config)))
6189 ("libjpeg" ,libjpeg-turbo)
6192 ("vorbis" ,libvorbis)
6194 (home-page "https://osslugaru.gitlab.io")
6195 (synopsis "Cross-platform third-person action game")
6196 (description "Lugaru is a third-person action game. The main character,
6197 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6198 In his quest to find those responsible for slaughtering his village, he uncovers
6199 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6200 and the starving wolves from a nearby den. Turner takes it upon himself to
6201 fight against their plot and save his fellow rabbits from slavery.")
6202 (license (list license:gpl2+ ; code
6205 license:cc-by-sa4.0))))
6207 (define-public 0ad-data
6210 (version "0.0.23b-alpha")
6214 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6215 version "-unix-data.tar.xz"))
6216 (file-name (string-append name "-" version ".tar.xz"))
6219 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6220 (modules '((guix build utils)))
6223 (for-each (lambda (name)
6224 (let* ((dir (string-append "binaries/data/mods/" name))
6225 (file (string-append dir "/" name ".zip"))
6226 (unzip #$(file-append unzip "/bin/unzip")))
6227 (invoke unzip "-d" dir file)
6228 (delete-file file)))
6231 (build-system trivial-build-system)
6232 (native-inputs `(("tar" ,tar)
6235 `(#:modules ((guix build utils))
6238 (use-modules (guix build utils))
6239 (let ((out (assoc-ref %outputs "out"))
6240 (source (assoc-ref %build-inputs "source"))
6241 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6242 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6243 (setenv "PATH" xz-path)
6245 (invoke tar "xvf" source "-C" out "--strip=3")))))
6246 (synopsis "Data files for 0ad")
6247 (description "0ad-data provides the data files required by the game 0ad.")
6248 (home-page "https://play0ad.com")
6249 (license (list (license:fsdg-compatible
6250 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6251 "Similar to the license of the Bitstream Vera fonts.")
6252 (license:fsdg-compatible
6253 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6263 (version "0.0.23b-alpha")
6267 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6268 version "-unix-build.tar.xz"))
6269 (file-name (string-append name "-" version ".tar.xz"))
6272 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6273 ;; A snippet here would cause a build failure because of timestamps
6274 ;; reset. See https://bugs.gnu.org/26734.
6276 `(("0ad-data" ,0ad-data)
6282 ("libsodium" ,libsodium)
6283 ("libvorbis" ,libvorbis)
6284 ("libxcursor" ,libxcursor)
6285 ("libxml2" ,libxml2)
6286 ("miniupnpc" ,miniupnpc)
6287 ("mozjs-38" ,mozjs-38)
6290 ("wxwidgets" ,wxwidgets)
6294 ("cmake" ,cmake-minimal)
6296 ("pkg-config" ,pkg-config)
6297 ("python-2" ,python-2)))
6298 (build-system gnu-build-system)
6300 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6302 (modify-phases %standard-phases
6303 (add-after 'unpack 'delete-bundles
6305 (delete-file-recursively "libraries/source/spidermonkey")
6307 (add-after 'unpack 'fix-x11-includes
6309 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6310 (("<Xlib.h>") "<X11/Xlib.h>"))
6311 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6312 (("<Xatom.h>") "<X11/Xatom.h>"))
6313 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6314 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6317 (lambda* (#:key inputs outputs #:allow-other-keys)
6318 (let* ((jobs (number->string (parallel-job-count)))
6319 (out (assoc-ref outputs "out"))
6320 (lib (string-append out "/lib"))
6321 (data (string-append out "/share/0ad")))
6322 (setenv "JOBS" (string-append "-j" jobs))
6324 (with-directory-excursion "build/workspaces"
6325 (invoke "./update-workspaces.sh"
6326 (string-append "--libdir=" lib)
6327 (string-append "--datadir=" data)
6328 ;; TODO: "--with-system-nvtt"
6329 "--with-system-mozjs38")))))
6332 (lambda* (#:key inputs outputs #:allow-other-keys)
6334 (let* ((out (assoc-ref outputs "out"))
6335 (bin (string-append out "/bin"))
6336 (lib (string-append out "/lib"))
6337 (data (string-append out "/share/0ad"))
6338 (applications (string-append out "/share/applications"))
6339 (pixmaps (string-append out "/share/pixmaps"))
6340 (0ad-data (assoc-ref inputs "0ad-data")))
6342 (copy-recursively "data" data)
6343 (for-each (lambda (file)
6344 (symlink (string-append 0ad-data "/" file)
6345 (string-append data "/" file)))
6346 '("config" "mods/mod" "mods/public" "tools"))
6348 (for-each (lambda (file)
6349 (install-file file lib))
6350 (find-files "system" "\\.so$"))
6352 (install-file "system/pyrogenesis" bin)
6353 (with-directory-excursion bin
6354 (symlink "pyrogenesis" "0ad"))
6356 (with-directory-excursion "../build/resources"
6357 (install-file "0ad.desktop" applications)
6358 (install-file "0ad.png" pixmaps))
6360 (add-after 'install 'check
6362 (with-directory-excursion "system"
6363 (invoke "./test")))))))
6364 (home-page "https://play0ad.com")
6365 (synopsis "3D real-time strategy game of ancient warfare")
6366 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6367 warfare. It's a historically-based war/economy game that allows players to
6368 relive or rewrite the history of twelve ancient civilizations, each depicted
6369 at their peak of economic growth and military prowess.
6371 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6372 (license (list license:bsd-2
6383 ;; There have been no official releases.
6384 (define-public open-adventure
6385 (let* ((commit "d43854f0f6bb8e9eea7fbce80348150e7e7fc34d")
6388 (name "open-adventure")
6389 (version (string-append "2.5-" revision "." (string-take commit 7)))
6393 (url "https://gitlab.com/esr/open-adventure")
6395 (file-name (string-append name "-" version "-checkout"))
6398 "08bwrvf4axb1rsfd6ia1fddsky9pc1p350vjskhaakg2czc6dsk0"))))
6399 (build-system gnu-build-system)
6401 `(#:make-flags (list "CC=gcc")
6402 #:parallel-build? #f ; not supported
6404 (modify-phases %standard-phases
6406 (lambda* (#:key inputs outputs #:allow-other-keys)
6407 ;; Linenoise is meant to be included, so we have to
6408 ;; copy it into the working directory.
6409 (let* ((linenoise (assoc-ref inputs "linenoise"))
6410 (noisepath (string-append linenoise "/include/linenoise"))
6411 (out (assoc-ref outputs "out")))
6412 (copy-recursively noisepath "linenoise"))
6414 (add-before 'build 'use-echo
6416 (substitute* "tests/Makefile"
6417 (("/bin/echo") (which "echo")))
6419 (add-after 'build 'build-manpage
6421 ;; This target is missing a dependency
6422 (substitute* "Makefile"
6424 (string-append line " advent.adoc")))
6425 (invoke "make" ".adoc.6")))
6426 ;; There is no install target
6428 (lambda* (#:key outputs #:allow-other-keys)
6429 (let* ((out (assoc-ref outputs "out"))
6430 (bin (string-append out "/bin"))
6431 (man (string-append out "/share/man/man6")))
6432 (install-file "advent" bin)
6433 (install-file "advent.6" man))
6436 `(("asciidoc" ,asciidoc)
6437 ("linenoise" ,linenoise)
6439 ("python-pyyaml" ,python-pyyaml)))
6440 (home-page "https://gitlab.com/esr/open-adventure")
6441 (synopsis "Colossal Cave Adventure")
6442 (description "The original Colossal Cave Adventure from 1976 was the
6443 origin of all text adventures, dungeon-crawl (computer) games, and
6444 computer-hosted roleplaying games. This is the last version released by
6445 Crowther & Woods, its original authors, in 1995. It has been known as
6446 \"adventure 2.5\" and \"430-point adventure\".")
6447 (license license:bsd-2))))
6449 (define-public tome4
6453 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6457 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6458 version ".tar.bz2"))
6460 (base32 "0283hvms5hr29zr0grd6gq059k0hg8hcz3fsmwjmysiih8790i68"))
6461 (modules '((guix build utils)))
6464 (substitute* '("src/music.h" "src/tSDL.h")
6465 (("#elif defined(__FreeBSD__)" line)
6467 line " || defined(__GNUC__)")))
6468 (substitute* '("src/tgl.h")
6469 (("#include <GL/glext.h>") ""))
6471 (build-system gnu-build-system)
6473 `(("unzip" ,unzip)))
6475 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6477 ("premake4" ,premake4)
6479 ("vorbis" ,libvorbis)
6480 ("luajit" ,luajit)))
6482 `(#:make-flags '("CC=gcc" "config=release")
6483 ;; XXX: Building in parallel occasionally causes this build failure:
6484 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6485 ;; No such file or directory
6486 #:parallel-build? #f
6487 #:phases (modify-phases %standard-phases
6491 (invoke "premake4" "gmake")
6493 (add-after 'set-paths 'set-sdl-paths
6494 (lambda* (#:key inputs #:allow-other-keys)
6496 (string-append (assoc-ref inputs "sdl-union")
6498 (or (getenv "CPATH") "")))
6501 ;; premake doesn't provide install target
6503 (lambda* (#:key inputs outputs #:allow-other-keys)
6504 (let* ((out (assoc-ref outputs "out"))
6505 (usr (string-append out "/usr"))
6506 (bin (string-append out "/bin"))
6507 (licenses (string-append out "/share/licenses"))
6508 (documents (string-append out "/share/doc"))
6509 (pixmaps (string-append out "/share/pixmaps"))
6510 (icon "te4-icon.png")
6511 (data (string-append out "/share/" ,name))
6512 (applications (string-append
6513 out "/share/applications"))
6514 (unzip (string-append
6515 (assoc-ref inputs "unzip") "/bin/unzip"))
6516 (wrapper (string-append bin "/" ,name)))
6521 "game/engines/te4-" ,version ".teae")
6523 "data/gfx/" icon) "-d" pixmaps)
6525 (install-file "t-engine" data)
6527 (with-output-to-file wrapper
6532 ;; No bootstrap code found,
6533 ;; defaulting to working directory
6536 "exec -a tome4 ./t-engine \"$@\"\n"))))
6537 (chmod wrapper #o555)
6539 (for-each (lambda (file)
6540 (install-file file licenses))
6541 '("COPYING" "COPYING-MEDIA"))
6543 (for-each (lambda (file)
6544 (install-file file documents))
6545 '("CONTRIBUTING" "CREDITS"))
6547 (copy-recursively "bootstrap" (string-append
6549 (copy-recursively "game" (string-append data "/game"))
6551 (mkdir-p applications)
6552 (make-desktop-entry-file
6553 (string-append applications "/" ,name ".desktop")
6558 #:categories '("Game" "RolePlaying")))
6560 (home-page "https://te4.org")
6561 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6562 combat and advanced character building. Play as one of many unique races and
6563 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6564 challenging battles, and developing characters with your own tailored mix of
6565 abilities and powers. With a modern graphical and customisable interface,
6566 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6567 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6568 (license license:gpl3+)))
6570 (define-public quakespasm
6577 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6580 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6583 #:make-flags '("CC=gcc"
6586 "USE_CODEC_MIKMOD=1"
6589 #:phases (modify-phases %standard-phases
6591 (add-after 'unpack 'fix-makefile-paths
6592 (lambda* (#:key outputs #:allow-other-keys)
6593 (let ((out (assoc-ref outputs "out")))
6594 (mkdir-p (string-append out "/bin"))
6595 (substitute* "Quake/Makefile"
6596 (("/usr/local/games")
6597 (string-append out "/bin")))
6599 (build-system gnu-build-system)
6600 (inputs `(("libmikmod" ,libmikmod)
6601 ("libvorbis" ,libvorbis)
6606 (synopsis "First person shooter engine for Quake 1")
6607 (description "Quakespasm is a modern engine for id software's Quake 1.
6608 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6609 some graphical niceities, and numerous bug-fixes and other improvements.")
6610 (home-page "http://quakespasm.sourceforge.net/")
6611 (license license:gpl2+)))
6613 (define-public vkquake
6615 (inherit quakespasm)
6622 (url "https://github.com/Novum/vkQuake")
6624 (file-name (git-file-name name version))
6626 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6629 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6630 "vulkan-loader") "/lib")))
6634 "USE_CODEC_MIKMOD=1"
6636 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
6638 #:phases (modify-phases %standard-phases
6639 (add-after 'unpack 'patch-for-new-vulkan
6641 ;; Mimic upstream commit a869a22d9b51c68e for
6642 ;; compatibility with newer vulkan-headers.
6643 (substitute* "Quake/gl_rmisc.c"
6644 (("VK_DYNAMIC_STATE_RANGE_SIZE")
6648 (add-after 'unpack 'fix-makefile-paths
6649 (lambda* (#:key outputs #:allow-other-keys)
6650 (let ((vulkan (assoc-ref %build-inputs
6652 (out (assoc-ref outputs "out")))
6653 (mkdir-p (string-append out "/bin"))
6654 (substitute* "Quake/Makefile" ((" /usr")
6655 (string-append " " out)))
6656 (substitute* "Quake/Makefile" (("/games")
6657 (string-append "/bin")))
6658 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
6660 ,@(strip-keyword-arguments '(#:make-flags #:phases)
6661 (package-arguments quakespasm))))
6662 (inputs `(("vulkan-headers" ,vulkan-headers)
6663 ("vulkan-loader" ,vulkan-loader)
6664 ,@(package-inputs quakespasm)))
6665 (description "vkquake is a modern engine for id software's Quake 1.
6666 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6667 some graphical niceities, and numerous bug-fixes and other improvements.")
6668 (home-page "https://github.com/Novum/vkQuake")))
6670 (define-public yamagi-quake2
6672 (name "yamagi-quake2")
6677 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
6681 "0psinbg25mysd58k99s1n34w31w5hj1vppb39gdjb0zqi6sl6cps"))))
6682 (build-system gnu-build-system)
6687 ;; link openAL instead of using dlopen at runtime
6688 "DLOPEN_OPENAL=\"no\""
6689 ;; an optional directory where it will look for quake2 data files
6690 ;; in addition to the current working directory
6691 "WITH_SYSTEMWIDE=yes"
6692 "WITH_SYSTEMDIR=\"/opt/quake2\"")
6694 (modify-phases %standard-phases
6697 (lambda* (#:key outputs #:allow-other-keys)
6698 (let ((out (assoc-ref outputs "out")))
6699 (mkdir-p (string-append out "/lib"))
6700 (mkdir-p (string-append out "/bin"))
6701 ;; The yamagi-quake2 binary must be in the same directory
6702 ;; as it's engine libraries, but symlinking it to /bin is okay
6703 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
6704 (copy-recursively "release"
6705 (string-append out "/lib/yamagi-quake2"))
6706 (symlink (string-append out "/lib/yamagi-quake2/quake2")
6707 (string-append out "/bin/yamagi-quake2"))
6708 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
6709 (string-append out "/bin/yamagi-q2ded"))))))))
6710 (inputs `(("sdl2" ,sdl2)
6712 ("libvorbis" ,libvorbis)
6714 ("openal" ,openal)))
6715 (native-inputs `(("pkg-config" ,pkg-config)))
6716 (synopsis "First person shooter engine based on quake2")
6717 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
6718 The main focus is an unchanged single player experience like back in 1997,
6719 thus the gameplay and the graphics are unaltered. However the user may use one
6720 of the unofficial retexturing packs. In comparison with the official client,
6721 over 1000 bugs were fixed and an extensive code audit done,
6722 making Yamagi Quake II one of the most solid Quake II implementations available.")
6723 (home-page "https://www.yamagi.org/quake2/")
6724 (license (list license:gpl2+ ; game and server
6725 (license:non-copyleft ; info-zip
6727 "See Info-Zip section.")
6728 license:public-domain)))) ; stb
6730 (define-public nudoku
6736 (uri (string-append "https://github.com/jubalh/nudoku/"
6737 "releases/download/" version
6738 "/nudoku-" version ".tar.xz"))
6741 "0nr2j2z07nxk70s8xnmmpzccxicf7kn5mbwby2kg6aq8paarjm8k"))))
6742 (build-system gnu-build-system)
6743 (inputs `(("ncurses" ,ncurses)))
6744 (home-page "https://jubalh.github.io/nudoku/")
6745 (synopsis "Sudoku for your terminal")
6746 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
6747 (license license:gpl3+)))
6749 (define-public the-butterfly-effect
6751 (name "the-butterfly-effect")
6757 (url "https://github.com/the-butterfly-effect/tbe")
6758 (commit (string-append "v" version))))
6759 (file-name (git-file-name name version))
6762 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
6763 (build-system gnu-build-system)
6766 (modify-phases %standard-phases
6768 ;; There is no "install" phase. By default, tbe is installed
6769 ;; in the build directory. Provide our own installation.
6771 (lambda* (#:key outputs #:allow-other-keys)
6772 (let* ((out (assoc-ref outputs "out"))
6773 (bin (string-append out "/bin"))
6774 (share (string-append out "/share")))
6775 (install-file "usr/games/tbe" bin)
6777 (copy-recursively "usr/share" share)
6779 ;; Test suite requires a running Xorg server. Even when
6780 ;; provided, it fails with "D-Bus library appears to be
6781 ;; incorrectly set up; failed to read machine uuid: Failed to
6782 ;; open "/etc/machine-id": No such file or directory" along
6783 ;; with multiple "QPainter:: ... Painter not active" warnings.
6786 `(("qtbase" ,qtbase)
6789 `(("cmake" ,cmake-minimal)
6790 ("gettext-minimal" ,gettext-minimal)
6791 ("qttools" ,qttools)))
6792 (synopsis "Realistic physics puzzle game")
6793 (description "The Butterfly Effect (tbe) is a game that uses
6794 realistic physics simulations to combine lots of simple mechanical
6795 elements to achieve a simple goal in the most complex way possible.")
6796 (home-page "http://the-butterfly-effect.org/")
6797 ;; Main license is GPL2-only. However, artwork is distributed
6798 ;; under various licenses, listed here.
6799 (license (list license:gpl2 license:public-domain license:expat
6800 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
6802 (define-public pioneer
6805 (version "20200203")
6809 (url "https://github.com/pioneerspacesim/pioneer")
6811 (file-name (git-file-name name version))
6814 "1011xsi94jhw98mhm8kryq8ajig0qfbrdx5xdasi92bd4nk7lcp8"))))
6815 (build-system cmake-build-system)
6817 `(("pkg-config" ,pkg-config)))
6819 `(("assimp" ,assimp)
6821 ("freetype" ,freetype)
6825 ("libsigc++" ,libsigc++)
6826 ("libvorbis" ,libvorbis)
6827 ("lua" ,lua-5.2) ;not compatible with 5.3
6829 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
6831 `(#:tests? #f ;tests are broken
6832 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
6833 (string-append "-DPIONEER_DATA_DIR="
6834 %output "/share/games/pioneer"))))
6835 (home-page "https://pioneerspacesim.net")
6836 (synopsis "Game of lonely space adventure")
6838 "Pioneer is a space adventure game set in our galaxy at the turn of the
6839 31st century. The game is open-ended, and you are free to eke out whatever
6840 kind of space-faring existence you can think of. Look for fame or fortune by
6841 exploring the millions of star systems. Turn to a life of crime as a pirate,
6842 smuggler or bounty hunter. Forge and break alliances with the various
6843 factions fighting for power, freedom or self-determination. The universe is
6844 whatever you make of it.")
6845 (license license:gpl3)))
6847 (define-public badass
6848 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
6852 (version (git-version "0.0" revision commit))
6856 (url "https://github.com/umayr/badass")
6858 (file-name (git-file-name name version))
6861 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
6862 (build-system go-build-system)
6864 '(#:import-path "github.com/umayr/badass"))
6865 (synopsis "Hacking contribution graphs in git")
6867 "Badass generates false commits for a range of dates, essentially
6868 hacking the gamification of contribution graphs on platforms such as
6870 (home-page "https://github.com/umayr/badass")
6871 (license license:expat))))
6873 (define-public colobot
6876 (version "0.1.12-alpha")
6881 (url "https://github.com/colobot/colobot")
6882 (commit (string-append "colobot-gold-" version))
6883 (recursive? #t))) ;for "data/" subdir
6884 (file-name (git-file-name name version))
6887 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
6888 (build-system cmake-build-system)
6890 `(#:tests? #f ;no test
6892 (modify-phases %standard-phases
6893 (add-after 'unpack 'make-git-checkout-writable
6895 (for-each make-file-writable (find-files "."))
6897 (add-after 'unpack 'fix-directories
6899 (substitute* "CMakeLists.txt"
6900 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
6901 (string-append prefix "/bin"))
6902 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
6903 (string-append prefix "/colobot")))
6905 (add-after 'fix-directories 'install-music
6906 ;; Retrieve and install music files.
6907 (lambda* (#:key inputs #:allow-other-keys)
6908 ;; Installation process tries to download music files using
6909 ;; "wget" if not already present. Since we are going another
6910 ;; route, skip "wget" command check.
6911 (substitute* "data/music/CMakeLists.txt"
6912 (("find_program\\(WGET wget\\)") ""))
6913 ;; Populate "music/" directory.
6914 (let ((data (assoc-ref inputs "colobot-music")))
6915 (invoke "tar" "-xvf" data "-Cdata/music"))
6921 (uri (string-append "https://colobot.info/files/music/"
6922 "colobot-music_ogg_" version ".tar.gz"))
6925 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
6926 ("gettext" ,gettext-minimal)
6927 ("librsvg" ,librsvg)
6929 ("python" ,python-wrapper)))
6935 ("libsndfile" ,libsndfile)
6936 ("libvorbis" ,libvorbis)
6939 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
6940 (synopsis "Educational programming strategy game")
6941 (description "Colobot: Gold Edition is a real-time strategy game, where
6942 you can program your units (bots) in a language called CBOT, which is similar
6943 to C++ and Java. Your mission is to find a new planet to live and survive.
6944 You can save humanity and get programming skills!")
6945 (home-page "https://colobot.info")
6946 (license license:gpl3+)))
6948 (define-public gzdoom
6956 (url "https://github.com/coelckers/gzdoom")
6957 (commit (string-append "g" version))))
6958 (file-name (git-file-name name version))
6960 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
6961 (patches (search-patches "gzdoom-search-in-installed-share.patch"
6962 "gzdoom-find-system-libgme.patch"))
6963 (modules '((guix build utils)))
6966 ;; Remove some bundled libraries. XXX There are more, but removing
6967 ;; them would require, at least, patching the build system.
6968 (with-directory-excursion "libraries"
6969 (delete-file-recursively "bzip2")
6970 (delete-file-recursively "game-music-emu")
6971 (delete-file-recursively "jpeg")
6972 (delete-file-recursively "zlib"))
6977 (let ((out (assoc-ref %outputs "out")))
6980 "-DCMAKE_CXX_FLAGS:="
6981 "-DSHARE_DIR=\\\"" out "/share/\\\" "
6982 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
6984 ;; The build requires some extra convincing not to use the bundled
6985 ;; libgme previously deleted in the soure snippet.
6986 "-DFORCE_INTERNAL_GME=OFF"
6988 ;; Link libraries at build time instead of loading them at run time.
6990 "-DDYN_FLUIDSYNTH=OFF"
6993 "-DDYN_SNDFILE=OFF"))
6995 (modify-phases %standard-phases
6996 (add-before 'configure 'fix-referenced-paths
6997 (lambda* (#:key inputs outputs #:allow-other-keys)
6998 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
6999 (timidity++ (assoc-ref inputs "timidity++"))
7000 (out (assoc-ref outputs "out")))
7003 "src/CMakeLists.txt"
7004 (("COMMAND /bin/sh")
7005 (string-append "COMMAND " (which "sh"))))
7008 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7009 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7010 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7013 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7014 (("exename = \"timidity\"")
7015 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7017 (build-system cmake-build-system)
7018 (inputs `(("bzip2" ,bzip2)
7019 ("fluid-3" ,fluid-3)
7020 ("fluidsynth" ,fluidsynth)
7023 ("libjpeg" ,libjpeg-turbo)
7024 ("libsndfile" ,libsndfile)
7029 ("timidity++" ,timidity++)
7031 (native-inputs `(("pkg-config" ,pkg-config)
7033 (synopsis "Modern Doom 2 source port")
7034 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7035 renderer. It improves modding support with ZDoom's advanced mapping features
7036 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7037 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7038 (home-page "https://zdoom.org/index")
7039 ;; The source uses x86 assembly
7040 (supported-systems '("x86_64-linux" "i686-linux"))
7041 (license (list license:gpl3+ ; gzdoom game
7042 license:lgpl3+ ; gzdoom renderer
7043 license:expat ; gdtoa
7044 (license:non-copyleft ; modified dumb
7045 "file://dumb/licence.txt"
7046 "Dumb license, explicitly GPL compatible.")))))
7048 (define-public odamex
7056 "mirror://sourceforge/odamex/Odamex/" version "/"
7057 "odamex-src-" version ".tar.gz"))
7059 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7060 (build-system cmake-build-system)
7061 (arguments `(#:tests? #f)) ; no tests
7064 ("sdl-mixer" ,sdl-mixer)
7067 ("alsa-lib" ,alsa-lib)))
7068 (home-page "https://odamex.net/")
7069 (synopsis "Multiplayer Doom port")
7070 (description "Odamex is a modification of the Doom engine that
7071 allows players to easily join servers dedicated to playing Doom
7073 (license license:gpl2+)))
7075 (define-public chocolate-doom
7077 (name "chocolate-doom")
7081 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7088 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7089 (build-system gnu-build-system)
7090 (inputs `(("sdl2-net" ,sdl2-net)
7091 ("sdl2-mixer" , sdl2-mixer)
7094 `(("pkg-config" ,pkg-config)))
7095 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7098 "Chocolate Doom takes a different approach to other source ports. Its
7099 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7100 a conservative, historically accurate Doom source port, which is compatible
7101 with the thousands of mods and levels that were made before the Doom source
7102 code was released. Rather than flashy new graphics, Chocolate Doom's main
7103 features are its accurate reproduction of the game as it was played in the
7104 1990s. The project is developed around a carefully-considered philosophy that
7105 intentionally restricts which features may be added (and rejects any that
7107 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7108 (license license:gpl2)))
7110 (define-public crispy-doom
7112 (inherit chocolate-doom)
7113 (name "crispy-doom")
7118 (url "https://github.com/fabiangreffrath/crispy-doom")
7119 (commit (string-append "crispy-doom-" version))))
7120 (file-name (git-file-name name version))
7122 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7125 (package-native-inputs chocolate-doom)
7126 `(("automake" ,automake)
7127 ("autoreconf" ,autoconf))))
7130 (modify-phases %standard-phases
7132 ;; The bundled autogen.sh script unconditionally runs ./configure.
7133 (lambda _ (invoke "autoreconf" "-vif"))))))
7134 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7137 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7138 display resolution, removes the static limits of the Doom engine and offers
7139 further optional visual, tactical and physical enhancements while remaining
7140 entirely config file, savegame, netplay and demo compatible with the
7142 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7144 (define shlomif-cmake-modules
7147 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7148 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7149 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7151 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7153 (define-public rinutils
7160 (url "https://github.com/shlomif/rinutils")
7162 (file-name (git-file-name name version))
7165 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7168 ;; The following is only needed for tests.
7169 ("perl-file-find-object" ,perl-file-find-object)
7170 ("perl-test-differences" ,perl-test-differences)
7171 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7172 ("perl-io-all" ,perl-io-all)
7173 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7174 ("cmake-rules" ,shlomif-cmake-modules)
7175 ("pkg-config" ,pkg-config)))
7177 `(("cmocka" ,cmocka)
7178 ("perl-env-path", perl-env-path)
7179 ("perl-inline" ,perl-inline)
7180 ("perl-inline-c" ,perl-inline-c)
7181 ("perl-string-shellquote" ,perl-string-shellquote)
7182 ("perl-test-trailingspace" ,perl-test-trailingspace)
7183 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7184 ("perl-text-glob" ,perl-text-glob)
7185 ("perl-number-compare" ,perl-number-compare)
7186 ("perl-moo" ,perl-moo)))
7189 (modify-phases %standard-phases
7190 (add-after 'unpack 'fix-build-env
7191 (lambda* (#:key inputs #:allow-other-keys)
7192 (use-modules (guix build utils))
7193 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7194 (copy-file cmake-rules
7195 (string-append "cmake/"
7196 (strip-store-file-name cmake-rules)))
7200 (with-directory-excursion "../source"
7201 (setenv "FCS_TEST_BUILD" "1")
7202 (setenv "RINUTILS_TEST_BUILD" "1")
7203 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7204 ;; which requires tidy-all.
7205 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7206 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7207 (build-system cmake-build-system)
7208 (home-page "https://www.shlomifish.org/open-source/projects/")
7209 (synopsis "C11 / gnu11 utilities C library")
7210 (description "This package provides C11 / gnu11 utilities C library")
7211 (license license:expat)))
7213 (define-public fortune-mod
7215 (name "fortune-mod")
7221 (url "https://github.com/shlomif/fortune-mod")
7222 (commit (string-append "fortune-mod-" version))))
7223 (file-name (git-file-name name version))
7225 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7226 (build-system cmake-build-system)
7228 `(#:test-target "check"
7230 (modify-phases %standard-phases
7231 (add-after 'unpack 'fix-build-env
7232 (lambda* (#:key inputs #:allow-other-keys)
7233 (use-modules (guix build utils))
7234 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7235 (copy-file cmake-rules
7236 (string-append "fortune-mod/cmake/"
7237 (strip-store-file-name cmake-rules)))
7238 (chdir "fortune-mod")
7239 ;; TODO: Valgrind tests fail for some reason.
7240 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7241 (delete-file "tests/t/valgrind.t")
7243 (add-after 'install 'fix-install-directory
7244 (lambda* (#:key outputs #:allow-other-keys)
7245 ;; Move binary from "games/" to "bin/" and remove the latter. This
7246 ;; is easier than patching CMakeLists.txt since the tests hard-code
7247 ;; the location as well.
7248 (let* ((out (assoc-ref outputs "out"))
7249 (bin (string-append out "/bin"))
7250 (games (string-append out "/games")))
7251 (rename-file (string-append games "/fortune")
7252 (string-append bin "/fortune"))
7255 (inputs `(("recode" ,recode)))
7258 ;; The following is only needed for tests.
7259 ("perl-file-find-object" ,perl-file-find-object)
7260 ("perl-test-differences" ,perl-test-differences)
7261 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7262 ("perl-io-all" ,perl-io-all)
7263 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7264 ("cmake-rules" ,shlomif-cmake-modules)
7265 ("rinutils" ,rinutils)))
7266 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7267 (synopsis "The Fortune Cookie program from BSD games")
7268 (description "Fortune is a command-line utility which displays a random
7269 quotation from a collection of quotes.")
7270 (license license:bsd-4)))
7272 (define xonotic-data
7274 (name "xonotic-data")
7279 (uri (string-append "http://dl.xonotic.org/xonotic-"
7281 (file-name (string-append name "-" version ".zip"))
7284 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7285 (build-system trivial-build-system)
7287 `(("unzip" ,unzip)))
7289 `(#:modules ((guix build utils))
7292 (use-modules (guix build utils))
7293 (let* ((out (assoc-ref %outputs "out"))
7294 (xonotic (string-append out "/share/xonotic"))
7295 (source (assoc-ref %build-inputs "source"))
7296 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7297 (copy-file source (string-append ,name "-" ,version ".zip"))
7298 (invoke unzip (string-append ,name "-" ,version ".zip"))
7302 (copy-recursively "data"
7303 (string-append xonotic "/data"))
7304 (copy-recursively "server"
7305 (string-append xonotic "/server"))
7306 (install-file "key_0.d0pk" xonotic)))))
7307 (home-page "http://xonotic.org")
7308 (synopsis "Data files for Xonotic")
7310 "Xonotic-data provides the data files required by the game Xonotic.")
7311 (license (list license:gpl2+
7312 (license:x11-style "file://server/rcon.pl")))))
7314 (define-public xonotic
7321 (uri (string-append "http://dl.xonotic.org/xonotic-"
7322 version "-source.zip"))
7323 (file-name (string-append name "-" version ".zip"))
7326 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7327 (build-system gnu-build-system)
7329 `(#:configure-flags (list (string-append "--prefix="
7330 (assoc-ref %outputs "out"))
7331 "--disable-rijndael")
7333 (modify-phases %standard-phases
7334 (add-before 'configure 'make-darkplaces
7335 (lambda* (#:key outputs #:allow-other-keys)
7336 (let* ((out (assoc-ref outputs "out"))
7337 (sharedir (string-append out "/share/xonotic/")))
7338 (invoke "make" "-C" "source/darkplaces"
7339 (string-append "DP_FS_BASEDIR="
7341 "DP_LINK_TO_LIBJPEG=1"
7346 (invoke "make" "-C" "source/darkplaces"
7347 (string-append "DP_FS_BASEDIR="
7349 "DP_LINK_TO_LIBJPEG=1"
7354 (invoke "make" "-C" "source/darkplaces"
7355 (string-append "DP_FS_BASEDIR="
7357 "DP_LINK_TO_LIBJPEG=1"
7362 (add-before 'configure 'bootstrap
7364 (chdir "source/d0_blind_id")
7365 (invoke "sh" "autogen.sh")))
7366 (add-after 'build 'install-desktop-entry
7367 (lambda* (#:key outputs #:allow-other-keys)
7368 ;; Add .desktop files for the 2 variants and the symlink
7369 (let* ((output (assoc-ref outputs "out"))
7370 (apps (string-append output "/share/applications")))
7372 (with-output-to-file
7373 (string-append apps "/xonotic-glx.desktop")
7378 Comment=Xonotic glx~@
7379 Exec=~a/bin/xonotic-glx~@
7380 TryExec=~@*~a/bin/xonotic-glx~@
7385 (with-output-to-file
7386 (string-append apps "/xonotic-sdl.desktop")
7391 Comment=Xonotic sdl~@
7392 Exec=~a/bin/xonotic-sdl~@
7393 TryExec=~@*~a/bin/xonotic-sdl~@
7398 (with-output-to-file
7399 (string-append apps "/xonotic.desktop")
7405 Exec=~a/bin/xonotic-glx~@
7406 TryExec=~@*~a/bin/xonotic~@
7412 (add-after 'install-desktop-entry 'install-icons
7413 (lambda* (#:key outputs #:allow-other-keys)
7414 (let ((out (assoc-ref outputs "out")))
7415 (with-directory-excursion "../../misc/logos/icons_png/"
7418 (let* ((size (string-filter char-numeric? file))
7419 (icons (string-append out "/share/icons/hicolor/"
7420 size "x" size "/apps")))
7422 (copy-file file (string-append icons "/xonotic.png"))))
7423 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7424 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7425 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7426 (add-after 'install-icons 'install-binaries
7427 (lambda* (#:key outputs #:allow-other-keys)
7428 (let ((out (assoc-ref outputs "out")))
7429 (define (install src dst)
7430 (let ((dst (string-append out dst)))
7431 (mkdir-p (dirname dst))
7432 (copy-file src dst)))
7433 (mkdir-p (string-append out "/bin"))
7434 (install "../darkplaces/darkplaces-dedicated"
7435 "/bin/xonotic-dedicated")
7436 (install "../darkplaces/darkplaces-glx"
7438 (install "../darkplaces/darkplaces-sdl"
7440 ;; Provide a default xonotic executable, defaulting to SDL.
7441 (symlink (string-append out "/bin/xonotic-sdl")
7442 (string-append out "/bin/xonotic"))
7444 (add-after 'install-binaries 'install-data
7445 (lambda* (#:key outputs inputs #:allow-other-keys)
7446 (let* ((out (assoc-ref outputs "out"))
7447 (data (assoc-ref inputs "xonotic-data")))
7448 (symlink (string-append data "/share/xonotic")
7449 (string-append out "/share/xonotic"))
7451 (add-after 'install-binaries 'wrap-binaries
7452 (lambda* (#:key outputs inputs #:allow-other-keys)
7453 ;; Curl and libvorbis need to be wrapped so that we get
7454 ;; sound and networking.
7455 (let* ((out (assoc-ref outputs "out"))
7456 (bin (string-append out "/bin/xonotic"))
7457 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7458 (bin-glx (string-append out "/bin/xonotic-glx"))
7459 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7460 (curl (assoc-ref inputs "curl"))
7461 (vorbis (assoc-ref inputs "libvorbis")))
7463 `("LD_LIBRARY_PATH" ":" prefix
7464 (,(string-append curl "/lib:" vorbis "/lib"))))
7465 (wrap-program bin-sdl
7466 `("LD_LIBRARY_PATH" ":" prefix
7467 (,(string-append curl "/lib:" vorbis "/lib"))))
7468 (wrap-program bin-glx
7469 `("LD_LIBRARY_PATH" ":" prefix
7470 (,(string-append curl "/lib:" vorbis "/lib"))))
7471 (wrap-program bin-dedicated
7472 `("LD_LIBRARY_PATH" ":" prefix
7473 (,(string-append curl "/lib:" vorbis "/lib"))))
7476 `(("xonotic-data" ,xonotic-data)
7477 ("alsa-lib" ,alsa-lib)
7479 ("libjpeg" ,libjpeg-turbo)
7480 ("libmodplug" ,libmodplug)
7481 ("libvorbis" ,libvorbis)
7484 ("libxxf86dga" ,libxxf86dga)
7485 ("libxxf86vm" ,libxxf86vm)
7487 ("libxext" ,libxext)
7489 ("libxdmcp" ,libxdmcp)
7492 ("freetype" ,freetype)
7495 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7498 ("autoconf" ,autoconf)
7499 ("automake" ,automake)
7500 ("pkg-config" ,pkg-config)
7501 ("libtool" ,libtool)
7503 (home-page "https://xonotic.org")
7504 (synopsis "Fast-paced first-person shooter game")
7506 "Xonotic is a free, fast-paced first-person shooter.
7507 The project is geared towards providing addictive arena shooter
7508 gameplay which is all spawned and driven by the community itself.
7509 Xonotic is a direct successor of the Nexuiz project with years of
7510 development between them, and it aims to become the best possible
7511 open-source FPS of its kind.")
7512 (license (list license:gpl2+
7513 license:bsd-3 ; /source/d0_blind_id folder and others
7514 (license:x11-style "" "See file rcon.pl.")))))
7516 (define-public frotz
7522 (uri (list (string-append
7523 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7524 "frotz/frotz-" version ".tar.gz")
7526 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7527 "frotz/frotz-" version ".tar.gz")))
7530 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7531 (build-system gnu-build-system)
7533 `(#:tests? #f ; there are no tests
7535 (modify-phases %standard-phases
7537 (add-before 'build 'curses
7539 (substitute* "Makefile"
7540 (("lcurses") "lncurses"))
7543 (lambda* (#:key outputs #:allow-other-keys)
7544 (let* ((out (assoc-ref outputs "out"))
7545 (bin (string-append out "/bin"))
7546 (man (string-append out "/share/man/man6")))
7547 (install-file "frotz" bin)
7549 (install-file "doc/frotz.6" man)
7551 (inputs `(("libmodplug" ,libmodplug)
7552 ("libsamplerate" ,libsamplerate)
7553 ("libsndfile" ,libsndfile)
7554 ("libvorbis" ,libvorbis)
7555 ("ncurses" ,ncurses)))
7556 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7557 (description "Frotz is an interpreter for Infocom games and other Z-machine
7558 games in the text adventure/interactive fiction genre. This version of Frotz
7559 complies with standard 1.0 of Graham Nelson's specification. It plays all
7560 Z-code games V1-V8, including V6, with sound support through libao, and uses
7561 ncurses for text display.")
7562 (home-page "http://frotz.sourceforge.net")
7563 (license license:gpl2+)))
7565 (define-public frotz-dumb-terminal
7567 (name "frotz-dumb-terminal")
7571 (uri (list (string-append
7572 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7573 "frotz/frotz-" version ".tar.gz")
7575 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7576 "frotz/frotz-" version ".tar.gz")))
7579 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7580 (build-system gnu-build-system)
7582 `(#:tests? #f ; there are no tests
7584 (modify-phases %standard-phases
7588 (invoke "make" "dumb")))
7590 (lambda* (#:key outputs #:allow-other-keys)
7591 (let* ((out (assoc-ref outputs "out"))
7592 (bin (string-append out "/bin"))
7593 (man (string-append out "/share/man/man6")))
7594 (install-file "dfrotz" bin)
7596 (install-file "doc/dfrotz.6" man)
7598 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7599 (description "Frotz is an interpreter for Infocom games and
7600 other Z-machine games in the text adventure/interactive fiction genre.
7601 dfrotz is the dumb interface version. You get no screen control; everything
7602 is just printed to the terminal line by line. The terminal handles all the
7603 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7604 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7605 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7606 to play games on webpages. It can also be made into a chat bot.")
7607 (home-page "http://frotz.sourceforge.net")
7608 (license license:gpl2+)))
7610 (define-public frotz-sdl
7611 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7618 (url "https://gitlab.com/DavidGriffith/frotz")
7622 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7623 (file-name (git-file-name name version))))
7624 (build-system gnu-build-system)
7626 `(#:tests? #f ; there are no tests
7628 (modify-phases %standard-phases
7630 (add-before 'build 'patch-makefile
7632 (substitute* "Makefile"
7633 (("lcurses") "lncurses")
7634 (("^BUILD_DATE_TIME =.*$")
7635 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
7639 (invoke "make" "sdl")))
7641 (lambda* (#:key outputs #:allow-other-keys)
7642 (let* ((out (assoc-ref outputs "out"))
7643 (bin (string-append out "/bin"))
7644 (man (string-append out "/share/man/man6")))
7645 (install-file "sfrotz" bin)
7647 (install-file "doc/sfrotz.6" man)
7650 `(("pkg-config" ,pkg-config)
7653 (inputs `(("sdl2" ,sdl2)
7654 ("sdl2-mixer" ,sdl2-mixer)
7655 ("libmodplug" ,libmodplug)
7656 ("libsamplerate" ,libsamplerate)
7657 ("libsndfile" ,libsndfile)
7658 ("libvorbis" ,libvorbis)
7659 ("ncurses" ,ncurses)
7660 ("freetype" ,freetype)
7661 ("libjpeg-turbo" ,libjpeg-turbo)))
7662 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
7663 (description "Frotz is an interpreter for Infocom games and other Z-machine
7664 games in the text adventure/interactive fiction genre. This version of Frotz
7665 using SDL fully supports all these versions of the Z-Machine including the
7666 graphical version 6. Graphics and sound are created through the use of the SDL
7667 libraries. AIFF sound effects and music in MOD and OGG formats are supported
7668 when packaged in Blorb container files or optionally from individual files.")
7669 (home-page "http://frotz.sourceforge.net")
7670 (license license:gpl2+))))
7672 (define-public frozen-bubble
7673 ;; Last official release is very outdated (2010). Use latest commit (2017).
7674 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
7677 (name "frozen-bubble")
7678 (version (git-version "2.2.1" revision commit))
7683 (url "https://github.com/kthakore/frozen-bubble")
7685 (file-name (git-file-name name version))
7687 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
7688 (build-system perl-build-system)
7691 (modify-phases %standard-phases
7692 ;; Build process needs to create files in the "server"
7694 (add-after 'unpack 'fix-permissions
7696 (for-each make-file-writable
7697 (find-files "server" "." #:directories? #t))))
7698 ;; By default, build stops at warnings.
7699 (add-after 'unpack 'prevent-build-error
7701 (substitute* "inc/My/Builder.pm"
7704 (add-after 'install 'install-desktop-file-and-icons
7705 (lambda* (#:key outputs #:allow-other-keys)
7706 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
7707 (hicolor (string-append share "/icons/hicolor")))
7708 ;; Create desktop entry.
7709 (make-desktop-entry-file
7710 (string-append share "/applications/" ,name ".desktop")
7711 #:name "Frozen Bubble"
7712 #:comment "Frozen Bubble arcade game"
7715 #:categories '("Game" "ArcadeGame"))
7717 (with-directory-excursion "share/icons"
7720 (let* ((dim (string-append size "x" size))
7721 (dir (string-append hicolor "/" dim "/apps")))
7724 (string-append "frozen-bubble-icon-" dim ".png")
7725 (string-append dir "/frozen-bubble.png"))))
7726 '("16" "32" "48" "64"))))
7728 (add-after 'install 'wrap-perl-libs
7729 (lambda* (#:key outputs #:allow-other-keys)
7730 (let ((out (assoc-ref outputs "out"))
7731 (perl5lib (getenv "PERL5LIB")))
7732 (for-each (lambda (prog)
7733 (wrap-program (string-append out "/" prog)
7734 `("PERL5LIB" ":" prefix
7735 (,(string-append perl5lib ":" out
7736 "/lib/perl5/site_perl")))))
7737 (find-files "bin" ".")))
7740 `(("perl-alien-sdl" ,perl-alien-sdl)
7741 ("perl-capture-tiny" ,perl-capture-tiny)
7742 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
7743 ("perl-module-build" ,perl-module-build)
7744 ("pkg-config" ,pkg-config)))
7747 ("perl-compress-bzip2" ,perl-compress-bzip2)
7748 ("perl-file-sharedir" ,perl-file-sharedir)
7749 ("perl-file-slurp" ,perl-file-slurp)
7750 ("perl-file-which" ,perl-file-which)
7751 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
7752 ("perl-sdl" ,perl-sdl)
7753 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
7754 (home-page "http://frozen-bubble.org/")
7755 (synopsis "Puzzle with bubbles")
7757 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
7758 you attempt to shoot bubbles into groups of the same color to cause them to
7761 Players compete as penguins and must use the arrow keys to aim a colored
7762 bubble at groups of bubbles. The objective is to clear all the bubbles off
7763 the screen before a bubble passes below a line at the bottom.
7765 It features 100 single-player levels, a two-player mode, music and striking
7766 graphics. A level editor is also included to allow players to create and play
7768 (license license:gpl2))))
7770 (define-public libmanette
7776 (uri (string-append "mirror://gnome/sources/libmanette/"
7777 (version-major+minor version) "/"
7778 "libmanette-" version ".tar.xz"))
7781 "1xrc6rh73v5w3kbkflzv1yg8sbxk4wf06hfk95raxhxlssza9q2g"))))
7782 (build-system meson-build-system)
7784 `(("glib" ,glib "bin") ; for glib-compile-resources
7785 ("gobject-introspection" ,gobject-introspection)
7786 ("pkg-config" ,pkg-config)
7789 `(("libevdev" ,libevdev)
7790 ("libgudev" ,libgudev)))
7791 (home-page "https://wiki.gnome.org/Apps/Games")
7792 (synopsis "Game controller library")
7793 (description "Libmanette is a small GObject library giving you simple
7794 access to game controllers. It supports the de-facto standard gamepads as
7795 defined by the W3C standard Gamepad specification or as implemented by the SDL
7797 (license license:lgpl2.1+)))
7799 (define-public quadrapassel
7801 (name "quadrapassel")
7805 (uri (string-append "mirror://gnome/sources/quadrapassel/"
7806 (version-major+minor version) "/"
7807 "quadrapassel-" version ".tar.xz"))
7810 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
7811 (build-system meson-build-system)
7815 (modify-phases %standard-phases
7816 (add-after 'unpack 'skip-gtk-update-icon-cache
7817 ;; Don't create 'icon-theme.cache'.
7819 (substitute* "build-aux/meson_post_install.py"
7820 (("gtk-update-icon-cache") (which "true")))
7823 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
7824 ("gettext" ,gettext-minimal)
7825 ("glib" ,glib "bin") ;for glib-compile-resources
7826 ("itstool" ,itstool)
7827 ("libxml2" ,libxml2) ;for xmllint
7828 ("pkg-config" ,pkg-config)
7831 `(("clutter" ,clutter)
7832 ("clutter-gtk" ,clutter-gtk)
7835 ("libcanberra" ,libcanberra)
7836 ("libmanette" ,libmanette)
7837 ("librsvg" ,librsvg)))
7838 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
7839 (synopsis "GNOME version of Tetris")
7840 (description "Quadrapassel comes from the classic falling-block game,
7841 Tetris. The goal of the game is to create complete horizontal lines of
7842 blocks, which will disappear. The blocks come in seven different shapes made
7843 from four blocks each: one straight, two L-shaped, one square, and two
7844 S-shaped. The blocks fall from the top center of the screen in a random
7845 order. You rotate the blocks and move them across the screen to drop them in
7846 complete lines. You score by dropping blocks fast and completing lines. As
7847 your score gets higher, you level up and the blocks fall faster.")
7848 (license license:gpl2+)))
7850 (define-public endless-sky
7852 (name "endless-sky")
7858 (url "https://github.com/endless-sky/endless-sky")
7859 (commit (string-append "v" version))))
7860 (file-name (git-file-name name version))
7862 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
7863 (build-system scons-build-system)
7865 `(#:scons ,scons-python2
7866 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
7867 #:tests? #f ; no tests
7869 (modify-phases %standard-phases
7870 (add-after 'unpack 'patch-resource-locations
7871 (lambda* (#:key outputs #:allow-other-keys)
7872 (substitute* "source/Files.cpp"
7874 (string-append (assoc-ref outputs "out") "/")))
7876 (add-after 'unpack 'patch-scons
7878 (substitute* "SConstruct"
7879 ;; Keep environmental variables
7880 (("Environment\\(\\)")
7881 "Environment(ENV = os.environ)")
7882 ;; Install into %out/bin
7883 (("games\"") "bin\""))
7887 ("libjpeg" ,libjpeg-turbo)
7892 (home-page "https://endless-sky.github.io/")
7893 (synopsis "2D space trading and combat game")
7894 (description "Endless Sky is a 2D space trading and combat game. Explore
7895 other star systems. Earn money by trading, carrying passengers, or completing
7896 missions. Use your earnings to buy a better ship or to upgrade the weapons and
7897 engines on your current one. Blow up pirates. Take sides in a civil war. Or
7898 leave human space behind and hope to find friendly aliens whose culture is more
7899 civilized than your own.")
7900 (license (list license:gpl3+
7903 license:public-domain))))
7905 (define-public stepmania
7908 (version "5.1.0-b2")
7913 (url "https://github.com/stepmania/stepmania")
7914 (commit (string-append "v" version))))
7915 (file-name (git-file-name name version))
7918 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
7919 (modules '((guix build utils)))
7922 ;; Remove song files, which are licensed under a non-commercial
7923 ;; clause, and a course pointing to them.
7924 (for-each delete-file-recursively
7925 '("Songs/StepMania 5/Goin' Under"
7926 "Songs/StepMania 5/MechaTribe Assault"
7927 "Songs/StepMania 5/Springtime"))
7928 (for-each delete-file '("Courses/Default/Jupiter.crs"
7929 "Courses/Default/Jupiter.png"))
7931 (substitute* "extern/CMakeLists.txt"
7932 (("include\\(CMakeProject-png.cmake\\)") ""))
7933 (delete-file-recursively "extern/libpng")
7935 (build-system cmake-build-system)
7937 `(#:tests? #f ;FIXME: couldn't find how to run tests
7938 #:build-type "Release"
7939 #:out-of-source? #f ;for the 'install-desktop' phase
7941 (list "-DWITH_SYSTEM_FFMPEG=1"
7942 ;; SSE instructions are available on Intel systems only.
7943 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
7947 '("-DWITH_SSE2=NO"))
7948 ;; Configuration cannot find GTK2 without the two following
7950 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
7951 (assoc-ref %build-inputs "gtk+")
7952 "/lib/gtk-2.0/include")
7953 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
7954 (assoc-ref %build-inputs "glib")
7955 "/lib/glib-2.0/include"))
7957 (modify-phases %standard-phases
7958 (add-after 'unpack 'ensure-application-files-can-be-found
7959 (lambda* (#:key outputs #:allow-other-keys)
7960 (let ((out (assoc-ref outputs "out")))
7961 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
7962 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
7963 (string-append "\"" out
7964 "/share/stepmania/GtkModule.so\"")))
7965 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
7966 (("Root = sDirOfExecutable")
7967 (string-append "Root = \"" out "/share/stepmania/\""))
7968 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
7969 (string-append "\"" out "/share/stepmania/" dir "\"")))
7970 (substitute* "src/RageFileManager.cpp"
7971 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
7972 (string-append "\"" out "/share/stepmania/\""))))
7974 (add-after 'unpack 'fix-install-subdir
7975 ;; Installation would be done in "%out/stepmania-X.Y", but we
7976 ;; prefer the more common layout "%out/share/stepmania".
7978 (substitute* "src/CMakeLists.txt"
7979 (("\"stepmania-.*?\"") "\"share/stepmania\""))
7981 (add-after 'unpack 'unbundle-libpng
7982 (lambda* (#:key inputs #:allow-other-keys)
7983 (substitute* "src/CMakeLists.txt"
7984 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
7985 (string-append (assoc-ref inputs "libpng") "/include")))
7987 (add-after 'install 'install-executable
7988 (lambda* (#:key outputs #:allow-other-keys)
7989 (let* ((out (assoc-ref outputs "out"))
7990 (bin (string-append out "/bin"))
7991 (exe (string-append out "/share/stepmania/stepmania")))
7993 (symlink exe (string-append bin "/stepmania"))
7995 (add-after 'install-executable 'install-desktop
7996 (lambda* (#:key outputs #:allow-other-keys)
7997 (let* ((out (assoc-ref outputs "out"))
7998 (share (string-append out "/share"))
7999 (applications (string-append share "/applications"))
8000 (icons (string-append share "/icons")))
8001 (install-file "stepmania.desktop" applications)
8003 (copy-recursively "icons" icons)
8005 ;; Move documentation in a more usual place, i.e.,
8006 ;; "%out/share/doc/stepmania/".
8007 (add-after 'install-desktop 'install-doc
8008 (lambda* (#:key outputs #:allow-other-keys)
8009 (let* ((out (assoc-ref outputs "out"))
8010 (share (string-append out "/share")))
8011 (with-directory-excursion share
8013 (symlink "../stepmania/Docs" "doc/stepmania"))
8016 `(("pkg-config" ,pkg-config)
8019 `(("alsa-lib" ,alsa-lib)
8020 ;; Per upstream, StepMania is only guaranteed to work with a very
8021 ;; specific FFmpeg version, which is included in the repository as
8022 ;; a Git submodule. This particular version requirement usually
8023 ;; changes every few years.
8024 ("ffmpeg" ,ffmpeg-for-stepmania)
8028 ("jsoncpp" ,jsoncpp)
8030 ("libjpeg" ,libjpeg-turbo)
8034 ("libvorbis" ,libvorbis)
8035 ("libxinerama" ,libxinerama)
8036 ("libxrandr" ,libxrandr)
8039 ("pulseaudio" ,pulseaudio)
8043 (synopsis "Advanced rhythm game designed for both home and arcade use")
8044 (description "StepMania is a dance and rhythm game. It features 3D
8045 graphics, keyboard and dance pad support, and an editor for creating your own
8048 This package provides the core application, but no song is shipped. You need
8049 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8050 (home-page "https://www.stepmania.com")
8051 (license license:expat)))
8053 (define-public btanks
8056 (version "0.9.8083")
8060 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8061 "btanks-" version ".tar.bz2"))
8064 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8065 (build-system scons-build-system)
8067 `(#:tests? #f ; there are none
8068 #:scons ,scons-python2
8069 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8071 (modify-phases %standard-phases
8072 (add-after 'unpack 'replace-removed-scons-syntax
8074 (substitute* "SConstruct"
8075 (("Options") "Variables")
8076 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8077 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8079 (add-after 'set-paths 'set-sdl-paths
8080 (lambda* (#:key inputs #:allow-other-keys)
8082 (string-append (assoc-ref inputs "sdl")
8084 (or (getenv "CPATH") "")))
8086 (add-after 'unpack 'fix-compilation-errors
8088 (substitute* "mrt/base_file.h"
8089 (("#include <string>" m)
8090 (string-append m "\n#include <sys/types.h>")))
8091 (substitute* '("engine/sl08/sl08.h"
8092 "engine/sl08/sl08.py")
8093 (("signal = NULL") "signal = 0")
8094 (("object\\(NULL\\)") "object(0)")
8095 (("func\\(NULL\\)") "func(0)")
8096 ((" connect\\(signal_ref\\)")
8097 " this->connect(signal_ref)"))
8098 (substitute* "math/range_list.h"
8099 ((" lower_bound\\(value\\)")
8100 " this->lower_bound(value)")
8103 (substitute* "clunk/source.cpp"
8104 (("using namespace clunk" m)
8105 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8107 (add-after 'unpack 'find-lua
8109 (substitute* "engine/SConscript"
8110 (("lua5.1") "lua-5.1")
8111 (("bt_libs.append\\(lua\\)")
8112 "bt_libs.append(\"lua\")"))
8117 ("libsmpeg" ,libsmpeg-with-sdl1)
8118 ("libvorbis" ,libvorbis)
8120 ("sdl" ,(sdl-union (list sdl
8126 `(("pkg-config" ,pkg-config)
8128 (home-page "http://btanks.sourceforge.net")
8129 (synopsis "Multiplayer tank battle game")
8130 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8131 game, where you can choose one of three vehicles and eliminate your enemy
8132 using the whole arsenal of weapons. It has original cartoon-like graphics and
8133 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8135 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8136 ;; released under GPLv2 or later. It comes with extra exceptions for the
8138 (license (list license:gpl2+ license:lgpl2.1+))))
8140 (define-public slingshot
8148 (url "https://github.com/ryanakca/slingshot")
8150 (file-name (git-file-name name version))
8153 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8154 (build-system python-build-system)
8156 `(#:python ,python-2))
8158 `(("python-pygame" ,python2-pygame)))
8159 (home-page "https://github.com/ryanakca/slingshot")
8160 (synopsis "Simple 2D shooting strategy game set in space")
8161 (description "Slingshot is a two-dimensional strategy game where two
8162 players attempt to shoot one another through a section of space populated by
8163 planets. The main feature of the game is that the shots, once fired, are
8164 affected by the gravity of the planets.")
8165 (license license:gpl2+)))
8167 (define-public 4dtris
8174 (uri (string-append "https://launchpad.net/4dtris/"
8175 (version-major+minor version)
8176 "/" version "/+download/4dtris_"
8177 version ".orig.tar.gz"))
8180 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8181 (build-system gnu-build-system)
8184 (modify-phases %standard-phases
8185 (add-after 'unpack 'fix-install-directories
8186 (lambda* (#:key outputs #:allow-other-keys)
8187 (let ((out (assoc-ref outputs "out")))
8188 (substitute* "Makefile.in"
8189 (("bindir = /usr/games")
8190 (string-append "bindir = " out "/bin"))
8191 (("/usr/share/applications")
8192 (string-append out "/share/applications"))
8193 (("/usr/share/games/4dtris")
8194 (string-append out "/share/4dtris"))))
8196 (add-after 'set-paths 'set-sdl-paths
8197 (lambda* (#:key inputs #:allow-other-keys)
8199 (string-append (assoc-ref inputs "sdl")
8201 (or (getenv "CPATH") "")))
8204 `(("fontconfig" ,fontconfig)
8205 ("freeglut" ,freeglut)
8206 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8207 (home-page "https://launchpad.net/4dtris/")
8208 (synopsis "4D Tetris")
8209 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8210 game field is extended to 4D space, which has to filled up by the gamer with
8212 (license license:gpl3)))
8214 (define-public arx-libertatis
8216 (name "arx-libertatis")
8221 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8225 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8226 (build-system cmake-build-system)
8227 (outputs '("out" "installer"))
8229 '(#:tests? #f ; No tests.
8231 (modify-phases %standard-phases
8232 (add-after 'unpack 'fix-install-helper-paths
8233 (lambda* (#:key inputs #:allow-other-keys)
8234 (let ((p7zip (assoc-ref inputs "p7zip"))
8235 (innoextract (assoc-ref inputs "innoextract"))
8236 (wget (assoc-ref inputs "wget"))
8237 (zenity (assoc-ref inputs "zenity")))
8238 (substitute* "scripts/arx-install-data"
8239 (("have innoextract")
8240 (string-append "have " innoextract "/bin/innoextract"))
8241 (("then innoextract")
8242 (string-append "then " innoextract "/bin/innoextract"))
8243 (("else innoextract")
8244 (string-append "else " innoextract "/bin/innoextract"))
8245 (("for _extract_zip_sz in 7za 7z")
8246 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8247 (("else if have 7z")
8248 (string-append "else if have " p7zip "/bin/7za"))
8250 (string-append p7zip "/bin/7z x -tiso"))
8252 (string-append "if have " wget "/bin/wget"))
8254 (string-append wget "/bin/wget -O"))
8255 (("for backend in \\$preferred zenity")
8256 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8257 (("zenity +--title")
8258 (string-append zenity "/bin/zenity --title"))
8260 (string-append zenity "/bin/zenity)"))))
8262 (add-after 'install 'move-installer
8263 (lambda* (#:key outputs #:allow-other-keys)
8264 (let ((out (assoc-ref outputs "out"))
8265 (installer (assoc-ref outputs "installer")))
8266 (mkdir-p (string-append installer "/bin"))
8267 (rename-file (string-append out "/bin/arx-install-data")
8268 (string-append installer "/bin/arx-install-data"))))))))
8270 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8271 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8277 ("freetype" ,freetype)
8278 ;; The following are only needed by the arx-install-data script.
8279 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8280 ("zenity" ,zenity) ; GUI for install-helper.
8281 ("wget" ,wget) ; Used by the install-helper to download the patch.
8282 ;; The install-helper needs it to extract the patch.
8283 ("innoextract" ,innoextract)))
8284 (home-page "https://arx-libertatis.org/")
8285 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8286 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8287 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8288 This port however does not include the game data, so you need to obtain a copy
8289 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8290 features crafting, melee and ranged combat, as well as a unique casting system
8291 where the player draws runes in real time to effect the desired spell.")
8292 (license license:gpl3+)))
8294 (define-public edgar
8302 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8303 version "/edgar-" version "-1.tar.gz"))
8305 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8306 (build-system gnu-build-system)
8307 (arguments '(#:tests? #f ; there are no tests
8310 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8311 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8313 (modify-phases %standard-phases
8315 (add-before 'build 'fix-env
8316 (lambda* (#:key inputs #:allow-other-keys)
8318 (string-append (assoc-ref inputs "sdl2-union")
8320 (or (getenv "CPATH") "")))
8323 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8326 `(("pkg-config" ,pkg-config)
8327 ("autoconf" ,autoconf)
8328 ("automake" ,automake)
8329 ("gnu-gettext" ,gettext-minimal)
8330 ("libtool" ,libtool)
8332 (synopsis "2d action platformer game")
8333 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8334 When Edgar's father fails to return home after venturing out one dark and stormy night,
8335 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8336 a fortress beyond the forbidden swamp.")
8337 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8338 (license license:gpl2+)))
8340 (define-public openclonk
8347 "https://www.openclonk.org/builds/release/" version "/"
8348 "openclonk-" version "-src.tar.bz2"))
8351 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8352 (build-system cmake-build-system)
8354 `(#:configure-flags '("-DAudio_TK=OpenAL")
8355 #:test-target "tests"
8357 (modify-phases %standard-phases
8358 (add-after 'unpack 'prepare-gmock
8359 (lambda* (#:key inputs #:allow-other-keys)
8361 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8362 (substitute* "tests/CMakeLists.txt"
8364 (string-append (getcwd) "/gmock/googlemock"))
8366 (string-append (getcwd) "/gmock/googletest"))
8367 (("PATH_SUFFIXES \"src\" \"gtest\"")
8368 "PATH_SUFFIXES \"src\""))
8370 (add-after 'unpack 'adjust-backward-cpp-includes
8372 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8373 ;; that includes external libraries such as libdl from glibc.
8374 ;; By default, CMake interface includes are treated as "system
8375 ;; headers", and GCC behaves poorly when glibc is passed as a
8376 ;; system header (causing #include_next failures).
8378 ;; Here we prevent targets that consume the Backward::Backward
8379 ;; interface from treating it as "system includes".
8380 (substitute* "CMakeLists.txt"
8381 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8382 (string-append "set_property(TARGET " target " PROPERTY "
8383 "NO_SYSTEM_FROM_IMPORTED true)\n"
8386 (add-after 'unpack 'add-libiberty
8387 ;; Build fails upon linking executables without this.
8389 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8390 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8391 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8393 (add-after 'add-libiberty 'lax-freealut-requirement
8394 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8395 ;; it as 1.0.1. Force minimal version.
8397 (substitute* "cmake/FindAudio.cmake"
8398 (("freealut>=1.1.0") "freealut>=1.0.1"))
8400 (add-after 'lax-freealut-requirement 'fix-directories
8401 ;; Prefer "$out/share/openclonk" over
8402 ;; "$out/share/games/openclonk". Also install "openclonk"
8403 ;; binary in "bin/", not "games/".
8405 (substitute* "CMakeLists.txt"
8406 (("share/games/openclonk") "share/openclonk")
8407 (("TARGETS openclonk DESTINATION games")
8408 "TARGETS openclonk DESTINATION bin"))
8411 `(("googlemock" ,(package-source googletest))
8412 ("googletest" ,googletest)
8413 ("pkg-config" ,pkg-config)))
8415 `(("freealut" ,freealut)
8416 ("freetype" ,freetype)
8418 ("libiberty" ,libiberty)
8419 ("libjpeg" ,libjpeg-turbo)
8422 ("libvorbis" ,libvorbis)
8423 ("libxrandr" ,libxrandr)
8425 ("miniupnpc" ,miniupnpc)
8428 ("readline" ,readline)
8430 ("tinyxml" ,tinyxml)
8432 (home-page "https://www.openclonk.org/")
8434 "Multiplayer action game where you control small and nimble humanoids")
8435 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8436 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8437 antfarm-style landscape, the player controls a crew of Clonks, small but
8438 robust humanoid beings. The game encourages free play but the normal goal is
8439 to either exploit valuable resources from the earth by building a mine or
8440 fight each other on an arena-like map.")
8441 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8442 (license (list license:isc license:cc-by3.0))))
8444 (define-public flare-engine
8446 (name "flare-engine")
8451 (url "https://github.com/flareteam/flare-engine")
8452 (commit (string-append "v" version))))
8453 (file-name (git-file-name name version))
8456 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8457 (build-system cmake-build-system)
8459 `(#:tests? #f ;no test
8460 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8462 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8463 ("python" ,python-wrapper)
8464 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8465 (home-page "http://www.flarerpg.org/")
8466 (synopsis "Action Roleplaying Engine")
8467 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8468 game engine built to handle a very specific kind of game: single-player 2D
8470 (license license:gpl3+)))
8472 (define-public flare-game
8479 (url "https://github.com/flareteam/flare-game")
8480 (commit (string-append "v" version))))
8481 (file-name (git-file-name name version))
8484 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8485 (build-system cmake-build-system)
8487 `(#:tests? #f ;no test
8488 #:configure-flags '("-DDATADIR=share/flare")
8490 (modify-phases %standard-phases
8491 ;; Flare expects the mods to be located in the same folder.
8492 ;; Yet, "default" mod is in the engine, whereas the others
8493 ;; are in the current package. Merge everything here with
8495 (add-after 'install 'add-default-mod
8496 (lambda* (#:key inputs outputs #:allow-other-keys)
8497 (let* ((out (assoc-ref outputs "out"))
8498 (mods (string-append out "/share/flare/mods")))
8499 (with-directory-excursion mods
8500 (symlink (string-append (assoc-ref inputs "flare-engine")
8501 "/share/flare/mods/default")
8504 (add-after 'install 'install-executable
8505 ;; The package only provides assets for the game, the
8506 ;; executable coming from "flare-engine". Since more than
8507 ;; one game may use the engine, we create a new executable,
8508 ;; "flare-game", which launches the engine with appropriate
8510 (lambda* (#:key inputs outputs #:allow-other-keys)
8511 (let* ((out (assoc-ref outputs "out"))
8512 (bash (string-append (assoc-ref inputs "bash")
8514 (flare (string-append (assoc-ref inputs "flare-engine")
8516 (script (string-append out "/bin/flare-game")))
8517 (mkdir-p (dirname script))
8518 (call-with-output-file script
8522 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8526 (chmod script #o755))
8529 `(("flare-engine" ,flare-engine)))
8530 (home-page "http://www.flarerpg.org/")
8531 (synopsis "Fantasy action RPG using the FLARE engine")
8532 (description "Flare is a single-player 2D action RPG with
8533 fast-paced action and a dark fantasy style.")
8534 (license license:cc-by-sa3.0)))
8536 (define-public meritous
8543 (url "https://gitlab.com/meritous/meritous.git")
8544 (commit (string-append "v" version))))
8545 (file-name (git-file-name name version))
8548 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8549 (build-system gnu-build-system)
8551 `(#:tests? #f ;no test
8554 (string-append "prefix=" (assoc-ref %outputs "out")))
8556 (modify-phases %standard-phases
8558 (add-after 'unpack 'fix-sdl-path
8559 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
8560 ;; directory, not SDL-union provided as an input to the package.
8561 ;; We force the latter with "--prefix=" option.
8562 (lambda* (#:key inputs #:allow-other-keys)
8563 (substitute* "Makefile"
8564 (("sdl-config" command)
8565 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8567 (add-after 'unpack 'fix-crash
8568 ;; XXX: Songs are not present in the repository, due to licensing
8569 ;; issues. Yet, the game tries to load them, and, since it cannot
8570 ;; find them, crashes. Users cannot add them back, the store being
8571 ;; read-only, so we turn off background music altogether.
8573 (substitute* "src/audio.c"
8574 (("PlayBackgroundMusic\\(new_track\\);" all)
8575 (string-append "// " all)))
8578 `(("intltool" ,intltool)))
8580 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
8582 (home-page "https://gitlab.com/meritous/meritous")
8583 (synopsis "Action-adventure dungeon crawl game")
8584 (description "Far below the surface of the planet is a place of limitless
8585 power. Those that seek to control such a utopia will soon bring an end to
8586 themselves. Seeking an end to the troubles that plague him, PSI user Merit
8587 journeys into the hallowed Orcus Dome in search of answers.
8589 Meritous is a action-adventure game with simple controls but a challenge to
8590 find a balance of power versus recovery time during real-time battles. Set in
8591 a procedurally generated world, the player can explore thousands of rooms in
8592 search of powerful artifacts, tools to help them, and to eventually free the
8593 Orcus Dome from evil.")
8594 (license license:gpl3+)))
8596 (define-public marble-marcher
8597 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
8600 (name "marble-marcher")
8601 (version (git-version "0" revision commit))
8605 (url "https://github.com/HackerPoet/MarbleMarcher")
8607 (file-name (git-file-name name version))
8610 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
8611 (build-system cmake-build-system)
8613 `(#:tests? #f ; there are none
8615 (modify-phases %standard-phases
8616 (add-after 'unpack 'embed-asset-directory
8617 (lambda* (#:key outputs #:allow-other-keys)
8618 (let ((assets (string-append (assoc-ref outputs "out")
8619 "/share/marble-marcher/assets/")))
8620 ;; Some of the files we're patching are
8621 ;; ISO-8859-1-encoded, so choose it as the default
8622 ;; encoding so the byte encoding is preserved.
8623 (with-fluids ((%default-port-encoding #f))
8624 (substitute* "src/Resource.rc"
8625 (("../assets/icon.ico")
8626 (string-append assets "icon.ico")))
8627 (substitute* "src/Res.h"
8628 (("assets/") assets))))
8631 (lambda* (#:key outputs #:allow-other-keys)
8632 (let* ((out (assoc-ref outputs "out"))
8633 (assets (string-append out "/share/marble-marcher/assets"))
8634 (bin (string-append out "/bin/")))
8637 (copy-recursively "../source/assets" assets)
8638 (install-file "MarbleMarcher" bin))
8645 `(("pkg-config" ,pkg-config)))
8646 (home-page "https://codeparade.itch.io/marblemarcher")
8647 (synopsis "Guide a marble across fractal landscapes")
8648 (description "Marble Marcher is a video game that uses a fractal physics
8649 engine and fully procedural rendering to produce beautiful and unique
8650 gameplay. The game is played on the surface of evolving fractals. The goal
8651 of the game is to get your marble to the flag as quickly as possible. But be
8652 careful not to fall off the level or get crushed by the fractal! There are 24
8654 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
8655 (license (list license:gpl2+
8657 license:cc-by-sa3.0)))))
8659 ;; This must be updated together with flightgear.
8663 (version "2018.3.5")
8667 (uri (string-append "mirror://sourceforge/flightgear/release-"
8668 (version-major+minor version) "/"
8669 "simgear-" version ".tar.bz2"))
8671 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
8672 (build-system cmake-build-system)
8675 (modify-phases %standard-phases
8678 ;; Skip tests that require internet access.
8679 (invoke "ctest" "-E" "(http|dns)"))))))
8681 `(("boost" ,boost-for-mysql) ; fails with 1.69
8686 ("openscenegraph" ,openscenegraph-3.4)
8688 (home-page "https://home.flightgear.org/")
8689 (synopsis "Libraries for 3D simulations and games")
8690 (description "SimGear is a set of libraries designed to be used as
8691 building blocks for quickly assembling 3D simulations, games, and
8692 visualization applications. SimGear is developed by the FlightGear project
8693 and also provides the base for the FlightGear Flight Simulator.")
8694 (license license:lgpl2.0+)))
8696 (define-public flightgear
8699 (version (package-version simgear))
8703 (uri (string-append "mirror://sourceforge/flightgear/release-"
8704 (version-major+minor version) "/"
8705 "flightgear-" version ".tar.bz2"))
8707 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
8708 (modules '((guix build utils)))
8711 ;; There are some bundled libraries.
8712 (for-each delete-file-recursively
8713 '("3rdparty/sqlite3/"))
8715 (build-system cmake-build-system)
8718 (list "-DSYSTEM_SQLITE=ON"
8719 (string-append "-DFG_DATA_DIR="
8720 (assoc-ref %outputs "out")
8721 "/share/flightgear"))
8722 ;; TODO: test cannot be run because the "run_test_suite" executable
8723 ;; does not seem to be built.
8726 (modify-phases %standard-phases
8727 (add-after 'install 'wrap-executable
8728 (lambda* (#:key inputs outputs #:allow-other-keys)
8729 (let ((out (assoc-ref outputs "out")))
8730 (wrap-program (string-append out "/bin/fgfs")
8731 `("QT_PLUGIN_PATH" ":" prefix
8732 ,(map (lambda (label)
8733 (string-append (assoc-ref inputs label)
8734 "/lib/qt5/plugins"))
8735 '("qtbase" "qtdeclarative" "qtsvg")))
8736 `("QML2_IMPORT_PATH" ":" prefix
8737 ,(map (lambda (label)
8738 (string-append (assoc-ref inputs label)
8740 '("qtdeclarative" "qtsvg"))))
8742 (add-after 'install 'install-data
8743 (lambda* (#:key inputs outputs #:allow-other-keys)
8744 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
8746 (with-directory-excursion share
8747 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
8748 "--strip-components=1")))
8751 `(("boost" ,boost-for-mysql) ; same as simgear
8754 ("freeglut" ,freeglut)
8755 ("freetype" ,freetype)
8759 ("openscenegraph" ,openscenegraph-3.4)
8762 ("qtdeclarative" ,qtdeclarative)
8764 ("simgear" ,simgear)
8765 ("speexdsp" ,speexdsp)
8769 `(("cppunit" ,cppunit)
8770 ("pkg-config" ,pkg-config)
8771 ("qttools" ,qttools)
8775 (uri (string-append "mirror://sourceforge/flightgear/release-"
8776 (version-major+minor version) "/"
8777 "FlightGear-" version "-data.tar.bz2"))
8780 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
8781 (home-page "https://home.flightgear.org/")
8782 (synopsis "Flight simulator")
8783 (description "The goal of the FlightGear project is to create a
8784 sophisticated flight simulator framework for use in research or academic
8785 environments, pilot training, as an industry engineering tool, for DIY-ers to
8786 pursue their favorite interesting flight simulation idea, and last but
8787 certainly not least as a fun, realistic, and challenging desktop flight
8789 (license license:gpl2+)))
8791 (define-public jumpnbump
8798 (url "https://gitlab.com/LibreGames/jumpnbump.git")
8800 (file-name (git-file-name name version))
8803 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
8804 (build-system gnu-build-system)
8808 (string-append "PREFIX=" (assoc-ref %outputs "out")))
8809 #:tests? #f ;no test
8811 (modify-phases %standard-phases
8812 (delete 'configure) ;no configure script
8813 (add-after 'unpack 'fix-sdl-path
8814 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
8815 ;; directory, not SDL-union provided as an input to the package.
8816 ;; We force the latter with "--prefix=" option.
8817 (lambda* (#:key inputs #:allow-other-keys)
8818 (substitute* "Makefile"
8819 (("sdl2-config" command)
8820 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8824 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
8827 `(("gettext" ,gettext-minimal))) ;for msgfmt
8828 (home-page "https://gitlab.com/LibreGames/jumpnbump")
8829 (synopsis "Multiplayer platform game with bunnies")
8830 (description "You, as a bunny, have to jump on your opponents to make them
8831 explode. It is a true multiplayer game; you cannot play this alone. You can
8832 play with up to four players simultaneously. It has network support.")
8833 (license license:gpl2+)))
8835 (define-public hedgewars
8841 (uri (string-append "https://www.hedgewars.org/download/releases/"
8842 "hedgewars-src-" version ".tar.bz2"))
8845 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
8846 (build-system cmake-build-system)
8848 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
8849 ;; Compiler, which we haven't packaged yet. With the flag below, we use
8850 ;; a Pascal to C translator and Clang instead.
8851 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
8852 "-Dhaskell_flags=-dynamic;-fPIC")
8854 (modify-phases %standard-phases
8856 (lambda _ (invoke "ctest")))
8857 (add-after 'install 'install-icon
8859 ;; Install icon for the desktop file.
8860 (let* ((out (assoc-ref %outputs "out"))
8861 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
8862 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
8863 (install-file "misc/hedgewars.png" icons)))
8866 `(("ffmpeg" ,ffmpeg)
8867 ("freeglut" ,freeglut)
8868 ("ghc-entropy" ,ghc-entropy)
8869 ("ghc-hslogger" ,ghc-hslogger)
8870 ("ghc-network" ,ghc-network)
8871 ("ghc-random" ,ghc-random)
8872 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
8873 ("ghc-sandi" ,ghc-sandi)
8874 ("ghc-sha" ,ghc-sha)
8875 ("ghc-utf8-string" ,ghc-utf8-string)
8876 ("ghc-vector" ,ghc-vector)
8877 ("ghc-zlib" ,ghc-zlib)
8884 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
8888 ("pkg-config" ,pkg-config)
8889 ("qttools" ,qttools)))
8890 (home-page "https://hedgewars.org/")
8891 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
8893 "Hedgewars is a turn based strategy, artillery, action and comedy game,
8894 featuring the antics of pink hedgehogs with attitude as they battle from the
8895 depths of hell to the depths of space.
8897 As commander, it's your job to assemble your crack team of hedgehog soldiers
8898 and bring the war to your enemy.")
8899 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
8900 ;; scripts are distributed under various terms.
8901 (license (list license:gpl2
8902 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
8903 license:expat license:fdl1.3+ license:public-domain
8906 (define-public harmonist
8913 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
8914 (commit (string-append "v" version))))
8915 (file-name (git-file-name name version))
8918 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
8919 (build-system go-build-system)
8921 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
8923 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
8924 (home-page "https://harmonist.tuxfamily.org/")
8925 (synopsis "Stealth coffee-break roguelike game")
8926 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
8927 coffee-break roguelike game. The game has a heavy focus on tactical
8928 positioning, light and noise mechanisms, making use of various terrain types
8929 and cones of view for monsters. Aiming for a replayable streamlined experience,
8930 the game avoids complex inventory management and character building, relying
8931 on items and player adaptability for character progression.")
8932 (license license:isc)))
8934 (define-public harmonist-tk
8937 (name "harmonist-tk")
8940 (package-arguments harmonist)
8942 (modify-phases %standard-phases
8945 (invoke "go" "install" "-v" "-x" "--tags" "tk"
8946 "git.tuxfamily.org/harmonist/harmonist")))
8949 (invoke "go" "test" "--tags" "tk"
8950 "git.tuxfamily.org/harmonist/harmonist")))))))
8952 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
8954 (define-public drascula
8960 (uri (string-append "mirror://sourceforge/scummvm/extras/"
8961 "Drascula_%20The%20Vampire%20Strikes%20Back/"
8962 "drascula-" version ".zip"))
8965 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
8966 (build-system trivial-build-system)
8968 `(#:modules ((guix build utils))
8971 (use-modules (guix build utils)
8973 (let* ((out (assoc-ref %outputs "out"))
8974 (share (string-append out "/share/drascula"))
8975 (scummvm (assoc-ref %build-inputs "scummvm")))
8977 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
8979 (doc (string-append out "/share/doc/" ,name "-" ,version)))
8984 (assoc-ref %build-inputs input)
8986 ;; Every input provides "readme.txt", and we want to
8987 ;; preserve them all. Therefore we rename them first.
8990 (rename-file "readme.txt" "readme-international.txt"))
8992 (rename-file "readme.txt" "readme-audio.txt"))
8994 ;; Install documentation.
8995 (for-each (lambda (f) (install-file f doc))
8996 (find-files "." "\\.(txt|doc)$"))
8998 (for-each (lambda (f) (install-file f share))
8999 (find-files "." "\\.(ogg|00[0-9])$")))
9000 '("drascula-audio" "drascula-int" "source")))
9001 ;; Create standalone executable.
9002 (let* ((bin (string-append out "/bin"))
9003 (executable (string-append bin "/drascula"))
9004 (bash (string-append (assoc-ref %build-inputs "bash")
9007 (with-output-to-file executable
9009 (format #t "#!~a~%" bash)
9011 "exec ~a/bin/scummvm --path=~a drascula~%"
9013 (chmod executable #o755))
9014 ;; Create desktop file. There is no dedicated icon for the
9015 ;; game, so we borrow SCUMMVM's.
9016 (let ((apps (string-append out "/share/applications")))
9018 (make-desktop-entry-file
9019 (string-append apps "/drascula.desktop")
9020 #:name "Drascula: The Vampire Strikes Back"
9021 #:generic-name "Drascula"
9022 #:exec (string-append out "/bin/drascula")
9023 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9024 #:categories '("AdventureGame" "Game" "RolePlaying")
9025 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9026 #:comment '((#f "Classic 2D point and click adventure game")
9027 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9028 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9029 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9035 `(("scummvm" ,scummvm)
9037 ,(let ((version "1.1"))
9040 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9041 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9042 "drascula-int-" version ".zip"))
9045 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9047 ,(let ((version "2.0"))
9050 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9051 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9052 "drascula-audio-" version ".zip"))
9055 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9056 (home-page "https://www.scummvm.org")
9057 (synopsis "Classic 2D point and click adventure game")
9058 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9059 point and click adventure game.
9061 In Drascula you play the role of John Hacker, a British estate agent, that
9062 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9063 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9064 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9065 the World and demonstrating that he is even more evil than his brother Vlad.")
9066 ;; Drascula uses a BSD-like license.
9067 (license (license:non-copyleft "file:///readme.txt"))))
9069 (define (make-lure-package name language hash)
9077 "mirror://sourceforge/scummvm/extras/"
9078 "Lure%20of%20the%20Temptress/"
9079 name "-" version ".zip"))
9082 (build-system trivial-build-system)
9084 `(#:modules ((guix build utils))
9087 (use-modules (guix build utils))
9088 (let* ((out (assoc-ref %outputs "out"))
9089 (share (string-append out "/share"))
9090 (data (string-append share "/" ,name "/" ,language))
9091 (apps (string-append share "/applications"))
9092 (bin (string-append out "/bin"))
9093 (executable (string-append bin "/" ,name))
9094 (scummvm (assoc-ref %build-inputs "scummvm")))
9095 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9097 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9098 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9099 (for-each (lambda (f) (install-file f doc))
9100 (find-files "." "\\.(txt|PDF|pdf)$")))
9101 (for-each (lambda (f) (install-file f data))
9102 (find-files "." "\\.(vga|VGA)$"))
9103 ;; Build the executable.
9105 (let ((bash (assoc-ref %build-inputs "bash")))
9106 (with-output-to-file executable
9108 (format #t "#!~a/bin/bash~%" bash)
9109 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9110 scummvm ,language data))))
9111 (chmod executable #o755)
9112 ;; Create desktop file. There is no dedicated
9113 ;; icon for the game, so we borrow SCUMMVM's.
9115 (with-output-to-file (string-append apps "/" ,name ".desktop")
9119 Name=Lure of the Temptress~@
9122 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9123 Categories=AdventureGame;Game;RolePlaying;~@
9124 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9125 Comment=Classic 2D point and click adventure game~@
9126 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9127 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9128 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9130 executable scummvm)))
9133 `(("unzip" ,unzip)))
9136 ("scummvm" ,scummvm)))
9137 (home-page "https://www.scummvm.org")
9138 (synopsis "2D point and click fantasy adventure game")
9140 "Lure of the Temptress is a classic 2D point and click adventure game.
9142 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9143 intents and purposes, a good man. After decades of unrest the King has united
9144 the warring factions in his kingdom and all his lands are at peace, except
9145 a remote region around a town called Turnvale. A revolt has recently taken
9146 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9147 Selena, the titular temptress. The king calls together his finest horsemen
9148 and heads off (with you in tow) to Turnvale just to witness how hellish
9149 mercenary monsters called Skorl are invading the town.
9151 The king's men are defeated, the king is killed and you fall of your horse and
9152 bang your head heavily on the ground. You have been *unconscious for a while
9153 when you realize that you are in a dingy cell guarded by a not so friendly
9154 Skorl. Maybe it would be an idea to try and escape...")
9155 (license (license:non-copyleft "file:///README"))))
9159 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9161 (define-public lure-de
9163 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9165 (define-public lure-es
9167 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9169 (define-public lure-fr
9171 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9173 (define-public lure-it
9175 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9177 (define (make-queen-package name file-prefix release language hash)
9184 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9185 "Flight%20of%20the%20Amazon%20Queen/"
9186 file-prefix release ".zip"))
9189 (build-system trivial-build-system)
9191 `(#:modules ((guix build utils))
9194 (use-modules (guix build utils))
9195 (let* ((out (assoc-ref %outputs "out"))
9196 (share (string-append out "/share"))
9197 (data (string-append share "/" ,name))
9198 (apps (string-append share "/applications"))
9199 (bin (string-append out "/bin"))
9200 (executable (string-append bin "/" ,name))
9201 (scummvm (assoc-ref %build-inputs "scummvm")))
9202 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9204 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9205 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9206 (install-file "readme.txt" doc))
9207 (install-file "queen.1c" data)
9209 (let ((bash (assoc-ref %build-inputs "bash")))
9210 (with-output-to-file executable
9212 (format #t "#!~a/bin/bash~%" bash)
9213 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9215 (chmod executable #o755)
9216 ;; Create desktop file. There is no dedicated
9217 ;; icon for the game, so we borrow SCUMMVM's.
9219 (with-output-to-file (string-append apps "/" ,name ".desktop")
9223 Name=Flight of the Amazon Queen~@
9225 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~@
9226 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~@
9229 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9230 Categories=AdventureGame;Game;RolePlaying;~@
9231 Keywords=adventure;game;roleplaying;fantasy;~%"
9232 executable scummvm))))
9235 `(("unzip" ,unzip)))
9238 ("scummvm" ,scummvm)))
9239 (home-page "https://www.scummvm.org/")
9240 (synopsis "Classic 2D point and click adventure game")
9241 (description "Flight of the Amazon Queen is a 2D point-and-click
9242 adventure game set in the 1940s.
9244 You assume the role of Joe King, a pilot for hire who is given the job
9245 of flying Faye Russell (a famous movie star) into the Amazon jungle
9246 for a photo shoot. Of course, things never go according to plans.
9247 After an unfortunate turn of events they find themselves stranded in
9248 the heart of the Amazon jungle, where Joe will embark on a quest to
9249 rescue a kidnapped princess and in the process, discover the true
9250 sinister intentions of a suspiciously located Lederhosen company. In
9251 a rich 2D environment, Joe will cross paths with a variety of unlikely
9252 jungle inhabitants including, but not limited to, a tribe of Amazon
9253 women and 6-foot-tall pygmies.")
9254 (license (license:non-copyleft "file:///readme.txt"))))
9256 (define-public queen
9258 "queen" "FOTAQ_Talkie-" "1.1" "en"
9259 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9261 (define-public queen-de
9263 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9264 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9266 (define-public queen-fr
9268 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9269 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9271 (define-public queen-it
9273 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9274 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9279 (version "1.2") ;1.3 is floppy version
9283 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9284 "Beneath%20a%20Steel%20Sky/"
9285 "bass-cd-" version ".zip"))
9287 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9288 (build-system trivial-build-system)
9290 `(#:modules ((guix build utils))
9293 (use-modules (guix build utils))
9294 (let* ((out (assoc-ref %outputs "out"))
9295 (share (string-append out "/share"))
9296 (data (string-append share "/" ,name))
9297 (apps (string-append share "/applications"))
9298 (bin (string-append out "/bin"))
9299 (executable (string-append bin "/" ,name))
9300 (scummvm (assoc-ref %build-inputs "scummvm")))
9301 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9303 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9304 (let ((doc (string-append share "/doc/bass-" ,version)))
9305 (install-file "readme.txt" doc))
9306 (for-each (lambda (f) (install-file f data))
9307 (find-files "." "^sky\\."))
9308 ;; Build the executable.
9310 (let ((bash (assoc-ref %build-inputs "bash")))
9311 (with-output-to-file executable
9313 (format #t "#!~a/bin/bash~%" bash)
9314 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9315 (chmod executable #o755)
9316 ;; Create desktop file. There is no dedicated
9317 ;; icon for the game, so we borrow SCUMMVM's.
9319 (with-output-to-file (string-append apps "/" ,name ".desktop")
9323 Name=Beneath a Steel Sky~@
9326 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9327 Categories=AdventureGame;Game;RolePlaying;~@
9328 Keywords=adventure;game;roleplaying;cyberpunk;~@
9329 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9330 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9331 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9333 executable scummvm)))
9336 `(("unzip" ,unzip)))
9339 ("scummvm" ,scummvm)))
9340 (home-page "https://www.scummvm.org/")
9341 (synopsis "Classic 2D point an click science-fiction adventure game")
9343 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9344 post-apocalyptic vision of the future. It revolves around Union City,
9345 where selfishness, rivalry, and corruption by its citizens seems to be
9346 all too common, those who can afford it live underground, away from
9347 the pollution and social problems which are plaguing the city.
9349 You take on the role of Robert Foster, an outcast of sorts from the
9350 city since a boy who was raised in a remote environment outside of
9351 Union City simply termed ``the gap''. Robert's mother took him away
9352 from Union City as a child on their way to ``Hobart'' but the
9353 helicopter crashed on its way. Unfortunately, Robert's mother died,
9354 but he survived and was left to be raised by a local tribe from the
9357 Years later, Union City security drops by and abducts Robert, killing
9358 his tribe in the process; upon reaching the city the helicopter taking
9359 him there crashes with him escaping, high upon a tower block in the
9360 middle of the city. He sets out to discover the truth about his past,
9361 and to seek vengeance for the killing of his tribe.")
9362 (license (license:non-copyleft "file:///readme.txt"))))
9364 (define-public gnurobots
9371 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9375 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9376 (build-system gnu-build-system)
9381 ("readline" ,readline)
9382 ("guile" ,guile-1.8)))
9384 `(("pkg-config" ,pkg-config)))
9388 ;; Do not abort build on "deprecated-declarations" warnings.
9389 "CFLAGS=-Wno-error=deprecated-declarations"
9390 ;; Find readline headers in sub-directory.
9391 (string-append "READLINE_CFLAGS=-I"
9392 (assoc-ref %build-inputs "readline")
9393 "/include/readline/"))
9395 (modify-phases %standard-phases
9396 (add-after 'install 'install-doc
9397 (lambda* (#:key outputs #:allow-other-keys)
9398 (install-file "doc/Robots-HOWTO"
9399 (string-append (assoc-ref outputs "out")
9400 "/share/doc/gnurobots-"
9403 (home-page "https://www.gnu.org/software/gnurobots/")
9404 (synopsis "Program a little robot and watch it explore a world")
9406 "GNU Robots is a game in which you program a robot to explore a world
9407 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9408 the game is to stay alive and collect prizes. The robot program conveniently
9409 may be written in a plain text file in the Scheme programming language.")
9410 (license license:gpl3+)))
9412 (define-public ri-li
9418 (uri (string-append "mirror://sourceforge/ri-li/"
9419 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9420 "Ri-li-" version ".tar.bz2"))
9423 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9425 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9426 ;; It doesn't build otherwise.
9427 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9428 (build-system gnu-build-system)
9431 (modify-phases %standard-phases
9432 ;; Remove "gentoo" subdirectory from Makefile, as it is
9433 ;; missing a make file and generates a build failure.
9434 (add-after 'configure 'fix-build
9436 (substitute* "Makefile"
9439 (add-after 'install 'install-desktop-file
9440 (lambda* (#:key outputs #:allow-other-keys)
9441 (let* ((out (assoc-ref outputs "out"))
9442 (apps (string-append out "/share/applications"))
9443 (pixmaps (string-append out "/share/pixmaps")))
9444 (for-each (lambda (f) (install-file f pixmaps))
9445 (find-files "data" "\\.(png|ico)$"))
9447 (with-output-to-file (string-append apps "/ri-li.desktop")
9453 Icon=~a/Ri-li-icon-32x32.png~@
9454 Categories=Game;ArcadeGame;~@
9455 Keywords=toy;train;wooden;snake-like;engine;~@
9456 Comment=a toy simulator game~@
9457 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9458 Comment[fr]=un jeu de petit train~@
9459 Comment[ro_RO]=un joc cu un tren de jucărie~@
9464 (add-after 'install-desktop-file 'remove-spurious-files
9465 ;; Delete redundant files already installed somewhere else.
9466 (lambda* (#:key outputs #:allow-other-keys)
9467 (let ((out (assoc-ref outputs "out")))
9468 (for-each delete-file
9469 (find-files (string-append out "/share/Ri-li")
9470 "\\.(png|ico)|COPYING"))
9473 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9474 (home-page "http://www.ri-li.org")
9475 (synopsis "Toy train simulation game")
9476 (description "Ri-li is a game in which you drive a wooden toy
9477 steam locomotive across many levels and collect all the coaches to
9479 ;; The project is dual-licensed GPL2+ and GPL3+.
9480 (license (list license:gpl2+ license:gpl3+))))
9482 (define-public freeorion
9489 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9490 "download/v" version "/FreeOrion_v" version
9491 "_2020-07-10.f3d403e_Source.tar.gz"))
9493 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9494 (modules '((guix build utils)))
9497 ;; There are some bundled fonts.
9498 (for-each delete-file-recursively '("default/data/fonts"))
9500 (build-system cmake-build-system)
9502 '(#:tests? #f ;no test
9504 (modify-phases %standard-phases
9505 (add-after 'unpack 'unbundle-fonts
9506 (lambda* (#:key inputs #:allow-other-keys)
9507 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9508 "/share/fonts/truetype/")))
9509 (substitute* "UI/ClientUI.cpp"
9510 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9512 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9516 ("boost_signals" ,boost-signals2)
9517 ("font-dejavu" ,font-dejavu)
9518 ("font-roboto" ,font-google-roboto)
9519 ("freetype2" ,freetype)
9524 ("libvorbis" ,libvorbis)
9529 (home-page "https://www.freeorion.org/index.php/Main_Page")
9530 (synopsis "Turn-based space empire and galactic conquest computer game")
9532 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9533 computer game being designed and built by the FreeOrion project. Control an
9534 empire with the goal of exploring the galaxy, expanding your territory,
9535 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9536 inspired by the tradition of the Master of Orion games, but is not a clone or
9537 remake of that series or any other game.")
9538 ;; Source code is released under gpl2. Artwork, music and sounds, and
9539 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9540 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9541 ;; released under lgpl2.1+.
9542 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9544 (define-public leela-zero
9552 (url "https://github.com/leela-zero/leela-zero")
9553 (commit (string-append "v" version))))
9554 (file-name (git-file-name name version))
9557 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
9558 (patches (search-patches "leela-zero-gtest.patch"))))
9559 (build-system cmake-build-system)
9561 `(("googletest" ,googletest)))
9564 ("ocl-icd" ,ocl-icd)
9565 ("openblas" ,openblas)
9566 ("opencl-headers" ,opencl-headers)
9570 '(#:configure-flags '("-DUSE_BLAS=YES")
9571 #:phases (modify-phases %standard-phases
9572 (add-before 'configure 'fix-tests
9573 (lambda* (#:key outputs #:allow-other-keys)
9574 (let ((home (getcwd)))
9575 (setenv "HOME" home)
9576 (substitute* "src/tests/gtests.cpp"
9577 (("\\.\\./src/tests/0k\\.txt")
9578 (string-append home "/src/tests/0k.txt"))
9579 (("cfg_gtp_mode = true;")
9580 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
9584 (invoke "./tests"))))))
9585 (home-page "https://github.com/leela-zero/leela-zero")
9586 (synopsis "Program playing the game of Go")
9588 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
9589 the AlphaGo Zero paper. The current best network weights file for the engine
9590 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
9591 (license license:gpl3+)))
9600 (url "https://github.com/bernds/q5Go")
9601 (commit (string-append "q5go-" version))))
9602 (file-name (git-file-name name version))
9605 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
9606 (build-system gnu-build-system)
9608 `(("pkg-config" ,pkg-config)))
9610 `(("qtbase" ,qtbase)
9611 ("qtmultimedia" ,qtmultimedia)
9615 (modify-phases %standard-phases
9616 (add-after 'unpack 'fix-configure-script
9618 ;; Bypass the unavailable qtchooser program.
9619 (substitute* "configure"
9620 (("test -z \"QTCHOOSER\"")
9622 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
9625 (add-after 'unpack 'fix-paths
9627 (substitute* '("src/pics/Makefile.in"
9628 "src/translations/Makefile.in")
9629 (("\\$\\(datadir\\)/qGo/")
9630 "$(datadir)/q5go/"))
9632 (add-after 'install 'install-desktop-file
9633 (lambda* (#:key outputs #:allow-other-keys)
9634 (let* ((out (assoc-ref outputs "out"))
9635 (apps (string-append out "/share/applications"))
9636 (pics (string-append out "/share/q5go/pics")))
9637 (delete-file-recursively (string-append out "/share/applnk"))
9638 (delete-file-recursively (string-append out "/share/mimelnk"))
9639 (install-file "../source/src/pics/Bowl.ico" pics)
9641 (with-output-to-file (string-append apps "/q5go.desktop")
9649 Comment=Game of Go~@
9650 Comment[de]=Spiel des Go~@
9652 Comment[es]=Juego de Go~@
9653 Comment[fr]=Jeu de Go~@
9661 (synopsis "Qt GUI to play the game of Go")
9663 "This a tool for Go players which performs the following functions:
9666 @item Analysis frontend for Leela Zero (or compatible engines),
9667 @item GTP interface (to play against an engine),
9668 @item IGS client (to play on the internet),
9669 @item Export games to a variety of formats.
9671 (home-page "https://github.com/bernds/q5Go")
9672 (license license:gpl2+)))
9674 (define-public ktuberling
9681 (uri (string-append "mirror://kde/stable/applications/" version
9682 "/src/ktuberling-" version ".tar.xz"))
9684 (base32 "1qdf4q6wjh1lnlqw5c8z4rpj9w5vbyjfri1dah6yjm3mwppbc12j"))))
9685 (build-system qt-build-system)
9687 `(("extra-cmake-modules" ,extra-cmake-modules)
9690 `(("kcompletion" ,kcompletion)
9691 ("kconfigwidgets" ,kconfigwidgets)
9692 ("kcoreaddons" ,kcoreaddons)
9694 ("kdbusaddons" ,kdbusaddons)
9695 ("kdelibs4support" ,kdelibs4support)
9697 ("kwidgetsaddons" ,kwidgetsaddons)
9698 ("kxmlgui" ,kxmlgui)
9699 ("libkdegames" ,libkdegames)
9701 ("qtmultimedia" ,qtmultimedia)
9702 ("qtdeclarative" ,qtdeclarative)
9704 (home-page "https://games.kde.org/")
9705 (synopsis "Stamp drawing toy")
9706 (description "KTuberling is a drawing toy intended for small children and
9707 adults who remain young at heart. The game has no winner; the only purpose is
9708 to make the funniest faces you can. Several activities are possible, e.g.:
9711 @item Give the potato a funny face, clothes, and other goodies
9712 @item Build a small town, complete with school, zoo, and fire department
9713 @item Create a fantastic moonscape with spaceships and aliens
9717 KTuberling can speak the name of each the object in several languages,
9718 to assist in learning basic vocabulary.
9720 This package is part of the KDE games module.")
9721 (license (list license:gpl2+ license:fdl1.2+))))
9723 (define-public picmi
9730 (uri (string-append "mirror://kde/stable/applications/" version
9731 "/src/picmi-" version ".tar.xz"))
9733 (base32 "0z9mpmv49w914gqdx274brdzl6d1bz9j9nkvbwgmr3iq1ba49m3f"))))
9734 (build-system qt-build-system)
9736 `(("extra-cmake-modules" ,extra-cmake-modules)
9737 ("kdoctools" ,kdoctools)))
9739 `(("kcoreaddons" ,kcoreaddons)
9741 ("kdbusaddons" ,kdbusaddons)
9742 ("kdeclarative" ,kdeclarative)
9745 ("knewstuff" ,knewstuff)
9746 ("kxmlgui" ,kxmlgui)
9747 ("libkdegames" ,libkdegames)
9749 ("qtdeclarative" ,qtdeclarative)
9751 (home-page "https://games.kde.org/")
9752 (synopsis "Number logic game")
9753 (description "Picmi is a number logic game in which cells in a grid have
9754 to be colored or left blank according to numbers given at the side of the
9755 grid. The aim is to reveal a hidden picture.
9757 This package is part of the KDE games module.")
9758 (license (list license:gpl2+ license:fdl1.2+))))
9767 (uri (string-append "mirror://kde/stable/applications/" version
9768 "/src/kolf-" version ".tar.xz"))
9770 (base32 "06sfd0llr5cc3zf1vrpcxgw9bm009ky7y8822kynic9ipcd4z1hw"))))
9771 (build-system qt-build-system)
9773 `(("extra-cmake-modules" ,extra-cmake-modules)
9774 ("kdoctools" ,kdoctools)))
9776 `(("kcompletion" ,kcompletion)
9777 ("kconfigwidgets" ,kconfigwidgets)
9778 ("kcoreaddons" ,kcoreaddons)
9780 ("kdbusaddons" ,kdbusaddons)
9783 ("kwidgetsaddons" ,kwidgetsaddons)
9784 ("kxmlgui" ,kxmlgui)
9785 ("ktextwidgets" ,ktextwidgets)
9786 ("libkdegames" ,libkdegames)
9788 ("qtdeclarative" ,qtdeclarative)))
9789 (home-page "https://games.kde.org/")
9790 (synopsis "Miniature golf game")
9791 (description "Kolf is a miniature golf game for one to ten players. The
9792 game is played from an overhead view, with a short bar representing the golf
9793 club. Kolf features many different types of objects, such as water hazards,
9794 slopes, sand traps, and black holes (warps), among others.
9798 @item Single and Multi-player (up to ten players) modes
9799 @item High scores table
9800 @item Dynamic courses
9801 @item Third-party courses
9805 This package is part of the KDE games module.")
9806 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9808 (define-public libkmahjongg
9810 (name "libkmahjongg")
9815 (uri (string-append "mirror://kde/stable/applications/"
9816 version "/src/libkmahjongg-" version ".tar.xz"))
9818 (base32 "0rdimk11hrc8qrmiv26z0ddjzi1k6806c0rfskx4cwmildmh6zgx"))))
9819 (build-system qt-build-system)
9821 `(("extra-cmake-modules" ,extra-cmake-modules)))
9824 ("kcompletion" ,kcompletion)
9825 ;("kconfig" ,kconfig)
9826 ("kcodecs" ,kcodecs)
9827 ("kconfigwidgets" ,kconfigwidgets)
9828 ("kcoreaddons" ,kcoreaddons)
9830 ("kwidgetsaddons" ,kwidgetsaddons)
9833 (home-page "https://games.kde.org/")
9834 (synopsis "Shared library for kmahjongg and kshisen")
9835 (description "Shared library and common files for kmahjongg, kshisen and
9836 other Mah Jongg like games.")
9837 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9839 (define-public kmahjongg
9846 (uri (string-append "mirror://kde/stable/applications/"
9847 version "/src/kmahjongg-" version ".tar.xz"))
9849 (base32 "08na845h0nhmfrszdmvfq5y1dy7kgbrlzjp0f5snvbbf7w44ci6p"))))
9850 (build-system qt-build-system)
9852 `(("extra-cmake-modules" ,extra-cmake-modules)
9853 ("kdoctools" ,kdoctools)))
9855 `(("kcompletion" ,kcompletion)
9857 ("kdbusaddons" ,kdbusaddons)
9858 ("kdeclarative" ,kdeclarative)
9860 ("knewstuff" ,knewstuff)
9861 ("kxmlgui" ,kxmlgui)
9862 ("libkdegames" ,libkdegames)
9863 ("libkmahjongg" ,libkmahjongg)
9865 ("qtdeclarative" ,qtdeclarative)
9867 (home-page "https://games.kde.org/")
9868 (synopsis "Tile laying patience")
9869 (description "In KMahjongg the tiles are scrambled and staked on top of
9870 each other to resemble a certain shape. The player is then expected to remove
9871 all the tiles off the game board by locating each tile's matching pair.
9873 A variety of tile layouts are included, as well as an editor to create new
9876 This package is part of the KDE games module.")
9877 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9879 (define-public kshisen
9886 (uri (string-append "mirror://kde/stable/applications/"
9887 version "/src/kshisen-" version ".tar.xz"))
9889 (base32 "1bq5m48af4h5apfp3bfsp76nlpv6h5sc0gd544zv7cgpfznz1sds"))))
9890 (build-system qt-build-system)
9892 `(("extra-cmake-modules" ,extra-cmake-modules)
9894 ;("pkg-config" ,pkg-config)
9895 ("kdoctools" ,kdoctools)))
9898 ("kcompletion" ,kcompletion)
9899 ("kconfigwidgets" ,kconfigwidgets)
9900 ("kcoreaddons" ,kcoreaddons)
9902 ("kdbusaddons" ,kdbusaddons)
9904 ("kxmlgui" ,kxmlgui)
9905 ("libkdegames" ,libkdegames)
9906 ("libkmahjongg" ,libkmahjongg)
9908 ("qtdeclarative" ,qtdeclarative)))
9909 (home-page "https://games.kde.org/")
9910 (synopsis "Shisen-Sho solitaire game")
9911 (description "KShisen is a solitaire-like game played using the standard
9912 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
9915 This package is part of the KDE games module.")
9916 (license license:gpl2+)))
9918 (define-public kajongg
9925 (uri (string-append "mirror://kde/stable/applications/"
9926 version "/src/kajongg-" version ".tar.xz"))
9928 (base32 "0ql6p5zifdpdf65r7ki9ml123azpwwk9x3x8r9ij6xhjnf7p7x6w"))))
9929 (build-system qt-build-system)
9931 `(("extra-cmake-modules" ,extra-cmake-modules)
9933 ("kdoctools" ,kdoctools)))
9935 `(("kconfig" ,kconfig)
9936 ("kconfigwidgets" ,kconfigwidgets)
9937 ("kcoreaddons" ,kcoreaddons)
9939 ("libkmahjongg" ,libkmahjongg)
9944 `(("python-twisted" ,python-twisted)
9945 ("python-pyqt" ,python-pyqt)))
9946 ;; FIXME: Need to wrap PYTHONPATH
9947 (home-page "https://games.kde.org/")
9948 (synopsis "Classical Mah Jongg game for 4 players")
9949 (description "Kajongg is the ancient Chinese board game for 4 players.
9951 If you are looking for the Mah Jongg solitaire please use the application
9954 Kajongg can be used in two different ways: Scoring a manual game where you
9955 play as always and use Kajongg for the computation of scores and for
9956 bookkeeping. Or you can use Kajongg to play against any combination of other
9957 human players or computer players.
9959 This package is part of the KDE games module.")
9960 (license (list license:gpl2+ license:fdl1.2+))))
9962 (define-public kbreakout
9969 (uri (string-append "mirror://kde/stable/applications/" version
9970 "/src/kbreakout-" version ".tar.xz"))
9972 (base32 "0gwzx1z9mxrjlcjzglg8cxkyd6900whcar3b5j9laxxarc6xhj8w"))))
9973 (build-system qt-build-system)
9975 `(("extra-cmake-modules" ,extra-cmake-modules)
9976 ("kdoctools" ,kdoctools)))
9978 `(("kcompletion" ,kcompletion)
9979 ("kconfig" ,kconfig)
9980 ("kconfigwidgets" ,kconfigwidgets)
9981 ("kcoreaddons" ,kcoreaddons)
9983 ("kdbusaddons" ,kdbusaddons)
9985 ("kwidgetsaddons" ,kwidgetsaddons)
9986 ("kxmlgui" ,kxmlgui)
9987 ("libkdegames" ,libkdegames)
9989 ("qtdeclarative" ,qtdeclarative)))
9990 (home-page "https://games.kde.org/")
9991 (synopsis "Breakout like game")
9992 (description "KBreakout is similar to the classics breakout and xboing,
9993 featuring a number of added graphical enhancements and effects. You control a
9994 paddle at the bottom of the playing-field, and must destroy bricks at the top
9995 by bouncing balls against them.
9997 This package is part of the KDE games module.")
9998 (license (list license:gpl2+ license:fdl1.2+))))
10000 (define-public kmines
10003 (version "19.08.3")
10007 (uri (string-append "mirror://kde/stable/applications/" version
10008 "/src/kmines-" version ".tar.xz"))
10010 (base32 "0ac3za36lh8hpx6mqfic9amwmzhzhzplm9hg3pw12gxl5a9mvfsf"))))
10011 (build-system qt-build-system)
10013 `(("extra-cmake-modules" ,extra-cmake-modules)
10014 ("kdoctools" ,kdoctools)))
10016 `(("kcompletion" ,kcompletion)
10017 ("kconfig" ,kconfig)
10018 ("kconfigwidgets" ,kconfigwidgets)
10019 ("kcoreaddons" ,kcoreaddons)
10021 ("kdbusaddons" ,kdbusaddons)
10023 ("ktextwidgets" ,ktextwidgets)
10024 ("kwidgetsaddons" ,kwidgetsaddons)
10025 ("kxmlgui" ,kxmlgui)
10026 ("libkdegames" ,libkdegames)
10028 ("qtdeclarative" ,qtdeclarative)))
10029 (home-page "https://games.kde.org/")
10030 (synopsis "Classical mine sweeper game")
10031 (description "KMines is a classic Minesweeper game. The idea is to
10032 uncover all the squares without blowing up any mines. When a mine is blown
10033 up, the game is over.
10035 This package is part of the KDE games module.")
10036 (license (list license:gpl2+ license:fdl1.2+))))
10038 (define-public konquest
10041 (version "19.08.3")
10045 (uri (string-append "mirror://kde/stable/applications/"
10046 version "/src/konquest-" version ".tar.xz"))
10048 (base32 "02gjxskhi10a1sqh3skcild8zria7wncz1a4sbz7ax1p851q76k1"))))
10049 (build-system qt-build-system)
10051 `(("extra-cmake-modules" ,extra-cmake-modules)
10052 ("kdoctools" ,kdoctools)))
10054 `(("kcompletion" ,kcompletion)
10055 ("kconfig" ,kconfig)
10056 ("kcoreaddons" ,kcoreaddons)
10058 ("kdbusaddons" ,kdbusaddons)
10059 ("kguiaddons" ,kguiaddons)
10061 ("kwidgetsaddons" ,kwidgetsaddons)
10062 ("kxmlgui" ,kxmlgui)
10063 ("libkdegames" ,libkdegames)
10065 ("qtdeclarative" ,qtdeclarative)
10067 (home-page "https://games.kde.org/")
10068 (synopsis "Simple turn-based strategy game")
10069 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10070 conquer other planets by sending ships to them. The goal is to build an
10071 interstellar empire and ultimately conquer all other player's planets. The
10072 game can be played with up to nine empires, commanded either by the computer
10073 or by puny earthlings.
10075 This package is part of the KDE games module.")
10076 (license (list license:gpl2+ license:fdl1.2+))))
10078 (define-public kbounce
10081 (version "19.08.3")
10085 (uri (string-append "mirror://kde/stable/applications/"
10086 version "/src/kbounce-" version ".tar.xz"))
10088 (base32 "02rfv0qzz5cmyfx8f56a45hbm9gsp6m3dcy8ajwx88rw5wpbrr11"))))
10089 (build-system qt-build-system)
10091 `(("extra-cmake-modules" ,extra-cmake-modules)
10092 ("kdoctools" ,kdoctools)))
10094 `(("kcompletion" ,kcompletion)
10095 ("kconfigwidgets" ,kconfigwidgets)
10096 ("kcoreaddons" ,kcoreaddons)
10098 ("kdbusaddons" ,kdbusaddons)
10101 ("kwidgetsaddons" ,kwidgetsaddons)
10102 ("kxmlgui" ,kxmlgui)
10103 ("libkdegames" ,libkdegames)
10105 ("qtdeclarative" ,qtdeclarative)
10107 (home-page "https://games.kde.org/")
10108 (synopsis "Jezzball arcade game")
10109 (description "KBounce is a single player arcade game with the elements of
10110 puzzle. It is played on a field, surrounded by wall, with two or more balls
10111 bouncing around within the walls. The object of the game is to build new
10112 walls to decrease the size of the active field.
10114 This package is part of the KDE games module.")
10115 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10117 (define-public kblocks
10120 (version "19.08.3")
10124 (uri (string-append "mirror://kde/stable/applications/"
10125 version "/src/kblocks-" version ".tar.xz"))
10127 (base32 "0qrm0dihzhkxsq9l49ndzms802x6jn92vvabb2zf2q9z593m69cx"))))
10128 (build-system qt-build-system)
10130 `(("extra-cmake-modules" ,extra-cmake-modules)
10131 ("kdoctools" ,kdoctools)))
10133 `(("kcompletion" ,kcompletion)
10134 ("kconfig" ,kconfig)
10135 ("kconfigwidgets" ,kconfigwidgets)
10136 ("kcoreaddons" ,kcoreaddons)
10138 ("kdbusaddons" ,kdbusaddons)
10140 ("kwidgetsaddons" ,kwidgetsaddons)
10141 ("kxmlgui" ,kxmlgui)
10142 ("libkdegames" ,libkdegames)
10144 ("qtdeclarative" ,qtdeclarative)
10146 (home-page "https://games.kde.org/")
10147 (synopsis "Single player falling blocks puzzle game")
10148 (description "KBlocks is the classic Tetris-like falling blocks game.
10150 The idea is to stack the falling blocks to create horizontal lines without any
10151 gaps. When a line is completed it is removed, and more space is available in
10152 the play area. When there is not enough space for blocks to fall, the game is
10155 This package is part of the KDE games module.")
10156 (license (list license:gpl2+ license:fdl1.2+))))
10158 (define-public ksudoku
10161 (version "19.08.3")
10165 (uri (string-append "mirror://kde/stable/applications/"
10166 version "/src/ksudoku-" version ".tar.xz"))
10168 (base32 "0rcscz91hilm7l3am5w02n0n8l7xhi4l0n4sskznh68kblw0ggw2"))))
10169 (build-system qt-build-system)
10171 `(("extra-cmake-modules" ,extra-cmake-modules)
10172 ("kdoctools" ,kdoctools)))
10174 `(("karchive", karchive)
10175 ("kconfig" ,kconfig)
10176 ("kconfigwidgets" ,kconfigwidgets)
10177 ("kcoreaddons" ,kcoreaddons)
10179 ("kguiaddons" ,kguiaddons)
10181 ("kiconthemes" ,kiconthemes)
10183 ("kwidgetsaddons" ,kwidgetsaddons)
10184 ("kxmlgui" ,kxmlgui)
10185 ("libkdegames" ,libkdegames)
10188 ("qtdeclarative" ,qtdeclarative)
10190 (home-page "https://games.kde.org/")
10191 (synopsis "Sudoku puzzle game and solver")
10192 (description "KSudoku is a Sudoku game and solver, supporting a range of
10193 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10194 puzzle sheets and find the solution to any Sudoku puzzle.
10196 The word Sudoku means \"single number in an allotted place\" in Japanese.
10197 These are the basic rules: Every Sudoku is a square divided into 3x3
10198 subsquares with 3x3 cells each.
10200 Some cells are filled with a number at the beginning. The remaining ones are
10201 to be filled by the player using numbers from 1 to 9, without repeating a
10202 number twice on each column, row or subsquare (each of them must contain only
10203 one 1, one 2, one 3, and so on). The game requires logic and patience.
10204 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10207 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10208 board we use letters): arithmetic relationships between numbers are
10211 This program supports also 16x16 games with numbers from 1 to 16 and 256
10212 cells with 16 cols, rows and subsquares!
10214 More information at http://en.wikipedia.org/wiki/Sudoku
10216 This package is part of the KDE games module.")
10217 (license (list license:gpl2+ license:fdl1.2+))))
10219 (define-public klines
10222 (version "19.08.3")
10226 (uri (string-append "mirror://kde/stable/applications/" version
10227 "/src/klines-" version ".tar.xz"))
10229 (base32 "1g1f46jp0rb8gpqkgcf915ydpsscn1sxk3gjvm8bcqgx9ddq59xa"))))
10230 (build-system qt-build-system)
10232 `(("extra-cmake-modules" ,extra-cmake-modules)
10233 ("kdoctools" ,kdoctools)))
10235 `(("kcompletion" ,kcompletion)
10236 ("kconfigwidgets" ,kconfigwidgets)
10237 ("kcoreaddons" ,kcoreaddons)
10239 ("kdbusaddons" ,kdbusaddons)
10241 ("kwidgetsaddons" ,kwidgetsaddons)
10242 ("kxmlgui" ,kxmlgui)
10243 ("libkdegames" ,libkdegames)
10245 ("qtdeclarative" ,qtdeclarative)))
10246 (home-page "https://games.kde.org/")
10247 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10248 (description "KLines is a simple but highly addictive one player game.
10250 The player has to move the colored balls around the game board, gathering them
10251 into the lines of the same color by five. Once the line is complete it is
10252 removed from the board, therefore freeing precious space. In the same time
10253 the new balls keep arriving by three after each move, filling up the game
10256 KLines is a single-player game where the player removes colored balls from the
10257 board by arranging them into lines of five or more. However, every time the
10258 player moves a ball, three more balls are added to the board.
10260 This package is part of the KDE games module.")
10261 (license (list license:gpl2+ license:fdl1.2+))))
10263 (define-public kgoldrunner
10265 (name "kgoldrunner")
10266 (version "19.08.3")
10270 (uri (string-append "mirror://kde/stable/applications/" version "/src/kgoldrunner-"
10271 version ".tar.xz"))
10273 (base32 "16rcvq796r3asz4v4ap75xvwnxd3dd2nsq5r9vxvzl6rrf1w9bj4"))))
10274 (build-system qt-build-system)
10276 `(("extra-cmake-modules" ,extra-cmake-modules)
10277 ("kdoctools" ,kdoctools)))
10279 `(("kcompletion" ,kcompletion)
10280 ("kcoreaddons" ,kcoreaddons)
10282 ("kdbusaddons" ,kdbusaddons)
10285 ("kwidgetsaddons" ,kwidgetsaddons)
10286 ("kxmlgui" ,kxmlgui)
10287 ("libkdegames" ,libkdegames)
10289 ("qtdeclarative" ,qtdeclarative)))
10290 (home-page "https://games.kde.org/")
10291 (synopsis "Action and puzzle solving game")
10292 (description "KGoldrunner is an action game where the hero runs through a
10293 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10294 gold nuggets and escape to the next level. Your enemies are also after the
10295 gold. Worse still, they are after you!.
10297 KGoldrunner is a fast-paced platform game where the player must navigate a
10298 maze while collecting gold nuggets and avoiding enemies. A variety of level
10299 packs are included, as well as an editor to create new levels.
10301 This package is part of the KDE games module.")
10302 (license (list license:gpl2+ license:fdl1.2+))))
10304 (define-public kdiamond
10307 (version "19.08.3")
10311 (uri (string-append "mirror://kde/stable/applications/" version
10312 "/src/kdiamond-" version ".tar.xz"))
10314 (base32 "1v5yb9hb26lk277zhw8d37ks829yfqr5anzx1qhms44gca5kqhva"))))
10315 (build-system qt-build-system)
10317 `(("extra-cmake-modules" ,extra-cmake-modules)
10318 ("kdoctools" ,kdoctools)))
10320 `(("kcompletion", kcompletion)
10321 ("kconfig" ,kconfig)
10322 ("kconfigwidgets" ,kconfigwidgets)
10323 ("kcoreaddons" ,kcoreaddons)
10325 ("kdbusaddons" ,kdbusaddons)
10327 ("knotifications" ,knotifications)
10328 ("knotifyconfig" ,knotifyconfig)
10329 ("kwidgetsaddons" ,kwidgetsaddons)
10330 ("kxmlgui" ,kxmlgui)
10331 ("libkdegames" ,libkdegames)
10333 ("qtdeclarative" ,qtdeclarative)))
10334 (home-page "https://games.kde.org/")
10335 (synopsis "Three-in-a-row game")
10336 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10337 features unlimited fun with randomly generated games and five difficulty
10338 levels with varying number of diamond colors and board sizes.
10340 This package is part of the KDE games module.")
10341 (license (list license:gpl2+ license:fdl1.2+))))
10343 (define-public kfourinline
10345 (name "kfourinline")
10346 (version "19.08.3")
10350 (uri (string-append "mirror://kde/stable/applications/" version
10351 "/src/kfourinline-" version ".tar.xz"))
10353 (base32 "1vprs6dc1ccn3g6k594i9s94xy4b91vzlqjysyc6fqcq2fs54ny3"))))
10354 (build-system qt-build-system)
10356 `(("extra-cmake-modules" ,extra-cmake-modules)
10357 ("kdoctools" ,kdoctools)))
10359 `(("kcompletion" ,kcompletion)
10360 ("kconfig" ,kconfig)
10361 ("kconfigwidgets" ,kconfigwidgets)
10362 ("kcoreaddons" ,kcoreaddons)
10364 ("kdelibs4support" ,kdelibs4support)
10367 ("kxmlgui" ,kxmlgui)
10368 ("libkdegames" ,libkdegames)
10370 ("qtdeclarative" ,qtdeclarative)
10372 (home-page "https://games.kde.org/")
10373 (synopsis "Place 4 pieces in a row")
10374 (description "KFourInLine is a board game for two players based on the
10377 KFourInLine is a game where two players take turns dropping pieces into a
10378 grid, the winner being the first to place four pieces in a line.
10380 This package is part of the KDE games module.")
10381 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10383 (define-public kblackbox
10386 (version "19.08.3")
10390 (uri (string-append "mirror://kde/stable/applications/" version
10391 "/src/kblackbox-" version ".tar.xz"))
10393 (base32 "1x42sfpf75c6mavwkc7g7dm11y9s5dpj8igphly5kvm0pajqby0n"))))
10394 (build-system qt-build-system)
10396 `(("extra-cmake-modules" ,extra-cmake-modules)
10397 ("kdoctools" ,kdoctools)))
10399 `(("karchive" ,karchive)
10400 ("kcompletion" ,kcompletion)
10401 ("kconfig" ,kconfig)
10402 ("kcoreaddons" ,kcoreaddons)
10404 ("kdbusaddons" ,kdbusaddons)
10406 ("ktextwidgets" ,ktextwidgets)
10407 ("kxmlgui" ,kxmlgui)
10408 ("libkdegames" ,libkdegames)
10410 ("qtdeclarative" ,qtdeclarative)
10412 (home-page "https://games.kde.org/")
10413 (synopsis "Find atoms in a grid by shooting electrons")
10414 (description "KBlackbox is a game of hide and seek played on a grid of
10415 boxes where the computer has hidden several balls. The position of the hidden
10416 balls can be deduced by shooting beams into the box
10418 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10419 player shoots rays into the grid to deduce the positions of hidden objects.
10421 This package is part of the KDE games module.")
10422 (license (list license:gpl2+ license:fdl1.2+))))
10424 (define-public knetwalk
10427 (version "19.08.3")
10431 (uri (string-append "mirror://kde/stable/applications/" version
10432 "/src/knetwalk-" version ".tar.xz"))
10434 (base32 "1i340salzgqdw8y33wrrydmpgx3pvwf5wrbljlh67cjf6s4csx7d"))))
10435 (build-system qt-build-system)
10437 `(("extra-cmake-modules" ,extra-cmake-modules)
10438 ("kdoctools" ,kdoctools)))
10440 `(("kcompletion" ,kcompletion)
10441 ("kconfig" ,kconfig)
10442 ("kconfigwidgets" ,kconfigwidgets)
10443 ("kcoreaddons" ,kcoreaddons)
10445 ("kdbusaddons" ,kdbusaddons)
10447 ("ktextwidgets" ,ktextwidgets)
10448 ("kwidgetsaddons" ,kwidgetsaddons)
10449 ("kxmlgui" ,kxmlgui)
10450 ("libkdegames" ,libkdegames)
10452 ("qtdeclarative" ,qtdeclarative)))
10453 (home-page "https://games.kde.org/")
10454 (synopsis "Turn the board pieces to get all computers connected")
10455 (description "KNetWalk is a small game where you have to build up a
10456 computer network by rotating the wires to connect the terminals to the server.
10457 When the network is build, a highscore-list comes up where competitions can be
10460 KNetwalk is a puzzle game where the player arranges sections of wire to
10461 connect all the computers on the board.
10463 This package is part of the KDE games module.")
10464 (license (list license:gpl2+ license:fdl1.2+))))
10466 (define-public bomber
10469 (version "19.08.3")
10473 (uri (string-append "mirror://kde/stable/applications/" version
10474 "/src/bomber-" version ".tar.xz"))
10476 (base32 "1lvzd0mzgq25akvwvkm57l3plm65k731v2i1ahakn985bb5gc3is"))))
10477 (build-system qt-build-system)
10479 `(("extra-cmake-modules" ,extra-cmake-modules)
10480 ("kdoctools" ,kdoctools)))
10482 `(("kcompletiom" ,kcompletion)
10483 ("kconfig" ,kconfig)
10484 ("kcoreaddons" ,kcoreaddons)
10486 ("kdbusaddons" ,kdbusaddons)
10488 ("kxmlgui" ,kxmlgui)
10489 ("libkdegames" ,libkdegames)
10491 ("qtdeclarative" ,qtdeclarative)))
10492 (home-page "https://games.kde.org/")
10493 (synopsis "Arcade bombing game")
10494 (description "Bomber is a single player arcade game.
10496 The player is invading various cities in a plane that is decreasing in height.
10497 The goal of the game is to destroy all the buildings and advance to the next
10498 level. Each level gets a bit harder by increasing the speed of the plane and
10499 the height of the buildings.
10501 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10502 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10503 not destroyed a building in your path, you will crash into it.
10505 This package is part of the KDE games module.")
10506 (license (list license:gpl2+ license:fdl1.2+))))
10508 (define-public granatier
10511 (version "19.08.3")
10515 (uri (string-append "mirror://kde/stable/applications/" version
10516 "/src/granatier-" version ".tar.xz"))
10518 (base32 "141qmdinz7ikbbrs8dq6cap3nl22sl7pw62r80pf3xxwn2q4phpa"))))
10519 (build-system qt-build-system)
10521 `(("extra-cmake-modules" ,extra-cmake-modules)
10522 ("kdoctools" ,kdoctools)))
10524 `(("kcompletion" ,kcompletion)
10525 ("kconfig" ,kconfig)
10526 ("kconfigwidgets" ,kconfigwidgets)
10527 ("kcoreaddons" ,kcoreaddons)
10529 ("kdbusaddons" ,kdbusaddons)
10531 ("knewstuff" ,knewstuff)
10532 ("kwidgetsaddons" ,kwidgetsaddons)
10533 ("kxmlgui" ,kxmlgui)
10534 ("libkdegames" ,libkdegames)
10536 ("qtdeclarative" ,qtdeclarative)
10538 (home-page "https://games.kde.org/")
10539 (synopsis "Bomberman clone")
10540 (description "Granatier is a clone of the classic Bomberman game,
10541 inspired by the work of the Clanbomber clone.
10543 This package is part of the KDE games module.")
10544 (license (list license:gpl2+ license:fdl1.2+))))
10546 (define-public ksirk
10549 (version "19.08.3")
10553 (uri (string-append "mirror://kde/stable/applications/" version
10554 "/src/ksirk-" version ".tar.xz"))
10556 (base32 "1b1wixs2hp5qnvdygfwa3kvy0kn94ysa4ifmx90q6r3yfr2lpfca"))))
10557 (build-system qt-build-system)
10559 `(("extra-cmake-modules" ,extra-cmake-modules)
10560 ("kdoctools" ,kdoctools)))
10562 `(("kcrash" ,kcrash)
10564 ("kiconthemes" ,kiconthemes)
10566 ("knewstuff" ,knewstuff)
10567 ("kwallet" ,kwallet)
10568 ("kxmlgui" ,kxmlgui)
10569 ("libkdegames" ,libkdegames)
10573 ("qtdeclarative" ,qtdeclarative)
10576 (home-page "https://games.kde.org/")
10577 (synopsis "Computerized version of the well known strategy board game
10579 (description "KsirK is a multi-player network-enabled game. The goal of
10580 the game is simply to conquer the world by attacking your neighbors with your
10583 At the beginning of the game, countries are distributed to all the players.
10584 Each country contains one army represented by an infantryman. Each player has
10585 some armies to distribute to his countries. On each turn, each player can
10586 attack his neighbours, eventually conquering one or more countries. At the
10587 end of each turn, some bonus armies are distributed to the players in function
10588 of the number of countries they own. The winner is the player that conquered
10593 @item Support for 1-6 human or computer players
10594 @item Multi-player gaming over a network
10595 @item You can easily create new skins with SVG graphics and the skin editor
10596 @item Hot New Stuff support. You can easily download and install new skins
10599 This package is part of the KDE games module.")
10600 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10602 (define-public palapeli
10605 (version "19.08.3")
10609 (uri (string-append "mirror://kde/stable/applications/" version
10610 "/src/palapeli-" version ".tar.xz"))
10612 (base32 "1g91ydbc0x2y2gn3lcb5w03mn7k78l5bq4cb1s59kx6yjbflv3pw"))))
10613 (build-system qt-build-system)
10615 `(("extra-cmake-modules" ,extra-cmake-modules)
10616 ("kdoctools" ,kdoctools)))
10618 `(("karchive" ,karchive)
10619 ("kcompletion" ,kcompletion)
10620 ("kconfig" ,kconfig)
10621 ("kconfigwidgets" ,kconfigwidgets)
10622 ("kcoreaddons" ,kcoreaddons)
10628 ("kitemviews" ,kitemviews)
10629 ("knotifications" ,knotifications)
10630 ("kservice" ,kservice)
10631 ("kwidgetsaddons" ,kwidgetsaddons)
10632 ("kxmlgui" ,kxmlgui)
10633 ("libkdegames" ,libkdegames)
10635 ("qtdeclarative" ,qtdeclarative)
10637 ("shared-mime-info" ,shared-mime-info)))
10638 (home-page "https://games.kde.org/")
10639 (synopsis "Jigsaw puzzle game")
10640 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
10641 that genre, you are not limited to aligning pieces on imaginary grids. The
10642 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
10643 everything you do is saved on your disk immediately.
10645 Palapeli is the Finnish word for jigsaw puzzle.
10647 This package is part of the KDE games module.")
10648 (license license:gpl2+)))
10650 (define-public kiriki
10653 (version "19.08.3")
10657 (uri (string-append "mirror://kde/stable/applications/" version
10658 "/src/kiriki-" version ".tar.xz"))
10660 (base32 "1xg25dj95g81dc5l7k47am4j52abrwwfx4h73lvsbn4lc8lfmshw"))))
10661 (build-system qt-build-system)
10663 `(("extra-cmake-modules" ,extra-cmake-modules)
10664 ("kdoctools" ,kdoctools)))
10666 `(("kcompletion" ,kcompletion)
10667 ("kconfig" ,kconfig)
10668 ("kconfigwidgets" ,kconfigwidgets)
10669 ("kcoreaddons" ,kcoreaddons)
10671 ("kdbusaddons" ,kdbusaddons)
10673 ("kiconthemes" ,kiconthemes)
10674 ("kxmlgui" ,kxmlgui)
10675 ("libkdegames" ,libkdegames)
10677 ("qtdeclarative" ,qtdeclarative)))
10678 (home-page "https://games.kde.org/")
10679 (synopsis "Yahtzee dice game")
10680 (description "Kiriki is an addictive and fun dice game, designed to be
10681 played by as many as six players.
10683 Participants have to collect points by rolling five dice for up to three times
10684 per single turn to make combinations with the highest score.
10686 This package is part of the KDE games module.")
10687 (license (list license:gpl2+ license:fdl1.2+))))
10689 (define-public kigo
10692 (version "19.08.3")
10696 (uri (string-append "mirror://kde/stable/applications/" version
10697 "/src/kigo-" version ".tar.xz"))
10699 (base32 "00l5gcbi8xyj9c1lngkrddka3a4m4cd78prfplrpq32ma9xq681f"))))
10700 (build-system qt-build-system)
10702 `(("extra-cmake-modules" ,extra-cmake-modules)
10703 ("kdoctools" ,kdoctools)))
10705 `(("kconfig" ,kconfig)
10706 ("kconfigwidgets" ,kconfigwidgets)
10707 ("kcoreaddons" ,kcoreaddons)
10709 ("kdbusaddons" ,kdbusaddons)
10712 ("knewstuff", knewstuff)
10713 ("ktextwidgets" ,ktextwidgets)
10714 ("kxmlgui" ,kxmlgui)
10715 ("libkdegames" ,libkdegames)
10717 ("qtdeclarative" ,qtdeclarative)
10719 (home-page "https://games.kde.org/")
10720 (synopsis "Go board game")
10721 (description "Kigo is an open-source implementation of the popular Go
10724 Go is a strategic board game for two players. It is also known as
10725 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
10726 for being rich in strategic complexity despite its simple rules. The game is
10727 played by two players who alternately place black and white stones (playing
10728 pieces, now usually made of glass or plastic) on the vacant intersections of a
10729 grid of 19x19 lines (9x9 or 13x13 for easier games).
10731 You also need to install a go engine, e.g. @code{gnugo}.
10733 This package is part of the KDE games module.")
10734 (license license:gpl3+)))
10736 (define-public kubrick
10739 (version "19.08.3")
10743 (uri (string-append "mirror://kde/stable/applications/" version
10744 "/src/kubrick-" version ".tar.xz"))
10746 (base32 "0ma8wja4rqlsmsr8cyicfpkwlgqva4450ls4c0ql53p0kabf04gx"))))
10747 (build-system qt-build-system)
10749 `(("extra-cmake-modules" ,extra-cmake-modules)
10750 ("kdoctools" ,kdoctools)))
10753 ("kconfig" ,kconfig)
10754 ("kconfigwidgets" ,kconfigwidgets)
10755 ("kcoreaddons" ,kcoreaddons)
10759 ("kwidgetsaddons" ,kwidgetsaddons)
10760 ("kxmlgui" ,kxmlgui)
10761 ("libkdegames" ,libkdegames)
10763 ("qtdeclarative" ,qtdeclarative)
10765 (home-page "https://games.kde.org/")
10766 (synopsis "Game based on Rubik's Cube")
10767 (description "Kubrick is a game based on the Rubik's Cube puzzle.
10769 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
10770 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
10771 selection of puzzles at several levels of difficulty, as well as demos of
10772 pretty patterns and solution moves, or you can make up your own puzzles. The
10773 game has unlimited undo, redo, save and reload capabilities.
10775 This package is part of the KDE games module.")
10776 (license (list license:gpl2+ license:fdl1.2+))))
10778 (define-public lskat
10781 (version "19.08.3")
10785 (uri (string-append "mirror://kde/stable/applications/" version
10786 "/src/lskat-" version ".tar.xz"))
10788 (base32 "1qk5hd27zb42pbcxq5wyzz62nj5f0qdmgy54r9rnk92pzzzk94s9"))))
10789 (build-system qt-build-system)
10791 `(("extra-cmake-modules" ,extra-cmake-modules)
10792 ("kdoctools" ,kdoctools)))
10794 `(("kcompletion" ,kcompletion)
10795 ("kconfig" ,kconfig)
10796 ("kcoreaddons" ,kcoreaddons)
10798 ("kguiaddons" ,kguiaddons)
10800 ("kwidgetsaddons" ,kwidgetsaddons)
10801 ("kxmlgui" ,kxmlgui)
10802 ("libkdegames" ,libkdegames)
10804 ("qtdeclarative" ,qtdeclarative)
10806 (home-page "https://games.kde.org/")
10807 (synopsis "Lieutnant Skat card game")
10808 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
10809 engaging card game for two players, where the second player is either live
10810 opponent, or a built in artificial intelligence.
10812 Lieutnant Skat is a simplified variant of the Skat card game for two players.
10814 This package is part of the KDE games module.")
10815 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10817 (define-public kapman
10820 (version "19.08.3")
10824 (uri (string-append "mirror://kde/stable/applications/" version
10825 "/src/kapman-" version ".tar.xz"))
10827 (base32 "03pq38caam30q4bw14c045kayw2d87xq1yaa3s2jkrylylfq3p0f"))))
10828 (build-system qt-build-system)
10830 `(("extra-cmake-modules" ,extra-cmake-modules)
10831 ("kdoctools" ,kdoctools)))
10833 `(("kcompletion" ,kcompletion)
10834 ("kconfig" ,kconfig)
10835 ("kconfigwidgets" ,kconfigwidgets)
10836 ("kcoreaddons" ,kcoreaddons)
10838 ("kdbusaddons" ,kdbusaddons)
10840 ("kxmlgui" ,kxmlgui)
10841 ("libkdegames" ,libkdegames)
10843 ("qtdeclarative" ,qtdeclarative)
10845 (home-page "https://games.kde.org/")
10846 (synopsis "Pac-Man clone")
10847 (description "Kapman is a clone of the well known game Pac-Man.
10849 You must run through the maze to eat all pills without being captured by a
10850 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
10851 few seconds. When a stage is cleared of pills and energizer the player is
10852 taken to the next stage with slightly increased game speed
10854 This package is part of the KDE games module.")
10855 (license (list license:gpl2+ license:fdl1.2+))))
10857 (define-public kspaceduel
10859 (name "kspaceduel")
10860 (version "19.08.3")
10864 (uri (string-append "mirror://kde/stable/applications/" version
10865 "/src/kspaceduel-" version ".tar.xz"))
10867 (base32 "1hppni0ihs7psc0dly5rxyy2a38nzhlig9yfyhi3lkh36z05pql8"))))
10868 (build-system qt-build-system)
10870 `(("extra-cmake-modules" ,extra-cmake-modules)
10871 ("kdoctools" ,kdoctools)))
10873 `(("kcompletion" ,kcompletion)
10874 ("kconfig" ,kconfig)
10875 ("kconfigwidgets" ,kconfigwidgets)
10876 ("kcoreaddons" ,kcoreaddons)
10878 ("kdbusaddons" ,kdbusaddons)
10880 ("kxmlgui" ,kxmlgui)
10881 ("libkdegames" ,libkdegames)
10883 ("qtdeclarative" ,qtdeclarative)
10885 (home-page "https://games.kde.org/")
10886 (synopsis "Two player game with shooting spaceships flying around a sun")
10887 (description "KSpaceduel is a space battle game for one or two players,
10888 where two ships fly around a star in a struggle to be the only survivor.
10890 This package is part of the KDE games module.")
10891 (license (list license:gpl2+ license:fdl1.2+))))
10893 (define-public bovo
10896 (version "19.08.3")
10900 (uri (string-append "mirror://kde/stable/applications/" version
10901 "/src/bovo-" version ".tar.xz"))
10903 (base32 "0dbpng0w52nahmx7brsll66zw23ql1g6pcvn2k4g2lnvxch0i59g"))))
10904 (build-system qt-build-system)
10906 `(("extra-cmake-modules" ,extra-cmake-modules)
10907 ("kdoctools" ,kdoctools)))
10909 `(("kcompletion" ,kcompletion)
10910 ("kcoreaddons" ,kcoreaddons)
10912 ("kdbusaddons" ,kdbusaddons)
10914 ("kxmlgui" ,kxmlgui)
10915 ("libkdegames" ,libkdegames)
10917 ("qtdeclarative" ,qtdeclarative)
10919 (home-page "https://games.kde.org/")
10920 (synopsis "Classic pen and paper game: five in a line")
10921 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
10922 points\") like game for two players, where the opponents alternate in placing
10923 their respective pictogram on the game board. The winner is the first to
10924 complete a line of five markers. (Also known as: Connect Five, Five in a row,
10925 X and O, Naughts and Crosses)
10927 This package is part of the KDE games module.")
10928 (license (list license:gpl2+ license:fdl1.2+))))
10930 (define-public killbots
10933 (version "19.08.3")
10937 (uri (string-append "mirror://kde/stable/applications/" version
10938 "/src/killbots-" version ".tar.xz"))
10940 (base32 "1qi86q7diw7glkp9v33yim9nhz2da4balbxa1hjrdgjdv8zdbxbm"))))
10941 (build-system qt-build-system)
10943 `(("extra-cmake-modules" ,extra-cmake-modules)
10944 ("kdoctools" ,kdoctools)))
10946 `(("kcompletion" ,kcompletion)
10947 ("kconfig" ,kconfig)
10948 ("kconfigwidgets" ,kconfigwidgets)
10949 ("kcoreaddons" ,kcoreaddons)
10951 ("kdbusaddons" ,kdbusaddons)
10953 ("kwidgetsaddons" ,kwidgetsaddons)
10954 ("kxmlgui" ,kxmlgui)
10955 ("libkdegames" ,libkdegames)
10957 ("qtdeclarative" ,qtdeclarative)))
10958 (home-page "https://games.kde.org/")
10959 (synopsis "Port of the classic BSD console game robots")
10960 (description "Killbots is a simple game of evading killer robots.
10962 Who created the robots and why they have been programmed to destroy, no one
10963 knows. All that is known is that the robots are numerous and their sole
10964 objective is to destroy you. Fortunately for you, their creator has focused
10965 on quantity rather than quality and as a result the robots are severely
10966 lacking in intelligence. Your superior wit and a fancy teleportation device
10967 are your only weapons against the never-ending stream of mindless automatons.
10969 This package is part of the KDE games module.")
10970 (license (list license:gpl2+ license:fdl1.2+))))
10972 (define-public ksnakeduel
10974 (name "ksnakeduel")
10975 (version "19.08.3")
10979 (uri (string-append "mirror://kde/stable/applications/" version
10980 "/src/ksnakeduel-" version ".tar.xz"))
10982 (base32 "0mprrnpax8pv7ab36zwhvdfj8id52w8g6x76nnj8qvkdlkjiqdnn"))))
10983 (build-system qt-build-system)
10985 `(("extra-cmake-modules" ,extra-cmake-modules)
10986 ("kdoctools" ,kdoctools)))
10988 `(("kcompletion" ,kcompletion)
10989 ("kconfig" ,kconfig)
10990 ("kconfigwidgets" ,kconfigwidgets)
10991 ("kcoreaddons" ,kcoreaddons)
10993 ("kdbusaddons" ,kdbusaddons)
10994 ("kguiaddons" ,kguiaddons)
10996 ("kxmlgui" ,kxmlgui)
10997 ("libkdegames" ,libkdegames)
10999 ("qtdeclarative" ,qtdeclarative)
11001 (home-page "https://games.kde.org/")
11002 (synopsis "Snake race played against the computer")
11003 (description "KSnakeDuel is a fast action game where you steer a snake
11004 which has to eat food. While eating the snake grows. But once a player
11005 collides with the other snake or the wall the game is lost. This becomes of
11006 course more and more difficult the longer the snakes grow.
11008 This package is part of the KDE games module.")
11009 (license (list license:gpl2+ license:fdl1.2+))))
11011 (define-public kollision
11014 (version "19.08.3")
11018 (uri (string-append "mirror://kde/stable/applications/" version
11019 "/src/kollision-" version ".tar.xz"))
11021 (base32 "1p7qrn3d0ybpvc9k6k5wzj54dsrp1rqh39844maz0ay2fhvmch12"))))
11022 (build-system qt-build-system)
11024 `(("extra-cmake-modules" ,extra-cmake-modules)
11025 ("kdoctools" ,kdoctools)))
11027 `(("kcompletion" ,kcompletion)
11028 ("kconfig" ,kconfig)
11029 ("kcoreaddons" ,kcoreaddons)
11031 ("kdbusaddons" ,kdbusaddons)
11033 ("kwidgetsaddons" ,kwidgetsaddons)
11034 ("kxmlgui" ,kxmlgui)
11035 ("libkdegames" ,libkdegames)
11037 ("qtdeclarative" ,qtdeclarative)))
11038 (home-page "https://games.kde.org/")
11039 (synopsis "Simple ball dodging game")
11040 (description "In Kollision you use mouse to control a small blue ball in a
11041 closed space environment filled with small red balls, which move about
11042 chaotically. Your goal is to avoid touching any of those red balls with your
11043 blue one, because the moment you do the game will be over. The longer you can
11044 stay in game the higher will your score be.
11046 This package is part of the KDE games module.")
11047 (license (list license:gpl2+ license:fdl1.2+))))
11049 (define-public knavalbattle
11051 (name "knavalbattle")
11052 (version "19.08.3")
11056 (uri (string-append "mirror://kde/stable/applications/" version
11057 "/src/knavalbattle-" version ".tar.xz"))
11059 (base32 "0sdfjplqkb30x2mvh66pkzay6vn5px87779sh2s8lpl6fcw0v9g4"))))
11060 (build-system qt-build-system)
11062 `(("extra-cmake-modules" ,extra-cmake-modules)
11063 ("kdoctools" ,kdoctools)))
11066 ("kcompletion" ,kcompletion)
11067 ("kconfig" ,kconfig)
11068 ("kconfigwidgets" ,kconfigwidgets)
11069 ("kcoreaddons" ,kcoreaddons)
11071 ("kdbusaddons" ,kdbusaddons)
11074 ("ktextwidgets" ,ktextwidgets)
11075 ("kxmlgui" ,kxmlgui)
11076 ("libkdegames" ,libkdegames)
11078 ("qtdeclarative" ,qtdeclarative)))
11079 (home-page "https://games.kde.org/")
11080 (synopsis "Battleship board game with built-in game server")
11081 (description "KBattleship is a Battle Ship game for KDE.
11083 Ships are placed on a board which represents the sea. Players try to hit each
11084 others ships in turns without knowing where they are placed. The first player
11085 to destroy all ships wins the game.
11087 This package is part of the KDE games module.")
11088 (license (list license:gpl2+ license:fdl1.2+))))
11090 (define-public kreversi
11093 (version "19.08.3")
11097 (uri (string-append "mirror://kde/stable/applications/" version
11098 "/src/kreversi-" version ".tar.xz"))
11100 (base32 "0b6q8df2bawgnrswhq59z37axad0q3zpvvzxdds7sz1lw505xw9h"))))
11101 (build-system qt-build-system)
11103 `(("extra-cmake-modules" ,extra-cmake-modules)
11104 ("kdoctools" ,kdoctools)))
11106 `(("kconfig" ,kconfig)
11107 ("kconfigwidgets" ,kconfigwidgets)
11108 ("kcoreaddons" ,kcoreaddons)
11110 ("kdbusaddons" ,kdbusaddons)
11111 ("kdeclarative" ,kdeclarative)
11113 ("kiconthemes" ,kiconthemes)
11115 ("kxmlgui" ,kxmlgui)
11116 ("libkdegames" ,libkdegames)
11118 ("qtdeclarative" ,qtdeclarative)
11120 (home-page "https://games.kde.org/")
11121 (synopsis "Old reversi board game, also known as othello")
11122 (description "KReversi is a simple one player strategy game played
11123 against the computer.
11125 If a player's piece is captured by an opposing player, that piece is turned
11126 over to reveal the color of that player. A winner is declared when one player
11127 has more pieces of his own color on the board and there are no more possible
11130 This package is part of the KDE games module.")
11131 (license (list license:gpl2+ license:fdl1.2+))))
11133 (define-public ksquares
11136 (version "19.08.3")
11140 (uri (string-append "mirror://kde/stable/applications/" version
11141 "/src/ksquares-" version ".tar.xz"))
11143 (base32 "0hv8hls5s627lys08nnw72rfzsafj3dmp49mh2afzmh6lgk9h5vy"))))
11144 (build-system qt-build-system)
11146 `(("extra-cmake-modules" ,extra-cmake-modules)
11147 ("kdoctools" ,kdoctools)))
11149 `(("kcompletion" ,kcompletion)
11150 ("kconfig" ,kconfig)
11151 ("kconfigwidgets" ,kconfigwidgets)
11152 ("kcoreaddons" ,kcoreaddons)
11154 ("kdbusaddons" ,kdbusaddons)
11156 ("kwidgetsaddons" ,kwidgetsaddons)
11157 ("kxmlgui" ,kxmlgui)
11158 ("libkdegames" ,libkdegames)
11160 ("qtdeclarative" ,qtdeclarative)))
11161 (home-page "https://games.kde.org/")
11162 (synopsis "Dots and Boxes game")
11163 (description "KSquares is an implementation of the popular paper based
11164 game Squares. Two players take turns connecting dots on a grid to complete
11165 squares, the player with the most squares wins.
11167 This package is part of the KDE games module.")
11168 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11170 (define-public kjumpingcube
11172 (name "kjumpingcube")
11173 (version "19.08.3")
11177 (uri (string-append "mirror://kde/stable/applications/" version
11178 "/src/kjumpingcube-" version ".tar.xz"))
11180 (base32 "0d67zqkf2xffjkj671gl2n6nj6jajyn6rgqqj5i6gm500mqi9rm1"))))
11181 (build-system qt-build-system)
11183 `(("extra-cmake-modules" ,extra-cmake-modules)
11184 ("kdoctools" ,kdoctools)))
11186 `(("kconfig" ,kconfig)
11187 ("kconfigwidgets" ,kconfigwidgets)
11188 ("kcoreaddons" ,kcoreaddons)
11190 ("kdbusaddons" ,kdbusaddons)
11193 ("kwidgetsaddons" ,kwidgetsaddons)
11194 ("kxmlgui" ,kxmlgui)
11195 ("libkdegames" ,libkdegames)
11197 ("qtdeclarative" ,qtdeclarative)
11199 (home-page "https://games.kde.org/")
11200 (synopsis "Simple tactical game for number-crunchers")
11201 (description "KJumpingcube is a simple tactical game for one or two
11202 players, played on a grid of numbered squares. Each turn, players compete for
11203 control of the board by capturing or adding to one square.
11205 This package is part of the KDE games module.")
11206 (license (list license:gpl2+ license:fdl1.2+))))
11208 (define-public xmoto
11215 (uri (git-reference
11216 (url "https://github.com/xmoto/xmoto")
11218 (file-name (git-file-name name version))
11220 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11221 (modules '((guix build utils)
11224 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11225 ;; it appears to be incompatible with the (older) one bundled.
11228 (let ((keep '("chipmunk" "glad" "md5sum")))
11229 (with-directory-excursion "vendor"
11230 (for-each delete-file-recursively
11231 (lset-difference string=?
11233 (cons* "." ".." keep))))
11234 (substitute* "src/CMakeLists.txt"
11235 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11236 (if (member library keep) line ""))))
11238 (build-system cmake-build-system)
11240 `(#:tests? #f ;no test
11242 (modify-phases %standard-phases
11243 (add-after 'unpack 'fix-hard-coded-directory
11244 (lambda* (#:key outputs #:allow-other-keys)
11245 (substitute* "src/common/VFileIO.cpp"
11247 (string-append (assoc-ref outputs "out") "/share")))
11249 (add-before 'build 'set-SDL
11250 ;; Set correct environment for SDL.
11251 (lambda* (#:key inputs #:allow-other-keys)
11254 (assoc-ref inputs "sdl") "/include/SDL:"
11255 (or (getenv "CPATH") "")))
11257 (add-after 'install 'unbundle-fonts
11258 ;; Unbundle DejaVuSans TTF files.
11259 (lambda* (#:key outputs inputs #:allow-other-keys)
11260 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11261 "/share/fonts/truetype/"))
11262 (target-dir (string-append (assoc-ref outputs "out")
11263 "/share/xmoto/Textures/Fonts/")))
11264 (for-each (lambda (f)
11265 (let ((font (string-append font-dir f))
11266 (target (string-append target-dir f)))
11267 (delete-file target)
11268 (symlink font target)))
11269 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11272 `(("gettext" ,gettext-minimal)
11273 ("pkg-config" ,pkg-config)))
11277 ("font-dejavu" ,font-dejavu)
11279 ("libjpeg" ,libjpeg-turbo)
11281 ("libxdg-basedir" ,libxdg-basedir)
11282 ("libxml2" ,libxml2)
11285 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11288 (home-page "https://xmoto.tuxfamily.org/")
11289 (synopsis "2D motocross platform game")
11291 "X-Moto is a challenging 2D motocross platform game, where
11292 physics play an all important role in the gameplay. You need to
11293 control your bike to its limit, if you want to have a chance finishing
11294 the more difficult challenges.")
11295 (license (list license:gpl2+ ;whole project
11296 license:bsd-3 ;vendor/md5sum
11300 (define-public eboard
11307 (uri (git-reference
11308 (url "https://github.com/fbergo/eboard")
11309 (commit (string-append "v" version))))
11310 (file-name (git-file-name name version))
11312 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11313 (build-system gnu-build-system)
11316 ("pkg-config" ,pkg-config)))
11320 ("gstreamer" ,gstreamer)))
11324 (modify-phases %standard-phases
11325 (replace 'configure
11326 (lambda* (#:key outputs #:allow-other-keys)
11327 (make-file-writable "eboard-config")
11328 (setenv "CC" "gcc")
11329 (invoke "./configure"
11330 (string-append "--prefix=" (assoc-ref outputs "out")))
11332 (add-before 'install 'make-required-directories
11333 (lambda* (#:key outputs #:allow-other-keys)
11334 (mkdir-p (string-append (assoc-ref outputs "out")
11337 (synopsis "Graphical user interface to play chess")
11339 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11340 and chess engines.")
11341 (home-page "https://www.bergo.eng.br/eboard/")
11342 (license license:gpl2+)))
11344 (define-public chessx
11351 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11352 version "/chessx-" version ".tgz"))
11354 (base32 "1a3541vl5hp6jllgx998w9kjh9kp3wrl80yfwkxmq1bc5bzsrnz2"))))
11355 (build-system qt-build-system)
11357 `(("qttools" ,qttools)))
11359 `(("qtbase" ,qtbase)
11360 ("qtmultimedia" ,qtmultimedia)
11361 ("qtspeech" ,qtspeech)
11367 (modify-phases %standard-phases
11368 (add-after 'unpack 'fix-paths
11369 (lambda* (#:key inputs #:allow-other-keys)
11370 (substitute* "chessx.pro"
11371 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11372 (string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
11373 ;; Fix missing translations.
11374 (("TRANSLATIONS = i18n/chessx_de.ts")
11375 "TRANSLATIONS = i18n/chessx_de.ts i18n/chessx_da.ts \\
11376 i18n/chessx_fr.ts i18n/chessx_it.ts i18n/chessx_cz.ts i18n/chessx_ru.ts \\
11377 i18n/chessx_es.ts"))
11379 (add-after 'fix-paths 'make-qt-deterministic
11381 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11383 (replace 'configure
11388 (lambda* (#:key outputs #:allow-other-keys)
11389 (let ((out (assoc-ref outputs "out")))
11390 (install-file "release/chessx" (string-append out "/bin"))
11391 (install-file "unix/chessx.desktop"
11392 (string-append out "/share/applications")))
11394 (synopsis "Chess game database")
11396 "ChessX is a chess database. With ChessX you can operate on your
11397 collection of chess games in many ways: browse, edit, add, organize, analyze,
11398 etc. You can also play games on FICS or against an engine.")
11399 (home-page "http://chessx.sourceforge.net/")
11400 (license license:gpl2+)))
11402 (define-public stockfish
11409 (uri (git-reference
11410 (url "https://github.com/official-stockfish/Stockfish")
11411 (commit (string-append "sf_" version))))
11412 (file-name (git-file-name name version))
11414 (base32 "12mppipinymj8s1ipq9a7is453vncly49c32ym9wvyklsgyxfzlk"))))
11415 (build-system gnu-build-system)
11418 #:make-flags (list "-C" "src"
11420 (string-append "PREFIX="
11421 (assoc-ref %outputs "out"))
11422 (string-append "ARCH="
11423 ,(match (%current-system)
11424 ("x86_64-linux" "x86-64")
11425 ("i686-linux" "x86-32")
11426 ("aarch64-linux" "general-64")
11427 ("armhf-linux" "armv7")
11428 ("mips64el-linux" "general-64")
11429 (_ "general-32"))))
11430 #:phases (modify-phases %standard-phases
11431 (delete 'configure))))
11432 (synopsis "Strong chess engine")
11434 "Stockfish is a very strong chess engines. It is much stronger than the
11435 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11437 (home-page "https://stockfishchess.org/")
11438 (license license:gpl3+)))
11440 (define-public barrage
11447 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11448 "barrage-" version ".tar.gz"))
11450 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11451 (build-system gnu-build-system)
11453 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11455 ("sdl-mixer" ,sdl-mixer)))
11457 `(#:configure-flags
11459 (string-append "CFLAGS="
11460 "-I" (assoc-ref %build-inputs "sdl-mixer")
11462 (home-page "http://lgames.sourceforge.net/Barrage/")
11463 (synopsis "Violent point-and-click shooting game with nice effects")
11465 "Barrage is a rather destructive action game that puts you on a shooting
11466 range with the objective to hit as many dummy targets as possible within
11467 3 minutes. You control a gun that may either fire small or large grenades at
11468 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11470 (license license:gpl2+)))
11472 (define-public burgerspace
11474 (name "burgerspace")
11479 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11480 "burgerspace-" version ".tar.gz"))
11482 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11483 (build-system gnu-build-system)
11485 `(("pkg-config" ,pkg-config)))
11487 `(("flatzebra" ,flatzebra)))
11488 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11489 (synopsis "Avoid evil foodstuffs and make burgers")
11491 "This is a clone of the classic game BurgerTime. In it, you play
11492 the part of a chef who must create burgers by stepping repeatedly on
11493 the ingredients until they fall into place. And to make things more
11494 complicated, you also must avoid evil animate food items while
11495 performing this task, with nothing but your trusty pepper shaker to
11497 (license license:gpl2+)))
11499 (define-public 7kaa
11502 (version "2.15.4p1")
11506 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11507 "releases/download/v" version "/"
11508 "7kaa-" version ".tar.xz"))
11510 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
11511 (build-system gnu-build-system)
11513 `(("gettext" ,gettext-minimal)
11514 ("pkg-config" ,pkg-config)))
11520 (home-page "https://7kfans.com/")
11521 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11523 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11524 Strategy with the addition of trade, diplomacy, and espionage. The game
11525 enables players to compete against up to six other kingdoms allowing players
11526 to conquer opponents by defeating them in war (with troops or machines),
11527 capturing their buildings with spies, or offering opponents money for their
11529 (license license:gpl2+)))
11531 (define-public neverball
11532 ;; Git version is 6-years younger than latest release.
11533 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
11537 (version (git-version "1.6.0" revision commit))
11541 (uri (git-reference
11542 (url "https://github.com/Neverball/neverball")
11546 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
11547 (file-name (git-file-name name version))
11548 (modules '((guix build utils)))
11551 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
11552 (delete-file-recursively "data/ball/octocat")
11554 (build-system copy-build-system)
11557 '(("neverball" "bin/")
11558 ("neverputt" "bin/")
11560 ("data" "share/games/neverball/")
11561 ("locale" "share/")
11562 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
11565 ("dist/" "share/applications" #:include ("neverball.desktop"
11566 "neverputt.desktop"))
11567 ("dist/neverball_16.png"
11568 "/share/icons/hicolor/16x16/apps/neverball.png")
11569 ("dist/neverball_24.png"
11570 "/share/icons/hicolor/24x24/apps/neverball.png")
11571 ("dist/neverball_32.png"
11572 "/share/icons/hicolor/32x32/apps/neverball.png")
11573 ("dist/neverball_48.png"
11574 "/share/icons/hicolor/48x48/apps/neverball.png")
11575 ("dist/neverball_64.png"
11576 "/share/icons/hicolor/64x64/apps/neverball.png")
11577 ("dist/neverball_128.png"
11578 "/share/icons/hicolor/128x128/apps/neverball.png")
11579 ("dist/neverball_256.png"
11580 "/share/icons/hicolor/256x256/apps/neverball.png")
11581 ("dist/neverball_512.png"
11582 "/share/icons/hicolor/512x512/apps/neverball.png")
11583 ("dist/neverputt_16.png"
11584 "/share/icons/hicolor/16x16/apps/neverputt.png")
11585 ("dist/neverputt_24.png"
11586 "/share/icons/hicolor/24x24/apps/neverputt.png")
11587 ("dist/neverputt_32.png"
11588 "/share/icons/hicolor/32x32/apps/neverputt.png")
11589 ("dist/neverputt_48.png"
11590 "/share/icons/hicolor/48x48/apps/neverputt.png")
11591 ("dist/neverputt_64.png"
11592 "/share/icons/hicolor/64x64/apps/neverputt.png")
11593 ("dist/neverputt_128.png"
11594 "/share/icons/hicolor/128x128/apps/neverputt.png")
11595 ("dist/neverputt_256.png"
11596 "/share/icons/hicolor/256x256/apps/neverputt.png")
11597 ("dist/neverputt_512.png"
11598 "/share/icons/hicolor/512x512/apps/neverputt.png")
11599 ("dist/" "share/man/man1" #:include ("mapc.1"))
11600 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
11601 ("doc/" "share/doc/neverball")
11602 ("README.md" "share/doc/neverball/"))
11604 (modify-phases %standard-phases
11605 (add-before 'install 'build
11606 (lambda* (#:key inputs outputs #:allow-other-keys)
11607 (let* ((out (assoc-ref outputs "out"))
11608 (sdl (assoc-ref inputs "sdl")))
11609 (invoke "make" "-j" (number->string (parallel-job-count))
11610 "--environment-overrides"
11611 "CC=gcc" "BUILD=release"
11612 (string-append "DATADIR="
11614 "/share/games/neverball/data")
11615 (string-append "LOCALEDIR=" out "/share/locale")
11616 (string-append "SDL_CPPFLAGS=-I"
11618 "/include/SDL2/")))
11620 (add-after 'install 'fix-some-broken-fonts
11621 (lambda* (#:key outputs #:allow-other-keys)
11622 (let* ((out (assoc-ref outputs "out")))
11623 (wrap-program (string-append out "/bin/neverball")
11624 `("LANG" = ("en_US.utf8")))
11625 (wrap-program (string-append out "/bin/neverputt")
11626 `("LANG" = ("en_US.utf8"))))
11629 `(("gettext" ,gettext-minimal))) ;for msgfmt
11631 `(("libjpeg" ,libjpeg-turbo)
11633 ("libvorbis" ,libvorbis)
11635 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
11636 (home-page "https://neverball.org/")
11637 (synopsis "3D floor-tilting game")
11639 "In the grand tradition of Marble Madness and Super Monkey Ball,
11640 Neverball has you guide a rolling ball through dangerous territory. Balance
11641 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
11642 and shovers to get to the goal. Race against the clock to collect coins to
11643 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
11644 game.") ;thanks to Debian for description
11645 (license license:gpl2+))))
11647 (define-public pokerth
11654 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
11655 version "/pokerth-" version ".tar.gz"))
11657 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
11658 (modules '((guix build utils)))
11661 ;; Remove bundled websocketpp.
11662 (delete-file-recursively "src/third_party/websocketpp")
11663 (substitute* "pokerth_lib.pro"
11664 (("src/third_party/websocketpp")
11667 (build-system qt-build-system)
11672 ("libgcrypt" ,libgcrypt)
11673 ("libircclient" ,libircclient)
11674 ("protobuf" ,protobuf-2) ; remove package when no longer needed
11676 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
11678 ("tinyxml" ,tinyxml)
11679 ("websocketpp" ,websocketpp)
11682 `(#:tests? #f ; No test suite
11684 (modify-phases %standard-phases
11685 (add-after 'unpack 'fix-paths
11686 (lambda* (#:key inputs #:allow-other-keys)
11687 (substitute* (find-files "." "\\.pro$")
11689 (assoc-ref inputs "gsasl"))
11690 (("\\$\\$\\{PREFIX\\}/include/libircclient")
11691 (string-append (assoc-ref inputs "libircclient")
11692 "/include/libircclient"))
11694 (string-append "LIB_DIRS = "
11695 (assoc-ref inputs "boost") "/lib")))
11697 (add-after 'unpack 'fix-build
11699 ;; Fixes for Boost versions >= 1.66.
11700 (substitute* '("src/net/common/clientthread.cpp"
11701 "src/net/serveraccepthelper.h")
11702 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
11704 (("newSock->io_control\\(command\\);")
11705 "newSock->non_blocking(true);")
11706 (("acceptedSocket->io_control\\(command\\);")
11707 "acceptedSocket->non_blocking(true);"))
11709 (replace 'configure
11710 (lambda* (#:key outputs #:allow-other-keys)
11711 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
11712 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
11713 (home-page "https://www.pokerth.net")
11714 (synopsis "Texas holdem poker game")
11716 "With PokerTH you can play the Texas holdem poker game, either against
11717 computer opponents or against real players online.")
11718 (license license:agpl3+)))
11720 (define-public azimuth
11723 ;; Not marked as latest release, but it fixes a compiling issue
11724 ;; and adds the install target.
11729 (uri (git-reference
11730 (url "https://github.com/mdsteele/azimuth")
11731 (commit (string-append "v" version))))
11732 (file-name (git-file-name name version))
11735 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
11736 (build-system gnu-build-system)
11738 `(#:test-target "test"
11740 (modify-phases %standard-phases
11741 (delete 'configure) ; no configure script
11742 ;; Build release version instead of debug version.
11743 (add-after 'unpack 'set-release
11745 (setenv "BUILDTYPE" "release") #t))
11746 (add-after 'unpack 'fix-install ; set install directory
11747 (lambda* (#:key outputs #:allow-other-keys)
11748 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
11749 (inputs `(("sdl" ,sdl)))
11750 (home-page "https://mdsteele.games/azimuth/")
11751 (synopsis "Metroidvania game with vector graphics")
11753 "Pilot your ship inside a planet to find and rescue the colonists trapped
11754 inside the Zenith Colony.")
11755 (license license:gpl3+)))
11757 (define-public paperview
11758 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
11762 (version (git-version "0.0.1" revision commit)) ;no upstream release
11765 (uri (git-reference
11766 (url "https://github.com/glouw/paperview")
11768 (file-name (git-file-name name version))
11771 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
11772 (build-system gnu-build-system)
11776 '(#:tests? #f ;no tests
11778 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
11780 (modify-phases %standard-phases
11781 (delete 'configure))))
11782 (home-page "https://github.com/glouw/paperview/")
11783 (synopsis "High performance X11 animated wallpaper setter")
11784 (description "High performance animated desktop background setter for
11785 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
11787 (license license:unlicense))))