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 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>
55 ;;; This file is part of GNU Guix.
57 ;;; GNU Guix is free software; you can redistribute it and/or modify it
58 ;;; under the terms of the GNU General Public License as published by
59 ;;; the Free Software Foundation; either version 3 of the License, or (at
60 ;;; your option) any later version.
62 ;;; GNU Guix is distributed in the hope that it will be useful, but
63 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
64 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
65 ;;; GNU General Public License for more details.
67 ;;; You should have received a copy of the GNU General Public License
68 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
70 (define-module (gnu packages games)
71 #:use-module (ice-9 match)
72 #:use-module ((guix licenses) #:prefix license:)
73 #:use-module (guix utils)
74 #:use-module (guix packages)
75 #:use-module (guix download)
76 #:use-module (guix git-download)
77 #:use-module (guix svn-download)
78 #:use-module (guix gexp)
79 #:use-module (gnu packages)
80 #:use-module (gnu packages adns)
81 #:use-module (gnu packages algebra)
82 #:use-module (gnu packages autotools)
83 #:use-module (gnu packages backup)
84 #:use-module (gnu packages base)
85 #:use-module (gnu packages build-tools)
86 #:use-module (gnu packages admin)
87 #:use-module (gnu packages audio)
88 #:use-module (gnu packages avahi)
89 #:use-module (gnu packages assembly)
90 #:use-module (gnu packages bash)
91 #:use-module (gnu packages bison)
92 #:use-module (gnu packages boost)
93 #:use-module (gnu packages check)
94 #:use-module (gnu packages cmake)
95 #:use-module (gnu packages compression)
96 #:use-module (gnu packages curl)
97 #:use-module (gnu packages crypto)
98 #:use-module (gnu packages cyrus-sasl)
99 #:use-module (gnu packages documentation)
100 #:use-module (gnu packages docbook)
101 #:use-module (gnu packages emulators)
102 #:use-module (gnu packages flex)
103 #:use-module (gnu packages fltk)
104 #:use-module (gnu packages fonts)
105 #:use-module (gnu packages fontutils)
106 #:use-module (gnu packages freedesktop)
107 #:use-module (gnu packages fribidi)
108 #:use-module (gnu packages game-development)
109 #:use-module (gnu packages gcc)
110 #:use-module (gnu packages gettext)
111 #:use-module (gnu packages ghostscript)
112 #:use-module (gnu packages gimp)
113 #:use-module (gnu packages gl)
114 #:use-module (gnu packages glib)
115 #:use-module (gnu packages gnome)
116 #:use-module (gnu packages gnupg)
117 #:use-module (gnu packages gnuzilla)
118 #:use-module (gnu packages gperf)
119 #:use-module (gnu packages graphics)
120 #:use-module (gnu packages gsasl)
121 #:use-module (gnu packages gstreamer)
122 #:use-module (gnu packages gtk)
123 #:use-module (gnu packages guile)
124 #:use-module (gnu packages haskell)
125 #:use-module (gnu packages haskell-crypto)
126 #:use-module (gnu packages haskell-xyz)
127 #:use-module (gnu packages icu4c)
128 #:use-module (gnu packages image)
129 #:use-module (gnu packages imagemagick)
130 #:use-module (gnu packages kde)
131 #:use-module (gnu packages kde-frameworks)
132 #:use-module (gnu packages less)
133 #:use-module (gnu packages libcanberra)
134 #:use-module (gnu packages libedit)
135 #:use-module (gnu packages libunwind)
136 #:use-module (gnu packages linux)
137 #:use-module (gnu packages llvm)
138 #:use-module (gnu packages lua)
139 #:use-module (gnu packages man)
140 #:use-module (gnu packages maths)
141 #:use-module (gnu packages messaging)
142 #:use-module (gnu packages mp3)
143 #:use-module (gnu packages music)
144 #:use-module (gnu packages multiprecision)
145 #:use-module (gnu packages ncurses)
146 #:use-module (gnu packages netpbm)
147 #:use-module (gnu packages networking)
148 #:use-module (gnu packages ocaml)
149 #:use-module (gnu packages opencl)
150 #:use-module (gnu packages pcre)
151 #:use-module (gnu packages perl)
152 #:use-module (gnu packages perl-check)
153 #:use-module (gnu packages perl-compression)
154 #:use-module (gnu packages pkg-config)
155 #:use-module (gnu packages protobuf)
156 #:use-module (gnu packages pulseaudio)
157 #:use-module (gnu packages python)
158 #:use-module (gnu packages python-xyz)
159 #:use-module (gnu packages qt)
160 #:use-module (gnu packages readline)
161 #:use-module (gnu packages ruby)
162 #:use-module (gnu packages shells)
163 #:use-module (gnu packages sdl)
164 #:use-module (gnu packages serialization)
165 #:use-module (gnu packages sqlite)
166 #:use-module (gnu packages squirrel)
167 #:use-module (gnu packages swig)
168 #:use-module (gnu packages tcl)
169 #:use-module (gnu packages terminals)
170 #:use-module (gnu packages texinfo)
171 #:use-module (gnu packages textutils)
172 #:use-module (gnu packages tls)
173 #:use-module (gnu packages upnp)
174 #:use-module (gnu packages video)
175 #:use-module (gnu packages vulkan)
176 #:use-module (gnu packages web)
177 #:use-module (gnu packages wget)
178 #:use-module (gnu packages wxwidgets)
179 #:use-module (gnu packages xdisorg)
180 #:use-module (gnu packages xorg)
181 #:use-module (gnu packages xiph)
182 #:use-module (gnu packages xml)
183 #:use-module (guix build-system copy)
184 #:use-module (guix build-system cmake)
185 #:use-module (guix build-system glib-or-gtk)
186 #:use-module (guix build-system gnu)
187 #:use-module (guix build-system go)
188 #:use-module (guix build-system meson)
189 #:use-module (guix build-system perl)
190 #:use-module (guix build-system python)
191 #:use-module (guix build-system qt)
192 #:use-module (guix build-system scons)
193 #:use-module (guix build-system trivial)
194 #:use-module ((srfi srfi-1) #:hide (zip))
195 #:use-module (srfi srfi-26))
204 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
205 "/abe-" version ".tar.gz"))
207 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
208 (build-system gnu-build-system)
211 (list (string-append "--with-data-dir="
212 (assoc-ref %outputs "out")
215 (modify-phases %standard-phases
217 (lambda _ (invoke "sh" "autogen.sh")))
218 (add-before 'build 'set-SDL
219 ;; Set correct environment for SDL.
220 (lambda* (#:key inputs #:allow-other-keys)
223 (assoc-ref inputs "sdl") "/include/SDL:"
224 (or (getenv "CPATH") "")))
226 (add-after 'install 'finalize-install
227 (lambda* (#:key outputs #:allow-other-keys)
228 (let ((share (string-append (assoc-ref outputs "out") "/share")))
229 ;; Installation script does not copy game data files.
230 (let ((data (string-append share "/abe")))
231 (for-each (lambda (dir)
232 (let ((target (string-append data "/" dir)))
234 (copy-recursively dir target)))
235 '("images" "maps" "sounds")))
236 ;; Create desktop file.
237 (let ((apps (string-append share "/applications")))
239 (make-desktop-entry-file
240 (string-append apps "/abe.desktop")
241 #:name "Abe's Amazing Adventure"
243 #:categories '("AdventureGame" "Game")
245 '("side-scrolling" "adventure" "pyramid" "singleplayer")
247 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
248 (#f "Side-scrolling game")))))
251 `(("autoconf" ,autoconf)
252 ("automake" ,automake)))
257 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
258 (home-page "http://abe.sourceforge.net")
259 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
261 "Abe's Amazing Adventure is a scrolling,
262 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
263 the style of similar games for the Commodore+4.")
264 (license license:gpl2+)))
266 ;; Data package for adanaxisgpl.
267 (define adanaxis-mush
268 (let ((version "1.1.0"))
271 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
274 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
276 (define-public adanaxisgpl
283 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
286 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
287 (modules '((guix build utils)))
290 ;; Necessary for building with gcc >=4.7.
291 (substitute* "src/Mushcore/MushcoreSingleton.h"
292 (("SingletonPtrSet\\(new SingletonType\\);")
293 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
294 ;; Avoid an "invalid conversion from const char* to char*" error.
295 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
296 (("char \\*end, \\*result;")
297 (string-append "const char *end;"
301 (build-system gnu-build-system)
303 `(#:tests? #f ; no check target
305 (modify-phases %standard-phases
306 (add-after 'install 'install-data
307 (lambda* (#:key inputs outputs #:allow-other-keys)
308 (let ((data (assoc-ref inputs "adanaxis-mush"))
309 (share (string-append (assoc-ref outputs "out")
310 "/share/" ,name "-" ,version)))
312 (invoke "tar" "xvf" data "-C" share)))))))
314 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
317 ("freeglut" ,freeglut)
319 ("libjpeg" ,libjpeg-turbo)
322 ("libvorbis" ,libvorbis)
327 ("sdl-mixer" ,sdl-mixer)))
328 (home-page "https://www.mushware.com")
329 (synopsis "Action game in four spatial dimensions")
331 "Adanaxis is a fast-moving first person shooter set in deep space, where
332 the fundamentals of space itself are changed. By adding another dimension to
333 space this game provides an environment with movement in four directions and
334 six planes of rotation. Initially the game explains the 4D control system via
335 a graphical sequence, before moving on to 30 levels of gameplay with numerous
336 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
337 mouse and joystick control, and original music.")
338 (license license:gpl2)))
348 (url "https://github.com/carstene1ns/alex4")
350 (file-name (git-file-name name version))
352 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
353 (build-system gnu-build-system)
355 `(#:tests? #f ; no check target
358 "CFLAGS=-D_FILE_OFFSET_BITS=64"
359 (string-append "PREFIX=" (assoc-ref %outputs "out")))
361 (modify-phases %standard-phases
362 (delete 'configure) ; no configure script
363 (add-after 'install 'install-data
364 (lambda* (#:key outputs #:allow-other-keys)
365 (let ((share (string-append (assoc-ref outputs "out")
367 (install-file "alex4.ini" share)
370 `(("allegro" ,allegro-4)
371 ("dumb" ,dumb-allegro4)))
372 (home-page "http://allegator.sourceforge.net/")
373 (synopsis "Retro platform game")
375 "Guide Alex the Allegator through the jungle in order to save his
376 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
377 Plenty of classic platforming in four nice colors guaranteed!
379 The game includes a built-in editor so you can design and share your own maps.")
380 (license license:gpl2+)))
382 (define-public armagetronad
384 (name "armagetronad")
385 (version "0.2.8.3.5")
388 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
389 version "/armagetronad-" version ".src.tar.gz"))
392 "1z266haq22n5b0733h7qsg1rpzhz8lvm82f7wd06r008iiar7jdl"))))
393 (build-system gnu-build-system)
395 `(("libxml2" ,libxml2)
397 ("sdl-image" ,sdl-image)
398 ("freeglut" ,freeglut)
400 ("libjpeg-turbo" ,libjpeg-turbo)))
401 (home-page "http://www.armagetronad.org")
402 (synopsis "Tron clone in 3D")
403 (description "Armagetron Advanced is a multiplayer game in 3d that
404 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
405 It's an old school arcade game slung into the 21st century. Highlights
406 include a customizable playing arena, HUD, unique graphics, and AI bots. For
407 the more advanced player there are new game modes and a wide variety of
408 physics settings to tweak as well.")
409 (license license:gpl2+)))
411 (define-public astromenace
419 (url "https://github.com/viewizard/astromenace")
420 (commit (string-append "v" version))))
421 (file-name (git-file-name name version))
423 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
424 (build-system cmake-build-system)
426 `(#:tests? #f ;no test
427 #:configure-flags '("-DDATADIR=share/astromenace")
429 (modify-phases %standard-phases
431 ;; Upstream provides no install phase.
432 (lambda* (#:key inputs outputs #:allow-other-keys)
433 (let* ((out (assoc-ref outputs "out"))
434 (bin (string-append out "/bin"))
435 (share (string-append out "/share"))
436 (apps (string-append share "/applications"))
437 (data (string-append share "/astromenace"))
438 (icons (string-append share "/icons/hicolor/64x64/apps")))
439 (install-file "astromenace" bin)
440 (install-file "gamedata.vfs" data)
441 (let ((source (assoc-ref inputs "source")))
442 (with-directory-excursion (string-append source "/share")
443 (install-file "astromenace.desktop" apps)
445 (copy-file "astromenace_64.png"
446 (string-append icons "/astromenace.png")))))
449 `(("freealut" ,freealut)
450 ("freetype" ,freetype)
453 ("libvorbis" ,libvorbis)
456 (home-page "https://www.viewizard.com/")
457 (synopsis "3D space shooter with spaceship upgrade possibilities")
459 "Space is a vast area, an unbounded territory where it seems there is
460 a room for everybody, but reversal of fortune put things differently. The
461 hordes of hostile creatures crawled out from the dark corners of the universe,
462 craving to conquer your homeland. Their force is compelling, their legions
463 are interminable. However, humans didn't give up without a final showdown and
464 put their best pilot to fight back. These malicious invaders chose the wrong
465 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
466 regret their insolence.")
467 ;; Game is released under GPL3+ terms. Artwork is subject to CC
468 ;; BY-SA 4.0, and fonts to OFL1.1.
469 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
471 (define-public bastet
479 (url "https://github.com/fph/bastet")
481 (file-name (git-file-name name version))
483 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
485 (search-patches "bastet-change-source-of-unordered_set.patch"))))
486 (build-system gnu-build-system)
489 (list (string-append "CXXFLAGS=-I"
490 (assoc-ref %build-inputs "boost") "/include"))
492 (modify-phases %standard-phases
493 (delete 'configure) ; no configure script
495 ;; The 'Test' target builds the tests, but doesn't actually run them.
496 (lambda* (#:key make-flags #:allow-other-keys)
497 (apply invoke "make" "Test" make-flags)
501 (lambda* (#:key outputs #:allow-other-keys)
502 (let* ((out (assoc-ref outputs "out"))
503 (share (string-append out "/share"))
504 (hicolor (string-append share "/icons/hicolor")))
505 (install-file "bastet"
506 (string-append out "/bin"))
508 (install-file "bastet.desktop"
509 (string-append share "/applications"))
510 (install-file "bastet.svg"
511 (string-append hicolor "/scalable/apps"))
513 (install-file "bastet.appdata.xml"
514 (string-append share "/appdata"))
516 (install-file "bastet.6"
517 (string-append out "/share/man/man6"))
520 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
523 ("ncurses" ,ncurses)))
524 (home-page "https://fph.altervista.org/prog/bastet.html")
525 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
527 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
528 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
529 Instead, it uses a special algorithm to choose the worst brick possible.
531 Playing bastet can be a painful experience, especially if you usually make
532 canyons and wait for the long I-shaped block to clear four rows at a time.")
533 (license license:gpl3+)))
535 (define-public blobwars
542 (uri (string-append "mirror://sourceforge/blobwars/"
543 "blobwars-" version ".tar.gz"))
545 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
546 (build-system gnu-build-system)
548 `(#:tests? #f ;no test
550 (let ((out (assoc-ref %outputs "out")))
551 (list (string-append "PREFIX=" out)
552 (string-append "BINDIR=" out "/bin/")
556 (modify-phases %standard-phases
557 (add-after 'unpack 'werror-begone
559 (substitute* "Makefile" (("-Werror") ""))
561 (delete 'configure)))) ;no configure script
563 `(("gettext" ,gettext-minimal)
564 ("pkg-config" ,pkg-config)))
566 `(("hicolor-icon-theme" ,hicolor-icon-theme)
567 ("sdl" ,(sdl-union (list sdl2
572 (home-page "https://sourceforge.net/projects/blobwars/")
573 (synopsis "Platform action game featuring a blob with a lot of weapons")
574 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
575 in the Blobwars series. You take on the role of a fearless Blob agent. Your
576 mission is to infiltrate various enemy bases and rescue as many MIAs as
577 possible, while battling many vicious aliens.")
578 (license (list license:gpl2 ; For code and graphics
579 license:cc0 ; Music and sounds have specific licenses
580 license:cc-by3.0 ; see /doc/readme
585 (define-public bzflag
592 (uri (string-append "https://download.bzflag.org/bzflag/source/"
593 version "/bzflag-" version ".tar.bz2"))
595 (base32 "16brxqmfiyz4j4lb8ihzjcbwqmpsms6vm3ijbp34lnw0blbwdjb2"))))
596 (build-system gnu-build-system)
599 (modify-phases %standard-phases
600 (add-after 'install 'install-desktop-file-and-icons
601 (lambda* (#:key outputs #:allow-other-keys)
602 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
603 (data (string-append share "/bzflag"))
604 (hicolor (string-append share "/icons/hicolor"))
605 (applications (string-append share "/applications")))
606 ;; Move desktop file.
607 (install-file (string-append data "/bzflag.desktop")
610 (for-each (lambda (size)
611 (let* ((dim (string-append size "x" size))
612 (dir (string-append hicolor "/" dim "/apps")))
615 (string-append data "/bzflag-" dim ".png")
616 (string-append dir "/bzflag.png"))))
620 `(("pkg-config" ,pkg-config)))
628 (home-page "https://www.bzflag.org/")
629 (synopsis "3D first person tank battle game")
631 "BZFlag is a 3D multi-player multiplatform tank battle game that
632 allows users to play against each other in a network environment.
633 There are five teams: red, green, blue, purple and rogue (rogue tanks
634 are black). Destroying a player on another team scores a win, while
635 being destroyed or destroying a teammate scores a loss. Rogues have
636 no teammates (not even other rogues), so they cannot shoot teammates
637 and they do not have a team score.
639 There are two main styles of play: capture-the-flag and free-for-all.
640 In capture-the-flag, each team (except rogues) has a team base and
641 each team with at least one player has a team flag. The object is to
642 capture an enemy team's flag by bringing it to your team's base. This
643 destroys every player on the captured team, subtracts one from that
644 team's score, and adds one to your team's score. In free-for-all,
645 there are no team flags or team bases. The object is simply to get as
646 high a score as possible.")
647 ;; The game is dual-licensed.
648 (license (list license:lgpl2.1 license:mpl2.0))))
650 (define-public cataclysm-dda
652 (name "cataclysm-dda")
658 (url "https://github.com/CleverRaven/Cataclysm-DDA")
661 (base32 "15l6w6lxays7qmsv0ci2ry53asb9an9dh7l7fc13256k085qcg68"))
662 (file-name (git-file-name name version))))
663 (build-system gnu-build-system)
666 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
667 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
668 "LOCALIZE=1" "LANGUAGES=all")
670 (modify-phases %standard-phases
672 (add-after 'build 'build-tiles
673 (lambda* (#:key make-flags outputs #:allow-other-keys)
674 ;; Change prefix directory and enable tile graphics and sound.
675 (apply invoke "make" "TILES=1" "SOUND=1"
676 (string-append "PREFIX="
677 (assoc-ref outputs "tiles"))
679 (add-after 'install 'install-tiles
680 (lambda* (#:key make-flags outputs #:allow-other-keys)
681 (apply invoke "make" "install" "TILES=1" "SOUND=1"
682 (string-append "PREFIX="
683 (assoc-ref outputs "tiles"))
685 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
686 ;; input in order to support tests.
689 "tiles")) ;for tile graphics and sound support
691 `(("gettext" ,gettext-minimal)
692 ("pkg-config" ,pkg-config)))
694 `(("freetype" ,freetype)
696 ("libvorbis" ,libvorbis)
699 ("sdl2-image" ,sdl2-image)
700 ("sdl2-ttf" ,sdl2-ttf)
701 ("sdl2-mixer" ,sdl2-mixer)))
702 (home-page "https://cataclysmdda.org/")
703 (synopsis "Survival horror roguelike video game")
705 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
706 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
707 procedurally generated world. Scavenge the remnants of a dead civilization
708 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
709 to get you out of Dodge. Fight to defeat or escape from a wide variety of
710 powerful monstrosities, from zombies to giant insects to killer robots and
711 things far stranger and deadlier, and against the others like yourself, that
712 want what you have.")
713 (license license:cc-by-sa3.0)))
715 (define-public corsix-th
723 (url "https://github.com/CorsixTH/CorsixTH")
724 (commit (string-append "v" version))))
725 (file-name (git-file-name name version))
727 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
728 (build-system cmake-build-system)
731 (modify-phases %standard-phases
732 (add-after 'install 'wrap-binary
734 ;; Set Lua module paths and default MIDI soundfont on startup.
735 (let* ((out (assoc-ref %outputs "out"))
736 (fluid (assoc-ref %build-inputs "fluid-3"))
737 (lua-version ,(version-major+minor (package-version lua)))
741 (assoc-ref %build-inputs (string-append "lua-" lib))
742 "/lib/lua/" lua-version "/?.so"))
743 '("filesystem" "lpeg"))))
744 (wrap-program (string-append out "/bin/corsix-th")
745 `("LUA_CPATH" ";" = ,lua-cpath)
746 `("SDL_SOUNDFONTS" ":" suffix
747 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
749 #:tests? #f)) ; TODO need busted package to run tests
750 ;; Omit Lua-Socket dependency to disable automatic updates.
754 ("freetype" ,freetype)
756 ("lua-filesystem" ,lua-filesystem)
757 ("lua-lpeg" ,lua-lpeg)
759 ("sdl2-mixer" ,sdl2-mixer)))
760 (home-page "https://corsixth.com")
761 (synopsis "Implementation of the @i{Theme Hospital} game engine")
763 "This package provides a reimplementation of the 1997 Bullfrog business
764 simulation game @i{Theme Hospital}. As well as faithfully recreating the
765 original engine, CorsixTH adds support for high resolutions, custom levels and
766 more. This package does @emph{not} provide the game assets.")
768 license:expat ; main license
769 license:bsd-3)))) ; CorsixTH/Src/random.c
771 (define-public cowsay
778 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
779 (commit (string-append name "-" version))))
780 (file-name (git-file-name name version))
783 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
784 (build-system gnu-build-system)
787 (modify-phases %standard-phases
788 (delete 'configure) ; no configure script
789 (delete 'build) ; nothing to be built
791 (lambda* (#:key outputs #:allow-other-keys)
792 (invoke "sh" "install.sh"
793 (assoc-ref outputs "out"))))
795 (add-after 'install 'check
796 (lambda* (#:key outputs #:allow-other-keys)
797 (invoke (string-append (assoc-ref outputs "out")
802 (home-page (string-append "https://web.archive.org/web/20071026043648/"
803 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
804 (synopsis "Speaking cow text filter")
805 (description "Cowsay is basically a text filter. Send some text into it,
806 and you get a cow saying your text. If you think a talking cow isn't enough,
807 cows can think too: all you have to do is run @command{cowthink}. If you're
808 tired of cows, a variety of other ASCII-art messengers are available.")
809 (license license:gpl3+)))
811 (define-public lolcat
812 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
816 (version (git-version "1.0" revision commit))
821 (url "https://github.com/jaseg/lolcat")
825 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
826 (file-name (git-file-name name version))))
827 (build-system gnu-build-system)
829 `(#:tests? #f ; no check target
831 (list ,(string-append "CC=" (cc-for-target)))
833 (modify-phases %standard-phases
837 (lambda* (#:key outputs #:allow-other-keys)
838 (let* ((out (assoc-ref outputs "out"))
839 (dest (string-append out "/bin")))
841 (install-file "lolcat" dest)
842 (install-file "censor" dest)
844 (home-page "https://github.com/jaseg/lolcat")
845 (synopsis "Rainbow coloring effect for text console display")
846 (description "@command{lolcat} concatenates files and streams like
847 regular @command{cat}, but it also adds terminal escape codes between
848 characters and lines resulting in a rainbow effect.")
849 (license license:wtfpl2))))
851 (define-public foobillard++
852 ;; Even though this latest revision is old already, stable release is
853 ;; lagging way behind it, and has issues with textures rendering.
854 (let ((svn-revision 170))
856 (name "foobillard++")
857 (version (string-append "3.43-r" (number->string svn-revision)))
862 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
863 (revision svn-revision)))
864 (file-name (git-file-name name version))
866 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
868 (search-patches "foobillard++-pkg-config.patch"))
869 (modules '((guix build utils)))
872 ;; Unfortunately, the game includes background music with
873 ;; a non-commercial clause. Delete it.
874 (for-each delete-file (find-files "data/music" "\\.ogg$"))
876 (build-system gnu-build-system)
880 ;; Install data in a less exotic location.
881 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
882 ;; Prevent a build error about undefined trigonometric functions.
883 "--enable-fastmath=no")
885 (modify-phases %standard-phases
886 (add-after 'unpack 'fix-makefile
887 ;; Remove hard-coded directories. Also fix installation
888 ;; rule: it tries to move around non-existent files or
889 ;; files already moved.
890 (lambda* (#:key outputs #:allow-other-keys)
891 (substitute* "Makefile.am"
892 (("/usr") (assoc-ref outputs "out"))
893 (("cp .*?/foobillardplus\\.desktop.*") "")
894 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
897 (add-after 'unpack 'unbundle-font
898 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
899 ;; LinBiolinum_aS.ttf, which are not provided by
900 ;; `font-linuxlibertine' package. Therefore, we cannot replace
902 (lambda* (#:key inputs #:allow-other-keys)
903 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
904 "/share/fonts/truetype/")))
905 (with-directory-excursion "data"
906 (for-each (lambda (f)
908 (symlink (string-append dejavu f) f))
909 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
913 (invoke "aclocal" "--force")
914 (invoke "autoconf" "-f")
915 (invoke "autoheader" "-f")
916 (invoke "automake" "-a" "-c" "-f")))
917 (add-before 'build 'prepare-build
918 ;; Set correct environment for SDL.
919 (lambda* (#:key inputs #:allow-other-keys)
921 (string-append (assoc-ref inputs "sdl")
923 (or (getenv "CPATH") "")))
925 (add-before 'build 'fix-settings-directory
926 ;; Hide foobillardplus settings directory in $HOME.
928 (substitute* "src/history.c"
929 (("/foobillardplus-data") "/.foobillardplus"))
931 (add-before 'install 'create-directories
932 ;; Install process does not create directories before
933 ;; trying to move file in it.
934 (lambda* (#:key outputs #:allow-other-keys)
935 (let ((out (assoc-ref outputs "out")))
936 (mkdir-p (string-append out "/share/icons"))
937 (mkdir-p (string-append out "/share/applications")))
939 (add-after 'install 'symlink-executable
940 ;; Symlink executable to $out/bin.
941 (lambda* (#:key outputs #:allow-other-keys)
942 (let* ((out (assoc-ref outputs "out"))
943 (bin (string-append out "/bin")))
945 (with-directory-excursion bin
946 (symlink "../share/foobillardplus/bin/foobillardplus"
950 `(("autoconf" ,autoconf)
951 ("automake" ,automake)
952 ("pkg-config" ,pkg-config)))
954 `(("font-dejavu" ,font-dejavu)
955 ("freetype" ,freetype)
958 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
959 (home-page "http://foobillardplus.sourceforge.net/")
960 (synopsis "3D billiard game")
961 (description "FooBillard++ is an advanced 3D OpenGL billiard game
962 based on the original foobillard 3.0a sources from Florian Berger.
963 You can play it with one or two players or against the computer.
968 @item Wood paneled table with gold covers and gold diamonds.
969 @item Reflections on balls.
970 @item Zoom in and out, rotation, different angles and bird's eye view.
971 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
972 @item Tournaments. Compete against other players.
973 @item Animated cue with strength and eccentric hit adjustment.
974 @item Jump shots and snipping.
975 @item Realistic gameplay and billiard sounds.
976 @item Red-Green stereo.
979 (license (list license:gpl2 license:silofl1.1)))))
981 (define-public freedoom
989 (url "https://github.com/freedoom/freedoom")
990 (commit (string-append "v" version))))
991 (file-name (git-file-name name version))
993 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
994 (build-system gnu-build-system)
997 (list (string-append "prefix=" (assoc-ref %outputs "out")))
998 #:tests? #f ; no check target
1000 (modify-phases %standard-phases
1003 (lambda* (#:key inputs outputs #:allow-other-keys)
1004 (let* ((freedoom (assoc-ref outputs "out"))
1005 (wad-dir (string-append freedoom "/share/games/doom")))
1006 ;; Make sure that the install scripts know where to find
1007 ;; the appropriate WAD files.
1008 (substitute* "dist/freedoom"
1009 (("IWAD=freedm.wad")
1010 (string-append "IWAD=" wad-dir "/freedm.wad"))
1011 (("IWAD=freedoom1.wad")
1012 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1013 (("IWAD=freedoom2.wad")
1014 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1017 `(("asciidoc" ,asciidoc)
1020 ("python-pillow" ,python-pillow)))
1021 (home-page "https://freedoom.github.io/")
1022 (synopsis "Free content game based on the Doom engine")
1023 (native-search-paths
1024 (list (search-path-specification
1025 (variable "DOOMWADDIR")
1026 (files '("share/games/doom")))
1027 (search-path-specification
1028 (variable "DOOMWADPATH")
1029 (files '("share/games/doom")))))
1031 "The Freedoom project aims to create a complete free content first person
1032 shooter game. Freedoom by itself is just the raw material for a game: it must
1033 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1034 played. Freedoom complements the Doom engine with free levels, artwork, sound
1035 effects and music to make a completely free game.")
1036 (license license:bsd-3)))
1038 (define-public freedroidrpg
1040 (name "freedroidrpg")
1045 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1046 "freedroidRPG-" (version-major+minor version) "/"
1047 "freedroidRPG-" version ".tar.gz"))
1049 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1050 (build-system gnu-build-system)
1054 (string-append "CFLAGS="
1055 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1056 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1057 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1059 ;; FIXME: the test suite fails with the following error output:
1060 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1061 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1064 `(("pkg-config" ,pkg-config)))
1067 ("libjpeg" ,libjpeg-turbo)
1070 ("libvorbis" ,libvorbis)
1072 ("python" ,python-wrapper)
1074 ("sdl-gfx" ,sdl-gfx)
1075 ("sdl-image" ,sdl-image)
1076 ("sdl-mixer" ,sdl-mixer)
1078 (home-page "http://www.freedroid.org/")
1079 (synopsis "Isometric role-playing game against killer robots")
1081 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1082 The game tells the story of a world destroyed by a conflict between robots and
1083 their human masters. To restore peace to humankind, the player must complete
1084 numerous quests while fighting off rebelling robots---either by taking control
1085 of them, or by simply blasting them to pieces with melee and ranged weapons in
1087 (license (list license:expat ; lua/
1088 license:gpl3 ; src/gen_savestruct.py
1089 license:gpl2+)))) ; the rest
1091 (define-public golly
1097 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1098 version "/golly-" version
1102 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1103 (build-system gnu-build-system)
1105 '(#:make-flags (list "CC=gcc"
1106 (string-append "GOLLYDIR="
1107 (assoc-ref %outputs "out")
1109 #:tests? #f ; no check target
1111 (modify-phases %standard-phases
1113 (lambda* (#:key inputs #:allow-other-keys)
1114 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1115 ;; properly set the path to the Python shared library. This
1116 ;; substitution acheives the same end by different means.
1117 (substitute* "gui-wx/wxprefs.cpp"
1118 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1119 (string-append "pythonlib = \""
1120 (assoc-ref inputs "python")
1121 "/lib/libpython-2.7.so\"")))
1124 (lambda* (#:key make-flags outputs #:allow-other-keys)
1125 (with-directory-excursion "gui-wx"
1126 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1128 (lambda* (#:key outputs #:allow-other-keys)
1129 (let* ((out (assoc-ref outputs "out"))
1130 (bin (string-append out "/bin"))
1131 (doc (string-append out "/share/doc/golly"))
1132 (pixmaps (string-append out "/share/pixmaps"))
1133 (share (string-append out "/share/golly")))
1134 (for-each (lambda (binary)
1135 (install-file binary bin))
1136 '("bgolly" "golly"))
1137 (for-each (lambda (document)
1139 (string-append "docs/" document ".html")
1141 '("License" "ReadMe" "ToDo"))
1142 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1143 (for-each (lambda (folder)
1146 (string-append share "/" folder)))
1147 '("Help" "Patterns" "Rules" "Scripts")))
1154 ("python" ,python-2)
1155 ("wxwidgets" ,wxwidgets-gtk2)
1157 (home-page "http://golly.sourceforge.net/")
1158 (synopsis "Software for exploring cellular automata")
1160 "Golly simulates Conway's Game of Life and many other types of cellular
1161 automata. The following features are available:
1163 @item Support for bounded and unbounded universes, with cells of up to 256
1165 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1167 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1168 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1169 @item Scriptable via Lua or Python.
1170 @item Extracting patterns, rules and scripts from zip files.
1171 @item Downloading patterns, rules and scripts from online archives.
1172 @item Pasting patterns from the clipboard.
1173 @item Unlimited undo/redo.
1174 @item Configurable keyboard shortcuts.
1175 @item Auto fit option to keep patterns within the view.
1177 (license license:gpl2+)))
1179 (define-public julius
1187 (url "https://github.com/bvschaik/julius")
1188 (commit (string-append "v" version))))
1189 (file-name (git-file-name name version))
1191 (base32 "12hhnhdwgz7hd3hlndbnk15pxggm1375qs0764ija4nl1gbpb110"))
1192 ;; Remove unused bundled libraries.
1193 (modules '((guix build utils)))
1196 (with-directory-excursion "ext"
1197 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1199 (build-system cmake-build-system)
1201 `(("libpng" ,libpng)
1203 ("sdl2-mixer" ,sdl2-mixer)))
1204 (home-page "https://github.com/bvschaik/julius")
1205 (synopsis "Re-implementation of Caesar III game engine")
1207 "Engine for Caesar III, a city-building real-time strategy game.
1208 Julius includes some UI enhancements while preserving the logic (including
1209 bugs) of the original game, so that saved games are compatible. This package
1210 does not include game data.")
1211 (license (list license:agpl3
1212 license:zlib)))) ; ext/tinyfiledialogs
1214 (define-public augustus
1218 (version (package-version julius))
1223 (url "https://github.com/Keriew/augustus")
1224 (commit (string-append "v" version))))
1225 (file-name (git-file-name name version))
1227 (base32 "0ii0w0iwa9zv5bbqfcps5mxifd796m6fw4gvjf09pkm3yjgqc0ag"))
1228 ;; Remove unused bundled libraries.
1229 (modules '((guix build utils)))
1232 (with-directory-excursion "ext"
1233 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1236 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1238 (home-page "https://github.com/Keriew/augustus")
1239 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1241 "Fork of Julius, an engine for the a city-building real-time strategy
1242 game Caesar III. Gameplay enhancements include:
1246 @item market special orders;
1247 @item global labour pool;
1248 @item partial warehouse storage;
1249 @item increased game limits;
1250 @item zoom controls.
1253 (define-public meandmyshadow
1255 (name "meandmyshadow")
1259 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1260 version "/meandmyshadow-" version
1264 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1265 (build-system cmake-build-system)
1267 `(#:tests? #f)) ; there are no tests
1269 `(("pkg-config" ,pkg-config)))
1272 ("libarchive" ,libarchive)
1274 ("sdl" ,(sdl-union (list sdl2
1278 (home-page "https://acmepjz.github.io/meandmyshadow/")
1279 (synopsis "Puzzle/platform game")
1280 (description "Me and My Shadow is a puzzle/platform game in which you try
1281 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1282 and much more stand between you and the exit. Record your moves and let your
1283 shadow mimic them to reach blocks you couldn't reach alone.")
1284 (license license:gpl3+)))
1286 (define-public opensurge
1294 (url "https://github.com/alemart/opensurge")
1295 (commit (string-append "v" version))))
1296 (file-name (git-file-name name version))
1298 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1299 (build-system cmake-build-system)
1301 `(#:tests? #f ;there are no tests
1303 (let* ((out (assoc-ref %outputs "out"))
1304 (share (string-append out "/share")))
1305 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1306 (string-append "-DGAME_DATADIR=" share "/" ,name)
1307 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1308 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1309 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1311 (modify-phases %standard-phases
1312 (add-after 'unpack 'fix-xdg-open-path
1313 (lambda* (#:key inputs #:allow-other-keys)
1314 ;; Look for xdg-open in the store.
1315 (substitute* "src/core/web.c"
1316 (("/usr(/bin/xdg-open)" _ bin)
1317 (string-append (assoc-ref inputs "xdg-utils") bin)))
1319 (add-after 'unpack 'unbundle-fonts
1320 (lambda* (#:key inputs #:allow-other-keys)
1321 ;; Replace bundled Roboto fonts with links to the store.
1322 (with-directory-excursion "fonts"
1323 (let ((roboto-dir (string-append
1324 (assoc-ref inputs "font-google-roboto")
1325 "/share/fonts/truetype/")))
1329 (symlink (string-append roboto-dir font) font))
1330 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1333 `(("allegro" ,allegro)
1334 ("font-google-roboto" ,font-google-roboto)
1335 ("surgescript" ,surgescript)
1336 ("xdg-utils" ,xdg-utils)))
1337 (home-page "https://opensurge2d.org")
1338 (synopsis "2D retro side-scrolling game")
1339 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1340 inspired by the Sonic games. The player runs at high speeds through each
1341 level while collecting items and avoiding obstacles. The game includes a
1342 built-in level editor.")
1344 ;; Code is under GPL 3+, assets are under various licenses.
1345 ;; See src/misc/credits.c for details.
1351 license:public-domain
1352 license:silofl1.1))))
1354 (define-public knights
1360 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1361 version "_src.tar.gz"))
1364 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1365 (build-system gnu-build-system)
1368 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1370 (modify-phases %standard-phases
1371 ;; No configure script.
1372 (delete 'configure))
1373 #:tests? #f)) ;; No check target.
1376 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1377 ("freetype" ,freetype)
1378 ("fontconfig" ,fontconfig)
1381 `(("pkg-config" ,pkg-config)))
1382 (home-page "http://www.knightsgame.org.uk/")
1383 (synopsis "Multiplayer dungeon game involving knights and quests")
1384 (description "Knights is a multiplayer game involving several knights who
1385 must run around a dungeon and complete various quests. Each game revolves
1386 around a quest – for example, you might have to find some items and carry them
1387 back to your starting point. This may sound easy, but as there are only
1388 enough items in the dungeon for one player to win, you may end up having to
1389 kill your opponents to get their stuff! Other quests involve escaping from
1390 the dungeon, fighting a duel to the death against the enemy knights, or
1391 destroying an ancient book using a special wand.")
1392 ;; This package includes modified sources of lua (X11), enet (Expat), and
1393 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1394 ;; license. The whole package is released under GPLv3+.
1395 (license license:gpl3+)))
1397 (define-public gnome-chess
1399 (name "gnome-chess")
1403 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1404 (version-major+minor version) "/"
1405 "gnome-chess-" version ".tar.xz"))
1408 "165bk8s3nngyqbikggspj4rff5nxxfkfcmgzjb4grmsrgbqwk5di"))))
1409 (build-system meson-build-system)
1413 (modify-phases %standard-phases
1414 (add-after 'unpack 'skip-gtk-update-icon-cache
1415 ;; Don't create 'icon-theme.cache'.
1417 (substitute* "meson_post_install.py"
1418 (("gtk-update-icon-cache") "true"))
1422 ("librsvg" ,librsvg)))
1424 `(("gettext" ,gettext-minimal)
1425 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1426 ("itstool" ,itstool)
1427 ("pkg-config" ,pkg-config)
1429 (home-page "https://wiki.gnome.org/Apps/Chess")
1430 (synopsis "Chess board for GNOME")
1431 (description "GNOME Chess provides a 2D board for playing chess games
1432 against human or computer players. It supports loading and saving games in
1433 Portable Game Notation. To play against a computer, install a chess engine
1434 such as chess or stockfish.")
1435 (license license:gpl3+)))
1437 (define-public gnubg
1440 (version "1.06.002")
1444 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1445 version "-sources.tar.gz"))
1448 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1449 (build-system gnu-build-system)
1450 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1451 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1452 ("pango" ,pango-1.42)
1455 ("readline" ,readline)
1459 ("gtkglext" ,gtkglext)
1461 ("libcanberra" ,libcanberra)))
1462 (native-inputs `(("python-2" ,python-2)
1463 ("pkg-config" ,pkg-config)))
1466 (modify-phases %standard-phases
1467 (add-after 'install 'install-desktop-file
1468 (lambda* (#:key outputs #:allow-other-keys)
1469 (let* ((out (assoc-ref outputs "out"))
1470 (apps (string-append out "/share/applications")))
1472 (with-output-to-file (string-append apps "/gnubg.desktop")
1476 Name=GNU Backgammon~@
1477 Exec=~a/bin/gnubg -w~@
1484 (home-page "https://www.gnu.org/software/gnubg/")
1485 (synopsis "Backgammon game")
1486 (description "The GNU backgammon application (also known as \"gnubg\") can
1487 be used for playing, analyzing and teaching the game. It has an advanced
1488 evaluation engine based on artificial neural networks suitable for both
1489 beginners and advanced players. In addition to a command-line interface, it
1490 also features an attractive, 3D representation of the playing board.")
1491 (license license:gpl3+)))
1493 (define-public gnubik
1500 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1504 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1505 (build-system gnu-build-system)
1507 '(#:phases (modify-phases %standard-phases
1508 (add-after 'unpack 'skip-gtk-update-icon-cache
1510 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1511 ;; unnecessary and causes a needless dependency on glib.
1512 (substitute* "Makefile.in"
1513 (("gtk-update-icon-cache")
1516 (inputs `(("gtk+" ,gtk+-2)
1520 ("guile" ,guile-2.0)
1521 ("gtkglext" ,gtkglext)))
1522 (native-inputs `(("gettext" ,gettext-minimal)
1523 ("pkg-config" ,pkg-config)))
1524 (home-page "https://www.gnu.org/software/gnubik/")
1525 (synopsis "3d Rubik's cube game")
1527 "GNUbik is a puzzle game in which you must manipulate a cube to make
1528 each of its faces have a uniform color. The game is customizable, allowing
1529 you to set the size of the cube (the default is 3x3) or to change the colors.
1530 You may even apply photos to the faces instead of colors. The game is
1531 scriptable with Guile.")
1532 (license license:gpl3+)))
1534 (define-public gnushogi
1541 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1545 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1546 (arguments `(#:tests? #f)) ;; No check target.
1547 (build-system gnu-build-system)
1548 (home-page "https://www.gnu.org/software/gnushogi/")
1549 (synopsis "The game of Shogi (Japanese chess)")
1550 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1551 Chess). It is similar to standard chess but this variant is far more complicated.")
1552 (license license:gpl3+)))
1554 (define-public ltris
1561 (uri (string-append "http://prdownloads.sourceforge.net/lgames/"
1562 "ltris-" version ".tar.gz"))
1564 (base32 "16zbqsc4amx9g3yjv6054nh4ia09dgfp8k6q4qxpjicl3dw3z0in"))))
1565 (build-system gnu-build-system)
1567 '(;; The code in LTris uses traditional GNU semantics for inline functions
1568 #:configure-flags '("CFLAGS=-fgnu89-inline")
1570 (modify-phases %standard-phases
1571 (add-after 'set-paths 'set-sdl-paths
1572 (lambda* (#:key inputs #:allow-other-keys)
1574 (string-append (assoc-ref inputs "sdl-union")
1576 (or (getenv "CPATH") "")))
1579 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1580 (home-page "http://lgames.sourceforge.net/LTris/")
1581 (synopsis "Tetris clone based on the SDL library")
1583 "LTris is a tetris clone: differently shaped blocks are falling down the
1584 rectangular playing field and can be moved sideways or rotated by 90 degree
1585 units with the aim of building lines without gaps which then disappear (causing
1586 any block above the deleted line to fall down). LTris has three game modes: In
1587 Classic you play until the stack of blocks reaches the top of the playing field
1588 and no new blocks can enter. In Figures the playing field is reset to a new
1589 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1590 up to three players (either human or CPU) compete with each other sending
1591 removed lines to all opponents. There is also a Demo mode in which you can
1592 watch your CPU playing while enjoying a cup of tea!")
1593 (license license:gpl2+)))
1595 (define-public nethack
1603 (string-append "https://www.nethack.org/download/" version "/nethack-"
1604 (string-join (string-split version #\.) "") "-src.tgz"))
1606 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1611 `(("ncurses" ,ncurses)
1613 (build-system gnu-build-system)
1616 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1618 (modify-phases %standard-phases
1619 (add-before 'configure 'patch-paths
1621 (substitute* "sys/unix/nethack.sh"
1623 (substitute* "sys/unix/Makefile.utl"
1624 (("^YACC *=.*$") "YACC = bison -y\n")
1625 (("^LEX *=.*$") "LEX = flex\n")
1626 (("^# CC = gcc") "CC = gcc"))
1627 (substitute* "sys/unix/hints/linux"
1628 (("/bin/gzip") (string-append
1629 (assoc-ref %build-inputs "gzip")
1631 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1632 (substitute* "include/config.h"
1633 (("^.*define CHDIR.*$") "")
1634 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1635 ;; Honor SOURCE_DATE_EPOCH.
1636 "#define REPRODUCIBLE_BUILD"))
1638 ;; Note: 'makedefs' rejects and ignores dates that are too old
1639 ;; or too new, so we must choose something reasonable here.
1640 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1642 (substitute* "sys/unix/Makefile.src"
1643 (("^# CC = gcc") "CC = gcc"))
1647 (let ((bash (string-append
1648 (assoc-ref %build-inputs "bash")
1650 (with-directory-excursion "sys/unix"
1651 (substitute* "setup.sh" (("/bin/sh") bash))
1652 (invoke bash "setup.sh" "hints/linux"))
1654 (add-after 'install 'fixup-paths
1656 (let* ((output (assoc-ref %outputs "out"))
1657 (nethack-script (string-append output "/bin/nethack")))
1658 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1662 (string-append output "/games/lib/nethackdir/" file)
1663 (string-append output "/games/lib/nethackuserdir/"
1665 '("xlogfile" "logfile" "perm" "record" "save"))
1666 (mkdir-p (string-append output "/bin"))
1667 (call-with-output-file nethack-script
1669 (format port "#!~a/bin/sh
1671 if [ ! -d ~~/.config/nethack ]; then
1672 mkdir -p ~~/.config/nethack
1673 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1674 chmod -R +w ~~/.config/nethack
1685 for i in ~~/.config/nethack/*; do
1686 ln -s $i $(basename $i)
1688 for i in ~a/games/lib/nethackdir/*; do
1689 ln -s $i $(basename $i)
1692 (assoc-ref %build-inputs "bash")
1693 (list->search-path-as-string
1696 (assoc-ref %build-inputs "coreutils") "/bin")
1698 (assoc-ref %build-inputs "less") "/bin"))
1703 (chmod nethack-script #o555)
1706 (home-page "https://nethack.org")
1707 (synopsis "Classic dungeon crawl game")
1708 (description "NetHack is a single player dungeon exploration game that runs
1709 on a wide variety of computer systems, with a variety of graphical and text
1710 interfaces all using the same game engine. Unlike many other Dungeons &
1711 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1712 the dungeon and not simply killing everything in sight - in fact, killing
1713 everything in sight is a good way to die quickly. Each game presents a
1714 different landscape - the random number generator provides an essentially
1715 unlimited number of variations of the dungeon and its denizens to be discovered
1716 by the player in one of a number of characters: you can pick your race, your
1717 role, and your gender.")
1719 (license:fsdg-compatible
1720 "https://nethack.org/common/license.html"))))
1722 (define-public pipewalker
1729 (uri (string-append "http://downloads.sourceforge.net/pipewalker/"
1730 "pipewalker-" version ".tar.gz"))
1732 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1733 (build-system gnu-build-system)
1736 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1737 "/share/doc/" ,name "-" ,version))
1739 (modify-phases %standard-phases
1740 (add-after 'configure 'patch-docdir
1741 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1743 (substitute* "Makefile"
1744 (("(pkgdocdatadir = ).*" _ assignment)
1745 (string-append assignment "$(docdir)\n")))
1748 `(("libpng" ,libpng)
1751 (home-page "http://pipewalker.sourceforge.net/")
1752 (synopsis "Logical tile puzzle")
1754 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1755 computers to one network server, bring water from a source to the taps, etc.
1756 The underlying mechanism is always the same: you must turn each tile in the
1757 grid in the right direction to combine all components into a single circuit.
1758 Every puzzle has a complete solution, although there may be more than one.")
1759 (license license:gpl3+)))
1761 (define-public prboom-plus
1763 (name "prboom-plus")
1767 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
1768 version "/prboom-plus-" version ".tar.gz"))
1770 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
1771 (modules '((guix build utils)))
1774 (substitute* "src/version.c"
1778 (build-system gnu-build-system)
1780 '(#:configure-flags '("--disable-cpu-opt")
1781 #:make-flags `(,(string-append "gamesdir="
1782 (assoc-ref %outputs "out") "/bin"))
1784 (modify-phases %standard-phases
1785 (add-after 'set-paths 'set-sdl'paths
1786 (lambda* (#:key inputs #:allow-other-keys)
1788 (string-append (assoc-ref inputs "sdl-union")
1790 (or (getenv "CPATH") "")))
1793 `(("fluidsynth" ,fluidsynth)
1797 ("libvorbis" ,libvorbis)
1799 ("portmidi" ,portmidi)
1800 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
1801 (home-page "http://prboom-plus.sourceforge.net/")
1802 (synopsis "Version of the classic 3D shoot'em'up game Doom")
1804 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
1805 (license license:gpl2+)))
1807 (define-public retux
1813 (uri (string-append "mirror://savannah/retux/"
1814 (version-major+minor version) "/retux-"
1815 version "-src.tar.gz"))
1818 "01bidh4zisjp3nc436x0g85v60dvwb3ig37i7y01sa71j8fm4fmb"))))
1819 (build-system python-build-system)
1821 `(#:tests? #f ; no check target
1823 (modify-phases %standard-phases
1824 ;; no setup.py script
1827 (lambda* (#:key outputs #:allow-other-keys)
1828 (let* ((out (assoc-ref outputs "out"))
1829 (bin (string-append out "/bin"))
1830 (data (string-append out "/share/retux"))
1831 (doc (string-append out "/share/doc/retux")))
1834 (substitute* "retux.py"
1835 ;; Use the correct data directory.
1836 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
1837 (string-append "\"" data "\","))
1838 ;; Use Python 3 so the patch-shebangs phase works properly.
1839 ((".*python2.*") "#!/usr/bin/python3"))
1841 (copy-file "retux.py" (string-append bin "/retux"))
1843 (copy-recursively "data" data)
1845 (install-file "COPYING" doc)
1848 `(("python-sge-pygame" ,python-sge-pygame)
1849 ("python-six" ,python-six)
1850 ("python-xsge" ,python-xsge)))
1851 (home-page "http://retux.nongnu.org")
1852 (synopsis "Action platformer game")
1854 "ReTux is an action platformer loosely inspired by the Mario games,
1855 utilizing the art assets from the @code{SuperTux} project.")
1856 ;; GPL version 3 or later is the license for the code and some art.
1857 ;; The rest of the licenses are for the art exclusively, as listed in
1859 (license (list license:cc0
1866 (define-public roguebox-adventures
1868 (name "roguebox-adventures")
1874 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
1875 (string-join (string-split version #\.) "_") "_Source.zip"))
1876 (file-name (string-append name "-" version ".zip"))
1879 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
1880 (build-system python-build-system)
1882 `(#:tests? #f ; no check target
1884 (modify-phases %standard-phases
1886 (lambda* (#:key source #:allow-other-keys)
1887 (and (invoke "unzip" source)
1888 ;; The actual source is buried a few directories deep.
1889 (chdir (string-append "RogueBoxAdventures_v"
1891 (string-split ,version #\.) "_")
1893 ;; no setup.py script
1895 (lambda* (#:key outputs #:allow-other-keys)
1896 (let* ((out (assoc-ref outputs "out"))
1897 (data (string-append
1898 out "/share/games/roguebox-adventures")))
1899 ;; Use the correct data directory.
1900 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
1901 (("basic_path + os\\.sep + 'DATA'")
1902 (string-append "'" data "'"))
1904 (string-append "basic_path ='" data "'\n")))
1905 (substitute* "LIB/dialog.py"
1906 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
1907 (string-append "d_path = '" data "'")))
1908 (substitute* "LIB/gra_files.py"
1909 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
1910 (string-append "basic_path ='" data "'\n")))
1912 ;; The game must save in the user's home directory because
1913 ;; the store is read-only.
1914 (substitute* "main.py"
1915 (("home_save = False") "home_save = True")
1916 (("'icon_small.png'")
1917 (string-append "'" data "/icon_small.png'"))))
1920 (lambda* (#:key outputs #:allow-other-keys)
1921 (let* ((out (assoc-ref outputs "out"))
1922 (bin (string-append out "/bin"))
1923 (roguebox-adventures
1924 (string-append bin "/roguebox-adventures"))
1925 (data (string-append
1926 out "/share/games/roguebox-adventures"))
1927 (lib (string-append data "/LIB"))
1929 out "/share/doc/roguebox-adventures")))
1933 (for-each (lambda (file)
1934 (copy-recursively file
1935 (string-append data "/" file)))
1936 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
1937 "icon_big.png" "icon_small.png"))
1938 (for-each (lambda (file)
1940 (install-file file lib))
1941 '("main.py" "run.py"))
1943 (copy-recursively "DOC" doc)
1945 (call-with-output-file
1950 export PYTHONPATH=~a/LIB:~a
1951 exec -a \"~a\" ~a \"$@\"\n"
1952 (which "bash") data (getenv "PYTHONPATH")
1954 (string-append lib "/main.py"))))
1955 (chmod roguebox-adventures #o555))
1958 `(("unzip" ,unzip)))
1960 `(("python-pygame" ,python-pygame)
1961 ("python-tmx" ,python-tmx)))
1962 (home-page "https://rogueboxadventures.tuxfamily.org")
1963 (synopsis "A classical roguelike/sandbox game")
1965 "RogueBox Adventures is a graphical roguelike with strong influences
1966 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
1967 Adventures is to offer the player a kind of roguelike toy-world. This world
1968 can be explored and changed freely.")
1969 ;; The GPL3+ is for code, the rest are for art.
1970 (license (list license:cc0
1973 license:silofl1.1))))
1975 (define-public seahorse-adventures
1977 (name "seahorse-adventures")
1983 (url "https://github.com/dulsi/seahorse-adventures")
1984 (commit (string-append "release-" version))))
1985 (file-name (git-file-name name version))
1987 (base32 "1rnvk06npaqcpjz5z6xcmssz61i32s422lydp49vrnf3j2g4yimd"))
1988 (modules '((guix build utils)
1991 ;; Remove non-free (non-commercial) font.
1994 (for-each delete-file (find-files "data/fonts" "."))
1996 (build-system python-build-system)
1998 `(#:tests? #f ;no test
2000 (modify-phases %standard-phases
2001 (delete 'build) ;pure Python
2002 (replace 'install ;no install script
2003 (lambda* (#:key outputs #:allow-other-keys)
2004 (let* ((out (assoc-ref outputs "out"))
2005 (bin (string-append out "/bin"))
2006 (share (string-append out "/share"))
2007 (applications (string-append share "/applications"))
2008 (data (string-append share "/seahorse-adventures")))
2010 (for-each (lambda (f)
2012 (install-file f data))
2013 '("leveledit.py" "run_game.py" "tileedit.py"))
2014 (for-each (lambda (dir)
2015 (let ((target (string-append data "/" dir)))
2017 (copy-recursively dir target)))
2019 ;; Create executable.
2021 (let ((executable (string-append bin "/seahorse-adventures")))
2022 (call-with-output-file executable
2026 export PYTHONPATH=~a:~a~@
2027 exec -a \"~a\" ~a \"$@\"~%"
2028 (which "bash") data (getenv "PYTHONPATH")
2030 (string-append data "/run_game.py"))))
2031 (chmod executable #o555))
2032 ;; Add desktop file.
2033 (mkdir-p applications)
2034 (make-desktop-entry-file
2035 (string-append applications "/seahorse-adventures.desktop")
2036 #:name "Seahorse Adventures"
2038 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2041 #:categories '("Game" "ActionGame")
2042 #:keywords '("game" "retro" "platform"))
2046 (let ((dir (string-append share "/icons/hicolor/"
2047 size "x" size "/apps")))
2050 (string-append "icon" size ".png")
2051 (string-append dir "/searhorse-adventures.png"))))
2052 '("32" "64" "128")))
2054 (add-after 'install 'unbundle-fonts
2055 ;; Unbundle Bitstream Vera font and replace deleted one.
2056 (lambda* (#:key outputs inputs #:allow-other-keys)
2057 (let* ((out (assoc-ref outputs "out"))
2058 (data (string-append out "/share/seahorse-adventures"))
2059 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2060 "/share/fonts/truetype/Vera.ttf")))
2061 (let ((themes-dir (string-append data "/data/themes/")))
2064 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2065 (delete-file target)
2066 (symlink vera target)))
2067 '("default" "gray")))
2068 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2069 (substitute* (string-append data "/lib/main.py")
2070 (("f_scale = 0.35") "f_scale = 0.47")))
2073 `(("font-bitstream-vera" ,font-bitstream-vera)
2074 ("python-pygame" ,python-pygame)))
2075 (home-page "http://www.imitationpickles.org/barbie/")
2076 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2078 "Barbie Seahorse Adventures is a retro style platform arcade game.
2079 You are Barbie the seahorse who travels through the jungle, up to the
2080 volcano until you float on bubbles to the moon. On the way to your
2081 final destination you will encounter various enemies, servants of the
2082 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2083 and defeat them with your bubbles!")
2084 ;; GPL2+ is for code, CC0 is for art.
2085 (license (list license:gpl2+ license:cc0))))
2087 (define-public superstarfighter
2089 (name "superstarfighter")
2095 (url "https://github.com/notapixelstudio/superstarfighter")
2096 (commit (string-append "v" version))))
2097 (file-name (git-file-name name version))
2099 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2100 (build-system gnu-build-system)
2102 `(#:tests? #f ;there are no tests
2104 (modify-phases %standard-phases
2108 (setenv "HOME" (getcwd))
2109 (with-output-to-file "export_presets.cfg"
2114 platform=\"Linux/X11\"
2116 [preset.0.options]")))
2120 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2121 (invoke (string-append godot "/bin/godot_server")
2122 "--export-pack" "Guix"
2123 "superstarfighter.pck" "project.godot"))
2126 (lambda* (#:key inputs outputs #:allow-other-keys)
2127 (let* ((out (assoc-ref outputs "out"))
2128 (bin (string-append out "/bin"))
2129 (share (string-append out "/share"))
2130 (data (string-append share "/superstarfighter"))
2131 (icons (string-append share "/icons/hicolor/256x256/apps")))
2132 (install-file "superstarfighter.pck" data)
2134 (call-with-output-file (string-append bin "/superstarfighter")
2138 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2139 (assoc-ref inputs "godot")
2141 (chmod port #o755)))
2143 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2144 (make-desktop-entry-file
2145 (string-append share "/applications/" ,name ".desktop")
2146 #:name "SuperStarfighter"
2147 #:comment "Fast-paced arcade combat game"
2150 #:categories '("Game" "ArcadeGame")))
2153 `(("godot-headless" ,godot "headless")))
2155 `(("godot" ,godot)))
2156 (home-page "https://notapixel.itch.io/superstarfighter")
2157 (synopsis "Fast-paced local multiplayer arcade game")
2158 (description "In SuperStarfighter, up to four local players compete in a
2159 2D arena with fast-moving ships and missiles. Different game types are
2160 available, as well as a single-player mode with AI-controlled ships.")
2161 (license (list license:expat ; game
2162 license:silofl1.1)))) ; fonts
2164 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2165 (define %ufoai-revision "0")
2166 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2167 (define ufoai-source
2171 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2172 (commit %ufoai-commit)))
2173 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2176 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2177 (modules '((guix build utils)
2182 ;; Delete ~32MiB of bundled dependencies.
2183 (with-directory-excursion "src/libs"
2184 (for-each delete-file-recursively
2185 (lset-difference equal? (scandir ".")
2186 '("." ".." "gtest" "mumble"))))
2188 ;; Use relative path to Lua headers.
2189 (substitute* "src/common/scripts_lua.h"
2190 (("\\.\\./libs/lua/") ""))
2192 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2193 ;; it as a separate package. This way we don't need to make the same
2194 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2195 (substitute* "build/maps.mk"
2196 (("\\./ufo2map") "ufo2map")
2197 (("maps: ufo2map") "maps:"))
2198 (substitute* "build/modules/testall.mk"
2199 (("testall: ufo2map") "testall:"))
2201 ;; If no cURL headers are found, the build system will try to include
2202 ;; the bundled version, even when not required. Prevent that.
2203 (substitute* "build/default.mk"
2204 (("^include src/libs/curl/lib/Makefile\\.inc")
2207 ;; While here, improve reproducibility by adding the '-X' flag to the
2208 ;; zip command used to create the map files, in order to prevent time
2209 ;; stamps from making it into the generated archives.
2210 (substitute* "build/data.mk"
2211 (("\\$\\(call ZIP\\)")
2215 (define-public ufo2map
2218 (version %ufoai-version)
2219 (home-page "https://ufoai.org/")
2220 (source ufoai-source)
2221 (build-system gnu-build-system)
2223 '(#:configure-flags '("CC=gcc" "CXX=g++"
2226 "--disable-uforadiant"
2227 "--disable-cgame-campaign"
2228 "--disable-cgame-multiplayer"
2229 "--disable-cgame-skirmish"
2235 "--disable-ufomodel"
2236 "--disable-ufoslicer")
2237 #:tests? #f ;no tests
2238 #:phases (modify-phases %standard-phases
2240 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2241 ;; The home-made configure script does not understand
2242 ;; some of the default flags of gnu-build-system.
2243 (apply invoke "./configure" configure-flags)))
2245 (lambda* (#:key outputs #:allow-other-keys)
2246 (let ((out (assoc-ref outputs "out")))
2247 (install-file "ufo2map" (string-append out "/bin"))
2248 (install-file "debian/ufo2map.6"
2249 (string-append out "/share/man/man6"))
2252 `(("pkg-config" ,pkg-config)))
2254 `(("libjpeg" ,libjpeg-turbo)
2257 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2258 (synopsis "UFO: AI map generator")
2260 "This package provides @command{ufo2map}, a program used to generate
2261 maps for the UFO: Alien Invasion strategy game.")
2262 (license license:gpl2+)))
2267 (version %ufoai-version)
2268 (home-page "https://ufoai.org/")
2269 (source ufoai-source)
2270 (build-system gnu-build-system)
2273 #:configure-flags '("CC=gcc" "CXX=g++")
2274 #:phases (modify-phases %standard-phases
2276 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2277 (apply invoke "./configure" configure-flags)))
2279 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2281 "-j" (if parallel-build?
2282 (number->string (parallel-job-count))
2285 (add-after 'build 'pack
2287 (invoke "make" "pk3")))
2289 (lambda* (#:key outputs #:allow-other-keys)
2290 (let ((out (assoc-ref outputs "out")))
2291 (for-each (lambda (file)
2292 (install-file file out))
2293 (find-files "base" "\\.pk3$"))
2296 `(("python" ,python-2)
2297 ("ufo2map" ,ufo2map)
2300 (synopsis "UFO: AI data files")
2302 "This package contains maps and other assets for UFO: Alien Invasion.")
2303 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2304 ;; licenses, see LICENSES for details.
2305 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2306 license:cc-by-sa3.0 license:public-domain))))
2308 (define-public ufoai
2311 (version %ufoai-version)
2312 (home-page "https://ufoai.org/")
2313 (source ufoai-source)
2314 (build-system gnu-build-system)
2317 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2318 (string-append "--datadir=" (assoc-ref %outputs "out")
2324 "--disable-dependency-tracking"
2326 ;; Disable hard links to prevent huge NARs.
2327 "--disable-hardlinkedgame"
2328 "--disable-hardlinkedcgame")
2329 #:phases (modify-phases %standard-phases
2330 (add-after 'unpack 'symlink-data-files
2331 (lambda* (#:key inputs #:allow-other-keys)
2332 (let ((data (assoc-ref inputs "ufoai-data")))
2333 ;; Symlink the data files to where the build system
2334 ;; expects to find them. Ultimately these files are
2335 ;; copied to $out/share/games/ufoai/base, losing the
2336 ;; symlinks; we could fix that after install, but it
2337 ;; does not make a big difference in practice due to
2339 (with-directory-excursion "base"
2340 (for-each (lambda (file)
2341 (symlink file (basename file)))
2342 (find-files data "\\.pk3$")))
2344 (add-before 'configure 'create-language-files
2346 (invoke "make" "lang")))
2348 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2349 (apply invoke "./configure" configure-flags)))
2351 (lambda* (#:key tests? #:allow-other-keys)
2353 (invoke "./testall")
2354 (format #t "test suite not run~%"))
2356 (add-after 'install 'install-man-pages
2357 (lambda* (#:key outputs #:allow-other-keys)
2358 (let* ((out (assoc-ref outputs "out"))
2359 (man6 (string-append out "/share/man/man6")))
2360 (install-file "debian/ufo.6" man6)
2361 (install-file "debian/ufoded.6" man6)
2364 ;; TODO: Some map tests occasionally fail because of randomness issues,
2365 ;; e.g. not enough generated aliens. The test runner also fails early
2366 ;; in the build container with 'failed to shutdown server'?
2369 `(("gettext" ,gettext-minimal)
2370 ("pkg-config" ,pkg-config)
2371 ("python" ,python-2)
2372 ("ufo2map" ,ufo2map)
2373 ("ufoai-data" ,ufoai-data)))
2376 ("libjpeg" ,libjpeg-turbo)
2379 ("libtheora" ,libtheora)
2380 ("libvorbis" ,libvorbis)
2381 ("libxml2" ,libxml2)
2384 ("minixml" ,minixml)
2385 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2387 (synopsis "Turn-based tactical strategy game")
2389 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2390 You control a secret organisation charged with defending Earth from a brutal
2391 alien enemy. Build up your bases, prepare your team, and dive head-first into
2392 the fast and flowing turn-based combat.
2394 Over the long term you will need to conduct research into the alien threat to
2395 figure out their mysterious goals and use their powerful weapons for your own
2396 ends. You will produce unique items and use them in combat against your
2399 You can also use them against your friends with the multiplayer functionality.
2401 Warning: This is a pre-release version of UFO: AI! Some things may not work
2404 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2405 ;; because some assets do not use the "or later" clause. Many individual
2406 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2407 (license (delete license:gpl2+ (package-license ufoai-data)))))
2409 (define-public xshogi
2416 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2420 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2421 (build-system gnu-build-system)
2423 `(("libxaw" ,libxaw)
2425 (home-page "https://www.gnu.org/software/gnushogi/")
2426 (synopsis "User interface for gnushogi")
2427 (description "A graphical user interface for the package @code{gnushogi}.")
2428 ;; Contains a copy of GPLv3 but the licence notices simply
2429 ;; state "GNU General Public Licence" without specifying a version.
2430 (license license:gpl1+)))
2432 (define-public abbaye
2440 (url "https://github.com/nevat/abbayedesmorts-gpl")
2441 (commit (string-append "v" version))))
2442 (file-name (git-file-name name version))
2444 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2445 (modules '((guix build utils)))
2449 (delete-file-recursively "fonts")
2451 (build-system gnu-build-system)
2453 '(#:make-flags '("CC=gcc")
2454 #:phases (modify-phases %standard-phases
2455 (add-after 'set-paths 'set-sdl-paths
2456 (lambda* (#:key inputs #:allow-other-keys)
2458 (string-append (assoc-ref inputs "sdl-union")
2460 (or (getenv "CPATH") "")))))
2461 (add-after 'patch-source-shebangs 'patch-makefile
2462 (lambda* (#:key outputs #:allow-other-keys)
2463 ;; Replace /usr with package output directory.
2464 (substitute* "Makefile"
2465 (("/usr") (assoc-ref outputs "out")))))
2466 (add-before 'install 'make-install-dirs
2467 (lambda* (#:key outputs #:allow-other-keys)
2468 (let ((prefix (assoc-ref outputs "out")))
2469 ;; Create directories that the makefile assumes exist.
2470 (mkdir-p (string-append prefix "/bin"))
2471 (mkdir-p (string-append prefix "/share/applications"))
2472 (mkdir-p (string-append prefix "/share/pixmaps")))))
2473 ;; No configure script.
2474 (delete 'configure))
2475 #:tests? #f)) ;; No check target.
2476 (native-inputs `(("pkg-config" ,pkg-config)))
2477 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2478 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2479 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2480 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2481 France. The Cathars, who preach about good Christian beliefs, were being
2482 expelled by the Catholic Church out of the Languedoc region in France. One of
2483 them, called Jean Raymond, found an old church in which to hide, not knowing
2484 that beneath its ruins lay buried an ancient evil.")
2485 (license license:gpl3)))
2487 (define-public angband
2494 (uri (string-append "https://rephial.org/downloads/"
2495 (version-major+minor version)
2496 "/angband-" version ".tar.gz"))
2498 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2499 (modules '((guix build utils)))
2501 ;; So, some of the sounds/graphics/tilesets are under different
2502 ;; licenses... some of them even nonfree! This is a console-only
2503 ;; version of this package so we just remove them.
2504 ;; In the future, if someone tries to make a graphical variant of
2505 ;; this package, they can deal with that mess themselves. :)
2507 (for-each (lambda (subdir)
2508 (let ((lib-subdir (string-append "lib/" subdir)))
2509 (delete-file-recursively lib-subdir)))
2510 '("fonts" "icons" "sounds" "tiles"))
2511 (substitute* "lib/Makefile"
2512 ;; And don't try to invoke makefiles in the directories we removed.
2513 (("gamedata customize help screens fonts tiles sounds icons user")
2514 "gamedata customize help screens user"))
2516 (build-system gnu-build-system)
2518 `(#:tests? #f ; no check target
2519 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2521 (modify-phases %standard-phases
2524 (substitute* "acinclude.m4"
2525 (("ncursesw5-config") "ncursesw6-config"))
2526 (invoke "sh" "autogen.sh"))))))
2528 `(("autoconf" ,autoconf)
2529 ("automake" ,automake)))
2530 (inputs `(("ncurses" ,ncurses)))
2531 (home-page "https://rephial.org/")
2532 (synopsis "Dungeon exploration roguelike")
2533 (description "Angband is a Classic dungeon exploration roguelike. Explore
2534 the depths below Angband, seeking riches, fighting monsters, and preparing to
2535 fight Morgoth, the Lord of Darkness.")
2536 (license license:gpl2)))
2538 (define-public pingus
2546 (url "https://gitlab.com/pingus/pingus.git")
2547 (commit (string-append "v" version))))
2548 (file-name (git-file-name name version))
2551 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2552 (patches (search-patches "pingus-boost-headers.patch"
2553 "pingus-sdl-libs-config.patch"))
2554 (modules '((guix build utils)))
2557 (substitute* "src/pingus/screens/demo_session.cpp"
2558 (("#include <iostream>")
2559 ;; std::function moved to <functional> with C++ 11.
2560 ;; Remove this for versions newer than 0.7.6.
2561 "#include <iostream>\n#include <functional>"))
2563 (build-system gnu-build-system)
2564 (native-inputs `(("pkg-config" ,pkg-config)
2565 ("scons-python2" ,scons-python2)))
2566 (inputs `(("sdl" ,sdl)
2567 ("sdl-image" ,sdl-image)
2568 ("sdl-mixer" ,sdl-mixer)
2574 '(#:make-flags (list (string-append "PREFIX=" %output))
2575 #:tests? #f ; no check target
2577 (modify-phases %standard-phases
2578 (delete 'configure)))) ; no configure script
2579 (home-page "https://pingus.seul.org/")
2580 (synopsis "Lemmings clone")
2582 "Pingus is a free Lemmings-like puzzle game in which the player takes
2583 command of a bunch of small animals and has to guide them through levels.
2584 Since the animals walk on their own, the player can only influence them by
2585 giving them commands, like build a bridge, dig a hole, or redirect all animals
2586 in the other direction. Multiple such commands are necessary to reach the
2587 level's exit. The game is presented in a 2D side view.")
2588 ;; Some source files are under bsd-3 and gpl2+ licenses.
2589 (license license:gpl3+)))
2591 (define-public talkfilters
2593 (name "talkfilters")
2598 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
2599 "talkfilters-" version ".tar.gz"))
2601 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
2602 (build-system gnu-build-system)
2603 (home-page "https://www.gnu.org/software/talkfilters/")
2604 (synopsis "Convert English text to humorous dialects")
2605 (description "The GNU Talk Filters are programs that convert English text
2606 into stereotyped or otherwise humorous dialects. The filters are provided as
2607 a C library, so they can easily be integrated into other programs.")
2608 (license license:gpl2+)))
2610 (define-public taisei
2617 (uri (string-append "https://github.com/taisei-project/"
2618 "taisei/releases/download/v" version
2619 "/taisei-v" version ".tar.xz"))
2621 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
2622 (build-system meson-build-system)
2624 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
2626 (list "-Dr_default=gles30"
2629 "-Dshader_transpiler=true")))
2631 `(("pkg-config" ,pkg-config)
2633 ("python-docutils" ,python-docutils)
2634 ("python-pygments" ,python-pygments)))
2636 `(("freetype" ,freetype)
2638 ("libwebp" ,libwebp)
2641 ("openssl" ,openssl)
2642 ("opusfile" ,opusfile)
2644 ("sdl2-mixer" ,sdl2-mixer)
2645 ("shaderc" ,shaderc)
2646 ("spirv-cross" ,spirv-cross)
2648 (home-page "https://taisei-project.org/")
2649 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
2651 "The player controls a character (one of three: Good, Bad, and Dead),
2652 dodges the missiles (lots of it cover the screen, but the character's hitbox
2653 is very small), and shoot at the adversaries that keep appear on the screen.")
2654 (license (list ;;game
2656 ;;resources/00-taisei.pkgdir/bgm/
2661 license:public-domain))))
2663 (define-public cmatrix
2671 (url "https://github.com/abishekvashok/cmatrix")
2672 (commit (string-append "v" version))))
2673 (file-name (git-file-name name version))
2676 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
2677 (build-system gnu-build-system)
2679 `(("autoconf" ,autoconf)
2680 ("automake" ,automake)))
2683 (modify-phases %standard-phases
2685 (lambda* (#:key outputs #:allow-other-keys)
2686 ;; This old ‘configure’ script doesn't support
2687 ;; variables passed as arguments.
2688 (let ((out (assoc-ref outputs "out")))
2689 (setenv "CONFIG_SHELL" (which "bash"))
2690 (invoke "./configure"
2691 (string-append "--prefix=" out))))))))
2692 (inputs `(("ncurses" ,ncurses)))
2693 (home-page "http://www.asty.org/cmatrix")
2694 (synopsis "Simulate the display from \"The Matrix\"")
2695 (description "CMatrix simulates the display from \"The Matrix\" and is
2696 based on the screensaver from the movie's website. It works with terminal
2697 settings up to 132x300 and can scroll lines all at the same rate or
2698 asynchronously and at a user-defined speed.")
2699 (license license:gpl2+)))
2701 (define-public chess
2708 (uri (string-append "mirror://gnu/chess/gnuchess-" version
2712 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
2713 (build-system gnu-build-system)
2714 (home-page "https://www.gnu.org/software/chess/")
2715 (synopsis "Full chess implementation")
2716 (description "GNU Chess is a chess engine. It allows you to compete
2717 against the computer in a game of chess, either through the default terminal
2718 interface or via an external visual interface such as GNU XBoard.")
2719 (properties '((upstream-name . "gnuchess")
2720 (ftp-directory . "/chess")))
2721 (license license:gpl3+)))
2723 (define freedink-engine
2725 (name "freedink-engine")
2729 (uri (string-append "mirror://gnu/freedink/freedink-" version
2733 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
2734 (build-system gnu-build-system)
2736 `(#:configure-flags '("--disable-embedded-resources")
2738 (modify-phases %standard-phases
2739 (add-after 'unpack 'disable-graphical-tests
2741 ;; These tests require a graphical interface.
2742 (substitute* "src/Makefile.am"
2743 (("test_gfx_fonts TestIOGfxDisplay") ""))
2745 (native-inputs `(("autoconf" ,autoconf)
2746 ("automake" ,automake)
2747 ("cxxtest" ,cxxtest)
2748 ("gettext" ,gettext-minimal)
2749 ("help2man" ,help2man)
2750 ("pkg-config" ,pkg-config)))
2751 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
2752 sdl2-ttf sdl2-gfx)))
2753 ("fontconfig" ,fontconfig)
2755 (properties '((ftp-directory . "/freedink")
2756 (upstream-name . "freedink")))
2757 (home-page "https://www.gnu.org/software/freedink/")
2758 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
2760 "GNU FreeDink is a free and portable re-implementation of the engine
2761 for the role-playing game Dink Smallwood. It supports not only the original
2762 game data files but it also supports user-produced game mods or \"D-Mods\".
2763 To that extent, it also includes a front-end for managing all of your D-Mods.")
2764 (license license:gpl3+)))
2766 (define freedink-data
2768 (name "freedink-data")
2769 (version "1.08.20190120")
2772 (uri (string-append "mirror://gnu/freedink/freedink-data-"
2776 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
2777 (build-system gnu-build-system)
2780 (modify-phases %standard-phases
2781 (delete 'configure) ; no configure script
2782 (delete 'check)) ; no tests
2783 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
2784 (properties '((ftp-directory . "/freedink")))
2785 (home-page "https://www.gnu.org/software/freedink/")
2786 (synopsis "Game data for GNU Freedink")
2788 "This package contains the game data of GNU Freedink.")
2789 (license license:gpl3+)))
2791 (define-public freedink-dfarc
2793 (name "freedink-dfarc")
2797 (uri (string-append "mirror://gnu/freedink/dfarc-"
2801 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
2802 (build-system gnu-build-system)
2804 `(("intltool" ,intltool)))
2807 ("wxwidgets" ,wxwidgets)))
2808 (properties '((ftp-directory . "/freedink")
2809 (upstream-name . "dfarc")))
2810 (home-page "https://www.gnu.org/software/freedink/")
2811 (synopsis "Front-end for managing and playing Dink Modules")
2812 (description "DFArc makes it easy to play and manage the GNU FreeDink game
2813 and its numerous D-Mods.")
2814 (license license:gpl3+)))
2816 (define-public freedink
2817 ;; This is a wrapper that tells the engine where to find the data.
2818 (package (inherit freedink-engine)
2820 (build-system trivial-build-system)
2823 (use-modules (guix build utils))
2825 (let* ((output (assoc-ref %outputs "out"))
2826 (bin (string-append output "/bin"))
2827 (executable (string-append bin "/freedink")))
2829 (call-with-output-file executable
2831 (format port "#!~a/bin/sh
2832 exec ~a/bin/freedink -refdir ~a/share/dink\n"
2833 (assoc-ref %build-inputs "bash")
2834 (assoc-ref %build-inputs "engine")
2835 (assoc-ref %build-inputs "data"))
2836 (chmod port #o777)))
2838 #:modules ((guix build utils))))
2839 (inputs `(("engine" ,freedink-engine)
2840 ("data" ,freedink-data)
2842 (native-inputs '())))
2844 (define-public xboard
2851 (uri (string-append "mirror://gnu/xboard/xboard-" version
2855 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
2856 (build-system gnu-build-system)
2859 ("librsvg" ,librsvg)))
2861 `(("texinfo" ,texinfo)
2862 ("pkg-config" ,pkg-config)))
2863 (home-page "https://www.gnu.org/software/xboard/")
2864 (synopsis "Graphical user interface for chess programs")
2865 (description "GNU XBoard is a graphical board for all varieties of chess,
2866 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
2867 and Makruk. Several lesser-known variants are also supported. It presents a
2868 fully interactive graphical interface and it can load and save games in the
2869 Portable Game Notation.")
2870 (license license:gpl3+)))
2872 (define-public gtypist
2878 (uri (string-append "mirror://gnu/gtypist/gtypist-"
2882 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
2883 (modules '((guix build utils)))
2885 ;; We do not provide `ncurses.h' within an `ncursesw'
2886 ;; sub-directory, so patch the source accordingly. See
2887 ;; <http://bugs.gnu.org/19018>.
2889 (for-each (lambda (file)
2891 (("ncursesw/ncurses.h")
2893 (find-files "." "configure$|\\.c$"))
2895 (build-system gnu-build-system)
2896 (inputs `(("ncurses" ,ncurses)
2898 (home-page "https://www.gnu.org/software/gtypist/")
2899 (synopsis "Typing tutor")
2901 "GNU Typist is a universal typing tutor. It can be used to learn and
2902 practice touch-typing. Several tutorials are included; in addition to
2903 tutorials for the standard QWERTY layout, there are also tutorials for the
2904 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
2905 are primarily in English, however some in other languages are provided.")
2906 (license license:gpl3+)))
2908 (define-public irrlicht
2915 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
2916 (version-major+minor version)
2917 "/" version "/irrlicht-" version ".zip"))
2920 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
2921 (patches (search-patches "irrlicht-use-system-libs.patch"))
2922 (modules '((guix build utils)))
2925 (for-each delete-file-recursively
2926 '("bin" ; bundled compiled Windows binaries"
2927 "source/Irrlicht/MacOSX"
2928 "source/Irrlicht/bzip2"
2929 "source/Irrlicht/jpeglib"
2930 "source/Irrlicht/libpng"
2931 "source/Irrlicht/lzma"
2932 "source/Irrlicht/zlib"))
2933 (delete-file "source/Irrlicht/glext.h")
2934 (delete-file "source/Irrlicht/glxext.h")
2935 (delete-file "source/Irrlicht/wglext.h")
2937 (build-system gnu-build-system)
2940 (modify-phases %standard-phases
2941 (add-after 'unpack 'chdir-to-source
2943 ;; The actual source is buried a few directories deep.
2944 (chdir "source/Irrlicht/")
2946 (add-after 'chdir-to-source 'fix-build-env
2947 (lambda* (#:key outputs #:allow-other-keys)
2948 (let ((out (assoc-ref outputs "out")))
2949 (substitute* "Makefile"
2950 (("INSTALL_DIR = /usr/local/lib")
2951 (string-append "INSTALL_DIR = " out "/lib"))
2952 ;; Add '-fpermissive' to the CXXFLAGS
2953 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
2954 ;; The Makefile assumes these directories exist.
2955 (mkdir-p (string-append out "/lib"))
2956 (mkdir-p (string-append out "/include")))))
2957 (delete 'configure)) ; no configure script
2958 #:tests? #f ; no check target
2959 #:make-flags '("CC=gcc" "sharedlib")))
2962 ("libjpeg" ,libjpeg-turbo)
2965 ("libxxf86vm" ,libxxf86vm)
2967 (synopsis "3D game engine written in C++")
2969 "The Irrlicht Engine is a high performance realtime 3D engine written in
2970 C++. Features include an OpenGL renderer, extensible materials, scene graph
2971 management, character animation, particle and other special effects, support
2972 for common mesh file formats, and collision detection.")
2973 (home-page "http://irrlicht.sourceforge.net/")
2974 (license license:zlib)))
2977 ;; The latest release on SourceForge relies on an unreleased version of SFML
2978 ;; with a different API, so we take the latest version from the official
2979 ;; repository on Github.
2980 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
2984 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
2988 (url "https://github.com/thelaui/M.A.R.S.")
2990 (file-name (git-file-name name version))
2993 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
2994 (patches (search-patches "mars-sfml-2.3.patch"
2995 "mars-install.patch"))))
2996 (build-system cmake-build-system)
2998 `(#:tests? #f ; There are no tests
3000 (modify-phases %standard-phases
3001 (add-after 'unpack 'fix-install-path
3003 (substitute* "src/CMakeLists.txt"
3004 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3005 "${CMAKE_INSTALL_PREFIX}/bin"))
3007 (add-after 'unpack 'fix-data-path
3008 (lambda* (#:key outputs #:allow-other-keys)
3009 (substitute* "src/System/settings.cpp"
3010 (("C_dataPath = \"./data/\";")
3011 (string-append "C_dataPath = \""
3012 (assoc-ref outputs "out")
3013 "/share/games/marsshooter/\";")))
3017 ("fribidi" ,fribidi)
3020 (home-page "http://mars-game.sourceforge.net/")
3021 (synopsis "2D space shooter")
3023 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3024 attractive physics. Players can battle each other or computer controlled
3025 enemies in different game modes such as space ball, death match, team death
3026 match, cannon keep, and grave-itation pit.")
3027 (license license:gpl3+))))
3029 (define-public minetest
3036 (url "https://github.com/minetest/minetest")
3038 (file-name (git-file-name name version))
3041 "03ga3j3cg38w4lg4d4qxasmnjdl8n3lbizidrinanvyfdyvznyh6"))
3042 (modules '((guix build utils)))
3045 ;; Delete bundled libraries.
3046 (delete-file-recursively "lib")
3048 (build-system cmake-build-system)
3051 (list "-DRUN_IN_PLACE=0"
3052 "-DENABLE_FREETYPE=1"
3053 "-DENABLE_GETTEXT=1"
3054 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3055 (string-append "-DIRRLICHT_INCLUDE_DIR="
3056 (assoc-ref %build-inputs "irrlicht")
3057 "/include/irrlicht")
3058 (string-append "-DCURL_INCLUDE_DIR="
3059 (assoc-ref %build-inputs "curl")
3061 #:tests? #f)) ;no check target
3062 (native-search-paths
3063 (list (search-path-specification
3064 (variable "MINETEST_SUBGAME_PATH")
3065 (files '("share/minetest/games")))))
3067 `(("pkg-config" ,pkg-config)))
3070 ("freetype" ,freetype)
3071 ("gettext" ,gettext-minimal)
3073 ("irrlicht" ,irrlicht)
3074 ("jsoncpp" ,jsoncpp)
3075 ("libjpeg" ,libjpeg-turbo)
3078 ("libvorbis" ,libvorbis)
3079 ("libxxf86vm" ,libxxf86vm)
3082 ("ncurses" ,ncurses)
3084 ("sqlite" ,sqlite)))
3086 `(("minetest-data" ,minetest-data)))
3087 (synopsis "Infinite-world block sandbox game")
3089 "Minetest is a sandbox construction game. Players can create and destroy
3090 various types of blocks in a three-dimensional open world. This allows
3091 forming structures in every possible creation, on multiplayer servers or as a
3092 single player. Mods and texture packs allow players to personalize the game
3093 in different ways.")
3094 (home-page "https://www.minetest.net/")
3095 (license license:lgpl2.1+)))
3097 (define minetest-data
3099 (name "minetest-data")
3100 (version (package-version minetest))
3104 (url "https://github.com/minetest/minetest_game")
3106 (file-name (git-file-name name version))
3109 "1liciwlh013z5h08ib0psjbwn5wkvlr937ir7kslfk4vly984cjx"))))
3110 (build-system trivial-build-system)
3112 `(("source" ,source)))
3114 `(#:modules ((guix build utils))
3116 (use-modules (guix build utils))
3117 (let ((install-dir (string-append
3119 "/share/minetest/games/minetest_game")))
3120 (mkdir-p install-dir)
3122 (assoc-ref %build-inputs "source")
3125 (synopsis "Main game data for the Minetest game engine")
3127 "Game data for the Minetest infinite-world block sandbox game.")
3128 (home-page "https://www.minetest.net/")
3129 (license license:lgpl2.1+)))
3138 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3139 "glk/implementations/glkterm-104.tar.gz"))
3142 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3143 (build-system gnu-build-system)
3144 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3146 '(#:tests? #f ; no check target
3148 (modify-phases %standard-phases
3150 (lambda* (#:key outputs #:allow-other-keys)
3151 (let* ((out (assoc-ref outputs "out"))
3152 (inc (string-append out "/include"))
3153 (lib (string-append out "/lib")))
3156 (install-file file inc))
3157 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3158 (install-file "libglkterm.a" lib))
3160 (delete 'configure)))) ; no configure script
3161 (home-page "http://www.eblong.com/zarf/glk/")
3162 (synopsis "Curses Implementation of the Glk API")
3164 "Glk defines a portable API for applications with text UIs. It was
3165 primarily designed for interactive fiction, but it should be suitable for many
3166 interactive text utilities, particularly those based on a command line.
3167 This is an implementation of the Glk library which runs in a terminal window,
3168 using the @code{curses.h} library for screen control.")
3169 (license (license:fsf-free "file://README"))))
3171 (define-public glulxe
3178 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3179 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3182 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3183 (build-system gnu-build-system)
3184 (inputs `(("glk" ,glkterm)))
3186 '(#:tests? #f ; no check target
3188 (let* ((glk (assoc-ref %build-inputs "glk")))
3189 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3190 (string-append "GLKLIBDIR=" glk "/lib")
3191 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3193 (modify-phases %standard-phases
3195 (lambda* (#:key outputs #:allow-other-keys)
3196 (let* ((out (assoc-ref outputs "out"))
3197 (bin (string-append out "/bin")))
3198 (install-file "glulxe" bin))
3200 (delete 'configure)))) ; no configure script
3201 (home-page "https://www.eblong.com/zarf/glulx/")
3202 (synopsis "Interpreter for Glulx VM")
3204 "Glulx is a 32-bit portable virtual machine intended for writing and
3205 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3206 some of the restrictions in the venerable Z-machine format. This is the
3207 reference interpreter, using the Glk API.")
3208 (license license:expat)))
3210 (define-public fifechan
3216 (uri (string-append "https://codeload.github.com/fifengine/"
3217 "fifechan/tar.gz/" version))
3218 (file-name (string-append name "-" version ".tar.gz"))
3221 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3222 (build-system cmake-build-system)
3225 ("sdl2-image" ,sdl2-image)
3228 '(#:tests? #f)) ; No included tests
3229 (home-page "https://fifengine.github.io/fifechan/")
3230 (synopsis "Cross platform GUI library specifically for games")
3232 "Fifechan is a lightweight cross platform GUI library written in C++
3233 specifically designed for games. It has a built in set of extendable GUI
3234 Widgets, and allows users to create more.")
3235 (license license:lgpl2.1+)))
3237 (define-public fifengine
3243 (uri (string-append "https://codeload.github.com/fifengine/"
3244 "fifengine/tar.gz/" version))
3245 (file-name (string-append name "-" version ".tar.gz"))
3246 (patches (search-patches "fifengine-swig-compat.patch"))
3249 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3250 (build-system cmake-build-system)
3252 `(#:tests? #f ; TODO The test running fails to run some tests.
3253 #:modules ((srfi srfi-1)
3254 (guix build cmake-build-system)
3258 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3259 (assoc-ref %build-inputs "openal")
3261 (string-append "-DPYTHON_SITE_PACKAGES="
3262 (assoc-ref %outputs "out")
3264 ,(version-major+minor (package-version python))
3267 (modify-phases %standard-phases
3268 (add-after 'unpack 'patch-run_tests.py
3270 ;; Patch the test runner to exit with a status of 1 if any test
3271 ;; fails, to allow detecting failures.
3272 (substitute* "run_tests.py"
3273 (("ERROR\\. One or more tests failed!'\\)")
3274 "ERROR. One or more tests failed!')
3277 ;; Run tests after installation so that we can make use of the built
3280 (add-after 'install 'check
3281 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3282 (define python-version
3283 (let* ((version (last (string-split
3284 (assoc-ref inputs "python")
3286 (components (string-split version #\.))
3287 (major+minor (take components 2)))
3288 (string-join major+minor ".")))
3291 ;; Set PYTHONPATH so that python finds the installed modules.
3292 (setenv "PYTHONPATH"
3293 (string-append (getenv "PYTHONPATH") ":"
3294 (assoc-ref outputs "out")
3298 ;; The tests require an X server.
3299 (system "Xvfb :1 &")
3300 (setenv "DISPLAY" ":1")
3301 (setenv "XDG_RUNTIME_DIR" "/tmp")
3303 (chdir ,(string-append "../" name "-" version))
3304 (invoke "python3" "run_tests.py" "-a"))
3308 ("sdl2-image" ,sdl2-image)
3309 ("sdl2-ttf" ,sdl2-ttf)
3310 ("tinyxml" ,tinyxml)
3314 ("libvorbis" ,libvorbis)
3316 ("fifechan" ,fifechan)
3318 ("python" ,python)))
3320 `(("python" ,python)
3322 ("xvfb" ,xorg-server)))
3324 `(("python-future" ,python-future)))
3325 (home-page "https://www.fifengine.net/")
3326 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3328 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3329 isometric game engine. Python bindings are included allowing users to create
3330 games using Python as well as C++.")
3331 (license license:lgpl2.1+)))
3333 (define-public fizmo
3339 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3340 "fizmo-" version ".tar.gz"))
3343 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3344 (build-system gnu-build-system)
3347 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3348 (ncurses (assoc-ref %build-inputs "ncurses")))
3349 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3351 `(("pkg-config" ,pkg-config)))
3353 `(("freetype" ,freetype)
3354 ("libjpeg" ,libjpeg-turbo)
3356 ("libsndfile" ,libsndfile)
3357 ("libxml2" ,libxml2)
3358 ("ncurses" ,ncurses)
3360 (home-page "https://fizmo.spellbreaker.org/")
3361 (synopsis "Z-machine interpreter")
3363 "Fizmo is a console-based Z-machine interpreter. It is used to play
3364 interactive fiction, also known as text adventures, which were implemented
3365 either by Infocom or created using the Inform compiler.")
3366 (license license:bsd-3)))
3368 (define-public gnugo
3374 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3378 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3379 (build-system gnu-build-system)
3380 (inputs `(("readline" ,readline)))
3381 (synopsis "Play the game of Go")
3383 "GNU Go is a program that plays the game of Go, in which players
3384 place stones on a grid to form territory or capture other stones. While
3385 it can be played directly from the terminal, rendered in ASCII characters,
3386 it is also possible to play GNU Go with 3rd party graphical interfaces or
3387 even in Emacs. It supports the standard game storage format (SGF, Smart
3388 Game Format) and inter-process communication format (GMP, Go Modem
3390 (home-page "https://www.gnu.org/software/gnugo/")
3391 (license license:gpl3+)))
3393 (define-public extremetuxracer
3395 (name "extremetuxracer")
3400 "mirror://sourceforge/extremetuxracer/releases/"
3401 version "/etr-" version ".tar.xz"))
3404 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3405 (build-system gnu-build-system)
3407 `(("pkg-config" ,pkg-config)))
3411 (synopsis "High-speed arctic racing game based on Tux Racer")
3412 ;; Snarfed straight from Debian.
3413 (description "Extreme Tux Racer, or etracer as it is called for short, is
3414 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3415 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3416 avoiding the trees and rocks that will slow you down.
3418 Collect herrings and other goodies while sliding down the hill, but avoid fish
3421 This game is based on the GPL version of the famous game TuxRacer.")
3422 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3423 (license license:gpl2+)))
3425 (define-public supertuxkart
3427 (name "supertuxkart")
3432 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3433 version "/supertuxkart-" version "-src.tar.xz"))
3436 "1s0ai07g3sswck9mr0142989mrgzzq1njc1qxk5als5b245jpc79"))
3437 (modules '((guix build utils)))
3439 ;; Delete bundled library sources
3441 ;; Supertuxkart uses modified versions of the Irrlicht engine
3442 ;; and the bullet library. The developers gave an explanation
3443 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3444 ;; FIXME: try to unbundle angelscript and libraqm
3445 (for-each delete-file-recursively
3453 (build-system cmake-build-system)
3455 `(#:tests? #f ; no check target
3457 (list "-DUSE_WIIUSE=0"
3458 ;; Do not use the bundled zlib, glew and enet.
3459 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
3460 "-DUSE_SYSTEM_GLEW=TRUE"
3461 "-DUSE_SYSTEM_ENET=TRUE"
3462 ;; In order to use the system ENet library, IPv6 support (added in
3463 ;; SuperTuxKart version 1.1) must be disabled.
3465 ;; FIXME: needs libopenglrecorder
3466 "-DBUILD_RECORDER=0"
3467 ;; Irrlicht returns an integer instead of a boolean
3468 "-DCMAKE_C_FLAGS=-fpermissive")))
3473 ("libvorbis" ,libvorbis)
3474 ("freetype" ,freetype)
3475 ("fribidi" ,fribidi)
3476 ("harfbuzz" ,harfbuzz)
3479 ("libxrandr" ,libxrandr)
3481 ;; The following input is needed to build the bundled and modified
3482 ;; version of irrlicht.
3483 ("libjpeg" ,libjpeg-turbo)
3484 ("openssl" ,openssl)
3487 `(("pkg-config" ,pkg-config)))
3488 (home-page "https://supertuxkart.net/Main_Page")
3489 (synopsis "3D kart racing game")
3490 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3491 having fun over realism. You can play with up to 4 friends on one PC, racing
3492 against each other or just trying to beat the computer; single-player mode is
3494 (license license:gpl3+)))
3496 (define-public unknown-horizons
3498 (name "unknown-horizons")
3502 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3503 "unknown-horizons/tar.gz/" version))
3504 (file-name (string-append name "-" version ".tar.gz"))
3507 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))))
3508 (build-system python-build-system)
3511 (modify-phases %standard-phases
3512 (add-before 'build 'set-HOME
3514 (setenv "HOME" "/tmp")))
3515 (add-after 'build 'build-extra
3517 (invoke "python3" "./setup.py" "build_i18n")
3518 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3520 (add-after 'install 'patch
3521 (lambda* (#:key outputs #:allow-other-keys)
3522 (let ((out (assoc-ref outputs "out")))
3523 (substitute* (string-append out "/bin/unknown-horizons")
3524 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3525 (string-append "os.chdir(\""
3526 (assoc-ref outputs "out")
3527 "/share/unknown-horizons\")"))))
3529 ;; TODO: Run GUI tests as well
3532 (substitute* "horizons/constants.py"
3533 (("IS_DEV_VERSION = False")
3534 "IS_DEV_VERSION = True"))
3535 (invoke "pytest" "tests")
3536 (substitute* "horizons/constants.py"
3537 (("IS_DEV_VERSION = True")
3538 "IS_DEV_VERSION = False"))
3541 `(("fifengine" ,fifengine)
3542 ("python:tk" ,python "tk")
3543 ("python-pillow" ,python-pillow)
3544 ("python-pyyaml" ,python-pyyaml)))
3546 `(("intltool" ,intltool)
3548 ;; Required for tests
3549 ("python-greenlet" ,python-greenlet)
3550 ("python-polib" ,python-polib)
3551 ("python-pytest" ,python-pytest)
3552 ("python-pytest-mock" ,python-pytest-mock)))
3553 (home-page "http://unknown-horizons.org/")
3554 (synopsis "Isometric realtime strategy, economy and city building simulation")
3556 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
3557 on economy and city building. Expand your small settlement to a strong and
3558 wealthy colony, collect taxes and supply your inhabitants with valuable
3559 goods. Increase your power with a well balanced economy and with strategic
3560 trade and diplomacy.")
3562 license:gpl2+ ; Covers code
3563 license:expat ; tests/dummy.py, ext/polib.py
3564 license:cc-by-sa3.0 ; Covers some media content
3565 license:cc-by3.0 ; Covers some media content
3566 license:bsd-3)))) ; horizons/ext/speaklater.py
3568 (define-public gnujump
3574 (uri (string-append "mirror://gnu/gnujump/gnujump-"
3578 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
3579 (build-system gnu-build-system)
3582 (modify-phases %standard-phases
3584 'configure 'link-libm
3585 (lambda _ (setenv "LIBS" "-lm")))
3586 (add-after 'install 'create-desktop-entry
3587 (lambda* (#:key outputs #:allow-other-keys)
3588 (let* ((out (assoc-ref outputs "out"))
3589 (apps (string-append out "/share/applications")))
3591 (with-output-to-file
3592 (string-append apps "/gnujump.desktop")
3597 Comment=Jump up the tower to survive~@
3598 Exec=~a/bin/gnujump~@
3601 Categories=Game;ArcadeGame~%"
3607 ("sdl-image" ,sdl-image)
3608 ("sdl-mixer" ,sdl-mixer)))
3609 (home-page "http://gnujump.es.gnu.org/")
3611 "Game of jumping to the next floor, trying not to fall")
3613 "GNUjump is a simple, yet addictive game in which you must jump from
3614 platform to platform to avoid falling, while the platforms drop at faster rates
3615 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
3616 falling, themeable graphics and sounds, and replays.")
3617 (license license:gpl3+)))
3619 (define-public wesnoth
3625 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
3626 (version-major+minor version)
3627 "/wesnoth-" version "/"
3628 "wesnoth-" version ".tar.bz2"))
3631 "1pmqj4rah0256qi9w394ksb9apid723i5f5agkg6x1lahb1ac91q"))))
3632 (build-system cmake-build-system)
3634 `(#:tests? #f)) ;no check target
3636 `(("gettext" ,gettext-minimal)
3637 ("pkg-config" ,pkg-config)))
3641 ("fribidi" ,fribidi)
3642 ("libvorbis" ,libvorbis)
3643 ("openssl" ,openssl)
3645 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
3646 (home-page "https://www.wesnoth.org/")
3647 (synopsis "Turn-based strategy game")
3649 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
3650 with several single player campaigns, and multiplayer games (both networked and
3653 Battle for control on a range of maps, using variety of units which have
3654 advantages and disadvantages against different types of attacks. Units gain
3655 experience and advance levels, and are carried over from one scenario to the
3657 (license license:gpl2+)))
3659 (define-public wesnoth-server
3662 (name "wesnoth-server")
3666 ("openssl" ,openssl)
3669 `(#:configure-flags '("-DENABLE_GAME=OFF")
3670 ,@(package-arguments wesnoth)))
3671 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
3672 (description "This package contains a dedicated server for @emph{The
3673 Battle for Wesnoth}.")))
3675 (define-public gamine
3681 (uri (string-append "mirror://sourceforge/gamine-game/"
3682 "gamine-" version ".tar.gz"))
3685 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
3686 (build-system gnu-build-system)
3688 `(("pkg-config" ,pkg-config)
3689 ("intltool" ,intltool)))
3691 `(("gstreamer" ,gstreamer)
3692 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
3693 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
3698 (let ((out (assoc-ref %outputs "out")))
3699 (list (string-append "PREFIX=" out)
3700 (string-append "SYSCONFDIR=" out "/etc")))
3702 (modify-phases %standard-phases
3705 'install 'wrap-gamine
3706 (lambda* (#:key outputs #:allow-other-keys)
3707 (let ((out (assoc-ref outputs "out"))
3708 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
3709 (wrap-program (string-append out "/bin/gamine")
3710 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
3712 (home-page "http://gamine-game.sourceforge.net/")
3713 (synopsis "Mouse and keyboard discovery for children")
3715 "Gamine is a game designed for young children who are learning to use the
3716 mouse and keyboard. The child uses the mouse to draw colored dots and lines
3717 on the screen and keyboard to display letters.")
3718 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
3719 (license license:gpl3)))
3721 (define-public manaplus
3724 (version "1.9.3.23")
3728 "https://repo.manaplus.org/manaplus/download/"
3729 version "/manaplus-" version ".tar.xz"))
3732 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
3733 (build-system gnu-build-system)
3736 (list (string-append "CPPFLAGS=-I"
3737 (assoc-ref %build-inputs "sdl-union")
3740 `(("pkg-config" ,pkg-config)))
3744 ("libxml2" ,libxml2)
3746 ("sdl-union" ,(sdl-union))))
3747 (home-page "https://manaplus.org")
3748 (synopsis "Client for 'The Mana World' and similar games")
3750 "ManaPlus is a 2D MMORPG client for game servers. It is the only
3751 fully supported client for @uref{http://www.themanaworld.org, The mana
3752 world}, @uref{http://evolonline.org, Evol Online} and
3753 @uref{http://landoffire.org, Land of fire}.")
3754 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
3755 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
3756 ;; The rest is under GPL2+.
3757 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
3759 (define openttd-engine
3761 (name "openttd-engine")
3764 (origin (method url-fetch)
3765 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
3766 version "/openttd-" version "-source.tar.xz"))
3769 "0lz2y2rjc23k0d97y65cqhy2splw9cmrbvhgz0iqps8xkan1m8hv"))))
3770 (build-system gnu-build-system)
3772 `(#:tests? #f ; no "check" target
3774 (modify-phases %standard-phases
3775 ;; The build process fails if the configure script is passed the
3776 ;; option "--enable-fast-install".
3778 (lambda* (#:key inputs outputs (configure-flags '())
3780 (let ((out (assoc-ref outputs "out"))
3781 (lzo (assoc-ref inputs "lzo")))
3782 (apply invoke "./configure"
3783 (string-append "--prefix=" out)
3784 ;; Provide the "lzo" path.
3785 (string-append "--with-liblzo2="
3786 lzo "/lib/liblzo2.a")
3787 ;; Put the binary in 'bin' instead of 'games'.
3789 configure-flags)))))))
3790 (native-inputs `(("pkg-config" ,pkg-config)))
3792 `(("allegro" ,allegro)
3793 ("fontconfig" ,fontconfig)
3794 ("freetype" ,freetype)
3801 (synopsis "Transportation economics simulator game")
3802 (description "OpenTTD is a game in which you transport goods and
3803 passengers by land, water and air. It is a re-implementation of Transport
3804 Tycoon Deluxe with many enhancements including multiplayer mode,
3805 internationalization support, conditional orders and the ability to clone,
3806 autoreplace and autoupdate vehicles. This package only includes the game
3807 engine. When you start it you will be prompted to download a graphics set.")
3808 (home-page "https://www.openttd.org/")
3809 ;; This package is GPLv2, except for a few files located in
3810 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
3811 ;; licenses. In addition, this software contains an in-game downloader
3812 ;; from which the user may find non-functional data licensed under
3814 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
3816 (define openttd-opengfx
3818 (name "openttd-opengfx")
3823 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
3824 version "/opengfx-" version "-source.tar.xz"))
3827 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
3828 (build-system gnu-build-system)
3830 '(#:make-flags (list "CC=gcc"
3831 (string-append "INSTALL_DIR="
3832 (assoc-ref %outputs "out")
3833 "/share/games/openttd/baseset/opengfx"))
3835 (modify-phases %standard-phases
3838 ;; Make sure HOME is writable for GIMP.
3839 (setenv "HOME" (getcwd))
3841 ;; Redirect stdout, not stderr, to /dev/null. This prevents
3842 ;; dos2unix from receiving its version information as a flag.
3843 (substitute* "Makefile"
3844 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
3845 "$(UNIX2DOS) -q --version 1>/dev/null")))))
3846 ;; The check phase for this package only checks the md5sums of the built
3847 ;; GRF files against the md5sums of the release versions. Because we use
3848 ;; different software versions than upstream does, some of the md5sums
3849 ;; are different. However, the package is still reproducible, it's safe
3850 ;; to disable this test.
3852 #:parallel-build? #f))
3853 (native-inputs `(("dos2unix" ,dos2unix)
3855 ("grfcodec" ,grfcodec)
3858 ("python" ,python-2)))
3859 (home-page "http://dev.openttdcoop.org/projects/opengfx")
3860 (synopsis "Base graphics set for OpenTTD")
3862 "The OpenGFX projects is an implementation of the OpenTTD base grahics
3863 set that aims to ensure the best possible out-of-the-box experience.
3865 OpenGFX provides you with...
3867 @item All graphics you need to enjoy OpenTTD.
3868 @item Uniquely drawn rail vehicles for every climate.
3869 @item Completely snow-aware rivers.
3870 @item Different river and sea water.
3871 @item Snow-aware buoys.
3873 (license license:gpl2)))
3875 (define openttd-opensfx
3877 (name "openttd-opensfx")
3883 "https://binaries.openttd.org/extra/opensfx/"
3884 version "/opensfx-" version "-source.tar.gz"))
3887 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
3888 (build-system gnu-build-system)
3890 `(("catcodec" ,catcodec)
3891 ("python" ,python-2)))
3894 (list (string-append "INSTALL_DIR=" %output
3895 "/share/games/openttd/baseset/opensfx"))
3897 (modify-phases %standard-phases
3898 (add-after 'unpack 'make-reproducible
3900 ;; Remove the time dependency of the installed tarball by setting
3901 ;; the modification times if its members to 0.
3902 (substitute* "scripts/Makefile.def"
3903 (("-cf") " --mtime=@0 -cf"))
3905 (delete 'configure))))
3906 (home-page "http://dev.openttdcoop.org/projects/opensfx")
3907 (synopsis "Base sounds for OpenTTD")
3908 (description "OpenSFX is a set of free base sounds for OpenTTD which make
3909 it possible to play OpenTTD without requiring the proprietary sound files from
3910 the original Transport Tycoon Deluxe.")
3911 (license license:cc-sampling-plus-1.0)))
3913 (define openttd-openmsx
3915 (name "openttd-openmsx")
3921 "https://binaries.openttd.org/extra/openmsx/"
3922 version "/openmsx-" version "-source.tar.gz"))
3925 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
3926 (build-system gnu-build-system)
3928 `(("python" ,python-2)))
3931 (list (string-append "INSTALL_DIR=" %output
3932 "/share/games/openttd/baseset"))
3934 (modify-phases %standard-phases
3936 (add-after 'install 'post-install
3937 ;; Rename openmsx-version to openmsx
3938 (lambda* (#:key outputs #:allow-other-keys)
3939 (let ((install-directory (string-append (assoc-ref outputs "out")
3940 "/share/games/openttd/baseset")))
3941 (rename-file (string-append install-directory "/openmsx-" ,version)
3942 (string-append install-directory "/openmsx"))
3944 (home-page "http://dev.openttdcoop.org/projects/openmsx")
3945 (synopsis "Music set for OpenTTD")
3946 (description "OpenMSX is a music set for OpenTTD which makes it possible
3947 to play OpenTTD without requiring the proprietary music from the original
3948 Transport Tycoon Deluxe.")
3949 (license license:gpl2)))
3951 (define-public openttd
3953 (inherit openttd-engine)
3957 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
3959 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
3961 `(modify-phases ,phases
3962 (add-after 'install 'install-data
3963 (lambda* (#:key inputs outputs #:allow-other-keys)
3966 (copy-recursively (assoc-ref inputs input)
3967 (assoc-ref outputs "out")))
3968 (list "opengfx" "openmsx" "opensfx"))
3971 `(("timidity++" ,timidity++)
3972 ,@(package-inputs openttd-engine)))
3974 `(("opengfx" ,openttd-opengfx)
3975 ("openmsx" ,openttd-openmsx)
3976 ("opensfx" ,openttd-opensfx)
3977 ,@(package-native-inputs openttd-engine)))))
3979 (define openrct2-title-sequences
3981 (name "openrct2-title-sequences")
3986 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
3987 version "/title-sequence-v" version ".zip"))
3988 (file-name (string-append name "-" version ".zip"))
3991 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
3992 (build-system trivial-build-system)
3995 ("coreutils" ,coreutils)
3998 `(#:modules ((guix build utils))
4001 (use-modules (guix build utils))
4002 (let* ((out (assoc-ref %outputs "out"))
4003 (openrct2-title-sequences (string-append out
4004 "/share/openrct2/title-sequences"))
4005 (source (assoc-ref %build-inputs "source"))
4006 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4007 (copy-file source (string-append ,name "-" ,version ".zip"))
4008 (invoke unzip (string-append ,name "-" ,version ".zip"))
4009 (delete-file (string-append ,name "-" ,version ".zip"))
4010 (mkdir-p openrct2-title-sequences)
4011 (copy-recursively "."
4012 openrct2-title-sequences)
4014 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4015 (synopsis "Title sequences for OpenRCT2")
4017 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4018 (license license:gpl3+)))
4020 (define openrct2-objects
4022 (name "openrct2-objects")
4027 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4028 version "/objects.zip"))
4029 (file-name (string-append name "-" version ".zip"))
4031 (base32 "02apb8h553m7d6jvysgb1zahvxc1yzyygfca2iclb21b3fhpsas4"))))
4032 (build-system trivial-build-system)
4035 ("coreutils" ,coreutils)
4038 `(#:modules ((guix build utils))
4041 (use-modules (guix build utils))
4042 (let* ((out (assoc-ref %outputs "out"))
4043 (openrct2-objects (string-append out
4044 "/share/openrct2/objects"))
4045 (source (assoc-ref %build-inputs "source"))
4046 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4047 (copy-file source (string-append ,name "-" ,version ".zip"))
4048 (invoke unzip (string-append ,name "-" ,version ".zip"))
4049 (delete-file (string-append ,name "-" ,version ".zip"))
4050 (mkdir-p openrct2-objects)
4051 (copy-recursively "."
4054 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4055 (synopsis "Objects for OpenRCT2")
4057 "openrct2-objects is a set of objects for OpenRCT2.")
4058 (license license:gpl3+)))
4060 (define-public openrct2
4068 (url "https://github.com/OpenRCT2/OpenRCT2")
4069 (commit (string-append "v" version))))
4070 (file-name (git-file-name name version))
4072 (base32 "1vikbkg3wh5ngzdfilb6irbh6nqinf138qpdz8wz9izlvl8s36k4"))))
4073 (build-system cmake-build-system)
4075 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4076 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4077 #:tests? #f ; tests require network access
4079 (modify-phases %standard-phases
4080 (add-after 'unpack 'fix-usr-share-paths&add-data
4081 (lambda* (#:key inputs outputs #:allow-other-keys)
4082 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4083 (objects (assoc-ref inputs "openrct2-objects")))
4084 ;; Fix some references to /usr/share.
4085 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4087 (string-append (assoc-ref %outputs "out") "/share")))
4089 (string-append titles "/share/openrct2/title-sequences")
4092 (string-append objects "/share/openrct2/objects")
4094 (add-before 'configure 'get-rid-of-errors
4096 ;; Don't treat warnings as errors.
4097 (substitute* "CMakeLists.txt"
4100 (inputs `(("curl" ,curl)
4101 ("fontconfig" ,fontconfig)
4102 ("freetype" ,freetype)
4104 ("jansson" ,jansson)
4108 ("openrct2-objects" ,openrct2-objects)
4109 ("openrct2-title-sequences" ,openrct2-title-sequences)
4110 ("openssl" ,openssl)
4112 ("speexdsp" ,speexdsp)
4115 `(("pkg-config" ,pkg-config)))
4116 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4117 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4118 (description "OpenRCT2 is a free software re-implementation of
4119 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4120 maintaining an amusement park containing attractions, shops and facilities.
4122 Note that this package does @emph{not} provide the game assets (sounds,
4124 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4125 ;; regarding assets.
4126 (license license:gpl3+)))
4128 (define-public pinball
4133 (origin (method url-fetch)
4134 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4135 "pinball-" version "/"
4136 "pinball-" version ".tar.gz"))
4139 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4140 (patches (search-patches "pinball-const-fix.patch"
4141 "pinball-cstddef.patch"
4142 "pinball-missing-separators.patch"
4143 "pinball-src-deps.patch"
4144 "pinball-system-ltdl.patch"))))
4145 (build-system gnu-build-system)
4150 ("sdl-image" ,sdl-image)
4151 ("sdl-mixer" ,sdl-mixer)))
4154 (list (string-append "CPPFLAGS=-I"
4155 (assoc-ref %build-inputs "sdl-image")
4157 (assoc-ref %build-inputs "sdl-mixer")
4159 (home-page "http://pinball.sourceforge.net")
4160 (synopsis "Pinball simulator")
4161 (description "The Emilia Pinball Project is a pinball simulator. There
4162 are only two levels to play with, but they are very addictive.")
4163 (license license:gpl2)))
4165 (define-public pioneers
4171 (uri (string-append "http://downloads.sourceforge.net/pio/"
4172 "pioneers-" version ".tar.gz"))
4175 "037gdiiw690jw3wd1s9lxmkqx0caxyk0b4drpm7i9p28gig43q9y"))))
4176 (build-system gnu-build-system)
4177 (inputs `(("avahi" ,avahi)
4179 ("librsvg" ,librsvg)))
4180 (native-inputs `(("intltool" ,intltool)
4181 ("itstool" ,itstool)
4182 ("libxml2" ,libxml2)
4183 ("pkg-config" ,pkg-config)))
4184 (synopsis "Board game inspired by The Settlers of Catan")
4185 (description "Pioneers is an emulation of the board game The Settlers of
4186 Catan. It can be played on a local network, on the internet, and with AI
4188 (home-page "http://pio.sourceforge.net/")
4189 (license license:gpl2+)))
4191 (define-public einstein
4197 (uri (string-append "mirror://debian/pool/main/e/"
4198 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4201 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4202 (patches (search-patches "einstein-build.patch"))))
4203 (build-system gnu-build-system)
4205 `(("freetype" ,freetype)
4206 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4209 `(("font-dejavu" ,font-dejavu)))
4211 `(#:tests? #f ; no check target
4213 (modify-phases %standard-phases
4215 (lambda* (#:key outputs inputs #:allow-other-keys)
4216 (let ((out (assoc-ref outputs "out"))
4217 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4218 "/share/fonts/truetype/DejaVuSans.ttf")))
4219 (substitute* "Makefile"
4220 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4221 ;; The patch above registers a free font for use by the binary,
4222 ;; but the font is copied during the compile phase into a
4223 ;; resources file, so we need to make the ttf file available.
4224 (symlink dejavu "res/DejaVuSans.ttf")
4226 (synopsis "Logic puzzle game")
4227 (description "The goal of this logic game is to open all cards in a 6x6
4228 grid, using a number of hints as to their relative position. The game idea
4229 is attributed to Albert Einstein.")
4230 ;; The original home page has disappeared.
4231 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4232 "http://games.flowix.com/en/index.html"))
4233 ;; License according to
4234 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4235 ;; The source code is a DFSG-sanitized tarball and does not contain any
4236 ;; license information.
4237 (license license:gpl3+)))
4239 (define-public powwow
4246 "https://www.hoopajoo.net/static/projects/powwow-"
4250 "10rjl63hmf62qslyhzqrbw3i2zf09dgxv65avhj0iiz0m4pbc9wy"))))
4252 `(("ncurses" ,ncurses)))
4253 (build-system gnu-build-system)
4254 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4255 (synopsis "MUD and telnet client")
4257 "POWWOW is a client software which can be used for telnet as well as for
4258 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4259 the chat server psyced with the specific config located at
4260 http://lavachat.symlynx.com/unix/")
4261 (license license:gpl2+)))
4263 (define-public red-eclipse
4264 (let ((release "2.0.0")
4267 (name "red-eclipse")
4268 (version (if (zero? revision)
4270 (string-append release "-"
4271 (number->string revision))))
4276 (url "https://github.com/redeclipse/base")
4277 (commit (string-append "v" release))
4278 (recursive? #t))) ; for game data
4279 (file-name (git-file-name name version))
4281 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4282 (modules '((guix build utils)))
4284 ;; Remove proprietary libraries and other pre-compiled binaries.
4286 (delete-file-recursively "bin")
4288 (build-system gnu-build-system)
4290 `(#:tests? #f ; no check target
4291 #:make-flags (list "CC=gcc" "-Csrc"
4292 (string-append "INSTDIR="
4293 (assoc-ref %outputs "out") "/bin")
4294 (string-append "prefix="
4295 (assoc-ref %outputs "out")))
4297 (modify-phases %standard-phases
4298 (add-after 'unpack 'add-store-data-package-path-as-default
4299 (lambda* (#:key outputs #:allow-other-keys)
4300 (substitute* "src/engine/server.cpp"
4301 (("data = \"data\"")
4302 (string-append "data = \""
4303 (assoc-ref outputs "out")
4304 "/share/redeclipse/data\"")))
4306 (delete 'configure) ; no configure script
4307 (add-after 'set-paths 'set-sdl-paths
4308 (lambda* (#:key inputs #:allow-other-keys)
4310 (string-append (assoc-ref inputs "sdl-union")
4312 (or (getenv "CPATH") "")))
4314 (add-after 'install 'copy-data
4315 (lambda* (#:key outputs #:allow-other-keys)
4316 (let ((out (assoc-ref outputs "out")))
4317 (copy-recursively "config"
4318 (string-append out "/config"))
4319 (copy-file "doc/examples/servinit.cfg"
4320 (string-append out "/config/servinit.cfg"))
4321 (copy-recursively "data"
4322 (string-append out "/share/redeclipse/data"))
4323 (mkdir-p (string-append out "/lib/redeclipse"))
4324 (symlink (string-append out "/share/redeclipse/data")
4325 (string-append out "/lib/redeclipse/data")))
4327 (add-after 'copy-data 'wrap-program
4328 (lambda* (#:key inputs outputs #:allow-other-keys)
4329 (let* ((out (assoc-ref outputs "out"))
4330 (bin (string-append out "/bin")))
4331 (with-directory-excursion bin
4332 (rename-file "redeclipse_linux"
4333 ".redeclipse_linux-real")
4334 (rename-file "redeclipse_server_linux"
4335 ".redeclipse_server_linux-real")
4336 (call-with-output-file "redeclipse_linux"
4338 (format port "#!~a/bin/sh
4339 # Run the thing from its home, otherwise it just bails out.
4341 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4342 (assoc-ref inputs "bash") ;implicit input
4344 (string-append bin))))
4345 (call-with-output-file "redeclipse_server_linux"
4347 (format port "#!~a/bin/sh
4348 # Run the thing from its home, otherwise it just bails out.
4350 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4351 (assoc-ref inputs "bash") ;implicit input
4353 (string-append bin))))
4354 (chmod "redeclipse_linux" #o555)
4355 (chmod "redeclipse_server_linux" #o555)))
4358 `(("pkg-config" ,pkg-config)))
4361 ("freetype" ,freetype)
4363 ("sdl-union" ,(sdl-union (list sdl2
4366 (home-page "https://redeclipse.net/")
4367 (synopsis "Arena shooter derived from the Cube 2 engine")
4369 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4370 Offering an innovative parkour system and distinct but all potent weapons,
4371 Red Eclipse provides fast paced and accessible gameplay.")
4372 ;; The engine is under Zlib; data files are covered by the other
4373 ;; licenses. More details at file:///doc/all-licenses.txt.
4374 (license (list license:expat
4380 license:public-domain
4381 license:silofl1.1)))))
4383 (define-public grue-hunter
4385 (name "grue-hunter")
4389 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4392 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4393 (build-system trivial-build-system) ; no Makefile.PL
4394 (arguments `(#:modules ((guix build utils))
4397 (use-modules (guix build utils))
4398 (use-modules (srfi srfi-1))
4400 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4401 (perl (string-append (assoc-ref %build-inputs
4404 (gzip (string-append (assoc-ref %build-inputs
4407 (tar (string-append (assoc-ref %build-inputs
4410 (out (assoc-ref %outputs "out"))
4411 (bin (string-append out "/bin"))
4412 (doc (string-append out
4413 "/share/doc/grue-hunter")))
4414 (copy-file tarball "grue-hunter.tar.gz")
4415 (invoke gzip "-d" "grue-hunter.tar.gz")
4416 (invoke tar "xvf" "grue-hunter.tar")
4419 (copy-file "grue-hunter/gh.pl"
4420 (string-append bin "/grue-hunter"))
4421 (patch-shebang (string-append bin "/grue-hunter")
4424 (install-file "grue-hunter/AGPLv3.txt" doc)
4427 (inputs `(("perl" ,perl)
4430 ("tarball" ,source)))
4431 (home-page "https://jxself.org/grue-hunter.shtml")
4432 (synopsis "Text adventure game")
4434 "Grue Hunter is a text adventure game written in Perl. You must make
4435 your way through an underground cave system in search of the Grue. Can you
4436 capture it and get out alive?")
4437 (license license:agpl3+)))
4439 (define-public lierolibre
4445 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4446 version "/+download/lierolibre-"
4450 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4452 (search-patches "lierolibre-check-unaligned-access.patch"
4453 "lierolibre-try-building-other-arch.patch"
4454 "lierolibre-remove-arch-warning.patch"
4455 "lierolibre-newer-libconfig.patch"
4456 "lierolibre-is-free-software.patch"))
4457 (modules '((guix build utils)))
4460 ;; Delete pre-compiled files.
4461 (delete-file "data/LIERO.CHR")
4462 (delete-file "data/LIERO.SND")
4464 (build-system gnu-build-system)
4466 `(("imagemagick" ,imagemagick)
4467 ("pkg-config" ,pkg-config)
4468 ("util-linux" ,util-linux)
4472 ("libconfig" ,libconfig)
4473 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4475 (home-page "https://gitlab.com/lierolibre/lierolibre")
4476 (synopsis "Old-school earthworm action game")
4478 "lierolibre is an earthworm action game where you fight another player
4479 (or the computer) underground using a wide array of weapons.
4483 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4484 and Game of Tag, plus AI-players without true intelligence!
4485 @item Dat nostalgia.
4486 @item Extensions via a hidden F1 menu:
4489 @item Game controller support
4490 @item Powerlevel palettes
4492 @item Ability to write game variables to plain text files.
4493 @item Ability to load game variables from both EXE and plain text files.
4494 @item Scripts to extract and repack graphics, sounds and levels.
4497 To switch between different window sizes, use F6, F7 and F8, to switch to
4498 fullscreen, use F5 or Alt+Enter.")
4499 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4500 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4502 (define-public tennix
4510 (url "https://repo.or.cz/tennix.git")
4511 (commit (string-append "tennix-" version))))
4512 (file-name (git-file-name name version))
4514 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4515 ;; Remove non-free images.
4516 (modules '((guix build utils)))
4519 (for-each delete-file
4520 '("data/loc_training_camp.png"
4521 "data/loc_austrian_open.png"
4522 "data/loc_olympic_green_tennis.png"))
4524 (build-system gnu-build-system)
4526 `(#:tests? #f ;no test
4528 (modify-phases %standard-phases
4529 (add-after 'unpack 'fix-include
4531 (substitute* '("src/graphics.h" "src/sound.h")
4532 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
4533 (string-append "#include \"SDL/" header "\"")))
4534 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
4535 (("#include <SDL.h>") "#include <SDL/SDL.h>")
4536 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
4538 (add-after 'unpack 'locate-install
4539 ;; Build process cannot expand "$(INSTALL)" in Makefile.
4541 (substitute* "makefile"
4542 (("^CONFIGURE_OUTPUT :=.*" all)
4543 (string-append "INSTALL := install -c\n" all)))
4546 ;; The "configure" script is picky about the arguments it
4547 ;; gets. Call it ourselves.
4549 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
4551 `(("which" ,which)))
4553 `(("python" ,python-wrapper)
4554 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
4555 (home-page "http://icculus.org/tennix/")
4556 (synopsis "Play tennis against the computer or a friend")
4557 (description "Tennix is a 2D tennis game. You can play against the
4558 computer or against another player using the keyboard. The game runs
4559 in-window at 640x480 resolution or fullscreen.")
4560 ;; Project is licensed under GPL2+ terms. It includes images
4561 ;; released under Public Domain terms, and SDL_rotozoom, released
4562 ;; under LGPL2.1 terms.
4563 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
4565 (define-public warzone2100
4567 (name "warzone2100")
4572 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
4574 "/warzone2100_src.tar.xz"))
4576 (base32 "0g4qwi9zw0s4pfgrz3fxhargsj3405rbrh9zy3b2j3arzss2h0gy"))
4577 (modules '((guix build utils)))
4580 (with-directory-excursion "3rdparty"
4582 delete-file-recursively
4587 (build-system cmake-build-system)
4589 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
4590 "-DENABLE_DISCORD=off")
4591 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
4593 (modify-phases %standard-phases
4594 (add-after 'unpack 'fix-utfcpp-include
4596 (substitute* "lib/framework/wzstring.cpp"
4597 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
4599 (add-after 'unpack 'link-tests-with-qt
4601 (substitute* "tests/Makefile.am"
4602 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
4603 (string-append prefix "$(QT5_LIBS) ")))
4605 (add-after 'unpack 'fix-ivis-linktest
4607 (substitute* "tests/ivis_linktest.cpp"
4608 (("iV_DrawTextRotated.*;")
4609 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
4610 "100, 100, 0.0f, font_regular);")))
4612 (native-inputs `(("asciidoc" ,asciidoc)
4613 ("asciidoctor" ,ruby-asciidoctor)
4614 ("gettext" ,gettext-minimal)
4615 ("pkg-config" ,pkg-config)
4617 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
4619 (inputs `(("curl" ,curl)
4620 ("fontconfig" ,fontconfig)
4621 ("freetype" ,freetype)
4623 ("harfbuzz" ,harfbuzz)
4624 ("libtheora" ,libtheora)
4625 ("libvorbis" ,libvorbis)
4626 ("libxrandr" ,libxrandr)
4627 ("libsodium" ,libsodium)
4628 ("miniupnpc" ,miniupnpc)
4632 ("qtscript" ,qtscript)
4633 ("openssl" ,openssl)
4635 ("utfcpp" ,utfcpp)))
4636 (home-page "https://wz2100.net")
4637 (synopsis "3D Real-time strategy and real-time tactics game")
4639 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
4640 modes. An extensive tech tree with over 400 different technologies, combined
4641 with the unit design system, allows for a wide variety of possible units and
4643 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
4644 (license (list license:bsd-3
4649 license:lgpl2.1+))))
4651 (define-public widelands
4658 (uri (string-append "https://launchpad.net/widelands/"
4659 "build" version "/build" version "/+download/"
4660 "widelands-build" version ".tar.bz2"))
4662 (base32 "1cmwfwk7j6yi2pwmm4rm57s23sdzasqf53nx6567sdagqyc4sn9q"))
4663 (modules '((guix build utils)))
4666 (delete-file-recursively "src/third_party/minizip")
4669 ;; Use system Minizip. Patch is provided by Debian, and discussed
4670 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
4671 (search-patches "widelands-system-wide_minizip.patch"))))
4672 (build-system cmake-build-system)
4675 (let* ((out (assoc-ref %outputs "out"))
4676 (share (string-append out "/share")))
4677 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
4678 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
4679 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
4680 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
4681 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
4682 ;; type. When used, no game data is installed!
4683 "-DCMAKE_BUILD_TYPE=Release"))
4685 (modify-phases %standard-phases
4686 (add-after 'unpack 'install-desktop-file-and-icons
4687 (lambda* (#:key inputs outputs #:allow-other-keys)
4688 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
4689 (applications (string-append share "/applications"))
4690 (icons (string-append share "/icons/hicolor")))
4691 ;; Move desktop entry.
4692 (mkdir-p applications)
4693 (copy-file "debian/org.widelands.widelands.desktop"
4694 (string-append applications "/widelands.desktop"))
4696 (for-each (lambda (size)
4697 (let* ((dim (string-append size "x" size))
4698 (apps (string-append icons "/" dim "/apps")))
4700 (copy-file (string-append "data/images/logos"
4701 "/wl-ico-" size ".png")
4702 (string-append apps "/widelands.png"))))
4703 '("16" "32" "48" "64" "128"))
4705 (add-after 'unpack 'unbundle-fonts
4706 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
4707 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
4708 (lambda* (#:key inputs #:allow-other-keys)
4709 (with-directory-excursion "data/i18n/fonts"
4710 (for-each (lambda (font)
4711 (delete-file-recursively font)
4712 (symlink (string-append (assoc-ref inputs font)
4713 "/share/fonts/truetype")
4715 '("DejaVu" "MicroHei")))
4718 `(("gettext" ,gettext-minimal)
4719 ("python" ,python-wrapper)))
4725 ("minizip" ,minizip)
4726 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
4728 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
4729 ("DejaVu" ,font-dejavu)
4730 ("MicroHei" ,font-wqy-microhei)))
4731 (home-page "https://www.widelands.org/")
4732 (synopsis "Fantasy real-time strategy game")
4734 "In Widelands, you are the regent of a small clan. You start out with
4735 nothing but your headquarters, where all your resources are stored.
4737 In the course of the game, you will build an ever growing settlement. Every
4738 member of your clan will do his or her part to produce more resources---wood,
4739 food, iron, gold and more---to further this growth. The economic network is
4740 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
4743 As you are not alone in the world, you will meet other clans sooner or later.
4744 Some of them may be friendly and you may eventually trade with them. However,
4745 if you want to rule the world, you will have to train soldiers and fight.
4747 Widelands offers single-player mode with different campaigns; the campaigns
4748 all tell stories of tribes and their struggle in the Widelands universe!
4749 However, settling really starts when you unite with friends over the Internet
4750 or LAN to build up new empires together---or to crush each other in the dusts
4751 of war. Widelands also offers an Artificial Intelligence to challenge you.")
4752 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
4753 ;; different licenses.
4754 (license (list license:gpl2+
4755 license:expat ;src/third_party/eris
4756 license:silofl1.1 ;Widelands.ttf
4757 license:cc-by-sa3.0)))) ;some music files
4759 (define-public starfighter
4761 (name "starfighter")
4766 "https://github.com/pr-starfighter/starfighter/releases"
4767 "/download/v" version "/starfighter-"
4768 version "-src.tar.gz"))
4771 "0bmrid26z7il42lczfs3j3cv671az9fxi2wkf0s22smmzkhcnnrz"))))
4772 (build-system gnu-build-system)
4774 `(("pkg-config" ,pkg-config)))
4778 ("sdl2-image" ,sdl2-image)
4779 ("sdl2-mixer" ,sdl2-mixer)
4780 ("sdl2-ttf" ,sdl2-ttf)))
4781 (home-page "https://pr-starfighter.github.io/")
4782 (synopsis "2D scrolling shooter game")
4784 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
4785 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
4786 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
4787 way, you will encounter new foes, make new allies, and assist local rebels
4788 in strikes against the evil corporation.")
4789 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
4790 (license (list license:gpl3+
4794 license:public-domain))))
4796 (define-public chromium-bsu
4798 (name "chromium-bsu")
4799 (version "0.9.16.1")
4802 (uri (string-append "mirror://sourceforge/chromium-bsu"
4803 "/Chromium B.S.U. source code/"
4804 "chromium-bsu-" version ".tar.gz"))
4807 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
4808 (build-system gnu-build-system)
4809 (native-inputs `(("pkg-config" ,pkg-config)))
4810 (inputs `(("gettext" ,gettext-minimal)
4812 ("quesoglc" ,quesoglc)
4813 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
4814 (home-page "http://chromium-bsu.sourceforge.net/")
4815 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
4817 "In this game you are the captain of the cargo ship Chromium B.S.U. and
4818 are responsible for delivering supplies to the troops on the front line. Your
4819 ship has a small fleet of robotic fighters which you control from the relative
4820 safety of the Chromium vessel.")
4821 ;; Clarified Artistic License for everything but sound, which is covered
4822 ;; by the Expat License.
4823 (license (list license:clarified-artistic license:expat))))
4825 (define-public tuxpaint
4828 (version "0.9.23") ;keep VER_DATE below in sync
4832 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
4833 version "/tuxpaint-" version ".tar.gz"))
4836 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
4837 (modules '((guix build utils)))
4840 ;; Remove win32 directory which contains binary dll's and the
4841 ;; deprecated visualc directory.
4842 (for-each delete-file-recursively '("win32" "visualc"))
4843 (substitute* "Makefile"
4844 ;; Do not rely on $(GPERF) being an absolute file name
4845 (("\\[ -x \\$\\(GPERF\\) \\]")
4846 "$(GPERF) --version >/dev/null 2>&1"))
4848 (patches (search-patches "tuxpaint-stamps-path.patch"))))
4849 (build-system gnu-build-system)
4852 ("pkg-config" ,pkg-config)))
4855 ("fribidi" ,fribidi)
4856 ("gettext" ,gettext-minimal)
4858 ("librsvg" ,librsvg)
4859 ("libpaper" ,libpaper)
4861 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
4862 ;; TODO: Use system fonts rather than those in data/fonts
4864 `(#:make-flags `("VER_DATE=2018-09-02"
4865 "GPERF=gperf" "CC=gcc"
4866 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
4867 ,(string-append "PREFIX=" %output)
4868 "KDE_PREFIX=$(PREFIX)/share/applications"
4869 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
4870 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
4871 #:parallel-build? #f ;fails on some systems
4872 #:tests? #f ;No tests
4873 #:phases (modify-phases %standard-phases
4874 (delete 'configure) ;no configure phase
4875 (add-before 'install 'no-sys-cache
4876 (lambda _ ;do not rebuild system conf cache
4877 (substitute* "Makefile"
4878 (("kbuildsycoca4") ""))
4880 (add-after 'install 'fix-import
4881 (lambda* (#:key inputs outputs #:allow-other-keys)
4882 (let* ((out (assoc-ref outputs "out"))
4883 (net (assoc-ref inputs "netpbm"))
4884 (tpi (string-append out "/bin/tuxpaint-import")))
4886 ;; Point to installation prefix so that the default
4887 ;; configure file is found.
4888 (("/usr/local") out))
4889 ;; tuxpaint-import uses a bunch of programs from
4890 ;; netpbm, so make sure it knows where those are
4893 (,(string-append net "/bin"))))))))))
4894 (native-search-paths
4895 (list (search-path-specification
4896 (variable "TUXPAINT_STAMPS_PATH")
4897 (files '("share/tuxpaint/stamps")))))
4898 (home-page "http://www.tuxpaint.org")
4899 (synopsis "Drawing software for children")
4901 "Tux Paint is a free drawing program designed for young children (kids
4902 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
4903 and an encouraging cartoon mascot who helps guide children as they use the
4904 program. It provides a blank canvas and a variety of drawing tools to help
4905 your child be creative.")
4906 (license license:gpl2+)))
4908 (define-public tuxpaint-stamps
4910 (name "tuxpaint-stamps")
4911 (version "2018.09.01")
4915 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
4916 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
4917 "/tuxpaint-stamps-" version ".tar.gz"))
4920 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
4921 (build-system trivial-build-system)
4926 `(#:modules ((guix build utils))
4928 (use-modules (guix build utils))
4931 (assoc-ref %build-inputs "tar") "/bin" ":"
4932 (assoc-ref %build-inputs "gzip") "/bin"))
4933 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
4934 (chdir (string-append ,name "-" ,version))
4935 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
4937 (copy-recursively "stamps" dir))
4939 (home-page (package-home-page tuxpaint))
4940 (synopsis "Stamp images for Tux Paint")
4942 "This package contains a set of \"Rubber Stamp\" images which can be used
4943 with the \"Stamp\" tool within Tux Paint.")
4944 (license license:gpl2+)))
4946 (define-public tuxpaint-config
4948 (name "tuxpaint-config")
4949 (version "0.0.14") ;keep VER_DATE below in sync
4953 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
4954 version "/tuxpaint-config-" version ".tar.gz"))
4957 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
4958 (build-system gnu-build-system)
4960 `(("gettext" ,gettext-minimal)))
4963 ("libpaper" ,libpaper)
4964 ;; TODO: Should the following be propagated by fltk?
4969 `(#:make-flags `("VER_DATE=2018-09-01"
4970 "CONFDIR=/etc/tuxpaint" ;don't write to store
4971 ,(string-append "PREFIX=" %output)
4972 "GNOME_PREFIX=$(PREFIX)")
4973 #:parallel-build? #f ;race conditions
4974 #:tests? #f ;no tests
4975 #:phases (modify-phases %standard-phases
4976 (delete 'configure) ;no configure phase
4977 (add-before 'install 'gzip-no-name
4979 (substitute* "Makefile"
4980 ;; tuxpaint-config compresses its own documentation;
4981 ;; make sure it uses flags for reproducibility.
4982 (("gzip") "gzip --no-name"))))
4983 (add-before 'install 'make-install-dirs
4984 (lambda* (#:key outputs #:allow-other-keys)
4985 (let ((out (assoc-ref outputs "out")))
4986 (mkdir-p (string-append out "/bin"))
4988 (home-page (package-home-page tuxpaint))
4989 (synopsis "Configure Tux Paint")
4991 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
4992 (license license:gpl2))) ;no "or later" present
4994 (define-public supertux
5000 (uri (string-append "https://github.com/SuperTux/supertux/"
5001 "releases/download/v" version "/SuperTux-v"
5002 version "-Source.tar.gz"))
5003 (file-name (string-append name "-" version ".tar.gz"))
5006 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5008 (search-patches "supertux-unbundle-squirrel.patch"))))
5011 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5012 "-DUSE_SYSTEM_PHYSFS=ON")
5014 (modify-phases %standard-phases
5015 (add-after 'unpack 'patch-squirrel-path
5016 (lambda* (#:key inputs #:allow-other-keys)
5017 (let ((squirrel (assoc-ref inputs "squirrel")))
5018 (substitute* "CMakeLists.txt"
5019 (("set\\(SQUIRREL_PREFIX.*")
5020 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5021 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5022 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5023 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5025 (build-system cmake-build-system)
5026 (inputs `(("sdl2" ,sdl2)
5027 ("sdl2-image" ,sdl2-image)
5028 ("sdl2-mixer" ,sdl2-mixer)
5032 ("libvorbis" ,libvorbis)
5037 ("freetype" ,freetype)
5038 ("squirrel" ,squirrel)))
5040 `(("pkg-config" ,pkg-config)))
5041 (synopsis "2D platformer game")
5042 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5043 a style similar to the original Super Mario games.")
5044 (home-page "https://supertux.org/")
5045 (license license:gpl3+)))
5047 (define-public tintin++
5054 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5055 (string-drop-right version 1)
5056 "/tintin-" version ".tar.gz"))
5058 (base32 "11ylbp8ip7dwmh4gzb53z147pcfxkl3lwhyy8ngyn2zc634vdn65"))))
5060 `(("gnutls" ,gnutls)
5062 ("readline" ,readline)
5065 '(#:tests? #f ; no test suite
5067 (modify-phases %standard-phases
5068 ;; The source is in tt/src.
5069 (add-before 'configure 'chdir
5073 (build-system gnu-build-system)
5074 (home-page "https://tintin.mudhalla.net/")
5075 (synopsis "MUD client")
5077 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5078 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5079 options used by MUDs, as well as those required to login via telnet on
5080 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5081 (license license:gpl3+)))
5088 (origin (method git-fetch)
5090 (url "https://github.com/sgimenez/laby")
5091 (commit (string-append name "-" version))))
5092 (file-name (git-file-name name version))
5095 "12fq9hhrxpzgfinmj9ra9ckss9yficwdlrmgjvvsq7agvh3sgyl1"))
5096 (patches (search-patches "laby-make-install.patch"))))
5097 (build-system gnu-build-system)
5099 `(("lablgtk" ,lablgtk)
5101 ("ocaml-findlib" ,ocaml-findlib)
5102 ("ocamlbuild" ,ocamlbuild)))
5105 (modify-phases %standard-phases
5107 (add-before 'build 'allow-unsafe-strings
5108 ;; Fix a build failure with ocaml >=4.06.0.
5109 ;; See <https://github.com/sgimenez/laby/issues/53>.
5111 (setenv "OCAMLPARAM" "safe-string=0,_")
5113 (add-before 'build 'set-library-path
5114 (lambda* (#:key inputs #:allow-other-keys)
5115 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5116 (setenv "LD_LIBRARY_PATH"
5117 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5118 #:tests? #f ; no 'check' target
5120 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5121 (home-page "https://sgimenez.github.io/laby/")
5122 (synopsis "Programming game")
5123 (description "Learn programming, playing with ants and spider webs ;-)
5124 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5125 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5126 programmers may also add their own favorite language.")
5127 (license license:gpl3+)))
5129 (define-public bambam
5137 (url "https://github.com/porridge/bambam")
5138 (commit (string-append "v" version))))
5139 (file-name (git-file-name name version))
5141 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5142 (build-system python-build-system)
5144 `(#:tests? #f ; no tests
5146 (modify-phases %standard-phases
5147 (delete 'build) ; nothing to build
5149 (lambda* (#:key outputs #:allow-other-keys)
5150 (let* ((out (assoc-ref outputs "out"))
5151 (bin (string-append out "/bin"))
5152 (share (string-append out "/share")))
5154 (copy-file "bambam.py" (string-append bin "/bambam"))
5155 (install-file "bambam.6" (string-append share "/man/man6"))
5156 (copy-recursively "data" (string-append share "/bambam/data")))
5159 `(("python-pygame" ,python-pygame)))
5160 (home-page "https://github.com/porridge/bambam")
5161 (synopsis "Keyboard mashing and doodling game for babies")
5162 (description "Bambam is a simple baby keyboard (and gamepad) masher
5163 application that locks the keyboard and mouse and instead displays bright
5164 colors, pictures, and sounds.")
5165 (license license:gpl3+)))
5167 (define-public mrrescue
5174 "https://github.com/SimonLarsen/mrrescue/releases/"
5175 "download/" version "/mrrescue" version ".love"))
5176 (file-name (string-append name "-" version ".love"))
5179 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5180 (build-system trivial-build-system)
5182 `(#:modules ((guix build utils))
5185 (use-modules (guix build utils))
5186 (let* ((out (assoc-ref %outputs "out"))
5187 (script (string-append out "/bin/" ,name))
5188 (data (string-append out "/share/" ,name))
5189 (source (assoc-ref %build-inputs "source"))
5190 (unzip (string-append (assoc-ref %build-inputs "unzip")
5192 (patch (string-append (assoc-ref %build-inputs "patch")
5194 (bash (string-append (assoc-ref %build-inputs "bash")
5196 (love (string-append (assoc-ref %build-inputs "love")
5199 (mkdir-p (dirname script))
5200 (with-output-to-file script
5202 (format #t "#!~a~%" bash)
5203 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5204 (chmod script #o755)
5206 ;; The better way to package this game would be to install *only* the
5207 ;; script above, pointing to the unextracted .love file in the store.
5208 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5209 ;; Instead of extracting the .love file, patching it, and re-zipping
5210 ;; it to the store, simply point the script to the extracted patched
5211 ;; data directory directly.
5213 (with-directory-excursion data
5214 (invoke unzip source)
5215 (invoke patch "-p1" "-i"
5216 (assoc-ref %build-inputs "love-11.patch")))
5221 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5225 (home-page "https://tangramgames.dk/games/mrrescue")
5226 (synopsis "Arcade-style fire fighting game")
5228 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5229 civilians from burning buildings. The game features fast-paced fire
5230 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5231 throwing people around in pseudo-randomly generated buildings.")
5232 (license (list license:zlib ; for source code
5233 license:cc-by-sa3.0)))) ; for graphics and music assets
5235 (define-public hyperrogue
5239 ;; When updating this package, be sure to update the "hyperrogue-data"
5240 ;; origin in native-inputs.
5244 "https://www.roguetemple.com/z/hyper/hyperrogue"
5245 (string-join (string-split version #\.) "")
5249 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5250 (build-system gnu-build-system)
5252 `(#:tests? #f ; no check target
5253 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5254 "HYPERROGUE_USE_PNG=1")
5256 (modify-phases %standard-phases
5257 (add-after 'set-paths 'set-sdl-paths
5258 (lambda* (#:key inputs #:allow-other-keys)
5260 (string-append (or (getenv "CPATH") "") ":"
5261 (assoc-ref inputs "sdl-union")
5264 (lambda* (#:key inputs outputs #:allow-other-keys)
5265 (let* ((out (assoc-ref outputs "out"))
5266 (share-dir (string-append out "/share/hyperrogue"))
5267 (dejavu-dir (string-append
5268 (assoc-ref inputs "font-dejavu")
5269 "/share/fonts/truetype"))
5270 (dejavu-font "DejaVuSans-Bold.ttf")
5271 (music-file "hyperrogue-music.txt"))
5272 ;; Fix font and music paths.
5273 (substitute* "basegraph.cpp"
5275 (string-append dejavu-dir "/" dejavu-font)))
5276 (substitute* music-file
5278 (string-append share-dir "/sounds/")))
5279 (substitute* "sound.cpp"
5280 (("musicfile = \"\"")
5281 (string-append "musicfile = \""
5282 share-dir "/" music-file "\"")))
5283 ;; Disable build machine CPU optimizations and warnings treated
5285 (substitute* "Makefile"
5286 (("-march=native") "")
5290 (lambda* (#:key inputs outputs #:allow-other-keys)
5291 (let* ((out (assoc-ref outputs "out"))
5292 (bin (string-append out "/bin"))
5293 (share-dir (string-append out "/share/hyperrogue")))
5295 (install-file "hyperrogue" bin)
5296 (install-file "hyperrogue-music.txt" share-dir))
5298 (add-after 'install 'install-data
5299 (lambda* (#:key inputs outputs #:allow-other-keys)
5300 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5301 (out (assoc-ref outputs "out"))
5302 (sounds (string-append out "/share/hyperrogue/sounds"))
5303 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5304 ;; Extract media license information into sounds directory.
5305 (invoke unzip "-j" data
5308 (string-join (string-split ,version #\.) "")
5309 "/sounds/credits.txt") "-d" sounds)
5310 ;; Extract sounds and music into sounds directory.
5311 (invoke "unzip" "-j" data
5314 (string-join (string-split ,version #\.) "")
5315 "/*.ogg") "-d" sounds)))))))
5317 `(("hyperrogue-data"
5322 "https://www.roguetemple.com/z/hyper/hyperrogue"
5323 (string-join (string-split version #\.) "")
5327 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5330 `(("font-dejavu" ,font-dejavu)
5333 ("sdl-union" ,(sdl-union (list sdl
5337 (home-page "https://www.roguetemple.com/z/hyper/")
5338 (synopsis "Non-euclidean graphical rogue-like game")
5340 "HyperRogue is a game in which the player collects treasures and fights
5341 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5342 plane and not in euclidean space.
5344 In HyperRogue, the player can move through different parts of the world, which
5345 are home to particular creatures and may be subject to their own rules of
5348 While the game can use ASCII characters to display the the classical rogue
5349 symbols, it still needs graphics to render the non-euclidean world.")
5350 (license (list license:bsd-3 ; glew.c, mtrand.*
5351 license:cc-by-sa3.0 ; music
5352 license:cc-by-sa4.0 ; sounds
5354 license:public-domain ; direntx.*, some sounds
5355 license:zlib ; savepng.*
5356 license:gpl2+)))) ; remaining files
5358 (define-public kobodeluxe
5364 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5365 version ".tar.bz2"))
5368 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5369 (patches (search-patches
5370 "kobodeluxe-const-charp-conversion.patch"
5371 "kobodeluxe-enemies-pipe-decl.patch"
5372 "kobodeluxe-graphics-window-signed-char.patch"
5373 "kobodeluxe-manpage-minus-not-hyphen.patch"
5374 "kobodeluxe-midicon-segmentation-fault.patch"
5375 "kobodeluxe-paths.patch"))))
5376 (build-system gnu-build-system)
5379 (list (string-append "CPPFLAGS=-I"
5380 (assoc-ref %build-inputs "sdl-union")
5384 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5385 (synopsis "Shooter with space station destruction")
5387 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5388 for Un*x systems with X11.")
5389 (home-page "http://olofson.net/kobodl/")
5390 (license license:gpl2+)))
5392 (define-public freeciv
5399 (uri (list (string-append
5400 "http://files.freeciv.org/stable/freeciv-"
5403 "mirror://sourceforge/freeciv/Freeciv%20"
5404 (version-major+minor version) "/" version
5405 "/freeciv-" version ".tar.bz2")))
5407 (base32 "13vc2xg1cf19rhbnr7k38b56b2hdapqymq5vma1l69kn7hyyz0b1"))))
5408 (build-system gnu-build-system)
5411 ("cyrus-sasl" ,cyrus-sasl)
5413 ("sdl-mixer" ,sdl-mixer)
5416 `(("pkg-config" ,pkg-config)))
5417 (home-page "http://www.freeciv.org/")
5418 (synopsis "Turn-based empire building strategy game")
5419 (description "Freeciv is a turn-based empire building strategy game
5420 inspired by the history of human civilization. The game commences in
5421 prehistory and your mission is to lead your tribe from the Stone Age
5422 into the Space Age.")
5423 (license license:gpl2+)))
5425 (define-public no-more-secrets
5427 (name "no-more-secrets")
5433 (url "https://github.com/bartobri/no-more-secrets")
5434 (commit (string-append "v" version))))
5435 (file-name (git-file-name name version))
5437 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5438 (build-system gnu-build-system)
5441 #:make-flags (list "CC=gcc" "all-ncurses"
5442 (string-append "prefix="
5443 (assoc-ref %outputs "out")))
5445 (modify-phases %standard-phases
5446 (delete 'configure))))
5448 `(("ncurses" ,ncurses)))
5449 (home-page "https://github.com/bartobri/no-more-secrets")
5450 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5452 "@code{No More Secrets} provides a command line tool called \"nms\"
5453 that recreates the famous data decryption effect seen on screen in the 1992
5456 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5457 it will apply the hollywood effect, initially showing encrypted data, then
5458 starting a decryption sequence to reveal the original plaintext characters.")
5459 (license license:expat)))
5461 (define-public megaglest-data
5463 (name "megaglest-data")
5469 "https://github.com/MegaGlest/megaglest-data"
5470 "/releases/download/" version "/megaglest-data-"
5474 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5475 (build-system cmake-build-system)
5478 (home-page "https://megaglest.org/")
5479 (synopsis "Data files for MegaGlest")
5480 (description "This package contains the data files required for MegaGlest.")
5481 (license license:cc-by-sa3.0)))
5483 (define-public megaglest
5491 "https://github.com/MegaGlest/megaglest-source"
5492 "/releases/download/" version "/megaglest-source-"
5496 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5497 (build-system cmake-build-system)
5500 ("fontconfig" ,fontconfig)
5503 ("libjpeg-turbo" ,libjpeg-turbo)
5504 ("megaglest-data" ,megaglest-data)
5506 ("miniupnpc" ,miniupnpc)
5508 ("libircclient" ,libircclient)
5510 ("libvorbis" ,libvorbis)
5513 ("wxwidgets" ,wxwidgets)))
5515 `(("cppunit" ,cppunit)
5516 ("pkg-config" ,pkg-config)))
5519 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5520 (assoc-ref %build-inputs "megaglest-data")
5522 "-DBUILD_MEGAGLEST_TESTS=ON")
5524 (modify-phases %standard-phases
5525 (add-after 'unpack 'fix-ini-search-path
5526 (lambda* (#:key outputs #:allow-other-keys)
5527 (substitute* "source/glest_game/global/config.cpp"
5528 (("/usr/share/megaglest/")
5529 (string-append (assoc-ref outputs "out")
5530 "/share/megaglest/"))))))
5531 #:test-target "megaglest_tests"))
5532 (home-page "https://megaglest.org/")
5533 (synopsis "3D real-time strategy (RTS) game")
5534 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5535 game, where you control the armies of one of seven different factions: Tech,
5536 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5537 (license license:gpl2+)))
5539 (define-public freegish
5540 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5544 (version (string-append "0-" revision "." (string-take commit 9)))
5548 (url "https://github.com/freegish/freegish")
5550 (file-name (git-file-name name version))
5553 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
5554 (modules '((guix build utils)))
5555 ;; The audio files in the "music" directory are licensed under
5556 ;; CC-BY-NC, so we delete them.
5559 (delete-file-recursively "music")
5561 (build-system cmake-build-system)
5563 `(#:tests? #f ; no tests included
5565 (list "-DCMAKE_INSTALL_FHS=ON")
5567 (modify-phases %standard-phases
5568 (add-after 'unpack 'set-DATAPATH
5569 (lambda* (#:key outputs #:allow-other-keys)
5570 (substitute* "CMakeLists.txt"
5571 (("^option\\(INSTALL_FHS" line)
5572 (string-append "add_definitions(-DDATAPATH=\""
5573 (assoc-ref outputs "out") "/share/freegish\")\n"
5577 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
5579 ("libvorbis" ,libvorbis)
5584 (home-page "https://github.com/freegish/freegish")
5585 (synopsis "Side-scrolling physics platformer with a ball of tar")
5586 (description "In FreeGish you control Gish, a ball of tar who lives
5587 happily with his girlfriend Brea, until one day a mysterious dark creature
5588 emerges from a sewer hole and pulls her below ground.")
5589 ;; The textures are available under the Expat license. All other assets
5590 ;; (including levels) are covered under CC-BY-SA or public domain. The
5591 ;; source code is under GPLv2+.
5592 (license (list license:gpl2+
5594 license:public-domain
5595 license:cc-by-sa3.0)))))
5597 (define-public cdogs-sdl
5605 (url "https://github.com/cxong/cdogs-sdl")
5607 (file-name (git-file-name name version))
5609 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
5610 (build-system cmake-build-system)
5613 (list (string-append "-DCDOGS_DATA_DIR="
5614 (assoc-ref %outputs "out")
5615 "/share/cdogs-sdl/"))))
5617 `(("pkg-config" ,pkg-config)))
5622 ("sdl2-image" ,sdl2-image)
5623 ("sdl2-mixer" ,sdl2-mixer)))
5624 (home-page "https://cxong.github.io/cdogs-sdl/")
5625 (synopsis "Classic overhead run-and-gun game")
5626 (description "C-Dogs SDL is a classic overhead run-and-gun game,
5627 supporting up to 4 players in co-op and deathmatch modes. Customize your
5628 player, choose from many weapons, and blast, slide and slash your way through
5629 over 100 user-created campaigns.")
5630 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
5631 ;; CC0/CC-BY/CC-BY-SA for assets.
5632 (license (list license:gpl2+
5637 license:cc-by-sa3.0))))
5645 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
5646 version "/kiki-" version "-src.tgz"))
5649 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
5650 (modules '((guix build utils)))
5653 (for-each delete-file (find-files "." "\\.dll$"))
5656 (search-patches "kiki-level-selection-crash.patch"
5657 "kiki-makefile.patch"
5658 "kiki-missing-includes.patch"
5659 "kiki-portability-64bit.patch"))))
5660 (build-system gnu-build-system)
5662 `(#:tests? #f ; there are no tests
5663 #:make-flags '("CXX=g++")
5665 (modify-phases %standard-phases
5667 (lambda* (#:key inputs outputs #:allow-other-keys)
5668 (setenv "CPLUS_INCLUDE_PATH"
5669 (string-append (assoc-ref inputs "sdl-union")
5671 (assoc-ref inputs "python")
5672 "/include/python2.7:"
5673 (or (getenv "CPLUS_INCLUDE_PATH") "")))
5674 (substitute* "src/main/main.cpp"
5675 (("#include <SDL.h>" line)
5676 (string-append line "
5677 #define K_INCLUDE_GLUT
5678 #include \"KIncludeTools.h\""))
5679 (("// initialize SDL" line)
5680 (string-append "glutInit(&argc,argv);\n" line)))
5681 (substitute* "src/main/KikiController.cpp"
5682 (("getenv\\(\"KIKI_HOME\"\\)")
5683 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
5684 (substitute* "linux/Makefile"
5686 (string-append line " -fpermissive"))
5687 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
5689 (string-append "PYTHONHOME = "
5690 (assoc-ref inputs "python")
5692 (("\\$\\(GLLIBS\\)" line)
5693 (string-append line " -lm -lpython2.7")))
5694 (substitute* "src/main/KikiPythonWidget.h"
5695 (("#define __KikiPythonWidget" line)
5696 (string-append line "\n#include \"KikiPython.h\"")))
5698 (add-before 'build 'build-kodilib
5699 (lambda* (#:key make-flags #:allow-other-keys)
5700 (with-directory-excursion "kodilib/linux"
5701 (apply invoke "make" make-flags))))
5702 (add-after 'build-kodilib 'chdir
5703 (lambda _ (chdir "linux") #t))
5705 (lambda* (#:key outputs #:allow-other-keys)
5706 (let* ((out (assoc-ref outputs "out"))
5707 (bin (string-append out "/bin"))
5708 (share (string-append out "/share/kiki")))
5711 (install-file "kiki" bin)
5712 (copy-recursively "../py" (string-append share "/py"))
5713 (copy-recursively "../sound" (string-append share "/sound"))
5717 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
5718 ("freeglut" ,freeglut-2.8)
5719 ("sdl-union" ,(sdl-union (list sdl
5722 ("python" ,python-2)))
5725 (home-page "http://kiki.sourceforge.net/")
5726 (synopsis "3D puzzle game")
5727 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
5728 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
5729 small robot living in the nano world, repair its maker.")
5730 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
5731 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
5732 ;; for a statement from the author.
5733 (license license:public-domain)))
5735 (define-public teeworlds
5742 (url "https://github.com/teeworlds/teeworlds")
5744 (file-name (git-file-name name version))
5747 "169dl83q08zl4h813az8hjs4rs3dms9yjn6bnsld4fjcj0imvvc6"))
5748 (modules '((guix build utils)
5753 (snippet ; remove bundled libraries except md5
5754 '(let ((base-dir "src/engine/external/"))
5755 (for-each (compose (cut delete-file-recursively <>)
5756 (cut string-append base-dir <>))
5757 (remove (cut string-match "(^.)|(^md5$)" <>)
5758 (scandir base-dir)))
5760 (build-system gnu-build-system)
5762 `(#:tests? #f ; no tests included
5763 #:modules ((guix build gnu-build-system)
5767 (modify-phases %standard-phases
5769 (lambda* (#:key outputs #:allow-other-keys)
5770 ;; Embed path to assets.
5771 (substitute* "src/engine/shared/storage.cpp"
5772 (("#define DATA_DIR.*")
5773 (string-append "#define DATA_DIR \""
5774 (assoc-ref outputs "out")
5775 "/share/teeworlds/data"
5778 ;; Bam expects all files to have a recent time stamp.
5779 (for-each (cut utime <> 1 1)
5782 ;; Do not use bundled libraries.
5783 (substitute* "bam.lua"
5784 (("local json = Compile.+$")
5786 settings.link.libs:Add(\"jsonparser\")")
5787 (("local png = Compile.+$")
5789 settings.link.libs:Add(\"pnglite\")")
5790 (("local wavpack = Compile.+$")
5791 "local wavpack = nil
5792 settings.link.libs:Add(\"wavpack\")")
5793 (("if config\\.zlib\\.value == 1")
5794 "if config.zlib.value"))
5795 (substitute* "src/engine/client/graphics_threaded.cpp"
5796 (("engine/external/pnglite/pnglite\\.h")
5798 (substitute* "src/engine/client/sound.cpp"
5799 (("engine/external/wavpack/wavpack\\.h")
5800 "wavpack/wavpack.h"))
5804 (invoke "bam" "-a" "-v" "conf=release")))
5806 (lambda* (#:key outputs #:allow-other-keys)
5807 (let* ((arch ,(system->linux-architecture
5808 (or (%current-target-system)
5809 (%current-system))))
5810 (build (string-append "build/" (if (string=? arch "i386")
5813 (data-built (string-append build "data/"))
5814 (out (assoc-ref outputs "out"))
5815 (bin (string-append out "/bin/"))
5816 (data (string-append out "/share/teeworlds/data/")))
5817 (for-each (cut install-file <> bin)
5818 (map (cut string-append build <>)
5819 '("teeworlds" "teeworlds_srv")))
5820 (copy-recursively data-built data)
5823 `(("freetype" ,freetype)
5825 ("json-parser" ,json-parser)
5827 ("pnglite" ,pnglite)
5829 ("sdl2-image" ,sdl2-image)
5830 ("sdl2-mixer" ,sdl2-mixer)
5831 ("wavpack" ,wavpack)
5835 ("python" ,python-wrapper)
5836 ("pkg-config" ,pkg-config)))
5837 (home-page "https://www.teeworlds.com")
5838 (synopsis "2D retro multiplayer shooter game")
5839 (description "Teeworlds is an online multiplayer game. Battle with up to
5840 16 players in a variety of game modes, including Team Deathmatch and Capture
5841 The Flag. You can even design your own maps!")
5842 (license license:bsd-3)))
5844 (define-public enigma
5850 (uri (string-append "mirror://sourceforge/enigma-game/"
5851 "Release%20" version "/enigma-"
5855 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
5856 (build-system gnu-build-system)
5859 (list "--with-system-enet")
5861 (modify-phases %standard-phases
5862 (add-after 'unpack 'find-sdl
5864 (substitute* "configure"
5865 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
5866 (substitute* '("tools/ttf2bmf.cc"
5867 "lib-src/enigma-core/ecl_font.cc"
5868 "lib-src/enigma-core/ecl_video.cc"
5869 "lib-src/enigma-core/ecl_buffer.hh"
5870 "src/SoundEngine.cc"
5871 "src/SoundEngine.hh"
5872 "src/MusicManager.cc"
5873 "src/MusicManager.hh"
5877 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
5878 (string-append "#include \"SDL/SDL_" header ".h\"")))
5879 (substitute* "src/main.cc"
5880 (("#include <SDL_(image|ttf|mixer).h>" line header)
5881 (string-append "#include \"SDL/SDL_" header ".h\"")))
5884 `(("xerces-c" ,xerces-c)
5885 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
5889 `(("pkg-config" ,pkg-config)
5890 ("imagemagick" ,imagemagick)))
5891 (home-page "https://www.nongnu.org/enigma")
5892 (synopsis "Puzzle game with a dexterity component")
5893 (description "Enigma is a puzzle game with 550 unique levels. The object
5894 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
5895 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
5896 and most of all, countless hairy puzzles usually block your direct way to the
5897 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
5898 get bored) interact in many unexpected ways, and since many of them follow the
5899 laws of physics (Enigma’s special laws of physics, that is), controlling them
5900 with the mouse isn’t always trivial.")
5901 (license license:gpl2+)))
5903 (define-public chroma
5909 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
5910 version ".tar.bz2"))
5913 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
5914 (build-system gnu-build-system)
5916 `(#:tests? #f)) ; no tests included
5918 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
5919 ("freetype" ,freetype)
5920 ("ncurses" ,ncurses)
5921 ("fontconfig" ,fontconfig)
5922 ("libxft" ,libxft)))
5924 `(("pkg-config" ,pkg-config)))
5925 (home-page "http://level7.org.uk/chroma/")
5926 (synopsis "Abstract puzzle game")
5927 (description "Chroma is an abstract puzzle game. A variety of colourful
5928 shapes are arranged in a series of increasingly complex patterns, forming
5929 fiendish traps that must be disarmed and mysterious puzzles that must be
5930 manipulated in order to give up their subtle secrets. Initially so
5931 straightforward that anyone can pick it up and begin to play, yet gradually
5932 becoming difficult enough to tax even the brightest of minds.")
5933 (license license:gpl2+)))
5935 (define-public fillets-ng
5941 (uri (string-append "mirror://sourceforge/fillets/"
5942 "Fish%20Fillets%20-%20Next%20Generation/"
5943 version "/fillets-ng-" version ".tar.gz"))
5946 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
5947 (build-system gnu-build-system)
5950 (list (string-append "--with-lua="
5951 (assoc-ref %build-inputs "lua")))
5953 (list (string-append "CFLAGS=-I"
5954 (assoc-ref %build-inputs "sdl-union")
5956 (string-append "CXXFLAGS=-I"
5957 (assoc-ref %build-inputs "sdl-union")
5960 (modify-phases %standard-phases
5961 ;; Lua 5.1 does not provide it.
5962 (add-after 'unpack 'do-not-link-with-lualib
5964 (substitute* "configure"
5967 (add-after 'install 'install-data
5968 (lambda* (#:key inputs outputs #:allow-other-keys)
5969 (let ((data (string-append (assoc-ref outputs "out")
5970 "/share/games/fillets-ng")))
5972 (invoke "tar" "-xvf"
5973 (assoc-ref inputs "fillets-ng-data")
5974 "--strip-components=1"
5977 `(("sdl-union" ,(sdl-union (list sdl
5981 ("fribidi" ,fribidi)
5985 `(("pkg-config" ,pkg-config)
5989 (uri (string-append "mirror://sourceforge/fillets/"
5990 "Fish%20Fillets%20-%20Next%20Generation/"
5991 version "/fillets-ng-data-" version ".tar.gz"))
5994 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
5995 (home-page "http://fillets.sourceforge.net/")
5996 (synopsis "Puzzle game")
5997 (description "Fish Fillets NG is strictly a puzzle game. The goal in
5998 every of the seventy levels is always the same: find a safe way out. The fish
5999 utter witty remarks about their surroundings, the various inhabitants of their
6000 underwater realm quarrel among themselves or comment on the efforts of your
6001 fish. The whole game is accompanied by quiet, comforting music.")
6002 (license license:gpl2+)))
6004 (define-public crawl
6012 ;; Older releases get moved into a versioned directory
6013 (string-append "http://crawl.develz.org/release/"
6014 (version-major+minor version) "/stone_soup-"
6015 version "-nodeps.tar.xz")
6016 ;; Only the latest release is in this directory
6017 (string-append "http://crawl.develz.org/release/stone_soup-"
6018 version "-nodeps.tar.xz")))
6020 (base32 "0rn1wjxdqw33caiwisfypm1j8cid3c9pz01ahicl17144zs29z3d"))
6021 (patches (search-patches "crawl-upgrade-saves.patch"))
6022 ;; The 0.25.0 -nodeps.tar.xz was built from an OSX machine; normally
6023 ;; apparently it's built from a Debian machine before the Debian
6024 ;; packages are made. These ._* files are binary and have the string
6025 ;; "Mac OS X" in them... removing these seems to result in compilation
6027 (modules '((guix build utils)))
6030 (for-each delete-file (find-files "." "^\\._"))
6032 (build-system gnu-build-system)
6034 `(("lua51" ,lua-5.1)
6035 ("ncurses" ,ncurses)
6042 ("python" ,python-wrapper)
6043 ("python-pyyaml" ,python-pyyaml)
6044 ("pkg-config" ,pkg-config)))
6047 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6048 (out (assoc-ref %outputs "out")))
6049 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6050 (string-append "prefix=" out)
6052 ;; Don't compile with SSE on systems which don't have it.
6053 ,@(match (%current-system)
6054 ((or "i686-linux" "x86_64-linux")
6056 (_ '("NOSSE=TRUE")))
6057 ;; don't build any bundled dependencies
6063 (modify-phases %standard-phases
6064 (add-after 'unpack 'find-SDL-image
6066 (substitute* "source/windowmanager-sdl.cc"
6067 (("SDL_image.h") "SDL2/SDL_image.h"))
6071 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6072 (setenv "HOME" (getcwd))
6073 ;; Fake a terminal for the test cases.
6074 (setenv "TERM" "xterm-256color")
6075 ;; Run the tests that don't require a debug build.
6076 (apply invoke "make" "nondebugtest"
6077 (format #f "-j~d" (parallel-job-count))
6078 ;; Force command line build for test cases.
6079 (append make-flags '("GAME=crawl" "TILES="))))))))
6080 (synopsis "Roguelike dungeon crawler game")
6081 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6082 for short) is a roguelike adventure through dungeons filled with dangerous
6083 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6084 (home-page "https://crawl.develz.org")
6085 (license (list license:gpl2+
6093 ;; The linter here claims that patch file names should start with the package
6094 ;; name. But, in this case, the patches are inherited from crawl with the
6095 ;; "crawl-" prefix instead of "crawl-tiles-".
6096 (define-public crawl-tiles
6099 (name "crawl-tiles")
6101 (substitute-keyword-arguments
6102 (package-arguments crawl)
6103 ((#:make-flags flags)
6104 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6106 (string-append "PROPORTIONAL_FONT=" dejavu
6107 "/share/fonts/truetype/DejaVuSans.ttf")
6108 (string-append "MONOSPACED_FONT=" dejavu
6109 "/share/fonts/truetype/DejaVuSansMono.ttf")
6111 ;; Rename the executable to allow parallel installation with crawl.
6115 `(,@(package-inputs crawl)
6116 ("font-dejavu" ,font-dejavu)
6117 ("freetype6" ,freetype)
6121 ("sdl2-image" ,sdl2-image)
6122 ("sdl2-mixer" ,sdl2-mixer)))
6124 `(,@(package-native-inputs crawl)
6125 ("pngcrush" ,pngcrush)
6127 (synopsis "Graphical roguelike dungeon crawler game")))
6129 (define-public lugaru
6135 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6136 "lugaru-" version ".tar.xz"))
6139 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6140 (build-system cmake-build-system)
6143 (list "-DSYSTEM_INSTALL=ON")
6147 `(("pkg-config" ,pkg-config)))
6151 ("libjpeg" ,libjpeg-turbo)
6154 ("vorbis" ,libvorbis)
6156 (home-page "https://osslugaru.gitlab.io")
6157 (synopsis "Cross-platform third-person action game")
6158 (description "Lugaru is a third-person action game. The main character,
6159 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6160 In his quest to find those responsible for slaughtering his village, he uncovers
6161 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6162 and the starving wolves from a nearby den. Turner takes it upon himself to
6163 fight against their plot and save his fellow rabbits from slavery.")
6164 (license (list license:gpl2+ ; code
6167 license:cc-by-sa4.0))))
6169 (define-public 0ad-data
6172 (version "0.0.23b-alpha")
6176 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6177 version "-unix-data.tar.xz"))
6178 (file-name (string-append name "-" version ".tar.xz"))
6181 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6182 (modules '((guix build utils)))
6185 (for-each (lambda (name)
6186 (let* ((dir (string-append "binaries/data/mods/" name))
6187 (file (string-append dir "/" name ".zip"))
6188 (unzip #$(file-append unzip "/bin/unzip")))
6189 (invoke unzip "-d" dir file)
6190 (delete-file file)))
6193 (build-system trivial-build-system)
6194 (native-inputs `(("tar" ,tar)
6197 `(#:modules ((guix build utils))
6200 (use-modules (guix build utils))
6201 (let ((out (assoc-ref %outputs "out"))
6202 (source (assoc-ref %build-inputs "source"))
6203 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6204 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6205 (setenv "PATH" xz-path)
6207 (invoke tar "xvf" source "-C" out "--strip=3")))))
6208 (synopsis "Data files for 0ad")
6209 (description "0ad-data provides the data files required by the game 0ad.")
6210 (home-page "https://play0ad.com")
6211 (license (list (license:fsdg-compatible
6212 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6213 "Similar to the license of the Bitstream Vera fonts.")
6214 (license:fsdg-compatible
6215 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6225 (version "0.0.23b-alpha")
6229 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6230 version "-unix-build.tar.xz"))
6231 (file-name (string-append name "-" version ".tar.xz"))
6234 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6235 ;; A snippet here would cause a build failure because of timestamps
6236 ;; reset. See https://bugs.gnu.org/26734.
6238 `(("0ad-data" ,0ad-data)
6244 ("libsodium" ,libsodium)
6245 ("libvorbis" ,libvorbis)
6246 ("libxcursor" ,libxcursor)
6247 ("libxml2" ,libxml2)
6248 ("miniupnpc" ,miniupnpc)
6249 ("mozjs-38" ,mozjs-38)
6252 ("wxwidgets" ,wxwidgets)
6256 ("cmake" ,cmake-minimal)
6258 ("pkg-config" ,pkg-config)
6259 ("python-2" ,python-2)))
6260 (build-system gnu-build-system)
6262 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6264 (modify-phases %standard-phases
6265 (add-after 'unpack 'delete-bundles
6267 (delete-file-recursively "libraries/source/spidermonkey")
6269 (add-after 'unpack 'fix-x11-includes
6271 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6272 (("<Xlib.h>") "<X11/Xlib.h>"))
6273 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6274 (("<Xatom.h>") "<X11/Xatom.h>"))
6275 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6276 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6279 (lambda* (#:key inputs outputs #:allow-other-keys)
6280 (let* ((jobs (number->string (parallel-job-count)))
6281 (out (assoc-ref outputs "out"))
6282 (lib (string-append out "/lib"))
6283 (data (string-append out "/share/0ad")))
6284 (setenv "JOBS" (string-append "-j" jobs))
6286 (with-directory-excursion "build/workspaces"
6287 (invoke "./update-workspaces.sh"
6288 (string-append "--libdir=" lib)
6289 (string-append "--datadir=" data)
6290 ;; TODO: "--with-system-nvtt"
6291 "--with-system-mozjs38")))))
6294 (lambda* (#:key inputs outputs #:allow-other-keys)
6296 (let* ((out (assoc-ref outputs "out"))
6297 (bin (string-append out "/bin"))
6298 (lib (string-append out "/lib"))
6299 (data (string-append out "/share/0ad"))
6300 (applications (string-append out "/share/applications"))
6301 (pixmaps (string-append out "/share/pixmaps"))
6302 (0ad-data (assoc-ref inputs "0ad-data")))
6304 (copy-recursively "data" data)
6305 (for-each (lambda (file)
6306 (symlink (string-append 0ad-data "/" file)
6307 (string-append data "/" file)))
6308 '("config" "mods/mod" "mods/public" "tools"))
6310 (for-each (lambda (file)
6311 (install-file file lib))
6312 (find-files "system" "\\.so$"))
6314 (install-file "system/pyrogenesis" bin)
6315 (with-directory-excursion bin
6316 (symlink "pyrogenesis" "0ad"))
6318 (with-directory-excursion "../build/resources"
6319 (install-file "0ad.desktop" applications)
6320 (install-file "0ad.png" pixmaps))
6322 (add-after 'install 'check
6324 (with-directory-excursion "system"
6325 (invoke "./test")))))))
6326 (home-page "https://play0ad.com")
6327 (synopsis "3D real-time strategy game of ancient warfare")
6328 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6329 warfare. It's a historically-based war/economy game that allows players to
6330 relive or rewrite the history of twelve ancient civilizations, each depicted
6331 at their peak of economic growth and military prowess.
6333 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6334 (license (list license:bsd-2
6345 ;; There have been no official releases.
6346 (define-public open-adventure
6347 (let* ((commit "d43854f0f6bb8e9eea7fbce80348150e7e7fc34d")
6350 (name "open-adventure")
6351 (version (string-append "2.5-" revision "." (string-take commit 7)))
6355 (url "https://gitlab.com/esr/open-adventure")
6357 (file-name (string-append name "-" version "-checkout"))
6360 "08bwrvf4axb1rsfd6ia1fddsky9pc1p350vjskhaakg2czc6dsk0"))))
6361 (build-system gnu-build-system)
6363 `(#:make-flags (list "CC=gcc")
6364 #:parallel-build? #f ; not supported
6366 (modify-phases %standard-phases
6368 (lambda* (#:key inputs outputs #:allow-other-keys)
6369 ;; Linenoise is meant to be included, so we have to
6370 ;; copy it into the working directory.
6371 (let* ((linenoise (assoc-ref inputs "linenoise"))
6372 (noisepath (string-append linenoise "/include/linenoise"))
6373 (out (assoc-ref outputs "out")))
6374 (copy-recursively noisepath "linenoise"))
6376 (add-before 'build 'use-echo
6378 (substitute* "tests/Makefile"
6379 (("/bin/echo") (which "echo")))
6381 (add-after 'build 'build-manpage
6383 ;; This target is missing a dependency
6384 (substitute* "Makefile"
6386 (string-append line " advent.adoc")))
6387 (invoke "make" ".adoc.6")))
6388 ;; There is no install target
6390 (lambda* (#:key outputs #:allow-other-keys)
6391 (let* ((out (assoc-ref outputs "out"))
6392 (bin (string-append out "/bin"))
6393 (man (string-append out "/share/man/man6")))
6394 (install-file "advent" bin)
6395 (install-file "advent.6" man))
6398 `(("asciidoc" ,asciidoc)
6399 ("linenoise" ,linenoise)
6401 ("python-pyyaml" ,python-pyyaml)))
6402 (home-page "https://gitlab.com/esr/open-adventure")
6403 (synopsis "Colossal Cave Adventure")
6404 (description "The original Colossal Cave Adventure from 1976 was the
6405 origin of all text adventures, dungeon-crawl (computer) games, and
6406 computer-hosted roleplaying games. This is the last version released by
6407 Crowther & Woods, its original authors, in 1995. It has been known as
6408 \"adventure 2.5\" and \"430-point adventure\".")
6409 (license license:bsd-2))))
6411 (define-public tome4
6415 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6419 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6420 version ".tar.bz2"))
6422 (base32 "0283hvms5hr29zr0grd6gq059k0hg8hcz3fsmwjmysiih8790i68"))
6423 (modules '((guix build utils)))
6426 (substitute* '("src/music.h" "src/tSDL.h")
6427 (("#elif defined(__FreeBSD__)" line)
6429 line " || defined(__GNUC__)")))
6430 (substitute* '("src/tgl.h")
6431 (("#include <GL/glext.h>") ""))
6433 (build-system gnu-build-system)
6435 `(("unzip" ,unzip)))
6437 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6439 ("premake4" ,premake4)
6441 ("vorbis" ,libvorbis)
6442 ("luajit" ,luajit)))
6444 `(#:make-flags '("CC=gcc" "config=release")
6445 ;; XXX: Building in parallel occasionally causes this build failure:
6446 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6447 ;; No such file or directory
6448 #:parallel-build? #f
6449 #:phases (modify-phases %standard-phases
6453 (invoke "premake4" "gmake")
6455 (add-after 'set-paths 'set-sdl-paths
6456 (lambda* (#:key inputs #:allow-other-keys)
6458 (string-append (assoc-ref inputs "sdl-union")
6460 (or (getenv "CPATH") "")))
6463 ;; premake doesn't provide install target
6465 (lambda* (#:key inputs outputs #:allow-other-keys)
6466 (let* ((out (assoc-ref outputs "out"))
6467 (usr (string-append out "/usr"))
6468 (bin (string-append out "/bin"))
6469 (licenses (string-append out "/share/licenses"))
6470 (documents (string-append out "/share/doc"))
6471 (pixmaps (string-append out "/share/pixmaps"))
6472 (icon "te4-icon.png")
6473 (data (string-append out "/share/" ,name))
6474 (applications (string-append
6475 out "/share/applications"))
6476 (unzip (string-append
6477 (assoc-ref inputs "unzip") "/bin/unzip"))
6478 (wrapper (string-append bin "/" ,name)))
6483 "game/engines/te4-" ,version ".teae")
6485 "data/gfx/" icon) "-d" pixmaps)
6487 (install-file "t-engine" data)
6489 (with-output-to-file wrapper
6494 ;; No bootstrap code found,
6495 ;; defaulting to working directory
6498 "exec -a tome4 ./t-engine \"$@\"\n"))))
6499 (chmod wrapper #o555)
6501 (for-each (lambda (file)
6502 (install-file file licenses))
6503 '("COPYING" "COPYING-MEDIA"))
6505 (for-each (lambda (file)
6506 (install-file file documents))
6507 '("CONTRIBUTING" "CREDITS"))
6509 (copy-recursively "bootstrap" (string-append
6511 (copy-recursively "game" (string-append data "/game"))
6513 (mkdir-p applications)
6514 (make-desktop-entry-file
6515 (string-append applications "/" ,name ".desktop")
6520 #:categories '("Game" "RolePlaying")))
6522 (home-page "https://te4.org")
6523 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6524 combat and advanced character building. Play as one of many unique races and
6525 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6526 challenging battles, and developing characters with your own tailored mix of
6527 abilities and powers. With a modern graphical and customisable interface,
6528 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6529 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6530 (license license:gpl3+)))
6532 (define-public quakespasm
6539 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6542 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6545 #:make-flags '("CC=gcc"
6548 "USE_CODEC_MIKMOD=1"
6551 #:phases (modify-phases %standard-phases
6553 (add-after 'unpack 'fix-makefile-paths
6554 (lambda* (#:key outputs #:allow-other-keys)
6555 (let ((out (assoc-ref outputs "out")))
6556 (mkdir-p (string-append out "/bin"))
6557 (substitute* "Quake/Makefile"
6558 (("/usr/local/games")
6559 (string-append out "/bin")))
6561 (build-system gnu-build-system)
6562 (inputs `(("libmikmod" ,libmikmod)
6563 ("libvorbis" ,libvorbis)
6568 (synopsis "First person shooter engine for Quake 1")
6569 (description "Quakespasm is a modern engine for id software's Quake 1.
6570 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6571 some graphical niceities, and numerous bug-fixes and other improvements.")
6572 (home-page "http://quakespasm.sourceforge.net/")
6573 (license license:gpl2+)))
6575 (define-public vkquake
6577 (inherit quakespasm)
6584 (url "https://github.com/Novum/vkQuake")
6586 (file-name (git-file-name name version))
6588 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6591 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6592 "vulkan-loader") "/lib")))
6596 "USE_CODEC_MIKMOD=1"
6598 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
6600 #:phases (modify-phases %standard-phases
6601 (add-after 'unpack 'patch-for-new-vulkan
6603 ;; Mimic upstream commit a869a22d9b51c68e for
6604 ;; compatibility with newer vulkan-headers.
6605 (substitute* "Quake/gl_rmisc.c"
6606 (("VK_DYNAMIC_STATE_RANGE_SIZE")
6610 (add-after 'unpack 'fix-makefile-paths
6611 (lambda* (#:key outputs #:allow-other-keys)
6612 (let ((vulkan (assoc-ref %build-inputs
6614 (out (assoc-ref outputs "out")))
6615 (mkdir-p (string-append out "/bin"))
6616 (substitute* "Quake/Makefile" ((" /usr")
6617 (string-append " " out)))
6618 (substitute* "Quake/Makefile" (("/games")
6619 (string-append "/bin")))
6620 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
6622 ,@(strip-keyword-arguments '(#:make-flags #:phases)
6623 (package-arguments quakespasm))))
6624 (inputs `(("vulkan-headers" ,vulkan-headers)
6625 ("vulkan-loader" ,vulkan-loader)
6626 ,@(package-inputs quakespasm)))
6627 (description "vkquake is a modern engine for id software's Quake 1.
6628 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6629 some graphical niceities, and numerous bug-fixes and other improvements.")
6630 (home-page "https://github.com/Novum/vkQuake")))
6632 (define-public yamagi-quake2
6634 (name "yamagi-quake2")
6639 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
6643 "0psinbg25mysd58k99s1n34w31w5hj1vppb39gdjb0zqi6sl6cps"))))
6644 (build-system gnu-build-system)
6649 ;; link openAL instead of using dlopen at runtime
6650 "DLOPEN_OPENAL=\"no\""
6651 ;; an optional directory where it will look for quake2 data files
6652 ;; in addition to the current working directory
6653 "WITH_SYSTEMWIDE=yes"
6654 "WITH_SYSTEMDIR=\"/opt/quake2\"")
6656 (modify-phases %standard-phases
6659 (lambda* (#:key outputs #:allow-other-keys)
6660 (let ((out (assoc-ref outputs "out")))
6661 (mkdir-p (string-append out "/lib"))
6662 (mkdir-p (string-append out "/bin"))
6663 ;; The yamagi-quake2 binary must be in the same directory
6664 ;; as it's engine libraries, but symlinking it to /bin is okay
6665 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
6666 (copy-recursively "release"
6667 (string-append out "/lib/yamagi-quake2"))
6668 (symlink (string-append out "/lib/yamagi-quake2/quake2")
6669 (string-append out "/bin/yamagi-quake2"))
6670 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
6671 (string-append out "/bin/yamagi-q2ded"))))))))
6672 (inputs `(("sdl2" ,sdl2)
6674 ("libvorbis" ,libvorbis)
6676 ("openal" ,openal)))
6677 (native-inputs `(("pkg-config" ,pkg-config)))
6678 (synopsis "First person shooter engine based on quake2")
6679 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
6680 The main focus is an unchanged single player experience like back in 1997,
6681 thus the gameplay and the graphics are unaltered. However the user may use one
6682 of the unofficial retexturing packs. In comparison with the official client,
6683 over 1000 bugs were fixed and an extensive code audit done,
6684 making Yamagi Quake II one of the most solid Quake II implementations available.")
6685 (home-page "https://www.yamagi.org/quake2/")
6686 (license (list license:gpl2+ ; game and server
6687 (license:non-copyleft ; info-zip
6689 "See Info-Zip section.")
6690 license:public-domain)))) ; stb
6692 (define-public nudoku
6698 (uri (string-append "https://github.com/jubalh/nudoku/"
6699 "releases/download/" version
6700 "/nudoku-" version ".tar.xz"))
6703 "0nr2j2z07nxk70s8xnmmpzccxicf7kn5mbwby2kg6aq8paarjm8k"))))
6704 (build-system gnu-build-system)
6705 (inputs `(("ncurses" ,ncurses)))
6706 (home-page "https://jubalh.github.io/nudoku/")
6707 (synopsis "Sudoku for your terminal")
6708 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
6709 (license license:gpl3+)))
6711 (define-public the-butterfly-effect
6713 (name "the-butterfly-effect")
6719 (url "https://github.com/the-butterfly-effect/tbe")
6720 (commit (string-append "v" version))))
6721 (file-name (git-file-name name version))
6724 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
6725 (build-system gnu-build-system)
6728 (modify-phases %standard-phases
6730 ;; There is no "install" phase. By default, tbe is installed
6731 ;; in the build directory. Provide our own installation.
6733 (lambda* (#:key outputs #:allow-other-keys)
6734 (let* ((out (assoc-ref outputs "out"))
6735 (bin (string-append out "/bin"))
6736 (share (string-append out "/share")))
6737 (install-file "usr/games/tbe" bin)
6739 (copy-recursively "usr/share" share)
6741 ;; Test suite requires a running Xorg server. Even when
6742 ;; provided, it fails with "D-Bus library appears to be
6743 ;; incorrectly set up; failed to read machine uuid: Failed to
6744 ;; open "/etc/machine-id": No such file or directory" along
6745 ;; with multiple "QPainter:: ... Painter not active" warnings.
6748 `(("qtbase" ,qtbase)
6751 `(("cmake" ,cmake-minimal)
6752 ("gettext-minimal" ,gettext-minimal)
6753 ("qttools" ,qttools)))
6754 (synopsis "Realistic physics puzzle game")
6755 (description "The Butterfly Effect (tbe) is a game that uses
6756 realistic physics simulations to combine lots of simple mechanical
6757 elements to achieve a simple goal in the most complex way possible.")
6758 (home-page "http://the-butterfly-effect.org/")
6759 ;; Main license is GPL2-only. However, artwork is distributed
6760 ;; under various licenses, listed here.
6761 (license (list license:gpl2 license:public-domain license:expat
6762 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
6764 (define-public pioneer
6767 (version "20200203")
6771 (url "https://github.com/pioneerspacesim/pioneer")
6773 (file-name (git-file-name name version))
6776 "1011xsi94jhw98mhm8kryq8ajig0qfbrdx5xdasi92bd4nk7lcp8"))))
6777 (build-system cmake-build-system)
6779 `(("pkg-config" ,pkg-config)))
6781 `(("assimp" ,assimp)
6783 ("freetype" ,freetype)
6787 ("libsigc++" ,libsigc++)
6788 ("libvorbis" ,libvorbis)
6789 ("lua" ,lua-5.2) ;not compatible with 5.3
6791 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
6793 `(#:tests? #f ;tests are broken
6794 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
6795 (string-append "-DPIONEER_DATA_DIR="
6796 %output "/share/games/pioneer"))))
6797 (home-page "https://pioneerspacesim.net")
6798 (synopsis "Game of lonely space adventure")
6800 "Pioneer is a space adventure game set in our galaxy at the turn of the
6801 31st century. The game is open-ended, and you are free to eke out whatever
6802 kind of space-faring existence you can think of. Look for fame or fortune by
6803 exploring the millions of star systems. Turn to a life of crime as a pirate,
6804 smuggler or bounty hunter. Forge and break alliances with the various
6805 factions fighting for power, freedom or self-determination. The universe is
6806 whatever you make of it.")
6807 (license license:gpl3)))
6809 (define-public badass
6810 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
6814 (version (git-version "0.0" revision commit))
6818 (url "https://github.com/umayr/badass")
6820 (file-name (git-file-name name version))
6823 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
6824 (build-system go-build-system)
6826 '(#:import-path "github.com/umayr/badass"))
6827 (synopsis "Hacking contribution graphs in git")
6829 "Badass generates false commits for a range of dates, essentially
6830 hacking the gamification of contribution graphs on platforms such as
6832 (home-page "https://github.com/umayr/badass")
6833 (license license:expat))))
6835 (define-public colobot
6838 (version "0.1.12-alpha")
6843 (url "https://github.com/colobot/colobot")
6844 (commit (string-append "colobot-gold-" version))
6845 (recursive? #t))) ;for "data/" subdir
6846 (file-name (git-file-name name version))
6849 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
6850 (build-system cmake-build-system)
6852 `(#:tests? #f ;no test
6854 (modify-phases %standard-phases
6855 (add-after 'unpack 'make-git-checkout-writable
6857 (for-each make-file-writable (find-files "."))
6859 (add-after 'unpack 'fix-directories
6861 (substitute* "CMakeLists.txt"
6862 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
6863 (string-append prefix "/bin"))
6864 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
6865 (string-append prefix "/colobot")))
6867 (add-after 'fix-directories 'install-music
6868 ;; Retrieve and install music files.
6869 (lambda* (#:key inputs #:allow-other-keys)
6870 ;; Installation process tries to download music files using
6871 ;; "wget" if not already present. Since we are going another
6872 ;; route, skip "wget" command check.
6873 (substitute* "data/music/CMakeLists.txt"
6874 (("find_program\\(WGET wget\\)") ""))
6875 ;; Populate "music/" directory.
6876 (let ((data (assoc-ref inputs "colobot-music")))
6877 (invoke "tar" "-xvf" data "-Cdata/music"))
6883 (uri (string-append "https://colobot.info/files/music/"
6884 "colobot-music_ogg_" version ".tar.gz"))
6887 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
6888 ("gettext" ,gettext-minimal)
6889 ("librsvg" ,librsvg)
6891 ("python" ,python-wrapper)))
6897 ("libsndfile" ,libsndfile)
6898 ("libvorbis" ,libvorbis)
6901 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
6902 (synopsis "Educational programming strategy game")
6903 (description "Colobot: Gold Edition is a real-time strategy game, where
6904 you can program your units (bots) in a language called CBOT, which is similar
6905 to C++ and Java. Your mission is to find a new planet to live and survive.
6906 You can save humanity and get programming skills!")
6907 (home-page "https://colobot.info")
6908 (license license:gpl3+)))
6910 (define-public gzdoom
6918 (url "https://github.com/coelckers/gzdoom")
6919 (commit (string-append "g" version))))
6920 (file-name (git-file-name name version))
6922 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
6923 (patches (search-patches "gzdoom-search-in-installed-share.patch"
6924 "gzdoom-find-system-libgme.patch"))
6925 (modules '((guix build utils)))
6928 ;; Remove some bundled libraries. XXX There are more, but removing
6929 ;; them would require, at least, patching the build system.
6930 (with-directory-excursion "libraries"
6931 (delete-file-recursively "bzip2")
6932 (delete-file-recursively "game-music-emu")
6933 (delete-file-recursively "jpeg")
6934 (delete-file-recursively "zlib"))
6939 (let ((out (assoc-ref %outputs "out")))
6942 "-DCMAKE_CXX_FLAGS:="
6943 "-DSHARE_DIR=\\\"" out "/share/\\\" "
6944 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
6946 ;; The build requires some extra convincing not to use the bundled
6947 ;; libgme previously deleted in the soure snippet.
6948 "-DFORCE_INTERNAL_GME=OFF"
6950 ;; Link libraries at build time instead of loading them at run time.
6952 "-DDYN_FLUIDSYNTH=OFF"
6955 "-DDYN_SNDFILE=OFF"))
6957 (modify-phases %standard-phases
6958 (add-before 'configure 'fix-referenced-paths
6959 (lambda* (#:key inputs outputs #:allow-other-keys)
6960 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
6961 (timidity++ (assoc-ref inputs "timidity++"))
6962 (out (assoc-ref outputs "out")))
6965 "src/CMakeLists.txt"
6966 (("COMMAND /bin/sh")
6967 (string-append "COMMAND " (which "sh"))))
6970 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
6971 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
6972 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
6975 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
6976 (("exename = \"timidity\"")
6977 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
6979 (build-system cmake-build-system)
6980 (inputs `(("bzip2" ,bzip2)
6981 ("fluid-3" ,fluid-3)
6982 ("fluidsynth" ,fluidsynth)
6985 ("libjpeg" ,libjpeg-turbo)
6986 ("libsndfile" ,libsndfile)
6991 ("timidity++" ,timidity++)
6993 (native-inputs `(("pkg-config" ,pkg-config)
6995 (synopsis "Modern Doom 2 source port")
6996 (description "GZdoom is a port of the Doom 2 game engine, with a modern
6997 renderer. It improves modding support with ZDoom's advanced mapping features
6998 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
6999 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7000 (home-page "https://zdoom.org/index")
7001 ;; The source uses x86 assembly
7002 (supported-systems '("x86_64-linux" "i686-linux"))
7003 (license (list license:gpl3+ ; gzdoom game
7004 license:lgpl3+ ; gzdoom renderer
7005 license:expat ; gdtoa
7006 (license:non-copyleft ; modified dumb
7007 "file://dumb/licence.txt"
7008 "Dumb license, explicitly GPL compatible.")))))
7010 (define-public odamex
7018 "mirror://sourceforge/odamex/Odamex/" version "/"
7019 "odamex-src-" version ".tar.gz"))
7021 (base32 "1ywbqkfacc9fc5di3dn95y5ah2ys9i241j64q3f37a73x92llw1i"))))
7022 (build-system cmake-build-system)
7023 (arguments `(#:tests? #f)) ; no tests
7026 ("sdl-mixer" ,sdl-mixer)
7029 ("alsa-lib" ,alsa-lib)))
7030 (home-page "https://odamex.net/")
7031 (synopsis "Multiplayer Doom port")
7032 (description "Odamex is a modification of the Doom engine that
7033 allows players to easily join servers dedicated to playing Doom
7035 (license license:gpl2+)))
7037 (define-public chocolate-doom
7039 (name "chocolate-doom")
7043 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7050 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7051 (build-system gnu-build-system)
7052 (inputs `(("sdl2-net" ,sdl2-net)
7053 ("sdl2-mixer" , sdl2-mixer)
7056 `(("pkg-config" ,pkg-config)))
7057 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7060 "Chocolate Doom takes a different approach to other source ports. Its
7061 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7062 a conservative, historically accurate Doom source port, which is compatible
7063 with the thousands of mods and levels that were made before the Doom source
7064 code was released. Rather than flashy new graphics, Chocolate Doom's main
7065 features are its accurate reproduction of the game as it was played in the
7066 1990s. The project is developed around a carefully-considered philosophy that
7067 intentionally restricts which features may be added (and rejects any that
7069 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7070 (license license:gpl2)))
7072 (define-public crispy-doom
7074 (inherit chocolate-doom)
7075 (name "crispy-doom")
7080 (url "https://github.com/fabiangreffrath/crispy-doom")
7081 (commit (string-append "crispy-doom-" version))))
7082 (file-name (git-file-name name version))
7084 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7087 (package-native-inputs chocolate-doom)
7088 `(("automake" ,automake)
7089 ("autoreconf" ,autoconf))))
7092 (modify-phases %standard-phases
7094 ;; The bundled autogen.sh script unconditionally runs ./configure.
7095 (lambda _ (invoke "autoreconf" "-vif"))))))
7096 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7099 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7100 display resolution, removes the static limits of the Doom engine and offers
7101 further optional visual, tactical and physical enhancements while remaining
7102 entirely config file, savegame, netplay and demo compatible with the
7104 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7106 (define shlomif-cmake-modules
7109 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7110 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7111 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7113 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7115 (define-public rinutils
7122 (url "https://github.com/shlomif/rinutils")
7124 (file-name (git-file-name name version))
7127 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7130 ;; The following is only needed for tests.
7131 ("perl-file-find-object" ,perl-file-find-object)
7132 ("perl-test-differences" ,perl-test-differences)
7133 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7134 ("perl-io-all" ,perl-io-all)
7135 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7136 ("cmake-rules" ,shlomif-cmake-modules)
7137 ("pkg-config" ,pkg-config)))
7139 `(("cmocka" ,cmocka)
7140 ("perl-env-path", perl-env-path)
7141 ("perl-inline" ,perl-inline)
7142 ("perl-inline-c" ,perl-inline-c)
7143 ("perl-string-shellquote" ,perl-string-shellquote)
7144 ("perl-test-trailingspace" ,perl-test-trailingspace)
7145 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7146 ("perl-text-glob" ,perl-text-glob)
7147 ("perl-number-compare" ,perl-number-compare)
7148 ("perl-moo" ,perl-moo)))
7151 (modify-phases %standard-phases
7152 (add-after 'unpack 'fix-build-env
7153 (lambda* (#:key inputs #:allow-other-keys)
7154 (use-modules (guix build utils))
7155 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7156 (copy-file cmake-rules
7157 (string-append "cmake/"
7158 (strip-store-file-name cmake-rules)))
7162 (with-directory-excursion "../source"
7163 (setenv "FCS_TEST_BUILD" "1")
7164 (setenv "RINUTILS_TEST_BUILD" "1")
7165 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7166 ;; which requires tidy-all.
7167 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7168 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7169 (build-system cmake-build-system)
7170 (home-page "https://www.shlomifish.org/open-source/projects/")
7171 (synopsis "C11 / gnu11 utilities C library")
7172 (description "This package provides C11 / gnu11 utilities C library")
7173 (license license:expat)))
7175 (define-public fortune-mod
7177 (name "fortune-mod")
7183 (url "https://github.com/shlomif/fortune-mod")
7184 (commit (string-append "fortune-mod-" version))))
7185 (file-name (git-file-name name version))
7187 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7188 (build-system cmake-build-system)
7190 `(#:test-target "check"
7192 (modify-phases %standard-phases
7193 (add-after 'unpack 'fix-build-env
7194 (lambda* (#:key inputs #:allow-other-keys)
7195 (use-modules (guix build utils))
7196 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7197 (copy-file cmake-rules
7198 (string-append "fortune-mod/cmake/"
7199 (strip-store-file-name cmake-rules)))
7200 (chdir "fortune-mod")
7201 ;; TODO: Valgrind tests fail for some reason.
7202 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7203 (delete-file "tests/t/valgrind.t")
7205 (add-after 'install 'fix-install-directory
7206 (lambda* (#:key outputs #:allow-other-keys)
7207 ;; Move binary from "games/" to "bin/" and remove the latter. This
7208 ;; is easier than patching CMakeLists.txt since the tests hard-code
7209 ;; the location as well.
7210 (let* ((out (assoc-ref outputs "out"))
7211 (bin (string-append out "/bin"))
7212 (games (string-append out "/games")))
7213 (rename-file (string-append games "/fortune")
7214 (string-append bin "/fortune"))
7217 (inputs `(("recode" ,recode)))
7220 ;; The following is only needed for tests.
7221 ("perl-file-find-object" ,perl-file-find-object)
7222 ("perl-test-differences" ,perl-test-differences)
7223 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7224 ("perl-io-all" ,perl-io-all)
7225 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7226 ("cmake-rules" ,shlomif-cmake-modules)
7227 ("rinutils" ,rinutils)))
7228 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7229 (synopsis "The Fortune Cookie program from BSD games")
7230 (description "Fortune is a command-line utility which displays a random
7231 quotation from a collection of quotes.")
7232 (license license:bsd-4)))
7234 (define xonotic-data
7236 (name "xonotic-data")
7241 (uri (string-append "http://dl.xonotic.org/xonotic-"
7243 (file-name (string-append name "-" version ".zip"))
7246 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7247 (build-system trivial-build-system)
7249 `(("unzip" ,unzip)))
7251 `(#:modules ((guix build utils))
7254 (use-modules (guix build utils))
7255 (let* ((out (assoc-ref %outputs "out"))
7256 (xonotic (string-append out "/share/xonotic"))
7257 (source (assoc-ref %build-inputs "source"))
7258 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7259 (copy-file source (string-append ,name "-" ,version ".zip"))
7260 (invoke unzip (string-append ,name "-" ,version ".zip"))
7264 (copy-recursively "data"
7265 (string-append xonotic "/data"))
7266 (copy-recursively "server"
7267 (string-append xonotic "/server"))
7268 (install-file "key_0.d0pk" xonotic)))))
7269 (home-page "http://xonotic.org")
7270 (synopsis "Data files for Xonotic")
7272 "Xonotic-data provides the data files required by the game Xonotic.")
7273 (license (list license:gpl2+
7274 (license:x11-style "file://server/rcon.pl")))))
7276 (define-public xonotic
7283 (uri (string-append "http://dl.xonotic.org/xonotic-"
7284 version "-source.zip"))
7285 (file-name (string-append name "-" version ".zip"))
7288 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7289 (build-system gnu-build-system)
7291 `(#:configure-flags (list (string-append "--prefix="
7292 (assoc-ref %outputs "out"))
7293 "--disable-rijndael")
7295 (modify-phases %standard-phases
7296 (add-before 'configure 'make-darkplaces
7297 (lambda* (#:key outputs #:allow-other-keys)
7298 (let* ((out (assoc-ref outputs "out"))
7299 (sharedir (string-append out "/share/xonotic/")))
7300 (invoke "make" "-C" "source/darkplaces"
7301 (string-append "DP_FS_BASEDIR="
7303 "DP_LINK_TO_LIBJPEG=1"
7308 (invoke "make" "-C" "source/darkplaces"
7309 (string-append "DP_FS_BASEDIR="
7311 "DP_LINK_TO_LIBJPEG=1"
7316 (invoke "make" "-C" "source/darkplaces"
7317 (string-append "DP_FS_BASEDIR="
7319 "DP_LINK_TO_LIBJPEG=1"
7324 (add-before 'configure 'bootstrap
7326 (chdir "source/d0_blind_id")
7327 (invoke "sh" "autogen.sh")))
7328 (add-after 'build 'install-desktop-entry
7329 (lambda* (#:key outputs #:allow-other-keys)
7330 ;; Add .desktop files for the 2 variants and the symlink
7331 (let* ((output (assoc-ref outputs "out"))
7332 (apps (string-append output "/share/applications")))
7334 (with-output-to-file
7335 (string-append apps "/xonotic-glx.desktop")
7340 Comment=Xonotic glx~@
7341 Exec=~a/bin/xonotic-glx~@
7342 TryExec=~@*~a/bin/xonotic-glx~@
7347 (with-output-to-file
7348 (string-append apps "/xonotic-sdl.desktop")
7353 Comment=Xonotic sdl~@
7354 Exec=~a/bin/xonotic-sdl~@
7355 TryExec=~@*~a/bin/xonotic-sdl~@
7360 (with-output-to-file
7361 (string-append apps "/xonotic.desktop")
7367 Exec=~a/bin/xonotic-glx~@
7368 TryExec=~@*~a/bin/xonotic~@
7374 (add-after 'install-desktop-entry 'install-icons
7375 (lambda* (#:key outputs #:allow-other-keys)
7376 (let ((out (assoc-ref outputs "out")))
7377 (with-directory-excursion "../../misc/logos/icons_png/"
7380 (let* ((size (string-filter char-numeric? file))
7381 (icons (string-append out "/share/icons/hicolor/"
7382 size "x" size "/apps")))
7384 (copy-file file (string-append icons "/xonotic.png"))))
7385 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7386 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7387 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7388 (add-after 'install-icons 'install-binaries
7389 (lambda* (#:key outputs #:allow-other-keys)
7390 (let ((out (assoc-ref outputs "out")))
7391 (define (install src dst)
7392 (let ((dst (string-append out dst)))
7393 (mkdir-p (dirname dst))
7394 (copy-file src dst)))
7395 (mkdir-p (string-append out "/bin"))
7396 (install "../darkplaces/darkplaces-dedicated"
7397 "/bin/xonotic-dedicated")
7398 (install "../darkplaces/darkplaces-glx"
7400 (install "../darkplaces/darkplaces-sdl"
7402 ;; Provide a default xonotic executable, defaulting to SDL.
7403 (symlink (string-append out "/bin/xonotic-sdl")
7404 (string-append out "/bin/xonotic"))
7406 (add-after 'install-binaries 'install-data
7407 (lambda* (#:key outputs inputs #:allow-other-keys)
7408 (let* ((out (assoc-ref outputs "out"))
7409 (data (assoc-ref inputs "xonotic-data")))
7410 (symlink (string-append data "/share/xonotic")
7411 (string-append out "/share/xonotic"))
7413 (add-after 'install-binaries 'wrap-binaries
7414 (lambda* (#:key outputs inputs #:allow-other-keys)
7415 ;; Curl and libvorbis need to be wrapped so that we get
7416 ;; sound and networking.
7417 (let* ((out (assoc-ref outputs "out"))
7418 (bin (string-append out "/bin/xonotic"))
7419 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7420 (bin-glx (string-append out "/bin/xonotic-glx"))
7421 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7422 (curl (assoc-ref inputs "curl"))
7423 (vorbis (assoc-ref inputs "libvorbis")))
7425 `("LD_LIBRARY_PATH" ":" prefix
7426 (,(string-append curl "/lib:" vorbis "/lib"))))
7427 (wrap-program bin-sdl
7428 `("LD_LIBRARY_PATH" ":" prefix
7429 (,(string-append curl "/lib:" vorbis "/lib"))))
7430 (wrap-program bin-glx
7431 `("LD_LIBRARY_PATH" ":" prefix
7432 (,(string-append curl "/lib:" vorbis "/lib"))))
7433 (wrap-program bin-dedicated
7434 `("LD_LIBRARY_PATH" ":" prefix
7435 (,(string-append curl "/lib:" vorbis "/lib"))))
7438 `(("xonotic-data" ,xonotic-data)
7439 ("alsa-lib" ,alsa-lib)
7441 ("libjpeg" ,libjpeg-turbo)
7442 ("libmodplug" ,libmodplug)
7443 ("libvorbis" ,libvorbis)
7446 ("libxxf86dga" ,libxxf86dga)
7447 ("libxxf86vm" ,libxxf86vm)
7449 ("libxext" ,libxext)
7451 ("libxdmcp" ,libxdmcp)
7454 ("freetype" ,freetype)
7457 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7460 ("autoconf" ,autoconf)
7461 ("automake" ,automake)
7462 ("pkg-config" ,pkg-config)
7463 ("libtool" ,libtool)
7465 (home-page "https://xonotic.org")
7466 (synopsis "Fast-paced first-person shooter game")
7468 "Xonotic is a free, fast-paced first-person shooter.
7469 The project is geared towards providing addictive arena shooter
7470 gameplay which is all spawned and driven by the community itself.
7471 Xonotic is a direct successor of the Nexuiz project with years of
7472 development between them, and it aims to become the best possible
7473 open-source FPS of its kind.")
7474 (license (list license:gpl2+
7475 license:bsd-3 ; /source/d0_blind_id folder and others
7476 (license:x11-style "" "See file rcon.pl.")))))
7478 (define-public frotz
7484 (uri (list (string-append
7485 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7486 "frotz/frotz-" version ".tar.gz")
7488 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7489 "frotz/frotz-" version ".tar.gz")))
7492 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7493 (build-system gnu-build-system)
7495 `(#:tests? #f ; there are no tests
7497 (modify-phases %standard-phases
7499 (add-before 'build 'curses
7501 (substitute* "Makefile"
7502 (("lcurses") "lncurses"))
7505 (lambda* (#:key outputs #:allow-other-keys)
7506 (let* ((out (assoc-ref outputs "out"))
7507 (bin (string-append out "/bin"))
7508 (man (string-append out "/share/man/man6")))
7509 (install-file "frotz" bin)
7511 (install-file "doc/frotz.6" man)
7513 (inputs `(("libmodplug" ,libmodplug)
7514 ("libsamplerate" ,libsamplerate)
7515 ("libsndfile" ,libsndfile)
7516 ("libvorbis" ,libvorbis)
7517 ("ncurses" ,ncurses)))
7518 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7519 (description "Frotz is an interpreter for Infocom games and other Z-machine
7520 games in the text adventure/interactive fiction genre. This version of Frotz
7521 complies with standard 1.0 of Graham Nelson's specification. It plays all
7522 Z-code games V1-V8, including V6, with sound support through libao, and uses
7523 ncurses for text display.")
7524 (home-page "http://frotz.sourceforge.net")
7525 (license license:gpl2+)))
7527 (define-public frotz-dumb-terminal
7529 (name "frotz-dumb-terminal")
7533 (uri (list (string-append
7534 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7535 "frotz/frotz-" version ".tar.gz")
7537 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7538 "frotz/frotz-" version ".tar.gz")))
7541 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7542 (build-system gnu-build-system)
7544 `(#:tests? #f ; there are no tests
7546 (modify-phases %standard-phases
7550 (invoke "make" "dumb")))
7552 (lambda* (#:key outputs #:allow-other-keys)
7553 (let* ((out (assoc-ref outputs "out"))
7554 (bin (string-append out "/bin"))
7555 (man (string-append out "/share/man/man6")))
7556 (install-file "dfrotz" bin)
7558 (install-file "doc/dfrotz.6" man)
7560 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7561 (description "Frotz is an interpreter for Infocom games and
7562 other Z-machine games in the text adventure/interactive fiction genre.
7563 dfrotz is the dumb interface version. You get no screen control; everything
7564 is just printed to the terminal line by line. The terminal handles all the
7565 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7566 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7567 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7568 to play games on webpages. It can also be made into a chat bot.")
7569 (home-page "http://frotz.sourceforge.net")
7570 (license license:gpl2+)))
7572 (define-public frotz-sdl
7573 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7580 (url "https://gitlab.com/DavidGriffith/frotz")
7584 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7585 (file-name (git-file-name name version))))
7586 (build-system gnu-build-system)
7588 `(#:tests? #f ; there are no tests
7590 (modify-phases %standard-phases
7592 (add-before 'build 'patch-makefile
7594 (substitute* "Makefile"
7595 (("lcurses") "lncurses")
7596 (("^BUILD_DATE_TIME =.*$")
7597 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
7601 (invoke "make" "sdl")))
7603 (lambda* (#:key outputs #:allow-other-keys)
7604 (let* ((out (assoc-ref outputs "out"))
7605 (bin (string-append out "/bin"))
7606 (man (string-append out "/share/man/man6")))
7607 (install-file "sfrotz" bin)
7609 (install-file "doc/sfrotz.6" man)
7612 `(("pkg-config" ,pkg-config)
7615 (inputs `(("sdl2" ,sdl2)
7616 ("sdl2-mixer" ,sdl2-mixer)
7617 ("libmodplug" ,libmodplug)
7618 ("libsamplerate" ,libsamplerate)
7619 ("libsndfile" ,libsndfile)
7620 ("libvorbis" ,libvorbis)
7621 ("ncurses" ,ncurses)
7622 ("freetype" ,freetype)
7623 ("libjpeg-turbo" ,libjpeg-turbo)))
7624 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
7625 (description "Frotz is an interpreter for Infocom games and other Z-machine
7626 games in the text adventure/interactive fiction genre. This version of Frotz
7627 using SDL fully supports all these versions of the Z-Machine including the
7628 graphical version 6. Graphics and sound are created through the use of the SDL
7629 libraries. AIFF sound effects and music in MOD and OGG formats are supported
7630 when packaged in Blorb container files or optionally from individual files.")
7631 (home-page "http://frotz.sourceforge.net")
7632 (license license:gpl2+))))
7634 (define-public frozen-bubble
7635 ;; Last official release is very outdated (2010). Use latest commit (2017).
7636 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
7639 (name "frozen-bubble")
7640 (version (git-version "2.2.1" revision commit))
7645 (url "https://github.com/kthakore/frozen-bubble")
7647 (file-name (git-file-name name version))
7649 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
7650 (build-system perl-build-system)
7653 (modify-phases %standard-phases
7654 ;; Build process needs to create files in the "server"
7656 (add-after 'unpack 'fix-permissions
7658 (for-each make-file-writable
7659 (find-files "server" "." #:directories? #t))))
7660 ;; By default, build stops at warnings.
7661 (add-after 'unpack 'prevent-build-error
7663 (substitute* "inc/My/Builder.pm"
7666 (add-after 'install 'install-desktop-file-and-icons
7667 (lambda* (#:key outputs #:allow-other-keys)
7668 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
7669 (hicolor (string-append share "/icons/hicolor")))
7670 ;; Create desktop entry.
7671 (make-desktop-entry-file
7672 (string-append share "/applications/" ,name ".desktop")
7673 #:name "Frozen Bubble"
7674 #:comment "Frozen Bubble arcade game"
7677 #:categories '("Game" "ArcadeGame"))
7679 (with-directory-excursion "share/icons"
7682 (let* ((dim (string-append size "x" size))
7683 (dir (string-append hicolor "/" dim "/apps")))
7686 (string-append "frozen-bubble-icon-" dim ".png")
7687 (string-append dir "/frozen-bubble.png"))))
7688 '("16" "32" "48" "64"))))
7690 (add-after 'install 'wrap-perl-libs
7691 (lambda* (#:key outputs #:allow-other-keys)
7692 (let ((out (assoc-ref outputs "out"))
7693 (perl5lib (getenv "PERL5LIB")))
7694 (for-each (lambda (prog)
7695 (wrap-program (string-append out "/" prog)
7696 `("PERL5LIB" ":" prefix
7697 (,(string-append perl5lib ":" out
7698 "/lib/perl5/site_perl")))))
7699 (find-files "bin" ".")))
7702 `(("perl-alien-sdl" ,perl-alien-sdl)
7703 ("perl-capture-tiny" ,perl-capture-tiny)
7704 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
7705 ("perl-module-build" ,perl-module-build)
7706 ("pkg-config" ,pkg-config)))
7709 ("perl-compress-bzip2" ,perl-compress-bzip2)
7710 ("perl-file-sharedir" ,perl-file-sharedir)
7711 ("perl-file-slurp" ,perl-file-slurp)
7712 ("perl-file-which" ,perl-file-which)
7713 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
7714 ("perl-sdl" ,perl-sdl)
7715 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
7716 (home-page "http://frozen-bubble.org/")
7717 (synopsis "Puzzle with bubbles")
7719 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
7720 you attempt to shoot bubbles into groups of the same color to cause them to
7723 Players compete as penguins and must use the arrow keys to aim a colored
7724 bubble at groups of bubbles. The objective is to clear all the bubbles off
7725 the screen before a bubble passes below a line at the bottom.
7727 It features 100 single-player levels, a two-player mode, music and striking
7728 graphics. A level editor is also included to allow players to create and play
7730 (license license:gpl2))))
7732 (define-public libmanette
7738 (uri (string-append "mirror://gnome/sources/libmanette/"
7739 (version-major+minor version) "/"
7740 "libmanette-" version ".tar.xz"))
7743 "1xrc6rh73v5w3kbkflzv1yg8sbxk4wf06hfk95raxhxlssza9q2g"))))
7744 (build-system meson-build-system)
7746 `(("glib" ,glib "bin") ; for glib-compile-resources
7747 ("gobject-introspection" ,gobject-introspection)
7748 ("pkg-config" ,pkg-config)
7751 `(("libevdev" ,libevdev)
7752 ("libgudev" ,libgudev)))
7753 (home-page "https://wiki.gnome.org/Apps/Games")
7754 (synopsis "Game controller library")
7755 (description "Libmanette is a small GObject library giving you simple
7756 access to game controllers. It supports the de-facto standard gamepads as
7757 defined by the W3C standard Gamepad specification or as implemented by the SDL
7759 (license license:lgpl2.1+)))
7761 (define-public quadrapassel
7763 (name "quadrapassel")
7767 (uri (string-append "mirror://gnome/sources/quadrapassel/"
7768 (version-major+minor version) "/"
7769 "quadrapassel-" version ".tar.xz"))
7772 "1zhi1957knz9dm98drn2dh95mr33sdch590yddh1f8r6bzsfjvpy"))))
7773 (build-system meson-build-system)
7777 (modify-phases %standard-phases
7778 (add-after 'unpack 'skip-gtk-update-icon-cache
7779 ;; Don't create 'icon-theme.cache'.
7781 (substitute* "build-aux/meson_post_install.py"
7782 (("gtk-update-icon-cache") (which "true")))
7785 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
7786 ("gettext" ,gettext-minimal)
7787 ("glib" ,glib "bin") ;for glib-compile-resources
7788 ("itstool" ,itstool)
7789 ("libxml2" ,libxml2) ;for xmllint
7790 ("pkg-config" ,pkg-config)
7793 `(("clutter" ,clutter)
7794 ("clutter-gtk" ,clutter-gtk)
7796 ("libcanberra" ,libcanberra)
7797 ("libmanette" ,libmanette)
7798 ("librsvg" ,librsvg)))
7799 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
7800 (synopsis "GNOME version of Tetris")
7801 (description "Quadrapassel comes from the classic falling-block game,
7802 Tetris. The goal of the game is to create complete horizontal lines of
7803 blocks, which will disappear. The blocks come in seven different shapes made
7804 from four blocks each: one straight, two L-shaped, one square, and two
7805 S-shaped. The blocks fall from the top center of the screen in a random
7806 order. You rotate the blocks and move them across the screen to drop them in
7807 complete lines. You score by dropping blocks fast and completing lines. As
7808 your score gets higher, you level up and the blocks fall faster.")
7809 (license license:gpl2+)))
7811 (define-public endless-sky
7813 (name "endless-sky")
7819 (url "https://github.com/endless-sky/endless-sky")
7820 (commit (string-append "v" version))))
7821 (file-name (git-file-name name version))
7823 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
7824 (build-system scons-build-system)
7826 `(#:scons ,scons-python2
7827 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
7828 #:tests? #f ; no tests
7830 (modify-phases %standard-phases
7831 (add-after 'unpack 'patch-resource-locations
7832 (lambda* (#:key outputs #:allow-other-keys)
7833 (substitute* "source/Files.cpp"
7835 (string-append (assoc-ref outputs "out") "/")))
7837 (add-after 'unpack 'patch-scons
7839 (substitute* "SConstruct"
7840 ;; Keep environmental variables
7841 (("Environment\\(\\)")
7842 "Environment(ENV = os.environ)")
7843 ;; Install into %out/bin
7844 (("games\"") "bin\""))
7848 ("libjpeg" ,libjpeg-turbo)
7853 (home-page "https://endless-sky.github.io/")
7854 (synopsis "2D space trading and combat game")
7855 (description "Endless Sky is a 2D space trading and combat game. Explore
7856 other star systems. Earn money by trading, carrying passengers, or completing
7857 missions. Use your earnings to buy a better ship or to upgrade the weapons and
7858 engines on your current one. Blow up pirates. Take sides in a civil war. Or
7859 leave human space behind and hope to find friendly aliens whose culture is more
7860 civilized than your own.")
7861 (license (list license:gpl3+
7864 license:public-domain))))
7866 (define-public stepmania
7869 (version "5.1.0-b2")
7874 (url "https://github.com/stepmania/stepmania")
7875 (commit (string-append "v" version))))
7876 (file-name (git-file-name name version))
7879 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
7880 (modules '((guix build utils)))
7883 ;; Remove song files, which are licensed under a non-commercial
7884 ;; clause, and a course pointing to them.
7885 (for-each delete-file-recursively
7886 '("Songs/StepMania 5/Goin' Under"
7887 "Songs/StepMania 5/MechaTribe Assault"
7888 "Songs/StepMania 5/Springtime"))
7889 (for-each delete-file '("Courses/Default/Jupiter.crs"
7890 "Courses/Default/Jupiter.png"))
7892 (substitute* "extern/CMakeLists.txt"
7893 (("include\\(CMakeProject-png.cmake\\)") ""))
7894 (delete-file-recursively "extern/libpng")
7896 (build-system cmake-build-system)
7898 `(#:tests? #f ;FIXME: couldn't find how to run tests
7899 #:build-type "Release"
7900 #:out-of-source? #f ;for the 'install-desktop' phase
7902 (list "-DWITH_SYSTEM_FFMPEG=1"
7903 ;; SSE instructions are available on Intel systems only.
7904 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
7908 '("-DWITH_SSE2=NO"))
7909 ;; Configuration cannot find GTK2 without the two following
7911 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
7912 (assoc-ref %build-inputs "gtk+")
7913 "/lib/gtk-2.0/include")
7914 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
7915 (assoc-ref %build-inputs "glib")
7916 "/lib/glib-2.0/include"))
7918 (modify-phases %standard-phases
7919 (add-after 'unpack 'ensure-application-files-can-be-found
7920 (lambda* (#:key outputs #:allow-other-keys)
7921 (let ((out (assoc-ref outputs "out")))
7922 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
7923 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
7924 (string-append "\"" out
7925 "/share/stepmania/GtkModule.so\"")))
7926 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
7927 (("Root = sDirOfExecutable")
7928 (string-append "Root = \"" out "/share/stepmania/\""))
7929 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
7930 (string-append "\"" out "/share/stepmania/" dir "\"")))
7931 (substitute* "src/RageFileManager.cpp"
7932 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
7933 (string-append "\"" out "/share/stepmania/\""))))
7935 (add-after 'unpack 'fix-install-subdir
7936 ;; Installation would be done in "%out/stepmania-X.Y", but we
7937 ;; prefer the more common layout "%out/share/stepmania".
7939 (substitute* "src/CMakeLists.txt"
7940 (("\"stepmania-.*?\"") "\"share/stepmania\""))
7942 (add-after 'unpack 'unbundle-libpng
7943 (lambda* (#:key inputs #:allow-other-keys)
7944 (substitute* "src/CMakeLists.txt"
7945 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
7946 (string-append (assoc-ref inputs "libpng") "/include")))
7948 (add-after 'install 'install-executable
7949 (lambda* (#:key outputs #:allow-other-keys)
7950 (let* ((out (assoc-ref outputs "out"))
7951 (bin (string-append out "/bin"))
7952 (exe (string-append out "/share/stepmania/stepmania")))
7954 (symlink exe (string-append bin "/stepmania"))
7956 (add-after 'install-executable 'install-desktop
7957 (lambda* (#:key outputs #:allow-other-keys)
7958 (let* ((out (assoc-ref outputs "out"))
7959 (share (string-append out "/share"))
7960 (applications (string-append share "/applications"))
7961 (icons (string-append share "/icons")))
7962 (install-file "stepmania.desktop" applications)
7964 (copy-recursively "icons" icons)
7966 ;; Move documentation in a more usual place, i.e.,
7967 ;; "%out/share/doc/stepmania/".
7968 (add-after 'install-desktop 'install-doc
7969 (lambda* (#:key outputs #:allow-other-keys)
7970 (let* ((out (assoc-ref outputs "out"))
7971 (share (string-append out "/share")))
7972 (with-directory-excursion share
7974 (symlink "../stepmania/Docs" "doc/stepmania"))
7977 `(("pkg-config" ,pkg-config)
7980 `(("alsa-lib" ,alsa-lib)
7981 ;; Per upstream, StepMania is only guaranteed to work with a very
7982 ;; specific FFmpeg version, which is included in the repository as
7983 ;; a Git submodule. This particular version requirement usually
7984 ;; changes every few years.
7985 ("ffmpeg" ,ffmpeg-for-stepmania)
7989 ("jsoncpp" ,jsoncpp)
7991 ("libjpeg" ,libjpeg-turbo)
7995 ("libvorbis" ,libvorbis)
7996 ("libxinerama" ,libxinerama)
7997 ("libxrandr" ,libxrandr)
8000 ("pulseaudio" ,pulseaudio)
8004 (synopsis "Advanced rhythm game designed for both home and arcade use")
8005 (description "StepMania is a dance and rhythm game. It features 3D
8006 graphics, keyboard and dance pad support, and an editor for creating your own
8009 This package provides the core application, but no song is shipped. You need
8010 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8011 (home-page "https://www.stepmania.com")
8012 (license license:expat)))
8014 (define-public btanks
8017 (version "0.9.8083")
8021 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8022 "btanks-" version ".tar.bz2"))
8025 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8026 (build-system scons-build-system)
8028 `(#:tests? #f ; there are none
8029 #:scons ,scons-python2
8030 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8032 (modify-phases %standard-phases
8033 (add-after 'unpack 'replace-removed-scons-syntax
8035 (substitute* "SConstruct"
8036 (("Options") "Variables")
8037 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8038 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8040 (add-after 'set-paths 'set-sdl-paths
8041 (lambda* (#:key inputs #:allow-other-keys)
8043 (string-append (assoc-ref inputs "sdl")
8045 (or (getenv "CPATH") "")))
8047 (add-after 'unpack 'fix-compilation-errors
8049 (substitute* "mrt/base_file.h"
8050 (("#include <string>" m)
8051 (string-append m "\n#include <sys/types.h>")))
8052 (substitute* '("engine/sl08/sl08.h"
8053 "engine/sl08/sl08.py")
8054 (("signal = NULL") "signal = 0")
8055 (("object\\(NULL\\)") "object(0)")
8056 (("func\\(NULL\\)") "func(0)")
8057 ((" connect\\(signal_ref\\)")
8058 " this->connect(signal_ref)"))
8059 (substitute* "math/range_list.h"
8060 ((" lower_bound\\(value\\)")
8061 " this->lower_bound(value)")
8064 (substitute* "clunk/source.cpp"
8065 (("using namespace clunk" m)
8066 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8068 (add-after 'unpack 'find-lua
8070 (substitute* "engine/SConscript"
8071 (("lua5.1") "lua-5.1")
8072 (("bt_libs.append\\(lua\\)")
8073 "bt_libs.append(\"lua\")"))
8078 ("libsmpeg" ,libsmpeg-with-sdl1)
8079 ("libvorbis" ,libvorbis)
8081 ("sdl" ,(sdl-union (list sdl
8087 `(("pkg-config" ,pkg-config)
8089 (home-page "http://btanks.sourceforge.net")
8090 (synopsis "Multiplayer tank battle game")
8091 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8092 game, where you can choose one of three vehicles and eliminate your enemy
8093 using the whole arsenal of weapons. It has original cartoon-like graphics and
8094 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8096 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8097 ;; released under GPLv2 or later. It comes with extra exceptions for the
8099 (license (list license:gpl2+ license:lgpl2.1+))))
8101 (define-public slingshot
8109 (url "https://github.com/ryanakca/slingshot")
8111 (file-name (git-file-name name version))
8114 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8115 (build-system python-build-system)
8117 `(#:python ,python-2))
8119 `(("python-pygame" ,python2-pygame)))
8120 (home-page "https://github.com/ryanakca/slingshot")
8121 (synopsis "Simple 2D shooting strategy game set in space")
8122 (description "Slingshot is a two-dimensional strategy game where two
8123 players attempt to shoot one another through a section of space populated by
8124 planets. The main feature of the game is that the shots, once fired, are
8125 affected by the gravity of the planets.")
8126 (license license:gpl2+)))
8128 (define-public 4dtris
8135 (uri (string-append "https://launchpad.net/4dtris/"
8136 (version-major+minor version)
8137 "/" version "/+download/4dtris_"
8138 version ".orig.tar.gz"))
8141 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8142 (build-system gnu-build-system)
8145 (modify-phases %standard-phases
8146 (add-after 'unpack 'fix-install-directories
8147 (lambda* (#:key outputs #:allow-other-keys)
8148 (let ((out (assoc-ref outputs "out")))
8149 (substitute* "Makefile.in"
8150 (("bindir = /usr/games")
8151 (string-append "bindir = " out "/bin"))
8152 (("/usr/share/applications")
8153 (string-append out "/share/applications"))
8154 (("/usr/share/games/4dtris")
8155 (string-append out "/share/4dtris"))))
8157 (add-after 'set-paths 'set-sdl-paths
8158 (lambda* (#:key inputs #:allow-other-keys)
8160 (string-append (assoc-ref inputs "sdl")
8162 (or (getenv "CPATH") "")))
8165 `(("fontconfig" ,fontconfig)
8166 ("freeglut" ,freeglut)
8167 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8168 (home-page "https://launchpad.net/4dtris/")
8169 (synopsis "4D Tetris")
8170 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8171 game field is extended to 4D space, which has to filled up by the gamer with
8173 (license license:gpl3)))
8175 (define-public arx-libertatis
8177 (name "arx-libertatis")
8182 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8186 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8187 (build-system cmake-build-system)
8188 (outputs '("out" "installer"))
8190 '(#:tests? #f ; No tests.
8192 (modify-phases %standard-phases
8193 (add-after 'unpack 'fix-install-helper-paths
8194 (lambda* (#:key inputs #:allow-other-keys)
8195 (let ((p7zip (assoc-ref inputs "p7zip"))
8196 (innoextract (assoc-ref inputs "innoextract"))
8197 (wget (assoc-ref inputs "wget"))
8198 (zenity (assoc-ref inputs "zenity")))
8199 (substitute* "scripts/arx-install-data"
8200 (("have innoextract")
8201 (string-append "have " innoextract "/bin/innoextract"))
8202 (("then innoextract")
8203 (string-append "then " innoextract "/bin/innoextract"))
8204 (("else innoextract")
8205 (string-append "else " innoextract "/bin/innoextract"))
8206 (("for _extract_zip_sz in 7za 7z")
8207 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8208 (("else if have 7z")
8209 (string-append "else if have " p7zip "/bin/7za"))
8211 (string-append p7zip "/bin/7z x -tiso"))
8213 (string-append "if have " wget "/bin/wget"))
8215 (string-append wget "/bin/wget -O"))
8216 (("for backend in \\$preferred zenity")
8217 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8218 (("zenity +--title")
8219 (string-append zenity "/bin/zenity --title"))
8221 (string-append zenity "/bin/zenity)"))))
8223 (add-after 'install 'move-installer
8224 (lambda* (#:key outputs #:allow-other-keys)
8225 (let ((out (assoc-ref outputs "out"))
8226 (installer (assoc-ref outputs "installer")))
8227 (mkdir-p (string-append installer "/bin"))
8228 (rename-file (string-append out "/bin/arx-install-data")
8229 (string-append installer "/bin/arx-install-data"))))))))
8231 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8232 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8238 ("freetype" ,freetype)
8239 ;; The following are only needed by the arx-install-data script.
8240 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8241 ("zenity" ,zenity) ; GUI for install-helper.
8242 ("wget" ,wget) ; Used by the install-helper to download the patch.
8243 ;; The install-helper needs it to extract the patch.
8244 ("innoextract" ,innoextract)))
8245 (home-page "https://arx-libertatis.org/")
8246 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8247 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8248 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8249 This port however does not include the game data, so you need to obtain a copy
8250 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8251 features crafting, melee and ranged combat, as well as a unique casting system
8252 where the player draws runes in real time to effect the desired spell.")
8253 (license license:gpl3+)))
8255 (define-public edgar
8263 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8264 version "/edgar-" version "-1.tar.gz"))
8266 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8267 (build-system gnu-build-system)
8268 (arguments '(#:tests? #f ; there are no tests
8271 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8272 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8274 (modify-phases %standard-phases
8276 (add-before 'build 'fix-env
8277 (lambda* (#:key inputs #:allow-other-keys)
8279 (string-append (assoc-ref inputs "sdl2-union")
8281 (or (getenv "CPATH") "")))
8284 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8287 `(("pkg-config" ,pkg-config)
8288 ("autoconf" ,autoconf)
8289 ("automake" ,automake)
8290 ("gnu-gettext" ,gettext-minimal)
8291 ("libtool" ,libtool)
8293 (synopsis "2d action platformer game")
8294 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8295 When Edgar's father fails to return home after venturing out one dark and stormy night,
8296 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8297 a fortress beyond the forbidden swamp.")
8298 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8299 (license license:gpl2+)))
8301 (define-public openclonk
8308 "https://www.openclonk.org/builds/release/" version "/"
8309 "openclonk-" version "-src.tar.bz2"))
8312 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8313 (build-system cmake-build-system)
8315 `(#:configure-flags '("-DAudio_TK=OpenAL")
8316 #:test-target "tests"
8318 (modify-phases %standard-phases
8319 (add-after 'unpack 'prepare-gmock
8320 (lambda* (#:key inputs #:allow-other-keys)
8322 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8323 (substitute* "tests/CMakeLists.txt"
8325 (string-append (getcwd) "/gmock/googlemock"))
8327 (string-append (getcwd) "/gmock/googletest"))
8328 (("PATH_SUFFIXES \"src\" \"gtest\"")
8329 "PATH_SUFFIXES \"src\""))
8331 (add-after 'unpack 'adjust-backward-cpp-includes
8333 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8334 ;; that includes external libraries such as libdl from glibc.
8335 ;; By default, CMake interface includes are treated as "system
8336 ;; headers", and GCC behaves poorly when glibc is passed as a
8337 ;; system header (causing #include_next failures).
8339 ;; Here we prevent targets that consume the Backward::Backward
8340 ;; interface from treating it as "system includes".
8341 (substitute* "CMakeLists.txt"
8342 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8343 (string-append "set_property(TARGET " target " PROPERTY "
8344 "NO_SYSTEM_FROM_IMPORTED true)\n"
8347 (add-after 'unpack 'add-libiberty
8348 ;; Build fails upon linking executables without this.
8350 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8351 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8352 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8354 (add-after 'add-libiberty 'lax-freealut-requirement
8355 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8356 ;; it as 1.0.1. Force minimal version.
8358 (substitute* "cmake/FindAudio.cmake"
8359 (("freealut>=1.1.0") "freealut>=1.0.1"))
8361 (add-after 'lax-freealut-requirement 'fix-directories
8362 ;; Prefer "$out/share/openclonk" over
8363 ;; "$out/share/games/openclonk". Also install "openclonk"
8364 ;; binary in "bin/", not "games/".
8366 (substitute* "CMakeLists.txt"
8367 (("share/games/openclonk") "share/openclonk")
8368 (("TARGETS openclonk DESTINATION games")
8369 "TARGETS openclonk DESTINATION bin"))
8372 `(("googlemock" ,(package-source googletest))
8373 ("googletest" ,googletest)
8374 ("pkg-config" ,pkg-config)))
8376 `(("freealut" ,freealut)
8377 ("freetype" ,freetype)
8379 ("libiberty" ,libiberty)
8380 ("libjpeg" ,libjpeg-turbo)
8383 ("libvorbis" ,libvorbis)
8384 ("libxrandr" ,libxrandr)
8386 ("miniupnpc" ,miniupnpc)
8389 ("readline" ,readline)
8391 ("tinyxml" ,tinyxml)
8393 (home-page "https://www.openclonk.org/")
8395 "Multiplayer action game where you control small and nimble humanoids")
8396 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8397 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8398 antfarm-style landscape, the player controls a crew of Clonks, small but
8399 robust humanoid beings. The game encourages free play but the normal goal is
8400 to either exploit valuable resources from the earth by building a mine or
8401 fight each other on an arena-like map.")
8402 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8403 (license (list license:isc license:cc-by3.0))))
8405 (define-public flare-engine
8407 (name "flare-engine")
8412 (url "https://github.com/flareteam/flare-engine")
8413 (commit (string-append "v" version))))
8414 (file-name (git-file-name name version))
8417 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8418 (build-system cmake-build-system)
8420 `(#:tests? #f ;no test
8421 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8423 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8424 ("python" ,python-wrapper)
8425 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8426 (home-page "http://www.flarerpg.org/")
8427 (synopsis "Action Roleplaying Engine")
8428 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8429 game engine built to handle a very specific kind of game: single-player 2D
8431 (license license:gpl3+)))
8433 (define-public flare-game
8440 (url "https://github.com/flareteam/flare-game")
8441 (commit (string-append "v" version))))
8442 (file-name (git-file-name name version))
8445 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8446 (build-system cmake-build-system)
8448 `(#:tests? #f ;no test
8449 #:configure-flags '("-DDATADIR=share/flare")
8451 (modify-phases %standard-phases
8452 ;; Flare expects the mods to be located in the same folder.
8453 ;; Yet, "default" mod is in the engine, whereas the others
8454 ;; are in the current package. Merge everything here with
8456 (add-after 'install 'add-default-mod
8457 (lambda* (#:key inputs outputs #:allow-other-keys)
8458 (let* ((out (assoc-ref outputs "out"))
8459 (mods (string-append out "/share/flare/mods")))
8460 (with-directory-excursion mods
8461 (symlink (string-append (assoc-ref inputs "flare-engine")
8462 "/share/flare/mods/default")
8465 (add-after 'install 'install-executable
8466 ;; The package only provides assets for the game, the
8467 ;; executable coming from "flare-engine". Since more than
8468 ;; one game may use the engine, we create a new executable,
8469 ;; "flare-game", which launches the engine with appropriate
8471 (lambda* (#:key inputs outputs #:allow-other-keys)
8472 (let* ((out (assoc-ref outputs "out"))
8473 (bash (string-append (assoc-ref inputs "bash")
8475 (flare (string-append (assoc-ref inputs "flare-engine")
8477 (script (string-append out "/bin/flare-game")))
8478 (mkdir-p (dirname script))
8479 (call-with-output-file script
8483 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8487 (chmod script #o755))
8490 `(("flare-engine" ,flare-engine)))
8491 (home-page "http://www.flarerpg.org/")
8492 (synopsis "Fantasy action RPG using the FLARE engine")
8493 (description "Flare is a single-player 2D action RPG with
8494 fast-paced action and a dark fantasy style.")
8495 (license license:cc-by-sa3.0)))
8497 (define-public meritous
8504 (url "https://gitlab.com/meritous/meritous.git")
8505 (commit (string-append "v" version))))
8506 (file-name (git-file-name name version))
8509 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8510 (build-system gnu-build-system)
8512 `(#:tests? #f ;no test
8515 (string-append "prefix=" (assoc-ref %outputs "out")))
8517 (modify-phases %standard-phases
8519 (add-after 'unpack 'fix-sdl-path
8520 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
8521 ;; directory, not SDL-union provided as an input to the package.
8522 ;; We force the latter with "--prefix=" option.
8523 (lambda* (#:key inputs #:allow-other-keys)
8524 (substitute* "Makefile"
8525 (("sdl-config" command)
8526 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8528 (add-after 'unpack 'fix-crash
8529 ;; XXX: Songs are not present in the repository, due to licensing
8530 ;; issues. Yet, the game tries to load them, and, since it cannot
8531 ;; find them, crashes. Users cannot add them back, the store being
8532 ;; read-only, so we turn off background music altogether.
8534 (substitute* "src/audio.c"
8535 (("PlayBackgroundMusic\\(new_track\\);" all)
8536 (string-append "// " all)))
8539 `(("intltool" ,intltool)))
8541 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
8543 (home-page "https://gitlab.com/meritous/meritous")
8544 (synopsis "Action-adventure dungeon crawl game")
8545 (description "Far below the surface of the planet is a place of limitless
8546 power. Those that seek to control such a utopia will soon bring an end to
8547 themselves. Seeking an end to the troubles that plague him, PSI user Merit
8548 journeys into the hallowed Orcus Dome in search of answers.
8550 Meritous is a action-adventure game with simple controls but a challenge to
8551 find a balance of power versus recovery time during real-time battles. Set in
8552 a procedurally generated world, the player can explore thousands of rooms in
8553 search of powerful artifacts, tools to help them, and to eventually free the
8554 Orcus Dome from evil.")
8555 (license license:gpl3+)))
8557 (define-public marble-marcher
8558 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
8561 (name "marble-marcher")
8562 (version (git-version "0" revision commit))
8566 (url "https://github.com/HackerPoet/MarbleMarcher")
8568 (file-name (git-file-name name version))
8571 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
8572 (build-system cmake-build-system)
8574 `(#:tests? #f ; there are none
8576 (modify-phases %standard-phases
8577 (add-after 'unpack 'embed-asset-directory
8578 (lambda* (#:key outputs #:allow-other-keys)
8579 (let ((assets (string-append (assoc-ref outputs "out")
8580 "/share/marble-marcher/assets/")))
8581 ;; Some of the files we're patching are
8582 ;; ISO-8859-1-encoded, so choose it as the default
8583 ;; encoding so the byte encoding is preserved.
8584 (with-fluids ((%default-port-encoding #f))
8585 (substitute* "src/Resource.rc"
8586 (("../assets/icon.ico")
8587 (string-append assets "icon.ico")))
8588 (substitute* "src/Res.h"
8589 (("assets/") assets))))
8592 (lambda* (#:key outputs #:allow-other-keys)
8593 (let* ((out (assoc-ref outputs "out"))
8594 (assets (string-append out "/share/marble-marcher/assets"))
8595 (bin (string-append out "/bin/")))
8598 (copy-recursively "../source/assets" assets)
8599 (install-file "MarbleMarcher" bin))
8606 `(("pkg-config" ,pkg-config)))
8607 (home-page "https://codeparade.itch.io/marblemarcher")
8608 (synopsis "Guide a marble across fractal landscapes")
8609 (description "Marble Marcher is a video game that uses a fractal physics
8610 engine and fully procedural rendering to produce beautiful and unique
8611 gameplay. The game is played on the surface of evolving fractals. The goal
8612 of the game is to get your marble to the flag as quickly as possible. But be
8613 careful not to fall off the level or get crushed by the fractal! There are 24
8615 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
8616 (license (list license:gpl2+
8618 license:cc-by-sa3.0)))))
8620 ;; This must be updated together with flightgear.
8624 (version "2018.3.2")
8627 (uri (string-append "mirror://sourceforge/flightgear/release-"
8628 (version-major+minor version) "/"
8629 "simgear-" version ".tar.bz2"))
8632 "1941ay8rngz4vwsx37bbpxr48hpcvcbj3xw1hy264lq4qnl99c68"))))
8633 (build-system cmake-build-system)
8636 (modify-phases %standard-phases
8639 ;; Skip tests that require internet access.
8640 (invoke "ctest" "-E" "(http|dns)"))))))
8642 `(("boost" ,boost-for-mysql) ; fails with 1.69
8647 ("openscenegraph" ,openscenegraph-3.4)
8649 (home-page "https://home.flightgear.org/")
8650 (synopsis "Libraries for 3D simulations and games")
8651 (description "SimGear is a set of libraries designed to be used as
8652 building blocks for quickly assembling 3D simulations, games, and
8653 visualization applications. SimGear is developed by the FlightGear project
8654 and also provides the base for the FlightGear Flight Simulator.")
8655 (license license:lgpl2.0+)))
8657 (define-public flightgear
8660 (version (package-version simgear))
8663 (uri (string-append "mirror://sourceforge/flightgear/release-"
8664 (version-major+minor version) "/"
8665 "flightgear-" version ".tar.bz2"))
8668 "0lzy524cjzs8vldcjcc750bgg5c4mq9fkymxxxzqf68ilc4d1jss"))
8669 (modules '((guix build utils)))
8672 ;; There are some bundled libraries.
8673 (for-each delete-file-recursively
8674 '("3rdparty/sqlite3/"))
8676 (build-system cmake-build-system)
8679 (list "-DSYSTEM_SQLITE=ON"
8680 (string-append "-DFG_DATA_DIR="
8681 (assoc-ref %outputs "out")
8682 "/share/flightgear"))
8683 ;; TODO: test cannot be run because the "run_test_suite" executable
8684 ;; does not seem to be built.
8687 (modify-phases %standard-phases
8688 (add-after 'install 'wrap-executable
8689 (lambda* (#:key inputs outputs #:allow-other-keys)
8690 (let ((out (assoc-ref outputs "out")))
8691 (wrap-program (string-append out "/bin/fgfs")
8692 `("QT_PLUGIN_PATH" ":" prefix
8693 ,(map (lambda (label)
8694 (string-append (assoc-ref inputs label)
8695 "/lib/qt5/plugins"))
8696 '("qtbase" "qtdeclarative" "qtsvg")))
8697 `("QML2_IMPORT_PATH" ":" prefix
8698 ,(map (lambda (label)
8699 (string-append (assoc-ref inputs label)
8701 '("qtdeclarative" "qtsvg"))))
8703 (add-after 'install 'install-data
8704 (lambda* (#:key inputs outputs #:allow-other-keys)
8705 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
8707 (with-directory-excursion share
8708 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
8709 "--strip-components=1")))
8712 `(("boost" ,boost-for-mysql) ; same as simgear
8715 ("freeglut" ,freeglut)
8716 ("freetype" ,freetype)
8720 ("openscenegraph" ,openscenegraph-3.4)
8723 ("qtdeclarative" ,qtdeclarative)
8725 ("simgear" ,simgear)
8726 ("speexdsp" ,speexdsp)
8730 `(("cppunit" ,cppunit)
8731 ("pkg-config" ,pkg-config)
8732 ("qttools" ,qttools)
8736 (uri (string-append "mirror://sourceforge/flightgear/release-"
8737 (version-major+minor version) "/"
8738 "FlightGear-" version "-data.tar.bz2"))
8741 "0h4npa7gqpf5fw6pv2bpw0wbwr7fa2vhia21cjbigfgd75x82zi7"))))))
8742 (home-page "https://home.flightgear.org/")
8743 (synopsis "Flight simulator")
8744 (description "The goal of the FlightGear project is to create a
8745 sophisticated flight simulator framework for use in research or academic
8746 environments, pilot training, as an industry engineering tool, for DIY-ers to
8747 pursue their favorite interesting flight simulation idea, and last but
8748 certainly not least as a fun, realistic, and challenging desktop flight
8750 (license license:gpl2+)))
8752 (define-public jumpnbump
8759 (url "https://gitlab.com/LibreGames/jumpnbump.git")
8761 (file-name (git-file-name name version))
8764 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
8765 (build-system gnu-build-system)
8769 (string-append "PREFIX=" (assoc-ref %outputs "out")))
8770 #:tests? #f ;no test
8772 (modify-phases %standard-phases
8773 (delete 'configure) ;no configure script
8774 (add-after 'unpack 'fix-sdl-path
8775 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
8776 ;; directory, not SDL-union provided as an input to the package.
8777 ;; We force the latter with "--prefix=" option.
8778 (lambda* (#:key inputs #:allow-other-keys)
8779 (substitute* "Makefile"
8780 (("sdl2-config" command)
8781 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8785 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
8788 `(("gettext" ,gettext-minimal))) ;for msgfmt
8789 (home-page "https://gitlab.com/LibreGames/jumpnbump")
8790 (synopsis "Multiplayer platform game with bunnies")
8791 (description "You, as a bunny, have to jump on your opponents to make them
8792 explode. It is a true multiplayer game; you cannot play this alone. You can
8793 play with up to four players simultaneously. It has network support.")
8794 (license license:gpl2+)))
8796 (define-public hedgewars
8802 (uri (string-append "https://www.hedgewars.org/download/releases/"
8803 "hedgewars-src-" version ".tar.bz2"))
8806 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
8807 (build-system cmake-build-system)
8809 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
8810 ;; Compiler, which we haven't packaged yet. With the flag below, we use
8811 ;; a Pascal to C translator and Clang instead.
8812 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON")
8814 (modify-phases %standard-phases
8816 (lambda _ (invoke "ctest"))))))
8818 `(("ffmpeg" ,ffmpeg)
8819 ("freeglut" ,freeglut)
8820 ("ghc-entropy" ,ghc-entropy)
8821 ("ghc-hslogger" ,ghc-hslogger)
8822 ("ghc-network" ,ghc-network)
8823 ("ghc-random" ,ghc-random)
8824 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
8825 ("ghc-sandi" ,ghc-sandi)
8826 ("ghc-sha" ,ghc-sha)
8827 ("ghc-utf8-string" ,ghc-utf8-string)
8828 ("ghc-vector" ,ghc-vector)
8829 ("ghc-zlib" ,ghc-zlib)
8836 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
8840 ("pkg-config" ,pkg-config)
8841 ("qttools" ,qttools)))
8842 (home-page "https://hedgewars.org/")
8843 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
8845 "Hedgewars is a turn based strategy, artillery, action and comedy game,
8846 featuring the antics of pink hedgehogs with attitude as they battle from the
8847 depths of hell to the depths of space.
8849 As commander, it's your job to assemble your crack team of hedgehog soldiers
8850 and bring the war to your enemy.")
8851 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
8852 ;; scripts are distributed under various terms.
8853 (license (list license:gpl2
8854 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
8855 license:expat license:fdl1.3+ license:public-domain
8858 (define-public harmonist
8865 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
8866 (commit (string-append "v" version))))
8867 (file-name (git-file-name name version))
8870 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
8871 (build-system go-build-system)
8873 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
8875 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
8876 (home-page "https://harmonist.tuxfamily.org/")
8877 (synopsis "Stealth coffee-break roguelike game")
8878 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
8879 coffee-break roguelike game. The game has a heavy focus on tactical
8880 positioning, light and noise mechanisms, making use of various terrain types
8881 and cones of view for monsters. Aiming for a replayable streamlined experience,
8882 the game avoids complex inventory management and character building, relying
8883 on items and player adaptability for character progression.")
8884 (license license:isc)))
8886 (define-public harmonist-tk
8889 (name "harmonist-tk")
8892 (package-arguments harmonist)
8894 (modify-phases %standard-phases
8897 (invoke "go" "install" "-v" "-x" "--tags" "tk"
8898 "git.tuxfamily.org/harmonist/harmonist")))
8901 (invoke "go" "test" "--tags" "tk"
8902 "git.tuxfamily.org/harmonist/harmonist")))))))
8904 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
8906 (define-public drascula
8912 (uri (string-append "mirror://sourceforge/scummvm/extras/"
8913 "Drascula_%20The%20Vampire%20Strikes%20Back/"
8914 "drascula-" version ".zip"))
8917 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
8918 (build-system trivial-build-system)
8920 `(#:modules ((guix build utils))
8923 (use-modules (guix build utils)
8925 (let* ((out (assoc-ref %outputs "out"))
8926 (share (string-append out "/share/drascula"))
8927 (scummvm (assoc-ref %build-inputs "scummvm")))
8929 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
8931 (doc (string-append out "/share/doc/" ,name "-" ,version)))
8936 (assoc-ref %build-inputs input)
8938 ;; Every input provides "readme.txt", and we want to
8939 ;; preserve them all. Therefore we rename them first.
8942 (rename-file "readme.txt" "readme-international.txt"))
8944 (rename-file "readme.txt" "readme-audio.txt"))
8946 ;; Install documentation.
8947 (for-each (lambda (f) (install-file f doc))
8948 (find-files "." "\\.(txt|doc)$"))
8950 (for-each (lambda (f) (install-file f share))
8951 (find-files "." "\\.(ogg|00[0-9])$")))
8952 '("drascula-audio" "drascula-int" "source")))
8953 ;; Create standalone executable.
8954 (let* ((bin (string-append out "/bin"))
8955 (executable (string-append bin "/drascula"))
8956 (bash (string-append (assoc-ref %build-inputs "bash")
8959 (with-output-to-file executable
8961 (format #t "#!~a~%" bash)
8963 "exec ~a/bin/scummvm --path=~a drascula~%"
8965 (chmod executable #o755))
8966 ;; Create desktop file. There is no dedicated icon for the
8967 ;; game, so we borrow SCUMMVM's.
8968 (let ((apps (string-append out "/share/applications")))
8970 (make-desktop-entry-file
8971 (string-append apps "/drascula.desktop")
8972 #:name "Drascula: The Vampire Strikes Back"
8973 #:generic-name "Drascula"
8974 #:exec (string-append out "/bin/drascula")
8975 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
8976 #:categories '("AdventureGame" "Game" "RolePlaying")
8977 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
8978 #:comment '((#f "Classic 2D point and click adventure game")
8979 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
8980 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
8981 ("it" "Gioco classico di avventura punta e clicca 2D"))))
8987 `(("scummvm" ,scummvm)
8989 ,(let ((version "1.1"))
8992 (uri (string-append "mirror://sourceforge/scummvm/extras/"
8993 "Drascula_%20The%20Vampire%20Strikes%20Back/"
8994 "drascula-int-" version ".zip"))
8997 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
8999 ,(let ((version "2.0"))
9002 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9003 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9004 "drascula-audio-" version ".zip"))
9007 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9008 (home-page "https://www.scummvm.org")
9009 (synopsis "Classic 2D point and click adventure game")
9010 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9011 point and click adventure game.
9013 In Drascula you play the role of John Hacker, a British estate agent, that
9014 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9015 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9016 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9017 the World and demonstrating that he is even more evil than his brother Vlad.")
9018 ;; Drascula uses a BSD-like license.
9019 (license (license:non-copyleft "file:///readme.txt"))))
9021 (define (make-lure-package name language hash)
9029 "mirror://sourceforge/scummvm/extras/"
9030 "Lure%20of%20the%20Temptress/"
9031 name "-" version ".zip"))
9034 (build-system trivial-build-system)
9036 `(#:modules ((guix build utils))
9039 (use-modules (guix build utils))
9040 (let* ((out (assoc-ref %outputs "out"))
9041 (share (string-append out "/share"))
9042 (data (string-append share "/" ,name "/" ,language))
9043 (apps (string-append share "/applications"))
9044 (bin (string-append out "/bin"))
9045 (executable (string-append bin "/" ,name))
9046 (scummvm (assoc-ref %build-inputs "scummvm")))
9047 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9049 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9050 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9051 (for-each (lambda (f) (install-file f doc))
9052 (find-files "." "\\.(txt|PDF|pdf)$")))
9053 (for-each (lambda (f) (install-file f data))
9054 (find-files "." "\\.(vga|VGA)$"))
9055 ;; Build the executable.
9057 (let ((bash (assoc-ref %build-inputs "bash")))
9058 (with-output-to-file executable
9060 (format #t "#!~a/bin/bash~%" bash)
9061 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9062 scummvm ,language data))))
9063 (chmod executable #o755)
9064 ;; Create desktop file. There is no dedicated
9065 ;; icon for the game, so we borrow SCUMMVM's.
9067 (with-output-to-file (string-append apps "/" ,name ".desktop")
9071 Name=Lure of the Temptress~@
9074 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9075 Categories=AdventureGame;Game;RolePlaying;~@
9076 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9077 Comment=Classic 2D point and click adventure game~@
9078 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9079 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9080 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9082 executable scummvm)))
9085 `(("unzip" ,unzip)))
9088 ("scummvm" ,scummvm)))
9089 (home-page "https://www.scummvm.org")
9090 (synopsis "2D point and click fantasy adventure game")
9092 "Lure of the Temptress is a classic 2D point and click adventure game.
9094 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9095 intents and purposes, a good man. After decades of unrest the King has united
9096 the warring factions in his kingdom and all his lands are at peace, except
9097 a remote region around a town called Turnvale. A revolt has recently taken
9098 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9099 Selena, the titular temptress. The king calls together his finest horsemen
9100 and heads off (with you in tow) to Turnvale just to witness how hellish
9101 mercenary monsters called Skorl are invading the town.
9103 The king's men are defeated, the king is killed and you fall of your horse and
9104 bang your head heavily on the ground. You have been *unconscious for a while
9105 when you realize that you are in a dingy cell guarded by a not so friendly
9106 Skorl. Maybe it would be an idea to try and escape...")
9107 (license (license:non-copyleft "file:///README"))))
9111 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9113 (define-public lure-de
9115 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9117 (define-public lure-es
9119 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9121 (define-public lure-fr
9123 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9125 (define-public lure-it
9127 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9129 (define (make-queen-package name file-prefix release language hash)
9136 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9137 "Flight%20of%20the%20Amazon%20Queen/"
9138 file-prefix release ".zip"))
9141 (build-system trivial-build-system)
9143 `(#:modules ((guix build utils))
9146 (use-modules (guix build utils))
9147 (let* ((out (assoc-ref %outputs "out"))
9148 (share (string-append out "/share"))
9149 (data (string-append share "/" ,name))
9150 (apps (string-append share "/applications"))
9151 (bin (string-append out "/bin"))
9152 (executable (string-append bin "/" ,name))
9153 (scummvm (assoc-ref %build-inputs "scummvm")))
9154 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9156 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9157 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9158 (install-file "readme.txt" doc))
9159 (install-file "queen.1c" data)
9161 (let ((bash (assoc-ref %build-inputs "bash")))
9162 (with-output-to-file executable
9164 (format #t "#!~a/bin/bash~%" bash)
9165 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9167 (chmod executable #o755)
9168 ;; Create desktop file. There is no dedicated
9169 ;; icon for the game, so we borrow SCUMMVM's.
9171 (with-output-to-file (string-append apps "/" ,name ".desktop")
9175 Name=Flight of the Amazon Queen~@
9177 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~@
9178 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~@
9181 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9182 Categories=AdventureGame;Game;RolePlaying;~@
9183 Keywords=adventure;game;roleplaying;fantasy;~%"
9184 executable scummvm))))
9187 `(("unzip" ,unzip)))
9190 ("scummvm" ,scummvm)))
9191 (home-page "https://www.scummvm.org/")
9192 (synopsis "Classic 2D point and click adventure game")
9193 (description "Flight of the Amazon Queen is a 2D point-and-click
9194 adventure game set in the 1940s.
9196 You assume the role of Joe King, a pilot for hire who is given the job
9197 of flying Faye Russell (a famous movie star) into the Amazon jungle
9198 for a photo shoot. Of course, things never go according to plans.
9199 After an unfortunate turn of events they find themselves stranded in
9200 the heart of the Amazon jungle, where Joe will embark on a quest to
9201 rescue a kidnapped princess and in the process, discover the true
9202 sinister intentions of a suspiciously located Lederhosen company. In
9203 a rich 2D environment, Joe will cross paths with a variety of unlikely
9204 jungle inhabitants including, but not limited to, a tribe of Amazon
9205 women and 6-foot-tall pygmies.")
9206 (license (license:non-copyleft "file:///readme.txt"))))
9208 (define-public queen
9210 "queen" "FOTAQ_Talkie-" "1.1" "en"
9211 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9213 (define-public queen-de
9215 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9216 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9218 (define-public queen-fr
9220 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9221 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9223 (define-public queen-it
9225 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9226 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9231 (version "1.2") ;1.3 is floppy version
9235 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9236 "Beneath%20a%20Steel%20Sky/"
9237 "bass-cd-" version ".zip"))
9239 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9240 (build-system trivial-build-system)
9242 `(#:modules ((guix build utils))
9245 (use-modules (guix build utils))
9246 (let* ((out (assoc-ref %outputs "out"))
9247 (share (string-append out "/share"))
9248 (data (string-append share "/" ,name))
9249 (apps (string-append share "/applications"))
9250 (bin (string-append out "/bin"))
9251 (executable (string-append bin "/" ,name))
9252 (scummvm (assoc-ref %build-inputs "scummvm")))
9253 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9255 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9256 (let ((doc (string-append share "/doc/bass-" ,version)))
9257 (install-file "readme.txt" doc))
9258 (for-each (lambda (f) (install-file f data))
9259 (find-files "." "^sky\\."))
9260 ;; Build the executable.
9262 (let ((bash (assoc-ref %build-inputs "bash")))
9263 (with-output-to-file executable
9265 (format #t "#!~a/bin/bash~%" bash)
9266 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9267 (chmod executable #o755)
9268 ;; Create desktop file. There is no dedicated
9269 ;; icon for the game, so we borrow SCUMMVM's.
9271 (with-output-to-file (string-append apps "/" ,name ".desktop")
9275 Name=Beneath a Steel Sky~@
9278 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9279 Categories=AdventureGame;Game;RolePlaying;~@
9280 Keywords=adventure;game;roleplaying;cyberpunk;~@
9281 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9282 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9283 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9285 executable scummvm)))
9288 `(("unzip" ,unzip)))
9291 ("scummvm" ,scummvm)))
9292 (home-page "https://www.scummvm.org/")
9293 (synopsis "Classic 2D point an click science-fiction adventure game")
9295 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9296 post-apocalyptic vision of the future. It revolves around Union City,
9297 where selfishness, rivalry, and corruption by its citizens seems to be
9298 all too common, those who can afford it live underground, away from
9299 the pollution and social problems which are plaguing the city.
9301 You take on the role of Robert Foster, an outcast of sorts from the
9302 city since a boy who was raised in a remote environment outside of
9303 Union City simply termed ``the gap''. Robert's mother took him away
9304 from Union City as a child on their way to ``Hobart'' but the
9305 helicopter crashed on its way. Unfortunately, Robert's mother died,
9306 but he survived and was left to be raised by a local tribe from the
9309 Years later, Union City security drops by and abducts Robert, killing
9310 his tribe in the process; upon reaching the city the helicopter taking
9311 him there crashes with him escaping, high upon a tower block in the
9312 middle of the city. He sets out to discover the truth about his past,
9313 and to seek vengeance for the killing of his tribe.")
9314 (license (license:non-copyleft "file:///readme.txt"))))
9316 (define-public gnurobots
9323 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9327 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9328 (build-system gnu-build-system)
9333 ("readline" ,readline)
9334 ("guile" ,guile-1.8)))
9336 `(("pkg-config" ,pkg-config)))
9340 ;; Do not abort build on "deprecated-declarations" warnings.
9341 "CFLAGS=-Wno-error=deprecated-declarations"
9342 ;; Find readline headers in sub-directory.
9343 (string-append "READLINE_CFLAGS=-I"
9344 (assoc-ref %build-inputs "readline")
9345 "/include/readline/"))
9347 (modify-phases %standard-phases
9348 (add-after 'install 'install-doc
9349 (lambda* (#:key outputs #:allow-other-keys)
9350 (install-file "doc/Robots-HOWTO"
9351 (string-append (assoc-ref outputs "out")
9352 "/share/doc/gnurobots-"
9355 (home-page "https://www.gnu.org/software/gnurobots/")
9356 (synopsis "Program a little robot and watch it explore a world")
9358 "GNU Robots is a game in which you program a robot to explore a world
9359 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9360 the game is to stay alive and collect prizes. The robot program conveniently
9361 may be written in a plain text file in the Scheme programming language.")
9362 (license license:gpl3+)))
9364 (define-public ri-li
9370 (uri (string-append "mirror://sourceforge/ri-li/"
9371 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9372 "Ri-li-" version ".tar.bz2"))
9375 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9377 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9378 ;; It doesn't build otherwise.
9379 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9380 (build-system gnu-build-system)
9383 (modify-phases %standard-phases
9384 ;; Remove "gentoo" subdirectory from Makefile, as it is
9385 ;; missing a make file and generates a build failure.
9386 (add-after 'configure 'fix-build
9388 (substitute* "Makefile"
9391 (add-after 'install 'install-desktop-file
9392 (lambda* (#:key outputs #:allow-other-keys)
9393 (let* ((out (assoc-ref outputs "out"))
9394 (apps (string-append out "/share/applications"))
9395 (pixmaps (string-append out "/share/pixmaps")))
9396 (for-each (lambda (f) (install-file f pixmaps))
9397 (find-files "data" "\\.(png|ico)$"))
9399 (with-output-to-file (string-append apps "/ri-li.desktop")
9405 Icon=~a/Ri-li-icon-32x32.png~@
9406 Categories=Game;ArcadeGame;~@
9407 Keywords=toy;train;wooden;snake-like;engine;~@
9408 Comment=a toy simulator game~@
9409 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9410 Comment[fr]=un jeu de petit train~@
9411 Comment[ro_RO]=un joc cu un tren de jucărie~@
9416 (add-after 'install-desktop-file 'remove-spurious-files
9417 ;; Delete redundant files already installed somewhere else.
9418 (lambda* (#:key outputs #:allow-other-keys)
9419 (let ((out (assoc-ref outputs "out")))
9420 (for-each delete-file
9421 (find-files (string-append out "/share/Ri-li")
9422 "\\.(png|ico)|COPYING"))
9425 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9426 (home-page "http://www.ri-li.org")
9427 (synopsis "Toy train simulation game")
9428 (description "Ri-li is a game in which you drive a wooden toy
9429 steam locomotive across many levels and collect all the coaches to
9431 ;; The project is dual-licensed GPL2+ and GPL3+.
9432 (license (list license:gpl2+ license:gpl3+))))
9434 (define-public freeorion
9441 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9442 "download/v" version "/FreeOrion_v" version
9443 "_2020-02-02.db53471_Source.tar.gz"))
9445 (base32 "1qfnqkysagh8dw26plk229qh17mv4prjxs6qhfyczrmrrakb72an"))
9446 (modules '((guix build utils)))
9449 ;; There are some bundled fonts.
9450 (for-each delete-file-recursively '("default/data/fonts"))
9452 (build-system cmake-build-system)
9454 '(#:tests? #f ;no test
9456 (modify-phases %standard-phases
9457 (add-after 'unpack 'unbundle-fonts
9458 (lambda* (#:key inputs #:allow-other-keys)
9459 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9460 "/share/fonts/truetype/")))
9461 (substitute* "UI/ClientUI.cpp"
9462 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9464 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9468 ("boost_signals" ,boost-signals2)
9469 ("font-dejavu" ,font-dejavu)
9470 ("font-roboto" ,font-google-roboto)
9471 ("freetype2" ,freetype)
9476 ("libvorbis" ,libvorbis)
9478 ("python2" ,python-2.7)
9481 (home-page "https://www.freeorion.org/index.php/Main_Page")
9482 (synopsis "Turn-based space empire and galactic conquest computer game")
9484 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9485 computer game being designed and built by the FreeOrion project. Control an
9486 empire with the goal of exploring the galaxy, expanding your territory,
9487 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9488 inspired by the tradition of the Master of Orion games, but is not a clone or
9489 remake of that series or any other game.")
9490 ;; Source code is released under gpl2. Artwork, music and sounds, and
9491 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9492 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9493 ;; released under lgpl2.1+.
9494 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9496 (define-public leela-zero
9504 (url "https://github.com/leela-zero/leela-zero")
9505 (commit (string-append "v" version))))
9506 (file-name (git-file-name name version))
9509 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
9510 (patches (search-patches "leela-zero-gtest.patch"))))
9511 (build-system cmake-build-system)
9513 `(("googletest" ,googletest)))
9516 ("ocl-icd" ,ocl-icd)
9517 ("openblas" ,openblas)
9518 ("opencl-headers" ,opencl-headers)
9522 '(#:configure-flags '("-DUSE_BLAS=YES")
9523 #:phases (modify-phases %standard-phases
9524 (add-before 'configure 'fix-tests
9525 (lambda* (#:key outputs #:allow-other-keys)
9526 (let ((home (getcwd)))
9527 (setenv "HOME" home)
9528 (substitute* "src/tests/gtests.cpp"
9529 (("\\.\\./src/tests/0k\\.txt")
9530 (string-append home "/src/tests/0k.txt"))
9531 (("cfg_gtp_mode = true;")
9532 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
9536 (invoke "./tests"))))))
9537 (home-page "https://github.com/leela-zero/leela-zero")
9538 (synopsis "Program playing the game of Go")
9540 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
9541 the AlphaGo Zero paper. The current best network weights file for the engine
9542 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
9543 (license license:gpl3+)))
9552 (url "https://github.com/bernds/q5Go")
9553 (commit (string-append "q5go-" version))))
9554 (file-name (git-file-name name version))
9557 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
9558 (build-system gnu-build-system)
9560 `(("pkg-config" ,pkg-config)))
9562 `(("qtbase" ,qtbase)
9563 ("qtmultimedia" ,qtmultimedia)
9567 (modify-phases %standard-phases
9568 (add-after 'unpack 'fix-configure-script
9570 ;; Bypass the unavailable qtchooser program.
9571 (substitute* "configure"
9572 (("test -z \"QTCHOOSER\"")
9574 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
9577 (add-after 'unpack 'fix-paths
9579 (substitute* '("src/pics/Makefile.in"
9580 "src/translations/Makefile.in")
9581 (("\\$\\(datadir\\)/qGo/")
9582 "$(datadir)/q5go/"))
9584 (add-after 'install 'install-desktop-file
9585 (lambda* (#:key outputs #:allow-other-keys)
9586 (let* ((out (assoc-ref outputs "out"))
9587 (apps (string-append out "/share/applications"))
9588 (pics (string-append out "/share/q5go/pics")))
9589 (delete-file-recursively (string-append out "/share/applnk"))
9590 (delete-file-recursively (string-append out "/share/mimelnk"))
9591 (install-file "../source/src/pics/Bowl.ico" pics)
9593 (with-output-to-file (string-append apps "/q5go.desktop")
9601 Comment=Game of Go~@
9602 Comment[de]=Spiel des Go~@
9604 Comment[es]=Juego de Go~@
9605 Comment[fr]=Jeu de Go~@
9613 (synopsis "Qt GUI to play the game of Go")
9615 "This a tool for Go players which performs the following functions:
9618 @item Analysis frontend for Leela Zero (or compatible engines),
9619 @item GTP interface (to play against an engine),
9620 @item IGS client (to play on the internet),
9621 @item Export games to a variety of formats.
9623 (home-page "https://github.com/bernds/q5Go")
9624 (license license:gpl2+)))
9626 (define-public ktuberling
9633 (uri (string-append "mirror://kde/stable/applications/" version
9634 "/src/ktuberling-" version ".tar.xz"))
9636 (base32 "1qdf4q6wjh1lnlqw5c8z4rpj9w5vbyjfri1dah6yjm3mwppbc12j"))))
9637 (build-system qt-build-system)
9639 `(("extra-cmake-modules" ,extra-cmake-modules)
9642 `(("kcompletion" ,kcompletion)
9643 ("kconfigwidgets" ,kconfigwidgets)
9644 ("kcoreaddons" ,kcoreaddons)
9646 ("kdbusaddons" ,kdbusaddons)
9647 ("kdelibs4support" ,kdelibs4support)
9649 ("kwidgetsaddons" ,kwidgetsaddons)
9650 ("kxmlgui" ,kxmlgui)
9651 ("libkdegames" ,libkdegames)
9653 ("qtmultimedia" ,qtmultimedia)
9654 ("qtdeclarative" ,qtdeclarative)
9656 (home-page "https://games.kde.org/")
9657 (synopsis "Stamp drawing toy")
9658 (description "KTuberling is a drawing toy intended for small children and
9659 adults who remain young at heart. The game has no winner; the only purpose is
9660 to make the funniest faces you can. Several activities are possible, e.g.:
9663 @item Give the potato a funny face, clothes, and other goodies
9664 @item Build a small town, complete with school, zoo, and fire department
9665 @item Create a fantastic moonscape with spaceships and aliens
9669 KTuberling can speak the name of each the object in several languages,
9670 to assist in learning basic vocabulary.
9672 This package is part of the KDE games module.")
9673 (license (list license:gpl2+ license:fdl1.2+))))
9675 (define-public picmi
9682 (uri (string-append "mirror://kde/stable/applications/" version
9683 "/src/picmi-" version ".tar.xz"))
9685 (base32 "0z9mpmv49w914gqdx274brdzl6d1bz9j9nkvbwgmr3iq1ba49m3f"))))
9686 (build-system qt-build-system)
9688 `(("extra-cmake-modules" ,extra-cmake-modules)
9689 ("kdoctools" ,kdoctools)))
9691 `(("kcoreaddons" ,kcoreaddons)
9693 ("kdbusaddons" ,kdbusaddons)
9694 ("kdeclarative" ,kdeclarative)
9697 ("knewstuff" ,knewstuff)
9698 ("kxmlgui" ,kxmlgui)
9699 ("libkdegames" ,libkdegames)
9701 ("qtdeclarative" ,qtdeclarative)
9703 (home-page "https://games.kde.org/")
9704 (synopsis "Number logic game")
9705 (description "Picmi is a number logic game in which cells in a grid have
9706 to be colored or left blank according to numbers given at the side of the
9707 grid. The aim is to reveal a hidden picture.
9709 This package is part of the KDE games module.")
9710 (license (list license:gpl2+ license:fdl1.2+))))
9719 (uri (string-append "mirror://kde/stable/applications/" version
9720 "/src/kolf-" version ".tar.xz"))
9722 (base32 "06sfd0llr5cc3zf1vrpcxgw9bm009ky7y8822kynic9ipcd4z1hw"))))
9723 (build-system qt-build-system)
9725 `(("extra-cmake-modules" ,extra-cmake-modules)
9726 ("kdoctools" ,kdoctools)))
9728 `(("kcompletion" ,kcompletion)
9729 ("kconfigwidgets" ,kconfigwidgets)
9730 ("kcoreaddons" ,kcoreaddons)
9732 ("kdbusaddons" ,kdbusaddons)
9735 ("kwidgetsaddons" ,kwidgetsaddons)
9736 ("kxmlgui" ,kxmlgui)
9737 ("ktextwidgets" ,ktextwidgets)
9738 ("libkdegames" ,libkdegames)
9740 ("qtdeclarative" ,qtdeclarative)))
9741 (home-page "https://games.kde.org/")
9742 (synopsis "Miniature golf game")
9743 (description "Kolf is a miniature golf game for one to ten players. The
9744 game is played from an overhead view, with a short bar representing the golf
9745 club. Kolf features many different types of objects, such as water hazards,
9746 slopes, sand traps, and black holes (warps), among others.
9750 @item Single and Multi-player (up to ten players) modes
9751 @item High scores table
9752 @item Dynamic courses
9753 @item Third-party courses
9757 This package is part of the KDE games module.")
9758 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9760 (define-public libkmahjongg
9762 (name "libkmahjongg")
9767 (uri (string-append "mirror://kde/stable/applications/"
9768 version "/src/libkmahjongg-" version ".tar.xz"))
9770 (base32 "0rdimk11hrc8qrmiv26z0ddjzi1k6806c0rfskx4cwmildmh6zgx"))))
9771 (build-system qt-build-system)
9773 `(("extra-cmake-modules" ,extra-cmake-modules)))
9776 ("kcompletion" ,kcompletion)
9777 ;("kconfig" ,kconfig)
9778 ("kcodecs" ,kcodecs)
9779 ("kconfigwidgets" ,kconfigwidgets)
9780 ("kcoreaddons" ,kcoreaddons)
9782 ("kwidgetsaddons" ,kwidgetsaddons)
9785 (home-page "https://games.kde.org/")
9786 (synopsis "Shared library for kmahjongg and kshisen")
9787 (description "Shared library and common files for kmahjongg, kshisen and
9788 other Mah Jongg like games.")
9789 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9791 (define-public kmahjongg
9798 (uri (string-append "mirror://kde/stable/applications/"
9799 version "/src/kmahjongg-" version ".tar.xz"))
9801 (base32 "08na845h0nhmfrszdmvfq5y1dy7kgbrlzjp0f5snvbbf7w44ci6p"))))
9802 (build-system qt-build-system)
9804 `(("extra-cmake-modules" ,extra-cmake-modules)
9805 ("kdoctools" ,kdoctools)))
9807 `(("kcompletion" ,kcompletion)
9809 ("kdbusaddons" ,kdbusaddons)
9810 ("kdeclarative" ,kdeclarative)
9812 ("knewstuff" ,knewstuff)
9813 ("kxmlgui" ,kxmlgui)
9814 ("libkdegames" ,libkdegames)
9815 ("libkmahjongg" ,libkmahjongg)
9817 ("qtdeclarative" ,qtdeclarative)
9819 (home-page "https://games.kde.org/")
9820 (synopsis "Tile laying patience")
9821 (description "In KMahjongg the tiles are scrambled and staked on top of
9822 each other to resemble a certain shape. The player is then expected to remove
9823 all the tiles off the game board by locating each tile's matching pair.
9825 A variety of tile layouts are included, as well as an editor to create new
9828 This package is part of the KDE games module.")
9829 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9831 (define-public kshisen
9838 (uri (string-append "mirror://kde/stable/applications/"
9839 version "/src/kshisen-" version ".tar.xz"))
9841 (base32 "1bq5m48af4h5apfp3bfsp76nlpv6h5sc0gd544zv7cgpfznz1sds"))))
9842 (build-system qt-build-system)
9844 `(("extra-cmake-modules" ,extra-cmake-modules)
9846 ;("pkg-config" ,pkg-config)
9847 ("kdoctools" ,kdoctools)))
9850 ("kcompletion" ,kcompletion)
9851 ("kconfigwidgets" ,kconfigwidgets)
9852 ("kcoreaddons" ,kcoreaddons)
9854 ("kdbusaddons" ,kdbusaddons)
9856 ("kxmlgui" ,kxmlgui)
9857 ("libkdegames" ,libkdegames)
9858 ("libkmahjongg" ,libkmahjongg)
9860 ("qtdeclarative" ,qtdeclarative)))
9861 (home-page "https://games.kde.org/")
9862 (synopsis "Shisen-Sho solitaire game")
9863 (description "KShisen is a solitaire-like game played using the standard
9864 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
9867 This package is part of the KDE games module.")
9868 (license license:gpl2+)))
9870 (define-public kajongg
9877 (uri (string-append "mirror://kde/stable/applications/"
9878 version "/src/kajongg-" version ".tar.xz"))
9880 (base32 "0ql6p5zifdpdf65r7ki9ml123azpwwk9x3x8r9ij6xhjnf7p7x6w"))))
9881 (build-system qt-build-system)
9883 `(("extra-cmake-modules" ,extra-cmake-modules)
9885 ("kdoctools" ,kdoctools)))
9887 `(("kconfig" ,kconfig)
9888 ("kconfigwidgets" ,kconfigwidgets)
9889 ("kcoreaddons" ,kcoreaddons)
9891 ("libkmahjongg" ,libkmahjongg)
9896 `(("python-twisted" ,python-twisted)
9897 ("python-pyqt" ,python-pyqt)))
9898 ;; FIXME: Need to wrap PYTHONPATH
9899 (home-page "https://games.kde.org/")
9900 (synopsis "Classical Mah Jongg game for 4 players")
9901 (description "Kajongg is the ancient Chinese board game for 4 players.
9903 If you are looking for the Mah Jongg solitaire please use the application
9906 Kajongg can be used in two different ways: Scoring a manual game where you
9907 play as always and use Kajongg for the computation of scores and for
9908 bookkeeping. Or you can use Kajongg to play against any combination of other
9909 human players or computer players.
9911 This package is part of the KDE games module.")
9912 (license (list license:gpl2+ license:fdl1.2+))))
9914 (define-public kbreakout
9921 (uri (string-append "mirror://kde/stable/applications/" version
9922 "/src/kbreakout-" version ".tar.xz"))
9924 (base32 "0gwzx1z9mxrjlcjzglg8cxkyd6900whcar3b5j9laxxarc6xhj8w"))))
9925 (build-system qt-build-system)
9927 `(("extra-cmake-modules" ,extra-cmake-modules)
9928 ("kdoctools" ,kdoctools)))
9930 `(("kcompletion" ,kcompletion)
9931 ("kconfig" ,kconfig)
9932 ("kconfigwidgets" ,kconfigwidgets)
9933 ("kcoreaddons" ,kcoreaddons)
9935 ("kdbusaddons" ,kdbusaddons)
9937 ("kwidgetsaddons" ,kwidgetsaddons)
9938 ("kxmlgui" ,kxmlgui)
9939 ("libkdegames" ,libkdegames)
9941 ("qtdeclarative" ,qtdeclarative)))
9942 (home-page "https://games.kde.org/")
9943 (synopsis "Breakout like game")
9944 (description "KBreakout is similar to the classics breakout and xboing,
9945 featuring a number of added graphical enhancements and effects. You control a
9946 paddle at the bottom of the playing-field, and must destroy bricks at the top
9947 by bouncing balls against them.
9949 This package is part of the KDE games module.")
9950 (license (list license:gpl2+ license:fdl1.2+))))
9952 (define-public kmines
9959 (uri (string-append "mirror://kde/stable/applications/" version
9960 "/src/kmines-" version ".tar.xz"))
9962 (base32 "0ac3za36lh8hpx6mqfic9amwmzhzhzplm9hg3pw12gxl5a9mvfsf"))))
9963 (build-system qt-build-system)
9965 `(("extra-cmake-modules" ,extra-cmake-modules)
9966 ("kdoctools" ,kdoctools)))
9968 `(("kcompletion" ,kcompletion)
9969 ("kconfig" ,kconfig)
9970 ("kconfigwidgets" ,kconfigwidgets)
9971 ("kcoreaddons" ,kcoreaddons)
9973 ("kdbusaddons" ,kdbusaddons)
9975 ("ktextwidgets" ,ktextwidgets)
9976 ("kwidgetsaddons" ,kwidgetsaddons)
9977 ("kxmlgui" ,kxmlgui)
9978 ("libkdegames" ,libkdegames)
9980 ("qtdeclarative" ,qtdeclarative)))
9981 (home-page "https://games.kde.org/")
9982 (synopsis "Classical mine sweeper game")
9983 (description "KMines is a classic Minesweeper game. The idea is to
9984 uncover all the squares without blowing up any mines. When a mine is blown
9985 up, the game is over.
9987 This package is part of the KDE games module.")
9988 (license (list license:gpl2+ license:fdl1.2+))))
9990 (define-public konquest
9997 (uri (string-append "mirror://kde/stable/applications/"
9998 version "/src/konquest-" version ".tar.xz"))
10000 (base32 "02gjxskhi10a1sqh3skcild8zria7wncz1a4sbz7ax1p851q76k1"))))
10001 (build-system qt-build-system)
10003 `(("extra-cmake-modules" ,extra-cmake-modules)
10004 ("kdoctools" ,kdoctools)))
10006 `(("kcompletion" ,kcompletion)
10007 ("kconfig" ,kconfig)
10008 ("kcoreaddons" ,kcoreaddons)
10010 ("kdbusaddons" ,kdbusaddons)
10011 ("kguiaddons" ,kguiaddons)
10013 ("kwidgetsaddons" ,kwidgetsaddons)
10014 ("kxmlgui" ,kxmlgui)
10015 ("libkdegames" ,libkdegames)
10017 ("qtdeclarative" ,qtdeclarative)
10019 (home-page "https://games.kde.org/")
10020 (synopsis "Simple turn-based strategy game")
10021 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10022 conquer other planets by sending ships to them. The goal is to build an
10023 interstellar empire and ultimately conquer all other player's planets. The
10024 game can be played with up to nine empires, commanded either by the computer
10025 or by puny earthlings.
10027 This package is part of the KDE games module.")
10028 (license (list license:gpl2+ license:fdl1.2+))))
10030 (define-public kbounce
10033 (version "19.08.3")
10037 (uri (string-append "mirror://kde/stable/applications/"
10038 version "/src/kbounce-" version ".tar.xz"))
10040 (base32 "02rfv0qzz5cmyfx8f56a45hbm9gsp6m3dcy8ajwx88rw5wpbrr11"))))
10041 (build-system qt-build-system)
10043 `(("extra-cmake-modules" ,extra-cmake-modules)
10044 ("kdoctools" ,kdoctools)))
10046 `(("kcompletion" ,kcompletion)
10047 ("kconfigwidgets" ,kconfigwidgets)
10048 ("kcoreaddons" ,kcoreaddons)
10050 ("kdbusaddons" ,kdbusaddons)
10053 ("kwidgetsaddons" ,kwidgetsaddons)
10054 ("kxmlgui" ,kxmlgui)
10055 ("libkdegames" ,libkdegames)
10057 ("qtdeclarative" ,qtdeclarative)
10059 (home-page "https://games.kde.org/")
10060 (synopsis "Jezzball arcade game")
10061 (description "KBounce is a single player arcade game with the elements of
10062 puzzle. It is played on a field, surrounded by wall, with two or more balls
10063 bouncing around within the walls. The object of the game is to build new
10064 walls to decrease the size of the active field.
10066 This package is part of the KDE games module.")
10067 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10069 (define-public kblocks
10072 (version "19.08.3")
10076 (uri (string-append "mirror://kde/stable/applications/"
10077 version "/src/kblocks-" version ".tar.xz"))
10079 (base32 "0qrm0dihzhkxsq9l49ndzms802x6jn92vvabb2zf2q9z593m69cx"))))
10080 (build-system qt-build-system)
10082 `(("extra-cmake-modules" ,extra-cmake-modules)
10083 ("kdoctools" ,kdoctools)))
10085 `(("kcompletion" ,kcompletion)
10086 ("kconfig" ,kconfig)
10087 ("kconfigwidgets" ,kconfigwidgets)
10088 ("kcoreaddons" ,kcoreaddons)
10090 ("kdbusaddons" ,kdbusaddons)
10092 ("kwidgetsaddons" ,kwidgetsaddons)
10093 ("kxmlgui" ,kxmlgui)
10094 ("libkdegames" ,libkdegames)
10096 ("qtdeclarative" ,qtdeclarative)
10098 (home-page "https://games.kde.org/")
10099 (synopsis "Single player falling blocks puzzle game")
10100 (description "KBlocks is the classic Tetris-like falling blocks game.
10102 The idea is to stack the falling blocks to create horizontal lines without any
10103 gaps. When a line is completed it is removed, and more space is available in
10104 the play area. When there is not enough space for blocks to fall, the game is
10107 This package is part of the KDE games module.")
10108 (license (list license:gpl2+ license:fdl1.2+))))
10110 (define-public ksudoku
10113 (version "19.08.3")
10117 (uri (string-append "mirror://kde/stable/applications/"
10118 version "/src/ksudoku-" version ".tar.xz"))
10120 (base32 "0rcscz91hilm7l3am5w02n0n8l7xhi4l0n4sskznh68kblw0ggw2"))))
10121 (build-system qt-build-system)
10123 `(("extra-cmake-modules" ,extra-cmake-modules)
10124 ("kdoctools" ,kdoctools)))
10126 `(("karchive", karchive)
10127 ("kconfig" ,kconfig)
10128 ("kconfigwidgets" ,kconfigwidgets)
10129 ("kcoreaddons" ,kcoreaddons)
10131 ("kguiaddons" ,kguiaddons)
10133 ("kiconthemes" ,kiconthemes)
10135 ("kwidgetsaddons" ,kwidgetsaddons)
10136 ("kxmlgui" ,kxmlgui)
10137 ("libkdegames" ,libkdegames)
10140 ("qtdeclarative" ,qtdeclarative)
10142 (home-page "https://games.kde.org/")
10143 (synopsis "Sudoku puzzle game and solver")
10144 (description "KSudoku is a Sudoku game and solver, supporting a range of
10145 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10146 puzzle sheets and find the solution to any Sudoku puzzle.
10148 The word Sudoku means \"single number in an allotted place\" in Japanese.
10149 These are the basic rules: Every Sudoku is a square divided into 3x3
10150 subsquares with 3x3 cells each.
10152 Some cells are filled with a number at the beginning. The remaining ones are
10153 to be filled by the player using numbers from 1 to 9, without repeating a
10154 number twice on each column, row or subsquare (each of them must contain only
10155 one 1, one 2, one 3, and so on). The game requires logic and patience.
10156 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10159 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10160 board we use letters): arithmetic relationships between numbers are
10163 This program supports also 16x16 games with numbers from 1 to 16 and 256
10164 cells with 16 cols, rows and subsquares!
10166 More information at http://en.wikipedia.org/wiki/Sudoku
10168 This package is part of the KDE games module.")
10169 (license (list license:gpl2+ license:fdl1.2+))))
10171 (define-public klines
10174 (version "19.08.3")
10178 (uri (string-append "mirror://kde/stable/applications/" version
10179 "/src/klines-" version ".tar.xz"))
10181 (base32 "1g1f46jp0rb8gpqkgcf915ydpsscn1sxk3gjvm8bcqgx9ddq59xa"))))
10182 (build-system qt-build-system)
10184 `(("extra-cmake-modules" ,extra-cmake-modules)
10185 ("kdoctools" ,kdoctools)))
10187 `(("kcompletion" ,kcompletion)
10188 ("kconfigwidgets" ,kconfigwidgets)
10189 ("kcoreaddons" ,kcoreaddons)
10191 ("kdbusaddons" ,kdbusaddons)
10193 ("kwidgetsaddons" ,kwidgetsaddons)
10194 ("kxmlgui" ,kxmlgui)
10195 ("libkdegames" ,libkdegames)
10197 ("qtdeclarative" ,qtdeclarative)))
10198 (home-page "https://games.kde.org/")
10199 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10200 (description "KLines is a simple but highly addictive one player game.
10202 The player has to move the colored balls around the game board, gathering them
10203 into the lines of the same color by five. Once the line is complete it is
10204 removed from the board, therefore freeing precious space. In the same time
10205 the new balls keep arriving by three after each move, filling up the game
10208 KLines is a single-player game where the player removes colored balls from the
10209 board by arranging them into lines of five or more. However, every time the
10210 player moves a ball, three more balls are added to the board.
10212 This package is part of the KDE games module.")
10213 (license (list license:gpl2+ license:fdl1.2+))))
10215 (define-public kgoldrunner
10217 (name "kgoldrunner")
10218 (version "19.08.3")
10222 (uri (string-append "mirror://kde/stable/applications/" version "/src/kgoldrunner-"
10223 version ".tar.xz"))
10225 (base32 "16rcvq796r3asz4v4ap75xvwnxd3dd2nsq5r9vxvzl6rrf1w9bj4"))))
10226 (build-system qt-build-system)
10228 `(("extra-cmake-modules" ,extra-cmake-modules)
10229 ("kdoctools" ,kdoctools)))
10231 `(("kcompletion" ,kcompletion)
10232 ("kcoreaddons" ,kcoreaddons)
10234 ("kdbusaddons" ,kdbusaddons)
10237 ("kwidgetsaddons" ,kwidgetsaddons)
10238 ("kxmlgui" ,kxmlgui)
10239 ("libkdegames" ,libkdegames)
10241 ("qtdeclarative" ,qtdeclarative)))
10242 (home-page "https://games.kde.org/")
10243 (synopsis "Action and puzzle solving game")
10244 (description "KGoldrunner is an action game where the hero runs through a
10245 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10246 gold nuggets and escape to the next level. Your enemies are also after the
10247 gold. Worse still, they are after you!.
10249 KGoldrunner is a fast-paced platform game where the player must navigate a
10250 maze while collecting gold nuggets and avoiding enemies. A variety of level
10251 packs are included, as well as an editor to create new levels.
10253 This package is part of the KDE games module.")
10254 (license (list license:gpl2+ license:fdl1.2+))))
10256 (define-public kdiamond
10259 (version "19.08.3")
10263 (uri (string-append "mirror://kde/stable/applications/" version
10264 "/src/kdiamond-" version ".tar.xz"))
10266 (base32 "1v5yb9hb26lk277zhw8d37ks829yfqr5anzx1qhms44gca5kqhva"))))
10267 (build-system qt-build-system)
10269 `(("extra-cmake-modules" ,extra-cmake-modules)
10270 ("kdoctools" ,kdoctools)))
10272 `(("kcompletion", kcompletion)
10273 ("kconfig" ,kconfig)
10274 ("kconfigwidgets" ,kconfigwidgets)
10275 ("kcoreaddons" ,kcoreaddons)
10277 ("kdbusaddons" ,kdbusaddons)
10279 ("knotifications" ,knotifications)
10280 ("knotifyconfig" ,knotifyconfig)
10281 ("kwidgetsaddons" ,kwidgetsaddons)
10282 ("kxmlgui" ,kxmlgui)
10283 ("libkdegames" ,libkdegames)
10285 ("qtdeclarative" ,qtdeclarative)))
10286 (home-page "https://games.kde.org/")
10287 (synopsis "Three-in-a-row game")
10288 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10289 features unlimited fun with randomly generated games and five difficulty
10290 levels with varying number of diamond colors and board sizes.
10292 This package is part of the KDE games module.")
10293 (license (list license:gpl2+ license:fdl1.2+))))
10295 (define-public kfourinline
10297 (name "kfourinline")
10298 (version "19.08.3")
10302 (uri (string-append "mirror://kde/stable/applications/" version
10303 "/src/kfourinline-" version ".tar.xz"))
10305 (base32 "1vprs6dc1ccn3g6k594i9s94xy4b91vzlqjysyc6fqcq2fs54ny3"))))
10306 (build-system qt-build-system)
10308 `(("extra-cmake-modules" ,extra-cmake-modules)
10309 ("kdoctools" ,kdoctools)))
10311 `(("kcompletion" ,kcompletion)
10312 ("kconfig" ,kconfig)
10313 ("kconfigwidgets" ,kconfigwidgets)
10314 ("kcoreaddons" ,kcoreaddons)
10316 ("kdelibs4support" ,kdelibs4support)
10319 ("kxmlgui" ,kxmlgui)
10320 ("libkdegames" ,libkdegames)
10322 ("qtdeclarative" ,qtdeclarative)
10324 (home-page "https://games.kde.org/")
10325 (synopsis "Place 4 pieces in a row")
10326 (description "KFourInLine is a board game for two players based on the
10329 KFourInLine is a game where two players take turns dropping pieces into a
10330 grid, the winner being the first to place four pieces in a line.
10332 This package is part of the KDE games module.")
10333 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10335 (define-public kblackbox
10338 (version "19.08.3")
10342 (uri (string-append "mirror://kde/stable/applications/" version
10343 "/src/kblackbox-" version ".tar.xz"))
10345 (base32 "1x42sfpf75c6mavwkc7g7dm11y9s5dpj8igphly5kvm0pajqby0n"))))
10346 (build-system qt-build-system)
10348 `(("extra-cmake-modules" ,extra-cmake-modules)
10349 ("kdoctools" ,kdoctools)))
10351 `(("karchive" ,karchive)
10352 ("kcompletion" ,kcompletion)
10353 ("kconfig" ,kconfig)
10354 ("kcoreaddons" ,kcoreaddons)
10356 ("kdbusaddons" ,kdbusaddons)
10358 ("ktextwidgets" ,ktextwidgets)
10359 ("kxmlgui" ,kxmlgui)
10360 ("libkdegames" ,libkdegames)
10362 ("qtdeclarative" ,qtdeclarative)
10364 (home-page "https://games.kde.org/")
10365 (synopsis "Find atoms in a grid by shooting electrons")
10366 (description "KBlackbox is a game of hide and seek played on a grid of
10367 boxes where the computer has hidden several balls. The position of the hidden
10368 balls can be deduced by shooting beams into the box
10370 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10371 player shoots rays into the grid to deduce the positions of hidden objects.
10373 This package is part of the KDE games module.")
10374 (license (list license:gpl2+ license:fdl1.2+))))
10376 (define-public knetwalk
10379 (version "19.08.3")
10383 (uri (string-append "mirror://kde/stable/applications/" version
10384 "/src/knetwalk-" version ".tar.xz"))
10386 (base32 "1i340salzgqdw8y33wrrydmpgx3pvwf5wrbljlh67cjf6s4csx7d"))))
10387 (build-system qt-build-system)
10389 `(("extra-cmake-modules" ,extra-cmake-modules)
10390 ("kdoctools" ,kdoctools)))
10392 `(("kcompletion" ,kcompletion)
10393 ("kconfig" ,kconfig)
10394 ("kconfigwidgets" ,kconfigwidgets)
10395 ("kcoreaddons" ,kcoreaddons)
10397 ("kdbusaddons" ,kdbusaddons)
10399 ("ktextwidgets" ,ktextwidgets)
10400 ("kwidgetsaddons" ,kwidgetsaddons)
10401 ("kxmlgui" ,kxmlgui)
10402 ("libkdegames" ,libkdegames)
10404 ("qtdeclarative" ,qtdeclarative)))
10405 (home-page "https://games.kde.org/")
10406 (synopsis "Turn the board pieces to get all computers connected")
10407 (description "KNetWalk is a small game where you have to build up a
10408 computer network by rotating the wires to connect the terminals to the server.
10409 When the network is build, a highscore-list comes up where competitions can be
10412 KNetwalk is a puzzle game where the player arranges sections of wire to
10413 connect all the computers on the board.
10415 This package is part of the KDE games module.")
10416 (license (list license:gpl2+ license:fdl1.2+))))
10418 (define-public bomber
10421 (version "19.08.3")
10425 (uri (string-append "mirror://kde/stable/applications/" version
10426 "/src/bomber-" version ".tar.xz"))
10428 (base32 "1lvzd0mzgq25akvwvkm57l3plm65k731v2i1ahakn985bb5gc3is"))))
10429 (build-system qt-build-system)
10431 `(("extra-cmake-modules" ,extra-cmake-modules)
10432 ("kdoctools" ,kdoctools)))
10434 `(("kcompletiom" ,kcompletion)
10435 ("kconfig" ,kconfig)
10436 ("kcoreaddons" ,kcoreaddons)
10438 ("kdbusaddons" ,kdbusaddons)
10440 ("kxmlgui" ,kxmlgui)
10441 ("libkdegames" ,libkdegames)
10443 ("qtdeclarative" ,qtdeclarative)))
10444 (home-page "https://games.kde.org/")
10445 (synopsis "Arcade bombing game")
10446 (description "Bomber is a single player arcade game.
10448 The player is invading various cities in a plane that is decreasing in height.
10449 The goal of the game is to destroy all the buildings and advance to the next
10450 level. Each level gets a bit harder by increasing the speed of the plane and
10451 the height of the buildings.
10453 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10454 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10455 not destroyed a building in your path, you will crash into it.
10457 This package is part of the KDE games module.")
10458 (license (list license:gpl2+ license:fdl1.2+))))
10460 (define-public granatier
10463 (version "19.08.3")
10467 (uri (string-append "mirror://kde/stable/applications/" version
10468 "/src/granatier-" version ".tar.xz"))
10470 (base32 "141qmdinz7ikbbrs8dq6cap3nl22sl7pw62r80pf3xxwn2q4phpa"))))
10471 (build-system qt-build-system)
10473 `(("extra-cmake-modules" ,extra-cmake-modules)
10474 ("kdoctools" ,kdoctools)))
10476 `(("kcompletion" ,kcompletion)
10477 ("kconfig" ,kconfig)
10478 ("kconfigwidgets" ,kconfigwidgets)
10479 ("kcoreaddons" ,kcoreaddons)
10481 ("kdbusaddons" ,kdbusaddons)
10483 ("knewstuff" ,knewstuff)
10484 ("kwidgetsaddons" ,kwidgetsaddons)
10485 ("kxmlgui" ,kxmlgui)
10486 ("libkdegames" ,libkdegames)
10488 ("qtdeclarative" ,qtdeclarative)
10490 (home-page "https://games.kde.org/")
10491 (synopsis "Bomberman clone")
10492 (description "Granatier is a clone of the classic Bomberman game,
10493 inspired by the work of the Clanbomber clone.
10495 This package is part of the KDE games module.")
10496 (license (list license:gpl2+ license:fdl1.2+))))
10498 (define-public ksirk
10501 (version "19.08.3")
10505 (uri (string-append "mirror://kde/stable/applications/" version
10506 "/src/ksirk-" version ".tar.xz"))
10508 (base32 "1b1wixs2hp5qnvdygfwa3kvy0kn94ysa4ifmx90q6r3yfr2lpfca"))))
10509 (build-system qt-build-system)
10511 `(("extra-cmake-modules" ,extra-cmake-modules)
10512 ("kdoctools" ,kdoctools)))
10514 `(("kcrash" ,kcrash)
10516 ("kiconthemes" ,kiconthemes)
10518 ("knewstuff" ,knewstuff)
10519 ("kwallet" ,kwallet)
10520 ("kxmlgui" ,kxmlgui)
10521 ("libkdegames" ,libkdegames)
10525 ("qtdeclarative" ,qtdeclarative)
10528 (home-page "https://games.kde.org/")
10529 (synopsis "Computerized version of the well known strategy board game
10531 (description "KsirK is a multi-player network-enabled game. The goal of
10532 the game is simply to conquer the world by attacking your neighbors with your
10535 At the beginning of the game, countries are distributed to all the players.
10536 Each country contains one army represented by an infantryman. Each player has
10537 some armies to distribute to his countries. On each turn, each player can
10538 attack his neighbours, eventually conquering one or more countries. At the
10539 end of each turn, some bonus armies are distributed to the players in function
10540 of the number of countries they own. The winner is the player that conquered
10545 @item Support for 1-6 human or computer players
10546 @item Multi-player gaming over a network
10547 @item You can easily create new skins with SVG graphics and the skin editor
10548 @item Hot New Stuff support. You can easily download and install new skins
10551 This package is part of the KDE games module.")
10552 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10554 (define-public palapeli
10557 (version "19.08.3")
10561 (uri (string-append "mirror://kde/stable/applications/" version
10562 "/src/palapeli-" version ".tar.xz"))
10564 (base32 "1g91ydbc0x2y2gn3lcb5w03mn7k78l5bq4cb1s59kx6yjbflv3pw"))))
10565 (build-system qt-build-system)
10567 `(("extra-cmake-modules" ,extra-cmake-modules)
10568 ("kdoctools" ,kdoctools)))
10570 `(("karchive" ,karchive)
10571 ("kcompletion" ,kcompletion)
10572 ("kconfig" ,kconfig)
10573 ("kconfigwidgets" ,kconfigwidgets)
10574 ("kcoreaddons" ,kcoreaddons)
10580 ("kitemviews" ,kitemviews)
10581 ("knotifications" ,knotifications)
10582 ("kservice" ,kservice)
10583 ("kwidgetsaddons" ,kwidgetsaddons)
10584 ("kxmlgui" ,kxmlgui)
10585 ("libkdegames" ,libkdegames)
10587 ("qtdeclarative" ,qtdeclarative)
10589 ("shared-mime-info" ,shared-mime-info)))
10590 (home-page "https://games.kde.org/")
10591 (synopsis "Jigsaw puzzle game")
10592 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
10593 that genre, you are not limited to aligning pieces on imaginary grids. The
10594 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
10595 everything you do is saved on your disk immediately.
10597 Palapeli is the Finnish word for jigsaw puzzle.
10599 This package is part of the KDE games module.")
10600 (license license:gpl2+)))
10602 (define-public kiriki
10605 (version "19.08.3")
10609 (uri (string-append "mirror://kde/stable/applications/" version
10610 "/src/kiriki-" version ".tar.xz"))
10612 (base32 "1xg25dj95g81dc5l7k47am4j52abrwwfx4h73lvsbn4lc8lfmshw"))))
10613 (build-system qt-build-system)
10615 `(("extra-cmake-modules" ,extra-cmake-modules)
10616 ("kdoctools" ,kdoctools)))
10618 `(("kcompletion" ,kcompletion)
10619 ("kconfig" ,kconfig)
10620 ("kconfigwidgets" ,kconfigwidgets)
10621 ("kcoreaddons" ,kcoreaddons)
10623 ("kdbusaddons" ,kdbusaddons)
10625 ("kiconthemes" ,kiconthemes)
10626 ("kxmlgui" ,kxmlgui)
10627 ("libkdegames" ,libkdegames)
10629 ("qtdeclarative" ,qtdeclarative)))
10630 (home-page "https://games.kde.org/")
10631 (synopsis "Yahtzee dice game")
10632 (description "Kiriki is an addictive and fun dice game, designed to be
10633 played by as many as six players.
10635 Participants have to collect points by rolling five dice for up to three times
10636 per single turn to make combinations with the highest score.
10638 This package is part of the KDE games module.")
10639 (license (list license:gpl2+ license:fdl1.2+))))
10641 (define-public kigo
10644 (version "19.08.3")
10648 (uri (string-append "mirror://kde/stable/applications/" version
10649 "/src/kigo-" version ".tar.xz"))
10651 (base32 "00l5gcbi8xyj9c1lngkrddka3a4m4cd78prfplrpq32ma9xq681f"))))
10652 (build-system qt-build-system)
10654 `(("extra-cmake-modules" ,extra-cmake-modules)
10655 ("kdoctools" ,kdoctools)))
10657 `(("kconfig" ,kconfig)
10658 ("kconfigwidgets" ,kconfigwidgets)
10659 ("kcoreaddons" ,kcoreaddons)
10661 ("kdbusaddons" ,kdbusaddons)
10664 ("knewstuff", knewstuff)
10665 ("ktextwidgets" ,ktextwidgets)
10666 ("kxmlgui" ,kxmlgui)
10667 ("libkdegames" ,libkdegames)
10669 ("qtdeclarative" ,qtdeclarative)
10671 (home-page "https://games.kde.org/")
10672 (synopsis "Go board game")
10673 (description "Kigo is an open-source implementation of the popular Go
10676 Go is a strategic board game for two players. It is also known as
10677 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
10678 for being rich in strategic complexity despite its simple rules. The game is
10679 played by two players who alternately place black and white stones (playing
10680 pieces, now usually made of glass or plastic) on the vacant intersections of a
10681 grid of 19x19 lines (9x9 or 13x13 for easier games).
10683 You also need to install a go engine, e.g. @code{gnugo}.
10685 This package is part of the KDE games module.")
10686 (license license:gpl3+)))
10688 (define-public kubrick
10691 (version "19.08.3")
10695 (uri (string-append "mirror://kde/stable/applications/" version
10696 "/src/kubrick-" version ".tar.xz"))
10698 (base32 "0ma8wja4rqlsmsr8cyicfpkwlgqva4450ls4c0ql53p0kabf04gx"))))
10699 (build-system qt-build-system)
10701 `(("extra-cmake-modules" ,extra-cmake-modules)
10702 ("kdoctools" ,kdoctools)))
10705 ("kconfig" ,kconfig)
10706 ("kconfigwidgets" ,kconfigwidgets)
10707 ("kcoreaddons" ,kcoreaddons)
10711 ("kwidgetsaddons" ,kwidgetsaddons)
10712 ("kxmlgui" ,kxmlgui)
10713 ("libkdegames" ,libkdegames)
10715 ("qtdeclarative" ,qtdeclarative)
10717 (home-page "https://games.kde.org/")
10718 (synopsis "Game based on Rubik's Cube")
10719 (description "Kubrick is a game based on the Rubik's Cube puzzle.
10721 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
10722 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
10723 selection of puzzles at several levels of difficulty, as well as demos of
10724 pretty patterns and solution moves, or you can make up your own puzzles. The
10725 game has unlimited undo, redo, save and reload capabilities.
10727 This package is part of the KDE games module.")
10728 (license (list license:gpl2+ license:fdl1.2+))))
10730 (define-public lskat
10733 (version "19.08.3")
10737 (uri (string-append "mirror://kde/stable/applications/" version
10738 "/src/lskat-" version ".tar.xz"))
10740 (base32 "1qk5hd27zb42pbcxq5wyzz62nj5f0qdmgy54r9rnk92pzzzk94s9"))))
10741 (build-system qt-build-system)
10743 `(("extra-cmake-modules" ,extra-cmake-modules)
10744 ("kdoctools" ,kdoctools)))
10746 `(("kcompletion" ,kcompletion)
10747 ("kconfig" ,kconfig)
10748 ("kcoreaddons" ,kcoreaddons)
10750 ("kguiaddons" ,kguiaddons)
10752 ("kwidgetsaddons" ,kwidgetsaddons)
10753 ("kxmlgui" ,kxmlgui)
10754 ("libkdegames" ,libkdegames)
10756 ("qtdeclarative" ,qtdeclarative)
10758 (home-page "https://games.kde.org/")
10759 (synopsis "Lieutnant Skat card game")
10760 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
10761 engaging card game for two players, where the second player is either live
10762 opponent, or a built in artificial intelligence.
10764 Lieutnant Skat is a simplified variant of the Skat card game for two players.
10766 This package is part of the KDE games module.")
10767 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10769 (define-public kapman
10772 (version "19.08.3")
10776 (uri (string-append "mirror://kde/stable/applications/" version
10777 "/src/kapman-" version ".tar.xz"))
10779 (base32 "03pq38caam30q4bw14c045kayw2d87xq1yaa3s2jkrylylfq3p0f"))))
10780 (build-system qt-build-system)
10782 `(("extra-cmake-modules" ,extra-cmake-modules)
10783 ("kdoctools" ,kdoctools)))
10785 `(("kcompletion" ,kcompletion)
10786 ("kconfig" ,kconfig)
10787 ("kconfigwidgets" ,kconfigwidgets)
10788 ("kcoreaddons" ,kcoreaddons)
10790 ("kdbusaddons" ,kdbusaddons)
10792 ("kxmlgui" ,kxmlgui)
10793 ("libkdegames" ,libkdegames)
10795 ("qtdeclarative" ,qtdeclarative)
10797 (home-page "https://games.kde.org/")
10798 (synopsis "Pac-Man clone")
10799 (description "Kapman is a clone of the well known game Pac-Man.
10801 You must run through the maze to eat all pills without being captured by a
10802 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
10803 few seconds. When a stage is cleared of pills and energizer the player is
10804 taken to the next stage with slightly increased game speed
10806 This package is part of the KDE games module.")
10807 (license (list license:gpl2+ license:fdl1.2+))))
10809 (define-public kspaceduel
10811 (name "kspaceduel")
10812 (version "19.08.3")
10816 (uri (string-append "mirror://kde/stable/applications/" version
10817 "/src/kspaceduel-" version ".tar.xz"))
10819 (base32 "1hppni0ihs7psc0dly5rxyy2a38nzhlig9yfyhi3lkh36z05pql8"))))
10820 (build-system qt-build-system)
10822 `(("extra-cmake-modules" ,extra-cmake-modules)
10823 ("kdoctools" ,kdoctools)))
10825 `(("kcompletion" ,kcompletion)
10826 ("kconfig" ,kconfig)
10827 ("kconfigwidgets" ,kconfigwidgets)
10828 ("kcoreaddons" ,kcoreaddons)
10830 ("kdbusaddons" ,kdbusaddons)
10832 ("kxmlgui" ,kxmlgui)
10833 ("libkdegames" ,libkdegames)
10835 ("qtdeclarative" ,qtdeclarative)
10837 (home-page "https://games.kde.org/")
10838 (synopsis "Two player game with shooting spaceships flying around a sun")
10839 (description "KSpaceduel is a space battle game for one or two players,
10840 where two ships fly around a star in a struggle to be the only survivor.
10842 This package is part of the KDE games module.")
10843 (license (list license:gpl2+ license:fdl1.2+))))
10845 (define-public bovo
10848 (version "19.08.3")
10852 (uri (string-append "mirror://kde/stable/applications/" version
10853 "/src/bovo-" version ".tar.xz"))
10855 (base32 "0dbpng0w52nahmx7brsll66zw23ql1g6pcvn2k4g2lnvxch0i59g"))))
10856 (build-system qt-build-system)
10858 `(("extra-cmake-modules" ,extra-cmake-modules)
10859 ("kdoctools" ,kdoctools)))
10861 `(("kcompletion" ,kcompletion)
10862 ("kcoreaddons" ,kcoreaddons)
10864 ("kdbusaddons" ,kdbusaddons)
10866 ("kxmlgui" ,kxmlgui)
10867 ("libkdegames" ,libkdegames)
10869 ("qtdeclarative" ,qtdeclarative)
10871 (home-page "https://games.kde.org/")
10872 (synopsis "Classic pen and paper game: five in a line")
10873 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
10874 points\") like game for two players, where the opponents alternate in placing
10875 their respective pictogram on the game board. The winner is the first to
10876 complete a line of five markers. (Also known as: Connect Five, Five in a row,
10877 X and O, Naughts and Crosses)
10879 This package is part of the KDE games module.")
10880 (license (list license:gpl2+ license:fdl1.2+))))
10882 (define-public killbots
10885 (version "19.08.3")
10889 (uri (string-append "mirror://kde/stable/applications/" version
10890 "/src/killbots-" version ".tar.xz"))
10892 (base32 "1qi86q7diw7glkp9v33yim9nhz2da4balbxa1hjrdgjdv8zdbxbm"))))
10893 (build-system qt-build-system)
10895 `(("extra-cmake-modules" ,extra-cmake-modules)
10896 ("kdoctools" ,kdoctools)))
10898 `(("kcompletion" ,kcompletion)
10899 ("kconfig" ,kconfig)
10900 ("kconfigwidgets" ,kconfigwidgets)
10901 ("kcoreaddons" ,kcoreaddons)
10903 ("kdbusaddons" ,kdbusaddons)
10905 ("kwidgetsaddons" ,kwidgetsaddons)
10906 ("kxmlgui" ,kxmlgui)
10907 ("libkdegames" ,libkdegames)
10909 ("qtdeclarative" ,qtdeclarative)))
10910 (home-page "https://games.kde.org/")
10911 (synopsis "Port of the classic BSD console game robots")
10912 (description "Killbots is a simple game of evading killer robots.
10914 Who created the robots and why they have been programmed to destroy, no one
10915 knows. All that is known is that the robots are numerous and their sole
10916 objective is to destroy you. Fortunately for you, their creator has focused
10917 on quantity rather than quality and as a result the robots are severely
10918 lacking in intelligence. Your superior wit and a fancy teleportation device
10919 are your only weapons against the never-ending stream of mindless automatons.
10921 This package is part of the KDE games module.")
10922 (license (list license:gpl2+ license:fdl1.2+))))
10924 (define-public ksnakeduel
10926 (name "ksnakeduel")
10927 (version "19.08.3")
10931 (uri (string-append "mirror://kde/stable/applications/" version
10932 "/src/ksnakeduel-" version ".tar.xz"))
10934 (base32 "0mprrnpax8pv7ab36zwhvdfj8id52w8g6x76nnj8qvkdlkjiqdnn"))))
10935 (build-system qt-build-system)
10937 `(("extra-cmake-modules" ,extra-cmake-modules)
10938 ("kdoctools" ,kdoctools)))
10940 `(("kcompletion" ,kcompletion)
10941 ("kconfig" ,kconfig)
10942 ("kconfigwidgets" ,kconfigwidgets)
10943 ("kcoreaddons" ,kcoreaddons)
10945 ("kdbusaddons" ,kdbusaddons)
10946 ("kguiaddons" ,kguiaddons)
10948 ("kxmlgui" ,kxmlgui)
10949 ("libkdegames" ,libkdegames)
10951 ("qtdeclarative" ,qtdeclarative)
10953 (home-page "https://games.kde.org/")
10954 (synopsis "Snake race played against the computer")
10955 (description "KSnakeDuel is a fast action game where you steer a snake
10956 which has to eat food. While eating the snake grows. But once a player
10957 collides with the other snake or the wall the game is lost. This becomes of
10958 course more and more difficult the longer the snakes grow.
10960 This package is part of the KDE games module.")
10961 (license (list license:gpl2+ license:fdl1.2+))))
10963 (define-public kollision
10966 (version "19.08.3")
10970 (uri (string-append "mirror://kde/stable/applications/" version
10971 "/src/kollision-" version ".tar.xz"))
10973 (base32 "1p7qrn3d0ybpvc9k6k5wzj54dsrp1rqh39844maz0ay2fhvmch12"))))
10974 (build-system qt-build-system)
10976 `(("extra-cmake-modules" ,extra-cmake-modules)
10977 ("kdoctools" ,kdoctools)))
10979 `(("kcompletion" ,kcompletion)
10980 ("kconfig" ,kconfig)
10981 ("kcoreaddons" ,kcoreaddons)
10983 ("kdbusaddons" ,kdbusaddons)
10985 ("kwidgetsaddons" ,kwidgetsaddons)
10986 ("kxmlgui" ,kxmlgui)
10987 ("libkdegames" ,libkdegames)
10989 ("qtdeclarative" ,qtdeclarative)))
10990 (home-page "https://games.kde.org/")
10991 (synopsis "Simple ball dodging game")
10992 (description "In Kollision you use mouse to control a small blue ball in a
10993 closed space environment filled with small red balls, which move about
10994 chaotically. Your goal is to avoid touching any of those red balls with your
10995 blue one, because the moment you do the game will be over. The longer you can
10996 stay in game the higher will your score be.
10998 This package is part of the KDE games module.")
10999 (license (list license:gpl2+ license:fdl1.2+))))
11001 (define-public knavalbattle
11003 (name "knavalbattle")
11004 (version "19.08.3")
11008 (uri (string-append "mirror://kde/stable/applications/" version
11009 "/src/knavalbattle-" version ".tar.xz"))
11011 (base32 "0sdfjplqkb30x2mvh66pkzay6vn5px87779sh2s8lpl6fcw0v9g4"))))
11012 (build-system qt-build-system)
11014 `(("extra-cmake-modules" ,extra-cmake-modules)
11015 ("kdoctools" ,kdoctools)))
11018 ("kcompletion" ,kcompletion)
11019 ("kconfig" ,kconfig)
11020 ("kconfigwidgets" ,kconfigwidgets)
11021 ("kcoreaddons" ,kcoreaddons)
11023 ("kdbusaddons" ,kdbusaddons)
11026 ("ktextwidgets" ,ktextwidgets)
11027 ("kxmlgui" ,kxmlgui)
11028 ("libkdegames" ,libkdegames)
11030 ("qtdeclarative" ,qtdeclarative)))
11031 (home-page "https://games.kde.org/")
11032 (synopsis "Battleship board game with built-in game server")
11033 (description "KBattleship is a Battle Ship game for KDE.
11035 Ships are placed on a board which represents the sea. Players try to hit each
11036 others ships in turns without knowing where they are placed. The first player
11037 to destroy all ships wins the game.
11039 This package is part of the KDE games module.")
11040 (license (list license:gpl2+ license:fdl1.2+))))
11042 (define-public kreversi
11045 (version "19.08.3")
11049 (uri (string-append "mirror://kde/stable/applications/" version
11050 "/src/kreversi-" version ".tar.xz"))
11052 (base32 "0b6q8df2bawgnrswhq59z37axad0q3zpvvzxdds7sz1lw505xw9h"))))
11053 (build-system qt-build-system)
11055 `(("extra-cmake-modules" ,extra-cmake-modules)
11056 ("kdoctools" ,kdoctools)))
11058 `(("kconfig" ,kconfig)
11059 ("kconfigwidgets" ,kconfigwidgets)
11060 ("kcoreaddons" ,kcoreaddons)
11062 ("kdbusaddons" ,kdbusaddons)
11063 ("kdeclarative" ,kdeclarative)
11065 ("kiconthemes" ,kiconthemes)
11067 ("kxmlgui" ,kxmlgui)
11068 ("libkdegames" ,libkdegames)
11070 ("qtdeclarative" ,qtdeclarative)
11072 (home-page "https://games.kde.org/")
11073 (synopsis "Old reversi board game, also known as othello")
11074 (description "KReversi is a simple one player strategy game played
11075 against the computer.
11077 If a player's piece is captured by an opposing player, that piece is turned
11078 over to reveal the color of that player. A winner is declared when one player
11079 has more pieces of his own color on the board and there are no more possible
11082 This package is part of the KDE games module.")
11083 (license (list license:gpl2+ license:fdl1.2+))))
11085 (define-public ksquares
11088 (version "19.08.3")
11092 (uri (string-append "mirror://kde/stable/applications/" version
11093 "/src/ksquares-" version ".tar.xz"))
11095 (base32 "0hv8hls5s627lys08nnw72rfzsafj3dmp49mh2afzmh6lgk9h5vy"))))
11096 (build-system qt-build-system)
11098 `(("extra-cmake-modules" ,extra-cmake-modules)
11099 ("kdoctools" ,kdoctools)))
11101 `(("kcompletion" ,kcompletion)
11102 ("kconfig" ,kconfig)
11103 ("kconfigwidgets" ,kconfigwidgets)
11104 ("kcoreaddons" ,kcoreaddons)
11106 ("kdbusaddons" ,kdbusaddons)
11108 ("kwidgetsaddons" ,kwidgetsaddons)
11109 ("kxmlgui" ,kxmlgui)
11110 ("libkdegames" ,libkdegames)
11112 ("qtdeclarative" ,qtdeclarative)))
11113 (home-page "https://games.kde.org/")
11114 (synopsis "Dots and Boxes game")
11115 (description "KSquares is an implementation of the popular paper based
11116 game Squares. Two players take turns connecting dots on a grid to complete
11117 squares, the player with the most squares wins.
11119 This package is part of the KDE games module.")
11120 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11122 (define-public kjumpingcube
11124 (name "kjumpingcube")
11125 (version "19.08.3")
11129 (uri (string-append "mirror://kde/stable/applications/" version
11130 "/src/kjumpingcube-" version ".tar.xz"))
11132 (base32 "0d67zqkf2xffjkj671gl2n6nj6jajyn6rgqqj5i6gm500mqi9rm1"))))
11133 (build-system qt-build-system)
11135 `(("extra-cmake-modules" ,extra-cmake-modules)
11136 ("kdoctools" ,kdoctools)))
11138 `(("kconfig" ,kconfig)
11139 ("kconfigwidgets" ,kconfigwidgets)
11140 ("kcoreaddons" ,kcoreaddons)
11142 ("kdbusaddons" ,kdbusaddons)
11145 ("kwidgetsaddons" ,kwidgetsaddons)
11146 ("kxmlgui" ,kxmlgui)
11147 ("libkdegames" ,libkdegames)
11149 ("qtdeclarative" ,qtdeclarative)
11151 (home-page "https://games.kde.org/")
11152 (synopsis "Simple tactical game for number-crunchers")
11153 (description "KJumpingcube is a simple tactical game for one or two
11154 players, played on a grid of numbered squares. Each turn, players compete for
11155 control of the board by capturing or adding to one square.
11157 This package is part of the KDE games module.")
11158 (license (list license:gpl2+ license:fdl1.2+))))
11160 (define-public xmoto
11167 (uri (git-reference
11168 (url "https://github.com/xmoto/xmoto")
11170 (file-name (git-file-name name version))
11172 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11173 (modules '((guix build utils)
11176 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11177 ;; it appears to be incompatible with the (older) one bundled.
11180 (let ((keep '("chipmunk" "glad" "md5sum")))
11181 (with-directory-excursion "vendor"
11182 (for-each delete-file-recursively
11183 (lset-difference string=?
11185 (cons* "." ".." keep))))
11186 (substitute* "src/CMakeLists.txt"
11187 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11188 (if (member library keep) line ""))))
11190 (build-system cmake-build-system)
11192 `(#:tests? #f ;no test
11194 (modify-phases %standard-phases
11195 (add-after 'unpack 'fix-hard-coded-directory
11196 (lambda* (#:key outputs #:allow-other-keys)
11197 (substitute* "src/common/VFileIO.cpp"
11199 (string-append (assoc-ref outputs "out") "/share")))
11201 (add-before 'build 'set-SDL
11202 ;; Set correct environment for SDL.
11203 (lambda* (#:key inputs #:allow-other-keys)
11206 (assoc-ref inputs "sdl") "/include/SDL:"
11207 (or (getenv "CPATH") "")))
11209 (add-after 'install 'unbundle-fonts
11210 ;; Unbundle DejaVuSans TTF files.
11211 (lambda* (#:key outputs inputs #:allow-other-keys)
11212 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11213 "/share/fonts/truetype/"))
11214 (target-dir (string-append (assoc-ref outputs "out")
11215 "/share/xmoto/Textures/Fonts/")))
11216 (for-each (lambda (f)
11217 (let ((font (string-append font-dir f))
11218 (target (string-append target-dir f)))
11219 (delete-file target)
11220 (symlink font target)))
11221 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11224 `(("gettext" ,gettext-minimal)
11225 ("pkg-config" ,pkg-config)))
11229 ("font-dejavu" ,font-dejavu)
11231 ("libjpeg" ,libjpeg-turbo)
11233 ("libxdg-basedir" ,libxdg-basedir)
11234 ("libxml2" ,libxml2)
11237 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11240 (home-page "https://xmoto.tuxfamily.org/")
11241 (synopsis "2D motocross platform game")
11243 "X-Moto is a challenging 2D motocross platform game, where
11244 physics play an all important role in the gameplay. You need to
11245 control your bike to its limit, if you want to have a chance finishing
11246 the more difficult challenges.")
11247 (license (list license:gpl2+ ;whole project
11248 license:bsd-3 ;vendor/md5sum
11252 (define-public eboard
11259 (uri (git-reference
11260 (url "https://github.com/fbergo/eboard")
11261 (commit (string-append "v" version))))
11262 (file-name (git-file-name name version))
11264 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11265 (build-system gnu-build-system)
11268 ("pkg-config" ,pkg-config)))
11272 ("gstreamer" ,gstreamer)))
11276 (modify-phases %standard-phases
11277 (replace 'configure
11278 (lambda* (#:key outputs #:allow-other-keys)
11279 (make-file-writable "eboard-config")
11280 (setenv "CC" "gcc")
11281 (invoke "./configure"
11282 (string-append "--prefix=" (assoc-ref outputs "out")))
11284 (add-before 'install 'make-required-directories
11285 (lambda* (#:key outputs #:allow-other-keys)
11286 (mkdir-p (string-append (assoc-ref outputs "out")
11289 (synopsis "Graphical user interface to play chess")
11291 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11292 and chess engines.")
11293 (home-page "https://www.bergo.eng.br/eboard/")
11294 (license license:gpl2+)))
11296 (define-public chessx
11303 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11304 version "/chessx-" version ".tgz"))
11306 (base32 "1a3541vl5hp6jllgx998w9kjh9kp3wrl80yfwkxmq1bc5bzsrnz2"))))
11307 (build-system qt-build-system)
11309 `(("qttools" ,qttools)))
11311 `(("qtbase" ,qtbase)
11312 ("qtmultimedia" ,qtmultimedia)
11313 ("qtspeech" ,qtspeech)
11319 (modify-phases %standard-phases
11320 (add-after 'unpack 'fix-paths
11321 (lambda* (#:key inputs #:allow-other-keys)
11322 (substitute* "chessx.pro"
11323 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11324 (string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
11325 ;; Fix missing translations.
11326 (("TRANSLATIONS = i18n/chessx_de.ts")
11327 "TRANSLATIONS = i18n/chessx_de.ts i18n/chessx_da.ts \\
11328 i18n/chessx_fr.ts i18n/chessx_it.ts i18n/chessx_cz.ts i18n/chessx_ru.ts \\
11329 i18n/chessx_es.ts"))
11331 (add-after 'fix-paths 'make-qt-deterministic
11333 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11335 (replace 'configure
11340 (lambda* (#:key outputs #:allow-other-keys)
11341 (let ((out (assoc-ref outputs "out")))
11342 (install-file "release/chessx" (string-append out "/bin"))
11343 (install-file "unix/chessx.desktop"
11344 (string-append out "/share/applications")))
11346 (synopsis "Chess game database")
11348 "ChessX is a chess database. With ChessX you can operate on your
11349 collection of chess games in many ways: browse, edit, add, organize, analyze,
11350 etc. You can also play games on FICS or against an engine.")
11351 (home-page "http://chessx.sourceforge.net/")
11352 (license license:gpl2+)))
11354 (define-public stockfish
11361 (uri (git-reference
11362 (url "https://github.com/official-stockfish/Stockfish")
11363 (commit (string-append "sf_" version))))
11364 (file-name (git-file-name name version))
11366 (base32 "12mppipinymj8s1ipq9a7is453vncly49c32ym9wvyklsgyxfzlk"))))
11367 (build-system gnu-build-system)
11370 #:make-flags (list "-C" "src"
11372 (string-append "PREFIX="
11373 (assoc-ref %outputs "out"))
11374 (string-append "ARCH="
11375 ,(match (%current-system)
11376 ("x86_64-linux" "x86-64")
11377 ("i686-linux" "x86-32")
11378 ("aarch64-linux" "general-64")
11379 ("armhf-linux" "armv7")
11380 ("mips64el-linux" "general-64")
11381 (_ "general-32"))))
11382 #:phases (modify-phases %standard-phases
11383 (delete 'configure))))
11384 (synopsis "Strong chess engine")
11386 "Stockfish is a very strong chess engines. It is much stronger than the
11387 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11389 (home-page "https://stockfishchess.org/")
11390 (license license:gpl3+)))
11392 (define-public barrage
11399 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11400 "barrage-" version ".tar.gz"))
11402 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11403 (build-system gnu-build-system)
11405 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11407 ("sdl-mixer" ,sdl-mixer)))
11409 `(#:configure-flags
11411 (string-append "CFLAGS="
11412 "-I" (assoc-ref %build-inputs "sdl-mixer")
11414 (home-page "http://lgames.sourceforge.net/Barrage/")
11415 (synopsis "Violent point-and-click shooting game with nice effects")
11417 "Barrage is a rather destructive action game that puts you on a shooting
11418 range with the objective to hit as many dummy targets as possible within
11419 3 minutes. You control a gun that may either fire small or large grenades at
11420 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11422 (license license:gpl2+)))
11424 (define-public burgerspace
11426 (name "burgerspace")
11431 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11432 "burgerspace-" version ".tar.gz"))
11434 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11435 (build-system gnu-build-system)
11437 `(("pkg-config" ,pkg-config)))
11439 `(("flatzebra" ,flatzebra)))
11440 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11441 (synopsis "Avoid evil foodstuffs and make burgers")
11443 "This is a clone of the classic game BurgerTime. In it, you play
11444 the part of a chef who must create burgers by stepping repeatedly on
11445 the ingredients until they fall into place. And to make things more
11446 complicated, you also must avoid evil animate food items while
11447 performing this task, with nothing but your trusty pepper shaker to
11449 (license license:gpl2+)))
11451 (define-public 7kaa
11458 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11459 "releases/download/v" version "/"
11460 "7kaa-" version ".tar.xz"))
11462 (base32 "0n0bn6xshv3cwk8j0lkl65a1vqd1xkkzlhvwxm32va80nc16d5ds"))))
11463 (build-system gnu-build-system)
11465 `(("gettext" ,gettext-minimal)
11466 ("pkg-config" ,pkg-config)))
11472 (home-page "https://7kfans.com/")
11473 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11475 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11476 Strategy with the addition of trade, diplomacy, and espionage. The game
11477 enables players to compete against up to six other kingdoms allowing players
11478 to conquer opponents by defeating them in war (with troops or machines),
11479 capturing their buildings with spies, or offering opponents money for their
11481 (license license:gpl2+)))
11483 (define-public neverball
11484 ;; Git version is 6-years younger than latest release.
11485 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
11489 (version (git-version "1.6.0" revision commit))
11493 (uri (git-reference
11494 (url "https://github.com/Neverball/neverball")
11498 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
11499 (file-name (git-file-name name version))
11500 (modules '((guix build utils)))
11503 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
11504 (delete-file-recursively "data/ball/octocat")
11506 (build-system copy-build-system)
11509 '(("neverball" "bin/")
11510 ("neverputt" "bin/")
11512 ("data" "share/games/neverball/")
11513 ("locale" "share/")
11514 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
11517 ("dist/" "share/applications" #:include ("neverball.desktop"
11518 "neverputt.desktop"))
11519 ("dist/neverball_16.png"
11520 "/share/icons/hicolor/16x16/apps/neverball.png")
11521 ("dist/neverball_24.png"
11522 "/share/icons/hicolor/24x24/apps/neverball.png")
11523 ("dist/neverball_32.png"
11524 "/share/icons/hicolor/32x32/apps/neverball.png")
11525 ("dist/neverball_48.png"
11526 "/share/icons/hicolor/48x48/apps/neverball.png")
11527 ("dist/neverball_64.png"
11528 "/share/icons/hicolor/64x64/apps/neverball.png")
11529 ("dist/neverball_128.png"
11530 "/share/icons/hicolor/128x128/apps/neverball.png")
11531 ("dist/neverball_256.png"
11532 "/share/icons/hicolor/256x256/apps/neverball.png")
11533 ("dist/neverball_512.png"
11534 "/share/icons/hicolor/512x512/apps/neverball.png")
11535 ("dist/neverputt_16.png"
11536 "/share/icons/hicolor/16x16/apps/neverputt.png")
11537 ("dist/neverputt_24.png"
11538 "/share/icons/hicolor/24x24/apps/neverputt.png")
11539 ("dist/neverputt_32.png"
11540 "/share/icons/hicolor/32x32/apps/neverputt.png")
11541 ("dist/neverputt_48.png"
11542 "/share/icons/hicolor/48x48/apps/neverputt.png")
11543 ("dist/neverputt_64.png"
11544 "/share/icons/hicolor/64x64/apps/neverputt.png")
11545 ("dist/neverputt_128.png"
11546 "/share/icons/hicolor/128x128/apps/neverputt.png")
11547 ("dist/neverputt_256.png"
11548 "/share/icons/hicolor/256x256/apps/neverputt.png")
11549 ("dist/neverputt_512.png"
11550 "/share/icons/hicolor/512x512/apps/neverputt.png")
11551 ("dist/" "share/man/man1" #:include ("mapc.1"))
11552 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
11553 ("doc/" "share/doc/neverball")
11554 ("README.md" "share/doc/neverball/"))
11556 (modify-phases %standard-phases
11557 (add-before 'install 'build
11558 (lambda* (#:key inputs outputs #:allow-other-keys)
11559 (let* ((out (assoc-ref outputs "out"))
11560 (sdl (assoc-ref inputs "sdl")))
11561 (invoke "make" "-j" (number->string (parallel-job-count))
11562 "--environment-overrides"
11563 "CC=gcc" "BUILD=release"
11564 (string-append "DATADIR="
11566 "/share/games/neverball/data")
11567 (string-append "LOCALEDIR=" out "/share/locale")
11568 (string-append "SDL_CPPFLAGS=-I"
11570 "/include/SDL2/")))
11572 (add-after 'install 'fix-some-broken-fonts
11573 (lambda* (#:key outputs #:allow-other-keys)
11574 (let* ((out (assoc-ref outputs "out")))
11575 (wrap-program (string-append out "/bin/neverball")
11576 `("LANG" = ("en_US.utf8")))
11577 (wrap-program (string-append out "/bin/neverputt")
11578 `("LANG" = ("en_US.utf8"))))
11581 `(("gettext" ,gettext-minimal))) ;for msgfmt
11583 `(("libjpeg" ,libjpeg-turbo)
11585 ("libvorbis" ,libvorbis)
11587 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
11588 (home-page "https://neverball.org/")
11589 (synopsis "3D floor-tilting game")
11591 "In the grand tradition of Marble Madness and Super Monkey Ball,
11592 Neverball has you guide a rolling ball through dangerous territory. Balance
11593 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
11594 and shovers to get to the goal. Race against the clock to collect coins to
11595 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
11596 game.") ;thanks to Debian for description
11597 (license license:gpl2+))))
11599 (define-public pokerth
11606 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
11607 version "/pokerth-" version ".tar.gz"))
11609 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
11610 (modules '((guix build utils)))
11613 ;; Remove bundled websocketpp.
11614 (delete-file-recursively "src/third_party/websocketpp")
11615 (substitute* "pokerth_lib.pro"
11616 (("src/third_party/websocketpp")
11619 (build-system qt-build-system)
11624 ("libgcrypt" ,libgcrypt)
11625 ("libircclient" ,libircclient)
11626 ("protobuf" ,protobuf-2)
11628 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
11630 ("tinyxml" ,tinyxml)
11631 ("websocketpp" ,websocketpp)
11634 `(#:tests? #f ; No test suite
11636 (modify-phases %standard-phases
11637 (add-after 'unpack 'fix-paths
11638 (lambda* (#:key inputs #:allow-other-keys)
11639 (substitute* (find-files "." "\\.pro$")
11641 (assoc-ref inputs "gsasl"))
11642 (("\\$\\$\\{PREFIX\\}/include/libircclient")
11643 (string-append (assoc-ref inputs "libircclient")
11644 "/include/libircclient"))
11646 (string-append "LIB_DIRS = "
11647 (assoc-ref inputs "boost") "/lib")))
11649 (add-after 'unpack 'fix-build
11651 ;; Fixes for Boost versions >= 1.66.
11652 (substitute* '("src/net/common/clientthread.cpp"
11653 "src/net/serveraccepthelper.h")
11654 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
11656 (("newSock->io_control\\(command\\);")
11657 "newSock->non_blocking(true);")
11658 (("acceptedSocket->io_control\\(command\\);")
11659 "acceptedSocket->non_blocking(true);"))
11661 (replace 'configure
11662 (lambda* (#:key outputs #:allow-other-keys)
11663 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
11664 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
11665 (home-page "https://www.pokerth.net")
11666 (synopsis "Texas holdem poker game")
11668 "With PokerTH you can play the Texas holdem poker game, either against
11669 computer opponents or against real players online.")
11670 (license license:agpl3+)))