gnu: Add Trigger Rally.
[jackhill/guix/guix.git] / gnu / packages / games.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Eric Bavier <bavier@posteo.net>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015, 2019 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015, 2017, 2018 Christopher Lemmer Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017, 2019 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
35 ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
36 ;;; Copyright © 2018 Madalin Ionel-Patrascu <madalinionel.patrascu@mdc-berlin.de>
37 ;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
38 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
39 ;;; Copyright © 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
40 ;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
41 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
42 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
43 ;;; Copyright © 2019, 2020 Jesse Gibbons <jgibbons2357+guix@gmail.com>
44 ;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
45 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
46 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
47 ;;; Copyright © 2019 Josh Holland <josh@inv.alid.pw>
48 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
49 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
50 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
51 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
52 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
53 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
54 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
57 ;;; Copyright © 2020 Lu hux <luhux@outlook.com>
58 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
59 ;;;
60 ;;; This file is part of GNU Guix.
61 ;;;
62 ;;; GNU Guix is free software; you can redistribute it and/or modify it
63 ;;; under the terms of the GNU General Public License as published by
64 ;;; the Free Software Foundation; either version 3 of the License, or (at
65 ;;; your option) any later version.
66 ;;;
67 ;;; GNU Guix is distributed in the hope that it will be useful, but
68 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
69 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
70 ;;; GNU General Public License for more details.
71 ;;;
72 ;;; You should have received a copy of the GNU General Public License
73 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
74
75 (define-module (gnu packages games)
76 #:use-module (ice-9 match)
77 #:use-module ((guix licenses) #:prefix license:)
78 #:use-module (guix utils)
79 #:use-module (guix packages)
80 #:use-module (guix download)
81 #:use-module (guix git-download)
82 #:use-module (guix svn-download)
83 #:use-module (guix gexp)
84 #:use-module (gnu packages)
85 #:use-module (gnu packages adns)
86 #:use-module (gnu packages algebra)
87 #:use-module (gnu packages autotools)
88 #:use-module (gnu packages backup)
89 #:use-module (gnu packages base)
90 #:use-module (gnu packages build-tools)
91 #:use-module (gnu packages admin)
92 #:use-module (gnu packages audio)
93 #:use-module (gnu packages avahi)
94 #:use-module (gnu packages assembly)
95 #:use-module (gnu packages bash)
96 #:use-module (gnu packages bison)
97 #:use-module (gnu packages boost)
98 #:use-module (gnu packages check)
99 #:use-module (gnu packages cmake)
100 #:use-module (gnu packages compression)
101 #:use-module (gnu packages cpp)
102 #:use-module (gnu packages curl)
103 #:use-module (gnu packages crypto)
104 #:use-module (gnu packages cyrus-sasl)
105 #:use-module (gnu packages documentation)
106 #:use-module (gnu packages docbook)
107 #:use-module (gnu packages emulators)
108 #:use-module (gnu packages flex)
109 #:use-module (gnu packages fltk)
110 #:use-module (gnu packages fonts)
111 #:use-module (gnu packages fontutils)
112 #:use-module (gnu packages freedesktop)
113 #:use-module (gnu packages fribidi)
114 #:use-module (gnu packages game-development)
115 #:use-module (gnu packages gcc)
116 #:use-module (gnu packages gettext)
117 #:use-module (gnu packages ghostscript)
118 #:use-module (gnu packages gimp)
119 #:use-module (gnu packages gl)
120 #:use-module (gnu packages glib)
121 #:use-module (gnu packages gnome)
122 #:use-module (gnu packages gnu-doc)
123 #:use-module (gnu packages gnupg)
124 #:use-module (gnu packages gnuzilla)
125 #:use-module (gnu packages gperf)
126 #:use-module (gnu packages graphics)
127 #:use-module (gnu packages gsasl)
128 #:use-module (gnu packages gstreamer)
129 #:use-module (gnu packages gtk)
130 #:use-module (gnu packages guile)
131 #:use-module (gnu packages haskell)
132 #:use-module (gnu packages haskell-crypto)
133 #:use-module (gnu packages haskell-xyz)
134 #:use-module (gnu packages icu4c)
135 #:use-module (gnu packages image)
136 #:use-module (gnu packages imagemagick)
137 #:use-module (gnu packages javascript)
138 #:use-module (gnu packages kde)
139 #:use-module (gnu packages kde-frameworks)
140 #:use-module (gnu packages less)
141 #:use-module (gnu packages libcanberra)
142 #:use-module (gnu packages libedit)
143 #:use-module (gnu packages libunwind)
144 #:use-module (gnu packages linux)
145 #:use-module (gnu packages llvm)
146 #:use-module (gnu packages lua)
147 #:use-module (gnu packages man)
148 #:use-module (gnu packages maths)
149 #:use-module (gnu packages messaging)
150 #:use-module (gnu packages mp3)
151 #:use-module (gnu packages music)
152 #:use-module (gnu packages multiprecision)
153 #:use-module (gnu packages ncurses)
154 #:use-module (gnu packages netpbm)
155 #:use-module (gnu packages networking)
156 #:use-module (gnu packages ocaml)
157 #:use-module (gnu packages opencl)
158 #:use-module (gnu packages pcre)
159 #:use-module (gnu packages perl)
160 #:use-module (gnu packages perl-check)
161 #:use-module (gnu packages perl-compression)
162 #:use-module (gnu packages pkg-config)
163 #:use-module (gnu packages protobuf)
164 #:use-module (gnu packages pulseaudio)
165 #:use-module (gnu packages python)
166 #:use-module (gnu packages python-xyz)
167 #:use-module (gnu packages qt)
168 #:use-module (gnu packages readline)
169 #:use-module (gnu packages ruby)
170 #:use-module (gnu packages shells)
171 #:use-module (gnu packages sdl)
172 #:use-module (gnu packages serialization)
173 #:use-module (gnu packages sqlite)
174 #:use-module (gnu packages squirrel)
175 #:use-module (gnu packages swig)
176 #:use-module (gnu packages tcl)
177 #:use-module (gnu packages terminals)
178 #:use-module (gnu packages texinfo)
179 #:use-module (gnu packages textutils)
180 #:use-module (gnu packages tls)
181 #:use-module (gnu packages upnp)
182 #:use-module (gnu packages video)
183 #:use-module (gnu packages vulkan)
184 #:use-module (gnu packages web)
185 #:use-module (gnu packages wget)
186 #:use-module (gnu packages wxwidgets)
187 #:use-module (gnu packages xdisorg)
188 #:use-module (gnu packages xorg)
189 #:use-module (gnu packages xiph)
190 #:use-module (gnu packages xml)
191 #:use-module (guix build-system copy)
192 #:use-module (guix build-system cmake)
193 #:use-module (guix build-system glib-or-gtk)
194 #:use-module (guix build-system gnu)
195 #:use-module (guix build-system go)
196 #:use-module (guix build-system meson)
197 #:use-module (guix build-system perl)
198 #:use-module (guix build-system python)
199 #:use-module (guix build-system qt)
200 #:use-module (guix build-system scons)
201 #:use-module (guix build-system trivial)
202 #:use-module ((srfi srfi-1) #:hide (zip))
203 #:use-module (srfi srfi-26))
204
205 (define-public abe
206 (package
207 (name "abe")
208 (version "1.1")
209 (source
210 (origin
211 (method url-fetch)
212 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
213 "/abe-" version ".tar.gz"))
214 (sha256
215 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
216 (build-system gnu-build-system)
217 (arguments
218 `(#:configure-flags
219 (list (string-append "--with-data-dir="
220 (assoc-ref %outputs "out")
221 "/share/abe"))
222 #:phases
223 (modify-phases %standard-phases
224 (replace 'bootstrap
225 (lambda _ (invoke "sh" "autogen.sh")))
226 (add-before 'build 'set-SDL
227 ;; Set correct environment for SDL.
228 (lambda* (#:key inputs #:allow-other-keys)
229 (setenv "CPATH"
230 (string-append
231 (assoc-ref inputs "sdl") "/include/SDL:"
232 (or (getenv "CPATH") "")))
233 #t))
234 (add-after 'install 'finalize-install
235 (lambda* (#:key outputs #:allow-other-keys)
236 (let ((share (string-append (assoc-ref outputs "out") "/share")))
237 ;; Installation script does not copy game data files.
238 (let ((data (string-append share "/abe")))
239 (for-each (lambda (dir)
240 (let ((target (string-append data "/" dir)))
241 (mkdir-p target)
242 (copy-recursively dir target)))
243 '("images" "maps" "sounds")))
244 ;; Create desktop file.
245 (let ((apps (string-append share "/applications")))
246 (mkdir-p apps)
247 (make-desktop-entry-file
248 (string-append apps "/abe.desktop")
249 #:name "Abe's Amazing Adventure"
250 #:exec ,name
251 #:categories '("AdventureGame" "Game")
252 #:keywords
253 '("side-scrolling" "adventure" "pyramid" "singleplayer")
254 #:comment
255 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
256 (#f "Side-scrolling game")))))
257 #t)))))
258 (native-inputs
259 `(("autoconf" ,autoconf)
260 ("automake" ,automake)))
261 (inputs
262 `(("libxi" ,libxi)
263 ("libxmu" ,libxmu)
264 ("libxt" ,libxt)
265 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
266 (home-page "http://abe.sourceforge.net")
267 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
268 (description
269 "Abe's Amazing Adventure is a scrolling,
270 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
271 the style of similar games for the Commodore+4.")
272 (license license:gpl2+)))
273
274 ;; Data package for adanaxisgpl.
275 (define adanaxis-mush
276 (let ((version "1.1.0"))
277 (origin
278 (method url-fetch)
279 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
280 version ".tar.gz"))
281 (sha256
282 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
283
284 (define-public adanaxisgpl
285 (package
286 (name "adanaxisgpl")
287 (version "1.2.5")
288 (source
289 (origin
290 (method url-fetch)
291 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
292 version ".tar.gz"))
293 (sha256
294 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
295 (modules '((guix build utils)))
296 (snippet
297 '(begin
298 ;; Necessary for building with gcc >=4.7.
299 (substitute* "src/Mushcore/MushcoreSingleton.h"
300 (("SingletonPtrSet\\(new SingletonType\\);")
301 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
302 ;; Avoid an "invalid conversion from const char* to char*" error.
303 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
304 (("char \\*end, \\*result;")
305 (string-append "const char *end;"
306 "\n"
307 "char *result;")))
308 #t))))
309 (build-system gnu-build-system)
310 (arguments
311 `(#:tests? #f ; no check target
312 #:phases
313 (modify-phases %standard-phases
314 (add-after 'install 'install-data
315 (lambda* (#:key inputs outputs #:allow-other-keys)
316 (let ((data (assoc-ref inputs "adanaxis-mush"))
317 (share (string-append (assoc-ref outputs "out")
318 "/share/" ,name "-" ,version)))
319 (mkdir-p share)
320 (invoke "tar" "xvf" data "-C" share)))))))
321 (native-inputs
322 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
323 (inputs
324 `(("expat" ,expat)
325 ("freeglut" ,freeglut)
326 ("glu" ,glu)
327 ("libjpeg" ,libjpeg-turbo)
328 ("libogg" ,libogg)
329 ("libtiff" ,libtiff)
330 ("libvorbis" ,libvorbis)
331 ("libx11" ,libx11)
332 ("libxext" ,libxext)
333 ("pcre" ,pcre)
334 ("sdl" ,sdl)
335 ("sdl-mixer" ,sdl-mixer)))
336 (home-page "https://www.mushware.com")
337 (synopsis "Action game in four spatial dimensions")
338 (description
339 "Adanaxis is a fast-moving first person shooter set in deep space, where
340 the fundamentals of space itself are changed. By adding another dimension to
341 space this game provides an environment with movement in four directions and
342 six planes of rotation. Initially the game explains the 4D control system via
343 a graphical sequence, before moving on to 30 levels of gameplay with numerous
344 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
345 mouse and joystick control, and original music.")
346 (license license:gpl2)))
347
348 (define-public alex4
349 (package
350 (name "alex4")
351 (version "1.2.1")
352 (source
353 (origin
354 (method git-fetch)
355 (uri (git-reference
356 (url "https://github.com/carstene1ns/alex4")
357 (commit version)))
358 (file-name (git-file-name name version))
359 (sha256
360 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
361 (build-system gnu-build-system)
362 (arguments
363 `(#:tests? #f ; no check target
364 #:make-flags
365 (list "CC=gcc"
366 "CFLAGS=-D_FILE_OFFSET_BITS=64"
367 (string-append "PREFIX=" (assoc-ref %outputs "out")))
368 #:phases
369 (modify-phases %standard-phases
370 (delete 'configure) ; no configure script
371 (add-after 'install 'install-data
372 (lambda* (#:key outputs #:allow-other-keys)
373 (let ((share (string-append (assoc-ref outputs "out")
374 "/share/" ,name)))
375 (install-file "alex4.ini" share)
376 #t))))))
377 (inputs
378 `(("allegro" ,allegro-4)
379 ("dumb" ,dumb-allegro4)))
380 (home-page "http://allegator.sourceforge.net/")
381 (synopsis "Retro platform game")
382 (description
383 "Guide Alex the Allegator through the jungle in order to save his
384 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
385 Plenty of classic platforming in four nice colors guaranteed!
386
387 The game includes a built-in editor so you can design and share your own maps.")
388 (license license:gpl2+)))
389
390 (define-public armagetronad
391 (package
392 (name "armagetronad")
393 (version "0.2.9.0.1")
394 (source (origin
395 (method url-fetch)
396 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
397 version "/armagetronad-" version ".tbz"))
398 (sha256
399 (base32
400 "19rfhlg4gp0r7k1j8v4iw20325ciy156nmzax4xikmw22c6nmxcz"))))
401 (build-system gnu-build-system)
402 (native-inputs
403 `(("pkg-config" ,pkg-config)))
404 (inputs
405 `(("libxml2" ,libxml2)
406 ("sdl" ,sdl)
407 ("sdl-image" ,sdl-image)
408 ("freeglut" ,freeglut)
409 ("libpng" ,libpng)
410 ("libjpeg-turbo" ,libjpeg-turbo)))
411 (home-page "http://www.armagetronad.org")
412 (synopsis "Tron clone in 3D")
413 (description "Armagetron Advanced is a multiplayer game in 3d that
414 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
415 It's an old school arcade game slung into the 21st century. Highlights
416 include a customizable playing arena, HUD, unique graphics, and AI bots. For
417 the more advanced player there are new game modes and a wide variety of
418 physics settings to tweak as well.")
419 (license license:gpl2+)))
420
421 (define-public astromenace
422 (package
423 (name "astromenace")
424 (version "1.4.1")
425 (source
426 (origin
427 (method git-fetch)
428 (uri (git-reference
429 (url "https://github.com/viewizard/astromenace")
430 (commit (string-append "v" version))))
431 (file-name (git-file-name name version))
432 (sha256
433 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
434 (build-system cmake-build-system)
435 (arguments
436 `(#:tests? #f ;no test
437 #:configure-flags (list (string-append "-DDATADIR="
438 (assoc-ref %outputs "out")
439 "/share/astromenace"))
440 #:phases
441 (modify-phases %standard-phases
442 (replace 'install
443 ;; Upstream provides no install phase.
444 (lambda* (#:key inputs outputs #:allow-other-keys)
445 (let* ((out (assoc-ref outputs "out"))
446 (bin (string-append out "/bin"))
447 (share (string-append out "/share"))
448 (apps (string-append share "/applications"))
449 (data (string-append share "/astromenace"))
450 (icons (string-append share "/icons/hicolor/64x64/apps")))
451 (install-file "astromenace" bin)
452 (install-file "gamedata.vfs" data)
453 (let ((source (assoc-ref inputs "source")))
454 (with-directory-excursion (string-append source "/share")
455 (install-file "astromenace.desktop" apps)
456 (mkdir-p icons)
457 (copy-file "astromenace_64.png"
458 (string-append icons "/astromenace.png")))))
459 #t)))))
460 (inputs
461 `(("freealut" ,freealut)
462 ("freetype" ,freetype)
463 ("glu" ,glu)
464 ("libogg" ,libogg)
465 ("libvorbis" ,libvorbis)
466 ("openal" ,openal)
467 ("sdl2" ,sdl2)))
468 (home-page "https://www.viewizard.com/")
469 (synopsis "3D space shooter with spaceship upgrade possibilities")
470 (description
471 "Space is a vast area, an unbounded territory where it seems there is
472 a room for everybody, but reversal of fortune put things differently. The
473 hordes of hostile creatures crawled out from the dark corners of the universe,
474 craving to conquer your homeland. Their force is compelling, their legions
475 are interminable. However, humans didn't give up without a final showdown and
476 put their best pilot to fight back. These malicious invaders chose the wrong
477 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
478 regret their insolence.")
479 ;; Game is released under GPL3+ terms. Artwork is subject to CC
480 ;; BY-SA 4.0, and fonts to OFL1.1.
481 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
482
483 (define-public bastet
484 (package
485 (name "bastet")
486 (version "0.43.2")
487 (source
488 (origin
489 (method git-fetch)
490 (uri (git-reference
491 (url "https://github.com/fph/bastet")
492 (commit version)))
493 (file-name (git-file-name name version))
494 (sha256
495 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
496 (patches
497 (search-patches "bastet-change-source-of-unordered_set.patch"))))
498 (build-system gnu-build-system)
499 (arguments
500 `(#:make-flags
501 (list (string-append "CXXFLAGS=-I"
502 (assoc-ref %build-inputs "boost") "/include"))
503 #:phases
504 (modify-phases %standard-phases
505 (delete 'configure) ; no configure script
506 (replace 'check
507 ;; The 'Test' target builds the tests, but doesn't actually run them.
508 (lambda* (#:key make-flags #:allow-other-keys)
509 (apply invoke "make" "Test" make-flags)
510 (setenv "HOME" ".")
511 (invoke "./Test")))
512 (replace 'install
513 (lambda* (#:key outputs #:allow-other-keys)
514 (let* ((out (assoc-ref outputs "out"))
515 (share (string-append out "/share"))
516 (hicolor (string-append share "/icons/hicolor")))
517 (install-file "bastet"
518 (string-append out "/bin"))
519
520 (install-file "bastet.desktop"
521 (string-append share "/applications"))
522 (install-file "bastet.svg"
523 (string-append hicolor "/scalable/apps"))
524
525 (install-file "bastet.appdata.xml"
526 (string-append share "/appdata"))
527
528 (install-file "bastet.6"
529 (string-append out "/share/man/man6"))
530 #t))))))
531 (native-inputs
532 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
533 (inputs
534 `(("boost" ,boost)
535 ("ncurses" ,ncurses)))
536 (home-page "https://fph.altervista.org/prog/bastet.html")
537 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
538 (description
539 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
540 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
541 Instead, it uses a special algorithm to choose the worst brick possible.
542
543 Playing bastet can be a painful experience, especially if you usually make
544 canyons and wait for the long I-shaped block to clear four rows at a time.")
545 (license license:gpl3+)))
546
547 (define-public blobwars
548 (package
549 (name "blobwars")
550 (version "2.00")
551 (source
552 (origin
553 (method url-fetch)
554 (uri (string-append "mirror://sourceforge/blobwars/"
555 "blobwars-" version ".tar.gz"))
556 (sha256
557 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
558 (build-system gnu-build-system)
559 (arguments
560 `(#:tests? #f ;no test
561 #:make-flags
562 (let ((out (assoc-ref %outputs "out")))
563 (list (string-append "PREFIX=" out)
564 (string-append "BINDIR=" out "/bin/")
565 "USEPAK=1"
566 "RELEASE=1"))
567 #:phases
568 (modify-phases %standard-phases
569 (add-after 'unpack 'werror-begone
570 (lambda _
571 (substitute* "Makefile" (("-Werror") ""))
572 #t))
573 (delete 'configure)))) ;no configure script
574 (native-inputs
575 `(("gettext" ,gettext-minimal)
576 ("pkg-config" ,pkg-config)))
577 (inputs
578 `(("hicolor-icon-theme" ,hicolor-icon-theme)
579 ("sdl" ,(sdl-union (list sdl2
580 sdl2-image
581 sdl2-mixer
582 sdl2-ttf
583 sdl2-net)))))
584 (home-page "https://sourceforge.net/projects/blobwars/")
585 (synopsis "Platform action game featuring a blob with a lot of weapons")
586 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
587 in the Blobwars series. You take on the role of a fearless Blob agent. Your
588 mission is to infiltrate various enemy bases and rescue as many MIAs as
589 possible, while battling many vicious aliens.")
590 (license (list license:gpl2 ; For code and graphics
591 license:cc0 ; Music and sounds have specific licenses
592 license:cc-by3.0 ; see /doc/readme
593 license:cc-by-sa3.0
594 license:lgpl2.1+
595 license:bsd-2))))
596
597 (define-public bsd-games
598 (package
599 (name "bsd-games")
600 (version "2.17.0")
601 (source
602 (origin
603 (method url-fetch)
604 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
605 (sha256
606 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
607 (patches
608 (search-patches
609 ;; thanks Arch, and Debian
610 "bsd-games-2.17-64bit.patch"
611 "bsd-games-bad-ntohl-cast.patch"
612 "bsd-games-gamescreen.h.patch"
613 "bsd-games-getline.patch"
614 "bsd-games-null-check.patch"
615 "bsd-games-number.c-and-test.patch"
616 "bsd-games-stdio.h.patch"
617 "bsd-games-prevent-name-collisions.patch"
618 ;; Guix customizations
619 "bsd-games-add-configure-config.patch"
620 "bsd-games-dont-install-empty-files.patch"
621 "bsd-games-add-wrapper.patch"))))
622 (build-system gnu-build-system)
623 (native-inputs
624 `(("flex" ,flex)
625 ("bison" ,bison)))
626 (inputs
627 `(("curses" ,ncurses)
628 ("pager" ,less)
629 ("miscfiles" ,miscfiles)
630 ("openssl" ,openssl))) ;used only by 'factor'
631 (arguments
632 `(#:phases
633 (modify-phases %standard-phases
634 (replace 'configure
635 (lambda* (#:key outputs inputs #:allow-other-keys)
636 (let* ((out (assoc-ref outputs "out"))
637 (bin (string-append out "/bin"))
638 (doc (string-append out "/share/doc/bsd-games-" ,version))
639 (man (string-append out "/share/man"))
640 (word-list (string-append (assoc-ref inputs "miscfiles")
641 "/share/web2"))
642 (static-data (string-append out "/share/games/bsd-games"))
643 ;; Not a "./" because of substitute* in 'patch-install
644 ;; below. The .// allow us not to mess with the games'
645 ;; code any further: we just use a wrapper script that
646 ;; cd's to a BSD_GAMES_DIR. :]
647 (save-files ".//"))
648 (substitute* "configure"
649 (("/usr/share/man") man)
650 (("/usr/share/doc/bsd-games") doc)
651 (("/usr/share/[^\n/]*") static-data)
652 (("/var/games") save-files)
653 (("/usr/bin/less") (which "less"))
654 (("(/usr/bin|/usr/games)") bin))
655 (substitute* "config.params" (("WORD_LIST") word-list))
656 (substitute* "wrapper" (("STATIC_DATA") static-data))
657 (invoke "./configure"))
658 #t))
659 (add-before 'install 'patch-install
660 ;; Some games need a writable directory containing pre-maded files.
661 ;; The files get installed to the Store. Then the wrapper kicks in.
662 (lambda* (#:key outputs #:allow-other-keys)
663 (let* ((out (assoc-ref outputs "out"))
664 (static-data (string-append out "/share/games/bsd-games"))
665 (save-files ".//"))
666 (substitute* "Makeconfig" ((save-files) static-data)))
667 #t))
668 (add-after 'install 'install-documents
669 (lambda* (#:key outputs #:allow-other-keys)
670 (let* ((out (assoc-ref outputs "out"))
671 (doc (string-append out "/share/doc/bsd-games-" ,version)))
672 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
673 (for-each
674 (lambda(file) (install-file file doc))
675 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
676 "phantasia-COPYRIGHT")))
677 #t)))))
678 (home-page "https://github.com/vattam/BSDGames")
679 (synopsis "Collection of the old text-based games and amusements")
680 (description
681 "These are the BSD games. See the fortune-mod package for fortunes.
682
683 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
684 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
685 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
686 the $$ from the cave, anger the snake, and get out alive), tetris (game of
687 lining up the falling bricks of different shapes), and worm (eat, grow big,
688 and neither bite your tail, nor ram the wall).
689
690 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
691 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
692 the input), factor (factorizes a number), number (translates numbers into
693 text), pig (translates from English to Pig Latin), pom (should print the
694 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
695 in terminal), random (prints randomly chosen lines from files, or returns a
696 random exit-code), and wtf (explains what do some acronyms mean).
697
698 Board: backgammon (lead the men out of board faster than the friend do),
699 boggle (find the words in the square of letters), dab (game of dots and
700 boxes), gomoku (game of five in a row), hangman (guess a word before man is
701 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
702 canfield, cribbage, fish (juniors game), and mille.
703
704 Quests: adventure (search for treasures with the help of wizard),
705 battlestar (explore the world around, starting from dying spaceship),
706 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
707 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
708
709 Quizes: arithmetic, and quiz.")
710 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
711 ;; not bearing copyright notices, probably fall under the terms of the UCB
712 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
713 ;; warning in regard to the fortune databases."
714 (license (list
715 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
716 ;; lib/strlcpy.c, wargames/wargames.6
717 license:bsd-3
718 ;; dab and hunt. Files: adventure/extern.h,
719 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
720 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
721 ;; hack/extern.h, robots/auto.c, sail/display.h,
722 ;; sail/restart.h, wargames/wargames
723 license:bsd-4
724 ;; wtf (the game)
725 license:public-domain
726 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
727 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
728
729
730 (define-public bzflag
731 (package
732 (name "bzflag")
733 (version "2.4.20")
734 (source
735 (origin
736 (method url-fetch)
737 (uri (string-append "https://download.bzflag.org/bzflag/source/"
738 version "/bzflag-" version ".tar.bz2"))
739 (sha256
740 (base32 "16brxqmfiyz4j4lb8ihzjcbwqmpsms6vm3ijbp34lnw0blbwdjb2"))))
741 (build-system gnu-build-system)
742 (arguments
743 `(#:phases
744 (modify-phases %standard-phases
745 (add-after 'install 'install-desktop-file-and-icons
746 (lambda* (#:key outputs #:allow-other-keys)
747 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
748 (data (string-append share "/bzflag"))
749 (hicolor (string-append share "/icons/hicolor"))
750 (applications (string-append share "/applications")))
751 ;; Move desktop file.
752 (install-file (string-append data "/bzflag.desktop")
753 applications)
754 ;; Install icons.
755 (for-each (lambda (size)
756 (let* ((dim (string-append size "x" size))
757 (dir (string-append hicolor "/" dim "/apps")))
758 (mkdir-p dir)
759 (copy-file
760 (string-append data "/bzflag-" dim ".png")
761 (string-append dir "/bzflag.png"))))
762 '("48" "256")))
763 #t)))))
764 (native-inputs
765 `(("pkg-config" ,pkg-config)))
766 (inputs
767 `(("c-ares" ,c-ares)
768 ("curl" ,curl)
769 ("glew" ,glew)
770 ("glu" ,glu)
771 ("sdl2" ,sdl2)
772 ("zlib" ,zlib)))
773 (home-page "https://www.bzflag.org/")
774 (synopsis "3D first person tank battle game")
775 (description
776 "BZFlag is a 3D multi-player multiplatform tank battle game that
777 allows users to play against each other in a network environment.
778 There are five teams: red, green, blue, purple and rogue (rogue tanks
779 are black). Destroying a player on another team scores a win, while
780 being destroyed or destroying a teammate scores a loss. Rogues have
781 no teammates (not even other rogues), so they cannot shoot teammates
782 and they do not have a team score.
783
784 There are two main styles of play: capture-the-flag and free-for-all.
785 In capture-the-flag, each team (except rogues) has a team base and
786 each team with at least one player has a team flag. The object is to
787 capture an enemy team's flag by bringing it to your team's base. This
788 destroys every player on the captured team, subtracts one from that
789 team's score, and adds one to your team's score. In free-for-all,
790 there are no team flags or team bases. The object is simply to get as
791 high a score as possible.")
792 ;; The game is dual-licensed.
793 (license (list license:lgpl2.1 license:mpl2.0))))
794
795 (define-public cataclysm-dda
796 (package
797 (name "cataclysm-dda")
798 (version "0.E-3")
799 (source
800 (origin
801 (method git-fetch)
802 (uri (git-reference
803 (url "https://github.com/CleverRaven/Cataclysm-DDA")
804 (commit version)))
805 (sha256
806 (base32 "108cs6vp99qmqqfnmczad0xjgcl82bypm5xszwnlfcswdsrfs4da"))
807 (file-name (git-file-name name version))))
808 (build-system gnu-build-system)
809 (arguments
810 '(#:make-flags
811 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
812 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
813 "LOCALIZE=1" "LANGUAGES=all")
814 #:phases
815 (modify-phases %standard-phases
816 (delete 'configure)
817 (add-after 'build 'build-tiles
818 (lambda* (#:key make-flags outputs #:allow-other-keys)
819 ;; Change prefix directory and enable tile graphics and sound.
820 (apply invoke "make" "TILES=1" "SOUND=1"
821 (string-append "PREFIX="
822 (assoc-ref outputs "tiles"))
823 (cdr make-flags))))
824 (add-after 'install 'install-tiles
825 (lambda* (#:key make-flags outputs #:allow-other-keys)
826 (apply invoke "make" "install" "TILES=1" "SOUND=1"
827 (string-append "PREFIX="
828 (assoc-ref outputs "tiles"))
829 (cdr make-flags)))))
830 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
831 ;; input in order to support tests.
832 #:tests? #f))
833 (outputs '("out"
834 "tiles")) ;for tile graphics and sound support
835 (native-inputs
836 `(("gettext" ,gettext-minimal)
837 ("pkg-config" ,pkg-config)))
838 (inputs
839 `(("freetype" ,freetype)
840 ("libogg" ,libogg)
841 ("libvorbis" ,libvorbis)
842 ("ncurses" ,ncurses)
843 ("sdl2" ,sdl2)
844 ("sdl2-image" ,sdl2-image)
845 ("sdl2-ttf" ,sdl2-ttf)
846 ("sdl2-mixer" ,sdl2-mixer)))
847 (home-page "https://cataclysmdda.org/")
848 (synopsis "Survival horror roguelike video game")
849 (description
850 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
851 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
852 procedurally generated world. Scavenge the remnants of a dead civilization
853 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
854 to get you out of Dodge. Fight to defeat or escape from a wide variety of
855 powerful monstrosities, from zombies to giant insects to killer robots and
856 things far stranger and deadlier, and against the others like yourself, that
857 want what you have.")
858 (license license:cc-by-sa3.0)))
859
860 (define-public corsix-th
861 (package
862 (name "corsix-th")
863 (version "0.64")
864 (source
865 (origin
866 (method git-fetch)
867 (uri (git-reference
868 (url "https://github.com/CorsixTH/CorsixTH")
869 (commit (string-append "v" version))))
870 (file-name (git-file-name name version))
871 (sha256
872 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
873 (build-system cmake-build-system)
874 (arguments
875 `(#:phases
876 (modify-phases %standard-phases
877 (add-after 'install 'wrap-binary
878 (lambda _
879 ;; Set Lua module paths and default MIDI soundfont on startup.
880 (let* ((out (assoc-ref %outputs "out"))
881 (fluid (assoc-ref %build-inputs "fluid-3"))
882 (lua-version ,(version-major+minor (package-version lua)))
883 (lua-cpath
884 (map (lambda (lib)
885 (string-append
886 (assoc-ref %build-inputs (string-append "lua-" lib))
887 "/lib/lua/" lua-version "/?.so"))
888 '("filesystem" "lpeg"))))
889 (wrap-program (string-append out "/bin/corsix-th")
890 `("LUA_CPATH" ";" = ,lua-cpath)
891 `("SDL_SOUNDFONTS" ":" suffix
892 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
893 #t)))
894 #:tests? #f)) ; TODO need busted package to run tests
895 ;; Omit Lua-Socket dependency to disable automatic updates.
896 (inputs
897 `(("ffmpeg" ,ffmpeg)
898 ("fluid-3" ,fluid-3)
899 ("freetype" ,freetype)
900 ("lua" ,lua)
901 ("lua-filesystem" ,lua-filesystem)
902 ("lua-lpeg" ,lua-lpeg)
903 ("sdl2" ,sdl2)
904 ("sdl2-mixer" ,sdl2-mixer)))
905 (home-page "https://corsixth.com")
906 (synopsis "Implementation of the @i{Theme Hospital} game engine")
907 (description
908 "This package provides a reimplementation of the 1997 Bullfrog business
909 simulation game @i{Theme Hospital}. As well as faithfully recreating the
910 original engine, CorsixTH adds support for high resolutions, custom levels and
911 more. This package does @emph{not} provide the game assets.")
912 (license (list
913 license:expat ; main license
914 license:bsd-3)))) ; CorsixTH/Src/random.c
915
916 (define-public cowsay
917 (package
918 (name "cowsay")
919 (version "3.04")
920 (source (origin
921 (method git-fetch)
922 (uri (git-reference
923 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
924 (commit (string-append name "-" version))))
925 (file-name (git-file-name name version))
926 (sha256
927 (base32
928 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
929 (build-system gnu-build-system)
930 (arguments
931 `(#:phases
932 (modify-phases %standard-phases
933 (delete 'configure) ; no configure script
934 (delete 'build) ; nothing to be built
935 (replace 'install
936 (lambda* (#:key outputs #:allow-other-keys)
937 (invoke "sh" "install.sh"
938 (assoc-ref outputs "out"))))
939 (delete 'check)
940 (add-after 'install 'check
941 (lambda* (#:key outputs #:allow-other-keys)
942 (invoke (string-append (assoc-ref outputs "out")
943 "/bin/cowsay")
944 "We're done!"))))))
945 (inputs
946 `(("perl" ,perl)))
947 (home-page (string-append "https://web.archive.org/web/20071026043648/"
948 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
949 (synopsis "Speaking cow text filter")
950 (description "Cowsay is basically a text filter. Send some text into it,
951 and you get a cow saying your text. If you think a talking cow isn't enough,
952 cows can think too: all you have to do is run @command{cowthink}. If you're
953 tired of cows, a variety of other ASCII-art messengers are available.")
954 (license license:gpl3+)))
955
956 (define-public lolcat
957 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
958 (revision "0"))
959 (package
960 (name "lolcat")
961 (version (git-version "1.0" revision commit))
962 (source
963 (origin
964 (method git-fetch)
965 (uri (git-reference
966 (url "https://github.com/jaseg/lolcat")
967 (commit commit)))
968 (sha256
969 (base32
970 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
971 (file-name (git-file-name name version))))
972 (build-system gnu-build-system)
973 (arguments
974 `(#:tests? #f ; no check target
975 #:make-flags
976 (list ,(string-append "CC=" (cc-for-target)))
977 #:phases
978 (modify-phases %standard-phases
979 (delete 'bootstrap)
980 (delete 'configure)
981 (replace 'install
982 (lambda* (#:key outputs #:allow-other-keys)
983 (let* ((out (assoc-ref outputs "out"))
984 (dest (string-append out "/bin")))
985 (mkdir-p dest)
986 (install-file "lolcat" dest)
987 (install-file "censor" dest)
988 #t))))))
989 (home-page "https://github.com/jaseg/lolcat")
990 (synopsis "Rainbow coloring effect for text console display")
991 (description "@command{lolcat} concatenates files and streams like
992 regular @command{cat}, but it also adds terminal escape codes between
993 characters and lines resulting in a rainbow effect.")
994 (license license:wtfpl2))))
995
996 (define-public foobillard++
997 ;; Even though this latest revision is old already, stable release is
998 ;; lagging way behind it, and has issues with textures rendering.
999 (let ((svn-revision 170))
1000 (package
1001 (name "foobillard++")
1002 (version (string-append "3.43-r" (number->string svn-revision)))
1003 (source
1004 (origin
1005 (method svn-fetch)
1006 (uri (svn-reference
1007 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1008 (revision svn-revision)))
1009 (file-name (git-file-name name version))
1010 (sha256
1011 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1012 (patches
1013 (search-patches "foobillard++-pkg-config.patch"))
1014 (modules '((guix build utils)))
1015 (snippet
1016 '(begin
1017 ;; Unfortunately, the game includes background music with
1018 ;; a non-commercial clause. Delete it.
1019 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1020 #t))))
1021 (build-system gnu-build-system)
1022 (arguments
1023 `(#:configure-flags
1024 (list
1025 ;; Install data in a less exotic location.
1026 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1027 ;; Prevent a build error about undefined trigonometric functions.
1028 "--enable-fastmath=no")
1029 #:phases
1030 (modify-phases %standard-phases
1031 (add-after 'unpack 'fix-makefile
1032 ;; Remove hard-coded directories. Also fix installation
1033 ;; rule: it tries to move around non-existent files or
1034 ;; files already moved.
1035 (lambda* (#:key outputs #:allow-other-keys)
1036 (substitute* "Makefile.am"
1037 (("/usr") (assoc-ref outputs "out"))
1038 (("cp .*?/foobillardplus\\.desktop.*") "")
1039 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1040 ""))
1041 #t))
1042 (add-after 'unpack 'unbundle-font
1043 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1044 ;; LinBiolinum_aS.ttf, which are not provided by
1045 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1046 ;; them yet.
1047 (lambda* (#:key inputs #:allow-other-keys)
1048 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1049 "/share/fonts/truetype/")))
1050 (with-directory-excursion "data"
1051 (for-each (lambda (f)
1052 (delete-file f)
1053 (symlink (string-append dejavu f) f))
1054 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1055 #t))
1056 (replace 'bootstrap
1057 (lambda _
1058 (invoke "aclocal" "--force")
1059 (invoke "autoconf" "-f")
1060 (invoke "autoheader" "-f")
1061 (invoke "automake" "-a" "-c" "-f")))
1062 (add-before 'build 'prepare-build
1063 ;; Set correct environment for SDL.
1064 (lambda* (#:key inputs #:allow-other-keys)
1065 (setenv "CPATH"
1066 (string-append (assoc-ref inputs "sdl")
1067 "/include/SDL:"
1068 (or (getenv "CPATH") "")))
1069 #t))
1070 (add-before 'build 'fix-settings-directory
1071 ;; Hide foobillardplus settings directory in $HOME.
1072 (lambda _
1073 (substitute* "src/history.c"
1074 (("/foobillardplus-data") "/.foobillardplus"))
1075 #t))
1076 (add-before 'install 'create-directories
1077 ;; Install process does not create directories before
1078 ;; trying to move file in it.
1079 (lambda* (#:key outputs #:allow-other-keys)
1080 (let ((out (assoc-ref outputs "out")))
1081 (mkdir-p (string-append out "/share/icons"))
1082 (mkdir-p (string-append out "/share/applications")))
1083 #t))
1084 (add-after 'install 'symlink-executable
1085 ;; Symlink executable to $out/bin.
1086 (lambda* (#:key outputs #:allow-other-keys)
1087 (let* ((out (assoc-ref outputs "out"))
1088 (bin (string-append out "/bin")))
1089 (mkdir-p bin)
1090 (with-directory-excursion bin
1091 (symlink "../share/foobillardplus/bin/foobillardplus"
1092 "foobillardplus"))
1093 #t))))))
1094 (native-inputs
1095 `(("autoconf" ,autoconf)
1096 ("automake" ,automake)
1097 ("pkg-config" ,pkg-config)))
1098 (inputs
1099 `(("font-dejavu" ,font-dejavu)
1100 ("freetype" ,freetype)
1101 ("glu" ,glu)
1102 ("libpng" ,libpng)
1103 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1104 (home-page "http://foobillardplus.sourceforge.net/")
1105 (synopsis "3D billiard game")
1106 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1107 based on the original foobillard 3.0a sources from Florian Berger.
1108 You can play it with one or two players or against the computer.
1109
1110 The game features:
1111
1112 @itemize
1113 @item Wood paneled table with gold covers and gold diamonds.
1114 @item Reflections on balls.
1115 @item Zoom in and out, rotation, different angles and bird's eye view.
1116 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1117 @item Tournaments. Compete against other players.
1118 @item Animated cue with strength and eccentric hit adjustment.
1119 @item Jump shots and snipping.
1120 @item Realistic gameplay and billiard sounds.
1121 @item Red-Green stereo.
1122 @item And much more.
1123 @end itemize")
1124 (license (list license:gpl2 license:silofl1.1)))))
1125
1126 (define-public freedoom
1127 (package
1128 (name "freedoom")
1129 (version "0.12.1")
1130 (source
1131 (origin
1132 (method git-fetch)
1133 (uri (git-reference
1134 (url "https://github.com/freedoom/freedoom")
1135 (commit (string-append "v" version))))
1136 (file-name (git-file-name name version))
1137 (sha256
1138 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1139 (build-system gnu-build-system)
1140 (arguments
1141 '(#:make-flags
1142 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1143 #:tests? #f ; no check target
1144 #:phases
1145 (modify-phases %standard-phases
1146 (delete 'bootstrap)
1147 (replace 'configure
1148 (lambda* (#:key inputs outputs #:allow-other-keys)
1149 (let* ((freedoom (assoc-ref outputs "out"))
1150 (wad-dir (string-append freedoom "/share/games/doom")))
1151 ;; Make sure that the install scripts know where to find
1152 ;; the appropriate WAD files.
1153 (substitute* "dist/freedoom"
1154 (("IWAD=freedm.wad")
1155 (string-append "IWAD=" wad-dir "/freedm.wad"))
1156 (("IWAD=freedoom1.wad")
1157 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1158 (("IWAD=freedoom2.wad")
1159 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1160 #t))))))
1161 (native-inputs
1162 `(("asciidoc" ,asciidoc)
1163 ("deutex" ,deutex)
1164 ("python" ,python)
1165 ("python-pillow" ,python-pillow)))
1166 (home-page "https://freedoom.github.io/")
1167 (synopsis "Free content game based on the Doom engine")
1168 (native-search-paths
1169 (list (search-path-specification
1170 (variable "DOOMWADDIR")
1171 (files '("share/games/doom")))
1172 (search-path-specification
1173 (variable "DOOMWADPATH")
1174 (files '("share/games/doom")))))
1175 (description
1176 "The Freedoom project aims to create a complete free content first person
1177 shooter game. Freedoom by itself is just the raw material for a game: it must
1178 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1179 played. Freedoom complements the Doom engine with free levels, artwork, sound
1180 effects and music to make a completely free game.")
1181 (license license:bsd-3)))
1182
1183 (define-public freedroidrpg
1184 (package
1185 (name "freedroidrpg")
1186 (version "0.16.1")
1187 (source
1188 (origin
1189 (method url-fetch)
1190 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1191 "freedroidRPG-" (version-major+minor version) "/"
1192 "freedroidRPG-" version ".tar.gz"))
1193 (sha256
1194 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1195 (build-system gnu-build-system)
1196 (arguments
1197 `(#:configure-flags
1198 (list
1199 (string-append "CFLAGS="
1200 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1201 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1202 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1203 "--enable-opengl")
1204 ;; FIXME: the test suite fails with the following error output:
1205 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1206 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1207 #:tests? #f))
1208 (native-inputs
1209 `(("pkg-config" ,pkg-config)))
1210 (inputs
1211 `(("glu" ,glu)
1212 ("libjpeg" ,libjpeg-turbo)
1213 ("libogg" ,libogg)
1214 ("libpng" ,libpng)
1215 ("libvorbis" ,libvorbis)
1216 ("mesa" ,mesa)
1217 ("python" ,python-wrapper)
1218 ("sdl" ,sdl)
1219 ("sdl-gfx" ,sdl-gfx)
1220 ("sdl-image" ,sdl-image)
1221 ("sdl-mixer" ,sdl-mixer)
1222 ("zlib" ,zlib)))
1223 (home-page "https://www.freedroid.org/")
1224 (synopsis "Isometric role-playing game against killer robots")
1225 (description
1226 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1227 The game tells the story of a world destroyed by a conflict between robots and
1228 their human masters. To restore peace to humankind, the player must complete
1229 numerous quests while fighting off rebelling robots---either by taking control
1230 of them, or by simply blasting them to pieces with melee and ranged weapons in
1231 real-time combat.")
1232 (license (list license:expat ; lua/
1233 license:gpl3 ; src/gen_savestruct.py
1234 license:gpl2+)))) ; the rest
1235
1236 (define-public golly
1237 (package
1238 (name "golly")
1239 (version "3.3")
1240 (source (origin
1241 (method url-fetch)
1242 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1243 version "/golly-" version
1244 "-src.tar.gz"))
1245 (sha256
1246 (base32
1247 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1248 (build-system gnu-build-system)
1249 (arguments
1250 '(#:make-flags (list "CC=gcc"
1251 (string-append "GOLLYDIR="
1252 (assoc-ref %outputs "out")
1253 "/share/golly"))
1254 #:tests? #f ; no check target
1255 #:phases
1256 (modify-phases %standard-phases
1257 (replace 'configure
1258 (lambda* (#:key inputs #:allow-other-keys)
1259 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1260 ;; properly set the path to the Python shared library. This
1261 ;; substitution acheives the same end by different means.
1262 (substitute* "gui-wx/wxprefs.cpp"
1263 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1264 (string-append "pythonlib = \""
1265 (assoc-ref inputs "python")
1266 "/lib/libpython-2.7.so\"")))
1267 #t))
1268 (replace 'build
1269 (lambda* (#:key make-flags outputs #:allow-other-keys)
1270 (with-directory-excursion "gui-wx"
1271 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1272 (replace 'install
1273 (lambda* (#:key outputs #:allow-other-keys)
1274 (let* ((out (assoc-ref outputs "out"))
1275 (bin (string-append out "/bin"))
1276 (doc (string-append out "/share/doc/golly"))
1277 (pixmaps (string-append out "/share/pixmaps"))
1278 (share (string-append out "/share/golly")))
1279 (for-each (lambda (binary)
1280 (install-file binary bin))
1281 '("bgolly" "golly"))
1282 (for-each (lambda (document)
1283 (install-file
1284 (string-append "docs/" document ".html")
1285 doc))
1286 '("License" "ReadMe" "ToDo"))
1287 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1288 (for-each (lambda (folder)
1289 (copy-recursively
1290 folder
1291 (string-append share "/" folder)))
1292 '("Help" "Patterns" "Rules" "Scripts")))
1293 #t)))))
1294 (native-inputs
1295 `(("lua" ,lua)))
1296 (inputs
1297 `(("glu" ,glu)
1298 ("mesa" ,mesa)
1299 ("python" ,python-2)
1300 ("wxwidgets" ,wxwidgets-gtk2)
1301 ("zlib" ,zlib)))
1302 (home-page "http://golly.sourceforge.net/")
1303 (synopsis "Software for exploring cellular automata")
1304 (description
1305 "Golly simulates Conway's Game of Life and many other types of cellular
1306 automata. The following features are available:
1307 @enumerate
1308 @item Support for bounded and unbounded universes, with cells of up to 256
1309 states.
1310 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1311 algorithm.
1312 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1313 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1314 @item Scriptable via Lua or Python.
1315 @item Extracting patterns, rules and scripts from zip files.
1316 @item Downloading patterns, rules and scripts from online archives.
1317 @item Pasting patterns from the clipboard.
1318 @item Unlimited undo/redo.
1319 @item Configurable keyboard shortcuts.
1320 @item Auto fit option to keep patterns within the view.
1321 @end enumerate")
1322 (license license:gpl2+)))
1323
1324 (define-public julius
1325 (package
1326 (name "julius")
1327 (version "1.6.0")
1328 (source
1329 (origin
1330 (method git-fetch)
1331 (uri (git-reference
1332 (url "https://github.com/bvschaik/julius")
1333 (commit (string-append "v" version))))
1334 (file-name (git-file-name name version))
1335 (sha256
1336 (base32 "0nfdn8n6ywhm69ckz9a1chl5xxiqyaj3l337wadsbppnpscjihrc"))
1337 ;; Remove unused bundled libraries.
1338 (modules '((guix build utils)))
1339 (snippet
1340 '(begin
1341 (with-directory-excursion "ext"
1342 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1343 #t))))
1344 (build-system cmake-build-system)
1345 (inputs
1346 `(("libpng" ,libpng)
1347 ("sdl2" ,sdl2)
1348 ("sdl2-mixer" ,sdl2-mixer)))
1349 (home-page "https://github.com/bvschaik/julius")
1350 (synopsis "Re-implementation of Caesar III game engine")
1351 (description
1352 "Engine for Caesar III, a city-building real-time strategy game.
1353 Julius includes some UI enhancements while preserving the logic (including
1354 bugs) of the original game, so that saved games are compatible. This package
1355 does not include game data.")
1356 (license (list license:agpl3
1357 license:zlib)))) ; ext/tinyfiledialogs
1358
1359 (define-public augustus
1360 (package
1361 (inherit julius)
1362 (name "augustus")
1363 (version "2.0.1")
1364 (source
1365 (origin
1366 (method git-fetch)
1367 (uri (git-reference
1368 (url "https://github.com/Keriew/augustus")
1369 (commit (string-append "v" version))))
1370 (file-name (git-file-name name version))
1371 (sha256
1372 (base32 "0czazw8mc3fbvdazs2nzvgxd1dpzjc8z5fwiv89vv4nd7laz3jkj"))
1373 ;; Remove unused bundled libraries.
1374 (modules '((guix build utils)))
1375 (snippet
1376 '(begin
1377 (with-directory-excursion "ext"
1378 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1379 #t))))
1380 (arguments
1381 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1382 `(#:tests? #f))
1383 (home-page "https://github.com/Keriew/augustus")
1384 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1385 (description
1386 "Fork of Julius, an engine for the a city-building real-time strategy
1387 game Caesar III. Gameplay enhancements include:
1388
1389 @itemize
1390 @item roadblocks;
1391 @item market special orders;
1392 @item global labour pool;
1393 @item partial warehouse storage;
1394 @item increased game limits;
1395 @item zoom controls.
1396 @end itemize\n")))
1397
1398 (define-public meandmyshadow
1399 (package
1400 (name "meandmyshadow")
1401 (version "0.5a")
1402 (source (origin
1403 (method url-fetch)
1404 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1405 version "/meandmyshadow-" version
1406 "-src.tar.gz"))
1407 (sha256
1408 (base32
1409 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1410 (build-system cmake-build-system)
1411 (arguments
1412 `(#:tests? #f)) ; there are no tests
1413 (native-inputs
1414 `(("pkg-config" ,pkg-config)))
1415 (inputs
1416 `(("curl" ,curl)
1417 ("libarchive" ,libarchive)
1418 ("lua" ,lua)
1419 ("sdl" ,(sdl-union (list sdl2
1420 sdl2-image
1421 sdl2-mixer
1422 sdl2-ttf)))))
1423 (home-page "https://acmepjz.github.io/meandmyshadow/")
1424 (synopsis "Puzzle/platform game")
1425 (description "Me and My Shadow is a puzzle/platform game in which you try
1426 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1427 and much more stand between you and the exit. Record your moves and let your
1428 shadow mimic them to reach blocks you couldn't reach alone.")
1429 (license license:gpl3+)))
1430
1431 (define-public opensurge
1432 (package
1433 (name "opensurge")
1434 (version "0.5.1.2")
1435 (source
1436 (origin
1437 (method git-fetch)
1438 (uri (git-reference
1439 (url "https://github.com/alemart/opensurge")
1440 (commit (string-append "v" version))))
1441 (file-name (git-file-name name version))
1442 (sha256
1443 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1444 (build-system cmake-build-system)
1445 (arguments
1446 `(#:tests? #f ;there are no tests
1447 #:configure-flags
1448 (let* ((out (assoc-ref %outputs "out"))
1449 (share (string-append out "/share")))
1450 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1451 (string-append "-DGAME_DATADIR=" share "/" ,name)
1452 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1453 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1454 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1455 #:phases
1456 (modify-phases %standard-phases
1457 (add-after 'unpack 'fix-xdg-open-path
1458 (lambda* (#:key inputs #:allow-other-keys)
1459 ;; Look for xdg-open in the store.
1460 (substitute* "src/core/web.c"
1461 (("/usr(/bin/xdg-open)" _ bin)
1462 (string-append (assoc-ref inputs "xdg-utils") bin)))
1463 #t))
1464 (add-after 'unpack 'unbundle-fonts
1465 (lambda* (#:key inputs #:allow-other-keys)
1466 ;; Replace bundled Roboto fonts with links to the store.
1467 (with-directory-excursion "fonts"
1468 (let ((roboto-dir (string-append
1469 (assoc-ref inputs "font-google-roboto")
1470 "/share/fonts/truetype/")))
1471 (for-each
1472 (lambda (font)
1473 (delete-file font)
1474 (symlink (string-append roboto-dir font) font))
1475 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1476 #t))))))
1477 (inputs
1478 `(("allegro" ,allegro)
1479 ("font-google-roboto" ,font-google-roboto)
1480 ("surgescript" ,surgescript)
1481 ("xdg-utils" ,xdg-utils)))
1482 (home-page "https://opensurge2d.org")
1483 (synopsis "2D retro side-scrolling game")
1484 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1485 inspired by the Sonic games. The player runs at high speeds through each
1486 level while collecting items and avoiding obstacles. The game includes a
1487 built-in level editor.")
1488 (license
1489 ;; Code is under GPL 3+, assets are under various licenses.
1490 ;; See src/misc/credits.c for details.
1491 (list license:gpl3+
1492 license:cc0
1493 license:cc-by3.0
1494 license:cc-by-sa3.0
1495 license:expat
1496 license:public-domain
1497 license:silofl1.1))))
1498
1499 (define-public knights
1500 (package
1501 (name "knights")
1502 (version "025")
1503 (source (origin
1504 (method url-fetch)
1505 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1506 version "_src.tar.gz"))
1507 (sha256
1508 (base32
1509 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1510 (build-system gnu-build-system)
1511 (arguments
1512 '(#:make-flags
1513 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1514 "CXXFLAGS=-lpthread")
1515 #:phases
1516 (modify-phases %standard-phases
1517 ;; No configure script.
1518 (delete 'configure))
1519 #:tests? #f)) ;; No check target.
1520 (inputs
1521 `(("boost" ,boost)
1522 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1523 ("freetype" ,freetype)
1524 ("fontconfig" ,fontconfig)
1525 ("curl" ,curl)))
1526 (native-inputs
1527 `(("pkg-config" ,pkg-config)))
1528 (home-page "http://www.knightsgame.org.uk/")
1529 (synopsis "Multiplayer dungeon game involving knights and quests")
1530 (description "Knights is a multiplayer game involving several knights who
1531 must run around a dungeon and complete various quests. Each game revolves
1532 around a quest – for example, you might have to find some items and carry them
1533 back to your starting point. This may sound easy, but as there are only
1534 enough items in the dungeon for one player to win, you may end up having to
1535 kill your opponents to get their stuff! Other quests involve escaping from
1536 the dungeon, fighting a duel to the death against the enemy knights, or
1537 destroying an ancient book using a special wand.")
1538 ;; This package includes modified sources of lua (X11), enet (Expat), and
1539 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1540 ;; license. The whole package is released under GPLv3+.
1541 (license license:gpl3+)))
1542
1543 (define-public gnome-chess
1544 (package
1545 (name "gnome-chess")
1546 (version "3.37.3")
1547 (source (origin
1548 (method url-fetch)
1549 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1550 (version-major+minor version) "/"
1551 "gnome-chess-" version ".tar.xz"))
1552 (sha256
1553 (base32
1554 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1555 (build-system meson-build-system)
1556 (arguments
1557 '(#:glib-or-gtk? #t
1558 #:phases
1559 (modify-phases %standard-phases
1560 (add-after 'unpack 'skip-gtk-update-icon-cache
1561 ;; Don't create 'icon-theme.cache'.
1562 (lambda _
1563 (substitute* "meson_post_install.py"
1564 (("gtk-update-icon-cache") "true"))
1565 #t)))))
1566 (inputs
1567 `(("gtk+" ,gtk+)
1568 ("librsvg" ,librsvg)))
1569 (native-inputs
1570 `(("gettext" ,gettext-minimal)
1571 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1572 ("itstool" ,itstool)
1573 ("pkg-config" ,pkg-config)
1574 ("vala" ,vala)))
1575 (home-page "https://wiki.gnome.org/Apps/Chess")
1576 (synopsis "Chess board for GNOME")
1577 (description "GNOME Chess provides a 2D board for playing chess games
1578 against human or computer players. It supports loading and saving games in
1579 Portable Game Notation. To play against a computer, install a chess engine
1580 such as chess or stockfish.")
1581 (license license:gpl3+)))
1582
1583 (define-public gnubg
1584 (package
1585 (name "gnubg")
1586 (version "1.06.002")
1587 (source
1588 (origin
1589 (method url-fetch)
1590 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1591 version "-sources.tar.gz"))
1592 (sha256
1593 (base32
1594 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1595 (build-system gnu-build-system)
1596 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1597 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1598 ("pango" ,pango-1.42)
1599
1600 ("glib" ,glib)
1601 ("readline" ,readline)
1602 ("gtk+" ,gtk+-2)
1603 ("mesa" ,mesa)
1604 ("glu" ,glu)
1605 ("gtkglext" ,gtkglext)
1606 ("sqlite" ,sqlite)
1607 ("libcanberra" ,libcanberra)))
1608 (native-inputs `(("python-2" ,python-2)
1609 ("pkg-config" ,pkg-config)))
1610 (arguments
1611 `(#:configure-flags
1612 ;; SSE instructions are available on Intel systems only.
1613 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1614 (%current-system)))
1615 '("x86_64" "i686"))
1616 '("--enable-simd=sse2") ; prevent avx instructions
1617 '()))
1618 #:phases
1619 (modify-phases %standard-phases
1620 (add-after 'install 'install-desktop-file
1621 (lambda* (#:key outputs #:allow-other-keys)
1622 (let* ((out (assoc-ref outputs "out"))
1623 (apps (string-append out "/share/applications")))
1624 (mkdir-p apps)
1625 (with-output-to-file (string-append apps "/gnubg.desktop")
1626 (lambda _
1627 (format #t
1628 "[Desktop Entry]~@
1629 Name=GNU Backgammon~@
1630 Exec=~a/bin/gnubg -w~@
1631 Icon=gnubg~@
1632 Categories=Game;~@
1633 Terminal=false~@
1634 Type=Application~%"
1635 out))))
1636 #t)))))
1637 (home-page "https://www.gnu.org/software/gnubg/")
1638 (synopsis "Backgammon game")
1639 (description "The GNU backgammon application (also known as \"gnubg\") can
1640 be used for playing, analyzing and teaching the game. It has an advanced
1641 evaluation engine based on artificial neural networks suitable for both
1642 beginners and advanced players. In addition to a command-line interface, it
1643 also features an attractive, 3D representation of the playing board.")
1644 (license license:gpl3+)))
1645
1646 (define-public gnubik
1647 (package
1648 (name "gnubik")
1649 (version "2.4.3")
1650 (source
1651 (origin
1652 (method url-fetch)
1653 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1654 version ".tar.gz"))
1655 (sha256
1656 (base32
1657 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1658 (build-system gnu-build-system)
1659 (arguments
1660 '(#:phases (modify-phases %standard-phases
1661 (add-after 'unpack 'skip-gtk-update-icon-cache
1662 (lambda _
1663 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1664 ;; unnecessary and causes a needless dependency on glib.
1665 (substitute* "Makefile.in"
1666 (("gtk-update-icon-cache")
1667 "true"))
1668 #t)))))
1669 (inputs `(("gtk+" ,gtk+-2)
1670 ("mesa" ,mesa)
1671 ("glu" ,glu)
1672 ("libx11" ,libx11)
1673 ("guile" ,guile-2.0)
1674 ("gtkglext" ,gtkglext)))
1675 (native-inputs `(("gettext" ,gettext-minimal)
1676 ("pkg-config" ,pkg-config)))
1677 (home-page "https://www.gnu.org/software/gnubik/")
1678 (synopsis "3d Rubik's cube game")
1679 (description
1680 "GNUbik is a puzzle game in which you must manipulate a cube to make
1681 each of its faces have a uniform color. The game is customizable, allowing
1682 you to set the size of the cube (the default is 3x3) or to change the colors.
1683 You may even apply photos to the faces instead of colors. The game is
1684 scriptable with Guile.")
1685 (license license:gpl3+)))
1686
1687 (define-public gnushogi
1688 (package
1689 (name "gnushogi")
1690 (version "1.4.2")
1691 (source
1692 (origin
1693 (method url-fetch)
1694 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1695 version ".tar.gz"))
1696 (sha256
1697 (base32
1698 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1699 (arguments `(#:tests? #f)) ;; No check target.
1700 (build-system gnu-build-system)
1701 (home-page "https://www.gnu.org/software/gnushogi/")
1702 (synopsis "The game of Shogi (Japanese chess)")
1703 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1704 Chess). It is similar to standard chess but this variant is far more complicated.")
1705 (license license:gpl3+)))
1706
1707 (define-public ltris
1708 (package
1709 (name "ltris")
1710 (version "1.2.1")
1711 (source
1712 (origin
1713 (method url-fetch)
1714 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1715 "ltris-" version ".tar.gz"))
1716 (sha256
1717 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1718 (build-system gnu-build-system)
1719 (arguments
1720 '(;; The code in LTris uses traditional GNU semantics for inline functions
1721 #:configure-flags '("CFLAGS=-fgnu89-inline")
1722 #:phases
1723 (modify-phases %standard-phases
1724 (add-after 'set-paths 'set-sdl-paths
1725 (lambda* (#:key inputs #:allow-other-keys)
1726 (setenv "CPATH"
1727 (string-append (assoc-ref inputs "sdl-union")
1728 "/include/SDL:"
1729 (or (getenv "CPATH") "")))
1730 #t)))))
1731 (inputs
1732 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1733 (home-page "http://lgames.sourceforge.net/LTris/")
1734 (synopsis "Tetris clone based on the SDL library")
1735 (description
1736 "LTris is a tetris clone: differently shaped blocks are falling down the
1737 rectangular playing field and can be moved sideways or rotated by 90 degree
1738 units with the aim of building lines without gaps which then disappear (causing
1739 any block above the deleted line to fall down). LTris has three game modes: In
1740 Classic you play until the stack of blocks reaches the top of the playing field
1741 and no new blocks can enter. In Figures the playing field is reset to a new
1742 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1743 up to three players (either human or CPU) compete with each other sending
1744 removed lines to all opponents. There is also a Demo mode in which you can
1745 watch your CPU playing while enjoying a cup of tea!")
1746 (license license:gpl2+)))
1747
1748 (define-public nethack
1749 (package
1750 (name "nethack")
1751 (version "3.6.6")
1752 (source
1753 (origin
1754 (method url-fetch)
1755 (uri
1756 (string-append "https://www.nethack.org/download/" version "/nethack-"
1757 (string-join (string-split version #\.) "") "-src.tgz"))
1758 (sha256
1759 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1760 (native-inputs
1761 `(("bison" ,bison)
1762 ("flex" ,flex)))
1763 (inputs
1764 `(("ncurses" ,ncurses)
1765 ("less" ,less)))
1766 (build-system gnu-build-system)
1767 (arguments
1768 '(#:make-flags
1769 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1770 #:phases
1771 (modify-phases %standard-phases
1772 (add-before 'configure 'patch-paths
1773 (lambda _
1774 (substitute* "sys/unix/nethack.sh"
1775 (("^ *cd .*$") ""))
1776 (substitute* "sys/unix/Makefile.utl"
1777 (("^YACC *=.*$") "YACC = bison -y\n")
1778 (("^LEX *=.*$") "LEX = flex\n")
1779 (("^# CC = gcc") "CC = gcc"))
1780 (substitute* "sys/unix/hints/linux"
1781 (("/bin/gzip") (string-append
1782 (assoc-ref %build-inputs "gzip")
1783 "/bin/gzip"))
1784 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1785 (substitute* "include/config.h"
1786 (("^.*define CHDIR.*$") "")
1787 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1788 ;; Honor SOURCE_DATE_EPOCH.
1789 "#define REPRODUCIBLE_BUILD"))
1790
1791 ;; Note: 'makedefs' rejects and ignores dates that are too old
1792 ;; or too new, so we must choose something reasonable here.
1793 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1794
1795 (substitute* "sys/unix/Makefile.src"
1796 (("^# CC = gcc") "CC = gcc"))
1797 #t))
1798 (replace 'configure
1799 (lambda _
1800 (let ((bash (string-append
1801 (assoc-ref %build-inputs "bash")
1802 "/bin/bash")))
1803 (with-directory-excursion "sys/unix"
1804 (substitute* "setup.sh" (("/bin/sh") bash))
1805 (invoke bash "setup.sh" "hints/linux"))
1806 #t)))
1807 (add-after 'install 'fixup-paths
1808 (lambda _
1809 (let* ((output (assoc-ref %outputs "out"))
1810 (nethack-script (string-append output "/bin/nethack")))
1811 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1812 (for-each
1813 (lambda (file)
1814 (rename-file
1815 (string-append output "/games/lib/nethackdir/" file)
1816 (string-append output "/games/lib/nethackuserdir/"
1817 file)))
1818 '("xlogfile" "logfile" "perm" "record" "save"))
1819 (mkdir-p (string-append output "/bin"))
1820 (call-with-output-file nethack-script
1821 (lambda (port)
1822 (format port "#!~a/bin/sh
1823 PATH=~a:$PATH
1824 if [ ! -d ~~/.config/nethack ]; then
1825 mkdir -p ~~/.config/nethack
1826 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1827 chmod -R +w ~~/.config/nethack
1828 fi
1829
1830 RUNDIR=$(mktemp -d)
1831
1832 cleanup() {
1833 rm -rf $RUNDIR
1834 }
1835 trap cleanup EXIT
1836
1837 cd $RUNDIR
1838 for i in ~~/.config/nethack/*; do
1839 ln -s $i $(basename $i)
1840 done
1841 for i in ~a/games/lib/nethackdir/*; do
1842 ln -s $i $(basename $i)
1843 done
1844 ~a/games/nethack"
1845 (assoc-ref %build-inputs "bash")
1846 (list->search-path-as-string
1847 (list
1848 (string-append
1849 (assoc-ref %build-inputs "coreutils") "/bin")
1850 (string-append
1851 (assoc-ref %build-inputs "less") "/bin"))
1852 ":")
1853 output
1854 output
1855 output)))
1856 (chmod nethack-script #o555)
1857 #t)))
1858 (delete 'check))))
1859 (home-page "https://nethack.org")
1860 (synopsis "Classic dungeon crawl game")
1861 (description "NetHack is a single player dungeon exploration game that runs
1862 on a wide variety of computer systems, with a variety of graphical and text
1863 interfaces all using the same game engine. Unlike many other Dungeons &
1864 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1865 the dungeon and not simply killing everything in sight - in fact, killing
1866 everything in sight is a good way to die quickly. Each game presents a
1867 different landscape - the random number generator provides an essentially
1868 unlimited number of variations of the dungeon and its denizens to be discovered
1869 by the player in one of a number of characters: you can pick your race, your
1870 role, and your gender.")
1871 (license
1872 (license:fsdg-compatible
1873 "https://nethack.org/common/license.html"))))
1874
1875 (define-public pipewalker
1876 (package
1877 (name "pipewalker")
1878 (version "0.9.4")
1879 (source
1880 (origin
1881 (method url-fetch)
1882 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
1883 version "/pipewalker-" version ".tar.gz"))
1884 (sha256
1885 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1886 (build-system gnu-build-system)
1887 (arguments
1888 `(#:configure-flags
1889 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1890 "/share/doc/" ,name "-" ,version))
1891 #:phases
1892 (modify-phases %standard-phases
1893 (add-after 'configure 'patch-docdir
1894 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1895 (lambda _
1896 (substitute* "Makefile"
1897 (("(pkgdocdatadir = ).*" _ assignment)
1898 (string-append assignment "$(docdir)\n")))
1899 #t)))))
1900 (inputs
1901 `(("libpng" ,libpng)
1902 ("mesa" ,mesa)
1903 ("sdl" ,sdl)))
1904 (home-page "http://pipewalker.sourceforge.net/")
1905 (synopsis "Logical tile puzzle")
1906 (description
1907 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1908 computers to one network server, bring water from a source to the taps, etc.
1909 The underlying mechanism is always the same: you must turn each tile in the
1910 grid in the right direction to combine all components into a single circuit.
1911 Every puzzle has a complete solution, although there may be more than one.")
1912 (license license:gpl3+)))
1913
1914 (define-public prboom-plus
1915 (package
1916 (name "prboom-plus")
1917 (version "2.5.1.4")
1918 (source (origin
1919 (method url-fetch)
1920 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
1921 version "/prboom-plus-" version ".tar.gz"))
1922 (sha256
1923 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
1924 (modules '((guix build utils)))
1925 (snippet
1926 '(begin
1927 (substitute* "src/version.c"
1928 (("__DATE__") "")
1929 (("__TIME__") ""))
1930 #t))))
1931 (build-system gnu-build-system)
1932 (arguments
1933 '(#:configure-flags '("--disable-cpu-opt")
1934 #:make-flags `(,(string-append "gamesdir="
1935 (assoc-ref %outputs "out") "/bin"))
1936 #:phases
1937 (modify-phases %standard-phases
1938 (add-after 'set-paths 'set-sdl'paths
1939 (lambda* (#:key inputs #:allow-other-keys)
1940 (setenv "CPATH"
1941 (string-append (assoc-ref inputs "sdl-union")
1942 "/include/SDL:"
1943 (or (getenv "CPATH") "")))
1944 #t)))))
1945 (inputs
1946 `(("fluidsynth" ,fluidsynth)
1947 ("glu" ,glu)
1948 ("libmad" ,libmad)
1949 ("libpng" ,libpng)
1950 ("libvorbis" ,libvorbis)
1951 ("pcre" ,pcre)
1952 ("portmidi" ,portmidi)
1953 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
1954 (home-page "http://prboom-plus.sourceforge.net/")
1955 (synopsis "Version of the classic 3D shoot'em'up game Doom")
1956 (description
1957 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
1958 (license license:gpl2+)))
1959
1960 (define-public retux
1961 (let ((release "1.4.1")
1962 (revision 1))
1963 (package
1964 (name "retux")
1965 (version (if (zero? revision)
1966 release
1967 (string-append release "-"
1968 (number->string revision))))
1969 (source (origin
1970 (method url-fetch)
1971 (uri (string-append "https://github.com/retux-game/retux/"
1972 "releases/download/v"
1973 version "/retux-"
1974 release "-src.tar.gz"))
1975 (sha256
1976 (base32
1977 "1vrldg2qh2gqfswj7vkpc589ldrrjd903j6cnfdik9zh0jhlq4h2"))))
1978 (build-system python-build-system)
1979 (arguments
1980 `(#:tests? #f ; no check target
1981 #:phases
1982 (modify-phases %standard-phases
1983 ;; no setup.py script
1984 (delete 'build)
1985 (replace 'install
1986 (lambda* (#:key outputs #:allow-other-keys)
1987 (let* ((out (assoc-ref outputs "out"))
1988 (bin (string-append out "/bin"))
1989 (data (string-append out "/share/retux")))
1990 (mkdir-p bin)
1991
1992 (substitute* "retux.py"
1993 ;; Use the correct data directory.
1994 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
1995 (string-append "\"" data "\",")))
1996
1997 (copy-file "retux.py" (string-append bin "/retux"))
1998 (copy-recursively "data" data)
1999 #t))))))
2000 (inputs
2001 `(("python-sge-pygame" ,python-sge-pygame)
2002 ("python-six" ,python-six)
2003 ("python-xsge" ,python-xsge)))
2004 (home-page "https://retux-game.github.io/")
2005 (synopsis "Action platformer game")
2006 (description
2007 "ReTux is an action platformer loosely inspired by the Mario games,
2008 utilizing the art assets from the @code{SuperTux} project.")
2009 ;; GPL version 3 or later is the license for the code and some art.
2010 ;; The rest of the licenses are for the art exclusively, as listed in
2011 ;; data/LICENSES.
2012 (license (list license:cc0
2013 license:cc-by3.0
2014 license:cc-by-sa3.0
2015 license:cc-by-sa4.0
2016 license:gpl2+
2017 license:gpl3+)))))
2018
2019 (define-public roguebox-adventures
2020 (package
2021 (name "roguebox-adventures")
2022 (version "3.0.1")
2023 (source
2024 (origin
2025 (method url-fetch)
2026 (uri (string-append
2027 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2028 (string-join (string-split version #\.) "_") "_Source.zip"))
2029 (file-name (string-append name "-" version ".zip"))
2030 (sha256
2031 (base32
2032 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2033 (build-system python-build-system)
2034 (arguments
2035 `(#:tests? #f ; no check target
2036 #:phases
2037 (modify-phases %standard-phases
2038 (replace 'unpack
2039 (lambda* (#:key source #:allow-other-keys)
2040 (and (invoke "unzip" source)
2041 ;; The actual source is buried a few directories deep.
2042 (chdir (string-append "RogueBoxAdventures_v"
2043 (string-join
2044 (string-split ,version #\.) "_")
2045 "_Source")))))
2046 ;; no setup.py script
2047 (replace 'build
2048 (lambda* (#:key outputs #:allow-other-keys)
2049 (let* ((out (assoc-ref outputs "out"))
2050 (data (string-append
2051 out "/share/games/roguebox-adventures")))
2052 ;; Use the correct data directory.
2053 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2054 (("basic_path + os\\.sep + 'DATA'")
2055 (string-append "'" data "'"))
2056 (("^basic_path.*$")
2057 (string-append "basic_path ='" data "'\n")))
2058 (substitute* "LIB/dialog.py"
2059 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2060 (string-append "d_path = '" data "'")))
2061 (substitute* "LIB/gra_files.py"
2062 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2063 (string-append "basic_path ='" data "'\n")))
2064
2065 ;; The game must save in the user's home directory because
2066 ;; the store is read-only.
2067 (substitute* "main.py"
2068 (("home_save = False") "home_save = True")
2069 (("'icon_small.png'")
2070 (string-append "'" data "/icon_small.png'"))))
2071 #t))
2072 (replace 'install
2073 (lambda* (#:key outputs #:allow-other-keys)
2074 (let* ((out (assoc-ref outputs "out"))
2075 (bin (string-append out "/bin"))
2076 (roguebox-adventures
2077 (string-append bin "/roguebox-adventures"))
2078 (data (string-append
2079 out "/share/games/roguebox-adventures"))
2080 (lib (string-append data "/LIB"))
2081 (doc (string-append
2082 out "/share/doc/roguebox-adventures")))
2083 (mkdir-p bin)
2084 (mkdir-p doc)
2085
2086 (for-each (lambda (file)
2087 (copy-recursively file
2088 (string-append data "/" file)))
2089 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2090 "icon_big.png" "icon_small.png"))
2091 (for-each (lambda (file)
2092 (chmod file #o555)
2093 (install-file file lib))
2094 '("main.py" "run.py"))
2095
2096 (copy-recursively "DOC" doc)
2097
2098 (call-with-output-file
2099 roguebox-adventures
2100 (lambda (p)
2101 (format p "\
2102 #!~a
2103 export PYTHONPATH=~a/LIB:~a
2104 exec -a \"~a\" ~a \"$@\"\n"
2105 (which "bash") data (getenv "PYTHONPATH")
2106 (which "python3")
2107 (string-append lib "/main.py"))))
2108 (chmod roguebox-adventures #o555))
2109 #t)))))
2110 (native-inputs
2111 `(("unzip" ,unzip)))
2112 (inputs
2113 `(("python-pygame" ,python-pygame)
2114 ("python-tmx" ,python-tmx)))
2115 (home-page "https://rogueboxadventures.tuxfamily.org")
2116 (synopsis "A classical roguelike/sandbox game")
2117 (description
2118 "RogueBox Adventures is a graphical roguelike with strong influences
2119 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2120 Adventures is to offer the player a kind of roguelike toy-world. This world
2121 can be explored and changed freely.")
2122 ;; The GPL3+ is for code, the rest are for art.
2123 (license (list license:cc0
2124 license:cc-by3.0
2125 license:gpl3+
2126 license:silofl1.1))))
2127
2128 (define-public seahorse-adventures
2129 (package
2130 (name "seahorse-adventures")
2131 (version "1.3")
2132 (source
2133 (origin
2134 (method git-fetch)
2135 (uri (git-reference
2136 (url "https://github.com/dulsi/seahorse-adventures")
2137 (commit (string-append "release-" version))))
2138 (file-name (git-file-name name version))
2139 (sha256
2140 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2141 (modules '((guix build utils)
2142 (ice-9 ftw)
2143 (srfi srfi-1)))
2144 ;; Remove non-free (non-commercial) font.
2145 (snippet
2146 `(begin
2147 (for-each delete-file (find-files "data/fonts" "."))
2148 #t))))
2149 (build-system python-build-system)
2150 (arguments
2151 `(#:tests? #f ;no test
2152 #:phases
2153 (modify-phases %standard-phases
2154 (delete 'build) ;pure Python
2155 (replace 'install ;no install script
2156 (lambda* (#:key outputs #:allow-other-keys)
2157 (let* ((out (assoc-ref outputs "out"))
2158 (bin (string-append out "/bin"))
2159 (share (string-append out "/share"))
2160 (applications (string-append share "/applications"))
2161 (data (string-append share "/seahorse-adventures")))
2162 ;; Install data.
2163 (for-each (lambda (f)
2164 (chmod f #o555)
2165 (install-file f data))
2166 '("leveledit.py" "run_game.py" "tileedit.py"))
2167 (for-each (lambda (dir)
2168 (let ((target (string-append data "/" dir)))
2169 (mkdir-p target)
2170 (copy-recursively dir target)))
2171 '("data" "lib"))
2172 ;; Create executable.
2173 (mkdir-p bin)
2174 (let ((executable (string-append bin "/seahorse-adventures")))
2175 (call-with-output-file executable
2176 (lambda (p)
2177 (format p
2178 "#!~a~@
2179 export PYTHONPATH=~a:~a~@
2180 exec -a \"~a\" ~a \"$@\"~%"
2181 (which "bash") data (getenv "PYTHONPATH")
2182 (which "python3")
2183 (string-append data "/run_game.py"))))
2184 (chmod executable #o555))
2185 ;; Add desktop file.
2186 (mkdir-p applications)
2187 (make-desktop-entry-file
2188 (string-append applications "/seahorse-adventures.desktop")
2189 #:name "Seahorse Adventures"
2190 #:comment
2191 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2192 #:exec ,name
2193 #:icon ,name
2194 #:categories '("Game" "ActionGame")
2195 #:keywords '("game" "retro" "platform"))
2196 ;; Add icons.
2197 (for-each
2198 (lambda (size)
2199 (let ((dir (string-append share "/icons/hicolor/"
2200 size "x" size "/apps")))
2201 (mkdir-p dir)
2202 (copy-file
2203 (string-append "icon" size ".png")
2204 (string-append dir "/searhorse-adventures.png"))))
2205 '("32" "64" "128")))
2206 #t))
2207 (add-after 'install 'unbundle-fonts
2208 ;; Unbundle Bitstream Vera font and replace deleted one.
2209 (lambda* (#:key outputs inputs #:allow-other-keys)
2210 (let* ((out (assoc-ref outputs "out"))
2211 (data (string-append out "/share/seahorse-adventures"))
2212 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2213 "/share/fonts/truetype/Vera.ttf")))
2214 (let ((themes-dir (string-append data "/data/themes/")))
2215 (for-each
2216 (lambda (theme)
2217 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2218 (delete-file target)
2219 (symlink vera target)))
2220 '("default" "gray")))
2221 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2222 (substitute* (string-append data "/lib/main.py")
2223 (("f_scale = 0.35") "f_scale = 0.47")))
2224 #t)))))
2225 (inputs
2226 `(("font-bitstream-vera" ,font-bitstream-vera)
2227 ("python-pygame" ,python-pygame)))
2228 (home-page "http://www.imitationpickles.org/barbie/")
2229 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2230 (description
2231 "Barbie Seahorse Adventures is a retro style platform arcade game.
2232 You are Barbie the seahorse who travels through the jungle, up to the
2233 volcano until you float on bubbles to the moon. On the way to your
2234 final destination you will encounter various enemies, servants of the
2235 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2236 and defeat them with your bubbles!")
2237 ;; GPL2+ is for code, CC0 is for art.
2238 (license (list license:gpl2+ license:cc0))))
2239
2240 (define-public solarus
2241 (package
2242 (name "solarus")
2243 ;; XXX: When updating this package, please also update hash in
2244 ;; `solarus-quest-editor' below.
2245 (version "1.6.4")
2246 (source
2247 (origin
2248 (method git-fetch)
2249 (uri (git-reference
2250 (url "https://gitlab.com/solarus-games/solarus")
2251 (commit (string-append "v" version))))
2252 (file-name (git-file-name name version))
2253 (sha256
2254 (base32 "1n6l91yyqjx0pz4w1lp3yybpq0fs2yjswfcm8c1wjfkxwiznbdxi"))))
2255 (build-system cmake-build-system)
2256 (arguments
2257 `(#:phases
2258 (modify-phases %standard-phases
2259 (add-after 'unpack 'disable-failing-tests
2260 ;; The following tests fail reporting a missing "/dev/dri"
2261 ;; file.
2262 (lambda _
2263 (substitute* "tests/cmake/AddTestMaps.cmake"
2264 ((".*1200_create_shader_from_source.*" all)
2265 (string-append "#" all))
2266 ((".*1210_shader_scaling_factor.*" all)
2267 (string-append "#" all)))
2268 #t))
2269 (add-before 'check 'set-home
2270 ;; Tests fail without setting the following environment
2271 ;; variables.
2272 (lambda _
2273 (setenv "HOME" (getcwd))
2274 (setenv "XDG_RUNTIME_DIR" (getcwd))
2275 #t)))))
2276 (native-inputs
2277 `(("pkg-config" ,pkg-config)
2278 ("qttools" ,qttools)))
2279 (inputs
2280 `(("glm" ,glm)
2281 ("libmodplug" ,libmodplug)
2282 ("libogg" ,libogg)
2283 ("libvorbis" ,libvorbis)
2284 ("luajit" ,luajit)
2285 ("openal" ,openal)
2286 ("physfs" ,physfs)
2287 ("qtbase" ,qtbase)
2288 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2289 (home-page "https://www.solarus-games.org/")
2290 (synopsis "Lightweight game engine for Action-RPGs")
2291 (description
2292 "Solarus is a 2D game engine written in C++, that can run games
2293 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2294 in mind.")
2295 ;; The source code is licensed under the terms of GPL-3.0.
2296 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2297 ;; CC-BY-SA 4.0.
2298 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2299
2300 (define-public solarus-quest-editor
2301 (package
2302 (inherit solarus)
2303 (name "solarus-quest-editor")
2304 (version (package-version solarus))
2305 (source
2306 (origin
2307 (method git-fetch)
2308 (uri (git-reference
2309 (url "https://gitlab.com/solarus-games/solarus-quest-editor")
2310 (commit (string-append "v" version))))
2311 (file-name (git-file-name name version))
2312 (sha256
2313 (base32 "1qbc2j9kalk7xqk9j27s7wnm5zawiyjs47xqkqphw683idmzmjzn"))))
2314 (arguments
2315 `(#:tests? #false ;no test
2316 #:phases
2317 (modify-phases %standard-phases
2318 (add-after 'unpack 'fix-qt-build
2319 ;; XXX: Fix build with Qt 5.15. It has been applied upstream as
2320 ;; 81d5c7f1 and can be removed at next upgrade.
2321 (lambda _
2322 (substitute* "src/entities/jumper.cpp"
2323 (("#include <QPainter>" all)
2324 (string-append all "\n" "#include <QPainterPath>\n")))
2325 #t)))))
2326 (inputs
2327 `(("solarus" ,solarus)
2328 ,@(package-inputs solarus)))
2329 (synopsis "Create and modify quests for the Solarus engine")
2330 (description
2331 "Solarus Quest Editor is a graphical user interface to create and
2332 modify quests for the Solarus engine.")))
2333
2334 (define-public superstarfighter
2335 (package
2336 (name "superstarfighter")
2337 (version "0.6.4")
2338 (source
2339 (origin
2340 (method git-fetch)
2341 (uri (git-reference
2342 (url "https://github.com/notapixelstudio/superstarfighter")
2343 (commit (string-append "v" version))))
2344 (file-name (git-file-name name version))
2345 (sha256
2346 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2347 (build-system gnu-build-system)
2348 (arguments
2349 `(#:tests? #f ;there are no tests
2350 #:phases
2351 (modify-phases %standard-phases
2352 (replace 'configure
2353 (lambda _
2354 (chdir "godot")
2355 (setenv "HOME" (getcwd))
2356 (with-output-to-file "export_presets.cfg"
2357 (lambda ()
2358 (display
2359 "[preset.0]
2360 name=\"Guix\"
2361 platform=\"Linux/X11\"
2362 runnable=true
2363 [preset.0.options]")))
2364 #t))
2365 (replace 'build
2366 (lambda _
2367 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2368 (invoke (string-append godot "/bin/godot_server")
2369 "--export-pack" "Guix"
2370 "superstarfighter.pck" "project.godot"))
2371 #t))
2372 (replace 'install
2373 (lambda* (#:key inputs outputs #:allow-other-keys)
2374 (let* ((out (assoc-ref outputs "out"))
2375 (bin (string-append out "/bin"))
2376 (share (string-append out "/share"))
2377 (data (string-append share "/superstarfighter"))
2378 (icons (string-append share "/icons/hicolor/256x256/apps")))
2379 (install-file "superstarfighter.pck" data)
2380 (mkdir-p bin)
2381 (call-with-output-file (string-append bin "/superstarfighter")
2382 (lambda (port)
2383 (format port
2384 "#!/bin/sh~@
2385 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2386 (assoc-ref inputs "godot")
2387 data)
2388 (chmod port #o755)))
2389 (mkdir-p icons)
2390 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2391 (make-desktop-entry-file
2392 (string-append share "/applications/" ,name ".desktop")
2393 #:name "SuperStarfighter"
2394 #:comment "Fast-paced arcade combat game"
2395 #:exec ,name
2396 #:icon ,name
2397 #:categories '("Game" "ArcadeGame")))
2398 #t)))))
2399 (native-inputs
2400 `(("godot-headless" ,godot "headless")))
2401 (inputs
2402 `(("godot" ,godot)))
2403 (home-page "https://notapixel.itch.io/superstarfighter")
2404 (synopsis "Fast-paced local multiplayer arcade game")
2405 (description "In SuperStarfighter, up to four local players compete in a
2406 2D arena with fast-moving ships and missiles. Different game types are
2407 available, as well as a single-player mode with AI-controlled ships.")
2408 (license (list license:expat ; game
2409 license:silofl1.1)))) ; fonts
2410
2411 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2412 (define %ufoai-revision "0")
2413 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2414 (define ufoai-source
2415 (origin
2416 (method git-fetch)
2417 (uri (git-reference
2418 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2419 (commit %ufoai-commit)))
2420 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2421 (sha256
2422 (base32
2423 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2424 (modules '((guix build utils)
2425 (srfi srfi-1)
2426 (ice-9 ftw)))
2427 (snippet
2428 '(begin
2429 ;; Delete ~32MiB of bundled dependencies.
2430 (with-directory-excursion "src/libs"
2431 (for-each delete-file-recursively
2432 (lset-difference equal? (scandir ".")
2433 '("." ".." "gtest" "mumble"))))
2434
2435 ;; Use relative path to Lua headers.
2436 (substitute* "src/common/scripts_lua.h"
2437 (("\\.\\./libs/lua/") ""))
2438
2439 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2440 ;; it as a separate package. This way we don't need to make the same
2441 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2442 (substitute* "build/maps.mk"
2443 (("\\./ufo2map") "ufo2map")
2444 (("maps: ufo2map") "maps:"))
2445 (substitute* "build/modules/testall.mk"
2446 (("testall: ufo2map") "testall:"))
2447
2448 ;; If no cURL headers are found, the build system will try to include
2449 ;; the bundled version, even when not required. Prevent that.
2450 (substitute* "build/default.mk"
2451 (("^include src/libs/curl/lib/Makefile\\.inc")
2452 ""))
2453
2454 ;; While here, improve reproducibility by adding the '-X' flag to the
2455 ;; zip command used to create the map files, in order to prevent time
2456 ;; stamps from making it into the generated archives.
2457 (substitute* "build/data.mk"
2458 (("\\$\\(call ZIP\\)")
2459 "$(call ZIP) -X"))
2460 #t))))
2461
2462 (define-public trigger-rally
2463 (package
2464 (name "trigger-rally")
2465 (version "0.6.6.1")
2466 (source
2467 (origin
2468 (method url-fetch)
2469 (uri (string-append "mirror://sourceforge/trigger-rally/"
2470 "trigger-" version "/"
2471 "trigger-rally-" version ".tar.gz"))
2472 (sha256
2473 (base32
2474 "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z"))))
2475 (build-system gnu-build-system)
2476 (inputs
2477 `(("freealut" ,freealut)
2478 ("glew" ,glew)
2479 ("glu" ,glu)
2480 ("mesa" ,mesa)
2481 ("openal" ,openal)
2482 ("physfs" ,physfs)
2483 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))
2484 ("tinyxml2" ,tinyxml2)))
2485 (arguments
2486 `(#:make-flags (list (string-append "prefix=" %output)
2487 "bindir=$(prefix)/bin"
2488 "datadir=$(datarootdir)"
2489 "OPTIMS=-Ofast")
2490 #:tests? #f ; No tests present
2491 #:phases
2492 (modify-phases %standard-phases
2493 (delete 'configure)
2494 (add-before 'build 'cd-src
2495 (lambda _ (chdir "src")))
2496 (add-before 'build 'remove-timestamps
2497 (lambda _
2498 (substitute* (list "Trigger/menu.cpp"
2499 "PEngine/app.cpp")
2500 ((".*__DATE__.*") ""))))
2501 (add-before 'build 'make-verbose
2502 (lambda _
2503 (substitute* "GNUmakefile"
2504 (("@\\$\\(CXX\\)") "$(CXX)"))))
2505 (add-after 'build 'set-data-path
2506 (lambda* (#:key outputs #:allow-other-keys)
2507 (let ((out (assoc-ref outputs "out")))
2508 (substitute* "../bin/trigger-rally.config.defs"
2509 (("<data path=\"C:[^\"]*\"")
2510 (string-append "<data path=\"" out "/share/trigger-rally\""))))))
2511 (add-after 'install 'create-desktop-entry
2512 (lambda* (#:key outputs #:allow-other-keys)
2513 (let* ((out (assoc-ref outputs "out"))
2514 (apps (string-append out "/share/applications")))
2515 (mkdir-p apps)
2516 (with-output-to-file
2517 (string-append apps "/trigger-rally.desktop")
2518 (lambda ()
2519 (format #t ; Borrowed from Debian package
2520 "[Desktop Entry]~@
2521 Name=Trigger Rally~@
2522 Icon=trigger-rally~@
2523 Comment=3D rally racing car game~@
2524 Comment[de]=3D Rally-Autorennen~@
2525 Comment[fr_FR]=un jeu de rally en 3D~@
2526 Comment[ro_RO]=Un joc în 3D cu curse de raliu~@
2527 Exec=~a/bin/trigger-rally~@
2528 Terminal=false~@
2529 StartupNotify=false~@
2530 Type=Application~@
2531 TryExec=~:*~a/bin/trigger-rally~@
2532 Categories=Game;ArcadeGame;~@
2533 Keywords=racing;tracks;~@
2534 Keywords[de]=Rennstrecke;~%"
2535 out)))))))))
2536 (home-page "http://trigger-rally.sourceforge.net")
2537 (synopsis "Fast-paced single-player racing game")
2538 (description "Trigger-rally is a 3D rally simulation with great physics
2539 for drifting on over 200 maps. Different terrain materials like dirt,
2540 asphalt, sand, ice, etc. and various weather, light, and fog conditions give
2541 this rally simulation the edge over many other games. You need to make it
2542 through the maps in often tight time limits and can further improve by beating
2543 the recorded high scores. All attached single races must be finished in time
2544 in order to win an event, unlocking additional events and cars. Most maps are
2545 equipped with spoken co-driver notes and co-driver icons.")
2546 (license license:cc0 ;textures and audio in data.zip
2547 license:gpl2+)))
2548
2549 (define-public ufo2map
2550 (package
2551 (name "ufo2map")
2552 (version %ufoai-version)
2553 (home-page "https://ufoai.org/")
2554 (source ufoai-source)
2555 (build-system gnu-build-system)
2556 (arguments
2557 '(#:configure-flags '("CC=gcc" "CXX=g++"
2558 "--enable-release"
2559 "--enable-ufo2map"
2560 "--disable-uforadiant"
2561 "--disable-cgame-campaign"
2562 "--disable-cgame-multiplayer"
2563 "--disable-cgame-skirmish"
2564 "--disable-game"
2565 "--disable-memory"
2566 "--disable-testall"
2567 "--disable-ufoded"
2568 "--disable-ufo"
2569 "--disable-ufomodel"
2570 "--disable-ufoslicer")
2571 #:tests? #f ;no tests
2572 #:phases (modify-phases %standard-phases
2573 (replace 'configure
2574 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2575 ;; The home-made configure script does not understand
2576 ;; some of the default flags of gnu-build-system.
2577 (apply invoke "./configure" configure-flags)))
2578 (replace 'install
2579 (lambda* (#:key outputs #:allow-other-keys)
2580 (let ((out (assoc-ref outputs "out")))
2581 (install-file "ufo2map" (string-append out "/bin"))
2582 (install-file "debian/ufo2map.6"
2583 (string-append out "/share/man/man6"))
2584 #t))))))
2585 (native-inputs
2586 `(("pkg-config" ,pkg-config)))
2587 (inputs
2588 `(("libjpeg" ,libjpeg-turbo)
2589 ("libpng" ,libpng)
2590 ("lua" ,lua-5.1)
2591 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2592 (synopsis "UFO: AI map generator")
2593 (description
2594 "This package provides @command{ufo2map}, a program used to generate
2595 maps for the UFO: Alien Invasion strategy game.")
2596 (license license:gpl2+)))
2597
2598 (define ufoai-data
2599 (package
2600 (name "ufoai-data")
2601 (version %ufoai-version)
2602 (home-page "https://ufoai.org/")
2603 (source ufoai-source)
2604 (build-system gnu-build-system)
2605 (arguments
2606 '(#:tests? #f
2607 #:configure-flags '("CC=gcc" "CXX=g++")
2608 #:phases (modify-phases %standard-phases
2609 (replace 'configure
2610 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2611 (apply invoke "./configure" configure-flags)))
2612 (replace 'build
2613 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2614 (invoke "make"
2615 "-j" (if parallel-build?
2616 (number->string (parallel-job-count))
2617 "1")
2618 "maps")))
2619 (add-after 'build 'pack
2620 (lambda _
2621 (invoke "make" "pk3")))
2622 (replace 'install
2623 (lambda* (#:key outputs #:allow-other-keys)
2624 (let ((out (assoc-ref outputs "out")))
2625 (for-each (lambda (file)
2626 (install-file file out))
2627 (find-files "base" "\\.pk3$"))
2628 #t))))))
2629 (native-inputs
2630 `(("python" ,python-2)
2631 ("ufo2map" ,ufo2map)
2632 ("which" ,which)
2633 ("zip" ,zip)))
2634 (synopsis "UFO: AI data files")
2635 (description
2636 "This package contains maps and other assets for UFO: Alien Invasion.")
2637 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2638 ;; licenses, see LICENSES for details.
2639 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2640 license:cc-by-sa3.0 license:public-domain))))
2641
2642 (define-public ufoai
2643 (package
2644 (name "ufoai")
2645 (version %ufoai-version)
2646 (home-page "https://ufoai.org/")
2647 (source ufoai-source)
2648 (build-system gnu-build-system)
2649 (arguments
2650 `(#:configure-flags
2651 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2652 (string-append "--datadir=" (assoc-ref %outputs "out")
2653 "/share/games/ufo")
2654 "CC=gcc" "CXX=g++"
2655 "--enable-release"
2656 "--enable-game"
2657 "--disable-ufo2map"
2658 "--disable-dependency-tracking"
2659
2660 ;; Disable hard links to prevent huge NARs.
2661 "--disable-hardlinkedgame"
2662 "--disable-hardlinkedcgame")
2663 #:phases (modify-phases %standard-phases
2664 (add-after 'unpack 'symlink-data-files
2665 (lambda* (#:key inputs #:allow-other-keys)
2666 (let ((data (assoc-ref inputs "ufoai-data")))
2667 ;; Symlink the data files to where the build system
2668 ;; expects to find them. Ultimately these files are
2669 ;; copied to $out/share/games/ufoai/base, losing the
2670 ;; symlinks; we could fix that after install, but it
2671 ;; does not make a big difference in practice due to
2672 ;; deduplication.
2673 (with-directory-excursion "base"
2674 (for-each (lambda (file)
2675 (symlink file (basename file)))
2676 (find-files data "\\.pk3$")))
2677 #t)))
2678 (add-before 'configure 'create-language-files
2679 (lambda _
2680 (invoke "make" "lang")))
2681 (replace 'configure
2682 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2683 (apply invoke "./configure" configure-flags)))
2684 (replace 'check
2685 (lambda* (#:key tests? #:allow-other-keys)
2686 (if tests?
2687 (invoke "./testall")
2688 (format #t "test suite not run~%"))
2689 #t))
2690 (add-after 'install 'install-man-pages
2691 (lambda* (#:key outputs #:allow-other-keys)
2692 (let* ((out (assoc-ref outputs "out"))
2693 (man6 (string-append out "/share/man/man6")))
2694 (install-file "debian/ufo.6" man6)
2695 (install-file "debian/ufoded.6" man6)
2696 #t))))
2697
2698 ;; TODO: Some map tests occasionally fail because of randomness issues,
2699 ;; e.g. not enough generated aliens. The test runner also fails early
2700 ;; in the build container with 'failed to shutdown server'?
2701 #:tests? #f))
2702 (native-inputs
2703 `(("gettext" ,gettext-minimal)
2704 ("pkg-config" ,pkg-config)
2705 ("python" ,python-2)
2706 ("ufo2map" ,ufo2map)
2707 ("ufoai-data" ,ufoai-data)))
2708 (inputs
2709 `(("curl" ,curl)
2710 ("libjpeg" ,libjpeg-turbo)
2711 ("libogg" ,libogg)
2712 ("libpng" ,libpng)
2713 ("libtheora" ,libtheora)
2714 ("libvorbis" ,libvorbis)
2715 ("libxml2" ,libxml2)
2716 ("lua" ,lua-5.1)
2717 ("mesa" ,mesa)
2718 ("minixml" ,minixml)
2719 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2720 ("zlib" ,zlib)))
2721 (synopsis "Turn-based tactical strategy game")
2722 (description
2723 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2724 You control a secret organisation charged with defending Earth from a brutal
2725 alien enemy. Build up your bases, prepare your team, and dive head-first into
2726 the fast and flowing turn-based combat.
2727
2728 Over the long term you will need to conduct research into the alien threat to
2729 figure out their mysterious goals and use their powerful weapons for your own
2730 ends. You will produce unique items and use them in combat against your
2731 enemies.
2732
2733 You can also use them against your friends with the multiplayer functionality.
2734
2735 Warning: This is a pre-release version of UFO: AI! Some things may not work
2736 properly.")
2737
2738 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2739 ;; because some assets do not use the "or later" clause. Many individual
2740 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2741 (license (delete license:gpl2+ (package-license ufoai-data)))))
2742
2743 (define-public xshogi
2744 (package
2745 (name "xshogi")
2746 (version "1.4.2")
2747 (source
2748 (origin
2749 (method url-fetch)
2750 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2751 version ".tar.gz"))
2752 (sha256
2753 (base32
2754 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2755 (build-system gnu-build-system)
2756 (inputs
2757 `(("libxaw" ,libxaw)
2758 ("libxt" ,libxt)))
2759 (home-page "https://www.gnu.org/software/gnushogi/")
2760 (synopsis "User interface for gnushogi")
2761 (description "A graphical user interface for the package @code{gnushogi}.")
2762 ;; Contains a copy of GPLv3 but the licence notices simply
2763 ;; state "GNU General Public Licence" without specifying a version.
2764 (license license:gpl1+)))
2765
2766 (define-public abbaye
2767 (package
2768 (name "abbaye")
2769 (version "2.0.1")
2770 (source
2771 (origin
2772 (method git-fetch)
2773 (uri (git-reference
2774 (url "https://github.com/nevat/abbayedesmorts-gpl")
2775 (commit (string-append "v" version))))
2776 (file-name (git-file-name name version))
2777 (sha256
2778 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2779 (modules '((guix build utils)))
2780 (snippet
2781 ;; Unbundle fonts.
2782 '(begin
2783 (delete-file-recursively "fonts")
2784 #t))))
2785 (build-system gnu-build-system)
2786 (arguments
2787 '(#:make-flags '("CC=gcc")
2788 #:phases (modify-phases %standard-phases
2789 (add-after 'set-paths 'set-sdl-paths
2790 (lambda* (#:key inputs #:allow-other-keys)
2791 (setenv "CPATH"
2792 (string-append (assoc-ref inputs "sdl-union")
2793 "/include/SDL:"
2794 (or (getenv "CPATH") "")))))
2795 (add-after 'patch-source-shebangs 'patch-makefile
2796 (lambda* (#:key outputs #:allow-other-keys)
2797 ;; Replace /usr with package output directory.
2798 (substitute* "Makefile"
2799 (("/usr") (assoc-ref outputs "out")))))
2800 (add-before 'install 'make-install-dirs
2801 (lambda* (#:key outputs #:allow-other-keys)
2802 (let ((prefix (assoc-ref outputs "out")))
2803 ;; Create directories that the makefile assumes exist.
2804 (mkdir-p (string-append prefix "/bin"))
2805 (mkdir-p (string-append prefix "/share/applications"))
2806 (mkdir-p (string-append prefix "/share/pixmaps")))))
2807 ;; No configure script.
2808 (delete 'configure))
2809 #:tests? #f)) ;; No check target.
2810 (native-inputs `(("pkg-config" ,pkg-config)))
2811 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2812 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2813 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2814 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2815 France. The Cathars, who preach about good Christian beliefs, were being
2816 expelled by the Catholic Church out of the Languedoc region in France. One of
2817 them, called Jean Raymond, found an old church in which to hide, not knowing
2818 that beneath its ruins lay buried an ancient evil.")
2819 (license license:gpl3)))
2820
2821 (define-public angband
2822 (package
2823 (name "angband")
2824 (version "4.2.1")
2825 (source
2826 (origin
2827 (method url-fetch)
2828 (uri (string-append "https://rephial.org/downloads/"
2829 (version-major+minor version)
2830 "/angband-" version ".tar.gz"))
2831 (sha256
2832 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2833 (modules '((guix build utils)))
2834 (snippet
2835 ;; So, some of the sounds/graphics/tilesets are under different
2836 ;; licenses... some of them even nonfree! This is a console-only
2837 ;; version of this package so we just remove them.
2838 ;; In the future, if someone tries to make a graphical variant of
2839 ;; this package, they can deal with that mess themselves. :)
2840 '(begin
2841 (for-each (lambda (subdir)
2842 (let ((lib-subdir (string-append "lib/" subdir)))
2843 (delete-file-recursively lib-subdir)))
2844 '("fonts" "icons" "sounds" "tiles"))
2845 (substitute* "lib/Makefile"
2846 ;; And don't try to invoke makefiles in the directories we removed.
2847 (("gamedata customize help screens fonts tiles sounds icons user")
2848 "gamedata customize help screens user"))
2849 #t))))
2850 (build-system gnu-build-system)
2851 (arguments
2852 `(#:tests? #f ; no check target
2853 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2854 #:phases
2855 (modify-phases %standard-phases
2856 (replace 'bootstrap
2857 (lambda _
2858 (substitute* "acinclude.m4"
2859 (("ncursesw5-config") "ncursesw6-config"))
2860 (invoke "sh" "autogen.sh"))))))
2861 (native-inputs
2862 `(("autoconf" ,autoconf)
2863 ("automake" ,automake)))
2864 (inputs `(("ncurses" ,ncurses)))
2865 (home-page "https://rephial.org/")
2866 (synopsis "Dungeon exploration roguelike")
2867 (description "Angband is a Classic dungeon exploration roguelike. Explore
2868 the depths below Angband, seeking riches, fighting monsters, and preparing to
2869 fight Morgoth, the Lord of Darkness.")
2870 (license license:gpl2)))
2871
2872 (define-public pingus
2873 (package
2874 (name "pingus")
2875 (version "0.7.6")
2876 (source
2877 (origin
2878 (method git-fetch)
2879 (uri (git-reference
2880 (url "https://gitlab.com/pingus/pingus.git")
2881 (commit (string-append "v" version))))
2882 (file-name (git-file-name name version))
2883 (sha256
2884 (base32
2885 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2886 (patches (search-patches "pingus-boost-headers.patch"
2887 "pingus-sdl-libs-config.patch"))
2888 (modules '((guix build utils)))
2889 (snippet
2890 '(begin
2891 (substitute* "src/pingus/screens/demo_session.cpp"
2892 (("#include <iostream>")
2893 ;; std::function moved to <functional> with C++ 11.
2894 ;; Remove this for versions newer than 0.7.6.
2895 "#include <iostream>\n#include <functional>"))
2896 #t))))
2897 (build-system gnu-build-system)
2898 (native-inputs `(("pkg-config" ,pkg-config)
2899 ("scons-python2" ,scons-python2)))
2900 (inputs `(("sdl" ,sdl)
2901 ("sdl-image" ,sdl-image)
2902 ("sdl-mixer" ,sdl-mixer)
2903 ("mesa" ,mesa)
2904 ("glu" ,glu)
2905 ("libpng" ,libpng)
2906 ("boost" ,boost)))
2907 (arguments
2908 '(#:make-flags (list (string-append "PREFIX=" %output))
2909 #:tests? #f ; no check target
2910 #:phases
2911 (modify-phases %standard-phases
2912 (delete 'configure)))) ; no configure script
2913 (home-page "https://pingus.seul.org/")
2914 (synopsis "Lemmings clone")
2915 (description
2916 "Pingus is a free Lemmings-like puzzle game in which the player takes
2917 command of a bunch of small animals and has to guide them through levels.
2918 Since the animals walk on their own, the player can only influence them by
2919 giving them commands, like build a bridge, dig a hole, or redirect all animals
2920 in the other direction. Multiple such commands are necessary to reach the
2921 level's exit. The game is presented in a 2D side view.")
2922 ;; Some source files are under bsd-3 and gpl2+ licenses.
2923 (license license:gpl3+)))
2924
2925 (define-public talkfilters
2926 (package
2927 (name "talkfilters")
2928 (version "2.3.8")
2929 (source
2930 (origin
2931 (method url-fetch)
2932 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
2933 "talkfilters-" version ".tar.gz"))
2934 (sha256
2935 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
2936 (build-system gnu-build-system)
2937 (home-page "https://www.gnu.org/software/talkfilters/")
2938 (synopsis "Convert English text to humorous dialects")
2939 (description "The GNU Talk Filters are programs that convert English text
2940 into stereotyped or otherwise humorous dialects. The filters are provided as
2941 a C library, so they can easily be integrated into other programs.")
2942 (license license:gpl2+)))
2943
2944 (define-public taisei
2945 (package
2946 (name "taisei")
2947 (version "1.3.1")
2948 (source
2949 (origin
2950 (method url-fetch)
2951 (uri (string-append "https://github.com/taisei-project/"
2952 "taisei/releases/download/v" version
2953 "/taisei-v" version ".tar.xz"))
2954 (sha256
2955 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
2956 (build-system meson-build-system)
2957 (arguments
2958 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
2959 #:configure-flags
2960 (list "-Dr_default=gles30"
2961 "-Dr_gles20=true"
2962 "-Dr_gles30=true"
2963 "-Dshader_transpiler=true")))
2964 (native-inputs
2965 `(("pkg-config" ,pkg-config)
2966 ("python" ,python)
2967 ("python-docutils" ,python-docutils)
2968 ("python-pygments" ,python-pygments)))
2969 (inputs
2970 `(("freetype" ,freetype)
2971 ("libpng" ,libpng)
2972 ("libwebp" ,libwebp)
2973 ("libzip" ,libzip)
2974 ("mesa" ,mesa)
2975 ("openssl" ,openssl)
2976 ("opusfile" ,opusfile)
2977 ("sdl2" ,sdl2)
2978 ("sdl2-mixer" ,sdl2-mixer)
2979 ("shaderc" ,shaderc)
2980 ("spirv-cross" ,spirv-cross)
2981 ("zlib" ,zlib)))
2982 (home-page "https://taisei-project.org/")
2983 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
2984 (description
2985 "The player controls a character (one of three: Good, Bad, and Dead),
2986 dodges the missiles (lots of it cover the screen, but the character's hitbox
2987 is very small), and shoot at the adversaries that keep appear on the screen.")
2988 (license (list ;;game
2989 license:expat
2990 ;;resources/00-taisei.pkgdir/bgm/
2991 ;;atlas/portraits/
2992 license:cc-by4.0
2993 ;;miscellaneous
2994 license:cc0
2995 license:public-domain))))
2996
2997 (define-public cmatrix
2998 (package
2999 (name "cmatrix")
3000 (version "2.0")
3001 (source
3002 (origin
3003 (method git-fetch)
3004 (uri (git-reference
3005 (url "https://github.com/abishekvashok/cmatrix")
3006 (commit (string-append "v" version))))
3007 (file-name (git-file-name name version))
3008 (sha256
3009 (base32
3010 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
3011 (build-system gnu-build-system)
3012 (native-inputs
3013 `(("autoconf" ,autoconf)
3014 ("automake" ,automake)))
3015 (arguments
3016 '(#:phases
3017 (modify-phases %standard-phases
3018 (replace 'configure
3019 (lambda* (#:key outputs #:allow-other-keys)
3020 ;; This old ‘configure’ script doesn't support
3021 ;; variables passed as arguments.
3022 (let ((out (assoc-ref outputs "out")))
3023 (setenv "CONFIG_SHELL" (which "bash"))
3024 (invoke "./configure"
3025 (string-append "--prefix=" out))))))))
3026 (inputs `(("ncurses" ,ncurses)))
3027 (home-page "http://www.asty.org/cmatrix")
3028 (synopsis "Simulate the display from \"The Matrix\"")
3029 (description "CMatrix simulates the display from \"The Matrix\" and is
3030 based on the screensaver from the movie's website. It works with terminal
3031 settings up to 132x300 and can scroll lines all at the same rate or
3032 asynchronously and at a user-defined speed.")
3033 (license license:gpl2+)))
3034
3035 (define-public chess
3036 (package
3037 (name "chess")
3038 (version "6.2.7")
3039 (source
3040 (origin
3041 (method url-fetch)
3042 (uri (string-append "mirror://gnu/chess/gnuchess-" version
3043 ".tar.gz"))
3044 (sha256
3045 (base32
3046 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
3047 (build-system gnu-build-system)
3048 (home-page "https://www.gnu.org/software/chess/")
3049 (synopsis "Full chess implementation")
3050 (description "GNU Chess is a chess engine. It allows you to compete
3051 against the computer in a game of chess, either through the default terminal
3052 interface or via an external visual interface such as GNU XBoard.")
3053 (properties '((upstream-name . "gnuchess")
3054 (ftp-directory . "/chess")))
3055 (license license:gpl3+)))
3056
3057 (define-public freedink-engine
3058 (package
3059 (name "freedink-engine")
3060 (version "109.6")
3061 (source (origin
3062 (method url-fetch)
3063 (uri (string-append "mirror://gnu/freedink/freedink-" version
3064 ".tar.gz"))
3065 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
3066 (sha256
3067 (base32
3068 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
3069 (build-system gnu-build-system)
3070 (arguments
3071 `(#:configure-flags '("--disable-embedded-resources")
3072 #:phases
3073 (modify-phases %standard-phases
3074 (add-after 'unpack 'disable-graphical-tests
3075 (lambda _
3076 ;; These tests require a graphical interface.
3077 (substitute* "src/Makefile.am"
3078 (("test_gfx_fonts TestIOGfxDisplay") ""))
3079 #t))
3080 (add-before 'bootstrap 'autoreconf
3081 (lambda _
3082 ;; automake is out of date in the source
3083 ;; autoreconf updates the automake scripts
3084 (invoke "autoreconf")
3085 ;; Build fails when autom4te.cache exists.
3086 (delete-file-recursively "autom4te.cache")
3087 #t))
3088 (add-after 'install 'delete-freedinkedit-desktop
3089 (lambda* (#:key outputs #:allow-other-keys)
3090 (let ((out (assoc-ref outputs "out")))
3091 ;; freedinkedit does not know where to find freedink data
3092 ;; freedink data is read-only, so it cannot be edited anyway.
3093 ;; TODO: fix freedink.desktop
3094 (delete-file-recursively (string-append
3095 out "/share/applications"))
3096 #t))))))
3097 (native-inputs `(("autoconf" ,autoconf)
3098 ("automake" ,automake)
3099 ("cxxtest" ,cxxtest)
3100 ("gettext" ,gettext-minimal)
3101 ("help2man" ,help2man)
3102 ("pkg-config" ,pkg-config)))
3103 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
3104 sdl2-ttf sdl2-gfx)))
3105 ("fontconfig" ,fontconfig)
3106 ("glm" ,glm)))
3107 (properties '((ftp-directory . "/freedink")
3108 (upstream-name . "freedink")))
3109 (home-page "https://www.gnu.org/software/freedink/")
3110 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
3111 (description
3112 "GNU FreeDink is a free and portable re-implementation of the engine
3113 for the role-playing game Dink Smallwood. It supports not only the original
3114 game data files but it also supports user-produced game mods or \"D-Mods\".
3115 To that extent, it also includes a front-end for managing all of your D-Mods.")
3116 (license license:gpl3+)))
3117
3118 (define-public freedink-data
3119 (package
3120 (name "freedink-data")
3121 (version "1.08.20190120")
3122 (source (origin
3123 (method url-fetch)
3124 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3125 version ".tar.gz"))
3126 (sha256
3127 (base32
3128 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3129 (build-system gnu-build-system)
3130 (arguments
3131 `(#:phases
3132 (modify-phases %standard-phases
3133 (delete 'configure) ; no configure script
3134 (delete 'check)) ; no tests
3135 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3136 (properties '((ftp-directory . "/freedink")))
3137 (home-page "https://www.gnu.org/software/freedink/")
3138 (synopsis "Game data for GNU Freedink")
3139 (description
3140 "This package contains the game data of GNU Freedink.")
3141 (license license:gpl3+)))
3142
3143 (define-public freedink-dfarc
3144 (package
3145 (name "freedink-dfarc")
3146 (version "3.14")
3147 (source (origin
3148 (method url-fetch)
3149 (uri (string-append "mirror://gnu/freedink/dfarc-"
3150 version ".tar.gz"))
3151 (sha256
3152 (base32
3153 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3154 (build-system gnu-build-system)
3155 (native-inputs
3156 `(("intltool" ,intltool)))
3157 (inputs
3158 `(("bzip2" ,bzip2)
3159 ("wxwidgets" ,wxwidgets)))
3160 (properties '((ftp-directory . "/freedink")
3161 (upstream-name . "dfarc")))
3162 (home-page "https://www.gnu.org/software/freedink/")
3163 (synopsis "Front-end for managing and playing Dink Modules")
3164 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3165 and its numerous D-Mods.")
3166 (license license:gpl3+)))
3167
3168 (define-public freedink
3169 ;; This is a wrapper that tells the engine where to find the data.
3170 (package (inherit freedink-engine)
3171 (name "freedink")
3172 (build-system trivial-build-system)
3173 (arguments
3174 '(#:builder (begin
3175 (use-modules (guix build utils))
3176
3177 (let* ((output (assoc-ref %outputs "out"))
3178 (bin (string-append output "/bin"))
3179 (executable (string-append bin "/freedink")))
3180 (mkdir-p bin)
3181 (call-with-output-file executable
3182 (lambda (port)
3183 (format port "#!~a/bin/sh
3184 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3185 (assoc-ref %build-inputs "bash")
3186 (assoc-ref %build-inputs "engine")
3187 (assoc-ref %build-inputs "data"))
3188 (chmod port #o777)))
3189 #t))
3190 #:modules ((guix build utils))))
3191 (inputs `(("engine" ,freedink-engine)
3192 ("data" ,freedink-data)
3193 ("bash" ,bash)))
3194 (native-inputs '())))
3195
3196 (define-public xboard
3197 (package
3198 (name "xboard")
3199 (version "4.9.1")
3200 (source
3201 (origin
3202 (method url-fetch)
3203 (uri (string-append "mirror://gnu/xboard/xboard-" version
3204 ".tar.gz"))
3205 (sha256
3206 (base32
3207 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3208 (build-system gnu-build-system)
3209 (inputs
3210 `(("gtk+" ,gtk+-2)
3211 ("librsvg" ,librsvg)))
3212 (native-inputs
3213 `(("texinfo" ,texinfo)
3214 ("pkg-config" ,pkg-config)))
3215 (home-page "https://www.gnu.org/software/xboard/")
3216 (synopsis "Graphical user interface for chess programs")
3217 (description "GNU XBoard is a graphical board for all varieties of chess,
3218 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3219 and Makruk. Several lesser-known variants are also supported. It presents a
3220 fully interactive graphical interface and it can load and save games in the
3221 Portable Game Notation.")
3222 (license license:gpl3+)))
3223
3224 (define-public gtypist
3225 (package
3226 (name "gtypist")
3227 (version "2.9.5")
3228 (source (origin
3229 (method url-fetch)
3230 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3231 version ".tar.xz"))
3232 (sha256
3233 (base32
3234 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3235 (modules '((guix build utils)))
3236 (snippet
3237 ;; We do not provide `ncurses.h' within an `ncursesw'
3238 ;; sub-directory, so patch the source accordingly. See
3239 ;; <http://bugs.gnu.org/19018>.
3240 '(begin
3241 (for-each (lambda (file)
3242 (substitute* file
3243 (("ncursesw/ncurses.h")
3244 "ncurses.h")))
3245 (find-files "." "configure$|\\.c$"))
3246 #t))))
3247 (build-system gnu-build-system)
3248 (inputs `(("ncurses" ,ncurses)
3249 ("perl" ,perl)))
3250 (home-page "https://www.gnu.org/software/gtypist/")
3251 (synopsis "Typing tutor")
3252 (description
3253 "GNU Typist is a universal typing tutor. It can be used to learn and
3254 practice touch-typing. Several tutorials are included; in addition to
3255 tutorials for the standard QWERTY layout, there are also tutorials for the
3256 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3257 are primarily in English, however some in other languages are provided.")
3258 (license license:gpl3+)))
3259
3260 (define-public irrlicht
3261 (package
3262 (name "irrlicht")
3263 (version "1.8.4")
3264 (source (origin
3265 (method url-fetch)
3266 (uri (string-append
3267 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3268 (version-major+minor version)
3269 "/" version "/irrlicht-" version ".zip"))
3270 (sha256
3271 (base32
3272 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3273 (patches (search-patches "irrlicht-use-system-libs.patch"))
3274 (modules '((guix build utils)))
3275 (snippet
3276 '(begin
3277 (for-each delete-file-recursively
3278 '("bin" ; bundled compiled Windows binaries"
3279 "source/Irrlicht/MacOSX"
3280 "source/Irrlicht/bzip2"
3281 "source/Irrlicht/jpeglib"
3282 "source/Irrlicht/libpng"
3283 "source/Irrlicht/lzma"
3284 "source/Irrlicht/zlib"))
3285 (delete-file "source/Irrlicht/glext.h")
3286 (delete-file "source/Irrlicht/glxext.h")
3287 (delete-file "source/Irrlicht/wglext.h")
3288 #t))))
3289 (build-system gnu-build-system)
3290 (arguments
3291 `(#:phases
3292 (modify-phases %standard-phases
3293 (add-after 'unpack 'chdir-to-source
3294 (lambda _
3295 ;; The actual source is buried a few directories deep.
3296 (chdir "source/Irrlicht/")
3297 #t))
3298 (add-after 'chdir-to-source 'fix-build-env
3299 (lambda* (#:key outputs #:allow-other-keys)
3300 (let ((out (assoc-ref outputs "out")))
3301 (substitute* "Makefile"
3302 (("INSTALL_DIR = /usr/local/lib")
3303 (string-append "INSTALL_DIR = " out "/lib"))
3304 ;; Add '-fpermissive' to the CXXFLAGS
3305 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3306 ;; The Makefile assumes these directories exist.
3307 (mkdir-p (string-append out "/lib"))
3308 (mkdir-p (string-append out "/include")))))
3309 (delete 'configure)) ; no configure script
3310 #:tests? #f ; no check target
3311 #:make-flags '("CC=gcc" "sharedlib")))
3312 (inputs
3313 `(("bzip2" ,bzip2)
3314 ("libjpeg" ,libjpeg-turbo)
3315 ("libpng" ,libpng)
3316 ("libx11" ,libx11)
3317 ("libxxf86vm" ,libxxf86vm)
3318 ("mesa" ,mesa)))
3319 (synopsis "3D game engine written in C++")
3320 (description
3321 "The Irrlicht Engine is a high performance realtime 3D engine written in
3322 C++. Features include an OpenGL renderer, extensible materials, scene graph
3323 management, character animation, particle and other special effects, support
3324 for common mesh file formats, and collision detection.")
3325 (home-page "http://irrlicht.sourceforge.net/")
3326 (license license:zlib)))
3327
3328 (define-public mars
3329 ;; The latest release on SourceForge relies on an unreleased version of SFML
3330 ;; with a different API, so we take the latest version from the official
3331 ;; repository on Github.
3332 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3333 (revision "1"))
3334 (package
3335 (name "mars")
3336 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3337 (source (origin
3338 (method git-fetch)
3339 (uri (git-reference
3340 (url "https://github.com/thelaui/M.A.R.S.")
3341 (commit commit)))
3342 (file-name (git-file-name name version))
3343 (sha256
3344 (base32
3345 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3346 (patches (search-patches "mars-sfml-2.3.patch"
3347 "mars-install.patch"))))
3348 (build-system cmake-build-system)
3349 (arguments
3350 `(#:tests? #f ; There are no tests
3351 #:phases
3352 (modify-phases %standard-phases
3353 (add-after 'unpack 'fix-install-path
3354 (lambda _
3355 (substitute* "src/CMakeLists.txt"
3356 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3357 "${CMAKE_INSTALL_PREFIX}/bin"))
3358 #t))
3359 (add-after 'unpack 'fix-data-path
3360 (lambda* (#:key outputs #:allow-other-keys)
3361 (substitute* "src/System/settings.cpp"
3362 (("C_dataPath = \"./data/\";")
3363 (string-append "C_dataPath = \""
3364 (assoc-ref outputs "out")
3365 "/share/games/marsshooter/\";")))
3366 #t)))))
3367 (inputs
3368 `(("mesa" ,mesa)
3369 ("fribidi" ,fribidi)
3370 ("taglib" ,taglib)
3371 ("sfml" ,sfml)))
3372 (home-page "http://mars-game.sourceforge.net/")
3373 (synopsis "2D space shooter")
3374 (description
3375 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3376 attractive physics. Players can battle each other or computer controlled
3377 enemies in different game modes such as space ball, death match, team death
3378 match, cannon keep, and grave-itation pit.")
3379 (license license:gpl3+))))
3380
3381 (define-public minetest
3382 (package
3383 (name "minetest")
3384 (version "5.3.0")
3385 (source (origin
3386 (method git-fetch)
3387 (uri (git-reference
3388 (url "https://github.com/minetest/minetest")
3389 (commit version)))
3390 (file-name (git-file-name name version))
3391 (sha256
3392 (base32
3393 "03ga3j3cg38w4lg4d4qxasmnjdl8n3lbizidrinanvyfdyvznyh6"))
3394 (modules '((guix build utils)))
3395 (snippet
3396 '(begin
3397 ;; Delete bundled libraries.
3398 (delete-file-recursively "lib")
3399 #t))))
3400 (build-system cmake-build-system)
3401 (arguments
3402 '(#:configure-flags
3403 (list "-DRUN_IN_PLACE=0"
3404 "-DENABLE_FREETYPE=1"
3405 "-DENABLE_GETTEXT=1"
3406 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3407 (string-append "-DIRRLICHT_INCLUDE_DIR="
3408 (assoc-ref %build-inputs "irrlicht")
3409 "/include/irrlicht")
3410 (string-append "-DCURL_INCLUDE_DIR="
3411 (assoc-ref %build-inputs "curl")
3412 "/include/curl"))
3413 #:tests? #f)) ;no check target
3414 (native-search-paths
3415 (list (search-path-specification
3416 (variable "MINETEST_SUBGAME_PATH")
3417 (files '("share/minetest/games")))))
3418 (native-inputs
3419 `(("pkg-config" ,pkg-config)))
3420 (inputs
3421 `(("curl" ,curl)
3422 ("freetype" ,freetype)
3423 ("gettext" ,gettext-minimal)
3424 ("gmp" ,gmp)
3425 ("irrlicht" ,irrlicht)
3426 ("jsoncpp" ,jsoncpp)
3427 ("libjpeg" ,libjpeg-turbo)
3428 ("libpng" ,libpng)
3429 ("libogg" ,libogg)
3430 ("libvorbis" ,libvorbis)
3431 ("libxxf86vm" ,libxxf86vm)
3432 ("luajit" ,luajit)
3433 ("mesa" ,mesa)
3434 ("ncurses" ,ncurses)
3435 ("openal" ,openal)
3436 ("sqlite" ,sqlite)))
3437 (propagated-inputs
3438 `(("minetest-data" ,minetest-data)))
3439 (synopsis "Infinite-world block sandbox game")
3440 (description
3441 "Minetest is a sandbox construction game. Players can create and destroy
3442 various types of blocks in a three-dimensional open world. This allows
3443 forming structures in every possible creation, on multiplayer servers or as a
3444 single player. Mods and texture packs allow players to personalize the game
3445 in different ways.")
3446 (home-page "https://www.minetest.net/")
3447 (license license:lgpl2.1+)))
3448
3449 (define minetest-data
3450 (package
3451 (name "minetest-data")
3452 (version (package-version minetest))
3453 (source (origin
3454 (method git-fetch)
3455 (uri (git-reference
3456 (url "https://github.com/minetest/minetest_game")
3457 (commit version)))
3458 (file-name (git-file-name name version))
3459 (sha256
3460 (base32
3461 "1liciwlh013z5h08ib0psjbwn5wkvlr937ir7kslfk4vly984cjx"))))
3462 (build-system trivial-build-system)
3463 (native-inputs
3464 `(("source" ,source)))
3465 (arguments
3466 `(#:modules ((guix build utils))
3467 #:builder (begin
3468 (use-modules (guix build utils))
3469 (let ((install-dir (string-append
3470 %output
3471 "/share/minetest/games/minetest_game")))
3472 (mkdir-p install-dir)
3473 (copy-recursively
3474 (assoc-ref %build-inputs "source")
3475 install-dir)
3476 #t))))
3477 (synopsis "Main game data for the Minetest game engine")
3478 (description
3479 "Game data for the Minetest infinite-world block sandbox game.")
3480 (home-page "https://www.minetest.net/")
3481 (license license:lgpl2.1+)))
3482
3483 (define-public minetest-mineclone
3484 (package
3485 (name "minetest-mineclone")
3486 (version "0.66.2")
3487 (source (origin
3488 (method git-fetch)
3489 (uri (git-reference
3490 (url "https://git.minetest.land/Wuzzy/MineClone2")
3491 (commit version)))
3492 (file-name (git-file-name name version))
3493 (sha256
3494 (base32
3495 "0miszzlzplpvaj0j1yii9867ydr42wsaqa9g6grxdrci75p05g00"))))
3496 (build-system copy-build-system)
3497 (arguments
3498 `(#:install-plan
3499 '(("." "share/minetest/games/mineclone"))))
3500 (synopsis "Minecraft clone based on Minetest engine")
3501 (description
3502 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3503 closely as the engine allows.")
3504 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3505 (license license:gpl3+)))
3506
3507 (define glkterm
3508 (package
3509 (name "glkterm")
3510 (version "1.0.4")
3511 (source
3512 (origin
3513 (method url-fetch)
3514 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3515 "glk/implementations/glkterm-104.tar.gz"))
3516 (sha256
3517 (base32
3518 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3519 (build-system gnu-build-system)
3520 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3521 (arguments
3522 '(#:tests? #f ; no check target
3523 #:phases
3524 (modify-phases %standard-phases
3525 (replace 'install
3526 (lambda* (#:key outputs #:allow-other-keys)
3527 (let* ((out (assoc-ref outputs "out"))
3528 (inc (string-append out "/include"))
3529 (lib (string-append out "/lib")))
3530 (for-each
3531 (lambda (file)
3532 (install-file file inc))
3533 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3534 (install-file "libglkterm.a" lib))
3535 #t))
3536 (delete 'configure)))) ; no configure script
3537 (home-page "http://www.eblong.com/zarf/glk/")
3538 (synopsis "Curses Implementation of the Glk API")
3539 (description
3540 "Glk defines a portable API for applications with text UIs. It was
3541 primarily designed for interactive fiction, but it should be suitable for many
3542 interactive text utilities, particularly those based on a command line.
3543 This is an implementation of the Glk library which runs in a terminal window,
3544 using the @code{curses.h} library for screen control.")
3545 (license (license:fsf-free "file://README"))))
3546
3547 (define-public glulxe
3548 (package
3549 (name "glulxe")
3550 (version "0.5.4")
3551 (source
3552 (origin
3553 (method url-fetch)
3554 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3555 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3556 (sha256
3557 (base32
3558 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3559 (build-system gnu-build-system)
3560 (inputs `(("glk" ,glkterm)))
3561 (arguments
3562 '(#:tests? #f ; no check target
3563 #:make-flags
3564 (let* ((glk (assoc-ref %build-inputs "glk")))
3565 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3566 (string-append "GLKLIBDIR=" glk "/lib")
3567 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3568 #:phases
3569 (modify-phases %standard-phases
3570 (replace 'install
3571 (lambda* (#:key outputs #:allow-other-keys)
3572 (let* ((out (assoc-ref outputs "out"))
3573 (bin (string-append out "/bin")))
3574 (install-file "glulxe" bin))
3575 #t))
3576 (delete 'configure)))) ; no configure script
3577 (home-page "https://www.eblong.com/zarf/glulx/")
3578 (synopsis "Interpreter for Glulx VM")
3579 (description
3580 "Glulx is a 32-bit portable virtual machine intended for writing and
3581 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3582 some of the restrictions in the venerable Z-machine format. This is the
3583 reference interpreter, using the Glk API.")
3584 (license license:expat)))
3585
3586 (define-public fifechan
3587 (package
3588 (name "fifechan")
3589 (version "0.1.5")
3590 (source (origin
3591 (method url-fetch)
3592 (uri (string-append "https://codeload.github.com/fifengine/"
3593 "fifechan/tar.gz/" version))
3594 (file-name (string-append name "-" version ".tar.gz"))
3595 (sha256
3596 (base32
3597 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3598 (build-system cmake-build-system)
3599 (inputs
3600 `(("sdl2" ,sdl2)
3601 ("sdl2-image" ,sdl2-image)
3602 ("mesa" ,mesa)))
3603 (arguments
3604 '(#:tests? #f)) ; No included tests
3605 (home-page "https://fifengine.github.io/fifechan/")
3606 (synopsis "Cross platform GUI library specifically for games")
3607 (description
3608 "Fifechan is a lightweight cross platform GUI library written in C++
3609 specifically designed for games. It has a built in set of extendable GUI
3610 Widgets, and allows users to create more.")
3611 (license license:lgpl2.1+)))
3612
3613 (define-public fifengine
3614 (package
3615 (name "fifengine")
3616 (version "0.4.2")
3617 (source (origin
3618 (method url-fetch)
3619 (uri (string-append "https://codeload.github.com/fifengine/"
3620 "fifengine/tar.gz/" version))
3621 (file-name (string-append name "-" version ".tar.gz"))
3622 (patches (search-patches "fifengine-swig-compat.patch"))
3623 (sha256
3624 (base32
3625 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3626 (build-system cmake-build-system)
3627 (arguments
3628 `(#:tests? #f ; TODO The test running fails to run some tests.
3629 #:modules ((srfi srfi-1)
3630 (guix build cmake-build-system)
3631 (guix build utils))
3632 #:configure-flags
3633 (list
3634 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3635 (assoc-ref %build-inputs "openal")
3636 "/include/AL")
3637 (string-append "-DPYTHON_SITE_PACKAGES="
3638 (assoc-ref %outputs "out")
3639 "/lib/python"
3640 ,(version-major+minor (package-version python))
3641 "/site-packages"))
3642 #:phases
3643 (modify-phases %standard-phases
3644 (add-after 'unpack 'patch-run_tests.py
3645 (lambda _
3646 ;; Patch the test runner to exit with a status of 1 if any test
3647 ;; fails, to allow detecting failures.
3648 (substitute* "run_tests.py"
3649 (("ERROR\\. One or more tests failed!'\\)")
3650 "ERROR. One or more tests failed!')
3651 \t\texit(1)"))
3652 #t))
3653 ;; Run tests after installation so that we can make use of the built
3654 ;; python modules.
3655 (delete 'check)
3656 (add-after 'install 'check
3657 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3658 (define python-version
3659 (let* ((version (last (string-split
3660 (assoc-ref inputs "python")
3661 #\-)))
3662 (components (string-split version #\.))
3663 (major+minor (take components 2)))
3664 (string-join major+minor ".")))
3665
3666 (when tests?
3667 ;; Set PYTHONPATH so that python finds the installed modules.
3668 (setenv "PYTHONPATH"
3669 (string-append (getenv "PYTHONPATH") ":"
3670 (assoc-ref outputs "out")
3671 "/lib/python"
3672 python-version
3673 "/site-packages"))
3674 ;; The tests require an X server.
3675 (system "Xvfb :1 &")
3676 (setenv "DISPLAY" ":1")
3677 (setenv "XDG_RUNTIME_DIR" "/tmp")
3678 ;; Run tests
3679 (chdir ,(string-append "../" name "-" version))
3680 (invoke "python3" "run_tests.py" "-a"))
3681 #t)))))
3682 (inputs
3683 `(("sdl2" ,sdl2)
3684 ("sdl2-image" ,sdl2-image)
3685 ("sdl2-ttf" ,sdl2-ttf)
3686 ("tinyxml" ,tinyxml)
3687 ("openal" ,openal)
3688 ("libogg" ,libogg)
3689 ("glew" ,glew)
3690 ("libvorbis" ,libvorbis)
3691 ("boost" ,boost)
3692 ("fifechan" ,fifechan)
3693 ("swig" ,swig)
3694 ("python" ,python)))
3695 (native-inputs
3696 `(("python" ,python)
3697 ("swig" ,swig)
3698 ("xvfb" ,xorg-server)))
3699 (propagated-inputs
3700 `(("python-future" ,python-future)))
3701 (home-page "https://www.fifengine.net/")
3702 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3703 (description
3704 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3705 isometric game engine. Python bindings are included allowing users to create
3706 games using Python as well as C++.")
3707 (license license:lgpl2.1+)))
3708
3709 (define-public fizmo
3710 (package
3711 (name "fizmo")
3712 (version "0.8.5")
3713 (source (origin
3714 (method url-fetch)
3715 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3716 "fizmo-" version ".tar.gz"))
3717 (sha256
3718 (base32
3719 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3720 (build-system gnu-build-system)
3721 (arguments
3722 '(#:configure-flags
3723 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3724 (ncurses (assoc-ref %build-inputs "ncurses")))
3725 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3726 (native-inputs
3727 `(("pkg-config" ,pkg-config)))
3728 (inputs
3729 `(("freetype" ,freetype)
3730 ("libjpeg" ,libjpeg-turbo)
3731 ("libpng" ,libpng)
3732 ("libsndfile" ,libsndfile)
3733 ("libxml2" ,libxml2)
3734 ("ncurses" ,ncurses)
3735 ("sdl2" ,sdl2)))
3736 (home-page "https://fizmo.spellbreaker.org/")
3737 (synopsis "Z-machine interpreter")
3738 (description
3739 "Fizmo is a console-based Z-machine interpreter. It is used to play
3740 interactive fiction, also known as text adventures, which were implemented
3741 either by Infocom or created using the Inform compiler.")
3742 (license license:bsd-3)))
3743
3744 (define-public gnugo
3745 (package
3746 (name "gnugo")
3747 (version "3.8")
3748 (source (origin
3749 (method url-fetch)
3750 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3751 ".tar.gz"))
3752 (sha256
3753 (base32
3754 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3755 (build-system gnu-build-system)
3756 (inputs `(("readline" ,readline)))
3757 (synopsis "Play the game of Go")
3758 (description
3759 "GNU Go is a program that plays the game of Go, in which players
3760 place stones on a grid to form territory or capture other stones. While
3761 it can be played directly from the terminal, rendered in ASCII characters,
3762 it is also possible to play GNU Go with 3rd party graphical interfaces or
3763 even in Emacs. It supports the standard game storage format (SGF, Smart
3764 Game Format) and inter-process communication format (GMP, Go Modem
3765 Protocol).")
3766 (home-page "https://www.gnu.org/software/gnugo/")
3767 (license license:gpl3+)))
3768
3769 (define-public extremetuxracer
3770 (package
3771 (name "extremetuxracer")
3772 (version "0.8.0")
3773 (source (origin
3774 (method url-fetch)
3775 (uri (string-append
3776 "mirror://sourceforge/extremetuxracer/releases/"
3777 version "/etr-" version ".tar.xz"))
3778 (sha256
3779 (base32
3780 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3781 (build-system gnu-build-system)
3782 (native-inputs
3783 `(("pkg-config" ,pkg-config)))
3784 (inputs
3785 `(("glu" ,glu)
3786 ("sfml" ,sfml)))
3787 (synopsis "High-speed arctic racing game based on Tux Racer")
3788 ;; Snarfed straight from Debian.
3789 (description "Extreme Tux Racer, or etracer as it is called for short, is
3790 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3791 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3792 avoiding the trees and rocks that will slow you down.
3793
3794 Collect herrings and other goodies while sliding down the hill, but avoid fish
3795 bones.
3796
3797 This game is based on the GPL version of the famous game TuxRacer.")
3798 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3799 (license license:gpl2+)))
3800
3801 (define-public supertuxkart
3802 (package
3803 (name "supertuxkart")
3804 (version "1.2")
3805 (source
3806 (origin
3807 (method url-fetch)
3808 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3809 version "/SuperTuxKart-" version "-src.tar.xz"))
3810 (sha256
3811 (base32
3812 "0dvx56hmy6wdhl7m9dw8zc1n3jqfp05gnxl6zs1rbfdyzl5dybh5"))
3813 (modules '((guix build utils)))
3814 (snippet
3815 ;; Delete bundled library sources
3816 '(begin
3817 ;; Supertuxkart uses modified versions of the Irrlicht engine
3818 ;; and the bullet library. The developers gave an explanation
3819 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3820 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3821 (for-each delete-file-recursively
3822 '("lib/glew"
3823 "lib/wiiuse"
3824 "lib/enet"))
3825 #t))))
3826 (build-system cmake-build-system)
3827 (arguments
3828 `(#:tests? #f ; no check target
3829 #:configure-flags
3830 (list "-DUSE_WIIUSE=0"
3831 "-DUSE_SYSTEM_GLEW=TRUE"
3832 "-DUSE_SYSTEM_ENET=TRUE"
3833 ;; In order to use the system ENet library, IPv6 support (added in
3834 ;; SuperTuxKart version 1.1) must be disabled.
3835 "-DUSE_IPV6=FALSE"
3836 ;; FIXME: needs libopenglrecorder
3837 "-DBUILD_RECORDER=0")))
3838 (inputs
3839 `(("curl" ,curl)
3840 ("freetype" ,freetype)
3841 ("fribidi" ,fribidi)
3842 ("glew" ,glew)
3843 ("harfbuzz" ,harfbuzz)
3844 ("libvorbis" ,libvorbis)
3845 ("libx11" ,libx11)
3846 ("libxrandr" ,libxrandr)
3847 ("mesa" ,mesa)
3848 ("openal" ,openal)
3849 ("sdl2" ,sdl2)
3850 ("zlib" ,zlib)
3851 ;; The following input is needed to build the bundled and modified
3852 ;; version of irrlicht.
3853 ("enet" ,enet)
3854 ("libjpeg" ,libjpeg-turbo)
3855 ("openssl" ,openssl)))
3856 (native-inputs
3857 `(("pkg-config" ,pkg-config)))
3858 (home-page "https://supertuxkart.net/Main_Page")
3859 (synopsis "3D kart racing game")
3860 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3861 having fun over realism. You can play with up to 4 friends on one PC, racing
3862 against each other or just trying to beat the computer; single-player mode is
3863 also available.")
3864 (license license:gpl3+)))
3865
3866 (define-public unknown-horizons
3867 (package
3868 (name "unknown-horizons")
3869 (version "2019.1")
3870 (source (origin
3871 (method url-fetch)
3872 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3873 "unknown-horizons/tar.gz/" version))
3874 (file-name (string-append name "-" version ".tar.gz"))
3875 (sha256
3876 (base32
3877 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
3878 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
3879 (build-system python-build-system)
3880 (arguments
3881 '(#:phases
3882 (modify-phases %standard-phases
3883 (add-before 'build 'set-HOME
3884 (lambda _
3885 (setenv "HOME" "/tmp")
3886 #t))
3887 (add-after 'build 'build-extra
3888 (lambda _
3889 (invoke "python3" "./setup.py" "build_i18n")
3890 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3891 #t))
3892 (add-after 'install 'patch
3893 (lambda* (#:key outputs #:allow-other-keys)
3894 (let ((out (assoc-ref outputs "out")))
3895 (substitute* (string-append out "/bin/unknown-horizons")
3896 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3897 (string-append "os.chdir(\""
3898 (assoc-ref outputs "out")
3899 "/share/unknown-horizons\")"))))
3900 #t))
3901 (add-before 'check 'fix-tests-with-pytest>=4
3902 (lambda _
3903 (substitute* "tests/conftest.py"
3904 (("pytest_namespace")
3905 "pytest_configure")
3906 (("get_marker")
3907 "get_closest_marker"))
3908 #t))
3909 ;; TODO: Run GUI tests as well
3910 (replace 'check
3911 (lambda _
3912 (substitute* "horizons/constants.py"
3913 (("IS_DEV_VERSION = False")
3914 "IS_DEV_VERSION = True"))
3915 (invoke "pytest" "tests")
3916 (substitute* "horizons/constants.py"
3917 (("IS_DEV_VERSION = True")
3918 "IS_DEV_VERSION = False"))
3919 #t)))))
3920 (inputs
3921 `(("fifengine" ,fifengine)
3922 ("python:tk" ,python "tk")
3923 ("python-pillow" ,python-pillow)
3924 ("python-pyyaml" ,python-pyyaml)))
3925 (native-inputs
3926 `(("intltool" ,intltool)
3927 ("python-distro" ,python-distro)
3928
3929 ;; Required for tests
3930 ("python-greenlet" ,python-greenlet)
3931 ("python-polib" ,python-polib)
3932 ("python-pytest" ,python-pytest)
3933 ("python-pytest-mock" ,python-pytest-mock)))
3934 (home-page "http://unknown-horizons.org/")
3935 (synopsis "Isometric realtime strategy, economy and city building simulation")
3936 (description
3937 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
3938 on economy and city building. Expand your small settlement to a strong and
3939 wealthy colony, collect taxes and supply your inhabitants with valuable
3940 goods. Increase your power with a well balanced economy and with strategic
3941 trade and diplomacy.")
3942 (license (list
3943 license:gpl2+ ; Covers code
3944 license:expat ; tests/dummy.py, ext/polib.py
3945 license:cc-by-sa3.0 ; Covers some media content
3946 license:cc-by3.0 ; Covers some media content
3947 license:bsd-3)))) ; horizons/ext/speaklater.py
3948
3949 (define-public gnujump
3950 (package
3951 (name "gnujump")
3952 (version "1.0.8")
3953 (source (origin
3954 (method url-fetch)
3955 (uri (string-append "mirror://gnu/gnujump/gnujump-"
3956 version ".tar.gz"))
3957 (sha256
3958 (base32
3959 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
3960 (build-system gnu-build-system)
3961 (arguments
3962 '(#:phases
3963 (modify-phases %standard-phases
3964 (add-before
3965 'configure 'link-libm
3966 (lambda _ (setenv "LIBS" "-lm")))
3967 (add-after 'install 'create-desktop-entry
3968 (lambda* (#:key outputs #:allow-other-keys)
3969 (let* ((out (assoc-ref outputs "out"))
3970 (apps (string-append out "/share/applications")))
3971 (mkdir-p apps)
3972 (with-output-to-file
3973 (string-append apps "/gnujump.desktop")
3974 (lambda _
3975 (format #t
3976 "[Desktop Entry]~@
3977 Name=GNUjump~@
3978 Comment=Jump up the tower to survive~@
3979 Exec=~a/bin/gnujump~@
3980 Terminal=false~@
3981 Type=Application~@
3982 Categories=Game;ArcadeGame~%"
3983 out)))))))))
3984 (inputs
3985 `(("glu" ,glu)
3986 ("mesa" ,mesa)
3987 ("sdl" ,sdl)
3988 ("sdl-image" ,sdl-image)
3989 ("sdl-mixer" ,sdl-mixer)))
3990 (home-page "http://gnujump.es.gnu.org/")
3991 (synopsis
3992 "Game of jumping to the next floor, trying not to fall")
3993 (description
3994 "GNUjump is a simple, yet addictive game in which you must jump from
3995 platform to platform to avoid falling, while the platforms drop at faster rates
3996 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
3997 falling, themeable graphics and sounds, and replays.")
3998 (license license:gpl3+)))
3999
4000 (define-public wesnoth
4001 (package
4002 (name "wesnoth")
4003 (version "1.14.15")
4004 (source (origin
4005 (method url-fetch)
4006 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
4007 (version-major+minor version)
4008 "/wesnoth-" version "/"
4009 "wesnoth-" version ".tar.bz2"))
4010 (sha256
4011 (base32
4012 "05iapxj3nzaqh10y42yq1jf7spxgm4iwjw4qj1c4lnb25xp4mc2h"))))
4013 (build-system cmake-build-system)
4014 (arguments
4015 `(#:tests? #f)) ;no check target
4016 (native-inputs
4017 `(("gettext" ,gettext-minimal)
4018 ("pkg-config" ,pkg-config)))
4019 (inputs
4020 `(("boost" ,boost)
4021 ("dbus" ,dbus)
4022 ("fribidi" ,fribidi)
4023 ("libvorbis" ,libvorbis)
4024 ("openssl" ,openssl)
4025 ("pango" ,pango)
4026 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
4027 (home-page "https://www.wesnoth.org/")
4028 (synopsis "Turn-based strategy game")
4029 (description
4030 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
4031 with several single player campaigns, and multiplayer games (both networked and
4032 local).
4033
4034 Battle for control on a range of maps, using variety of units which have
4035 advantages and disadvantages against different types of attacks. Units gain
4036 experience and advance levels, and are carried over from one scenario to the
4037 next campaign.")
4038 (license license:gpl2+)))
4039
4040 (define-public wesnoth-server
4041 (package
4042 (inherit wesnoth)
4043 (name "wesnoth-server")
4044 (inputs
4045 `(("boost" ,boost)
4046 ("icu4c" ,icu4c)
4047 ("openssl" ,openssl)
4048 ("sdl2" ,sdl2)))
4049 (arguments
4050 `(#:configure-flags '("-DENABLE_GAME=OFF")
4051 ,@(package-arguments wesnoth)))
4052 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
4053 (description "This package contains a dedicated server for @emph{The
4054 Battle for Wesnoth}.")))
4055
4056 (define-public gamine
4057 (package
4058 (name "gamine")
4059 (version "1.6")
4060 (source (origin
4061 (method url-fetch)
4062 (uri (string-append "mirror://sourceforge/gamine-game/"
4063 "gamine-" version ".tar.gz"))
4064 (sha256
4065 (base32
4066 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
4067 (build-system gnu-build-system)
4068 (native-inputs
4069 `(("pkg-config" ,pkg-config)
4070 ("intltool" ,intltool)))
4071 (inputs
4072 `(("gstreamer" ,gstreamer)
4073 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
4074 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
4075 ("gtk+" ,gtk+)))
4076 (arguments
4077 `(#:tests? #f
4078 #:make-flags
4079 (let ((out (assoc-ref %outputs "out")))
4080 (list (string-append "PREFIX=" out)
4081 (string-append "SYSCONFDIR=" out "/etc")))
4082 #:phases
4083 (modify-phases %standard-phases
4084 (delete 'configure)
4085 (add-after
4086 'install 'wrap-gamine
4087 (lambda* (#:key outputs #:allow-other-keys)
4088 (let ((out (assoc-ref outputs "out"))
4089 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4090 (wrap-program (string-append out "/bin/gamine")
4091 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4092 #t)))))
4093 (home-page "http://gamine-game.sourceforge.net/")
4094 (synopsis "Mouse and keyboard discovery for children")
4095 (description
4096 "Gamine is a game designed for young children who are learning to use the
4097 mouse and keyboard. The child uses the mouse to draw colored dots and lines
4098 on the screen and keyboard to display letters.")
4099 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
4100 (license license:gpl3)))
4101
4102 (define-public manaplus
4103 (package
4104 (name "manaplus")
4105 (version "1.9.3.23")
4106 (source (origin
4107 (method url-fetch)
4108 (uri (string-append
4109 "https://repo.manaplus.org/manaplus/download/"
4110 version "/manaplus-" version ".tar.xz"))
4111 (sha256
4112 (base32
4113 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
4114 (build-system gnu-build-system)
4115 (arguments
4116 '(#:configure-flags
4117 (list (string-append "CPPFLAGS=-I"
4118 (assoc-ref %build-inputs "sdl-union")
4119 "/include/SDL"))))
4120 (native-inputs
4121 `(("pkg-config" ,pkg-config)))
4122 (inputs
4123 `(("glu" ,glu)
4124 ("curl" ,curl)
4125 ("libxml2" ,libxml2)
4126 ("mesa" ,mesa)
4127 ("sdl-union" ,(sdl-union))))
4128 (home-page "https://manaplus.org")
4129 (synopsis "Client for 'The Mana World' and similar games")
4130 (description
4131 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4132 fully supported client for @uref{http://www.themanaworld.org, The mana
4133 world}, @uref{http://evolonline.org, Evol Online} and
4134 @uref{http://landoffire.org, Land of fire}.")
4135 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4136 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4137 ;; The rest is under GPL2+.
4138 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4139
4140 (define openttd-engine
4141 (package
4142 (name "openttd-engine")
4143 (version "1.10.3")
4144 (source
4145 (origin (method url-fetch)
4146 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4147 version "/openttd-" version "-source.tar.xz"))
4148 (sha256
4149 (base32
4150 "0fxmfz1mm95a2x0rnzfff9wb8q57w0cvsdd0z7agdcbyakph25n1"))))
4151 (build-system gnu-build-system)
4152 (arguments
4153 `(#:tests? #f ; no "check" target
4154 #:phases
4155 (modify-phases %standard-phases
4156 ;; The build process fails if the configure script is passed the
4157 ;; option "--enable-fast-install".
4158 (replace 'configure
4159 (lambda* (#:key inputs outputs (configure-flags '())
4160 #:allow-other-keys)
4161 (let ((out (assoc-ref outputs "out"))
4162 (lzo (assoc-ref inputs "lzo")))
4163 (apply invoke "./configure"
4164 (string-append "--prefix=" out)
4165 ;; Provide the "lzo" path.
4166 (string-append "--with-liblzo2="
4167 lzo "/lib/liblzo2.a")
4168 ;; Put the binary in 'bin' instead of 'games'.
4169 "--binary-dir=bin"
4170 configure-flags)))))))
4171 (native-inputs `(("pkg-config" ,pkg-config)))
4172 (inputs
4173 `(("allegro" ,allegro)
4174 ("fontconfig" ,fontconfig)
4175 ("freetype" ,freetype)
4176 ("icu4c" ,icu4c)
4177 ("libpng" ,libpng)
4178 ("lzo" ,lzo)
4179 ("sdl" ,sdl)
4180 ("xz" ,xz)
4181 ("zlib" ,zlib)))
4182 (synopsis "Transportation economics simulator game")
4183 (description "OpenTTD is a game in which you transport goods and
4184 passengers by land, water and air. It is a re-implementation of Transport
4185 Tycoon Deluxe with many enhancements including multiplayer mode,
4186 internationalization support, conditional orders and the ability to clone,
4187 autoreplace and autoupdate vehicles. This package only includes the game
4188 engine. When you start it you will be prompted to download a graphics set.")
4189 (home-page "https://www.openttd.org/")
4190 ;; This package is GPLv2, except for a few files located in
4191 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4192 ;; licenses. In addition, this software contains an in-game downloader
4193 ;; from which the user may find non-functional data licensed under
4194 ;; different terms.
4195 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4196
4197 (define openttd-opengfx
4198 (package
4199 (name "openttd-opengfx")
4200 (version "0.6.0")
4201 (source
4202 (origin
4203 (method url-fetch)
4204 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4205 version "/opengfx-" version "-source.tar.xz"))
4206 (sha256
4207 (base32
4208 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
4209 (build-system gnu-build-system)
4210 (arguments
4211 '(#:make-flags (list "CC=gcc"
4212 (string-append "INSTALL_DIR="
4213 (assoc-ref %outputs "out")
4214 "/share/games/openttd/baseset/opengfx"))
4215 #:phases
4216 (modify-phases %standard-phases
4217 (replace 'configure
4218 (lambda _
4219 ;; Make sure HOME is writable for GIMP.
4220 (setenv "HOME" (getcwd))
4221
4222 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4223 ;; dos2unix from receiving its version information as a flag.
4224 (substitute* "Makefile"
4225 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4226 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4227 ;; The check phase for this package only checks the md5sums of the built
4228 ;; GRF files against the md5sums of the release versions. Because we use
4229 ;; different software versions than upstream does, some of the md5sums
4230 ;; are different. However, the package is still reproducible, it's safe
4231 ;; to disable this test.
4232 #:tests? #f
4233 #:parallel-build? #f))
4234 (native-inputs `(("dos2unix" ,dos2unix)
4235 ("gimp" ,gimp)
4236 ("grfcodec" ,grfcodec)
4237 ("nml" ,nml)
4238 ("which" ,which)
4239 ("python" ,python-2)))
4240 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4241 (synopsis "Base graphics set for OpenTTD")
4242 (description
4243 "The OpenGFX project is an implementation of the OpenTTD base graphics
4244 set that aims to ensure the best possible out-of-the-box experience.
4245
4246 OpenGFX provides you with...
4247 @enumerate
4248 @item All graphics you need to enjoy OpenTTD.
4249 @item Uniquely drawn rail vehicles for every climate.
4250 @item Completely snow-aware rivers.
4251 @item Different river and sea water.
4252 @item Snow-aware buoys.
4253 @end enumerate")
4254 (license license:gpl2)))
4255
4256 (define openttd-opensfx
4257 (package
4258 (name "openttd-opensfx")
4259 (version "0.2.3")
4260 (source
4261 (origin
4262 (method url-fetch)
4263 (uri (string-append
4264 "https://binaries.openttd.org/extra/opensfx/"
4265 version "/opensfx-" version "-source.tar.gz"))
4266 (sha256
4267 (base32
4268 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
4269 (build-system gnu-build-system)
4270 (native-inputs
4271 `(("catcodec" ,catcodec)
4272 ("python" ,python-2)))
4273 (arguments
4274 `(#:make-flags
4275 (list (string-append "INSTALL_DIR=" %output
4276 "/share/games/openttd/baseset/opensfx"))
4277 #:phases
4278 (modify-phases %standard-phases
4279 (add-after 'unpack 'make-reproducible
4280 (lambda _
4281 ;; Remove the time dependency of the installed tarball by setting
4282 ;; the modification times if its members to 0.
4283 (substitute* "scripts/Makefile.def"
4284 (("-cf") " --mtime=@0 -cf"))
4285 #t))
4286 (delete 'configure))))
4287 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4288 (synopsis "Base sounds for OpenTTD")
4289 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4290 it possible to play OpenTTD without requiring the proprietary sound files from
4291 the original Transport Tycoon Deluxe.")
4292 (license license:cc-sampling-plus-1.0)))
4293
4294 (define openttd-openmsx
4295 (package
4296 (name "openttd-openmsx")
4297 (version "0.3.1")
4298 (source
4299 (origin
4300 (method url-fetch)
4301 (uri (string-append
4302 "https://binaries.openttd.org/extra/openmsx/"
4303 version "/openmsx-" version "-source.tar.gz"))
4304 (sha256
4305 (base32
4306 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
4307 (build-system gnu-build-system)
4308 (native-inputs
4309 `(("python" ,python-2)))
4310 (arguments
4311 `(#:make-flags
4312 (list (string-append "INSTALL_DIR=" %output
4313 "/share/games/openttd/baseset"))
4314 #:phases
4315 (modify-phases %standard-phases
4316 (delete 'configure)
4317 (add-after 'install 'post-install
4318 ;; Rename openmsx-version to openmsx
4319 (lambda* (#:key outputs #:allow-other-keys)
4320 (let ((install-directory (string-append (assoc-ref outputs "out")
4321 "/share/games/openttd/baseset")))
4322 (rename-file (string-append install-directory "/openmsx-" ,version)
4323 (string-append install-directory "/openmsx"))
4324 #t))))))
4325 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4326 (synopsis "Music set for OpenTTD")
4327 (description "OpenMSX is a music set for OpenTTD which makes it possible
4328 to play OpenTTD without requiring the proprietary music from the original
4329 Transport Tycoon Deluxe.")
4330 (license license:gpl2)))
4331
4332 (define-public openttd
4333 (package
4334 (inherit openttd-engine)
4335 (name "openttd")
4336 (arguments
4337 `(#:configure-flags
4338 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4339 "/bin/timidity"))
4340 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4341 ((#:phases phases)
4342 `(modify-phases ,phases
4343 (add-after 'install 'install-data
4344 (lambda* (#:key inputs outputs #:allow-other-keys)
4345 (for-each
4346 (lambda (input)
4347 (copy-recursively (assoc-ref inputs input)
4348 (assoc-ref outputs "out")))
4349 (list "opengfx" "openmsx" "opensfx"))
4350 #t)))))))
4351 (inputs
4352 `(("timidity++" ,timidity++)
4353 ,@(package-inputs openttd-engine)))
4354 (native-inputs
4355 `(("opengfx" ,openttd-opengfx)
4356 ("openmsx" ,openttd-openmsx)
4357 ("opensfx" ,openttd-opensfx)
4358 ,@(package-native-inputs openttd-engine)))))
4359
4360 (define openrct2-title-sequences
4361 (package
4362 (name "openrct2-title-sequences")
4363 (version "0.1.2")
4364 (source
4365 (origin
4366 (method url-fetch)
4367 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4368 version "/title-sequence-v" version ".zip"))
4369 (file-name (string-append name "-" version ".zip"))
4370 (sha256
4371 (base32
4372 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4373 (build-system trivial-build-system)
4374 (native-inputs
4375 `(("bash" ,bash)
4376 ("coreutils" ,coreutils)
4377 ("unzip" ,unzip)))
4378 (arguments
4379 `(#:modules ((guix build utils))
4380 #:builder
4381 (begin
4382 (use-modules (guix build utils))
4383 (let* ((out (assoc-ref %outputs "out"))
4384 (openrct2-title-sequences (string-append out
4385 "/share/openrct2/title-sequences"))
4386 (source (assoc-ref %build-inputs "source"))
4387 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4388 (copy-file source (string-append ,name "-" ,version ".zip"))
4389 (invoke unzip (string-append ,name "-" ,version ".zip"))
4390 (delete-file (string-append ,name "-" ,version ".zip"))
4391 (mkdir-p openrct2-title-sequences)
4392 (copy-recursively "."
4393 openrct2-title-sequences)
4394 #t))))
4395 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4396 (synopsis "Title sequences for OpenRCT2")
4397 (description
4398 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4399 (license license:gpl3+)))
4400
4401 (define openrct2-objects
4402 (package
4403 (name "openrct2-objects")
4404 (version "1.0.20")
4405 (source
4406 (origin
4407 (method url-fetch)
4408 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4409 version "/objects.zip"))
4410 (file-name (string-append name "-" version ".zip"))
4411 (sha256
4412 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4413 (build-system trivial-build-system)
4414 (native-inputs
4415 `(("bash" ,bash)
4416 ("coreutils" ,coreutils)
4417 ("unzip" ,unzip)))
4418 (arguments
4419 `(#:modules ((guix build utils))
4420 #:builder
4421 (begin
4422 (use-modules (guix build utils))
4423 (let* ((out (assoc-ref %outputs "out"))
4424 (openrct2-objects (string-append out
4425 "/share/openrct2/objects"))
4426 (source (assoc-ref %build-inputs "source"))
4427 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4428 (copy-file source (string-append ,name "-" ,version ".zip"))
4429 (invoke unzip (string-append ,name "-" ,version ".zip"))
4430 (delete-file (string-append ,name "-" ,version ".zip"))
4431 (mkdir-p openrct2-objects)
4432 (copy-recursively "."
4433 openrct2-objects)
4434 #t))))
4435 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4436 (synopsis "Objects for OpenRCT2")
4437 (description
4438 "openrct2-objects is a set of objects for OpenRCT2.")
4439 (license license:gpl3+)))
4440
4441 (define-public openrct2
4442 (package
4443 (name "openrct2")
4444 (version "0.3.2")
4445 (source
4446 (origin
4447 (method git-fetch)
4448 (uri (git-reference
4449 (url "https://github.com/OpenRCT2/OpenRCT2")
4450 (commit (string-append "v" version))))
4451 (file-name (git-file-name name version))
4452 (sha256
4453 (base32 "1fd32wniiy6qz2046ppqfj2sb3rf2qf086rf9v1bdhyj254d0b1z"))))
4454 (build-system cmake-build-system)
4455 (arguments
4456 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4457 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4458 #:tests? #f ; tests require network access
4459 #:phases
4460 (modify-phases %standard-phases
4461 (add-after 'unpack 'fix-usr-share-paths&add-data
4462 (lambda* (#:key inputs outputs #:allow-other-keys)
4463 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4464 (objects (assoc-ref inputs "openrct2-objects")))
4465 ;; Fix some references to /usr/share.
4466 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4467 (("/usr/share")
4468 (string-append (assoc-ref %outputs "out") "/share")))
4469 (copy-recursively
4470 (string-append titles "/share/openrct2/title-sequences")
4471 "data/title")
4472 (copy-recursively
4473 (string-append objects "/share/openrct2/objects")
4474 "data/object"))))
4475 (add-before 'configure 'get-rid-of-errors
4476 (lambda _
4477 ;; Don't treat warnings as errors.
4478 (substitute* "CMakeLists.txt"
4479 (("-Werror") ""))
4480 #t)))))
4481 (inputs `(("curl" ,curl)
4482 ("duktape" ,duktape)
4483 ("fontconfig" ,fontconfig)
4484 ("freetype" ,freetype)
4485 ("icu4c" ,icu4c)
4486 ("jansson" ,jansson)
4487 ("libpng" ,libpng)
4488 ("libzip" ,libzip)
4489 ("mesa" ,mesa)
4490 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4491 ("openrct2-objects" ,openrct2-objects)
4492 ("openrct2-title-sequences" ,openrct2-title-sequences)
4493 ("openssl" ,openssl)
4494 ("sdl2" ,sdl2)
4495 ("speexdsp" ,speexdsp)
4496 ("zlib" ,zlib)))
4497 (native-inputs
4498 `(("pkg-config" ,pkg-config)))
4499 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4500 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4501 (description "OpenRCT2 is a free software re-implementation of
4502 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4503 maintaining an amusement park containing attractions, shops and facilities.
4504
4505 Note that this package does @emph{not} provide the game assets (sounds,
4506 images, etc.)")
4507 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4508 ;; regarding assets.
4509 (license license:gpl3+)))
4510
4511 (define-public pinball
4512 (package
4513 (name "pinball")
4514 (version "0.3.1")
4515 (source
4516 (origin (method url-fetch)
4517 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4518 "pinball-" version "/"
4519 "pinball-" version ".tar.gz"))
4520 (sha256
4521 (base32
4522 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4523 (patches (search-patches "pinball-const-fix.patch"
4524 "pinball-cstddef.patch"
4525 "pinball-missing-separators.patch"
4526 "pinball-src-deps.patch"
4527 "pinball-system-ltdl.patch"))))
4528 (build-system gnu-build-system)
4529 (inputs
4530 `(("glu" ,glu)
4531 ("mesa" ,mesa)
4532 ("sdl" ,sdl)
4533 ("sdl-image" ,sdl-image)
4534 ("sdl-mixer" ,sdl-mixer)))
4535 (arguments
4536 '(#:configure-flags
4537 (list (string-append "CPPFLAGS=-I"
4538 (assoc-ref %build-inputs "sdl-image")
4539 "/include/SDL -I"
4540 (assoc-ref %build-inputs "sdl-mixer")
4541 "/include/SDL"))))
4542 (home-page "http://pinball.sourceforge.net")
4543 (synopsis "Pinball simulator")
4544 (description "The Emilia Pinball Project is a pinball simulator. There
4545 are only two levels to play with, but they are very addictive.")
4546 (license license:gpl2)))
4547
4548 (define-public pioneers
4549 (package
4550 (name "pioneers")
4551 (version "15.6")
4552 (source (origin
4553 (method url-fetch)
4554 (uri (string-append "https://downloads.sourceforge.net/pio/"
4555 "pioneers-" version ".tar.gz"))
4556 (sha256
4557 (base32
4558 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4559 (build-system gnu-build-system)
4560 (inputs `(("avahi" ,avahi)
4561 ("gtk+" ,gtk+)
4562 ("librsvg" ,librsvg)))
4563 (native-inputs `(("intltool" ,intltool)
4564 ("itstool" ,itstool)
4565 ("libxml2" ,libxml2)
4566 ("pkg-config" ,pkg-config)))
4567 (synopsis "Board game inspired by The Settlers of Catan")
4568 (description "Pioneers is an emulation of the board game The Settlers of
4569 Catan. It can be played on a local network, on the internet, and with AI
4570 players.")
4571 (home-page "http://pio.sourceforge.net/")
4572 (license license:gpl2+)))
4573
4574 (define-public einstein
4575 (package
4576 (name "einstein")
4577 (version "2.0")
4578 (source (origin
4579 (method url-fetch)
4580 (uri (string-append "mirror://debian/pool/main/e/"
4581 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4582 (sha256
4583 (base32
4584 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4585 (patches (search-patches "einstein-build.patch"))))
4586 (build-system gnu-build-system)
4587 (inputs
4588 `(("freetype" ,freetype)
4589 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4590 ("zlib" ,zlib)))
4591 (native-inputs
4592 `(("font-dejavu" ,font-dejavu)))
4593 (arguments
4594 `(#:tests? #f ; no check target
4595 #:phases
4596 (modify-phases %standard-phases
4597 (replace 'configure
4598 (lambda* (#:key outputs inputs #:allow-other-keys)
4599 (let ((out (assoc-ref outputs "out"))
4600 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4601 "/share/fonts/truetype/DejaVuSans.ttf")))
4602 (substitute* "Makefile"
4603 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4604 ;; The patch above registers a free font for use by the binary,
4605 ;; but the font is copied during the compile phase into a
4606 ;; resources file, so we need to make the ttf file available.
4607 (symlink dejavu "res/DejaVuSans.ttf")
4608 #t))))))
4609 (synopsis "Logic puzzle game")
4610 (description "The goal of this logic game is to open all cards in a 6x6
4611 grid, using a number of hints as to their relative position. The game idea
4612 is attributed to Albert Einstein.")
4613 ;; The original home page has disappeared.
4614 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4615 "http://games.flowix.com/en/index.html"))
4616 ;; License according to
4617 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4618 ;; The source code is a DFSG-sanitized tarball and does not contain any
4619 ;; license information.
4620 (license license:gpl3+)))
4621
4622 (define-public powwow
4623 (package
4624 (name "powwow")
4625 (version "1.2.22")
4626 (source (origin
4627 (method url-fetch)
4628 (uri (string-append
4629 "https://www.hoopajoo.net/static/projects/powwow-"
4630 version ".tar.gz"))
4631 (sha256
4632 (base32
4633 "12i11b8zxg8vdb9d6ims8qy2lmwwr42rcqbwq3vsa1x94s51bcbp"))))
4634 (inputs
4635 `(("ncurses" ,ncurses)))
4636 (build-system gnu-build-system)
4637 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4638 (synopsis "MUD and telnet client")
4639 (description
4640 "POWWOW is a client software which can be used for telnet as well as for
4641 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4642 the chat server psyced with the specific config located at
4643 http://lavachat.symlynx.com/unix/")
4644 (license license:gpl2+)))
4645
4646 (define-public red-eclipse
4647 (let ((release "2.0.0")
4648 (revision 0))
4649 (package
4650 (name "red-eclipse")
4651 (version (if (zero? revision)
4652 release
4653 (string-append release "-"
4654 (number->string revision))))
4655 (source
4656 (origin
4657 (method git-fetch)
4658 (uri (git-reference
4659 (url "https://github.com/redeclipse/base")
4660 (commit (string-append "v" release))
4661 (recursive? #t))) ; for game data
4662 (file-name (git-file-name name version))
4663 (sha256
4664 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4665 (modules '((guix build utils)))
4666 (snippet
4667 ;; Remove proprietary libraries and other pre-compiled binaries.
4668 '(begin
4669 (delete-file-recursively "bin")
4670 #t))))
4671 (build-system gnu-build-system)
4672 (arguments
4673 `(#:tests? #f ; no check target
4674 #:make-flags (list "CC=gcc" "-Csrc"
4675 (string-append "INSTDIR="
4676 (assoc-ref %outputs "out") "/bin")
4677 (string-append "prefix="
4678 (assoc-ref %outputs "out")))
4679 #:phases
4680 (modify-phases %standard-phases
4681 (add-after 'unpack 'add-store-data-package-path-as-default
4682 (lambda* (#:key outputs #:allow-other-keys)
4683 (substitute* "src/engine/server.cpp"
4684 (("data = \"data\"")
4685 (string-append "data = \""
4686 (assoc-ref outputs "out")
4687 "/share/redeclipse/data\"")))
4688 #t))
4689 (delete 'configure) ; no configure script
4690 (add-after 'set-paths 'set-sdl-paths
4691 (lambda* (#:key inputs #:allow-other-keys)
4692 (setenv "CPATH"
4693 (string-append (assoc-ref inputs "sdl-union")
4694 "/include/SDL2:"
4695 (or (getenv "CPATH") "")))
4696 #t))
4697 (add-after 'install 'copy-data
4698 (lambda* (#:key outputs #:allow-other-keys)
4699 (let ((out (assoc-ref outputs "out")))
4700 (copy-recursively "config"
4701 (string-append out "/config"))
4702 (copy-file "doc/examples/servinit.cfg"
4703 (string-append out "/config/servinit.cfg"))
4704 (copy-recursively "data"
4705 (string-append out "/share/redeclipse/data"))
4706 (mkdir-p (string-append out "/lib/redeclipse"))
4707 (symlink (string-append out "/share/redeclipse/data")
4708 (string-append out "/lib/redeclipse/data")))
4709 #t))
4710 (add-after 'copy-data 'wrap-program
4711 (lambda* (#:key inputs outputs #:allow-other-keys)
4712 (let* ((out (assoc-ref outputs "out"))
4713 (bin (string-append out "/bin")))
4714 (with-directory-excursion bin
4715 (rename-file "redeclipse_linux"
4716 ".redeclipse_linux-real")
4717 (rename-file "redeclipse_server_linux"
4718 ".redeclipse_server_linux-real")
4719 (call-with-output-file "redeclipse_linux"
4720 (lambda (port)
4721 (format port "#!~a/bin/sh
4722 # Run the thing from its home, otherwise it just bails out.
4723 cd \"~a\"
4724 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4725 (assoc-ref inputs "bash") ;implicit input
4726 (string-append out)
4727 (string-append bin))))
4728 (call-with-output-file "redeclipse_server_linux"
4729 (lambda (port)
4730 (format port "#!~a/bin/sh
4731 # Run the thing from its home, otherwise it just bails out.
4732 cd \"~a\"
4733 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4734 (assoc-ref inputs "bash") ;implicit input
4735 (string-append out)
4736 (string-append bin))))
4737 (chmod "redeclipse_linux" #o555)
4738 (chmod "redeclipse_server_linux" #o555)))
4739 #t)))))
4740 (native-inputs
4741 `(("pkg-config" ,pkg-config)))
4742 (inputs
4743 `(("curl" ,curl)
4744 ("freetype" ,freetype)
4745 ("glu" ,glu)
4746 ("sdl-union" ,(sdl-union (list sdl2
4747 sdl2-image
4748 sdl2-mixer)))))
4749 (home-page "https://redeclipse.net/")
4750 (synopsis "Arena shooter derived from the Cube 2 engine")
4751 (description
4752 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4753 Offering an innovative parkour system and distinct but all potent weapons,
4754 Red Eclipse provides fast paced and accessible gameplay.")
4755 ;; The engine is under Zlib; data files are covered by the other
4756 ;; licenses. More details at file:///doc/all-licenses.txt.
4757 (license (list license:expat
4758 license:zlib
4759 license:cc-by-sa4.0
4760 license:cc-by-sa3.0
4761 license:cc-by3.0
4762 license:cc0
4763 license:public-domain
4764 license:silofl1.1)))))
4765
4766 (define-public grue-hunter
4767 (package
4768 (name "grue-hunter")
4769 (version "1.0")
4770 (source (origin
4771 (method url-fetch)
4772 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4773 (sha256
4774 (base32
4775 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4776 (build-system trivial-build-system) ; no Makefile.PL
4777 (arguments `(#:modules ((guix build utils))
4778 #:builder
4779 (begin
4780 (use-modules (guix build utils))
4781 (use-modules (srfi srfi-1))
4782
4783 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4784 (perl (string-append (assoc-ref %build-inputs
4785 "perl")
4786 "/bin"))
4787 (gzip (string-append (assoc-ref %build-inputs
4788 "gzip")
4789 "/bin/gzip"))
4790 (tar (string-append (assoc-ref %build-inputs
4791 "tar")
4792 "/bin/tar"))
4793 (out (assoc-ref %outputs "out"))
4794 (bin (string-append out "/bin"))
4795 (doc (string-append out
4796 "/share/doc/grue-hunter")))
4797 (copy-file tarball "grue-hunter.tar.gz")
4798 (invoke gzip "-d" "grue-hunter.tar.gz")
4799 (invoke tar "xvf" "grue-hunter.tar")
4800
4801 (mkdir-p bin)
4802 (copy-file "grue-hunter/gh.pl"
4803 (string-append bin "/grue-hunter"))
4804 (patch-shebang (string-append bin "/grue-hunter")
4805 (list perl))
4806
4807 (install-file "grue-hunter/AGPLv3.txt" doc)
4808
4809 #t))))
4810 (inputs `(("perl" ,perl)
4811 ("tar" ,tar)
4812 ("gzip" ,gzip)
4813 ("tarball" ,source)))
4814 (home-page "https://jxself.org/grue-hunter.shtml")
4815 (synopsis "Text adventure game")
4816 (description
4817 "Grue Hunter is a text adventure game written in Perl. You must make
4818 your way through an underground cave system in search of the Grue. Can you
4819 capture it and get out alive?")
4820 (license license:agpl3+)))
4821
4822 (define-public lierolibre
4823 (package
4824 (name "lierolibre")
4825 (version "0.5")
4826 (source (origin
4827 (method url-fetch)
4828 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4829 version "/+download/lierolibre-"
4830 version ".tar.xz"))
4831 (sha256
4832 (base32
4833 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4834 (patches
4835 (search-patches "lierolibre-check-unaligned-access.patch"
4836 "lierolibre-try-building-other-arch.patch"
4837 "lierolibre-remove-arch-warning.patch"
4838 "lierolibre-newer-libconfig.patch"
4839 "lierolibre-is-free-software.patch"))
4840 (modules '((guix build utils)))
4841 (snippet
4842 '(begin
4843 ;; Delete pre-compiled files.
4844 (delete-file "data/LIERO.CHR")
4845 (delete-file "data/LIERO.SND")
4846 #t))))
4847 (build-system gnu-build-system)
4848 (native-inputs
4849 `(("imagemagick" ,imagemagick)
4850 ("pkg-config" ,pkg-config)
4851 ("util-linux" ,util-linux)
4852 ("sox" ,sox)))
4853 (inputs
4854 `(("boost" ,boost)
4855 ("libconfig" ,libconfig)
4856 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4857 ("zlib" ,zlib)))
4858 (home-page "https://gitlab.com/lierolibre/lierolibre")
4859 (synopsis "Old-school earthworm action game")
4860 (description
4861 "lierolibre is an earthworm action game where you fight another player
4862 (or the computer) underground using a wide array of weapons.
4863
4864 Features:
4865 @itemize
4866 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4867 and Game of Tag, plus AI-players without true intelligence!
4868 @item Dat nostalgia.
4869 @item Extensions via a hidden F1 menu:
4870 @itemize
4871 @item Replays
4872 @item Game controller support
4873 @item Powerlevel palettes
4874 @end itemize
4875 @item Ability to write game variables to plain text files.
4876 @item Ability to load game variables from both EXE and plain text files.
4877 @item Scripts to extract and repack graphics, sounds and levels.
4878 @end itemize
4879
4880 To switch between different window sizes, use F6, F7 and F8, to switch to
4881 fullscreen, use F5 or Alt+Enter.")
4882 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4883 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4884
4885 (define-public tennix
4886 (package
4887 (name "tennix")
4888 (version "1.3.1")
4889 (source
4890 (origin
4891 (method git-fetch)
4892 (uri (git-reference
4893 (url "https://repo.or.cz/tennix.git")
4894 (commit (string-append "tennix-" version))))
4895 (file-name (git-file-name name version))
4896 (sha256
4897 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4898 ;; Remove non-free images.
4899 (modules '((guix build utils)))
4900 (snippet
4901 '(begin
4902 (for-each delete-file
4903 '("data/loc_training_camp.png"
4904 "data/loc_austrian_open.png"
4905 "data/loc_olympic_green_tennis.png"))
4906 #t))))
4907 (build-system gnu-build-system)
4908 (arguments
4909 `(#:tests? #f ;no test
4910 #:phases
4911 (modify-phases %standard-phases
4912 (add-after 'unpack 'fix-include
4913 (lambda _
4914 (substitute* '("src/graphics.h" "src/sound.h")
4915 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
4916 (string-append "#include \"SDL/" header "\"")))
4917 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
4918 (("#include <SDL.h>") "#include <SDL/SDL.h>")
4919 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
4920 #t))
4921 (add-after 'unpack 'locate-install
4922 ;; Build process cannot expand "$(INSTALL)" in Makefile.
4923 (lambda _
4924 (substitute* "makefile"
4925 (("^CONFIGURE_OUTPUT :=.*" all)
4926 (string-append "INSTALL := install -c\n" all)))
4927 #t))
4928 (replace 'configure
4929 ;; The "configure" script is picky about the arguments it
4930 ;; gets. Call it ourselves.
4931 (lambda _
4932 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
4933 (native-inputs
4934 `(("which" ,which)))
4935 (inputs
4936 `(("python" ,python-wrapper)
4937 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
4938 (home-page "http://icculus.org/tennix/")
4939 (synopsis "Play tennis against the computer or a friend")
4940 (description "Tennix is a 2D tennis game. You can play against the
4941 computer or against another player using the keyboard. The game runs
4942 in-window at 640x480 resolution or fullscreen.")
4943 ;; Project is licensed under GPL2+ terms. It includes images
4944 ;; released under Public Domain terms, and SDL_rotozoom, released
4945 ;; under LGPL2.1 terms.
4946 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
4947
4948 (define-public warzone2100
4949 (package
4950 (name "warzone2100")
4951 (version "3.4.1")
4952 (source
4953 (origin
4954 (method url-fetch)
4955 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
4956 version
4957 "/warzone2100_src.tar.xz"))
4958 (sha256
4959 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
4960 (modules '((guix build utils)))
4961 (snippet
4962 '(begin
4963 (with-directory-excursion "3rdparty"
4964 (for-each
4965 delete-file-recursively
4966 '("discord-rpc"
4967 "miniupnp"
4968 "utfcpp")))
4969 #t))))
4970 (build-system cmake-build-system)
4971 (arguments
4972 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
4973 "-DENABLE_DISCORD=off")
4974 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
4975 #:phases
4976 (modify-phases %standard-phases
4977 (add-after 'unpack 'fix-utfcpp-include
4978 (lambda _
4979 (substitute* "lib/framework/wzstring.cpp"
4980 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
4981 #t))
4982 (add-after 'unpack 'link-tests-with-qt
4983 (lambda _
4984 (substitute* "tests/Makefile.am"
4985 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
4986 (string-append prefix "$(QT5_LIBS) ")))
4987 #t))
4988 (add-after 'unpack 'fix-ivis-linktest
4989 (lambda _
4990 (substitute* "tests/ivis_linktest.cpp"
4991 (("iV_DrawTextRotated.*;")
4992 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
4993 "100, 100, 0.0f, font_regular);")))
4994 #t)))))
4995 (native-inputs `(("asciidoc" ,asciidoc)
4996 ("asciidoctor" ,ruby-asciidoctor)
4997 ("gettext" ,gettext-minimal)
4998 ("pkg-config" ,pkg-config)
4999 ("unzip" ,unzip)
5000 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
5001 ("p7zip" ,p7zip)))
5002 (inputs `(("curl" ,curl)
5003 ("fontconfig" ,fontconfig)
5004 ("freetype" ,freetype)
5005 ("glew" ,glew)
5006 ("harfbuzz" ,harfbuzz)
5007 ("libtheora" ,libtheora)
5008 ("libvorbis" ,libvorbis)
5009 ("libxrandr" ,libxrandr)
5010 ("libsodium" ,libsodium)
5011 ("miniupnpc" ,miniupnpc)
5012 ("openal" ,openal)
5013 ("physfs" ,physfs)
5014 ("qtbase" ,qtbase)
5015 ("qtscript" ,qtscript)
5016 ("openssl" ,openssl)
5017 ("sdl2" ,sdl2)
5018 ("utfcpp" ,utfcpp)))
5019 (home-page "https://wz2100.net")
5020 (synopsis "3D Real-time strategy and real-time tactics game")
5021 (description
5022 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
5023 modes. An extensive tech tree with over 400 different technologies, combined
5024 with the unit design system, allows for a wide variety of possible units and
5025 tactics.")
5026 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
5027 (license (list license:bsd-3
5028 license:cc0
5029 license:cc-by-sa3.0
5030 license:expat
5031 license:gpl2+
5032 license:lgpl2.1+))))
5033
5034 (define-public widelands
5035 (package
5036 (name "widelands")
5037 (version "21")
5038 (source
5039 (origin
5040 (method url-fetch)
5041 (uri (string-append "https://launchpad.net/widelands/"
5042 "build" version "/build" version "/+download/"
5043 "widelands-build" version "-source.tar.gz"))
5044 (sha256
5045 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
5046 (modules '((guix build utils)))
5047 (snippet
5048 '(begin
5049 (delete-file-recursively "src/third_party/minizip")
5050 #t))
5051 (patches
5052 ;; Use system Minizip. Patch is provided by Debian, and discussed
5053 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
5054 (search-patches "widelands-system-wide_minizip.patch"))))
5055 (build-system cmake-build-system)
5056 (arguments
5057 `(#:configure-flags
5058 (let* ((out (assoc-ref %outputs "out"))
5059 (share (string-append out "/share")))
5060 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
5061 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
5062 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
5063 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
5064 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
5065 ;; type. When used, no game data is installed!
5066 "-DCMAKE_BUILD_TYPE=Release"))
5067 #:phases
5068 (modify-phases %standard-phases
5069 (add-after 'unpack 'unbundle-fonts
5070 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
5071 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
5072 (lambda* (#:key inputs #:allow-other-keys)
5073 (with-directory-excursion "data/i18n/fonts"
5074 (for-each (lambda (font)
5075 (delete-file-recursively font)
5076 (symlink (string-append (assoc-ref inputs font)
5077 "/share/fonts/truetype")
5078 font))
5079 '("DejaVu" "MicroHei")))
5080 #t)))))
5081 (native-inputs
5082 `(("gettext" ,gettext-minimal)
5083 ("python" ,python-wrapper)))
5084 (inputs
5085 `(("boost" ,boost)
5086 ("glew" ,glew)
5087 ("icu4c" ,icu4c)
5088 ("libpng" ,libpng)
5089 ("minizip" ,minizip)
5090 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5091 ("zlib" ,zlib)
5092 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
5093 ("DejaVu" ,font-dejavu)
5094 ("MicroHei" ,font-wqy-microhei)))
5095 (home-page "https://www.widelands.org/")
5096 (synopsis "Fantasy real-time strategy game")
5097 (description
5098 "In Widelands, you are the regent of a small clan. You start out with
5099 nothing but your headquarters, where all your resources are stored.
5100
5101 In the course of the game, you will build an ever growing settlement. Every
5102 member of your clan will do his or her part to produce more resources---wood,
5103 food, iron, gold and more---to further this growth. The economic network is
5104 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
5105 Frisians).
5106
5107 As you are not alone in the world, you will meet other clans sooner or later.
5108 Some of them may be friendly and you may eventually trade with them. However,
5109 if you want to rule the world, you will have to train soldiers and fight.
5110
5111 Widelands offers single-player mode with different campaigns; the campaigns
5112 all tell stories of tribes and their struggle in the Widelands universe!
5113 However, settling really starts when you unite with friends over the Internet
5114 or LAN to build up new empires together---or to crush each other in the dusts
5115 of war. Widelands also offers an Artificial Intelligence to challenge you.")
5116 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
5117 ;; different licenses.
5118 (license (list license:gpl2+
5119 license:expat ;src/third_party/eris
5120 license:silofl1.1 ;Widelands.ttf
5121 license:cc-by-sa3.0)))) ;some music files
5122
5123 (define-public starfighter
5124 (package
5125 (name "starfighter")
5126 (version "2.4")
5127 (source (origin
5128 (method url-fetch)
5129 (uri (string-append
5130 "https://github.com/pr-starfighter/starfighter/releases"
5131 "/download/v" version "/starfighter-"
5132 version "-src.tar.gz"))
5133 (sha256
5134 (base32
5135 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5136 (build-system gnu-build-system)
5137 (native-inputs
5138 `(("pkg-config" ,pkg-config)))
5139 (inputs
5140 `(("pango" ,pango)
5141 ("sdl2" ,sdl2)
5142 ("sdl2-image" ,sdl2-image)
5143 ("sdl2-mixer" ,sdl2-mixer)
5144 ("sdl2-ttf" ,sdl2-ttf)))
5145 (home-page "https://pr-starfighter.github.io/")
5146 (synopsis "2D scrolling shooter game")
5147 (description
5148 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5149 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5150 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5151 way, you will encounter new foes, make new allies, and assist local rebels
5152 in strikes against the evil corporation.")
5153 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5154 (license (list license:gpl3+
5155 license:cc-by3.0
5156 license:cc-by-sa3.0
5157 license:cc0
5158 license:public-domain))))
5159
5160 (define-public chromium-bsu
5161 (package
5162 (name "chromium-bsu")
5163 (version "0.9.16.1")
5164 (source (origin
5165 (method url-fetch)
5166 (uri (string-append "mirror://sourceforge/chromium-bsu"
5167 "/Chromium B.S.U. source code/"
5168 "chromium-bsu-" version ".tar.gz"))
5169 (sha256
5170 (base32
5171 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5172 (build-system gnu-build-system)
5173 (native-inputs `(("pkg-config" ,pkg-config)))
5174 (inputs `(("gettext" ,gettext-minimal)
5175 ("glu" ,glu)
5176 ("quesoglc" ,quesoglc)
5177 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5178 (home-page "http://chromium-bsu.sourceforge.net/")
5179 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5180 (description
5181 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5182 are responsible for delivering supplies to the troops on the front line. Your
5183 ship has a small fleet of robotic fighters which you control from the relative
5184 safety of the Chromium vessel.")
5185 ;; Clarified Artistic License for everything but sound, which is covered
5186 ;; by the Expat License.
5187 (license (list license:clarified-artistic license:expat))))
5188
5189 (define-public tuxpaint
5190 (package
5191 (name "tuxpaint")
5192 (version "0.9.23") ;keep VER_DATE below in sync
5193 (source
5194 (origin
5195 (method url-fetch)
5196 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5197 version "/tuxpaint-" version ".tar.gz"))
5198 (sha256
5199 (base32
5200 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5201 (modules '((guix build utils)))
5202 (snippet
5203 '(begin
5204 ;; Remove win32 directory which contains binary dll's and the
5205 ;; deprecated visualc directory.
5206 (for-each delete-file-recursively '("win32" "visualc"))
5207 (substitute* "Makefile"
5208 ;; Do not rely on $(GPERF) being an absolute file name
5209 (("\\[ -x \\$\\(GPERF\\) \\]")
5210 "$(GPERF) --version >/dev/null 2>&1"))
5211 #t))
5212 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5213 (build-system gnu-build-system)
5214 (native-inputs
5215 `(("gperf" ,gperf)
5216 ("pkg-config" ,pkg-config)))
5217 (inputs
5218 `(("cairo" ,cairo)
5219 ("fribidi" ,fribidi)
5220 ("gettext" ,gettext-minimal)
5221 ("libpng" ,libpng)
5222 ("librsvg" ,librsvg)
5223 ("libpaper" ,libpaper)
5224 ("netpbm" ,netpbm)
5225 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5226 ;; TODO: Use system fonts rather than those in data/fonts
5227 (arguments
5228 `(#:make-flags `("VER_DATE=2018-09-02"
5229 "GPERF=gperf" "CC=gcc"
5230 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5231 ,(string-append "PREFIX=" %output)
5232 "KDE_PREFIX=$(PREFIX)/share/applications"
5233 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5234 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5235 #:parallel-build? #f ;fails on some systems
5236 #:tests? #f ;No tests
5237 #:phases (modify-phases %standard-phases
5238 (delete 'configure) ;no configure phase
5239 (add-before 'install 'no-sys-cache
5240 (lambda _ ;do not rebuild system conf cache
5241 (substitute* "Makefile"
5242 (("kbuildsycoca4") ""))
5243 #t))
5244 (add-after 'install 'fix-import
5245 (lambda* (#:key inputs outputs #:allow-other-keys)
5246 (let* ((out (assoc-ref outputs "out"))
5247 (net (assoc-ref inputs "netpbm"))
5248 (tpi (string-append out "/bin/tuxpaint-import")))
5249 (substitute* tpi
5250 ;; Point to installation prefix so that the default
5251 ;; configure file is found.
5252 (("/usr/local") out))
5253 ;; tuxpaint-import uses a bunch of programs from
5254 ;; netpbm, so make sure it knows where those are
5255 (wrap-program tpi
5256 `("PATH" ":" prefix
5257 (,(string-append net "/bin"))))))))))
5258 (native-search-paths
5259 (list (search-path-specification
5260 (variable "TUXPAINT_STAMPS_PATH")
5261 (files '("share/tuxpaint/stamps")))))
5262 (home-page "http://www.tuxpaint.org")
5263 (synopsis "Drawing software for children")
5264 (description
5265 "Tux Paint is a free drawing program designed for young children (kids
5266 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5267 and an encouraging cartoon mascot who helps guide children as they use the
5268 program. It provides a blank canvas and a variety of drawing tools to help
5269 your child be creative.")
5270 (license license:gpl2+)))
5271
5272 (define-public tuxpaint-stamps
5273 (package
5274 (name "tuxpaint-stamps")
5275 (version "2018.09.01")
5276 (source
5277 (origin
5278 (method url-fetch)
5279 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5280 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5281 "/tuxpaint-stamps-" version ".tar.gz"))
5282 (sha256
5283 (base32
5284 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5285 (build-system trivial-build-system)
5286 (native-inputs
5287 `(("tar" ,tar)
5288 ("gzip" ,gzip)))
5289 (arguments
5290 `(#:modules ((guix build utils))
5291 #:builder (begin
5292 (use-modules (guix build utils))
5293 (setenv "PATH"
5294 (string-append
5295 (assoc-ref %build-inputs "tar") "/bin" ":"
5296 (assoc-ref %build-inputs "gzip") "/bin"))
5297 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5298 (chdir (string-append ,name "-" ,version))
5299 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5300 (mkdir-p dir)
5301 (copy-recursively "stamps" dir))
5302 #t)))
5303 (home-page (package-home-page tuxpaint))
5304 (synopsis "Stamp images for Tux Paint")
5305 (description
5306 "This package contains a set of \"Rubber Stamp\" images which can be used
5307 with the \"Stamp\" tool within Tux Paint.")
5308 (license license:gpl2+)))
5309
5310 (define-public tuxpaint-config
5311 (package
5312 (name "tuxpaint-config")
5313 (version "0.0.14") ;keep VER_DATE below in sync
5314 (source
5315 (origin
5316 (method url-fetch)
5317 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5318 version "/tuxpaint-config-" version ".tar.gz"))
5319 (sha256
5320 (base32
5321 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5322 (build-system gnu-build-system)
5323 (native-inputs
5324 `(("gettext" ,gettext-minimal)))
5325 (inputs
5326 `(("fltk" ,fltk)
5327 ("libpaper" ,libpaper)
5328 ;; TODO: Should the following be propagated by fltk?
5329 ("libx11" ,libx11)
5330 ("libxft" ,libxft)
5331 ("mesa" ,mesa)))
5332 (arguments
5333 `(#:make-flags `("VER_DATE=2018-09-01"
5334 "CONFDIR=/etc/tuxpaint" ;don't write to store
5335 ,(string-append "PREFIX=" %output)
5336 "GNOME_PREFIX=$(PREFIX)")
5337 #:parallel-build? #f ;race conditions
5338 #:tests? #f ;no tests
5339 #:phases (modify-phases %standard-phases
5340 (delete 'configure) ;no configure phase
5341 (add-before 'install 'gzip-no-name
5342 (lambda* _
5343 (substitute* "Makefile"
5344 ;; tuxpaint-config compresses its own documentation;
5345 ;; make sure it uses flags for reproducibility.
5346 (("gzip") "gzip --no-name"))))
5347 (add-before 'install 'make-install-dirs
5348 (lambda* (#:key outputs #:allow-other-keys)
5349 (let ((out (assoc-ref outputs "out")))
5350 (mkdir-p (string-append out "/bin"))
5351 #t))))))
5352 (home-page (package-home-page tuxpaint))
5353 (synopsis "Configure Tux Paint")
5354 (description
5355 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5356 (license license:gpl2))) ;no "or later" present
5357
5358 (define-public supertux
5359 (package
5360 (name "supertux")
5361 (version "0.6.2")
5362 (source (origin
5363 (method url-fetch)
5364 (uri (string-append "https://github.com/SuperTux/supertux/"
5365 "releases/download/v" version "/SuperTux-v"
5366 version "-Source.tar.gz"))
5367 (file-name (string-append name "-" version ".tar.gz"))
5368 (sha256
5369 (base32
5370 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5371 (patches
5372 (search-patches "supertux-unbundle-squirrel.patch"))))
5373 (arguments
5374 '(#:tests? #f
5375 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5376 "-DUSE_SYSTEM_PHYSFS=ON")
5377 #:phases
5378 (modify-phases %standard-phases
5379 (add-after 'unpack 'patch-squirrel-path
5380 (lambda* (#:key inputs #:allow-other-keys)
5381 (let ((squirrel (assoc-ref inputs "squirrel")))
5382 (substitute* "CMakeLists.txt"
5383 (("set\\(SQUIRREL_PREFIX.*")
5384 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5385 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5386 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5387 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5388 #t)))))
5389 (build-system cmake-build-system)
5390 (inputs `(("sdl2" ,sdl2)
5391 ("sdl2-image" ,sdl2-image)
5392 ("sdl2-mixer" ,sdl2-mixer)
5393 ("openal" ,openal)
5394 ("mesa" ,mesa)
5395 ("glew" ,glew)
5396 ("libvorbis" ,libvorbis)
5397 ("libogg" ,libogg)
5398 ("physfs" ,physfs)
5399 ("curl" ,curl)
5400 ("boost" ,boost)
5401 ("freetype" ,freetype)
5402 ("squirrel" ,squirrel)))
5403 (native-inputs
5404 `(("pkg-config" ,pkg-config)))
5405 (synopsis "2D platformer game")
5406 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5407 a style similar to the original Super Mario games.")
5408 (home-page "https://supertux.org/")
5409 (license license:gpl3+)))
5410
5411 (define-public tintin++
5412 (package
5413 (name "tintin++")
5414 (version "2.02.05")
5415 (source
5416 (origin
5417 (method url-fetch)
5418 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5419 (string-drop-right version 1)
5420 "/tintin-" version ".tar.gz"))
5421 (sha256
5422 (base32 "18fm9ga08mxqmblahmnlzwnl387i8mbkj4n0gffxc91d299019v3"))))
5423 (inputs
5424 `(("gnutls" ,gnutls)
5425 ("pcre" ,pcre)
5426 ("readline" ,readline)
5427 ("zlib" ,zlib)))
5428 (arguments
5429 '(#:tests? #f ; no test suite
5430 #:phases
5431 (modify-phases %standard-phases
5432 ;; The source is in tt/src.
5433 (add-before 'configure 'chdir
5434 (lambda _
5435 (chdir "src")
5436 #t)))))
5437 (build-system gnu-build-system)
5438 (home-page "https://tintin.mudhalla.net/")
5439 (synopsis "MUD client")
5440 (description
5441 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5442 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5443 options used by MUDs, as well as those required to login via telnet on
5444 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5445 (license license:gpl3+)))
5446
5447 (define-public laby
5448 (package
5449 (name "laby")
5450 (version "0.7.0")
5451 (source
5452 (origin (method git-fetch)
5453 (uri (git-reference
5454 (url "https://github.com/sgimenez/laby")
5455 (commit (string-append name "-" version))))
5456 (file-name (git-file-name name version))
5457 (sha256
5458 (base32
5459 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5460 (patches (search-patches "laby-make-install.patch"))))
5461 (build-system gnu-build-system)
5462 (inputs
5463 `(("lablgtk" ,lablgtk)
5464 ("ocaml" ,ocaml)
5465 ("ocaml-findlib" ,ocaml-findlib)
5466 ("ocamlbuild" ,ocamlbuild)))
5467 (arguments
5468 '(#:phases
5469 (modify-phases %standard-phases
5470 (delete 'configure)
5471 (add-before 'build 'allow-unsafe-strings
5472 ;; Fix a build failure with ocaml >=4.06.0.
5473 ;; See <https://github.com/sgimenez/laby/issues/53>.
5474 (lambda _
5475 (setenv "OCAMLPARAM" "safe-string=0,_")
5476 #t))
5477 (add-before 'build 'set-library-path
5478 (lambda* (#:key inputs #:allow-other-keys)
5479 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5480 (setenv "LD_LIBRARY_PATH"
5481 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5482 #:tests? #f ; no 'check' target
5483 #:make-flags
5484 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5485 (home-page "https://sgimenez.github.io/laby/")
5486 (synopsis "Programming game")
5487 (description "Learn programming, playing with ants and spider webs ;-)
5488 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5489 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5490 programmers may also add their own favorite language.")
5491 (license license:gpl3+)))
5492
5493 (define-public bambam
5494 (package
5495 (name "bambam")
5496 (version "1.0.0")
5497 (source
5498 (origin
5499 (method git-fetch)
5500 (uri (git-reference
5501 (url "https://github.com/porridge/bambam")
5502 (commit (string-append "v" version))))
5503 (file-name (git-file-name name version))
5504 (sha256
5505 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5506 (build-system python-build-system)
5507 (arguments
5508 `(#:tests? #f ; no tests
5509 #:phases
5510 (modify-phases %standard-phases
5511 (delete 'build) ; nothing to build
5512 (replace 'install
5513 (lambda* (#:key outputs #:allow-other-keys)
5514 (let* ((out (assoc-ref outputs "out"))
5515 (bin (string-append out "/bin"))
5516 (share (string-append out "/share")))
5517 (mkdir-p bin)
5518 (copy-file "bambam.py" (string-append bin "/bambam"))
5519 (install-file "bambam.6" (string-append share "/man/man6"))
5520 (copy-recursively "data" (string-append share "/bambam/data")))
5521 #t)))))
5522 (inputs
5523 `(("python-pygame" ,python-pygame)))
5524 (home-page "https://github.com/porridge/bambam")
5525 (synopsis "Keyboard mashing and doodling game for babies")
5526 (description "Bambam is a simple baby keyboard (and gamepad) masher
5527 application that locks the keyboard and mouse and instead displays bright
5528 colors, pictures, and sounds.")
5529 (license license:gpl3+)))
5530
5531 (define-public mrrescue
5532 (package
5533 (name "mrrescue")
5534 (version "1.02e")
5535 (source (origin
5536 (method url-fetch)
5537 (uri (string-append
5538 "https://github.com/SimonLarsen/mrrescue/releases/"
5539 "download/" version "/mrrescue" version ".love"))
5540 (file-name (string-append name "-" version ".love"))
5541 (sha256
5542 (base32
5543 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5544 (build-system trivial-build-system)
5545 (arguments
5546 `(#:modules ((guix build utils))
5547 #:builder
5548 (begin
5549 (use-modules (guix build utils))
5550 (let* ((out (assoc-ref %outputs "out"))
5551 (script (string-append out "/bin/" ,name))
5552 (data (string-append out "/share/" ,name))
5553 (source (assoc-ref %build-inputs "source"))
5554 (unzip (string-append (assoc-ref %build-inputs "unzip")
5555 "/bin/unzip"))
5556 (patch (string-append (assoc-ref %build-inputs "patch")
5557 "/bin/patch"))
5558 (bash (string-append (assoc-ref %build-inputs "bash")
5559 "/bin/bash"))
5560 (love (string-append (assoc-ref %build-inputs "love")
5561 "/bin/love")))
5562
5563 (mkdir-p (dirname script))
5564 (with-output-to-file script
5565 (lambda ()
5566 (format #t "#!~a~%" bash)
5567 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5568 (chmod script #o755)
5569
5570 ;; The better way to package this game would be to install *only* the
5571 ;; script above, pointing to the unextracted .love file in the store.
5572 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5573 ;; Instead of extracting the .love file, patching it, and re-zipping
5574 ;; it to the store, simply point the script to the extracted patched
5575 ;; data directory directly.
5576 (mkdir-p data)
5577 (with-directory-excursion data
5578 (invoke unzip source)
5579 (invoke patch "-p1" "-i"
5580 (assoc-ref %build-inputs "love-11.patch")))
5581 #t))))
5582 (native-inputs
5583 `(("unzip" ,unzip)
5584 ("patch" ,patch)
5585 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5586 (inputs
5587 `(("bash" ,bash)
5588 ("love" ,love)))
5589 (home-page "https://tangramgames.dk/games/mrrescue")
5590 (synopsis "Arcade-style fire fighting game")
5591 (description
5592 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5593 civilians from burning buildings. The game features fast-paced fire
5594 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5595 throwing people around in pseudo-randomly generated buildings.")
5596 (license (list license:zlib ; for source code
5597 license:cc-by-sa3.0)))) ; for graphics and music assets
5598
5599 (define-public hyperrogue
5600 (package
5601 (name "hyperrogue")
5602 (version "11.3a")
5603 ;; When updating this package, be sure to update the "hyperrogue-data"
5604 ;; origin in native-inputs.
5605 (source (origin
5606 (method url-fetch)
5607 (uri (string-append
5608 "https://www.roguetemple.com/z/hyper/hyperrogue"
5609 (string-join (string-split version #\.) "")
5610 "-src.tgz"))
5611 (sha256
5612 (base32
5613 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5614 (build-system gnu-build-system)
5615 (arguments
5616 `(#:tests? #f ; no check target
5617 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5618 "HYPERROGUE_USE_PNG=1")
5619 #:phases
5620 (modify-phases %standard-phases
5621 (add-after 'set-paths 'set-sdl-paths
5622 (lambda* (#:key inputs #:allow-other-keys)
5623 (setenv "CPATH"
5624 (string-append (or (getenv "CPATH") "") ":"
5625 (assoc-ref inputs "sdl-union")
5626 "/include/SDL"))))
5627 (replace 'configure
5628 (lambda* (#:key inputs outputs #:allow-other-keys)
5629 (let* ((out (assoc-ref outputs "out"))
5630 (share-dir (string-append out "/share/hyperrogue"))
5631 (dejavu-dir (string-append
5632 (assoc-ref inputs "font-dejavu")
5633 "/share/fonts/truetype"))
5634 (dejavu-font "DejaVuSans-Bold.ttf")
5635 (music-file "hyperrogue-music.txt"))
5636 ;; Fix font and music paths.
5637 (substitute* "basegraph.cpp"
5638 ((dejavu-font)
5639 (string-append dejavu-dir "/" dejavu-font)))
5640 (substitute* music-file
5641 (("\\*/")
5642 (string-append share-dir "/sounds/")))
5643 (substitute* "sound.cpp"
5644 (("musicfile = \"\"")
5645 (string-append "musicfile = \""
5646 share-dir "/" music-file "\"")))
5647 ;; Disable build machine CPU optimizations and warnings treated
5648 ;; as errors.
5649 (substitute* "Makefile"
5650 (("-march=native") "")
5651 (("-Werror") "")))
5652 #t))
5653 (replace 'install
5654 (lambda* (#:key inputs outputs #:allow-other-keys)
5655 (let* ((out (assoc-ref outputs "out"))
5656 (bin (string-append out "/bin"))
5657 (share-dir (string-append out "/share/hyperrogue")))
5658 (mkdir-p bin)
5659 (install-file "hyperrogue" bin)
5660 (install-file "hyperrogue-music.txt" share-dir))
5661 #t))
5662 (add-after 'install 'install-data
5663 (lambda* (#:key inputs outputs #:allow-other-keys)
5664 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5665 (out (assoc-ref outputs "out"))
5666 (sounds (string-append out "/share/hyperrogue/sounds"))
5667 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5668 ;; Extract media license information into sounds directory.
5669 (invoke unzip "-j" data
5670 (string-append
5671 "hyperrogue"
5672 (string-join (string-split ,version #\.) "")
5673 "/sounds/credits.txt") "-d" sounds)
5674 ;; Extract sounds and music into sounds directory.
5675 (invoke "unzip" "-j" data
5676 (string-append
5677 "hyperrogue"
5678 (string-join (string-split ,version #\.) "")
5679 "/*.ogg") "-d" sounds)))))))
5680 (native-inputs
5681 `(("hyperrogue-data"
5682 ,(origin
5683 (method url-fetch)
5684 (uri
5685 (string-append
5686 "https://www.roguetemple.com/z/hyper/hyperrogue"
5687 (string-join (string-split version #\.) "")
5688 "-win.zip"))
5689 (sha256
5690 (base32
5691 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5692 ("unzip" ,unzip)))
5693 (inputs
5694 `(("font-dejavu" ,font-dejavu)
5695 ("glew" ,glew)
5696 ("libpng" ,libpng)
5697 ("sdl-union" ,(sdl-union (list sdl
5698 sdl-gfx
5699 sdl-mixer
5700 sdl-ttf)))))
5701 (home-page "https://www.roguetemple.com/z/hyper/")
5702 (synopsis "Non-euclidean graphical rogue-like game")
5703 (description
5704 "HyperRogue is a game in which the player collects treasures and fights
5705 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5706 plane and not in euclidean space.
5707
5708 In HyperRogue, the player can move through different parts of the world, which
5709 are home to particular creatures and may be subject to their own rules of
5710 \"physics\".
5711
5712 While the game can use ASCII characters to display the the classical rogue
5713 symbols, it still needs graphics to render the non-euclidean world.")
5714 (license (list license:bsd-3 ; glew.c, mtrand.*
5715 license:cc-by-sa3.0 ; music
5716 license:cc-by-sa4.0 ; sounds
5717 license:cc0
5718 license:public-domain ; direntx.*, some sounds
5719 license:zlib ; savepng.*
5720 license:gpl2+)))) ; remaining files
5721
5722 (define-public kobodeluxe
5723 (package
5724 (name "kobodeluxe")
5725 (version "0.5.1")
5726 (source (origin
5727 (method url-fetch)
5728 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5729 version ".tar.bz2"))
5730 (sha256
5731 (base32
5732 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5733 (patches (search-patches
5734 "kobodeluxe-const-charp-conversion.patch"
5735 "kobodeluxe-enemies-pipe-decl.patch"
5736 "kobodeluxe-graphics-window-signed-char.patch"
5737 "kobodeluxe-manpage-minus-not-hyphen.patch"
5738 "kobodeluxe-midicon-segmentation-fault.patch"
5739 "kobodeluxe-paths.patch"))))
5740 (build-system gnu-build-system)
5741 (arguments
5742 '(#:configure-flags
5743 (list (string-append "CPPFLAGS=-I"
5744 (assoc-ref %build-inputs "sdl-union")
5745 "/include/SDL"))))
5746 (inputs
5747 `(("glu" ,glu)
5748 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5749 (synopsis "Shooter with space station destruction")
5750 (description
5751 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5752 for Un*x systems with X11.")
5753 (home-page "http://olofson.net/kobodl/")
5754 (license license:gpl2+)))
5755
5756 (define-public freeciv
5757 (package
5758 (name "freeciv")
5759 (version "2.6.3")
5760 (source
5761 (origin
5762 (method url-fetch)
5763 (uri (list (string-append
5764 "http://files.freeciv.org/stable/freeciv-"
5765 version ".tar.bz2")
5766 (string-append
5767 "mirror://sourceforge/freeciv/Freeciv%20"
5768 (version-major+minor version) "/" version
5769 "/freeciv-" version ".tar.bz2")))
5770 (sha256
5771 (base32 "1lgq7wcbhwpy2yqdw4biwfmp5q8fh7lhlwxcgm0fpaapfl12whvp"))))
5772 (build-system gnu-build-system)
5773 (inputs
5774 `(("curl" ,curl)
5775 ("cyrus-sasl" ,cyrus-sasl)
5776 ("gtk+" ,gtk+)
5777 ("sdl-mixer" ,sdl-mixer)
5778 ("zlib" ,zlib)))
5779 (native-inputs
5780 `(("pkg-config" ,pkg-config)))
5781 (home-page "http://www.freeciv.org/")
5782 (synopsis "Turn-based empire building strategy game")
5783 (description "Freeciv is a turn-based empire building strategy game
5784 inspired by the history of human civilization. The game commences in
5785 prehistory and your mission is to lead your tribe from the Stone Age
5786 into the Space Age.")
5787 (license license:gpl2+)))
5788
5789 (define-public no-more-secrets
5790 (package
5791 (name "no-more-secrets")
5792 (version "0.3.3")
5793 (source
5794 (origin
5795 (method git-fetch)
5796 (uri (git-reference
5797 (url "https://github.com/bartobri/no-more-secrets")
5798 (commit (string-append "v" version))))
5799 (file-name (git-file-name name version))
5800 (sha256
5801 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5802 (build-system gnu-build-system)
5803 (arguments
5804 `(#:tests? #f
5805 #:make-flags (list "CC=gcc" "all-ncurses"
5806 (string-append "prefix="
5807 (assoc-ref %outputs "out")))
5808 #:phases
5809 (modify-phases %standard-phases
5810 (delete 'configure))))
5811 (inputs
5812 `(("ncurses" ,ncurses)))
5813 (home-page "https://github.com/bartobri/no-more-secrets")
5814 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5815 (description
5816 "@code{No More Secrets} provides a command line tool called \"nms\"
5817 that recreates the famous data decryption effect seen on screen in the 1992
5818 movie \"Sneakers\".
5819
5820 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5821 it will apply the hollywood effect, initially showing encrypted data, then
5822 starting a decryption sequence to reveal the original plaintext characters.")
5823 (license license:expat)))
5824
5825 (define-public megaglest-data
5826 (package
5827 (name "megaglest-data")
5828 (version "3.13.0")
5829 (source
5830 (origin
5831 (method url-fetch)
5832 (uri (string-append
5833 "https://github.com/MegaGlest/megaglest-data"
5834 "/releases/download/" version "/megaglest-data-"
5835 version ".tar.xz"))
5836 (sha256
5837 (base32
5838 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5839 (build-system cmake-build-system)
5840 (arguments
5841 `(#:tests? #f))
5842 (home-page "https://megaglest.org/")
5843 (synopsis "Data files for MegaGlest")
5844 (description "This package contains the data files required for MegaGlest.")
5845 (license license:cc-by-sa3.0)))
5846
5847 (define-public megaglest
5848 (package
5849 (name "megaglest")
5850 (version "3.13.0")
5851 (source
5852 (origin
5853 (method url-fetch)
5854 (uri (string-append
5855 "https://github.com/MegaGlest/megaglest-source"
5856 "/releases/download/" version "/megaglest-source-"
5857 version ".tar.xz"))
5858 (sha256
5859 (base32
5860 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5861 (build-system cmake-build-system)
5862 (inputs
5863 `(("curl" ,curl)
5864 ("fontconfig" ,fontconfig)
5865 ("ftgl" ,ftgl)
5866 ("glew" ,glew)
5867 ("libjpeg-turbo" ,libjpeg-turbo)
5868 ("megaglest-data" ,megaglest-data)
5869 ("mesa" ,mesa)
5870 ("miniupnpc" ,miniupnpc)
5871 ("openal" ,openal)
5872 ("libircclient" ,libircclient)
5873 ("libpng" ,libpng)
5874 ("libvorbis" ,libvorbis)
5875 ("lua" ,lua)
5876 ("sdl2" ,sdl2)
5877 ("wxwidgets" ,wxwidgets)))
5878 (native-inputs
5879 `(("cppunit" ,cppunit)
5880 ("pkg-config" ,pkg-config)))
5881 (arguments
5882 `(#:configure-flags
5883 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5884 (assoc-ref %build-inputs "megaglest-data")
5885 "/share/megaglest")
5886 "-DBUILD_MEGAGLEST_TESTS=ON")
5887 #:phases
5888 (modify-phases %standard-phases
5889 (add-after 'unpack 'fix-ini-search-path
5890 (lambda* (#:key outputs #:allow-other-keys)
5891 (substitute* "source/glest_game/global/config.cpp"
5892 (("/usr/share/megaglest/")
5893 (string-append (assoc-ref outputs "out")
5894 "/share/megaglest/"))))))
5895 #:test-target "megaglest_tests"))
5896 (home-page "https://megaglest.org/")
5897 (synopsis "3D real-time strategy (RTS) game")
5898 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5899 game, where you control the armies of one of seven different factions: Tech,
5900 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5901 (license license:gpl2+)))
5902
5903 (define-public freegish
5904 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5905 (revision "1"))
5906 (package
5907 (name "freegish")
5908 (version (string-append "0-" revision "." (string-take commit 9)))
5909 (source (origin
5910 (method git-fetch)
5911 (uri (git-reference
5912 (url "https://github.com/freegish/freegish")
5913 (commit commit)))
5914 (file-name (git-file-name name version))
5915 (sha256
5916 (base32
5917 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
5918 (modules '((guix build utils)))
5919 ;; The audio files in the "music" directory are licensed under
5920 ;; CC-BY-NC, so we delete them.
5921 (snippet
5922 '(begin
5923 (delete-file-recursively "music")
5924 #t))))
5925 (build-system cmake-build-system)
5926 (arguments
5927 `(#:tests? #f ; no tests included
5928 #:configure-flags
5929 (list "-DCMAKE_INSTALL_FHS=ON")
5930 #:phases
5931 (modify-phases %standard-phases
5932 (add-after 'unpack 'set-DATAPATH
5933 (lambda* (#:key outputs #:allow-other-keys)
5934 (substitute* "CMakeLists.txt"
5935 (("^option\\(INSTALL_FHS" line)
5936 (string-append "add_definitions(-DDATAPATH=\""
5937 (assoc-ref outputs "out") "/share/freegish\")\n"
5938 line)))
5939 #t)))))
5940 (inputs
5941 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
5942 ("openal" ,openal)
5943 ("libvorbis" ,libvorbis)
5944 ("libogg" ,libogg)
5945 ("mesa" ,mesa)
5946 ("libpng" ,libpng)
5947 ("zlib" ,zlib)))
5948 (home-page "https://github.com/freegish/freegish")
5949 (synopsis "Side-scrolling physics platformer with a ball of tar")
5950 (description "In FreeGish you control Gish, a ball of tar who lives
5951 happily with his girlfriend Brea, until one day a mysterious dark creature
5952 emerges from a sewer hole and pulls her below ground.")
5953 ;; The textures are available under the Expat license. All other assets
5954 ;; (including levels) are covered under CC-BY-SA or public domain. The
5955 ;; source code is under GPLv2+.
5956 (license (list license:gpl2+
5957 license:expat
5958 license:public-domain
5959 license:cc-by-sa3.0)))))
5960
5961 (define-public cdogs-sdl
5962 (package
5963 (name "cdogs-sdl")
5964 (version "0.8.0")
5965 (source
5966 (origin
5967 (method git-fetch)
5968 (uri (git-reference
5969 (url "https://github.com/cxong/cdogs-sdl")
5970 (commit version)))
5971 (file-name (git-file-name name version))
5972 (sha256
5973 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
5974 (build-system cmake-build-system)
5975 (arguments
5976 `(#:configure-flags
5977 (list (string-append "-DCDOGS_DATA_DIR="
5978 (assoc-ref %outputs "out")
5979 "/share/cdogs-sdl/"))))
5980 (native-inputs
5981 `(("pkg-config" ,pkg-config)))
5982 (inputs
5983 `(("gtk+" ,gtk+)
5984 ("mesa" ,mesa)
5985 ("sdl2" ,sdl2)
5986 ("sdl2-image" ,sdl2-image)
5987 ("sdl2-mixer" ,sdl2-mixer)))
5988 (home-page "https://cxong.github.io/cdogs-sdl/")
5989 (synopsis "Classic overhead run-and-gun game")
5990 (description "C-Dogs SDL is a classic overhead run-and-gun game,
5991 supporting up to 4 players in co-op and deathmatch modes. Customize your
5992 player, choose from many weapons, and blast, slide and slash your way through
5993 over 100 user-created campaigns.")
5994 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
5995 ;; CC0/CC-BY/CC-BY-SA for assets.
5996 (license (list license:gpl2+
5997 license:bsd-2
5998 license:bsd-3
5999 license:cc0
6000 license:cc-by3.0
6001 license:cc-by-sa3.0))))
6002
6003 (define-public kiki
6004 (package
6005 (name "kiki")
6006 (version "1.0.2")
6007 (source (origin
6008 (method url-fetch)
6009 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
6010 version "/kiki-" version "-src.tgz"))
6011 (sha256
6012 (base32
6013 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
6014 (modules '((guix build utils)))
6015 (snippet
6016 '(begin
6017 (for-each delete-file (find-files "." "\\.dll$"))
6018 #t))
6019 (patches
6020 (search-patches "kiki-level-selection-crash.patch"
6021 "kiki-makefile.patch"
6022 "kiki-missing-includes.patch"
6023 "kiki-portability-64bit.patch"))))
6024 (build-system gnu-build-system)
6025 (arguments
6026 `(#:tests? #f ; there are no tests
6027 #:make-flags '("CXX=g++")
6028 #:phases
6029 (modify-phases %standard-phases
6030 (replace 'configure
6031 (lambda* (#:key inputs outputs #:allow-other-keys)
6032 (setenv "CPLUS_INCLUDE_PATH"
6033 (string-append (assoc-ref inputs "sdl-union")
6034 "/include/SDL:"
6035 (assoc-ref inputs "python")
6036 "/include/python2.7:"
6037 (or (getenv "CPLUS_INCLUDE_PATH") "")))
6038 (substitute* "src/main/main.cpp"
6039 (("#include <SDL.h>" line)
6040 (string-append line "
6041 #define K_INCLUDE_GLUT
6042 #include \"KIncludeTools.h\""))
6043 (("// initialize SDL" line)
6044 (string-append "glutInit(&argc,argv);\n" line)))
6045 (substitute* "src/main/KikiController.cpp"
6046 (("getenv\\(\"KIKI_HOME\"\\)")
6047 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
6048 (substitute* "linux/Makefile"
6049 (("CXXOPTS =" line)
6050 (string-append line " -fpermissive"))
6051 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
6052 (("PYTHONHOME =.*")
6053 (string-append "PYTHONHOME = "
6054 (assoc-ref inputs "python")
6055 "/lib/python2.7/"))
6056 (("\\$\\(GLLIBS\\)" line)
6057 (string-append line " -lm -lpython2.7")))
6058 (substitute* "src/main/KikiPythonWidget.h"
6059 (("#define __KikiPythonWidget" line)
6060 (string-append line "\n#include \"KikiPython.h\"")))
6061 #t))
6062 (add-before 'build 'build-kodilib
6063 (lambda* (#:key make-flags #:allow-other-keys)
6064 (with-directory-excursion "kodilib/linux"
6065 (apply invoke "make" make-flags))))
6066 (add-after 'build-kodilib 'chdir
6067 (lambda _ (chdir "linux") #t))
6068 (replace 'install
6069 (lambda* (#:key outputs #:allow-other-keys)
6070 (let* ((out (assoc-ref outputs "out"))
6071 (bin (string-append out "/bin"))
6072 (share (string-append out "/share/kiki")))
6073 (mkdir-p bin)
6074 (mkdir-p share)
6075 (install-file "kiki" bin)
6076 (copy-recursively "../py" (string-append share "/py"))
6077 (copy-recursively "../sound" (string-append share "/sound"))
6078 #t))))))
6079 (inputs
6080 `(("glu" ,glu)
6081 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
6082 ("freeglut" ,freeglut-2.8)
6083 ("sdl-union" ,(sdl-union (list sdl
6084 sdl-mixer
6085 sdl-image)))
6086 ("python" ,python-2)))
6087 (native-inputs
6088 `(("swig" ,swig)))
6089 (home-page "http://kiki.sourceforge.net/")
6090 (synopsis "3D puzzle game")
6091 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
6092 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
6093 small robot living in the nano world, repair its maker.")
6094 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
6095 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
6096 ;; for a statement from the author.
6097 (license license:public-domain)))
6098
6099 (define-public teeworlds
6100 (package
6101 (name "teeworlds")
6102 (version "0.7.5")
6103 (source (origin
6104 (method git-fetch)
6105 (uri (git-reference
6106 (url "https://github.com/teeworlds/teeworlds")
6107 (commit version)))
6108 (file-name (git-file-name name version))
6109 (sha256
6110 (base32
6111 "169dl83q08zl4h813az8hjs4rs3dms9yjn6bnsld4fjcj0imvvc6"))
6112 (modules '((guix build utils)
6113 (ice-9 ftw)
6114 (ice-9 regex)
6115 (srfi srfi-1)
6116 (srfi srfi-26)))
6117 (snippet ; remove bundled libraries except md5
6118 '(let ((base-dir "src/engine/external/"))
6119 (for-each (compose (cut delete-file-recursively <>)
6120 (cut string-append base-dir <>))
6121 (remove (cut string-match "(^.)|(^md5$)" <>)
6122 (scandir base-dir)))
6123 #t))))
6124 (build-system gnu-build-system)
6125 (arguments
6126 `(#:tests? #f ; no tests included
6127 #:modules ((guix build gnu-build-system)
6128 (guix build utils)
6129 (srfi srfi-26))
6130 #:phases
6131 (modify-phases %standard-phases
6132 (replace 'configure
6133 (lambda* (#:key outputs #:allow-other-keys)
6134 ;; Embed path to assets.
6135 (substitute* "src/engine/shared/storage.cpp"
6136 (("#define DATA_DIR.*")
6137 (string-append "#define DATA_DIR \""
6138 (assoc-ref outputs "out")
6139 "/share/teeworlds/data"
6140 "\"")))
6141
6142 ;; Bam expects all files to have a recent time stamp.
6143 (for-each (cut utime <> 1 1)
6144 (find-files "."))
6145
6146 ;; Do not use bundled libraries.
6147 (substitute* "bam.lua"
6148 (("local json = Compile.+$")
6149 "local json = nil
6150 settings.link.libs:Add(\"jsonparser\")")
6151 (("local png = Compile.+$")
6152 "local png = nil
6153 settings.link.libs:Add(\"pnglite\")")
6154 (("local wavpack = Compile.+$")
6155 "local wavpack = nil
6156 settings.link.libs:Add(\"wavpack\")")
6157 (("if config\\.zlib\\.value == 1")
6158 "if config.zlib.value"))
6159 (substitute* "src/engine/client/graphics_threaded.cpp"
6160 (("engine/external/pnglite/pnglite\\.h")
6161 "pnglite.h"))
6162 (substitute* "src/engine/client/sound.cpp"
6163 (("engine/external/wavpack/wavpack\\.h")
6164 "wavpack/wavpack.h"))
6165 #t))
6166 (replace 'build
6167 (lambda _
6168 (invoke "bam" "-a" "-v" "conf=release")))
6169 (replace 'install
6170 (lambda* (#:key outputs #:allow-other-keys)
6171 (let* ((arch ,(system->linux-architecture
6172 (or (%current-target-system)
6173 (%current-system))))
6174 (build (string-append "build/" (if (string=? arch "i386")
6175 "x86" arch)
6176 "/release/"))
6177 (data-built (string-append build "data/"))
6178 (out (assoc-ref outputs "out"))
6179 (bin (string-append out "/bin/"))
6180 (data (string-append out "/share/teeworlds/data/")))
6181 (for-each (cut install-file <> bin)
6182 (map (cut string-append build <>)
6183 '("teeworlds" "teeworlds_srv")))
6184 (copy-recursively data-built data)
6185 #t))))))
6186 (inputs
6187 `(("freetype" ,freetype)
6188 ("glu" ,glu)
6189 ("json-parser" ,json-parser)
6190 ("mesa" ,mesa)
6191 ("pnglite" ,pnglite)
6192 ("sdl2" ,sdl2)
6193 ("sdl2-image" ,sdl2-image)
6194 ("sdl2-mixer" ,sdl2-mixer)
6195 ("wavpack" ,wavpack)
6196 ("zlib" ,zlib)))
6197 (native-inputs
6198 `(("bam" ,bam)
6199 ("python" ,python-wrapper)
6200 ("pkg-config" ,pkg-config)))
6201 (home-page "https://www.teeworlds.com")
6202 (synopsis "2D retro multiplayer shooter game")
6203 (description "Teeworlds is an online multiplayer game. Battle with up to
6204 16 players in a variety of game modes, including Team Deathmatch and Capture
6205 The Flag. You can even design your own maps!")
6206 (license license:bsd-3)))
6207
6208 (define-public enigma
6209 (package
6210 (name "enigma")
6211 (version "1.21")
6212 (source (origin
6213 (method url-fetch)
6214 (uri (string-append "mirror://sourceforge/enigma-game/"
6215 "Release%20" version "/enigma-"
6216 version ".tar.gz"))
6217 (sha256
6218 (base32
6219 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6220 (build-system gnu-build-system)
6221 (arguments
6222 `(#:configure-flags
6223 (list "--with-system-enet")
6224 #:phases
6225 (modify-phases %standard-phases
6226 (add-after 'unpack 'fix-build-with-new-gcc
6227 (lambda _
6228 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6229 ;; to NULL. Can be removed for versions > 1.21.
6230 (substitute* "src/lev/Proxy.cc"
6231 (("ifs != NULL")
6232 "ifs"))
6233 #t))
6234 (add-after 'unpack 'find-sdl
6235 (lambda _
6236 (substitute* "configure"
6237 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6238 (substitute* '("tools/ttf2bmf.cc"
6239 "lib-src/enigma-core/ecl_font.cc"
6240 "lib-src/enigma-core/ecl_video.cc"
6241 "lib-src/enigma-core/ecl_buffer.hh"
6242 "src/SoundEngine.cc"
6243 "src/SoundEngine.hh"
6244 "src/MusicManager.cc"
6245 "src/MusicManager.hh"
6246 "src/d_models.cc"
6247 "src/main.cc"
6248 "src/network.cc")
6249 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6250 (string-append "#include \"SDL/SDL_" header ".h\"")))
6251 (substitute* "src/main.cc"
6252 (("#include <SDL_(image|ttf|mixer).h>" line header)
6253 (string-append "#include \"SDL/SDL_" header ".h\"")))
6254 #t)))))
6255 (inputs
6256 `(("xerces-c" ,xerces-c)
6257 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6258 ("curl" ,curl)
6259 ("enet" ,enet)))
6260 (native-inputs
6261 `(("pkg-config" ,pkg-config)
6262 ("imagemagick" ,imagemagick)))
6263 (home-page "https://www.nongnu.org/enigma")
6264 (synopsis "Puzzle game with a dexterity component")
6265 (description "Enigma is a puzzle game with 550 unique levels. The object
6266 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6267 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6268 and most of all, countless hairy puzzles usually block your direct way to the
6269 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6270 get bored) interact in many unexpected ways, and since many of them follow the
6271 laws of physics (Enigma’s special laws of physics, that is), controlling them
6272 with the mouse isn’t always trivial.")
6273 (license license:gpl2+)))
6274
6275 (define-public chroma
6276 (package
6277 (name "chroma")
6278 (version "1.17")
6279 (source (origin
6280 (method url-fetch)
6281 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6282 version ".tar.bz2"))
6283 (sha256
6284 (base32
6285 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
6286 (build-system gnu-build-system)
6287 (arguments
6288 `(#:tests? #f ; no tests included
6289 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6290 (inputs
6291 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6292 ("freetype" ,freetype)
6293 ("ncurses" ,ncurses)
6294 ("fontconfig" ,fontconfig)
6295 ("libxft" ,libxft)))
6296 (native-inputs
6297 `(("pkg-config" ,pkg-config)))
6298 (home-page "http://level7.org.uk/chroma/")
6299 (synopsis "Abstract puzzle game")
6300 (description "Chroma is an abstract puzzle game. A variety of colourful
6301 shapes are arranged in a series of increasingly complex patterns, forming
6302 fiendish traps that must be disarmed and mysterious puzzles that must be
6303 manipulated in order to give up their subtle secrets. Initially so
6304 straightforward that anyone can pick it up and begin to play, yet gradually
6305 becoming difficult enough to tax even the brightest of minds.")
6306 (license license:gpl2+)))
6307
6308 (define-public fillets-ng
6309 (package
6310 (name "fillets-ng")
6311 (version "1.0.1")
6312 (source (origin
6313 (method url-fetch)
6314 (uri (string-append "mirror://sourceforge/fillets/"
6315 "Fish%20Fillets%20-%20Next%20Generation/"
6316 version "/fillets-ng-" version ".tar.gz"))
6317 (sha256
6318 (base32
6319 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6320 (build-system gnu-build-system)
6321 (arguments
6322 `(#:configure-flags
6323 (list (string-append "--with-lua="
6324 (assoc-ref %build-inputs "lua")))
6325 #:make-flags
6326 (list (string-append "CFLAGS=-I"
6327 (assoc-ref %build-inputs "sdl-union")
6328 "/include/SDL")
6329 (string-append "CXXFLAGS=-I"
6330 (assoc-ref %build-inputs "sdl-union")
6331 "/include/SDL"))
6332 #:phases
6333 (modify-phases %standard-phases
6334 ;; Lua 5.1 does not provide it.
6335 (add-after 'unpack 'do-not-link-with-lualib
6336 (lambda _
6337 (substitute* "configure"
6338 (("-llualib") ""))
6339 #t))
6340 (add-after 'install 'install-data
6341 (lambda* (#:key inputs outputs #:allow-other-keys)
6342 (let ((data (string-append (assoc-ref outputs "out")
6343 "/share/games/fillets-ng")))
6344 (mkdir-p data)
6345 (invoke "tar" "-xvf"
6346 (assoc-ref inputs "fillets-ng-data")
6347 "--strip-components=1"
6348 "-C" data)))))))
6349 (inputs
6350 `(("sdl-union" ,(sdl-union (list sdl
6351 sdl-mixer
6352 sdl-image
6353 sdl-ttf)))
6354 ("fribidi" ,fribidi)
6355 ("libx11" ,libx11)
6356 ("lua" ,lua-5.1)))
6357 (native-inputs
6358 `(("pkg-config" ,pkg-config)
6359 ("fillets-ng-data"
6360 ,(origin
6361 (method url-fetch)
6362 (uri (string-append "mirror://sourceforge/fillets/"
6363 "Fish%20Fillets%20-%20Next%20Generation/"
6364 version "/fillets-ng-data-" version ".tar.gz"))
6365 (sha256
6366 (base32
6367 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6368 (home-page "http://fillets.sourceforge.net/")
6369 (synopsis "Puzzle game")
6370 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6371 every of the seventy levels is always the same: find a safe way out. The fish
6372 utter witty remarks about their surroundings, the various inhabitants of their
6373 underwater realm quarrel among themselves or comment on the efforts of your
6374 fish. The whole game is accompanied by quiet, comforting music.")
6375 (license license:gpl2+)))
6376
6377 (define-public crawl
6378 (package
6379 (name "crawl")
6380 (version "0.26.0")
6381 (source
6382 (origin
6383 (method url-fetch)
6384 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6385 version "/stone_soup-" version "-nodeps.tar.xz"))
6386 (sha256
6387 (base32 "1m81x1sp6p2ka5w2nib3pcw5w5iv58z41c8aqn0dayi1lb3yslfb"))
6388 (patches (search-patches "crawl-upgrade-saves.patch"))))
6389 (build-system gnu-build-system)
6390 (inputs
6391 `(("lua51" ,lua-5.1)
6392 ("ncurses" ,ncurses)
6393 ("sqlite" ,sqlite)
6394 ("zlib" ,zlib)))
6395 (native-inputs
6396 `(("bison" ,bison)
6397 ("flex" ,flex)
6398 ("perl" ,perl)
6399 ("python" ,python-wrapper)
6400 ("python-pyyaml" ,python-pyyaml)
6401 ("pkg-config" ,pkg-config)))
6402 (arguments
6403 `(#:make-flags
6404 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6405 (out (assoc-ref %outputs "out")))
6406 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6407 (string-append "prefix=" out)
6408 "SAVEDIR=~/.crawl"
6409 ;; Don't compile with SSE on systems which don't have it.
6410 ,@(match (%current-system)
6411 ((or "i686-linux" "x86_64-linux")
6412 '())
6413 (_ '("NOSSE=TRUE")))
6414 ;; don't build any bundled dependencies
6415 "BUILD_LUA="
6416 "BUILD_SQLITE="
6417 "BUILD_ZLIB="
6418 "-Csource"))
6419 #:phases
6420 (modify-phases %standard-phases
6421 (add-after 'unpack 'find-SDL-image
6422 (lambda _
6423 (substitute* "source/windowmanager-sdl.cc"
6424 (("SDL_image.h") "SDL2/SDL_image.h"))
6425 #t))
6426 (delete 'configure)
6427 (replace 'check
6428 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6429 (setenv "HOME" (getcwd))
6430 ;; Fake a terminal for the test cases.
6431 (setenv "TERM" "xterm-256color")
6432 ;; Run the tests that don't require a debug build.
6433 (apply invoke "make" "nondebugtest"
6434 (format #f "-j~d" (parallel-job-count))
6435 ;; Force command line build for test cases.
6436 (append make-flags '("GAME=crawl" "TILES="))))))))
6437 (synopsis "Roguelike dungeon crawler game")
6438 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6439 for short) is a roguelike adventure through dungeons filled with dangerous
6440 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6441 (home-page "https://crawl.develz.org")
6442 (license (list license:gpl2+
6443 license:bsd-2
6444 license:bsd-3
6445 license:cc0
6446 license:expat
6447 license:zlib
6448 license:asl2.0))))
6449
6450 ;; The linter here claims that patch file names should start with the package
6451 ;; name. But, in this case, the patches are inherited from crawl with the
6452 ;; "crawl-" prefix instead of "crawl-tiles-".
6453 (define-public crawl-tiles
6454 (package
6455 (inherit crawl)
6456 (name "crawl-tiles")
6457 (arguments
6458 (substitute-keyword-arguments
6459 (package-arguments crawl)
6460 ((#:make-flags flags)
6461 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6462 (cons*
6463 (string-append "PROPORTIONAL_FONT=" dejavu
6464 "/share/fonts/truetype/DejaVuSans.ttf")
6465 (string-append "MONOSPACED_FONT=" dejavu
6466 "/share/fonts/truetype/DejaVuSansMono.ttf")
6467 "TILES=y"
6468 ;; Rename the executable to allow parallel installation with crawl.
6469 "GAME=crawl-tiles"
6470 ,flags)))))
6471 (inputs
6472 `(,@(package-inputs crawl)
6473 ("font-dejavu" ,font-dejavu)
6474 ("freetype6" ,freetype)
6475 ("glu" ,glu)
6476 ("libpng" ,libpng)
6477 ("sdl2" ,sdl2)
6478 ("sdl2-image" ,sdl2-image)
6479 ("sdl2-mixer" ,sdl2-mixer)))
6480 (native-inputs
6481 `(,@(package-native-inputs crawl)
6482 ("pngcrush" ,pngcrush)
6483 ("which" ,which)))
6484 (synopsis "Graphical roguelike dungeon crawler game")))
6485
6486 (define-public lugaru
6487 (package
6488 (name "lugaru")
6489 (version "1.2")
6490 (source (origin
6491 (method url-fetch)
6492 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6493 "lugaru-" version ".tar.xz"))
6494 (sha256
6495 (base32
6496 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6497 (build-system cmake-build-system)
6498 (arguments
6499 `(#:configure-flags
6500 (list "-DSYSTEM_INSTALL=ON")
6501 ;; no test target
6502 #:tests? #f))
6503 (native-inputs
6504 `(("pkg-config" ,pkg-config)))
6505 (inputs
6506 `(("sdl2" ,sdl2)
6507 ("glu" ,glu)
6508 ("libjpeg" ,libjpeg-turbo)
6509 ("libpng" ,libpng)
6510 ("openal" ,openal)
6511 ("vorbis" ,libvorbis)
6512 ("zlib" ,zlib)))
6513 (home-page "https://osslugaru.gitlab.io")
6514 (synopsis "Cross-platform third-person action game")
6515 (description "Lugaru is a third-person action game. The main character,
6516 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6517 In his quest to find those responsible for slaughtering his village, he uncovers
6518 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6519 and the starving wolves from a nearby den. Turner takes it upon himself to
6520 fight against their plot and save his fellow rabbits from slavery.")
6521 (license (list license:gpl2+ ; code
6522 ;; assets:
6523 license:cc-by-sa3.0
6524 license:cc-by-sa4.0))))
6525
6526 (define-public 0ad-data
6527 (package
6528 (name "0ad-data")
6529 (version "0.0.23b-alpha")
6530 (source
6531 (origin
6532 (method url-fetch)
6533 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6534 version "-unix-data.tar.xz"))
6535 (file-name (string-append name "-" version ".tar.xz"))
6536 (sha256
6537 (base32
6538 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6539 (modules '((guix build utils)))
6540 (snippet
6541 #~(begin
6542 (for-each (lambda (name)
6543 (let* ((dir (string-append "binaries/data/mods/" name))
6544 (file (string-append dir "/" name ".zip"))
6545 (unzip #$(file-append unzip "/bin/unzip")))
6546 (invoke unzip "-d" dir file)
6547 (delete-file file)))
6548 '("mod" "public"))
6549 #t))))
6550 (build-system trivial-build-system)
6551 (native-inputs `(("tar" ,tar)
6552 ("xz" ,xz)))
6553 (arguments
6554 `(#:modules ((guix build utils))
6555 #:builder
6556 (begin
6557 (use-modules (guix build utils))
6558 (let ((out (assoc-ref %outputs "out"))
6559 (source (assoc-ref %build-inputs "source"))
6560 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6561 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6562 (setenv "PATH" xz-path)
6563 (mkdir out)
6564 (invoke tar "xvf" source "-C" out "--strip=3")))))
6565 (synopsis "Data files for 0ad")
6566 (description "0ad-data provides the data files required by the game 0ad.")
6567 (home-page "https://play0ad.com")
6568 (license (list (license:fsdg-compatible
6569 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6570 "Similar to the license of the Bitstream Vera fonts.")
6571 (license:fsdg-compatible
6572 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6573 license:cc-by-sa3.0
6574 license:expat
6575 license:gfl1.0
6576 license:gpl2+
6577 license:gpl3+))))
6578
6579 (define-public 0ad
6580 (package
6581 (name "0ad")
6582 (version "0.0.23b-alpha")
6583 (source
6584 (origin
6585 (method url-fetch)
6586 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6587 version "-unix-build.tar.xz"))
6588 (file-name (string-append name "-" version ".tar.xz"))
6589 (sha256
6590 (base32
6591 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6592 ;; A snippet here would cause a build failure because of timestamps
6593 ;; reset. See https://bugs.gnu.org/26734.
6594 (inputs
6595 `(("0ad-data" ,0ad-data)
6596 ("curl" ,curl)
6597 ("enet" ,enet)
6598 ("gloox" ,gloox)
6599 ("icu4c" ,icu4c)
6600 ("libpng" ,libpng)
6601 ("libsodium" ,libsodium)
6602 ("libvorbis" ,libvorbis)
6603 ("libxcursor" ,libxcursor)
6604 ("libxml2" ,libxml2)
6605 ("miniupnpc" ,miniupnpc)
6606 ("mozjs-38" ,mozjs-38)
6607 ("openal" ,openal)
6608 ("sdl2" ,sdl2)
6609 ("wxwidgets" ,wxwidgets)
6610 ("zlib" ,zlib)))
6611 (native-inputs
6612 `(("boost" ,boost)
6613 ("cmake" ,cmake-minimal)
6614 ("mesa" ,mesa)
6615 ("pkg-config" ,pkg-config)
6616 ("python-2" ,python-2)))
6617 (build-system gnu-build-system)
6618 (arguments
6619 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6620 #:phases
6621 (modify-phases %standard-phases
6622 (add-after 'unpack 'delete-bundles
6623 (lambda _
6624 (delete-file-recursively "libraries/source/spidermonkey")
6625 #t))
6626 (add-after 'unpack 'fix-x11-includes
6627 (lambda _
6628 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6629 (("<Xlib.h>") "<X11/Xlib.h>"))
6630 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6631 (("<Xatom.h>") "<X11/Xatom.h>"))
6632 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6633 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6634 #t))
6635 (replace 'configure
6636 (lambda* (#:key inputs outputs #:allow-other-keys)
6637 (let* ((jobs (number->string (parallel-job-count)))
6638 (out (assoc-ref outputs "out"))
6639 (lib (string-append out "/lib"))
6640 (data (string-append out "/share/0ad")))
6641 (setenv "JOBS" (string-append "-j" jobs))
6642 (setenv "CC" "gcc")
6643 (with-directory-excursion "build/workspaces"
6644 (invoke "./update-workspaces.sh"
6645 (string-append "--libdir=" lib)
6646 (string-append "--datadir=" data)
6647 ;; TODO: "--with-system-nvtt"
6648 "--with-system-mozjs38")))))
6649 (delete 'check)
6650 (replace 'install
6651 (lambda* (#:key inputs outputs #:allow-other-keys)
6652 (chdir "binaries")
6653 (let* ((out (assoc-ref outputs "out"))
6654 (bin (string-append out "/bin"))
6655 (lib (string-append out "/lib"))
6656 (data (string-append out "/share/0ad"))
6657 (applications (string-append out "/share/applications"))
6658 (pixmaps (string-append out "/share/pixmaps"))
6659 (0ad-data (assoc-ref inputs "0ad-data")))
6660 ;; data
6661 (copy-recursively "data" data)
6662 (for-each (lambda (file)
6663 (symlink (string-append 0ad-data "/" file)
6664 (string-append data "/" file)))
6665 '("config" "mods/mod" "mods/public" "tools"))
6666 ;; libraries
6667 (for-each (lambda (file)
6668 (install-file file lib))
6669 (find-files "system" "\\.so$"))
6670 ;; binaries
6671 (install-file "system/pyrogenesis" bin)
6672 (with-directory-excursion bin
6673 (symlink "pyrogenesis" "0ad"))
6674 ;; resources
6675 (with-directory-excursion "../build/resources"
6676 (install-file "0ad.desktop" applications)
6677 (install-file "0ad.png" pixmaps))
6678 #t)))
6679 (add-after 'install 'check
6680 (lambda _
6681 (with-directory-excursion "system"
6682 (invoke "./test")))))))
6683 (home-page "https://play0ad.com")
6684 (synopsis "3D real-time strategy game of ancient warfare")
6685 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6686 warfare. It's a historically-based war/economy game that allows players to
6687 relive or rewrite the history of twelve ancient civilizations, each depicted
6688 at their peak of economic growth and military prowess.
6689
6690 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6691 (license (list license:bsd-2
6692 license:bsd-3
6693 license:expat
6694 license:gpl2+
6695 license:ibmpl1.0
6696 license:isc
6697 license:lgpl2.1
6698 license:lgpl3
6699 license:mpl2.0
6700 license:zlib))))
6701
6702 (define-public open-adventure
6703 (package
6704 (name "open-adventure")
6705 (version "1.9")
6706 (source
6707 (origin
6708 (method git-fetch)
6709 (uri (git-reference
6710 (url "https://gitlab.com/esr/open-adventure")
6711 (commit version)))
6712 (file-name (git-file-name name version))
6713 (sha256
6714 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6715 (build-system gnu-build-system)
6716 (arguments
6717 `(#:make-flags (list "CC=gcc")
6718 #:phases
6719 (modify-phases %standard-phases
6720 (delete 'configure) ;no configure script
6721 (add-before 'build 'use-echo
6722 (lambda _
6723 (substitute* "tests/Makefile"
6724 (("/bin/echo") (which "echo")))
6725 #t))
6726 (add-after 'build 'build-manpage
6727 (lambda _
6728 ;; This target is missing a dependency
6729 (substitute* "Makefile"
6730 ((".adoc.6:" line)
6731 (string-append line " advent.adoc")))
6732 (invoke "make" ".adoc.6")))
6733 ;; There is no install target.
6734 (replace 'install
6735 (lambda* (#:key outputs #:allow-other-keys)
6736 (let* ((out (assoc-ref outputs "out"))
6737 (bin (string-append out "/bin"))
6738 (man (string-append out "/share/man/man6")))
6739 (install-file "advent" bin)
6740 (install-file "advent.6" man))
6741 #t)))))
6742 (native-inputs
6743 `(("asciidoc" ,asciidoc)
6744 ("libedit" ,libedit)
6745 ("pkg-config" ,pkg-config)
6746 ("python" ,python-wrapper)
6747 ("python-pyyaml" ,python-pyyaml)))
6748 (home-page "https://gitlab.com/esr/open-adventure")
6749 (synopsis "Colossal Cave Adventure")
6750 (description
6751 "The original Colossal Cave Adventure from 1976 was the origin of all
6752 text adventures, dungeon-crawl (computer) games, and computer-hosted
6753 roleplaying games. This is a forward port of the last version released by
6754 Crowther & Woods, its original authors, in 1995. It has been known as
6755 ``adventure 2.5'' and ``430-point adventure''.")
6756 (license license:bsd-2)))
6757
6758 (define-public open-adventure-2.5
6759 (package
6760 (inherit open-adventure)
6761 (version "2.5")
6762 (properties `((superseded . ,open-adventure)))))
6763
6764 (define-public tome4
6765 (package
6766 (name "tome4")
6767 (version "1.7.2")
6768 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6769 (source
6770 (origin
6771 (method url-fetch)
6772 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6773 version ".tar.bz2"))
6774 (sha256
6775 (base32 "1xa0pdn9pggwf7hnqb87ya2qxqhjahkdjwf8cr2y01gixgrkj9lv"))
6776 (modules '((guix build utils)))
6777 (snippet
6778 '(begin
6779 (substitute* '("src/music.h" "src/tSDL.h")
6780 (("#elif defined(__FreeBSD__)" line)
6781 (string-append
6782 line " || defined(__GNUC__)")))
6783 (substitute* '("src/tgl.h")
6784 (("#include <GL/glext.h>") ""))
6785 #t))))
6786 (build-system gnu-build-system)
6787 (native-inputs
6788 `(("unzip" ,unzip)))
6789 (inputs
6790 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6791 ("glu" ,glu)
6792 ("premake4" ,premake4)
6793 ("openal" ,openal)
6794 ("vorbis" ,libvorbis)
6795 ("luajit" ,luajit)))
6796 (arguments
6797 `(#:make-flags
6798 (list (string-append "CC=" ,(cc-for-target))
6799 "config=release")
6800 ;; XXX: Building in parallel occasionally causes this build failure:
6801 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6802 ;; No such file or directory
6803 #:parallel-build? #f
6804 #:phases (modify-phases %standard-phases
6805 (delete 'bootstrap)
6806 (replace 'configure
6807 (lambda _
6808 (invoke "premake4" "gmake")
6809 #t))
6810 (add-after 'set-paths 'set-sdl-paths
6811 (lambda* (#:key inputs #:allow-other-keys)
6812 (setenv "CPATH"
6813 (string-append (assoc-ref inputs "sdl-union")
6814 "/include/SDL2:"
6815 (or (getenv "CPATH") "")))
6816 #t))
6817 (delete 'check)
6818 ;; premake doesn't provide install target
6819 (replace 'install
6820 (lambda* (#:key inputs outputs #:allow-other-keys)
6821 (let* ((out (assoc-ref outputs "out"))
6822 (usr (string-append out "/usr"))
6823 (bin (string-append out "/bin"))
6824 (licenses (string-append out "/share/licenses"))
6825 (documents (string-append out "/share/doc"))
6826 (pixmaps (string-append out "/share/pixmaps"))
6827 (icon "te4-icon.png")
6828 (data (string-append out "/share/" ,name))
6829 (applications (string-append
6830 out "/share/applications"))
6831 (unzip (string-append
6832 (assoc-ref inputs "unzip") "/bin/unzip"))
6833 (wrapper (string-append bin "/" ,name)))
6834 ;; icon
6835 (mkdir-p pixmaps)
6836 (invoke unzip "-j"
6837 (string-append
6838 "game/engines/te4-" ,version ".teae")
6839 (string-append
6840 "data/gfx/" icon) "-d" pixmaps)
6841 ;; game executable
6842 (install-file "t-engine" data)
6843 (mkdir-p bin)
6844 (with-output-to-file wrapper
6845 (lambda ()
6846 (display
6847 (string-append
6848 "#!/bin/sh\n"
6849 ;; No bootstrap code found,
6850 ;; defaulting to working directory
6851 ;; for engine code!
6852 "cd " data "\n"
6853 "exec -a tome4 ./t-engine \"$@\"\n"))))
6854 (chmod wrapper #o555)
6855 ;; licenses
6856 (for-each (lambda (file)
6857 (install-file file licenses))
6858 '("COPYING" "COPYING-MEDIA"))
6859 ;; documents
6860 (for-each (lambda (file)
6861 (install-file file documents))
6862 '("CONTRIBUTING" "CREDITS"))
6863 ;; data
6864 (copy-recursively "bootstrap" (string-append
6865 data "/bootstrap"))
6866 (copy-recursively "game" (string-append data "/game"))
6867 ;; launcher
6868 (mkdir-p applications)
6869 (make-desktop-entry-file
6870 (string-append applications "/" ,name ".desktop")
6871 #:name "ToME4"
6872 #:comment ,synopsis
6873 #:exec ,name
6874 #:icon icon
6875 #:categories '("Game" "RolePlaying")))
6876 #t)))))
6877 (home-page "https://te4.org")
6878 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6879 combat and advanced character building. Play as one of many unique races and
6880 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6881 challenging battles, and developing characters with your own tailored mix of
6882 abilities and powers. With a modern graphical and customisable interface,
6883 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6884 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6885 (license license:gpl3+)))
6886
6887 (define-public quakespasm
6888 (package
6889 (name "quakespasm")
6890 (version "0.93.2")
6891 (source
6892 (origin
6893 (method url-fetch)
6894 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6895 version ".tgz"))
6896 (sha256
6897 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6898 (arguments
6899 `(#:tests? #f
6900 #:make-flags '("CC=gcc"
6901 "MP3LIB=mpg123"
6902 "USE_CODEC_FLAC=1"
6903 "USE_CODEC_MIKMOD=1"
6904 "USE_SDL2=1"
6905 "-CQuake")
6906 #:phases (modify-phases %standard-phases
6907 (delete 'configure)
6908 (add-after 'unpack 'fix-makefile-paths
6909 (lambda* (#:key outputs #:allow-other-keys)
6910 (let ((out (assoc-ref outputs "out")))
6911 (mkdir-p (string-append out "/bin"))
6912 (substitute* "Quake/Makefile"
6913 (("/usr/local/games")
6914 (string-append out "/bin")))
6915 #t))))))
6916 (build-system gnu-build-system)
6917 (inputs `(("libmikmod" ,libmikmod)
6918 ("libvorbis" ,libvorbis)
6919 ("flac" ,flac)
6920 ("mesa" ,mesa)
6921 ("mpg123" ,mpg123)
6922 ("sdl2" ,sdl2)))
6923 (synopsis "First person shooter engine for Quake 1")
6924 (description "Quakespasm is a modern engine for id software's Quake 1.
6925 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6926 some graphical niceities, and numerous bug-fixes and other improvements.")
6927 (home-page "http://quakespasm.sourceforge.net/")
6928 (license license:gpl2+)))
6929
6930 (define-public vkquake
6931 (package
6932 (inherit quakespasm)
6933 (name "vkquake")
6934 (version "1.01.0")
6935 (source
6936 (origin
6937 (method git-fetch)
6938 (uri (git-reference
6939 (url "https://github.com/Novum/vkQuake")
6940 (commit version)))
6941 (file-name (git-file-name name version))
6942 (sha256
6943 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6944 (arguments
6945 `(#:make-flags
6946 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6947 "vulkan-loader") "/lib")))
6948 (list "CC=gcc"
6949 "MP3LIB=mpg123"
6950 "USE_CODEC_FLAC=1"
6951 "USE_CODEC_MIKMOD=1"
6952 "USE_SDL2=1"
6953 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
6954 "-CQuake"))
6955 #:phases (modify-phases %standard-phases
6956 (add-after 'unpack 'patch-for-new-vulkan
6957 (lambda _
6958 ;; Mimic upstream commit a869a22d9b51c68e for
6959 ;; compatibility with newer vulkan-headers.
6960 (substitute* "Quake/gl_rmisc.c"
6961 (("VK_DYNAMIC_STATE_RANGE_SIZE")
6962 "3"))
6963 #t))
6964 (delete 'configure)
6965 (add-after 'unpack 'fix-makefile-paths
6966 (lambda* (#:key outputs #:allow-other-keys)
6967 (let ((vulkan (assoc-ref %build-inputs
6968 "vulkan-loader"))
6969 (out (assoc-ref outputs "out")))
6970 (mkdir-p (string-append out "/bin"))
6971 (substitute* "Quake/Makefile" ((" /usr")
6972 (string-append " " out)))
6973 (substitute* "Quake/Makefile" (("/games")
6974 (string-append "/bin")))
6975 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
6976 #t))))
6977 ,@(strip-keyword-arguments '(#:make-flags #:phases)
6978 (package-arguments quakespasm))))
6979 (inputs `(("vulkan-headers" ,vulkan-headers)
6980 ("vulkan-loader" ,vulkan-loader)
6981 ,@(package-inputs quakespasm)))
6982 (description "vkquake is a modern engine for id software's Quake 1.
6983 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6984 some graphical niceities, and numerous bug-fixes and other improvements.")
6985 (home-page "https://github.com/Novum/vkQuake")))
6986
6987 (define-public yamagi-quake2
6988 (package
6989 (name "yamagi-quake2")
6990 (version "7.45")
6991 (source
6992 (origin
6993 (method url-fetch)
6994 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
6995 version ".tar.xz"))
6996 (sha256
6997 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
6998 (build-system gnu-build-system)
6999 (arguments
7000 `(#:tests? #f
7001 #:make-flags
7002 (list "CC=gcc"
7003 ;; link openAL instead of using dlopen at runtime
7004 "DLOPEN_OPENAL=\"no\""
7005 ;; an optional directory where it will look for quake2 data files
7006 ;; in addition to the current working directory
7007 "WITH_SYSTEMWIDE=yes"
7008 "WITH_SYSTEMDIR=\"/opt/quake2\"")
7009 #:phases
7010 (modify-phases %standard-phases
7011 (delete 'configure)
7012 (replace 'install
7013 (lambda* (#:key outputs #:allow-other-keys)
7014 (let ((out (assoc-ref outputs "out")))
7015 (mkdir-p (string-append out "/lib"))
7016 (mkdir-p (string-append out "/bin"))
7017 ;; The yamagi-quake2 binary must be in the same directory
7018 ;; as it's engine libraries, but symlinking it to /bin is okay
7019 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
7020 (copy-recursively "release"
7021 (string-append out "/lib/yamagi-quake2"))
7022 (symlink (string-append out "/lib/yamagi-quake2/quake2")
7023 (string-append out "/bin/yamagi-quake2"))
7024 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
7025 (string-append out "/bin/yamagi-q2ded"))))))))
7026 (native-inputs
7027 `(("pkg-config" ,pkg-config)))
7028 (inputs
7029 `(("curl" ,curl-minimal)
7030 ("libvorbis" ,libvorbis)
7031 ("mesa" ,mesa)
7032 ("openal" ,openal)
7033 ("sdl2" ,sdl2)
7034 ("zlib" ,zlib)))
7035 (synopsis "First person shooter engine based on quake2")
7036 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
7037 The main focus is an unchanged single player experience like back in 1997,
7038 thus the gameplay and the graphics are unaltered. However the user may use one
7039 of the unofficial retexturing packs. In comparison with the official client,
7040 over 1000 bugs were fixed and an extensive code audit done,
7041 making Yamagi Quake II one of the most solid Quake II implementations available.")
7042 (home-page "https://www.yamagi.org/quake2/")
7043 (license (list license:gpl2+ ; game and server
7044 (license:non-copyleft ; info-zip
7045 "file://LICENSE"
7046 "See Info-Zip section.")
7047 license:public-domain)))) ; stb
7048
7049 (define-public nudoku
7050 (package
7051 (name "nudoku")
7052 (version "2.1.0")
7053 (source
7054 (origin
7055 (method git-fetch)
7056 (uri (git-reference
7057 (url "https://github.com/jubalh/nudoku")
7058 (commit version)))
7059 (file-name (git-file-name name version))
7060 (sha256
7061 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
7062 (build-system gnu-build-system)
7063 (native-inputs
7064 `(("autoconf" ,autoconf)
7065 ("automake" ,automake)
7066 ("gettext" ,gettext-minimal)
7067 ("pkg-config" ,pkg-config)))
7068 (inputs
7069 `(("ncurses" ,ncurses)))
7070 (home-page "https://jubalh.github.io/nudoku/")
7071 (synopsis "Sudoku for your terminal")
7072 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
7073 (license license:gpl3+)))
7074
7075 (define-public the-butterfly-effect
7076 (package
7077 (name "the-butterfly-effect")
7078 (version "0.9.3.1")
7079 (source
7080 (origin
7081 (method git-fetch)
7082 (uri (git-reference
7083 (url "https://github.com/the-butterfly-effect/tbe")
7084 (commit (string-append "v" version))))
7085 (file-name (git-file-name name version))
7086 (sha256
7087 (base32
7088 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
7089 (build-system gnu-build-system)
7090 (arguments
7091 `(#:phases
7092 (modify-phases %standard-phases
7093 (delete 'configure)
7094 ;; There is no "install" phase. By default, tbe is installed
7095 ;; in the build directory. Provide our own installation.
7096 (replace 'install
7097 (lambda* (#:key outputs #:allow-other-keys)
7098 (let* ((out (assoc-ref outputs "out"))
7099 (bin (string-append out "/bin"))
7100 (share (string-append out "/share")))
7101 (install-file "usr/games/tbe" bin)
7102 (mkdir-p share)
7103 (copy-recursively "usr/share" share)
7104 #t))))
7105 ;; Test suite requires a running Xorg server. Even when
7106 ;; provided, it fails with "D-Bus library appears to be
7107 ;; incorrectly set up; failed to read machine uuid: Failed to
7108 ;; open "/etc/machine-id": No such file or directory" along
7109 ;; with multiple "QPainter:: ... Painter not active" warnings.
7110 #:tests? #f))
7111 (inputs
7112 `(("qtbase" ,qtbase)
7113 ("qtsvg" ,qtsvg)))
7114 (native-inputs
7115 `(("cmake" ,cmake-minimal)
7116 ("gettext-minimal" ,gettext-minimal)
7117 ("qttools" ,qttools)))
7118 (synopsis "Realistic physics puzzle game")
7119 (description "The Butterfly Effect (tbe) is a game that uses
7120 realistic physics simulations to combine lots of simple mechanical
7121 elements to achieve a simple goal in the most complex way possible.")
7122 (home-page "http://the-butterfly-effect.org/")
7123 ;; Main license is GPL2-only. However, artwork is distributed
7124 ;; under various licenses, listed here.
7125 (license (list license:gpl2 license:public-domain license:expat
7126 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7127
7128 (define-public pioneer
7129 (package
7130 (name "pioneer")
7131 (version "20200203")
7132 (source (origin
7133 (method git-fetch)
7134 (uri (git-reference
7135 (url "https://github.com/pioneerspacesim/pioneer")
7136 (commit version)))
7137 (file-name (git-file-name name version))
7138 (sha256
7139 (base32
7140 "1011xsi94jhw98mhm8kryq8ajig0qfbrdx5xdasi92bd4nk7lcp8"))))
7141 (build-system cmake-build-system)
7142 (native-inputs
7143 `(("pkg-config" ,pkg-config)))
7144 (inputs
7145 `(("assimp" ,assimp)
7146 ("curl" ,curl)
7147 ("freetype" ,freetype)
7148 ("glew" ,glew)
7149 ("glu" ,glu)
7150 ("libpng" ,libpng)
7151 ("libsigc++" ,libsigc++)
7152 ("libvorbis" ,libvorbis)
7153 ("lua" ,lua-5.2) ;not compatible with 5.3
7154 ("mesa" ,mesa)
7155 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7156 (arguments
7157 `(#:tests? #f ;tests are broken
7158 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7159 (string-append "-DPIONEER_DATA_DIR="
7160 %output "/share/games/pioneer"))))
7161 (home-page "https://pioneerspacesim.net")
7162 (synopsis "Game of lonely space adventure")
7163 (description
7164 "Pioneer is a space adventure game set in our galaxy at the turn of the
7165 31st century. The game is open-ended, and you are free to eke out whatever
7166 kind of space-faring existence you can think of. Look for fame or fortune by
7167 exploring the millions of star systems. Turn to a life of crime as a pirate,
7168 smuggler or bounty hunter. Forge and break alliances with the various
7169 factions fighting for power, freedom or self-determination. The universe is
7170 whatever you make of it.")
7171 (license license:gpl3)))
7172
7173 (define-public badass
7174 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7175 (revision "0"))
7176 (package
7177 (name "badass")
7178 (version (git-version "0.0" revision commit))
7179 (source (origin
7180 (method git-fetch)
7181 (uri (git-reference
7182 (url "https://github.com/umayr/badass")
7183 (commit commit)))
7184 (file-name (git-file-name name version))
7185 (sha256
7186 (base32
7187 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7188 (build-system go-build-system)
7189 (arguments
7190 '(#:import-path "github.com/umayr/badass"))
7191 (synopsis "Hacking contribution graphs in git")
7192 (description
7193 "Badass generates false commits for a range of dates, essentially
7194 hacking the gamification of contribution graphs on platforms such as
7195 Github or Gitlab.")
7196 (home-page "https://github.com/umayr/badass")
7197 (license license:expat))))
7198
7199 (define-public colobot
7200 (package
7201 (name "colobot")
7202 (version "0.1.12-alpha")
7203 (source
7204 (origin
7205 (method git-fetch)
7206 (uri (git-reference
7207 (url "https://github.com/colobot/colobot")
7208 (commit (string-append "colobot-gold-" version))
7209 (recursive? #t))) ;for "data/" subdir
7210 (file-name (git-file-name name version))
7211 (sha256
7212 (base32
7213 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
7214 (build-system cmake-build-system)
7215 (arguments
7216 `(#:tests? #f ;no test
7217 #:phases
7218 (modify-phases %standard-phases
7219 (add-after 'unpack 'make-git-checkout-writable
7220 (lambda _
7221 (for-each make-file-writable (find-files "."))
7222 #t))
7223 (add-after 'unpack 'fix-directories
7224 (lambda _
7225 (substitute* "CMakeLists.txt"
7226 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7227 (string-append prefix "/bin"))
7228 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7229 (string-append prefix "/colobot")))
7230 #t))
7231 (add-after 'fix-directories 'install-music
7232 ;; Retrieve and install music files.
7233 (lambda* (#:key inputs #:allow-other-keys)
7234 ;; Installation process tries to download music files using
7235 ;; "wget" if not already present. Since we are going another
7236 ;; route, skip "wget" command check.
7237 (substitute* "data/music/CMakeLists.txt"
7238 (("find_program\\(WGET wget\\)") ""))
7239 ;; Populate "music/" directory.
7240 (let ((data (assoc-ref inputs "colobot-music")))
7241 (invoke "tar" "-xvf" data "-Cdata/music"))
7242 #t)))))
7243 (native-inputs
7244 `(("colobot-music"
7245 ,(origin
7246 (method url-fetch)
7247 (uri (string-append "https://colobot.info/files/music/"
7248 "colobot-music_ogg_" version ".tar.gz"))
7249 (sha256
7250 (base32
7251 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7252 ("gettext" ,gettext-minimal)
7253 ("librsvg" ,librsvg)
7254 ("po4a" ,po4a)
7255 ("python" ,python-wrapper)))
7256 (inputs
7257 `(("boost" ,boost)
7258 ("glew" ,glew)
7259 ("libogg" ,libogg)
7260 ("libpng" ,libpng)
7261 ("libsndfile" ,libsndfile)
7262 ("libvorbis" ,libvorbis)
7263 ("openal" ,openal)
7264 ("physfs" ,physfs)
7265 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7266 (synopsis "Educational programming strategy game")
7267 (description "Colobot: Gold Edition is a real-time strategy game, where
7268 you can program your units (bots) in a language called CBOT, which is similar
7269 to C++ and Java. Your mission is to find a new planet to live and survive.
7270 You can save humanity and get programming skills!")
7271 (home-page "https://colobot.info")
7272 (license license:gpl3+)))
7273
7274 (define-public gzdoom
7275 (package
7276 (name "gzdoom")
7277 (version "4.3.2")
7278 (source
7279 (origin
7280 (method git-fetch)
7281 (uri (git-reference
7282 (url "https://github.com/coelckers/gzdoom")
7283 (commit (string-append "g" version))))
7284 (file-name (git-file-name name version))
7285 (sha256
7286 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7287 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7288 "gzdoom-find-system-libgme.patch"))
7289 (modules '((guix build utils)))
7290 (snippet
7291 '(begin
7292 ;; Remove some bundled libraries. XXX There are more, but removing
7293 ;; them would require, at least, patching the build system.
7294 (with-directory-excursion "libraries"
7295 (delete-file-recursively "bzip2")
7296 (delete-file-recursively "game-music-emu")
7297 (delete-file-recursively "jpeg")
7298 (delete-file-recursively "zlib"))
7299 #t))))
7300 (arguments
7301 '(#:tests? #f
7302 #:configure-flags
7303 (let ((out (assoc-ref %outputs "out")))
7304 (list
7305 (string-append
7306 "-DCMAKE_CXX_FLAGS:="
7307 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7308 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7309
7310 ;; The build requires some extra convincing not to use the bundled
7311 ;; libgme previously deleted in the soure snippet.
7312 "-DFORCE_INTERNAL_GME=OFF"
7313
7314 ;; Link libraries at build time instead of loading them at run time.
7315 "-DDYN_OPENAL=OFF"
7316 "-DDYN_FLUIDSYNTH=OFF"
7317 "-DDYN_GTK=OFF"
7318 "-DDYN_MPG123=OFF"
7319 "-DDYN_SNDFILE=OFF"))
7320 #:phases
7321 (modify-phases %standard-phases
7322 (add-before 'configure 'fix-referenced-paths
7323 (lambda* (#:key inputs outputs #:allow-other-keys)
7324 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7325 (timidity++ (assoc-ref inputs "timidity++"))
7326 (out (assoc-ref outputs "out")))
7327
7328 (substitute*
7329 "src/CMakeLists.txt"
7330 (("COMMAND /bin/sh")
7331 (string-append "COMMAND " (which "sh"))))
7332
7333 (substitute*
7334 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7335 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7336 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7337
7338 (substitute*
7339 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7340 (("exename = \"timidity\"")
7341 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7342 #t))))))
7343 (build-system cmake-build-system)
7344 (inputs `(("bzip2" ,bzip2)
7345 ("fluid-3" ,fluid-3)
7346 ("fluidsynth" ,fluidsynth)
7347 ("gtk+3" ,gtk+)
7348 ("libgme" ,libgme)
7349 ("libjpeg" ,libjpeg-turbo)
7350 ("libsndfile" ,libsndfile)
7351 ("mesa" ,mesa)
7352 ("mpg123" ,mpg123)
7353 ("openal" ,openal)
7354 ("sdl2" ,sdl2)
7355 ("timidity++" ,timidity++)
7356 ("zlib" ,zlib)))
7357 (native-inputs `(("pkg-config" ,pkg-config)
7358 ("unzip" ,unzip)))
7359 (synopsis "Modern Doom 2 source port")
7360 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7361 renderer. It improves modding support with ZDoom's advanced mapping features
7362 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7363 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7364 (home-page "https://zdoom.org/index")
7365 ;; The source uses x86 assembly
7366 (supported-systems '("x86_64-linux" "i686-linux"))
7367 (license (list license:gpl3+ ; gzdoom game
7368 license:lgpl3+ ; gzdoom renderer
7369 license:expat ; gdtoa
7370 (license:non-copyleft ; modified dumb
7371 "file://dumb/licence.txt"
7372 "Dumb license, explicitly GPL compatible.")))))
7373
7374 (define-public odamex
7375 (package
7376 (name "odamex")
7377 (version "0.8.3")
7378 (source
7379 (origin
7380 (method url-fetch)
7381 (uri (string-append
7382 "mirror://sourceforge/odamex/Odamex/" version "/"
7383 "odamex-src-" version ".tar.gz"))
7384 (sha256
7385 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7386 (build-system cmake-build-system)
7387 (arguments `(#:tests? #f)) ; no tests
7388 (inputs
7389 `(("sdl" ,sdl)
7390 ("sdl-mixer" ,sdl-mixer)
7391 ("zlib" ,zlib)
7392 ("libpng" ,libpng)
7393 ("alsa-lib" ,alsa-lib)))
7394 (home-page "https://odamex.net/")
7395 (synopsis "Multiplayer Doom port")
7396 (description "Odamex is a modification of the Doom engine that
7397 allows players to easily join servers dedicated to playing Doom
7398 online.")
7399 (license license:gpl2+)))
7400
7401 (define-public chocolate-doom
7402 (package
7403 (name "chocolate-doom")
7404 (version "3.0.1")
7405 (source (origin
7406 (method url-fetch)
7407 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7408 version
7409 "/chocolate-doom-"
7410 version
7411 ".tar.gz"))
7412 (sha256
7413 (base32
7414 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7415 (build-system gnu-build-system)
7416 (inputs `(("sdl2-net" ,sdl2-net)
7417 ("sdl2-mixer" , sdl2-mixer)
7418 ("sdl2" ,sdl2)))
7419 (native-inputs
7420 `(("pkg-config" ,pkg-config)))
7421 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7422 Doom")
7423 (description
7424 "Chocolate Doom takes a different approach to other source ports. Its
7425 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7426 a conservative, historically accurate Doom source port, which is compatible
7427 with the thousands of mods and levels that were made before the Doom source
7428 code was released. Rather than flashy new graphics, Chocolate Doom's main
7429 features are its accurate reproduction of the game as it was played in the
7430 1990s. The project is developed around a carefully-considered philosophy that
7431 intentionally restricts which features may be added (and rejects any that
7432 affect gameplay).")
7433 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7434 (license license:gpl2)))
7435
7436 (define-public crispy-doom
7437 (package
7438 (inherit chocolate-doom)
7439 (name "crispy-doom")
7440 (version "5.8.0")
7441 (source (origin
7442 (method git-fetch)
7443 (uri (git-reference
7444 (url "https://github.com/fabiangreffrath/crispy-doom")
7445 (commit (string-append "crispy-doom-" version))))
7446 (file-name (git-file-name name version))
7447 (sha256
7448 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7449 (native-inputs
7450 (append
7451 (package-native-inputs chocolate-doom)
7452 `(("automake" ,automake)
7453 ("autoreconf" ,autoconf))))
7454 (arguments
7455 `(#:phases
7456 (modify-phases %standard-phases
7457 (replace 'bootstrap
7458 ;; The bundled autogen.sh script unconditionally runs ./configure.
7459 (lambda _ (invoke "autoreconf" "-vif"))))))
7460 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7461 Chocolate Doom")
7462 (description
7463 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7464 display resolution, removes the static limits of the Doom engine and offers
7465 further optional visual, tactical and physical enhancements while remaining
7466 entirely config file, savegame, netplay and demo compatible with the
7467 original.")
7468 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7469
7470 (define shlomif-cmake-modules
7471 (origin
7472 (method url-fetch)
7473 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7474 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7475 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7476 (sha256
7477 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7478
7479 (define-public rinutils
7480 (package
7481 (name "rinutils")
7482 (version "0.2.0")
7483 (source (origin
7484 (method git-fetch)
7485 (uri (git-reference
7486 (url "https://github.com/shlomif/rinutils")
7487 (commit version)))
7488 (file-name (git-file-name name version))
7489 (sha256
7490 (base32
7491 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7492 (native-inputs
7493 `(("perl" ,perl)
7494 ;; The following is only needed for tests.
7495 ("perl-file-find-object" ,perl-file-find-object)
7496 ("perl-test-differences" ,perl-test-differences)
7497 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7498 ("perl-io-all" ,perl-io-all)
7499 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7500 ("cmake-rules" ,shlomif-cmake-modules)
7501 ("pkg-config" ,pkg-config)))
7502 (inputs
7503 `(("cmocka" ,cmocka)
7504 ("perl-env-path" ,perl-env-path)
7505 ("perl-inline" ,perl-inline)
7506 ("perl-inline-c" ,perl-inline-c)
7507 ("perl-string-shellquote" ,perl-string-shellquote)
7508 ("perl-test-trailingspace" ,perl-test-trailingspace)
7509 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7510 ("perl-text-glob" ,perl-text-glob)
7511 ("perl-number-compare" ,perl-number-compare)
7512 ("perl-moo" ,perl-moo)))
7513 (arguments
7514 `(#:phases
7515 (modify-phases %standard-phases
7516 (add-after 'unpack 'fix-build-env
7517 (lambda* (#:key inputs #:allow-other-keys)
7518 (use-modules (guix build utils))
7519 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7520 (copy-file cmake-rules
7521 (string-append "cmake/"
7522 (strip-store-file-name cmake-rules)))
7523 #t)))
7524 (replace 'check
7525 (lambda _
7526 (with-directory-excursion "../source"
7527 (setenv "FCS_TEST_BUILD" "1")
7528 (setenv "RINUTILS_TEST_BUILD" "1")
7529 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7530 ;; which requires tidy-all.
7531 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7532 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7533 (build-system cmake-build-system)
7534 (home-page "https://www.shlomifish.org/open-source/projects/")
7535 (synopsis "C11 / gnu11 utilities C library")
7536 (description "This package provides C11 / gnu11 utilities C library")
7537 (license license:expat)))
7538
7539 (define-public fortune-mod
7540 (package
7541 (name "fortune-mod")
7542 (version "2.28.0")
7543 (source
7544 (origin
7545 (method git-fetch)
7546 (uri (git-reference
7547 (url "https://github.com/shlomif/fortune-mod")
7548 (commit (string-append "fortune-mod-" version))))
7549 (file-name (git-file-name name version))
7550 (sha256
7551 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7552 (build-system cmake-build-system)
7553 (arguments
7554 `(#:test-target "check"
7555 #:phases
7556 (modify-phases %standard-phases
7557 (add-after 'unpack 'fix-build-env
7558 (lambda* (#:key inputs #:allow-other-keys)
7559 (use-modules (guix build utils))
7560 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7561 (copy-file cmake-rules
7562 (string-append "fortune-mod/cmake/"
7563 (strip-store-file-name cmake-rules)))
7564 (chdir "fortune-mod")
7565 ;; TODO: Valgrind tests fail for some reason.
7566 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7567 (delete-file "tests/t/valgrind.t")
7568 #t)))
7569 (add-after 'install 'fix-install-directory
7570 (lambda* (#:key outputs #:allow-other-keys)
7571 ;; Move binary from "games/" to "bin/" and remove the latter. This
7572 ;; is easier than patching CMakeLists.txt since the tests hard-code
7573 ;; the location as well.
7574 (let* ((out (assoc-ref outputs "out"))
7575 (bin (string-append out "/bin"))
7576 (games (string-append out "/games")))
7577 (rename-file (string-append games "/fortune")
7578 (string-append bin "/fortune"))
7579 (rmdir games)
7580 #t))))))
7581 (inputs `(("recode" ,recode)))
7582 (native-inputs
7583 `(("perl" ,perl)
7584 ;; The following is only needed for tests.
7585 ("perl-file-find-object" ,perl-file-find-object)
7586 ("perl-test-differences" ,perl-test-differences)
7587 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7588 ("perl-io-all" ,perl-io-all)
7589 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7590 ("cmake-rules" ,shlomif-cmake-modules)
7591 ("rinutils" ,rinutils)))
7592 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7593 (synopsis "The Fortune Cookie program from BSD games")
7594 (description "Fortune is a command-line utility which displays a random
7595 quotation from a collection of quotes.")
7596 (license license:bsd-4)))
7597
7598 (define xonotic-data
7599 (package
7600 (name "xonotic-data")
7601 (version "0.8.2")
7602 (source
7603 (origin
7604 (method url-fetch)
7605 (uri (string-append "http://dl.xonotic.org/xonotic-"
7606 version ".zip"))
7607 (file-name (string-append name "-" version ".zip"))
7608 (sha256
7609 (base32
7610 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7611 (build-system trivial-build-system)
7612 (native-inputs
7613 `(("unzip" ,unzip)))
7614 (arguments
7615 `(#:modules ((guix build utils))
7616 #:builder
7617 (begin
7618 (use-modules (guix build utils))
7619 (let* ((out (assoc-ref %outputs "out"))
7620 (xonotic (string-append out "/share/xonotic"))
7621 (source (assoc-ref %build-inputs "source"))
7622 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7623 (copy-file source (string-append ,name "-" ,version ".zip"))
7624 (invoke unzip (string-append ,name "-" ,version ".zip"))
7625 (mkdir-p out)
7626 (mkdir-p xonotic)
7627 (chdir "Xonotic")
7628 (copy-recursively "data"
7629 (string-append xonotic "/data"))
7630 (copy-recursively "server"
7631 (string-append xonotic "/server"))
7632 (install-file "key_0.d0pk" xonotic)))))
7633 (home-page "http://xonotic.org")
7634 (synopsis "Data files for Xonotic")
7635 (description
7636 "Xonotic-data provides the data files required by the game Xonotic.")
7637 (license (list license:gpl2+
7638 (license:x11-style "file://server/rcon.pl")))))
7639
7640 (define-public xonotic
7641 (package
7642 (name "xonotic")
7643 (version "0.8.2")
7644 (source
7645 (origin
7646 (method url-fetch)
7647 (uri (string-append "http://dl.xonotic.org/xonotic-"
7648 version "-source.zip"))
7649 (file-name (string-append name "-" version ".zip"))
7650 (sha256
7651 (base32
7652 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7653 (build-system gnu-build-system)
7654 (arguments
7655 `(#:configure-flags (list (string-append "--prefix="
7656 (assoc-ref %outputs "out"))
7657 "--disable-rijndael")
7658 #:phases
7659 (modify-phases %standard-phases
7660 (add-before 'configure 'make-darkplaces
7661 (lambda* (#:key outputs #:allow-other-keys)
7662 (let* ((out (assoc-ref outputs "out"))
7663 (sharedir (string-append out "/share/xonotic/")))
7664 (invoke "make" "-C" "source/darkplaces"
7665 (string-append "DP_FS_BASEDIR="
7666 sharedir)
7667 "DP_LINK_TO_LIBJPEG=1"
7668 "DP_SOUND_API=ALSA"
7669 "CC=gcc"
7670 "-f" "makefile"
7671 "cl-release")
7672 (invoke "make" "-C" "source/darkplaces"
7673 (string-append "DP_FS_BASEDIR="
7674 sharedir)
7675 "DP_LINK_TO_LIBJPEG=1"
7676 "DP_SOUND_API=ALSA"
7677 "CC=gcc"
7678 "-f" "makefile"
7679 "sdl-release")
7680 (invoke "make" "-C" "source/darkplaces"
7681 (string-append "DP_FS_BASEDIR="
7682 sharedir)
7683 "DP_LINK_TO_LIBJPEG=1"
7684 "DP_SOUND_API=ALSA"
7685 "CC=gcc"
7686 "-f" "makefile"
7687 "sv-release"))))
7688 (add-before 'configure 'bootstrap
7689 (lambda _
7690 (chdir "source/d0_blind_id")
7691 (invoke "sh" "autogen.sh")))
7692 (add-after 'build 'install-desktop-entry
7693 (lambda* (#:key outputs #:allow-other-keys)
7694 ;; Add .desktop files for the 2 variants and the symlink
7695 (let* ((output (assoc-ref outputs "out"))
7696 (apps (string-append output "/share/applications")))
7697 (mkdir-p apps)
7698 (with-output-to-file
7699 (string-append apps "/xonotic-glx.desktop")
7700 (lambda _
7701 (format #t
7702 "[Desktop Entry]~@
7703 Name=xonotic-glx~@
7704 Comment=Xonotic glx~@
7705 Exec=~a/bin/xonotic-glx~@
7706 TryExec=~@*~a/bin/xonotic-glx~@
7707 Icon=xonotic~@
7708 Categories=Game~@
7709 Type=Application~%"
7710 output)))
7711 (with-output-to-file
7712 (string-append apps "/xonotic-sdl.desktop")
7713 (lambda _
7714 (format #t
7715 "[Desktop Entry]~@
7716 Name=xonotic-sdl~@
7717 Comment=Xonotic sdl~@
7718 Exec=~a/bin/xonotic-sdl~@
7719 TryExec=~@*~a/bin/xonotic-sdl~@
7720 Icon=xonotic~@
7721 Categories=Game~@
7722 Type=Application~%"
7723 output)))
7724 (with-output-to-file
7725 (string-append apps "/xonotic.desktop")
7726 (lambda _
7727 (format #t
7728 "[Desktop Entry]~@
7729 Name=xonotic~@
7730 Comment=Xonotic~@
7731 Exec=~a/bin/xonotic-glx~@
7732 TryExec=~@*~a/bin/xonotic~@
7733 Icon=xonotic~@
7734 Categories=Game~@
7735 Type=Application~%"
7736 output)))
7737 #t)))
7738 (add-after 'install-desktop-entry 'install-icons
7739 (lambda* (#:key outputs #:allow-other-keys)
7740 (let ((out (assoc-ref outputs "out")))
7741 (with-directory-excursion "../../misc/logos/icons_png/"
7742 (for-each
7743 (lambda (file)
7744 (let* ((size (string-filter char-numeric? file))
7745 (icons (string-append out "/share/icons/hicolor/"
7746 size "x" size "/apps")))
7747 (mkdir-p icons)
7748 (copy-file file (string-append icons "/xonotic.png"))))
7749 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7750 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7751 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7752 (add-after 'install-icons 'install-binaries
7753 (lambda* (#:key outputs #:allow-other-keys)
7754 (let ((out (assoc-ref outputs "out")))
7755 (define (install src dst)
7756 (let ((dst (string-append out dst)))
7757 (mkdir-p (dirname dst))
7758 (copy-file src dst)))
7759 (mkdir-p (string-append out "/bin"))
7760 (install "../darkplaces/darkplaces-dedicated"
7761 "/bin/xonotic-dedicated")
7762 (install "../darkplaces/darkplaces-glx"
7763 "/bin/xonotic-glx")
7764 (install "../darkplaces/darkplaces-sdl"
7765 "/bin/xonotic-sdl")
7766 ;; Provide a default xonotic executable, defaulting to SDL.
7767 (symlink (string-append out "/bin/xonotic-sdl")
7768 (string-append out "/bin/xonotic"))
7769 #t)))
7770 (add-after 'install-binaries 'install-data
7771 (lambda* (#:key outputs inputs #:allow-other-keys)
7772 (let* ((out (assoc-ref outputs "out"))
7773 (data (assoc-ref inputs "xonotic-data")))
7774 (symlink (string-append data "/share/xonotic")
7775 (string-append out "/share/xonotic"))
7776 #t)))
7777 (add-after 'install-binaries 'wrap-binaries
7778 (lambda* (#:key outputs inputs #:allow-other-keys)
7779 ;; Curl and libvorbis need to be wrapped so that we get
7780 ;; sound and networking.
7781 (let* ((out (assoc-ref outputs "out"))
7782 (bin (string-append out "/bin/xonotic"))
7783 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7784 (bin-glx (string-append out "/bin/xonotic-glx"))
7785 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7786 (curl (assoc-ref inputs "curl"))
7787 (vorbis (assoc-ref inputs "libvorbis")))
7788 (wrap-program bin
7789 `("LD_LIBRARY_PATH" ":" prefix
7790 (,(string-append curl "/lib:" vorbis "/lib"))))
7791 (wrap-program bin-sdl
7792 `("LD_LIBRARY_PATH" ":" prefix
7793 (,(string-append curl "/lib:" vorbis "/lib"))))
7794 (wrap-program bin-glx
7795 `("LD_LIBRARY_PATH" ":" prefix
7796 (,(string-append curl "/lib:" vorbis "/lib"))))
7797 (wrap-program bin-dedicated
7798 `("LD_LIBRARY_PATH" ":" prefix
7799 (,(string-append curl "/lib:" vorbis "/lib"))))
7800 #t))))))
7801 (inputs
7802 `(("xonotic-data" ,xonotic-data)
7803 ("alsa-lib" ,alsa-lib)
7804 ("curl" ,curl)
7805 ("libjpeg" ,libjpeg-turbo)
7806 ("libmodplug" ,libmodplug)
7807 ("libvorbis" ,libvorbis)
7808 ("libogg" ,libogg)
7809 ("libxpm" ,libxpm)
7810 ("libxxf86dga" ,libxxf86dga)
7811 ("libxxf86vm" ,libxxf86vm)
7812 ("libx11" ,libx11)
7813 ("libxext" ,libxext)
7814 ("libxau" ,libxau)
7815 ("libxdmcp" ,libxdmcp)
7816 ("mesa" ,mesa)
7817 ("glu" ,glu)
7818 ("freetype" ,freetype)
7819 ("sdl2" ,sdl2)
7820 ("libpng" ,libpng)
7821 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7822 (native-inputs
7823 `(("unzip" ,unzip)
7824 ("autoconf" ,autoconf)
7825 ("automake" ,automake)
7826 ("pkg-config" ,pkg-config)
7827 ("libtool" ,libtool)
7828 ("gmp" ,gmp)))
7829 (home-page "https://xonotic.org")
7830 (synopsis "Fast-paced first-person shooter game")
7831 (description
7832 "Xonotic is a free, fast-paced first-person shooter.
7833 The project is geared towards providing addictive arena shooter
7834 gameplay which is all spawned and driven by the community itself.
7835 Xonotic is a direct successor of the Nexuiz project with years of
7836 development between them, and it aims to become the best possible
7837 open-source FPS of its kind.")
7838 (license (list license:gpl2+
7839 license:bsd-3 ; /source/d0_blind_id folder and others
7840 (license:x11-style "" "See file rcon.pl.")))))
7841
7842 (define-public frotz
7843 (package
7844 (name "frotz")
7845 (version "2.44")
7846 (source (origin
7847 (method url-fetch)
7848 (uri (list (string-append
7849 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7850 "frotz/frotz-" version ".tar.gz")
7851 (string-append
7852 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7853 "frotz/frotz-" version ".tar.gz")))
7854 (sha256
7855 (base32
7856 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7857 (build-system gnu-build-system)
7858 (arguments
7859 `(#:tests? #f ; there are no tests
7860 #:phases
7861 (modify-phases %standard-phases
7862 (delete 'configure)
7863 (add-before 'build 'curses
7864 (lambda _
7865 (substitute* "Makefile"
7866 (("lcurses") "lncurses"))
7867 #t))
7868 (replace 'install
7869 (lambda* (#:key outputs #:allow-other-keys)
7870 (let* ((out (assoc-ref outputs "out"))
7871 (bin (string-append out "/bin"))
7872 (man (string-append out "/share/man/man6")))
7873 (install-file "frotz" bin)
7874 (mkdir-p man)
7875 (install-file "doc/frotz.6" man)
7876 #t))))))
7877 (inputs `(("libmodplug" ,libmodplug)
7878 ("libsamplerate" ,libsamplerate)
7879 ("libsndfile" ,libsndfile)
7880 ("libvorbis" ,libvorbis)
7881 ("ncurses" ,ncurses)))
7882 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7883 (description "Frotz is an interpreter for Infocom games and other Z-machine
7884 games in the text adventure/interactive fiction genre. This version of Frotz
7885 complies with standard 1.0 of Graham Nelson's specification. It plays all
7886 Z-code games V1-V8, including V6, with sound support through libao, and uses
7887 ncurses for text display.")
7888 (home-page "http://frotz.sourceforge.net")
7889 (license license:gpl2+)))
7890
7891 (define-public frotz-dumb-terminal
7892 (package
7893 (name "frotz-dumb-terminal")
7894 (version "2.44")
7895 (source (origin
7896 (method url-fetch)
7897 (uri (list (string-append
7898 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7899 "frotz/frotz-" version ".tar.gz")
7900 (string-append
7901 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7902 "frotz/frotz-" version ".tar.gz")))
7903 (sha256
7904 (base32
7905 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7906 (build-system gnu-build-system)
7907 (arguments
7908 `(#:tests? #f ; there are no tests
7909 #:phases
7910 (modify-phases %standard-phases
7911 (delete 'configure)
7912 (replace 'build
7913 (lambda _
7914 (invoke "make" "dumb")))
7915 (replace 'install
7916 (lambda* (#:key outputs #:allow-other-keys)
7917 (let* ((out (assoc-ref outputs "out"))
7918 (bin (string-append out "/bin"))
7919 (man (string-append out "/share/man/man6")))
7920 (install-file "dfrotz" bin)
7921 (mkdir-p man)
7922 (install-file "doc/dfrotz.6" man)
7923 #t))))))
7924 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7925 (description "Frotz is an interpreter for Infocom games and
7926 other Z-machine games in the text adventure/interactive fiction genre.
7927 dfrotz is the dumb interface version. You get no screen control; everything
7928 is just printed to the terminal line by line. The terminal handles all the
7929 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7930 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7931 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7932 to play games on webpages. It can also be made into a chat bot.")
7933 (home-page "http://frotz.sourceforge.net")
7934 (license license:gpl2+)))
7935
7936 (define-public frotz-sdl
7937 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7938 (package
7939 (name "frotz-sdl")
7940 (version "2.45pre")
7941 (source (origin
7942 (method git-fetch)
7943 (uri (git-reference
7944 (url "https://gitlab.com/DavidGriffith/frotz")
7945 (commit commit)))
7946 (sha256
7947 (base32
7948 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7949 (file-name (git-file-name name version))))
7950 (build-system gnu-build-system)
7951 (arguments
7952 `(#:tests? #f ; there are no tests
7953 #:phases
7954 (modify-phases %standard-phases
7955 (delete 'configure)
7956 (add-before 'build 'patch-makefile
7957 (lambda _
7958 (substitute* "Makefile"
7959 (("lcurses") "lncurses")
7960 (("^BUILD_DATE_TIME =.*$")
7961 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
7962 #t))
7963 (replace 'build
7964 (lambda _
7965 (invoke "make" "sdl")))
7966 (replace 'install
7967 (lambda* (#:key outputs #:allow-other-keys)
7968 (let* ((out (assoc-ref outputs "out"))
7969 (bin (string-append out "/bin"))
7970 (man (string-append out "/share/man/man6")))
7971 (install-file "sfrotz" bin)
7972 (mkdir-p man)
7973 (install-file "doc/sfrotz.6" man)
7974 #t))))))
7975 (native-inputs
7976 `(("pkg-config" ,pkg-config)
7977 ("which" ,which)
7978 ("perl" ,perl)))
7979 (inputs `(("sdl2" ,sdl2)
7980 ("sdl2-mixer" ,sdl2-mixer)
7981 ("libmodplug" ,libmodplug)
7982 ("libsamplerate" ,libsamplerate)
7983 ("libsndfile" ,libsndfile)
7984 ("libvorbis" ,libvorbis)
7985 ("ncurses" ,ncurses)
7986 ("freetype" ,freetype)
7987 ("libjpeg-turbo" ,libjpeg-turbo)))
7988 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
7989 (description "Frotz is an interpreter for Infocom games and other Z-machine
7990 games in the text adventure/interactive fiction genre. This version of Frotz
7991 using SDL fully supports all these versions of the Z-Machine including the
7992 graphical version 6. Graphics and sound are created through the use of the SDL
7993 libraries. AIFF sound effects and music in MOD and OGG formats are supported
7994 when packaged in Blorb container files or optionally from individual files.")
7995 (home-page "http://frotz.sourceforge.net")
7996 (license license:gpl2+))))
7997
7998 (define-public frozen-bubble
7999 ;; Last official release is very outdated (2010). Use latest commit (2017).
8000 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
8001 (revision "1"))
8002 (package
8003 (name "frozen-bubble")
8004 (version (git-version "2.2.1" revision commit))
8005 (source
8006 (origin
8007 (method git-fetch)
8008 (uri (git-reference
8009 (url "https://github.com/kthakore/frozen-bubble")
8010 (commit commit)))
8011 (file-name (git-file-name name version))
8012 (sha256
8013 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
8014 (build-system perl-build-system)
8015 (arguments
8016 `(#:phases
8017 (modify-phases %standard-phases
8018 ;; Build process needs to create files in the "server"
8019 ;; directory.
8020 (add-after 'unpack 'fix-permissions
8021 (lambda _
8022 (for-each make-file-writable
8023 (find-files "server" "." #:directories? #t))))
8024 ;; By default, build stops at warnings.
8025 (add-after 'unpack 'prevent-build-error
8026 (lambda _
8027 (substitute* "inc/My/Builder.pm"
8028 (("-Werror") ""))
8029 #t))
8030 (add-after 'install 'install-desktop-file-and-icons
8031 (lambda* (#:key outputs #:allow-other-keys)
8032 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
8033 (hicolor (string-append share "/icons/hicolor")))
8034 ;; Create desktop entry.
8035 (make-desktop-entry-file
8036 (string-append share "/applications/" ,name ".desktop")
8037 #:name "Frozen Bubble"
8038 #:comment "Frozen Bubble arcade game"
8039 #:exec ,name
8040 #:icon ,name
8041 #:categories '("Game" "ArcadeGame"))
8042 ;; Add icons.
8043 (with-directory-excursion "share/icons"
8044 (for-each
8045 (lambda (size)
8046 (let* ((dim (string-append size "x" size))
8047 (dir (string-append hicolor "/" dim "/apps")))
8048 (mkdir-p dir)
8049 (copy-file
8050 (string-append "frozen-bubble-icon-" dim ".png")
8051 (string-append dir "/frozen-bubble.png"))))
8052 '("16" "32" "48" "64"))))
8053 #t))
8054 (add-after 'install 'wrap-perl-libs
8055 (lambda* (#:key outputs #:allow-other-keys)
8056 (let ((out (assoc-ref outputs "out"))
8057 (perl5lib (getenv "PERL5LIB")))
8058 (for-each (lambda (prog)
8059 (wrap-program (string-append out "/" prog)
8060 `("PERL5LIB" ":" prefix
8061 (,(string-append perl5lib ":" out
8062 "/lib/perl5/site_perl")))))
8063 (find-files "bin" ".")))
8064 #t)))))
8065 (native-inputs
8066 `(("perl-alien-sdl" ,perl-alien-sdl)
8067 ("perl-capture-tiny" ,perl-capture-tiny)
8068 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
8069 ("perl-module-build" ,perl-module-build)
8070 ("pkg-config" ,pkg-config)))
8071 (inputs
8072 `(("glib" ,glib)
8073 ("perl-compress-bzip2" ,perl-compress-bzip2)
8074 ("perl-file-sharedir" ,perl-file-sharedir)
8075 ("perl-file-slurp" ,perl-file-slurp)
8076 ("perl-file-which" ,perl-file-which)
8077 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
8078 ("perl-sdl" ,perl-sdl)
8079 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
8080 (home-page "http://frozen-bubble.org/")
8081 (synopsis "Puzzle with bubbles")
8082 (description
8083 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
8084 you attempt to shoot bubbles into groups of the same color to cause them to
8085 pop.
8086
8087 Players compete as penguins and must use the arrow keys to aim a colored
8088 bubble at groups of bubbles. The objective is to clear all the bubbles off
8089 the screen before a bubble passes below a line at the bottom.
8090
8091 It features 100 single-player levels, a two-player mode, music and striking
8092 graphics. A level editor is also included to allow players to create and play
8093 their own levels.")
8094 (license license:gpl2))))
8095
8096 (define-public libmanette
8097 (package
8098 (name "libmanette")
8099 (version "0.2.6")
8100 (source (origin
8101 (method url-fetch)
8102 (uri (string-append "mirror://gnome/sources/libmanette/"
8103 (version-major+minor version) "/"
8104 "libmanette-" version ".tar.xz"))
8105 (sha256
8106 (base32
8107 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
8108 (build-system meson-build-system)
8109 (native-inputs
8110 `(("glib" ,glib "bin") ; for glib-compile-resources
8111 ("gobject-introspection" ,gobject-introspection)
8112 ("pkg-config" ,pkg-config)
8113 ("vala" ,vala)))
8114 (inputs
8115 `(("libevdev" ,libevdev)
8116 ("libgudev" ,libgudev)))
8117 (home-page "https://wiki.gnome.org/Apps/Games")
8118 (synopsis "Game controller library")
8119 (description "Libmanette is a small GObject library giving you simple
8120 access to game controllers. It supports the de-facto standard gamepads as
8121 defined by the W3C standard Gamepad specification or as implemented by the SDL
8122 GameController.")
8123 (license license:lgpl2.1+)))
8124
8125 (define-public quadrapassel
8126 (package
8127 (name "quadrapassel")
8128 (version "3.36.05")
8129 (source (origin
8130 (method url-fetch)
8131 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8132 (version-major+minor version) "/"
8133 "quadrapassel-" version ".tar.xz"))
8134 (sha256
8135 (base32
8136 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8137 (build-system meson-build-system)
8138 (arguments
8139 '(#:glib-or-gtk? #t
8140 #:phases
8141 (modify-phases %standard-phases
8142 (add-after 'unpack 'skip-gtk-update-icon-cache
8143 ;; Don't create 'icon-theme.cache'.
8144 (lambda _
8145 (substitute* "build-aux/meson_post_install.py"
8146 (("gtk-update-icon-cache") (which "true")))
8147 #t)))))
8148 (native-inputs
8149 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8150 ("gettext" ,gettext-minimal)
8151 ("glib" ,glib "bin") ;for glib-compile-resources
8152 ("itstool" ,itstool)
8153 ("libxml2" ,libxml2) ;for xmllint
8154 ("pkg-config" ,pkg-config)
8155 ("vala" ,vala)))
8156 (inputs
8157 `(("clutter" ,clutter)
8158 ("clutter-gtk" ,clutter-gtk)
8159 ("gsound" ,gsound)
8160 ("gtk+" ,gtk+)
8161 ("libcanberra" ,libcanberra)
8162 ("libmanette" ,libmanette)
8163 ("librsvg" ,librsvg)))
8164 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8165 (synopsis "GNOME version of Tetris")
8166 (description "Quadrapassel comes from the classic falling-block game,
8167 Tetris. The goal of the game is to create complete horizontal lines of
8168 blocks, which will disappear. The blocks come in seven different shapes made
8169 from four blocks each: one straight, two L-shaped, one square, and two
8170 S-shaped. The blocks fall from the top center of the screen in a random
8171 order. You rotate the blocks and move them across the screen to drop them in
8172 complete lines. You score by dropping blocks fast and completing lines. As
8173 your score gets higher, you level up and the blocks fall faster.")
8174 (license license:gpl2+)))
8175
8176 (define-public endless-sky
8177 (package
8178 (name "endless-sky")
8179 (version "0.9.12")
8180 (source
8181 (origin
8182 (method git-fetch)
8183 (uri (git-reference
8184 (url "https://github.com/endless-sky/endless-sky")
8185 (commit (string-append "v" version))))
8186 (file-name (git-file-name name version))
8187 (sha256
8188 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
8189 (build-system scons-build-system)
8190 (arguments
8191 `(#:scons ,scons-python2
8192 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8193 #:tests? #f ; no tests
8194 #:phases
8195 (modify-phases %standard-phases
8196 (add-after 'unpack 'patch-resource-locations
8197 (lambda* (#:key outputs #:allow-other-keys)
8198 (substitute* "source/Files.cpp"
8199 (("/usr/local/")
8200 (string-append (assoc-ref outputs "out") "/")))
8201 #t))
8202 (add-after 'unpack 'patch-scons
8203 (lambda _
8204 (substitute* "SConstruct"
8205 ;; Keep environmental variables
8206 (("Environment\\(\\)")
8207 "Environment(ENV = os.environ)")
8208 ;; Install into %out/bin
8209 (("games\"") "bin\""))
8210 #t)))))
8211 (inputs
8212 `(("glew" ,glew)
8213 ("libjpeg" ,libjpeg-turbo)
8214 ("libmad" ,libmad)
8215 ("libpng" ,libpng)
8216 ("openal" ,openal)
8217 ("sdl2" ,sdl2)))
8218 (home-page "https://endless-sky.github.io/")
8219 (synopsis "2D space trading and combat game")
8220 (description "Endless Sky is a 2D space trading and combat game. Explore
8221 other star systems. Earn money by trading, carrying passengers, or completing
8222 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8223 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8224 leave human space behind and hope to find friendly aliens whose culture is more
8225 civilized than your own.")
8226 (license (list license:gpl3+
8227 license:cc-by-sa3.0
8228 license:cc-by-sa4.0
8229 license:public-domain))))
8230
8231 (define-public stepmania
8232 (package
8233 (name "stepmania")
8234 (version "5.1.0-b2")
8235 (source
8236 (origin
8237 (method git-fetch)
8238 (uri (git-reference
8239 (url "https://github.com/stepmania/stepmania")
8240 (commit (string-append "v" version))))
8241 (file-name (git-file-name name version))
8242 (sha256
8243 (base32
8244 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8245 (modules '((guix build utils)))
8246 (snippet
8247 '(begin
8248 ;; Remove song files, which are licensed under a non-commercial
8249 ;; clause, and a course pointing to them.
8250 (for-each delete-file-recursively
8251 '("Songs/StepMania 5/Goin' Under"
8252 "Songs/StepMania 5/MechaTribe Assault"
8253 "Songs/StepMania 5/Springtime"))
8254 (for-each delete-file '("Courses/Default/Jupiter.crs"
8255 "Courses/Default/Jupiter.png"))
8256 ;; Unbundle libpng.
8257 (substitute* "extern/CMakeLists.txt"
8258 (("include\\(CMakeProject-png.cmake\\)") ""))
8259 (delete-file-recursively "extern/libpng")
8260 #t))))
8261 (build-system cmake-build-system)
8262 (arguments
8263 `(#:tests? #f ;FIXME: couldn't find how to run tests
8264 #:build-type "Release"
8265 #:out-of-source? #f ;for the 'install-desktop' phase
8266 #:configure-flags
8267 (list "-DWITH_SYSTEM_FFMPEG=1"
8268 ;; SSE instructions are available on Intel systems only.
8269 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8270 (%current-system)))
8271 '("x86_64" "i686"))
8272 '()
8273 '("-DWITH_SSE2=NO"))
8274 ;; Configuration cannot find GTK2 without the two following
8275 ;; flags.
8276 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8277 (assoc-ref %build-inputs "gtk+")
8278 "/lib/gtk-2.0/include")
8279 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8280 (assoc-ref %build-inputs "glib")
8281 "/lib/glib-2.0/include"))
8282 #:phases
8283 (modify-phases %standard-phases
8284 (add-after 'unpack 'ensure-application-files-can-be-found
8285 (lambda* (#:key outputs #:allow-other-keys)
8286 (let ((out (assoc-ref outputs "out")))
8287 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8288 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8289 (string-append "\"" out
8290 "/share/stepmania/GtkModule.so\"")))
8291 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8292 (("Root = sDirOfExecutable")
8293 (string-append "Root = \"" out "/share/stepmania/\""))
8294 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8295 (string-append "\"" out "/share/stepmania/" dir "\"")))
8296 (substitute* "src/RageFileManager.cpp"
8297 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8298 (string-append "\"" out "/share/stepmania/\""))))
8299 #t))
8300 (add-after 'unpack 'fix-install-subdir
8301 ;; Installation would be done in "%out/stepmania-X.Y", but we
8302 ;; prefer the more common layout "%out/share/stepmania".
8303 (lambda _
8304 (substitute* "src/CMakeLists.txt"
8305 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8306 #t))
8307 (add-after 'unpack 'unbundle-libpng
8308 (lambda* (#:key inputs #:allow-other-keys)
8309 (substitute* "src/CMakeLists.txt"
8310 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8311 (string-append (assoc-ref inputs "libpng") "/include")))
8312 #t))
8313 (add-after 'install 'install-executable
8314 (lambda* (#:key outputs #:allow-other-keys)
8315 (let* ((out (assoc-ref outputs "out"))
8316 (bin (string-append out "/bin"))
8317 (exe (string-append out "/share/stepmania/stepmania")))
8318 (mkdir-p bin)
8319 (symlink exe (string-append bin "/stepmania"))
8320 #t)))
8321 (add-after 'install-executable 'install-desktop
8322 (lambda* (#:key outputs #:allow-other-keys)
8323 (let* ((out (assoc-ref outputs "out"))
8324 (share (string-append out "/share"))
8325 (applications (string-append share "/applications"))
8326 (icons (string-append share "/icons")))
8327 (install-file "stepmania.desktop" applications)
8328 (mkdir-p icons)
8329 (copy-recursively "icons" icons)
8330 #t)))
8331 ;; Move documentation in a more usual place, i.e.,
8332 ;; "%out/share/doc/stepmania/".
8333 (add-after 'install-desktop 'install-doc
8334 (lambda* (#:key outputs #:allow-other-keys)
8335 (let* ((out (assoc-ref outputs "out"))
8336 (share (string-append out "/share")))
8337 (with-directory-excursion share
8338 (mkdir-p "doc")
8339 (symlink "../stepmania/Docs" "doc/stepmania"))
8340 #t))))))
8341 (native-inputs
8342 `(("pkg-config" ,pkg-config)
8343 ("yasm" ,yasm)))
8344 (inputs
8345 `(("alsa-lib" ,alsa-lib)
8346 ;; Per upstream, StepMania is only guaranteed to work with a very
8347 ;; specific FFmpeg version, which is included in the repository as
8348 ;; a Git submodule. This particular version requirement usually
8349 ;; changes every few years.
8350 ("ffmpeg" ,ffmpeg-for-stepmania)
8351 ("glib" ,glib)
8352 ("glew" ,glew)
8353 ("gtk+" ,gtk+-2)
8354 ("jsoncpp" ,jsoncpp)
8355 ("libpng" ,libpng)
8356 ("libjpeg" ,libjpeg-turbo)
8357 ("libmad" ,libmad)
8358 ("libogg" ,libogg)
8359 ("libva" ,libva)
8360 ("libvorbis" ,libvorbis)
8361 ("libxinerama" ,libxinerama)
8362 ("libxrandr" ,libxrandr)
8363 ("mesa" ,mesa)
8364 ("pcre" ,pcre)
8365 ("pulseaudio" ,pulseaudio)
8366 ("sdl" ,sdl2)
8367 ("udev" ,eudev)
8368 ("zlib" ,zlib)))
8369 (synopsis "Advanced rhythm game designed for both home and arcade use")
8370 (description "StepMania is a dance and rhythm game. It features 3D
8371 graphics, keyboard and dance pad support, and an editor for creating your own
8372 steps.
8373
8374 This package provides the core application, but no song is shipped. You need
8375 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8376 (home-page "https://www.stepmania.com")
8377 (license license:expat)))
8378
8379 (define-public btanks
8380 (package
8381 (name "btanks")
8382 (version "0.9.8083")
8383 (source
8384 (origin
8385 (method url-fetch)
8386 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8387 "btanks-" version ".tar.bz2"))
8388 (sha256
8389 (base32
8390 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8391 (build-system scons-build-system)
8392 (arguments
8393 `(#:tests? #f ; there are none
8394 #:scons ,scons-python2
8395 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8396 #:phases
8397 (modify-phases %standard-phases
8398 (add-after 'unpack 'replace-removed-scons-syntax
8399 (lambda _
8400 (substitute* "SConstruct"
8401 (("Options") "Variables")
8402 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8403 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8404 #t))
8405 (add-after 'set-paths 'set-sdl-paths
8406 (lambda* (#:key inputs #:allow-other-keys)
8407 (setenv "CPATH"
8408 (string-append (assoc-ref inputs "sdl")
8409 "/include/SDL:"
8410 (or (getenv "CPATH") "")))
8411 #t))
8412 (add-after 'unpack 'fix-compilation-errors
8413 (lambda _
8414 (substitute* "mrt/base_file.h"
8415 (("#include <string>" m)
8416 (string-append m "\n#include <sys/types.h>")))
8417 (substitute* '("engine/sl08/sl08.h"
8418 "engine/sl08/sl08.py")
8419 (("signal = NULL") "signal = 0")
8420 (("object\\(NULL\\)") "object(0)")
8421 (("func\\(NULL\\)") "func(0)")
8422 ((" connect\\(signal_ref\\)")
8423 " this->connect(signal_ref)"))
8424 (substitute* "math/range_list.h"
8425 ((" lower_bound\\(value\\)")
8426 " this->lower_bound(value)")
8427 ((" erase\\(i\\)")
8428 " this->erase(i)"))
8429 (substitute* "clunk/source.cpp"
8430 (("using namespace clunk" m)
8431 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8432 #t))
8433 (add-after 'unpack 'find-lua
8434 (lambda _
8435 (substitute* "engine/SConscript"
8436 (("lua5.1") "lua-5.1")
8437 (("bt_libs.append\\(lua\\)")
8438 "bt_libs.append(\"lua\")"))
8439 #t)))))
8440 (inputs
8441 `(("expat" ,expat)
8442 ("glu" ,glu)
8443 ("libsmpeg" ,libsmpeg-with-sdl1)
8444 ("libvorbis" ,libvorbis)
8445 ("lua51" ,lua-5.1)
8446 ("sdl" ,(sdl-union (list sdl
8447 sdl-mixer
8448 sdl-image
8449 sdl-ttf)))
8450 ("zlib" ,zlib)))
8451 (native-inputs
8452 `(("pkg-config" ,pkg-config)
8453 ("zip" ,zip)))
8454 (home-page "http://btanks.sourceforge.net")
8455 (synopsis "Multiplayer tank battle game")
8456 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8457 game, where you can choose one of three vehicles and eliminate your enemy
8458 using the whole arsenal of weapons. It has original cartoon-like graphics and
8459 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8460 and cooperative.")
8461 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8462 ;; released under GPLv2 or later. It comes with extra exceptions for the
8463 ;; developers.
8464 (license (list license:gpl2+ license:lgpl2.1+))))
8465
8466 (define-public slimevolley
8467 (package
8468 (name "slimevolley")
8469 (version "2.4.2")
8470 (source
8471 (origin
8472 (method url-fetch)
8473 (uri (string-append "https://download.tuxfamily.org/slime/"
8474 "slimevolley_" version ".tar.gz"))
8475 (sha256
8476 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8477 (build-system cmake-build-system)
8478 (arguments
8479 `(#:tests? #f ;no test
8480 ;; Work around build failure: "error adding symbols: DSO
8481 ;; missing from command line".
8482 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8483 (native-inputs
8484 `(("gettext" ,gettext-minimal)))
8485 (inputs
8486 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8487 (home-page "https://slime.tuxfamily.org/")
8488 (synopsis "Unrealistic 2D volleyball simulation")
8489 (description
8490 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8491 the spirit of some Java games of the same name.
8492
8493 Two teams, 1-3 players each, try to be the first to get 10 points.
8494 This happens when the one ball touches the floor on the other side of
8495 the net. There can be 1 to 8 balls in game. Once one ball touches
8496 the ground, the set ends and all balls are served again.")
8497 (license license:gpl3+)))
8498
8499 (define-public slingshot
8500 (package
8501 (name "slingshot")
8502 (version "0.9")
8503 (source
8504 (origin
8505 (method git-fetch)
8506 (uri (git-reference
8507 (url "https://github.com/ryanakca/slingshot")
8508 (commit version)))
8509 (file-name (git-file-name name version))
8510 (sha256
8511 (base32
8512 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8513 (build-system python-build-system)
8514 (arguments
8515 `(#:python ,python-2))
8516 (inputs
8517 `(("python-pygame" ,python2-pygame)))
8518 (home-page "https://github.com/ryanakca/slingshot")
8519 (synopsis "Simple 2D shooting strategy game set in space")
8520 (description "Slingshot is a two-dimensional strategy game where two
8521 players attempt to shoot one another through a section of space populated by
8522 planets. The main feature of the game is that the shots, once fired, are
8523 affected by the gravity of the planets.")
8524 (license license:gpl2+)))
8525
8526 (define-public 4dtris
8527 (package
8528 (name "4dtris")
8529 (version "0.4.3")
8530 (source
8531 (origin
8532 (method url-fetch)
8533 (uri (string-append "https://launchpad.net/4dtris/"
8534 (version-major+minor version)
8535 "/" version "/+download/4dtris_"
8536 version ".orig.tar.gz"))
8537 (sha256
8538 (base32
8539 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8540 (build-system gnu-build-system)
8541 (arguments
8542 `(#:phases
8543 (modify-phases %standard-phases
8544 (add-after 'unpack 'fix-install-directories
8545 (lambda* (#:key outputs #:allow-other-keys)
8546 (let ((out (assoc-ref outputs "out")))
8547 (substitute* "Makefile.in"
8548 (("bindir = /usr/games")
8549 (string-append "bindir = " out "/bin"))
8550 (("/usr/share/applications")
8551 (string-append out "/share/applications"))
8552 (("/usr/share/games/4dtris")
8553 (string-append out "/share/4dtris"))))
8554 #t))
8555 (add-after 'set-paths 'set-sdl-paths
8556 (lambda* (#:key inputs #:allow-other-keys)
8557 (setenv "CPATH"
8558 (string-append (assoc-ref inputs "sdl")
8559 "/include/SDL:"
8560 (or (getenv "CPATH") "")))
8561 #t)))))
8562 (inputs
8563 `(("fontconfig" ,fontconfig)
8564 ("freeglut" ,freeglut)
8565 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8566 (home-page "https://launchpad.net/4dtris/")
8567 (synopsis "4D Tetris")
8568 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8569 game field is extended to 4D space, which has to filled up by the gamer with
8570 4D hyper cubes.")
8571 (license license:gpl3)))
8572
8573 (define-public arx-libertatis
8574 (package
8575 (name "arx-libertatis")
8576 (version "1.1.2")
8577 (source
8578 (origin
8579 (method url-fetch)
8580 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8581 version ".tar.xz"))
8582 (sha256
8583 (base32
8584 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8585 (build-system cmake-build-system)
8586 (outputs '("out" "installer"))
8587 (arguments
8588 '(#:tests? #f ; No tests.
8589 #:phases
8590 (modify-phases %standard-phases
8591 (add-after 'unpack 'fix-install-helper-paths
8592 (lambda* (#:key inputs #:allow-other-keys)
8593 (let ((p7zip (assoc-ref inputs "p7zip"))
8594 (innoextract (assoc-ref inputs "innoextract"))
8595 (wget (assoc-ref inputs "wget"))
8596 (zenity (assoc-ref inputs "zenity")))
8597 (substitute* "scripts/arx-install-data"
8598 (("have innoextract")
8599 (string-append "have " innoextract "/bin/innoextract"))
8600 (("then innoextract")
8601 (string-append "then " innoextract "/bin/innoextract"))
8602 (("else innoextract")
8603 (string-append "else " innoextract "/bin/innoextract"))
8604 (("for _extract_zip_sz in 7za 7z")
8605 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8606 (("else if have 7z")
8607 (string-append "else if have " p7zip "/bin/7za"))
8608 (("7z x -tiso")
8609 (string-append p7zip "/bin/7z x -tiso"))
8610 (("if have wget")
8611 (string-append "if have " wget "/bin/wget"))
8612 (("wget -O")
8613 (string-append wget "/bin/wget -O"))
8614 (("for backend in \\$preferred zenity")
8615 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8616 (("zenity +--title")
8617 (string-append zenity "/bin/zenity --title"))
8618 (("^zenity\\)")
8619 (string-append zenity "/bin/zenity)"))))
8620 #t))
8621 (add-after 'install 'move-installer
8622 (lambda* (#:key outputs #:allow-other-keys)
8623 (let ((out (assoc-ref outputs "out"))
8624 (installer (assoc-ref outputs "installer")))
8625 (mkdir-p (string-append installer "/bin"))
8626 (rename-file (string-append out "/bin/arx-install-data")
8627 (string-append installer "/bin/arx-install-data"))))))))
8628 (inputs
8629 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8630 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8631 ("glew" ,glew)
8632 ("openal" ,openal)
8633 ("zlib" ,zlib)
8634 ("boost" ,boost)
8635 ("glm" ,glm)
8636 ("freetype" ,freetype)
8637 ;; The following are only needed by the arx-install-data script.
8638 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8639 ("zenity" ,zenity) ; GUI for install-helper.
8640 ("wget" ,wget) ; Used by the install-helper to download the patch.
8641 ;; The install-helper needs it to extract the patch.
8642 ("innoextract" ,innoextract)))
8643 (home-page "https://arx-libertatis.org/")
8644 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8645 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8646 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8647 This port however does not include the game data, so you need to obtain a copy
8648 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8649 features crafting, melee and ranged combat, as well as a unique casting system
8650 where the player draws runes in real time to effect the desired spell.")
8651 (license license:gpl3+)))
8652
8653 (define-public edgar
8654 (package
8655 (name "edgar")
8656 (version "1.33")
8657 (source
8658 (origin
8659 (method url-fetch)
8660 (uri
8661 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8662 version "/edgar-" version "-1.tar.gz"))
8663 (sha256
8664 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8665 (build-system gnu-build-system)
8666 (arguments '(#:tests? #f ; there are no tests
8667 #:make-flags
8668 (list "CC=gcc"
8669 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8670 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8671 #:phases
8672 (modify-phases %standard-phases
8673 (delete 'configure)
8674 (add-before 'build 'fix-env
8675 (lambda* (#:key inputs #:allow-other-keys)
8676 (setenv "CPATH"
8677 (string-append (assoc-ref inputs "sdl2-union")
8678 "/include/SDL2:"
8679 (or (getenv "CPATH") "")))
8680 #t)))))
8681 (inputs
8682 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8683 ("zlib" ,zlib)))
8684 (native-inputs
8685 `(("pkg-config" ,pkg-config)
8686 ("autoconf" ,autoconf)
8687 ("automake" ,automake)
8688 ("gnu-gettext" ,gettext-minimal)
8689 ("libtool" ,libtool)
8690 ("which" ,which)))
8691 (synopsis "2d action platformer game")
8692 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8693 When Edgar's father fails to return home after venturing out one dark and stormy night,
8694 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8695 a fortress beyond the forbidden swamp.")
8696 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8697 (license license:gpl2+)))
8698
8699 (define-public openclonk
8700 (package
8701 (name "openclonk")
8702 (version "8.1")
8703 (source (origin
8704 (method url-fetch)
8705 (uri (string-append
8706 "https://www.openclonk.org/builds/release/" version "/"
8707 "openclonk-" version "-src.tar.bz2"))
8708 (sha256
8709 (base32
8710 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8711 (build-system cmake-build-system)
8712 (arguments
8713 `(#:configure-flags '("-DAudio_TK=OpenAL")
8714 #:test-target "tests"
8715 #:phases
8716 (modify-phases %standard-phases
8717 (add-after 'unpack 'prepare-gmock
8718 (lambda* (#:key inputs #:allow-other-keys)
8719 (mkdir "gmock")
8720 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8721 (substitute* "tests/CMakeLists.txt"
8722 (("/usr/src/gmock")
8723 (string-append (getcwd) "/gmock/googlemock"))
8724 (("/usr/src/gtest")
8725 (string-append (getcwd) "/gmock/googletest"))
8726 (("PATH_SUFFIXES \"src\" \"gtest\"")
8727 "PATH_SUFFIXES \"src\""))
8728 #t))
8729 (add-after 'unpack 'adjust-backward-cpp-includes
8730 (lambda _
8731 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8732 ;; that includes external libraries such as libdl from glibc.
8733 ;; By default, CMake interface includes are treated as "system
8734 ;; headers", and GCC behaves poorly when glibc is passed as a
8735 ;; system header (causing #include_next failures).
8736
8737 ;; Here we prevent targets that consume the Backward::Backward
8738 ;; interface from treating it as "system includes".
8739 (substitute* "CMakeLists.txt"
8740 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8741 (string-append "set_property(TARGET " target " PROPERTY "
8742 "NO_SYSTEM_FROM_IMPORTED true)\n"
8743 all)))
8744 #t))
8745 (add-after 'unpack 'add-libiberty
8746 ;; Build fails upon linking executables without this.
8747 (lambda _
8748 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8749 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8750 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8751 #t))
8752 (add-after 'add-libiberty 'lax-freealut-requirement
8753 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8754 ;; it as 1.0.1. Force minimal version.
8755 (lambda _
8756 (substitute* "cmake/FindAudio.cmake"
8757 (("freealut>=1.1.0") "freealut>=1.0.1"))
8758 #t))
8759 (add-after 'lax-freealut-requirement 'fix-directories
8760 ;; Prefer "$out/share/openclonk" over
8761 ;; "$out/share/games/openclonk". Also install "openclonk"
8762 ;; binary in "bin/", not "games/".
8763 (lambda _
8764 (substitute* "CMakeLists.txt"
8765 (("share/games/openclonk") "share/openclonk")
8766 (("TARGETS openclonk DESTINATION games")
8767 "TARGETS openclonk DESTINATION bin"))
8768 #t)))))
8769 (native-inputs
8770 `(("googlemock" ,(package-source googletest))
8771 ("googletest" ,googletest)
8772 ("pkg-config" ,pkg-config)))
8773 (inputs
8774 `(("freealut" ,freealut)
8775 ("freetype" ,freetype)
8776 ("glew" ,glew)
8777 ("libiberty" ,libiberty)
8778 ("libjpeg" ,libjpeg-turbo)
8779 ("libogg" ,libogg)
8780 ("libpng" ,libpng)
8781 ("libvorbis" ,libvorbis)
8782 ("libxrandr" ,libxrandr)
8783 ("mesa" ,mesa)
8784 ("miniupnpc" ,miniupnpc)
8785 ("openal" ,openal)
8786 ("qtbase" ,qtbase)
8787 ("readline" ,readline)
8788 ("sdl" ,sdl2)
8789 ("tinyxml" ,tinyxml)
8790 ("zlib" ,zlib)))
8791 (home-page "https://www.openclonk.org/")
8792 (synopsis
8793 "Multiplayer action game where you control small and nimble humanoids")
8794 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8795 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8796 antfarm-style landscape, the player controls a crew of Clonks, small but
8797 robust humanoid beings. The game encourages free play but the normal goal is
8798 to either exploit valuable resources from the earth by building a mine or
8799 fight each other on an arena-like map.")
8800 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8801 (license (list license:isc license:cc-by3.0))))
8802
8803 (define-public flare-engine
8804 (package
8805 (name "flare-engine")
8806 (version "1.11")
8807 (source (origin
8808 (method git-fetch)
8809 (uri (git-reference
8810 (url "https://github.com/flareteam/flare-engine")
8811 (commit (string-append "v" version))))
8812 (file-name (git-file-name name version))
8813 (sha256
8814 (base32
8815 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8816 (build-system cmake-build-system)
8817 (arguments
8818 `(#:tests? #f ;no test
8819 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8820 (inputs
8821 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8822 ("python" ,python-wrapper)
8823 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8824 (home-page "http://www.flarerpg.org/")
8825 (synopsis "Action Roleplaying Engine")
8826 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8827 game engine built to handle a very specific kind of game: single-player 2D
8828 action RPGs.")
8829 (license license:gpl3+)))
8830
8831 (define-public flare-game
8832 (package
8833 (name "flare-game")
8834 (version "1.11")
8835 (source (origin
8836 (method git-fetch)
8837 (uri (git-reference
8838 (url "https://github.com/flareteam/flare-game")
8839 (commit (string-append "v" version))))
8840 (file-name (git-file-name name version))
8841 (sha256
8842 (base32
8843 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8844 (build-system cmake-build-system)
8845 (arguments
8846 `(#:tests? #f ;no test
8847 #:configure-flags '("-DDATADIR=share/flare")
8848 #:phases
8849 (modify-phases %standard-phases
8850 ;; Flare expects the mods to be located in the same folder.
8851 ;; Yet, "default" mod is in the engine, whereas the others
8852 ;; are in the current package. Merge everything here with
8853 ;; a symlink.
8854 (add-after 'install 'add-default-mod
8855 (lambda* (#:key inputs outputs #:allow-other-keys)
8856 (let* ((out (assoc-ref outputs "out"))
8857 (mods (string-append out "/share/flare/mods")))
8858 (with-directory-excursion mods
8859 (symlink (string-append (assoc-ref inputs "flare-engine")
8860 "/share/flare/mods/default")
8861 "default")))
8862 #t))
8863 (add-after 'install 'install-executable
8864 ;; The package only provides assets for the game, the
8865 ;; executable coming from "flare-engine". Since more than
8866 ;; one game may use the engine, we create a new executable,
8867 ;; "flare-game", which launches the engine with appropriate
8868 ;; parameters.
8869 (lambda* (#:key inputs outputs #:allow-other-keys)
8870 (let* ((out (assoc-ref outputs "out"))
8871 (bash (string-append (assoc-ref inputs "bash")
8872 "/bin/bash"))
8873 (flare (string-append (assoc-ref inputs "flare-engine")
8874 "/bin/flare"))
8875 (script (string-append out "/bin/flare-game")))
8876 (mkdir-p (dirname script))
8877 (call-with-output-file script
8878 (lambda (port)
8879 (format port
8880 "#!~a
8881 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8882 bash
8883 flare
8884 out)))
8885 (chmod script #o755))
8886 #t)))))
8887 (inputs
8888 `(("flare-engine" ,flare-engine)))
8889 (home-page "http://www.flarerpg.org/")
8890 (synopsis "Fantasy action RPG using the FLARE engine")
8891 (description "Flare is a single-player 2D action RPG with
8892 fast-paced action and a dark fantasy style.")
8893 (license license:cc-by-sa3.0)))
8894
8895 (define-public meritous
8896 (package
8897 (name "meritous")
8898 (version "1.5")
8899 (source (origin
8900 (method git-fetch)
8901 (uri (git-reference
8902 (url "https://gitlab.com/meritous/meritous.git")
8903 (commit (string-append "v" version))))
8904 (file-name (git-file-name name version))
8905 (sha256
8906 (base32
8907 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8908 (build-system gnu-build-system)
8909 (arguments
8910 `(#:tests? #f ;no test
8911 #:make-flags
8912 (list "CC=gcc"
8913 (string-append "prefix=" (assoc-ref %outputs "out")))
8914 #:phases
8915 (modify-phases %standard-phases
8916 (delete 'configure)
8917 (add-after 'unpack 'fix-sdl-path
8918 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
8919 ;; directory, not SDL-union provided as an input to the package.
8920 ;; We force the latter with "--prefix=" option.
8921 (lambda* (#:key inputs #:allow-other-keys)
8922 (substitute* "Makefile"
8923 (("sdl-config" command)
8924 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8925 #t))
8926 (add-after 'unpack 'fix-crash
8927 ;; XXX: Songs are not present in the repository, due to licensing
8928 ;; issues. Yet, the game tries to load them, and, since it cannot
8929 ;; find them, crashes. Users cannot add them back, the store being
8930 ;; read-only, so we turn off background music altogether.
8931 (lambda _
8932 (substitute* "src/audio.c"
8933 (("PlayBackgroundMusic\\(new_track\\);" all)
8934 (string-append "// " all)))
8935 #t)))))
8936 (native-inputs
8937 `(("intltool" ,intltool)))
8938 (inputs
8939 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
8940 ("zlib" ,zlib)))
8941 (home-page "https://gitlab.com/meritous/meritous")
8942 (synopsis "Action-adventure dungeon crawl game")
8943 (description "Far below the surface of the planet is a place of limitless
8944 power. Those that seek to control such a utopia will soon bring an end to
8945 themselves. Seeking an end to the troubles that plague him, PSI user Merit
8946 journeys into the hallowed Orcus Dome in search of answers.
8947
8948 Meritous is a action-adventure game with simple controls but a challenge to
8949 find a balance of power versus recovery time during real-time battles. Set in
8950 a procedurally generated world, the player can explore thousands of rooms in
8951 search of powerful artifacts, tools to help them, and to eventually free the
8952 Orcus Dome from evil.")
8953 (license license:gpl3+)))
8954
8955 (define-public marble-marcher
8956 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
8957 (revision "1"))
8958 (package
8959 (name "marble-marcher")
8960 (version (git-version "0" revision commit))
8961 (source (origin
8962 (method git-fetch)
8963 (uri (git-reference
8964 (url "https://github.com/HackerPoet/MarbleMarcher")
8965 (commit commit)))
8966 (file-name (git-file-name name version))
8967 (sha256
8968 (base32
8969 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
8970 (build-system cmake-build-system)
8971 (arguments
8972 `(#:tests? #f ; there are none
8973 #:phases
8974 (modify-phases %standard-phases
8975 (add-after 'unpack 'embed-asset-directory
8976 (lambda* (#:key outputs #:allow-other-keys)
8977 (let ((assets (string-append (assoc-ref outputs "out")
8978 "/share/marble-marcher/assets/")))
8979 ;; Some of the files we're patching are
8980 ;; ISO-8859-1-encoded, so choose it as the default
8981 ;; encoding so the byte encoding is preserved.
8982 (with-fluids ((%default-port-encoding #f))
8983 (substitute* "src/Resource.rc"
8984 (("../assets/icon.ico")
8985 (string-append assets "icon.ico")))
8986 (substitute* "src/Res.h"
8987 (("assets/") assets))))
8988 #t))
8989 (replace 'install
8990 (lambda* (#:key outputs #:allow-other-keys)
8991 (let* ((out (assoc-ref outputs "out"))
8992 (assets (string-append out "/share/marble-marcher/assets"))
8993 (bin (string-append out "/bin/")))
8994 (mkdir-p bin)
8995 (mkdir-p assets)
8996 (copy-recursively "../source/assets" assets)
8997 (install-file "MarbleMarcher" bin))
8998 #t)))))
8999 (inputs
9000 `(("eigen" ,eigen)
9001 ("mesa" ,mesa)
9002 ("sfml" ,sfml)))
9003 (native-inputs
9004 `(("pkg-config" ,pkg-config)))
9005 (home-page "https://codeparade.itch.io/marblemarcher")
9006 (synopsis "Guide a marble across fractal landscapes")
9007 (description "Marble Marcher is a video game that uses a fractal physics
9008 engine and fully procedural rendering to produce beautiful and unique
9009 gameplay. The game is played on the surface of evolving fractals. The goal
9010 of the game is to get your marble to the flag as quickly as possible. But be
9011 careful not to fall off the level or get crushed by the fractal! There are 24
9012 levels to unlock.")
9013 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
9014 (license (list license:gpl2+
9015 license:silofl1.1
9016 license:cc-by-sa3.0)))))
9017
9018 ;; This must be updated together with flightgear.
9019 (define simgear
9020 (package
9021 (name "simgear")
9022 (version "2018.3.5")
9023 (source
9024 (origin
9025 (method url-fetch)
9026 (uri (string-append "mirror://sourceforge/flightgear/release-"
9027 (version-major+minor version) "/"
9028 "simgear-" version ".tar.bz2"))
9029 (sha256
9030 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
9031 (build-system cmake-build-system)
9032 (arguments
9033 `(#:phases
9034 (modify-phases %standard-phases
9035 (replace 'check
9036 (lambda _
9037 ;; Skip tests that require internet access.
9038 (invoke "ctest" "-E" "(http|dns)"))))))
9039 (inputs
9040 `(("boost" ,boost-for-mysql) ; fails with 1.69
9041 ("curl" ,curl)
9042 ("expat" ,expat)
9043 ("mesa" ,mesa)
9044 ("openal" ,openal)
9045 ("openscenegraph" ,openscenegraph-3.4)
9046 ("zlib" ,zlib)))
9047 (home-page "https://home.flightgear.org/")
9048 (synopsis "Libraries for 3D simulations and games")
9049 (description "SimGear is a set of libraries designed to be used as
9050 building blocks for quickly assembling 3D simulations, games, and
9051 visualization applications. SimGear is developed by the FlightGear project
9052 and also provides the base for the FlightGear Flight Simulator.")
9053 (license license:lgpl2.0+)))
9054
9055 (define-public flightgear
9056 (package
9057 (name "flightgear")
9058 (version (package-version simgear))
9059 (source
9060 (origin
9061 (method url-fetch)
9062 (uri (string-append "mirror://sourceforge/flightgear/release-"
9063 (version-major+minor version) "/"
9064 "flightgear-" version ".tar.bz2"))
9065 (sha256
9066 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
9067 (modules '((guix build utils)))
9068 (snippet
9069 '(begin
9070 ;; There are some bundled libraries.
9071 (for-each delete-file-recursively
9072 '("3rdparty/sqlite3/"))
9073 #t))))
9074 (build-system cmake-build-system)
9075 (arguments
9076 `(#:configure-flags
9077 (list "-DSYSTEM_SQLITE=ON"
9078 (string-append "-DFG_DATA_DIR="
9079 (assoc-ref %outputs "out")
9080 "/share/flightgear"))
9081 ;; TODO: test cannot be run because the "run_test_suite" executable
9082 ;; does not seem to be built.
9083 #:tests? #f
9084 #:phases
9085 (modify-phases %standard-phases
9086 (add-after 'install 'wrap-executable
9087 (lambda* (#:key inputs outputs #:allow-other-keys)
9088 (let ((out (assoc-ref outputs "out")))
9089 (wrap-program (string-append out "/bin/fgfs")
9090 `("QT_PLUGIN_PATH" ":" prefix
9091 ,(map (lambda (label)
9092 (string-append (assoc-ref inputs label)
9093 "/lib/qt5/plugins"))
9094 '("qtbase" "qtdeclarative" "qtsvg")))
9095 `("QML2_IMPORT_PATH" ":" prefix
9096 ,(map (lambda (label)
9097 (string-append (assoc-ref inputs label)
9098 "/lib/qt5/qml"))
9099 '("qtdeclarative" "qtsvg"))))
9100 #t)))
9101 (add-after 'install 'install-data
9102 (lambda* (#:key inputs outputs #:allow-other-keys)
9103 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
9104 (mkdir-p share)
9105 (with-directory-excursion share
9106 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
9107 "--strip-components=1")))
9108 #t)))))
9109 (inputs
9110 `(("boost" ,boost-for-mysql) ; same as simgear
9111 ("dbus" ,dbus)
9112 ("eudev" ,eudev)
9113 ("freeglut" ,freeglut)
9114 ("freetype" ,freetype)
9115 ("glew" ,glew)
9116 ("libpng" ,libpng)
9117 ("openal" ,openal)
9118 ("openscenegraph" ,openscenegraph-3.4)
9119 ("plib" ,plib)
9120 ("qtbase" ,qtbase)
9121 ("qtdeclarative" ,qtdeclarative)
9122 ("qtsvg" ,qtsvg)
9123 ("simgear" ,simgear)
9124 ("speexdsp" ,speexdsp)
9125 ("sqlite" ,sqlite)
9126 ("zlib" ,zlib)))
9127 (native-inputs
9128 `(("cppunit" ,cppunit)
9129 ("pkg-config" ,pkg-config)
9130 ("qttools" ,qttools)
9131 ("flightgear-data"
9132 ,(origin
9133 (method url-fetch)
9134 (uri (string-append "mirror://sourceforge/flightgear/release-"
9135 (version-major+minor version) "/"
9136 "FlightGear-" version "-data.tar.bz2"))
9137 (sha256
9138 (base32
9139 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9140 (home-page "https://home.flightgear.org/")
9141 (synopsis "Flight simulator")
9142 (description "The goal of the FlightGear project is to create a
9143 sophisticated flight simulator framework for use in research or academic
9144 environments, pilot training, as an industry engineering tool, for DIY-ers to
9145 pursue their favorite interesting flight simulation idea, and last but
9146 certainly not least as a fun, realistic, and challenging desktop flight
9147 simulator.")
9148 (license license:gpl2+)))
9149
9150 (define-public jumpnbump
9151 (package
9152 (name "jumpnbump")
9153 (version "1.61")
9154 (source (origin
9155 (method git-fetch)
9156 (uri (git-reference
9157 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9158 (commit version)))
9159 (file-name (git-file-name name version))
9160 (sha256
9161 (base32
9162 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9163 (build-system gnu-build-system)
9164 (arguments
9165 `(#:make-flags
9166 (list "CC=gcc"
9167 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9168 #:tests? #f ;no test
9169 #:phases
9170 (modify-phases %standard-phases
9171 (delete 'configure) ;no configure script
9172 (add-after 'unpack 'fix-sdl-path
9173 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9174 ;; directory, not SDL-union provided as an input to the package.
9175 ;; We force the latter with "--prefix=" option.
9176 (lambda* (#:key inputs #:allow-other-keys)
9177 (substitute* "Makefile"
9178 (("sdl2-config" command)
9179 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9180 #t)))))
9181 (inputs
9182 `(("bzip2" ,bzip2)
9183 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9184 ("zlib" ,zlib)))
9185 (native-inputs
9186 `(("gettext" ,gettext-minimal))) ;for msgfmt
9187 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9188 (synopsis "Multiplayer platform game with bunnies")
9189 (description "You, as a bunny, have to jump on your opponents to make them
9190 explode. It is a true multiplayer game; you cannot play this alone. You can
9191 play with up to four players simultaneously. It has network support.")
9192 (license license:gpl2+)))
9193
9194 (define-public hedgewars
9195 (package
9196 (name "hedgewars")
9197 (version "1.0.0")
9198 (source (origin
9199 (method url-fetch)
9200 (uri (string-append "https://www.hedgewars.org/download/releases/"
9201 "hedgewars-src-" version ".tar.bz2"))
9202 (sha256
9203 (base32
9204 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9205 (build-system cmake-build-system)
9206 (arguments
9207 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9208 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9209 ;; a Pascal to C translator and Clang instead.
9210 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9211 "-Dhaskell_flags=-dynamic;-fPIC")
9212 #:phases
9213 (modify-phases %standard-phases
9214 (replace 'check
9215 (lambda _ (invoke "ctest")))
9216 (add-after 'install 'install-icon
9217 (lambda _
9218 ;; Install icon for the desktop file.
9219 (let* ((out (assoc-ref %outputs "out"))
9220 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9221 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9222 (install-file "misc/hedgewars.png" icons)))
9223 #t)))))
9224 (inputs
9225 `(("ffmpeg" ,ffmpeg)
9226 ("freeglut" ,freeglut)
9227 ("ghc-entropy" ,ghc-entropy)
9228 ("ghc-hslogger" ,ghc-hslogger)
9229 ("ghc-network" ,ghc-network)
9230 ("ghc-random" ,ghc-random)
9231 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9232 ("ghc-sandi" ,ghc-sandi)
9233 ("ghc-sha" ,ghc-sha)
9234 ("ghc-utf8-string" ,ghc-utf8-string)
9235 ("ghc-vector" ,ghc-vector)
9236 ("ghc-zlib" ,ghc-zlib)
9237 ("glew" ,glew)
9238 ("libpng" ,libpng)
9239 ("lua" ,lua-5.1)
9240 ("physfs" ,physfs)
9241 ("qtbase" ,qtbase)
9242 ("sdl" ,(sdl-union
9243 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9244 (native-inputs
9245 `(("clang" ,clang)
9246 ("ghc" ,ghc)
9247 ("pkg-config" ,pkg-config)
9248 ("qttools" ,qttools)))
9249 (home-page "https://hedgewars.org/")
9250 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9251 (description
9252 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9253 featuring the antics of pink hedgehogs with attitude as they battle from the
9254 depths of hell to the depths of space.
9255
9256 As commander, it's your job to assemble your crack team of hedgehog soldiers
9257 and bring the war to your enemy.")
9258 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9259 ;; scripts are distributed under various terms.
9260 (license (list license:gpl2
9261 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9262 license:expat license:fdl1.3+ license:public-domain
9263 license:zlib))))
9264
9265 (define-public harmonist
9266 (package
9267 (name "harmonist")
9268 (version "0.3.0")
9269 (source (origin
9270 (method git-fetch)
9271 (uri (git-reference
9272 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9273 (commit (string-append "v" version))))
9274 (file-name (git-file-name name version))
9275 (sha256
9276 (base32
9277 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
9278 (build-system go-build-system)
9279 (arguments
9280 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9281 (inputs
9282 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
9283 (home-page "https://harmonist.tuxfamily.org/")
9284 (synopsis "Stealth coffee-break roguelike game")
9285 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9286 coffee-break roguelike game. The game has a heavy focus on tactical
9287 positioning, light and noise mechanisms, making use of various terrain types
9288 and cones of view for monsters. Aiming for a replayable streamlined experience,
9289 the game avoids complex inventory management and character building, relying
9290 on items and player adaptability for character progression.")
9291 (license license:isc)))
9292
9293 (define-public harmonist-tk
9294 (package
9295 (inherit harmonist)
9296 (name "harmonist-tk")
9297 (arguments
9298 (append
9299 (package-arguments harmonist)
9300 `(#:phases
9301 (modify-phases %standard-phases
9302 (replace 'build
9303 (lambda _
9304 (invoke "go" "install" "-v" "-x" "--tags" "tk"
9305 "git.tuxfamily.org/harmonist/harmonist")))
9306 (replace 'check
9307 (lambda _
9308 (invoke "go" "test" "--tags" "tk"
9309 "git.tuxfamily.org/harmonist/harmonist")))))))
9310 (inputs
9311 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
9312
9313 (define-public drascula
9314 (package
9315 (name "drascula")
9316 (version "1.0")
9317 (source (origin
9318 (method url-fetch)
9319 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9320 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9321 "drascula-" version ".zip"))
9322 (sha256
9323 (base32
9324 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9325 (build-system trivial-build-system)
9326 (arguments
9327 `(#:modules ((guix build utils))
9328 #:builder
9329 (begin
9330 (use-modules (guix build utils)
9331 (ice-9 match))
9332 (let* ((out (assoc-ref %outputs "out"))
9333 (share (string-append out "/share/drascula"))
9334 (scummvm (assoc-ref %build-inputs "scummvm")))
9335 ;; Install data.
9336 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9337 "/bin/unzip"))
9338 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9339 (for-each
9340 (lambda (input)
9341 (invoke unzip
9342 "-j"
9343 (assoc-ref %build-inputs input)
9344 "-x" "__MACOSX")
9345 ;; Every input provides "readme.txt", and we want to
9346 ;; preserve them all. Therefore we rename them first.
9347 (match input
9348 ("drascula-int"
9349 (rename-file "readme.txt" "readme-international.txt"))
9350 ("drascula-audio"
9351 (rename-file "readme.txt" "readme-audio.txt"))
9352 (_ #f))
9353 ;; Install documentation.
9354 (for-each (lambda (f) (install-file f doc))
9355 (find-files "." "\\.(txt|doc)$"))
9356 ;; Install data.
9357 (for-each (lambda (f) (install-file f share))
9358 (find-files "." "\\.(ogg|00[0-9])$")))
9359 '("drascula-audio" "drascula-int" "source")))
9360 ;; Create standalone executable.
9361 (let* ((bin (string-append out "/bin"))
9362 (executable (string-append bin "/drascula"))
9363 (bash (string-append (assoc-ref %build-inputs "bash")
9364 "/bin/bash")))
9365 (mkdir-p bin)
9366 (with-output-to-file executable
9367 (lambda ()
9368 (format #t "#!~a~%" bash)
9369 (format #t
9370 "exec ~a/bin/scummvm --path=~a drascula~%"
9371 scummvm share)))
9372 (chmod executable #o755))
9373 ;; Create desktop file. There is no dedicated icon for the
9374 ;; game, so we borrow SCUMMVM's.
9375 (let ((apps (string-append out "/share/applications")))
9376 (mkdir-p apps)
9377 (make-desktop-entry-file
9378 (string-append apps "/drascula.desktop")
9379 #:name "Drascula: The Vampire Strikes Back"
9380 #:generic-name "Drascula"
9381 #:exec (string-append out "/bin/drascula")
9382 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9383 #:categories '("AdventureGame" "Game" "RolePlaying")
9384 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9385 #:comment '((#f "Classic 2D point and click adventure game")
9386 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9387 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9388 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9389 #t))))
9390 (native-inputs
9391 `(("bash" ,bash)
9392 ("unzip" ,unzip)))
9393 (inputs
9394 `(("scummvm" ,scummvm)
9395 ("drascula-int"
9396 ,(let ((version "1.1"))
9397 (origin
9398 (method url-fetch)
9399 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9400 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9401 "drascula-int-" version ".zip"))
9402 (sha256
9403 (base32
9404 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9405 ("drascula-audio"
9406 ,(let ((version "2.0"))
9407 (origin
9408 (method url-fetch)
9409 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9410 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9411 "drascula-audio-" version ".zip"))
9412 (sha256
9413 (base32
9414 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9415 (home-page "https://www.scummvm.org")
9416 (synopsis "Classic 2D point and click adventure game")
9417 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9418 point and click adventure game.
9419
9420 In Drascula you play the role of John Hacker, a British estate agent, that
9421 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9422 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9423 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9424 the World and demonstrating that he is even more evil than his brother Vlad.")
9425 ;; Drascula uses a BSD-like license.
9426 (license (license:non-copyleft "file:///readme.txt"))))
9427
9428 (define (make-lure-package name language hash)
9429 (package
9430 (name name)
9431 (version "1.1")
9432 (source
9433 (origin
9434 (method url-fetch)
9435 (uri (string-append
9436 "mirror://sourceforge/scummvm/extras/"
9437 "Lure%20of%20the%20Temptress/"
9438 name "-" version ".zip"))
9439 (sha256
9440 (base32 hash))))
9441 (build-system trivial-build-system)
9442 (arguments
9443 `(#:modules ((guix build utils))
9444 #:builder
9445 (begin
9446 (use-modules (guix build utils))
9447 (let* ((out (assoc-ref %outputs "out"))
9448 (share (string-append out "/share"))
9449 (data (string-append share "/" ,name "/" ,language))
9450 (apps (string-append share "/applications"))
9451 (bin (string-append out "/bin"))
9452 (executable (string-append bin "/" ,name))
9453 (scummvm (assoc-ref %build-inputs "scummvm")))
9454 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9455 "/bin/unzip")))
9456 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9457 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9458 (for-each (lambda (f) (install-file f doc))
9459 (find-files "." "\\.(txt|PDF|pdf)$")))
9460 (for-each (lambda (f) (install-file f data))
9461 (find-files "." "\\.(vga|VGA)$"))
9462 ;; Build the executable.
9463 (mkdir-p bin)
9464 (let ((bash (assoc-ref %build-inputs "bash")))
9465 (with-output-to-file executable
9466 (lambda ()
9467 (format #t "#!~a/bin/bash~%" bash)
9468 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9469 scummvm ,language data))))
9470 (chmod executable #o755)
9471 ;; Create desktop file. There is no dedicated
9472 ;; icon for the game, so we borrow SCUMMVM's.
9473 (mkdir-p apps)
9474 (with-output-to-file (string-append apps "/" ,name ".desktop")
9475 (lambda _
9476 (format #t
9477 "[Desktop Entry]~@
9478 Name=Lure of the Temptress~@
9479 GenericName=Lure~@
9480 Exec=~a~@
9481 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9482 Categories=AdventureGame;Game;RolePlaying;~@
9483 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9484 Comment=Classic 2D point and click adventure game~@
9485 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9486 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9487 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9488 Type=Application~%"
9489 executable scummvm)))
9490 #t))))
9491 (native-inputs
9492 `(("unzip" ,unzip)))
9493 (inputs
9494 `(("bash" ,bash)
9495 ("scummvm" ,scummvm)))
9496 (home-page "https://www.scummvm.org")
9497 (synopsis "2D point and click fantasy adventure game")
9498 (description
9499 "Lure of the Temptress is a classic 2D point and click adventure game.
9500
9501 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9502 intents and purposes, a good man. After decades of unrest the King has united
9503 the warring factions in his kingdom and all his lands are at peace, except
9504 a remote region around a town called Turnvale. A revolt has recently taken
9505 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9506 Selena, the titular temptress. The king calls together his finest horsemen
9507 and heads off (with you in tow) to Turnvale just to witness how hellish
9508 mercenary monsters called Skorl are invading the town.
9509
9510 The king's men are defeated, the king is killed and you fall of your horse and
9511 bang your head heavily on the ground. You have been *unconscious for a while
9512 when you realize that you are in a dingy cell guarded by a not so friendly
9513 Skorl. Maybe it would be an idea to try and escape...")
9514 (license (license:non-copyleft "file:///README"))))
9515
9516 (define-public lure
9517 (make-lure-package
9518 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9519
9520 (define-public lure-de
9521 (make-lure-package
9522 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9523
9524 (define-public lure-es
9525 (make-lure-package
9526 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9527
9528 (define-public lure-fr
9529 (make-lure-package
9530 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9531
9532 (define-public lure-it
9533 (make-lure-package
9534 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9535
9536 (define (make-queen-package name file-prefix release language hash)
9537 (package
9538 (name name)
9539 (version release)
9540 (source
9541 (origin
9542 (method url-fetch)
9543 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9544 "Flight%20of%20the%20Amazon%20Queen/"
9545 file-prefix release ".zip"))
9546 (sha256
9547 (base32 hash))))
9548 (build-system trivial-build-system)
9549 (arguments
9550 `(#:modules ((guix build utils))
9551 #:builder
9552 (begin
9553 (use-modules (guix build utils))
9554 (let* ((out (assoc-ref %outputs "out"))
9555 (share (string-append out "/share"))
9556 (data (string-append share "/" ,name))
9557 (apps (string-append share "/applications"))
9558 (bin (string-append out "/bin"))
9559 (executable (string-append bin "/" ,name))
9560 (scummvm (assoc-ref %build-inputs "scummvm")))
9561 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9562 "/bin/unzip")))
9563 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9564 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9565 (install-file "readme.txt" doc))
9566 (install-file "queen.1c" data)
9567 (mkdir-p bin)
9568 (let ((bash (assoc-ref %build-inputs "bash")))
9569 (with-output-to-file executable
9570 (lambda ()
9571 (format #t "#!~a/bin/bash~%" bash)
9572 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9573 scummvm data))))
9574 (chmod executable #o755)
9575 ;; Create desktop file. There is no dedicated
9576 ;; icon for the game, so we borrow SCUMMVM's.
9577 (mkdir-p apps)
9578 (with-output-to-file (string-append apps "/" ,name ".desktop")
9579 (lambda _
9580 (format #t
9581 "[Desktop Entry]~@
9582 Name=Flight of the Amazon Queen~@
9583 GenericName=Queen~@
9584 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~@
9585 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~@
9586 Type=Application~@
9587 Exec=~a~@
9588 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9589 Categories=AdventureGame;Game;RolePlaying;~@
9590 Keywords=adventure;game;roleplaying;fantasy;~%"
9591 executable scummvm))))
9592 #t)))
9593 (native-inputs
9594 `(("unzip" ,unzip)))
9595 (inputs
9596 `(("bash" ,bash)
9597 ("scummvm" ,scummvm)))
9598 (home-page "https://www.scummvm.org/")
9599 (synopsis "Classic 2D point and click adventure game")
9600 (description "Flight of the Amazon Queen is a 2D point-and-click
9601 adventure game set in the 1940s.
9602
9603 You assume the role of Joe King, a pilot for hire who is given the job
9604 of flying Faye Russell (a famous movie star) into the Amazon jungle
9605 for a photo shoot. Of course, things never go according to plans.
9606 After an unfortunate turn of events they find themselves stranded in
9607 the heart of the Amazon jungle, where Joe will embark on a quest to
9608 rescue a kidnapped princess and in the process, discover the true
9609 sinister intentions of a suspiciously located Lederhosen company. In
9610 a rich 2D environment, Joe will cross paths with a variety of unlikely
9611 jungle inhabitants including, but not limited to, a tribe of Amazon
9612 women and 6-foot-tall pygmies.")
9613 (license (license:non-copyleft "file:///readme.txt"))))
9614
9615 (define-public queen
9616 (make-queen-package
9617 "queen" "FOTAQ_Talkie-" "1.1" "en"
9618 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9619
9620 (define-public queen-de
9621 (make-queen-package
9622 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9623 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9624
9625 (define-public queen-fr
9626 (make-queen-package
9627 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9628 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9629
9630 (define-public queen-it
9631 (make-queen-package
9632 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9633 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9634
9635 (define-public sky
9636 (package
9637 (name "sky")
9638 (version "1.2") ;1.3 is floppy version
9639 (source
9640 (origin
9641 (method url-fetch)
9642 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9643 "Beneath%20a%20Steel%20Sky/"
9644 "bass-cd-" version ".zip"))
9645 (sha256
9646 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9647 (build-system trivial-build-system)
9648 (arguments
9649 `(#:modules ((guix build utils))
9650 #:builder
9651 (begin
9652 (use-modules (guix build utils))
9653 (let* ((out (assoc-ref %outputs "out"))
9654 (share (string-append out "/share"))
9655 (data (string-append share "/" ,name))
9656 (apps (string-append share "/applications"))
9657 (bin (string-append out "/bin"))
9658 (executable (string-append bin "/" ,name))
9659 (scummvm (assoc-ref %build-inputs "scummvm")))
9660 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9661 "/bin/unzip")))
9662 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9663 (let ((doc (string-append share "/doc/bass-" ,version)))
9664 (install-file "readme.txt" doc))
9665 (for-each (lambda (f) (install-file f data))
9666 (find-files "." "^sky\\."))
9667 ;; Build the executable.
9668 (mkdir-p bin)
9669 (let ((bash (assoc-ref %build-inputs "bash")))
9670 (with-output-to-file executable
9671 (lambda ()
9672 (format #t "#!~a/bin/bash~%" bash)
9673 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9674 (chmod executable #o755)
9675 ;; Create desktop file. There is no dedicated
9676 ;; icon for the game, so we borrow SCUMMVM's.
9677 (mkdir-p apps)
9678 (with-output-to-file (string-append apps "/" ,name ".desktop")
9679 (lambda _
9680 (format #t
9681 "[Desktop Entry]~@
9682 Name=Beneath a Steel Sky~@
9683 GenericName=Bass~@
9684 Exec=~a~@
9685 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9686 Categories=AdventureGame;Game;RolePlaying;~@
9687 Keywords=adventure;game;roleplaying;cyberpunk;~@
9688 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9689 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9690 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9691 Type=Application~%"
9692 executable scummvm)))
9693 #t))))
9694 (native-inputs
9695 `(("unzip" ,unzip)))
9696 (inputs
9697 `(("bash" ,bash)
9698 ("scummvm" ,scummvm)))
9699 (home-page "https://www.scummvm.org/")
9700 (synopsis "Classic 2D point and click science-fiction adventure game")
9701 (description
9702 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9703 post-apocalyptic vision of the future. It revolves around Union City,
9704 where selfishness, rivalry, and corruption by its citizens seems to be
9705 all too common, those who can afford it live underground, away from
9706 the pollution and social problems which are plaguing the city.
9707
9708 You take on the role of Robert Foster, an outcast of sorts from the
9709 city since a boy who was raised in a remote environment outside of
9710 Union City simply termed ``the gap''. Robert's mother took him away
9711 from Union City as a child on their way to ``Hobart'' but the
9712 helicopter crashed on its way. Unfortunately, Robert's mother died,
9713 but he survived and was left to be raised by a local tribe from the
9714 gap.
9715
9716 Years later, Union City security drops by and abducts Robert, killing
9717 his tribe in the process; upon reaching the city the helicopter taking
9718 him there crashes with him escaping, high upon a tower block in the
9719 middle of the city. He sets out to discover the truth about his past,
9720 and to seek vengeance for the killing of his tribe.")
9721 (license (license:non-copyleft "file:///readme.txt"))))
9722
9723 (define-public gnurobots
9724 (package
9725 (name "gnurobots")
9726 (version "1.2.0")
9727 (source
9728 (origin
9729 (method url-fetch)
9730 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9731 version ".tar.gz"))
9732 (sha256
9733 (base32
9734 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9735 (build-system gnu-build-system)
9736 (inputs
9737 `(("glib" ,glib)
9738 ("gtk+" ,gtk+-2)
9739 ("vte" ,vte/gtk+-2)
9740 ("readline" ,readline)
9741 ("guile" ,guile-1.8)))
9742 (native-inputs
9743 `(("pkg-config" ,pkg-config)))
9744 (arguments
9745 `(#:make-flags
9746 (list
9747 ;; Do not abort build on "deprecated-declarations" warnings.
9748 "CFLAGS=-Wno-error=deprecated-declarations"
9749 ;; Find readline headers in sub-directory.
9750 (string-append "READLINE_CFLAGS=-I"
9751 (assoc-ref %build-inputs "readline")
9752 "/include/readline/"))
9753 #:phases
9754 (modify-phases %standard-phases
9755 (add-after 'install 'install-doc
9756 (lambda* (#:key outputs #:allow-other-keys)
9757 (install-file "doc/Robots-HOWTO"
9758 (string-append (assoc-ref outputs "out")
9759 "/share/doc/gnurobots-"
9760 ,version))
9761 #t)))))
9762 (home-page "https://www.gnu.org/software/gnurobots/")
9763 (synopsis "Program a little robot and watch it explore a world")
9764 (description
9765 "GNU Robots is a game in which you program a robot to explore a world
9766 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9767 the game is to stay alive and collect prizes. The robot program conveniently
9768 may be written in a plain text file in the Scheme programming language.")
9769 (license license:gpl3+)))
9770
9771 (define-public ri-li
9772 (package
9773 (name "ri-li")
9774 (version "2.0.1")
9775 (source (origin
9776 (method url-fetch)
9777 (uri (string-append "mirror://sourceforge/ri-li/"
9778 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9779 "Ri-li-" version ".tar.bz2"))
9780 (sha256
9781 (base32
9782 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9783 ;; Taken from
9784 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9785 ;; It doesn't build otherwise.
9786 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9787 (build-system gnu-build-system)
9788 (arguments
9789 `(#:phases
9790 (modify-phases %standard-phases
9791 ;; Remove "gentoo" subdirectory from Makefile, as it is
9792 ;; missing a make file and generates a build failure.
9793 (add-after 'configure 'fix-build
9794 (lambda _
9795 (substitute* "Makefile"
9796 ((" gentoo") ""))
9797 #t))
9798 (add-after 'install 'install-desktop-file
9799 (lambda* (#:key outputs #:allow-other-keys)
9800 (let* ((out (assoc-ref outputs "out"))
9801 (apps (string-append out "/share/applications"))
9802 (pixmaps (string-append out "/share/pixmaps")))
9803 (for-each (lambda (f) (install-file f pixmaps))
9804 (find-files "data" "\\.(png|ico)$"))
9805 (mkdir-p apps)
9806 (with-output-to-file (string-append apps "/ri-li.desktop")
9807 (lambda _
9808 (format #t
9809 "[Desktop Entry]~@
9810 Name=Ri-li~@
9811 Exec=~a/bin/Ri_li~@
9812 Icon=~a/Ri-li-icon-32x32.png~@
9813 Categories=Game;ArcadeGame;~@
9814 Keywords=toy;train;wooden;snake-like;engine;~@
9815 Comment=a toy simulator game~@
9816 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9817 Comment[fr]=un jeu de petit train~@
9818 Comment[ro_RO]=un joc cu un tren de jucărie~@
9819 Terminal=false~@
9820 Type=Application~%"
9821 out pixmaps))))
9822 #t))
9823 (add-after 'install-desktop-file 'remove-spurious-files
9824 ;; Delete redundant files already installed somewhere else.
9825 (lambda* (#:key outputs #:allow-other-keys)
9826 (let ((out (assoc-ref outputs "out")))
9827 (for-each delete-file
9828 (find-files (string-append out "/share/Ri-li")
9829 "\\.(png|ico)|COPYING"))
9830 #t))))))
9831 (inputs
9832 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9833 (home-page "http://www.ri-li.org")
9834 (synopsis "Toy train simulation game")
9835 (description "Ri-li is a game in which you drive a wooden toy
9836 steam locomotive across many levels and collect all the coaches to
9837 win.")
9838 ;; The project is dual-licensed GPL2+ and GPL3+.
9839 (license (list license:gpl2+ license:gpl3+))))
9840
9841 (define-public freeorion
9842 (package
9843 (name "freeorion")
9844 (version "0.4.10")
9845 (source
9846 (origin
9847 (method url-fetch)
9848 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9849 "download/v" version "/FreeOrion_v" version
9850 "_2020-07-10.f3d403e_Source.tar.gz"))
9851 (sha256
9852 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9853 (modules '((guix build utils)))
9854 (snippet
9855 '(begin
9856 ;; There are some bundled fonts.
9857 (for-each delete-file-recursively '("default/data/fonts"))
9858 #t))))
9859 (build-system cmake-build-system)
9860 (arguments
9861 '(#:tests? #f ;no test
9862 #:phases
9863 (modify-phases %standard-phases
9864 (add-after 'unpack 'unbundle-fonts
9865 (lambda* (#:key inputs #:allow-other-keys)
9866 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9867 "/share/fonts/truetype/")))
9868 (substitute* "UI/ClientUI.cpp"
9869 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9870 all type)
9871 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9872 #t))))))
9873 (inputs
9874 `(("boost" ,boost)
9875 ("boost_signals" ,boost-signals2)
9876 ("font-dejavu" ,font-dejavu)
9877 ("font-roboto" ,font-google-roboto)
9878 ("freetype2" ,freetype)
9879 ("glew" ,glew)
9880 ("glu" ,glu)
9881 ("libogg" ,libogg)
9882 ("libpng" ,libpng)
9883 ("libvorbis" ,libvorbis)
9884 ("openal" ,openal)
9885 ("python" ,python)
9886 ("sdl2" ,sdl2)
9887 ("zlib" ,zlib)))
9888 (home-page "https://www.freeorion.org/index.php/Main_Page")
9889 (synopsis "Turn-based space empire and galactic conquest computer game")
9890 (description
9891 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9892 computer game being designed and built by the FreeOrion project. Control an
9893 empire with the goal of exploring the galaxy, expanding your territory,
9894 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9895 inspired by the tradition of the Master of Orion games, but is not a clone or
9896 remake of that series or any other game.")
9897 ;; Source code is released under gpl2. Artwork, music and sounds, and
9898 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9899 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9900 ;; released under lgpl2.1+.
9901 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9902
9903 (define-public leela-zero
9904 (package
9905 (name "leela-zero")
9906 (version "0.17")
9907 (source
9908 (origin
9909 (method git-fetch)
9910 (uri (git-reference
9911 (url "https://github.com/leela-zero/leela-zero")
9912 (commit (string-append "v" version))))
9913 (file-name (git-file-name name version))
9914 (sha256
9915 (base32
9916 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
9917 (patches (search-patches "leela-zero-gtest.patch"))))
9918 (build-system cmake-build-system)
9919 (native-inputs
9920 `(("googletest" ,googletest)))
9921 (inputs
9922 `(("boost" ,boost)
9923 ("ocl-icd" ,ocl-icd)
9924 ("openblas" ,openblas)
9925 ("opencl-headers" ,opencl-headers)
9926 ("qtbase" ,qtbase)
9927 ("zlib" ,zlib)))
9928 (arguments
9929 '(#:configure-flags '("-DUSE_BLAS=YES")
9930 #:phases (modify-phases %standard-phases
9931 (add-before 'configure 'fix-tests
9932 (lambda* (#:key outputs #:allow-other-keys)
9933 (let ((home (getcwd)))
9934 (setenv "HOME" home)
9935 (substitute* "src/tests/gtests.cpp"
9936 (("\\.\\./src/tests/0k\\.txt")
9937 (string-append home "/src/tests/0k.txt"))
9938 (("cfg_gtp_mode = true;")
9939 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
9940 #t))
9941 (replace 'check
9942 (lambda _
9943 (invoke "./tests"))))))
9944 (home-page "https://github.com/leela-zero/leela-zero")
9945 (synopsis "Program playing the game of Go")
9946 (description
9947 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
9948 the AlphaGo Zero paper. The current best network weights file for the engine
9949 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
9950 (license license:gpl3+)))
9951
9952 (define-public q5go
9953 (package
9954 (name "q5go")
9955 (version "1.0")
9956 (source (origin
9957 (method git-fetch)
9958 (uri (git-reference
9959 (url "https://github.com/bernds/q5Go")
9960 (commit (string-append "q5go-" version))))
9961 (file-name (git-file-name name version))
9962 (sha256
9963 (base32
9964 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
9965 (build-system gnu-build-system)
9966 (native-inputs
9967 `(("pkg-config" ,pkg-config)))
9968 (inputs
9969 `(("qtbase" ,qtbase)
9970 ("qtmultimedia" ,qtmultimedia)
9971 ("qtsvg" ,qtsvg)))
9972 (arguments
9973 '(#:phases
9974 (modify-phases %standard-phases
9975 (add-after 'unpack 'fix-configure-script
9976 (lambda _
9977 ;; Bypass the unavailable qtchooser program.
9978 (substitute* "configure"
9979 (("test -z \"QTCHOOSER\"")
9980 "false")
9981 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
9982 command))
9983 #t))
9984 (add-after 'unpack 'fix-paths
9985 (lambda _
9986 (substitute* '("src/pics/Makefile.in"
9987 "src/translations/Makefile.in")
9988 (("\\$\\(datadir\\)/qGo/")
9989 "$(datadir)/q5go/"))
9990 #t))
9991 (add-after 'install 'install-desktop-file
9992 (lambda* (#:key outputs #:allow-other-keys)
9993 (let* ((out (assoc-ref outputs "out"))
9994 (apps (string-append out "/share/applications"))
9995 (pics (string-append out "/share/q5go/pics")))
9996 (delete-file-recursively (string-append out "/share/applnk"))
9997 (delete-file-recursively (string-append out "/share/mimelnk"))
9998 (install-file "../source/src/pics/Bowl.ico" pics)
9999 (mkdir-p apps)
10000 (with-output-to-file (string-append apps "/q5go.desktop")
10001 (lambda _
10002 (format #t
10003 "[Desktop Entry]~@
10004 Name=q5go~@
10005 Exec=~a/bin/q5go~@
10006 Icon=~a/Bowl.ico~@
10007 Categories=Game;~@
10008 Comment=Game of Go~@
10009 Comment[de]=Spiel des Go~@
10010 Comment[eo]=Goo~@
10011 Comment[es]=Juego de Go~@
10012 Comment[fr]=Jeu de Go~@
10013 Comment[ja]=囲碁~@
10014 Comment[ko]=바둑~@
10015 Comment[zh]=围棋~@
10016 Terminal=false~@
10017 Type=Application~%"
10018 out pics))))
10019 #t)))))
10020 (synopsis "Qt GUI to play the game of Go")
10021 (description
10022 "This a tool for Go players which performs the following functions:
10023 @itemize
10024 @item SGF editor,
10025 @item Analysis frontend for Leela Zero (or compatible engines),
10026 @item GTP interface (to play against an engine),
10027 @item IGS client (to play on the internet),
10028 @item Export games to a variety of formats.
10029 @end itemize")
10030 (home-page "https://github.com/bernds/q5Go")
10031 (license license:gpl2+)))
10032
10033 (define-public ktuberling
10034 (package
10035 (name "ktuberling")
10036 (version "20.12.0")
10037 (source
10038 (origin
10039 (method url-fetch)
10040 (uri (string-append "mirror://kde/stable/release-service/" version
10041 "/src/ktuberling-" version ".tar.xz"))
10042 (sha256
10043 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
10044 (build-system qt-build-system)
10045 (native-inputs
10046 `(("extra-cmake-modules" ,extra-cmake-modules)
10047 ("kdoctools" ,kdoctools)
10048 ("perl" ,perl)))
10049 (inputs
10050 `(("kcompletion" ,kcompletion)
10051 ("kconfigwidgets" ,kconfigwidgets)
10052 ("kcoreaddons" ,kcoreaddons)
10053 ("kcrash" ,kcrash)
10054 ("kdbusaddons" ,kdbusaddons)
10055 ("ki18n" ,ki18n)
10056 ("kio" ,kio)
10057 ("kwidgetsaddons" ,kwidgetsaddons)
10058 ("kxmlgui" ,kxmlgui)
10059 ("libkdegames" ,libkdegames)
10060 ("python" ,python-wrapper)
10061 ("qtbase" ,qtbase)
10062 ("qtmultimedia" ,qtmultimedia)
10063 ("qtdeclarative" ,qtdeclarative)
10064 ("qtsvg" ,qtsvg)))
10065 (home-page "https://games.kde.org/")
10066 (synopsis "Stamp drawing toy")
10067 (description "KTuberling is a drawing toy intended for small children and
10068 adults who remain young at heart. The game has no winner; the only purpose is
10069 to make the funniest faces you can. Several activities are possible, e.g.:
10070
10071 @itemize
10072 @item Give the potato a funny face, clothes, and other goodies
10073 @item Build a small town, complete with school, zoo, and fire department
10074 @item Create a fantastic moonscape with spaceships and aliens
10075 @item Top a pizza
10076 @end itemize
10077
10078 KTuberling can speak the name of each the object in several languages,
10079 to assist in learning basic vocabulary.
10080
10081 This package is part of the KDE games module.")
10082 (license (list license:gpl2+ license:fdl1.2+))))
10083
10084 (define-public picmi
10085 (package
10086 (name "picmi")
10087 (version "20.12.0")
10088 (source
10089 (origin
10090 (method url-fetch)
10091 (uri (string-append "mirror://kde/stable/release-service/" version
10092 "/src/picmi-" version ".tar.xz"))
10093 (sha256
10094 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
10095 (build-system qt-build-system)
10096 (native-inputs
10097 `(("extra-cmake-modules" ,extra-cmake-modules)
10098 ("kdoctools" ,kdoctools)))
10099 (inputs
10100 `(("kcoreaddons" ,kcoreaddons)
10101 ("kcrash" ,kcrash)
10102 ("kdbusaddons" ,kdbusaddons)
10103 ("kdeclarative" ,kdeclarative)
10104 ("ki18n" ,ki18n)
10105 ("kio" ,kio)
10106 ("knewstuff" ,knewstuff)
10107 ("kxmlgui" ,kxmlgui)
10108 ("libkdegames" ,libkdegames)
10109 ("qtbase" ,qtbase)
10110 ("qtdeclarative" ,qtdeclarative)
10111 ("qtsvg" ,qtsvg)))
10112 (home-page "https://games.kde.org/")
10113 (synopsis "Number logic game")
10114 (description "Picmi is a number logic game in which cells in a grid have
10115 to be colored or left blank according to numbers given at the side of the
10116 grid. The aim is to reveal a hidden picture.
10117
10118 This package is part of the KDE games module.")
10119 (license (list license:gpl2+ license:fdl1.2+))))
10120
10121 (define-public kolf
10122 (package
10123 (name "kolf")
10124 (version "20.12.0")
10125 (source
10126 (origin
10127 (method url-fetch)
10128 (uri (string-append "mirror://kde/stable/release-service/" version
10129 "/src/kolf-" version ".tar.xz"))
10130 (sha256
10131 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10132 (build-system qt-build-system)
10133 (native-inputs
10134 `(("extra-cmake-modules" ,extra-cmake-modules)
10135 ("kdoctools" ,kdoctools)))
10136 (inputs
10137 `(("kcompletion" ,kcompletion)
10138 ("kconfigwidgets" ,kconfigwidgets)
10139 ("kcoreaddons" ,kcoreaddons)
10140 ("kcrash" ,kcrash)
10141 ("kdbusaddons" ,kdbusaddons)
10142 ("ki18n" ,ki18n)
10143 ("kio" ,kio)
10144 ("kwidgetsaddons" ,kwidgetsaddons)
10145 ("kxmlgui" ,kxmlgui)
10146 ("ktextwidgets" ,ktextwidgets)
10147 ("libkdegames" ,libkdegames)
10148 ("qtbase" ,qtbase)
10149 ("qtdeclarative" ,qtdeclarative)))
10150 (home-page "https://games.kde.org/")
10151 (synopsis "Miniature golf game")
10152 (description "Kolf is a miniature golf game for one to ten players. The
10153 game is played from an overhead view, with a short bar representing the golf
10154 club. Kolf features many different types of objects, such as water hazards,
10155 slopes, sand traps, and black holes (warps), among others.
10156
10157 Features are:
10158 @itemize
10159 @item Single and Multi-player (up to ten players) modes
10160 @item High scores table
10161 @item Dynamic courses
10162 @item Third-party courses
10163 @item Course editor
10164 @end itemize
10165
10166 This package is part of the KDE games module.")
10167 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10168
10169 (define-public libkmahjongg
10170 (package
10171 (name "libkmahjongg")
10172 (version "20.12.0")
10173 (source
10174 (origin
10175 (method url-fetch)
10176 (uri (string-append "mirror://kde/stable/release-service/"
10177 version "/src/libkmahjongg-" version ".tar.xz"))
10178 (sha256
10179 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10180 (build-system qt-build-system)
10181 (native-inputs
10182 `(("extra-cmake-modules" ,extra-cmake-modules)))
10183 (inputs
10184 `(("kauth" ,kauth)
10185 ("kcompletion" ,kcompletion)
10186 ;("kconfig" ,kconfig)
10187 ("kcodecs" ,kcodecs)
10188 ("kconfigwidgets" ,kconfigwidgets)
10189 ("kcoreaddons" ,kcoreaddons)
10190 ("ki18n" ,ki18n)
10191 ("kwidgetsaddons" ,kwidgetsaddons)
10192 ("qtbase" ,qtbase)
10193 ("qtsvg" ,qtsvg)))
10194 (home-page "https://games.kde.org/")
10195 (synopsis "Shared library for kmahjongg and kshisen")
10196 (description "Shared library and common files for kmahjongg, kshisen and
10197 other Mah Jongg like games.")
10198 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10199
10200 (define-public kmahjongg
10201 (package
10202 (name "kmahjongg")
10203 (version "20.12.0")
10204 (source
10205 (origin
10206 (method url-fetch)
10207 (uri (string-append "mirror://kde/stable/release-service/"
10208 version "/src/kmahjongg-" version ".tar.xz"))
10209 (sha256
10210 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10211 (build-system qt-build-system)
10212 (native-inputs
10213 `(("extra-cmake-modules" ,extra-cmake-modules)
10214 ("kdoctools" ,kdoctools)))
10215 (inputs
10216 `(("kcompletion" ,kcompletion)
10217 ("kcrash" ,kcrash)
10218 ("kdbusaddons" ,kdbusaddons)
10219 ("kdeclarative" ,kdeclarative)
10220 ("ki18n" ,ki18n)
10221 ("knewstuff" ,knewstuff)
10222 ("kxmlgui" ,kxmlgui)
10223 ("libkdegames" ,libkdegames)
10224 ("libkmahjongg" ,libkmahjongg)
10225 ("qtbase" ,qtbase)
10226 ("qtdeclarative" ,qtdeclarative)
10227 ("qtsvg" ,qtsvg)))
10228 (home-page "https://games.kde.org/")
10229 (synopsis "Tile laying patience")
10230 (description "In KMahjongg the tiles are scrambled and staked on top of
10231 each other to resemble a certain shape. The player is then expected to remove
10232 all the tiles off the game board by locating each tile's matching pair.
10233
10234 A variety of tile layouts are included, as well as an editor to create new
10235 layouts.
10236
10237 This package is part of the KDE games module.")
10238 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10239
10240 (define-public kshisen
10241 (package
10242 (name "kshisen")
10243 (version "20.12.0")
10244 (source
10245 (origin
10246 (method url-fetch)
10247 (uri (string-append "mirror://kde/stable/release-service/"
10248 version "/src/kshisen-" version ".tar.xz"))
10249 (sha256
10250 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10251 (build-system qt-build-system)
10252 (native-inputs
10253 `(("extra-cmake-modules" ,extra-cmake-modules)
10254 ;("perl" ,perl)
10255 ;("pkg-config" ,pkg-config)
10256 ("kdoctools" ,kdoctools)))
10257 (inputs
10258 `(("kauth" ,kauth)
10259 ("kcompletion" ,kcompletion)
10260 ("kconfigwidgets" ,kconfigwidgets)
10261 ("kcoreaddons" ,kcoreaddons)
10262 ("kcrash" ,kcrash)
10263 ("kdbusaddons" ,kdbusaddons)
10264 ("ki18n" ,ki18n)
10265 ("kxmlgui" ,kxmlgui)
10266 ("libkdegames" ,libkdegames)
10267 ("libkmahjongg" ,libkmahjongg)
10268 ("qtbase" ,qtbase)
10269 ("qtdeclarative" ,qtdeclarative)))
10270 (home-page "https://games.kde.org/")
10271 (synopsis "Shisen-Sho solitaire game")
10272 (description "KShisen is a solitaire-like game played using the standard
10273 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10274 scrambled tiles
10275
10276 This package is part of the KDE games module.")
10277 (license license:gpl2+)))
10278
10279 (define-public kajongg
10280 (package
10281 (name "kajongg")
10282 (version "20.12.0")
10283 (source
10284 (origin
10285 (method url-fetch)
10286 (uri (string-append "mirror://kde/stable/release-service/"
10287 version "/src/kajongg-" version ".tar.xz"))
10288 (sha256
10289 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10290 (build-system qt-build-system)
10291 (arguments
10292 `(#:phases
10293 (modify-phases %standard-phases
10294 (add-after 'install 'wrap
10295 (lambda* (#:key outputs #:allow-other-keys)
10296 (let ((out (assoc-ref outputs "out")))
10297 (wrap-program (string-append out "/bin/kajongg")
10298 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
10299 #t))))))
10300 (native-inputs
10301 `(("extra-cmake-modules" ,extra-cmake-modules)
10302 ;("perl" ,perl)
10303 ("kdoctools" ,kdoctools)))
10304 (inputs
10305 `(("kconfig" ,kconfig)
10306 ("kconfigwidgets" ,kconfigwidgets)
10307 ("kcoreaddons" ,kcoreaddons)
10308 ("ki18n" ,ki18n)
10309 ("libkmahjongg" ,libkmahjongg)
10310 ("python" ,python)
10311 ("python-twisted" ,python-twisted)
10312 ("python-pyqt" ,python-pyqt)
10313 ("qtbase" ,qtbase)
10314 ("qtsvg" ,qtsvg)))
10315 (home-page "https://games.kde.org/")
10316 (synopsis "Classical Mah Jongg game for 4 players")
10317 (description "Kajongg is the ancient Chinese board game for 4 players.
10318
10319 If you are looking for the Mah Jongg solitaire please use the application
10320 kmahjongg.
10321
10322 Kajongg can be used in two different ways: Scoring a manual game where you
10323 play as always and use Kajongg for the computation of scores and for
10324 bookkeeping. Or you can use Kajongg to play against any combination of other
10325 human players or computer players.
10326
10327 This package is part of the KDE games module.")
10328 (license (list license:gpl2+ license:fdl1.2+))))
10329
10330 (define-public kbreakout
10331 (package
10332 (name "kbreakout")
10333 (version "20.12.0")
10334 (source
10335 (origin
10336 (method url-fetch)
10337 (uri (string-append "mirror://kde/stable/release-service/" version
10338 "/src/kbreakout-" version ".tar.xz"))
10339 (sha256
10340 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10341 (build-system qt-build-system)
10342 (native-inputs
10343 `(("extra-cmake-modules" ,extra-cmake-modules)
10344 ("kdoctools" ,kdoctools)))
10345 (inputs
10346 `(("kcompletion" ,kcompletion)
10347 ("kconfig" ,kconfig)
10348 ("kconfigwidgets" ,kconfigwidgets)
10349 ("kcoreaddons" ,kcoreaddons)
10350 ("kcrash" ,kcrash)
10351 ("kdbusaddons" ,kdbusaddons)
10352 ("ki18n" ,ki18n)
10353 ("kwidgetsaddons" ,kwidgetsaddons)
10354 ("kxmlgui" ,kxmlgui)
10355 ("libkdegames" ,libkdegames)
10356 ("qtbase" ,qtbase)
10357 ("qtdeclarative" ,qtdeclarative)))
10358 (home-page "https://games.kde.org/")
10359 (synopsis "Breakout like game")
10360 (description "KBreakout is similar to the classics breakout and xboing,
10361 featuring a number of added graphical enhancements and effects. You control a
10362 paddle at the bottom of the playing-field, and must destroy bricks at the top
10363 by bouncing balls against them.
10364
10365 This package is part of the KDE games module.")
10366 (license (list license:gpl2+ license:fdl1.2+))))
10367
10368 (define-public kmines
10369 (package
10370 (name "kmines")
10371 (version "20.12.0")
10372 (source
10373 (origin
10374 (method url-fetch)
10375 (uri (string-append "mirror://kde/stable/release-service/" version
10376 "/src/kmines-" version ".tar.xz"))
10377 (sha256
10378 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10379 (build-system qt-build-system)
10380 (native-inputs
10381 `(("extra-cmake-modules" ,extra-cmake-modules)
10382 ("kdoctools" ,kdoctools)))
10383 (inputs
10384 `(("kcompletion" ,kcompletion)
10385 ("kconfig" ,kconfig)
10386 ("kconfigwidgets" ,kconfigwidgets)
10387 ("kcoreaddons" ,kcoreaddons)
10388 ("kcrash" ,kcrash)
10389 ("kdbusaddons" ,kdbusaddons)
10390 ("ki18n" ,ki18n)
10391 ("ktextwidgets" ,ktextwidgets)
10392 ("kwidgetsaddons" ,kwidgetsaddons)
10393 ("kxmlgui" ,kxmlgui)
10394 ("libkdegames" ,libkdegames)
10395 ("qtbase" ,qtbase)
10396 ("qtdeclarative" ,qtdeclarative)))
10397 (home-page "https://games.kde.org/")
10398 (synopsis "Classical mine sweeper game")
10399 (description "KMines is a classic Minesweeper game. The idea is to
10400 uncover all the squares without blowing up any mines. When a mine is blown
10401 up, the game is over.
10402
10403 This package is part of the KDE games module.")
10404 (license (list license:gpl2+ license:fdl1.2+))))
10405
10406 (define-public konquest
10407 (package
10408 (name "konquest")
10409 (version "20.12.0")
10410 (source
10411 (origin
10412 (method url-fetch)
10413 (uri (string-append "mirror://kde/stable/release-service/"
10414 version "/src/konquest-" version ".tar.xz"))
10415 (sha256
10416 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10417 (build-system qt-build-system)
10418 (native-inputs
10419 `(("extra-cmake-modules" ,extra-cmake-modules)
10420 ("kdoctools" ,kdoctools)))
10421 (inputs
10422 `(("kcompletion" ,kcompletion)
10423 ("kconfig" ,kconfig)
10424 ("kcoreaddons" ,kcoreaddons)
10425 ("kcrash" ,kcrash)
10426 ("kdbusaddons" ,kdbusaddons)
10427 ("kguiaddons" ,kguiaddons)
10428 ("ki18n" ,ki18n)
10429 ("kwidgetsaddons" ,kwidgetsaddons)
10430 ("kxmlgui" ,kxmlgui)
10431 ("libkdegames" ,libkdegames)
10432 ("qtbase" ,qtbase)
10433 ("qtdeclarative" ,qtdeclarative)
10434 ("qtsvg" ,qtsvg)))
10435 (home-page "https://games.kde.org/")
10436 (synopsis "Simple turn-based strategy game")
10437 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10438 conquer other planets by sending ships to them. The goal is to build an
10439 interstellar empire and ultimately conquer all other player's planets. The
10440 game can be played with up to nine empires, commanded either by the computer
10441 or by puny earthlings.
10442
10443 This package is part of the KDE games module.")
10444 (license (list license:gpl2+ license:fdl1.2+))))
10445
10446 (define-public kbounce
10447 (package
10448 (name "kbounce")
10449 (version "20.12.0")
10450 (source
10451 (origin
10452 (method url-fetch)
10453 (uri (string-append "mirror://kde/stable/release-service/"
10454 version "/src/kbounce-" version ".tar.xz"))
10455 (sha256
10456 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10457 (build-system qt-build-system)
10458 (native-inputs
10459 `(("extra-cmake-modules" ,extra-cmake-modules)
10460 ("kdoctools" ,kdoctools)))
10461 (inputs
10462 `(("kcompletion" ,kcompletion)
10463 ("kconfigwidgets" ,kconfigwidgets)
10464 ("kcoreaddons" ,kcoreaddons)
10465 ("kcrash" ,kcrash)
10466 ("kdbusaddons" ,kdbusaddons)
10467 ("ki18n" ,ki18n)
10468 ("kio" ,kio)
10469 ("kwidgetsaddons" ,kwidgetsaddons)
10470 ("kxmlgui" ,kxmlgui)
10471 ("libkdegames" ,libkdegames)
10472 ("qtbase" ,qtbase)
10473 ("qtdeclarative" ,qtdeclarative)
10474 ("qtsvg" ,qtsvg)))
10475 (home-page "https://games.kde.org/")
10476 (synopsis "Jezzball arcade game")
10477 (description "KBounce is a single player arcade game with the elements of
10478 puzzle. It is played on a field, surrounded by wall, with two or more balls
10479 bouncing around within the walls. The object of the game is to build new
10480 walls to decrease the size of the active field.
10481
10482 This package is part of the KDE games module.")
10483 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10484
10485 (define-public kblocks
10486 (package
10487 (name "kblocks")
10488 (version "20.12.0")
10489 (source
10490 (origin
10491 (method url-fetch)
10492 (uri (string-append "mirror://kde/stable/release-service/"
10493 version "/src/kblocks-" version ".tar.xz"))
10494 (sha256
10495 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10496 (build-system qt-build-system)
10497 (native-inputs
10498 `(("extra-cmake-modules" ,extra-cmake-modules)
10499 ("kdoctools" ,kdoctools)))
10500 (inputs
10501 `(("kcompletion" ,kcompletion)
10502 ("kconfig" ,kconfig)
10503 ("kconfigwidgets" ,kconfigwidgets)
10504 ("kcoreaddons" ,kcoreaddons)
10505 ("kcrash" ,kcrash)
10506 ("kdbusaddons" ,kdbusaddons)
10507 ("ki18n" ,ki18n)
10508 ("kwidgetsaddons" ,kwidgetsaddons)
10509 ("kxmlgui" ,kxmlgui)
10510 ("libkdegames" ,libkdegames)
10511 ("qtbase" ,qtbase)
10512 ("qtdeclarative" ,qtdeclarative)
10513 ("qtsvg" ,qtsvg)))
10514 (home-page "https://games.kde.org/")
10515 (synopsis "Single player falling blocks puzzle game")
10516 (description "KBlocks is the classic Tetris-like falling blocks game.
10517
10518 The idea is to stack the falling blocks to create horizontal lines without any
10519 gaps. When a line is completed it is removed, and more space is available in
10520 the play area. When there is not enough space for blocks to fall, the game is
10521 over.
10522
10523 This package is part of the KDE games module.")
10524 (license (list license:gpl2+ license:fdl1.2+))))
10525
10526 (define-public ksudoku
10527 (package
10528 (name "ksudoku")
10529 (version "20.12.0")
10530 (source
10531 (origin
10532 (method url-fetch)
10533 (uri (string-append "mirror://kde/stable/release-service/"
10534 version "/src/ksudoku-" version ".tar.xz"))
10535 (sha256
10536 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10537 (build-system qt-build-system)
10538 (native-inputs
10539 `(("extra-cmake-modules" ,extra-cmake-modules)
10540 ("kdoctools" ,kdoctools)))
10541 (inputs
10542 `(("karchive" ,karchive)
10543 ("kconfig" ,kconfig)
10544 ("kconfigwidgets" ,kconfigwidgets)
10545 ("kcoreaddons" ,kcoreaddons)
10546 ("kcrash" ,kcrash)
10547 ("kguiaddons" ,kguiaddons)
10548 ("ki18n" ,ki18n)
10549 ("kiconthemes" ,kiconthemes)
10550 ("kio" ,kio)
10551 ("kwidgetsaddons" ,kwidgetsaddons)
10552 ("kxmlgui" ,kxmlgui)
10553 ("libkdegames" ,libkdegames)
10554 ("glu" ,glu)
10555 ("qtbase" ,qtbase)
10556 ("qtdeclarative" ,qtdeclarative)
10557 ("qtsvg" ,qtsvg)))
10558 (home-page "https://games.kde.org/")
10559 (synopsis "Sudoku puzzle game and solver")
10560 (description "KSudoku is a Sudoku game and solver, supporting a range of
10561 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10562 puzzle sheets and find the solution to any Sudoku puzzle.
10563
10564 The word Sudoku means \"single number in an allotted place\" in Japanese.
10565 These are the basic rules: Every Sudoku is a square divided into 3x3
10566 subsquares with 3x3 cells each.
10567
10568 Some cells are filled with a number at the beginning. The remaining ones are
10569 to be filled by the player using numbers from 1 to 9, without repeating a
10570 number twice on each column, row or subsquare (each of them must contain only
10571 one 1, one 2, one 3, and so on). The game requires logic and patience.
10572 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10573 and experience.
10574
10575 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10576 board we use letters): arithmetic relationships between numbers are
10577 irrelevant.
10578
10579 This program supports also 16x16 games with numbers from 1 to 16 and 256
10580 cells with 16 cols, rows and subsquares!
10581
10582 More information at http://en.wikipedia.org/wiki/Sudoku
10583
10584 This package is part of the KDE games module.")
10585 (license (list license:gpl2+ license:fdl1.2+))))
10586
10587 (define-public klines
10588 (package
10589 (name "klines")
10590 (version "20.12.0")
10591 (source
10592 (origin
10593 (method url-fetch)
10594 (uri (string-append "mirror://kde/stable/release-service/" version
10595 "/src/klines-" version ".tar.xz"))
10596 (sha256
10597 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10598 (build-system qt-build-system)
10599 (native-inputs
10600 `(("extra-cmake-modules" ,extra-cmake-modules)
10601 ("kdoctools" ,kdoctools)))
10602 (inputs
10603 `(("kcompletion" ,kcompletion)
10604 ("kconfigwidgets" ,kconfigwidgets)
10605 ("kcoreaddons" ,kcoreaddons)
10606 ("kcrash" ,kcrash)
10607 ("kdbusaddons" ,kdbusaddons)
10608 ("ki18n" ,ki18n)
10609 ("kwidgetsaddons" ,kwidgetsaddons)
10610 ("kxmlgui" ,kxmlgui)
10611 ("libkdegames" ,libkdegames)
10612 ("qtbase" ,qtbase)
10613 ("qtdeclarative" ,qtdeclarative)))
10614 (home-page "https://games.kde.org/")
10615 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10616 (description "KLines is a simple but highly addictive one player game.
10617
10618 The player has to move the colored balls around the game board, gathering them
10619 into the lines of the same color by five. Once the line is complete it is
10620 removed from the board, therefore freeing precious space. In the same time
10621 the new balls keep arriving by three after each move, filling up the game
10622 board.
10623
10624 KLines is a single-player game where the player removes colored balls from the
10625 board by arranging them into lines of five or more. However, every time the
10626 player moves a ball, three more balls are added to the board.
10627
10628 This package is part of the KDE games module.")
10629 (license (list license:gpl2+ license:fdl1.2+))))
10630
10631 (define-public kgoldrunner
10632 (package
10633 (name "kgoldrunner")
10634 (version "20.12.0")
10635 (source
10636 (origin
10637 (method url-fetch)
10638 (uri (string-append "mirror://kde/stable/release-service/" version
10639 "/src/kgoldrunner-" version ".tar.xz"))
10640 (sha256
10641 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
10642 (build-system qt-build-system)
10643 (native-inputs
10644 `(("extra-cmake-modules" ,extra-cmake-modules)
10645 ("kdoctools" ,kdoctools)))
10646 (inputs
10647 `(("kcompletion" ,kcompletion)
10648 ("kcoreaddons" ,kcoreaddons)
10649 ("kcrash" ,kcrash)
10650 ("kdbusaddons" ,kdbusaddons)
10651 ("ki18n" ,ki18n)
10652 ("kio" ,kio)
10653 ("kwidgetsaddons" ,kwidgetsaddons)
10654 ("kxmlgui" ,kxmlgui)
10655 ("libkdegames" ,libkdegames)
10656 ("qtbase" ,qtbase)
10657 ("qtdeclarative" ,qtdeclarative)))
10658 (home-page "https://games.kde.org/")
10659 (synopsis "Action and puzzle solving game")
10660 (description "KGoldrunner is an action game where the hero runs through a
10661 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10662 gold nuggets and escape to the next level. Your enemies are also after the
10663 gold. Worse still, they are after you!.
10664
10665 KGoldrunner is a fast-paced platform game where the player must navigate a
10666 maze while collecting gold nuggets and avoiding enemies. A variety of level
10667 packs are included, as well as an editor to create new levels.
10668
10669 This package is part of the KDE games module.")
10670 (license (list license:gpl2+ license:fdl1.2+))))
10671
10672 (define-public kdiamond
10673 (package
10674 (name "kdiamond")
10675 (version "20.12.0")
10676 (source
10677 (origin
10678 (method url-fetch)
10679 (uri (string-append "mirror://kde/stable/release-service/" version
10680 "/src/kdiamond-" version ".tar.xz"))
10681 (sha256
10682 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
10683 (build-system qt-build-system)
10684 (native-inputs
10685 `(("extra-cmake-modules" ,extra-cmake-modules)
10686 ("kdoctools" ,kdoctools)))
10687 (inputs
10688 `(("kcompletion" ,kcompletion)
10689 ("kconfig" ,kconfig)
10690 ("kconfigwidgets" ,kconfigwidgets)
10691 ("kcoreaddons" ,kcoreaddons)
10692 ("kcrash" ,kcrash)
10693 ("kdbusaddons" ,kdbusaddons)
10694 ("ki18n" ,ki18n)
10695 ("knotifications" ,knotifications)
10696 ("knotifyconfig" ,knotifyconfig)
10697 ("kwidgetsaddons" ,kwidgetsaddons)
10698 ("kxmlgui" ,kxmlgui)
10699 ("libkdegames" ,libkdegames)
10700 ("qtbase" ,qtbase)
10701 ("qtdeclarative" ,qtdeclarative)))
10702 (home-page "https://games.kde.org/")
10703 (synopsis "Three-in-a-row game")
10704 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10705 features unlimited fun with randomly generated games and five difficulty
10706 levels with varying number of diamond colors and board sizes.
10707
10708 This package is part of the KDE games module.")
10709 (license (list license:gpl2+ license:fdl1.2+))))
10710
10711 (define-public kfourinline
10712 (package
10713 (name "kfourinline")
10714 (version "20.12.0")
10715 (source
10716 (origin
10717 (method url-fetch)
10718 (uri (string-append "mirror://kde/stable/release-service/" version
10719 "/src/kfourinline-" version ".tar.xz"))
10720 (sha256
10721 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10722 (build-system qt-build-system)
10723 (native-inputs
10724 `(("extra-cmake-modules" ,extra-cmake-modules)
10725 ("kdoctools" ,kdoctools)))
10726 (inputs
10727 `(("kcompletion" ,kcompletion)
10728 ("kconfig" ,kconfig)
10729 ("kconfigwidgets" ,kconfigwidgets)
10730 ("kcoreaddons" ,kcoreaddons)
10731 ("kcrash" ,kcrash)
10732 ("kdnssd" ,kdnssd)
10733 ("ki18n" ,ki18n)
10734 ("kxmlgui" ,kxmlgui)
10735 ("libkdegames" ,libkdegames)
10736 ("qtbase" ,qtbase)
10737 ("qtdeclarative" ,qtdeclarative)
10738 ("qtsvg" ,qtsvg)))
10739 (home-page "https://games.kde.org/")
10740 (synopsis "Place 4 pieces in a row")
10741 (description "KFourInLine is a board game for two players based on the
10742 Connect-Four game.
10743
10744 KFourInLine is a game where two players take turns dropping pieces into a
10745 grid, the winner being the first to place four pieces in a line.
10746
10747 This package is part of the KDE games module.")
10748 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10749
10750 (define-public kblackbox
10751 (package
10752 (name "kblackbox")
10753 (version "20.12.0")
10754 (source
10755 (origin
10756 (method url-fetch)
10757 (uri (string-append "mirror://kde/stable/release-service/" version
10758 "/src/kblackbox-" version ".tar.xz"))
10759 (sha256
10760 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10761 (build-system qt-build-system)
10762 (native-inputs
10763 `(("extra-cmake-modules" ,extra-cmake-modules)
10764 ("kdoctools" ,kdoctools)))
10765 (inputs
10766 `(("karchive" ,karchive)
10767 ("kcompletion" ,kcompletion)
10768 ("kconfig" ,kconfig)
10769 ("kcoreaddons" ,kcoreaddons)
10770 ("kcrash" ,kcrash)
10771 ("kdbusaddons" ,kdbusaddons)
10772 ("ki18n" ,ki18n)
10773 ("ktextwidgets" ,ktextwidgets)
10774 ("kxmlgui" ,kxmlgui)
10775 ("libkdegames" ,libkdegames)
10776 ("qtbase" ,qtbase)
10777 ("qtdeclarative" ,qtdeclarative)
10778 ("qtsvg" ,qtsvg)))
10779 (home-page "https://games.kde.org/")
10780 (synopsis "Find atoms in a grid by shooting electrons")
10781 (description "KBlackbox is a game of hide and seek played on a grid of
10782 boxes where the computer has hidden several balls. The position of the hidden
10783 balls can be deduced by shooting beams into the box
10784
10785 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10786 player shoots rays into the grid to deduce the positions of hidden objects.
10787
10788 This package is part of the KDE games module.")
10789 (license (list license:gpl2+ license:fdl1.2+))))
10790
10791 (define-public knetwalk
10792 (package
10793 (name "knetwalk")
10794 (version "20.12.0")
10795 (source
10796 (origin
10797 (method url-fetch)
10798 (uri (string-append "mirror://kde/stable/release-service/" version
10799 "/src/knetwalk-" version ".tar.xz"))
10800 (sha256
10801 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
10802 (build-system qt-build-system)
10803 (native-inputs
10804 `(("extra-cmake-modules" ,extra-cmake-modules)
10805 ("kdoctools" ,kdoctools)))
10806 (inputs
10807 `(("kcompletion" ,kcompletion)
10808 ("kconfig" ,kconfig)
10809 ("kconfigwidgets" ,kconfigwidgets)
10810 ("kcoreaddons" ,kcoreaddons)
10811 ("kcrash" ,kcrash)
10812 ("kdbusaddons" ,kdbusaddons)
10813 ("ki18n" ,ki18n)
10814 ("ktextwidgets" ,ktextwidgets)
10815 ("kwidgetsaddons" ,kwidgetsaddons)
10816 ("kxmlgui" ,kxmlgui)
10817 ("libkdegames" ,libkdegames)
10818 ("qtbase" ,qtbase)
10819 ("qtdeclarative" ,qtdeclarative)))
10820 (home-page "https://games.kde.org/")
10821 (synopsis "Turn the board pieces to get all computers connected")
10822 (description "KNetWalk is a small game where you have to build up a
10823 computer network by rotating the wires to connect the terminals to the server.
10824 When the network is build, a highscore-list comes up where competitions can be
10825 fought out.
10826
10827 KNetwalk is a puzzle game where the player arranges sections of wire to
10828 connect all the computers on the board.
10829
10830 This package is part of the KDE games module.")
10831 (license (list license:gpl2+ license:fdl1.2+))))
10832
10833 (define-public bomber
10834 (package
10835 (name "bomber")
10836 (version "20.12.0")
10837 (source
10838 (origin
10839 (method url-fetch)
10840 (uri (string-append "mirror://kde/stable/release-service/" version
10841 "/src/bomber-" version ".tar.xz"))
10842 (sha256
10843 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
10844 (build-system qt-build-system)
10845 (native-inputs
10846 `(("extra-cmake-modules" ,extra-cmake-modules)
10847 ("kdoctools" ,kdoctools)))
10848 (inputs
10849 `(("kcompletiom" ,kcompletion)
10850 ("kconfig" ,kconfig)
10851 ("kcoreaddons" ,kcoreaddons)
10852 ("kcrash" ,kcrash)
10853 ("kdbusaddons" ,kdbusaddons)
10854 ("ki18n" ,ki18n)
10855 ("kxmlgui" ,kxmlgui)
10856 ("libkdegames" ,libkdegames)
10857 ("qtbase" ,qtbase)
10858 ("qtdeclarative" ,qtdeclarative)))
10859 (home-page "https://games.kde.org/")
10860 (synopsis "Arcade bombing game")
10861 (description "Bomber is a single player arcade game.
10862
10863 The player is invading various cities in a plane that is decreasing in height.
10864 The goal of the game is to destroy all the buildings and advance to the next
10865 level. Each level gets a bit harder by increasing the speed of the plane and
10866 the height of the buildings.
10867
10868 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10869 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10870 not destroyed a building in your path, you will crash into it.
10871
10872 This package is part of the KDE games module.")
10873 (license (list license:gpl2+ license:fdl1.2+))))
10874
10875 (define-public granatier
10876 (package
10877 (name "granatier")
10878 (version "20.12.0")
10879 (source
10880 (origin
10881 (method url-fetch)
10882 (uri (string-append "mirror://kde/stable/release-service/" version
10883 "/src/granatier-" version ".tar.xz"))
10884 (sha256
10885 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
10886 (build-system qt-build-system)
10887 (native-inputs
10888 `(("extra-cmake-modules" ,extra-cmake-modules)
10889 ("kdoctools" ,kdoctools)))
10890 (inputs
10891 `(("kcompletion" ,kcompletion)
10892 ("kconfig" ,kconfig)
10893 ("kconfigwidgets" ,kconfigwidgets)
10894 ("kcoreaddons" ,kcoreaddons)
10895 ("kcrash" ,kcrash)
10896 ("kdbusaddons" ,kdbusaddons)
10897 ("ki18n" ,ki18n)
10898 ("knewstuff" ,knewstuff)
10899 ("kwidgetsaddons" ,kwidgetsaddons)
10900 ("kxmlgui" ,kxmlgui)
10901 ("libkdegames" ,libkdegames)
10902 ("qtbase" ,qtbase)
10903 ("qtdeclarative" ,qtdeclarative)
10904 ("qtsvg" ,qtsvg)))
10905 (home-page "https://games.kde.org/")
10906 (synopsis "Bomberman clone")
10907 (description "Granatier is a clone of the classic Bomberman game,
10908 inspired by the work of the Clanbomber clone.
10909
10910 This package is part of the KDE games module.")
10911 (license (list license:gpl2+ license:fdl1.2+))))
10912
10913 (define-public ksirk
10914 (package
10915 (name "ksirk")
10916 (version "20.12.0")
10917 (source
10918 (origin
10919 (method url-fetch)
10920 (uri (string-append "mirror://kde/stable/release-service/" version
10921 "/src/ksirk-" version ".tar.xz"))
10922 (sha256
10923 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
10924 (build-system qt-build-system)
10925 (native-inputs
10926 `(("extra-cmake-modules" ,extra-cmake-modules)
10927 ("kdoctools" ,kdoctools)))
10928 (inputs
10929 `(("kcrash" ,kcrash)
10930 ("ki18n" ,ki18n)
10931 ("kiconthemes" ,kiconthemes)
10932 ("kio" ,kio)
10933 ("knewstuff" ,knewstuff)
10934 ("kwallet" ,kwallet)
10935 ("kxmlgui" ,kxmlgui)
10936 ("libkdegames" ,libkdegames)
10937 ("phonon" ,phonon)
10938 ("qca" ,qca)
10939 ("qtbase" ,qtbase)
10940 ("qtdeclarative" ,qtdeclarative)
10941 ("qtsvg" ,qtsvg)
10942 ("zlib" ,zlib)))
10943 (home-page "https://games.kde.org/")
10944 (synopsis "Computerized version of the well known strategy board game
10945 'Risk'")
10946 (description "KsirK is a multi-player network-enabled game. The goal of
10947 the game is simply to conquer the world by attacking your neighbors with your
10948 armies.
10949
10950 At the beginning of the game, countries are distributed to all the players.
10951 Each country contains one army represented by an infantryman. Each player has
10952 some armies to distribute to his countries. On each turn, each player can
10953 attack his neighbours, eventually conquering one or more countries. At the
10954 end of each turn, some bonus armies are distributed to the players in function
10955 of the number of countries they own. The winner is the player that conquered
10956 all the world.
10957
10958 Features:
10959 @itemize
10960 @item Support for 1-6 human or computer players
10961 @item Multi-player gaming over a network
10962 @item You can easily create new skins with SVG graphics and the skin editor
10963 @item Hot New Stuff support. You can easily download and install new skins
10964 @end itemize
10965
10966 This package is part of the KDE games module.")
10967 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10968
10969 (define-public palapeli
10970 (package
10971 (name "palapeli")
10972 (version "20.12.0")
10973 (source
10974 (origin
10975 (method url-fetch)
10976 (uri (string-append "mirror://kde/stable/release-service/" version
10977 "/src/palapeli-" version ".tar.xz"))
10978 (sha256
10979 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
10980 (build-system qt-build-system)
10981 (native-inputs
10982 `(("extra-cmake-modules" ,extra-cmake-modules)
10983 ("kdoctools" ,kdoctools)))
10984 (inputs
10985 `(("karchive" ,karchive)
10986 ("kcompletion" ,kcompletion)
10987 ("kconfig" ,kconfig)
10988 ("kconfigwidgets" ,kconfigwidgets)
10989 ("kcoreaddons" ,kcoreaddons)
10990 ("kcrash" ,kcrash)
10991 ("kcrash" ,kcrash)
10992 ("ki18n" ,ki18n)
10993 ("ki18n" ,ki18n)
10994 ("kio" ,kio)
10995 ("kitemviews" ,kitemviews)
10996 ("knotifications" ,knotifications)
10997 ("kservice" ,kservice)
10998 ("kwidgetsaddons" ,kwidgetsaddons)
10999 ("kxmlgui" ,kxmlgui)
11000 ("libkdegames" ,libkdegames)
11001 ("qtbase" ,qtbase)
11002 ("qtdeclarative" ,qtdeclarative)
11003 ("qtsvg" ,qtsvg)
11004 ("shared-mime-info" ,shared-mime-info)))
11005 (home-page "https://games.kde.org/")
11006 (synopsis "Jigsaw puzzle game")
11007 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
11008 that genre, you are not limited to aligning pieces on imaginary grids. The
11009 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
11010 everything you do is saved on your disk immediately.
11011
11012 Palapeli is the Finnish word for jigsaw puzzle.
11013
11014 This package is part of the KDE games module.")
11015 (license license:gpl2+)))
11016
11017 (define-public kiriki
11018 (package
11019 (name "kiriki")
11020 (version "20.12.0")
11021 (source
11022 (origin
11023 (method url-fetch)
11024 (uri (string-append "mirror://kde/stable/release-service/" version
11025 "/src/kiriki-" version ".tar.xz"))
11026 (sha256
11027 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
11028 (build-system qt-build-system)
11029 (native-inputs
11030 `(("extra-cmake-modules" ,extra-cmake-modules)
11031 ("kdoctools" ,kdoctools)))
11032 (inputs
11033 `(("kcompletion" ,kcompletion)
11034 ("kconfig" ,kconfig)
11035 ("kconfigwidgets" ,kconfigwidgets)
11036 ("kcoreaddons" ,kcoreaddons)
11037 ("kcrash" ,kcrash)
11038 ("kdbusaddons" ,kdbusaddons)
11039 ("ki18n" ,ki18n)
11040 ("kiconthemes" ,kiconthemes)
11041 ("kxmlgui" ,kxmlgui)
11042 ("libkdegames" ,libkdegames)
11043 ("qtbase" ,qtbase)
11044 ("qtdeclarative" ,qtdeclarative)))
11045 (home-page "https://games.kde.org/")
11046 (synopsis "Yahtzee dice game")
11047 (description "Kiriki is an addictive and fun dice game, designed to be
11048 played by as many as six players.
11049
11050 Participants have to collect points by rolling five dice for up to three times
11051 per single turn to make combinations with the highest score.
11052
11053 This package is part of the KDE games module.")
11054 (license (list license:gpl2+ license:fdl1.2+))))
11055
11056 (define-public kigo
11057 (package
11058 (name "kigo")
11059 (version "20.12.0")
11060 (source
11061 (origin
11062 (method url-fetch)
11063 (uri (string-append "mirror://kde/stable/release-service/" version
11064 "/src/kigo-" version ".tar.xz"))
11065 (sha256
11066 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
11067 (build-system qt-build-system)
11068 (native-inputs
11069 `(("extra-cmake-modules" ,extra-cmake-modules)
11070 ("kdoctools" ,kdoctools)))
11071 (inputs
11072 `(("kconfig" ,kconfig)
11073 ("kconfigwidgets" ,kconfigwidgets)
11074 ("kcoreaddons" ,kcoreaddons)
11075 ("kcrash" ,kcrash)
11076 ("kdbusaddons" ,kdbusaddons)
11077 ("ki18n" ,ki18n)
11078 ("kio" ,kio)
11079 ("knewstuff" ,knewstuff)
11080 ("ktextwidgets" ,ktextwidgets)
11081 ("kxmlgui" ,kxmlgui)
11082 ("libkdegames" ,libkdegames)
11083 ("qtbase" ,qtbase)
11084 ("qtdeclarative" ,qtdeclarative)
11085 ("qtsvg" ,qtsvg)))
11086 (home-page "https://games.kde.org/")
11087 (synopsis "Go board game")
11088 (description "Kigo is an open-source implementation of the popular Go
11089 game.
11090
11091 Go is a strategic board game for two players. It is also known as
11092 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
11093 for being rich in strategic complexity despite its simple rules. The game is
11094 played by two players who alternately place black and white stones (playing
11095 pieces, now usually made of glass or plastic) on the vacant intersections of a
11096 grid of 19x19 lines (9x9 or 13x13 for easier games).
11097
11098 You also need to install a go engine, e.g. @code{gnugo}.
11099
11100 This package is part of the KDE games module.")
11101 (license license:gpl3+)))
11102
11103 (define-public kubrick
11104 (package
11105 (name "kubrick")
11106 (version "20.12.0")
11107 (source
11108 (origin
11109 (method url-fetch)
11110 (uri (string-append "mirror://kde/stable/release-service/" version
11111 "/src/kubrick-" version ".tar.xz"))
11112 (sha256
11113 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
11114 (build-system qt-build-system)
11115 (native-inputs
11116 `(("extra-cmake-modules" ,extra-cmake-modules)
11117 ("kdoctools" ,kdoctools)))
11118 (inputs
11119 `(("glu" ,glu)
11120 ("kconfig" ,kconfig)
11121 ("kconfigwidgets" ,kconfigwidgets)
11122 ("kcoreaddons" ,kcoreaddons)
11123 ("kcrash" ,kcrash)
11124 ("ki18n" ,ki18n)
11125 ("kio" ,kio)
11126 ("kwidgetsaddons" ,kwidgetsaddons)
11127 ("kxmlgui" ,kxmlgui)
11128 ("libkdegames" ,libkdegames)
11129 ("qtbase" ,qtbase)
11130 ("qtdeclarative" ,qtdeclarative)
11131 ("qtsvg" ,qtsvg)))
11132 (home-page "https://games.kde.org/")
11133 (synopsis "Game based on Rubik's Cube")
11134 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11135
11136 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11137 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11138 selection of puzzles at several levels of difficulty, as well as demos of
11139 pretty patterns and solution moves, or you can make up your own puzzles. The
11140 game has unlimited undo, redo, save and reload capabilities.
11141
11142 This package is part of the KDE games module.")
11143 (license (list license:gpl2+ license:fdl1.2+))))
11144
11145 (define-public lskat
11146 (package
11147 (name "lskat")
11148 (version "20.12.0")
11149 (source
11150 (origin
11151 (method url-fetch)
11152 (uri (string-append "mirror://kde/stable/release-service/" version
11153 "/src/lskat-" version ".tar.xz"))
11154 (sha256
11155 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11156 (build-system qt-build-system)
11157 (native-inputs
11158 `(("extra-cmake-modules" ,extra-cmake-modules)
11159 ("kdoctools" ,kdoctools)))
11160 (inputs
11161 `(("kcompletion" ,kcompletion)
11162 ("kconfig" ,kconfig)
11163 ("kcoreaddons" ,kcoreaddons)
11164 ("kcrash" ,kcrash)
11165 ("kguiaddons" ,kguiaddons)
11166 ("ki18n" ,ki18n)
11167 ("kwidgetsaddons" ,kwidgetsaddons)
11168 ("kxmlgui" ,kxmlgui)
11169 ("libkdegames" ,libkdegames)
11170 ("qtbase" ,qtbase)
11171 ("qtdeclarative" ,qtdeclarative)
11172 ("qtsvg" ,qtsvg)))
11173 (home-page "https://games.kde.org/")
11174 (synopsis "Lieutnant Skat card game")
11175 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11176 engaging card game for two players, where the second player is either live
11177 opponent, or a built in artificial intelligence.
11178
11179 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11180
11181 This package is part of the KDE games module.")
11182 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11183
11184 (define-public kapman
11185 (package
11186 (name "kapman")
11187 (version "20.12.0")
11188 (source
11189 (origin
11190 (method url-fetch)
11191 (uri (string-append "mirror://kde/stable/release-service/" version
11192 "/src/kapman-" version ".tar.xz"))
11193 (sha256
11194 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11195 (build-system qt-build-system)
11196 (native-inputs
11197 `(("extra-cmake-modules" ,extra-cmake-modules)
11198 ("kdoctools" ,kdoctools)))
11199 (inputs
11200 `(("kcompletion" ,kcompletion)
11201 ("kconfig" ,kconfig)
11202 ("kconfigwidgets" ,kconfigwidgets)
11203 ("kcoreaddons" ,kcoreaddons)
11204 ("kcrash" ,kcrash)
11205 ("kdbusaddons" ,kdbusaddons)
11206 ("ki18n" ,ki18n)
11207 ("kxmlgui" ,kxmlgui)
11208 ("libkdegames" ,libkdegames)
11209 ("qtbase" ,qtbase)
11210 ("qtdeclarative" ,qtdeclarative)
11211 ("qtsvg" ,qtsvg)))
11212 (home-page "https://games.kde.org/")
11213 (synopsis "Pac-Man clone")
11214 (description "Kapman is a clone of the well known game Pac-Man.
11215
11216 You must run through the maze to eat all pills without being captured by a
11217 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11218 few seconds. When a stage is cleared of pills and energizer the player is
11219 taken to the next stage with slightly increased game speed
11220
11221 This package is part of the KDE games module.")
11222 (license (list license:gpl2+ license:fdl1.2+))))
11223
11224 (define-public kspaceduel
11225 (package
11226 (name "kspaceduel")
11227 (version "20.12.0")
11228 (source
11229 (origin
11230 (method url-fetch)
11231 (uri (string-append "mirror://kde/stable/release-service/" version
11232 "/src/kspaceduel-" version ".tar.xz"))
11233 (sha256
11234 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11235 (build-system qt-build-system)
11236 (native-inputs
11237 `(("extra-cmake-modules" ,extra-cmake-modules)
11238 ("kdoctools" ,kdoctools)))
11239 (inputs
11240 `(("kcompletion" ,kcompletion)
11241 ("kconfig" ,kconfig)
11242 ("kconfigwidgets" ,kconfigwidgets)
11243 ("kcoreaddons" ,kcoreaddons)
11244 ("kcrash" ,kcrash)
11245 ("kdbusaddons" ,kdbusaddons)
11246 ("ki18n" ,ki18n)
11247 ("kxmlgui" ,kxmlgui)
11248 ("libkdegames" ,libkdegames)
11249 ("qtbase" ,qtbase)
11250 ("qtdeclarative" ,qtdeclarative)
11251 ("qtsvg" ,qtsvg)))
11252 (home-page "https://games.kde.org/")
11253 (synopsis "Two player game with shooting spaceships flying around a sun")
11254 (description "KSpaceduel is a space battle game for one or two players,
11255 where two ships fly around a star in a struggle to be the only survivor.
11256
11257 This package is part of the KDE games module.")
11258 (license (list license:gpl2+ license:fdl1.2+))))
11259
11260 (define-public bovo
11261 (package
11262 (name "bovo")
11263 (version "20.12.0")
11264 (source
11265 (origin
11266 (method url-fetch)
11267 (uri (string-append "mirror://kde/stable/release-service/" version
11268 "/src/bovo-" version ".tar.xz"))
11269 (sha256
11270 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11271 (build-system qt-build-system)
11272 (native-inputs
11273 `(("extra-cmake-modules" ,extra-cmake-modules)
11274 ("kdoctools" ,kdoctools)))
11275 (inputs
11276 `(("kcompletion" ,kcompletion)
11277 ("kcoreaddons" ,kcoreaddons)
11278 ("kcrash" ,kcrash)
11279 ("kdbusaddons" ,kdbusaddons)
11280 ("ki18n" ,ki18n)
11281 ("kxmlgui" ,kxmlgui)
11282 ("libkdegames" ,libkdegames)
11283 ("qtbase" ,qtbase)
11284 ("qtdeclarative" ,qtdeclarative)
11285 ("qtsvg" ,qtsvg)))
11286 (home-page "https://games.kde.org/")
11287 (synopsis "Classic pen and paper game: five in a line")
11288 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11289 points\") like game for two players, where the opponents alternate in placing
11290 their respective pictogram on the game board. The winner is the first to
11291 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11292 X and O, Naughts and Crosses)
11293
11294 This package is part of the KDE games module.")
11295 (license (list license:gpl2+ license:fdl1.2+))))
11296
11297 (define-public killbots
11298 (package
11299 (name "killbots")
11300 (version "20.12.0")
11301 (source
11302 (origin
11303 (method url-fetch)
11304 (uri (string-append "mirror://kde/stable/release-service/" version
11305 "/src/killbots-" version ".tar.xz"))
11306 (sha256
11307 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11308 (build-system qt-build-system)
11309 (native-inputs
11310 `(("extra-cmake-modules" ,extra-cmake-modules)
11311 ("kdoctools" ,kdoctools)))
11312 (inputs
11313 `(("kcompletion" ,kcompletion)
11314 ("kconfig" ,kconfig)
11315 ("kconfigwidgets" ,kconfigwidgets)
11316 ("kcoreaddons" ,kcoreaddons)
11317 ("kcrash" ,kcrash)
11318 ("kdbusaddons" ,kdbusaddons)
11319 ("ki18n" ,ki18n)
11320 ("kwidgetsaddons" ,kwidgetsaddons)
11321 ("kxmlgui" ,kxmlgui)
11322 ("libkdegames" ,libkdegames)
11323 ("qtbase" ,qtbase)
11324 ("qtdeclarative" ,qtdeclarative)))
11325 (home-page "https://games.kde.org/")
11326 (synopsis "Port of the classic BSD console game robots")
11327 (description "Killbots is a simple game of evading killer robots.
11328
11329 Who created the robots and why they have been programmed to destroy, no one
11330 knows. All that is known is that the robots are numerous and their sole
11331 objective is to destroy you. Fortunately for you, their creator has focused
11332 on quantity rather than quality and as a result the robots are severely
11333 lacking in intelligence. Your superior wit and a fancy teleportation device
11334 are your only weapons against the never-ending stream of mindless automatons.
11335
11336 This package is part of the KDE games module.")
11337 (license (list license:gpl2+ license:fdl1.2+))))
11338
11339 (define-public ksnakeduel
11340 (package
11341 (name "ksnakeduel")
11342 (version "20.12.0")
11343 (source
11344 (origin
11345 (method url-fetch)
11346 (uri (string-append "mirror://kde/stable/release-service/" version
11347 "/src/ksnakeduel-" version ".tar.xz"))
11348 (sha256
11349 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11350 (build-system qt-build-system)
11351 (native-inputs
11352 `(("extra-cmake-modules" ,extra-cmake-modules)
11353 ("kdoctools" ,kdoctools)))
11354 (inputs
11355 `(("kcompletion" ,kcompletion)
11356 ("kconfig" ,kconfig)
11357 ("kconfigwidgets" ,kconfigwidgets)
11358 ("kcoreaddons" ,kcoreaddons)
11359 ("kcrash" ,kcrash)
11360 ("kdbusaddons" ,kdbusaddons)
11361 ("kguiaddons" ,kguiaddons)
11362 ("ki18n" ,ki18n)
11363 ("kxmlgui" ,kxmlgui)
11364 ("libkdegames" ,libkdegames)
11365 ("qtbase" ,qtbase)
11366 ("qtdeclarative" ,qtdeclarative)
11367 ("qtsvg" ,qtsvg)))
11368 (home-page "https://games.kde.org/")
11369 (synopsis "Snake race played against the computer")
11370 (description "KSnakeDuel is a fast action game where you steer a snake
11371 which has to eat food. While eating the snake grows. But once a player
11372 collides with the other snake or the wall the game is lost. This becomes of
11373 course more and more difficult the longer the snakes grow.
11374
11375 This package is part of the KDE games module.")
11376 (license (list license:gpl2+ license:fdl1.2+))))
11377
11378 (define-public kollision
11379 (package
11380 (name "kollision")
11381 (version "20.12.0")
11382 (source
11383 (origin
11384 (method url-fetch)
11385 (uri (string-append "mirror://kde/stable/release-service/" version
11386 "/src/kollision-" version ".tar.xz"))
11387 (sha256
11388 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11389 (build-system qt-build-system)
11390 (native-inputs
11391 `(("extra-cmake-modules" ,extra-cmake-modules)
11392 ("kdoctools" ,kdoctools)))
11393 (inputs
11394 `(("kcompletion" ,kcompletion)
11395 ("kconfig" ,kconfig)
11396 ("kcoreaddons" ,kcoreaddons)
11397 ("kcrash" ,kcrash)
11398 ("kdbusaddons" ,kdbusaddons)
11399 ("ki18n" ,ki18n)
11400 ("kwidgetsaddons" ,kwidgetsaddons)
11401 ("kxmlgui" ,kxmlgui)
11402 ("libkdegames" ,libkdegames)
11403 ("qtbase" ,qtbase)
11404 ("qtdeclarative" ,qtdeclarative)))
11405 (home-page "https://games.kde.org/")
11406 (synopsis "Simple ball dodging game")
11407 (description "In Kollision you use mouse to control a small blue ball in a
11408 closed space environment filled with small red balls, which move about
11409 chaotically. Your goal is to avoid touching any of those red balls with your
11410 blue one, because the moment you do the game will be over. The longer you can
11411 stay in game the higher will your score be.
11412
11413 This package is part of the KDE games module.")
11414 (license (list license:gpl2+ license:fdl1.2+))))
11415
11416 (define-public knavalbattle
11417 (package
11418 (name "knavalbattle")
11419 (version "20.12.0")
11420 (source
11421 (origin
11422 (method url-fetch)
11423 (uri (string-append "mirror://kde/stable/release-service/" version
11424 "/src/knavalbattle-" version ".tar.xz"))
11425 (sha256
11426 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11427 (build-system qt-build-system)
11428 (native-inputs
11429 `(("extra-cmake-modules" ,extra-cmake-modules)
11430 ("kdoctools" ,kdoctools)))
11431 (inputs
11432 `(("kauth" ,kauth)
11433 ("kcompletion" ,kcompletion)
11434 ("kconfig" ,kconfig)
11435 ("kconfigwidgets" ,kconfigwidgets)
11436 ("kcoreaddons" ,kcoreaddons)
11437 ("kcrash" ,kcrash)
11438 ("kdbusaddons" ,kdbusaddons)
11439 ("kdnssd" ,kdnssd)
11440 ("ki18n" ,ki18n)
11441 ("ktextwidgets" ,ktextwidgets)
11442 ("kxmlgui" ,kxmlgui)
11443 ("libkdegames" ,libkdegames)
11444 ("qtbase" ,qtbase)
11445 ("qtdeclarative" ,qtdeclarative)))
11446 (home-page "https://games.kde.org/")
11447 (synopsis "Battleship board game with built-in game server")
11448 (description "KBattleship is a Battle Ship game for KDE.
11449
11450 Ships are placed on a board which represents the sea. Players try to hit each
11451 others ships in turns without knowing where they are placed. The first player
11452 to destroy all ships wins the game.
11453
11454 This package is part of the KDE games module.")
11455 (license (list license:gpl2+ license:fdl1.2+))))
11456
11457 (define-public kreversi
11458 (package
11459 (name "kreversi")
11460 (version "20.08.3")
11461 (source
11462 (origin
11463 (method url-fetch)
11464 (uri (string-append "mirror://kde/stable/release-service/" version
11465 "/src/kreversi-" version ".tar.xz"))
11466 (sha256
11467 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11468 (build-system qt-build-system)
11469 (native-inputs
11470 `(("extra-cmake-modules" ,extra-cmake-modules)
11471 ("kdoctools" ,kdoctools)))
11472 (inputs
11473 `(("kconfig" ,kconfig)
11474 ("kconfigwidgets" ,kconfigwidgets)
11475 ("kcoreaddons" ,kcoreaddons)
11476 ("kcrash" ,kcrash)
11477 ("kdbusaddons" ,kdbusaddons)
11478 ("kdeclarative" ,kdeclarative)
11479 ("ki18n" ,ki18n)
11480 ("kiconthemes" ,kiconthemes)
11481 ("kio" ,kio)
11482 ("kxmlgui" ,kxmlgui)
11483 ("libkdegames" ,libkdegames)
11484 ("qtbase" ,qtbase)
11485 ("qtdeclarative" ,qtdeclarative)
11486 ("qtsvg" ,qtsvg)))
11487 (home-page "https://games.kde.org/")
11488 (synopsis "Old reversi board game, also known as othello")
11489 (description "KReversi is a simple one player strategy game played
11490 against the computer.
11491
11492 If a player's piece is captured by an opposing player, that piece is turned
11493 over to reveal the color of that player. A winner is declared when one player
11494 has more pieces of his own color on the board and there are no more possible
11495 moves.
11496
11497 This package is part of the KDE games module.")
11498 (license (list license:gpl2+ license:fdl1.2+))))
11499
11500 (define-public ksquares
11501 (package
11502 (name "ksquares")
11503 (version "20.12.0")
11504 (source
11505 (origin
11506 (method url-fetch)
11507 (uri (string-append "mirror://kde/stable/release-service/" version
11508 "/src/ksquares-" version ".tar.xz"))
11509 (sha256
11510 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11511 (build-system qt-build-system)
11512 (native-inputs
11513 `(("extra-cmake-modules" ,extra-cmake-modules)
11514 ("kdoctools" ,kdoctools)))
11515 (inputs
11516 `(("kcompletion" ,kcompletion)
11517 ("kconfig" ,kconfig)
11518 ("kconfigwidgets" ,kconfigwidgets)
11519 ("kcoreaddons" ,kcoreaddons)
11520 ("kcrash" ,kcrash)
11521 ("kdbusaddons" ,kdbusaddons)
11522 ("ki18n" ,ki18n)
11523 ("kwidgetsaddons" ,kwidgetsaddons)
11524 ("kxmlgui" ,kxmlgui)
11525 ("libkdegames" ,libkdegames)
11526 ("qtbase" ,qtbase)
11527 ("qtdeclarative" ,qtdeclarative)))
11528 (home-page "https://games.kde.org/")
11529 (synopsis "Dots and Boxes game")
11530 (description "KSquares is an implementation of the popular paper based
11531 game Squares. Two players take turns connecting dots on a grid to complete
11532 squares, the player with the most squares wins.
11533
11534 This package is part of the KDE games module.")
11535 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11536
11537 (define-public kjumpingcube
11538 (package
11539 (name "kjumpingcube")
11540 (version "20.12.0")
11541 (source
11542 (origin
11543 (method url-fetch)
11544 (uri (string-append "mirror://kde/stable/release-service/" version
11545 "/src/kjumpingcube-" version ".tar.xz"))
11546 (sha256
11547 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11548 (build-system qt-build-system)
11549 (native-inputs
11550 `(("extra-cmake-modules" ,extra-cmake-modules)
11551 ("kdoctools" ,kdoctools)))
11552 (inputs
11553 `(("kconfig" ,kconfig)
11554 ("kconfigwidgets" ,kconfigwidgets)
11555 ("kcoreaddons" ,kcoreaddons)
11556 ("kcrash" ,kcrash)
11557 ("kdbusaddons" ,kdbusaddons)
11558 ("ki18n" ,ki18n)
11559 ("kio" ,kio)
11560 ("kwidgetsaddons" ,kwidgetsaddons)
11561 ("kxmlgui" ,kxmlgui)
11562 ("libkdegames" ,libkdegames)
11563 ("qtbase" ,qtbase)
11564 ("qtdeclarative" ,qtdeclarative)
11565 ("qtsvg" ,qtsvg)))
11566 (home-page "https://games.kde.org/")
11567 (synopsis "Simple tactical game for number-crunchers")
11568 (description "KJumpingcube is a simple tactical game for one or two
11569 players, played on a grid of numbered squares. Each turn, players compete for
11570 control of the board by capturing or adding to one square.
11571
11572 This package is part of the KDE games module.")
11573 (license (list license:gpl2+ license:fdl1.2+))))
11574
11575 (define-public xmoto
11576 (package
11577 (name "xmoto")
11578 (version "0.6.1")
11579 (source
11580 (origin
11581 (method git-fetch)
11582 (uri (git-reference
11583 (url "https://github.com/xmoto/xmoto")
11584 (commit version)))
11585 (file-name (git-file-name name version))
11586 (sha256
11587 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11588 (modules '((guix build utils)
11589 (ice-9 ftw)
11590 (srfi srfi-1)))
11591 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11592 ;; it appears to be incompatible with the (older) one bundled.
11593 (snippet
11594 `(begin
11595 (let ((keep '("chipmunk" "glad" "md5sum")))
11596 (with-directory-excursion "vendor"
11597 (for-each delete-file-recursively
11598 (lset-difference string=?
11599 (scandir ".")
11600 (cons* "." ".." keep))))
11601 (substitute* "src/CMakeLists.txt"
11602 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11603 (if (member library keep) line ""))))
11604 #t))))
11605 (build-system cmake-build-system)
11606 (arguments
11607 `(#:tests? #f ;no test
11608 #:phases
11609 (modify-phases %standard-phases
11610 (add-after 'unpack 'fix-hard-coded-directory
11611 (lambda* (#:key outputs #:allow-other-keys)
11612 (substitute* "src/common/VFileIO.cpp"
11613 (("/usr/share")
11614 (string-append (assoc-ref outputs "out") "/share")))
11615 #t))
11616 (add-before 'build 'set-SDL
11617 ;; Set correct environment for SDL.
11618 (lambda* (#:key inputs #:allow-other-keys)
11619 (setenv "CPATH"
11620 (string-append
11621 (assoc-ref inputs "sdl") "/include/SDL:"
11622 (or (getenv "CPATH") "")))
11623 #t))
11624 (add-after 'install 'unbundle-fonts
11625 ;; Unbundle DejaVuSans TTF files.
11626 (lambda* (#:key outputs inputs #:allow-other-keys)
11627 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11628 "/share/fonts/truetype/"))
11629 (target-dir (string-append (assoc-ref outputs "out")
11630 "/share/xmoto/Textures/Fonts/")))
11631 (for-each (lambda (f)
11632 (let ((font (string-append font-dir f))
11633 (target (string-append target-dir f)))
11634 (delete-file target)
11635 (symlink font target)))
11636 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11637 #t))))))
11638 (native-inputs
11639 `(("gettext" ,gettext-minimal)
11640 ("pkg-config" ,pkg-config)))
11641 (inputs
11642 `(("bzip2" ,bzip2)
11643 ("curl" ,curl)
11644 ("font-dejavu" ,font-dejavu)
11645 ("glu" ,glu)
11646 ("libjpeg" ,libjpeg-turbo)
11647 ("libpng" ,libpng)
11648 ("libxdg-basedir" ,libxdg-basedir)
11649 ("libxml2" ,libxml2)
11650 ("lua" ,lua-5.1)
11651 ("ode" ,ode)
11652 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11653 ("sqlite" ,sqlite)
11654 ("zlib" ,zlib)))
11655 (home-page "https://xmoto.tuxfamily.org/")
11656 (synopsis "2D motocross platform game")
11657 (description
11658 "X-Moto is a challenging 2D motocross platform game, where
11659 physics play an all important role in the gameplay. You need to
11660 control your bike to its limit, if you want to have a chance finishing
11661 the more difficult challenges.")
11662 (license (list license:gpl2+ ;whole project
11663 license:bsd-3 ;vendor/md5sum
11664 license:lgpl2.1+
11665 license:expat))))
11666
11667 (define-public eboard
11668 (package
11669 (name "eboard")
11670 (version "1.1.3")
11671 (source
11672 (origin
11673 (method git-fetch)
11674 (uri (git-reference
11675 (url "https://github.com/fbergo/eboard")
11676 (commit (string-append "v" version))))
11677 (file-name (git-file-name name version))
11678 (sha256
11679 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11680 (build-system gnu-build-system)
11681 (native-inputs
11682 `(("perl" ,perl)
11683 ("pkg-config" ,pkg-config)))
11684 (inputs
11685 `(("gtk+" ,gtk+-2)
11686 ("libpng" ,libpng)
11687 ("gstreamer" ,gstreamer)))
11688 (arguments
11689 `(#:tests? #f
11690 #:phases
11691 (modify-phases %standard-phases
11692 (replace 'configure
11693 (lambda* (#:key outputs #:allow-other-keys)
11694 (make-file-writable "eboard-config")
11695 (setenv "CC" "gcc")
11696 (invoke "./configure"
11697 (string-append "--prefix=" (assoc-ref outputs "out")))
11698 #t))
11699 (add-before 'install 'make-required-directories
11700 (lambda* (#:key outputs #:allow-other-keys)
11701 (mkdir-p (string-append (assoc-ref outputs "out")
11702 "/share/eboard"))
11703 #t)))))
11704 (synopsis "Graphical user interface to play chess")
11705 (description
11706 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11707 and chess engines.")
11708 (home-page "https://www.bergo.eng.br/eboard/")
11709 (license license:gpl2+)))
11710
11711 (define-public chessx
11712 (package
11713 (name "chessx")
11714 (version "1.5.4")
11715 (source
11716 (origin
11717 (method url-fetch)
11718 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11719 version "/chessx-" version ".tgz"))
11720 (sha256
11721 (base32 "1a3541vl5hp6jllgx998w9kjh9kp3wrl80yfwkxmq1bc5bzsrnz2"))))
11722 (build-system qt-build-system)
11723 (native-inputs
11724 `(("qttools" ,qttools)))
11725 (inputs
11726 `(("qtbase" ,qtbase)
11727 ("qtmultimedia" ,qtmultimedia)
11728 ("qtspeech" ,qtspeech)
11729 ("qtsvg" ,qtsvg)
11730 ("zlib" ,zlib)))
11731 (arguments
11732 `(#:tests? #f
11733 #:phases
11734 (modify-phases %standard-phases
11735 (add-after 'unpack 'fix-paths
11736 (lambda* (#:key inputs #:allow-other-keys)
11737 (substitute* "chessx.pro"
11738 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11739 (string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
11740 ;; Fix missing translations.
11741 (("TRANSLATIONS = i18n/chessx_de.ts")
11742 "TRANSLATIONS = i18n/chessx_de.ts i18n/chessx_da.ts \\
11743 i18n/chessx_fr.ts i18n/chessx_it.ts i18n/chessx_cz.ts i18n/chessx_ru.ts \\
11744 i18n/chessx_es.ts"))
11745 #t))
11746 (add-after 'fix-paths 'make-qt-deterministic
11747 (lambda _
11748 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11749 #t))
11750 (replace 'configure
11751 (lambda _
11752 (invoke "qmake")
11753 #t))
11754 (replace 'install
11755 (lambda* (#:key outputs #:allow-other-keys)
11756 (let ((out (assoc-ref outputs "out")))
11757 (install-file "release/chessx" (string-append out "/bin"))
11758 (install-file "unix/chessx.desktop"
11759 (string-append out "/share/applications")))
11760 #t)))))
11761 (synopsis "Chess game database")
11762 (description
11763 "ChessX is a chess database. With ChessX you can operate on your
11764 collection of chess games in many ways: browse, edit, add, organize, analyze,
11765 etc. You can also play games on FICS or against an engine.")
11766 (home-page "http://chessx.sourceforge.net/")
11767 (license license:gpl2+)))
11768
11769 (define-public stockfish
11770 (package
11771 (name "stockfish")
11772 (version "12")
11773 (source
11774 (origin
11775 (method git-fetch)
11776 (uri (git-reference
11777 (url "https://github.com/official-stockfish/Stockfish")
11778 (commit (string-append "sf_" version))))
11779 (file-name (git-file-name name version))
11780 (sha256
11781 (base32 "0vcymbwp5nf114pp3ax40s21ki5dckda15vmhr77d1mnq3fn0l32"))))
11782 (build-system gnu-build-system)
11783 (inputs
11784 `(("neural-network"
11785 ,(origin
11786 (method url-fetch)
11787 (uri "https://tests.stockfishchess.org/api/nn/nn-82215d0fd0df.nnue")
11788 (sha256
11789 (base32 "1r4yqrh4di05syyhl84hqcz84djpbd605b27zhbxwg6zs07ms8c2"))))))
11790 (arguments
11791 `(#:tests? #f
11792 #:make-flags (list "-C" "src"
11793 "build"
11794 (string-append "PREFIX="
11795 (assoc-ref %outputs "out"))
11796 (string-append "ARCH="
11797 ,(match (%current-system)
11798 ("x86_64-linux" "x86-64")
11799 ("i686-linux" "x86-32")
11800 ("aarch64-linux" "general-64")
11801 ("armhf-linux" "armv7")
11802 ("mips64el-linux" "general-64")
11803 (_ "general-32"))))
11804 #:phases (modify-phases %standard-phases
11805 (delete 'configure)
11806 ;; The official neural network file is needed for building
11807 ;; and is embedded in the resulting binary.
11808 (add-after 'unpack 'copy-net
11809 (lambda* (#:key inputs #:allow-other-keys)
11810 (copy-file (assoc-ref inputs "neural-network")
11811 "src/nn-82215d0fd0df.nnue")
11812 #t)))))
11813 (synopsis "Strong chess engine")
11814 (description
11815 "Stockfish is a very strong chess engine. It is much stronger than the
11816 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11817 ChessX.")
11818 (home-page "https://stockfishchess.org/")
11819 (license license:gpl3+)))
11820
11821 (define-public barrage
11822 (package
11823 (name "barrage")
11824 (version "1.0.5")
11825 (source
11826 (origin
11827 (method url-fetch)
11828 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11829 "barrage-" version ".tar.gz"))
11830 (sha256
11831 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11832 (build-system gnu-build-system)
11833 (inputs
11834 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11835 ("sdl" ,sdl)
11836 ("sdl-mixer" ,sdl-mixer)))
11837 (arguments
11838 `(#:configure-flags
11839 (list
11840 (string-append "CFLAGS="
11841 "-I" (assoc-ref %build-inputs "sdl-mixer")
11842 "/include/SDL"))))
11843 (home-page "http://lgames.sourceforge.net/Barrage/")
11844 (synopsis "Violent point-and-click shooting game with nice effects")
11845 (description
11846 "Barrage is a rather destructive action game that puts you on a shooting
11847 range with the objective to hit as many dummy targets as possible within
11848 3 minutes. You control a gun that may either fire small or large grenades at
11849 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11850 get high scores.")
11851 (license license:gpl2+)))
11852
11853 (define-public burgerspace
11854 (package
11855 (name "burgerspace")
11856 (version "1.9.3")
11857 (source
11858 (origin
11859 (method url-fetch)
11860 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11861 "burgerspace-" version ".tar.gz"))
11862 (sha256
11863 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11864 (build-system gnu-build-system)
11865 (native-inputs
11866 `(("pkg-config" ,pkg-config)))
11867 (inputs
11868 `(("flatzebra" ,flatzebra)))
11869 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11870 (synopsis "Avoid evil foodstuffs and make burgers")
11871 (description
11872 "This is a clone of the classic game BurgerTime. In it, you play
11873 the part of a chef who must create burgers by stepping repeatedly on
11874 the ingredients until they fall into place. And to make things more
11875 complicated, you also must avoid evil animate food items while
11876 performing this task, with nothing but your trusty pepper shaker to
11877 protect you.")
11878 (license license:gpl2+)))
11879
11880 (define-public 7kaa
11881 (package
11882 (name "7kaa")
11883 (version "2.15.4p1")
11884 (source
11885 (origin
11886 (method url-fetch)
11887 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11888 "releases/download/v" version "/"
11889 "7kaa-" version ".tar.xz"))
11890 (sha256
11891 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
11892 (build-system gnu-build-system)
11893 (native-inputs
11894 `(("gettext" ,gettext-minimal)
11895 ("pkg-config" ,pkg-config)))
11896 (inputs
11897 `(("curl" ,curl)
11898 ("enet" ,enet)
11899 ("openal" ,openal)
11900 ("sdl2" ,sdl2)))
11901 (home-page "https://7kfans.com/")
11902 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11903 (description
11904 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11905 Strategy with the addition of trade, diplomacy, and espionage. The game
11906 enables players to compete against up to six other kingdoms allowing players
11907 to conquer opponents by defeating them in war (with troops or machines),
11908 capturing their buildings with spies, or offering opponents money for their
11909 kingdom.")
11910 (license license:gpl2+)))
11911
11912 (define-public neverball
11913 ;; Git version is 6-years younger than latest release.
11914 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
11915 (revision "1"))
11916 (package
11917 (name "neverball")
11918 (version (git-version "1.6.0" revision commit))
11919 (source
11920 (origin
11921 (method git-fetch)
11922 (uri (git-reference
11923 (url "https://github.com/Neverball/neverball")
11924 (commit commit)))
11925 (sha256
11926 (base32
11927 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
11928 (file-name (git-file-name name version))
11929 (modules '((guix build utils)))
11930 (snippet
11931 '(begin
11932 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
11933 (delete-file-recursively "data/ball/octocat")
11934 #t))))
11935 (build-system copy-build-system)
11936 (arguments
11937 `(#:install-plan
11938 '(("neverball" "bin/")
11939 ("neverputt" "bin/")
11940 ("mapc" "bin/")
11941 ("data" "share/games/neverball/")
11942 ("locale" "share/")
11943 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
11944 "neverlogos.svg"
11945 "svg readme.txt"))
11946 ("dist/" "share/applications" #:include ("neverball.desktop"
11947 "neverputt.desktop"))
11948 ("dist/neverball_16.png"
11949 "/share/icons/hicolor/16x16/apps/neverball.png")
11950 ("dist/neverball_24.png"
11951 "/share/icons/hicolor/24x24/apps/neverball.png")
11952 ("dist/neverball_32.png"
11953 "/share/icons/hicolor/32x32/apps/neverball.png")
11954 ("dist/neverball_48.png"
11955 "/share/icons/hicolor/48x48/apps/neverball.png")
11956 ("dist/neverball_64.png"
11957 "/share/icons/hicolor/64x64/apps/neverball.png")
11958 ("dist/neverball_128.png"
11959 "/share/icons/hicolor/128x128/apps/neverball.png")
11960 ("dist/neverball_256.png"
11961 "/share/icons/hicolor/256x256/apps/neverball.png")
11962 ("dist/neverball_512.png"
11963 "/share/icons/hicolor/512x512/apps/neverball.png")
11964 ("dist/neverputt_16.png"
11965 "/share/icons/hicolor/16x16/apps/neverputt.png")
11966 ("dist/neverputt_24.png"
11967 "/share/icons/hicolor/24x24/apps/neverputt.png")
11968 ("dist/neverputt_32.png"
11969 "/share/icons/hicolor/32x32/apps/neverputt.png")
11970 ("dist/neverputt_48.png"
11971 "/share/icons/hicolor/48x48/apps/neverputt.png")
11972 ("dist/neverputt_64.png"
11973 "/share/icons/hicolor/64x64/apps/neverputt.png")
11974 ("dist/neverputt_128.png"
11975 "/share/icons/hicolor/128x128/apps/neverputt.png")
11976 ("dist/neverputt_256.png"
11977 "/share/icons/hicolor/256x256/apps/neverputt.png")
11978 ("dist/neverputt_512.png"
11979 "/share/icons/hicolor/512x512/apps/neverputt.png")
11980 ("dist/" "share/man/man1" #:include ("mapc.1"))
11981 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
11982 ("doc/" "share/doc/neverball")
11983 ("README.md" "share/doc/neverball/"))
11984 #:phases
11985 (modify-phases %standard-phases
11986 (add-before 'install 'build
11987 (lambda* (#:key inputs outputs #:allow-other-keys)
11988 (let* ((out (assoc-ref outputs "out"))
11989 (sdl (assoc-ref inputs "sdl")))
11990 (invoke "make" "-j" (number->string (parallel-job-count))
11991 "--environment-overrides"
11992 "CC=gcc" "BUILD=release"
11993 (string-append "DATADIR="
11994 out
11995 "/share/games/neverball/data")
11996 (string-append "LOCALEDIR=" out "/share/locale")
11997 (string-append "SDL_CPPFLAGS=-I"
11998 sdl
11999 "/include/SDL2/")))
12000 #t))
12001 (add-after 'install 'fix-some-broken-fonts
12002 (lambda* (#:key outputs #:allow-other-keys)
12003 (let* ((out (assoc-ref outputs "out")))
12004 (wrap-program (string-append out "/bin/neverball")
12005 `("LANG" = ("en_US.utf8")))
12006 (wrap-program (string-append out "/bin/neverputt")
12007 `("LANG" = ("en_US.utf8"))))
12008 #t)))))
12009 (native-inputs
12010 `(("gettext" ,gettext-minimal))) ;for msgfmt
12011 (inputs
12012 `(("libjpeg" ,libjpeg-turbo)
12013 ("libpng" ,libpng)
12014 ("libvorbis" ,libvorbis)
12015 ("physfs" ,physfs)
12016 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
12017 (home-page "https://neverball.org/")
12018 (synopsis "3D floor-tilting game")
12019 (description
12020 "In the grand tradition of Marble Madness and Super Monkey Ball,
12021 Neverball has you guide a rolling ball through dangerous territory. Balance
12022 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
12023 and shovers to get to the goal. Race against the clock to collect coins to
12024 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
12025 game.") ;thanks to Debian for description
12026 (license license:gpl2+))))
12027
12028 (define-public pokerth
12029 (package
12030 (name "pokerth")
12031 (version "1.1.2")
12032 (source
12033 (origin
12034 (method url-fetch)
12035 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
12036 version "/pokerth-" version ".tar.gz"))
12037 (sha256
12038 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
12039 (modules '((guix build utils)))
12040 (snippet
12041 '(begin
12042 ;; Remove bundled websocketpp.
12043 (delete-file-recursively "src/third_party/websocketpp")
12044 (substitute* "pokerth_lib.pro"
12045 (("src/third_party/websocketpp")
12046 ""))
12047 #t))))
12048 (build-system qt-build-system)
12049 (inputs
12050 `(("boost" ,boost)
12051 ("curl" ,curl)
12052 ("gsasl" ,gsasl)
12053 ("libgcrypt" ,libgcrypt)
12054 ("libircclient" ,libircclient)
12055 ("protobuf" ,protobuf-2) ; remove package when no longer needed
12056 ("qtbase" ,qtbase)
12057 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
12058 ("sqlite" ,sqlite)
12059 ("tinyxml" ,tinyxml)
12060 ("websocketpp" ,websocketpp)
12061 ("zlib" ,zlib)))
12062 (arguments
12063 `(#:tests? #f ; No test suite
12064 #:phases
12065 (modify-phases %standard-phases
12066 (add-after 'unpack 'fix-paths
12067 (lambda* (#:key inputs #:allow-other-keys)
12068 (substitute* (find-files "." "\\.pro$")
12069 (("/opt/gsasl")
12070 (assoc-ref inputs "gsasl"))
12071 (("\\$\\$\\{PREFIX\\}/include/libircclient")
12072 (string-append (assoc-ref inputs "libircclient")
12073 "/include/libircclient"))
12074 (("LIB_DIRS =")
12075 (string-append "LIB_DIRS = "
12076 (assoc-ref inputs "boost") "/lib")))
12077 #t))
12078 (add-after 'unpack 'fix-build
12079 (lambda _
12080 ;; Fixes for Boost versions >= 1.66.
12081 (substitute* '("src/net/common/clientthread.cpp"
12082 "src/net/serveraccepthelper.h")
12083 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
12084 "")
12085 (("newSock->io_control\\(command\\);")
12086 "newSock->non_blocking(true);")
12087 (("acceptedSocket->io_control\\(command\\);")
12088 "acceptedSocket->non_blocking(true);"))
12089 #t))
12090 (replace 'configure
12091 (lambda* (#:key outputs #:allow-other-keys)
12092 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
12093 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
12094 (home-page "https://www.pokerth.net")
12095 (synopsis "Texas holdem poker game")
12096 (description
12097 "With PokerTH you can play the Texas holdem poker game, either against
12098 computer opponents or against real players online.")
12099 (license license:agpl3+)))
12100
12101 (define-public azimuth
12102 (package
12103 (name "azimuth")
12104 ;; Not marked as latest release, but it fixes a compiling issue
12105 ;; and adds the install target.
12106 (version "1.0.3")
12107 (source
12108 (origin
12109 (method git-fetch)
12110 (uri (git-reference
12111 (url "https://github.com/mdsteele/azimuth")
12112 (commit (string-append "v" version))))
12113 (file-name (git-file-name name version))
12114 (sha256
12115 (base32
12116 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
12117 (build-system gnu-build-system)
12118 (arguments
12119 `(#:test-target "test"
12120 #:phases
12121 (modify-phases %standard-phases
12122 (delete 'configure) ; no configure script
12123 ;; Build release version instead of debug version.
12124 (add-after 'unpack 'set-release
12125 (lambda _
12126 (setenv "BUILDTYPE" "release") #t))
12127 (add-after 'unpack 'fix-install ; set install directory
12128 (lambda* (#:key outputs #:allow-other-keys)
12129 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12130 (inputs `(("sdl" ,sdl)))
12131 (home-page "https://mdsteele.games/azimuth/")
12132 (synopsis "Metroidvania game with vector graphics")
12133 (description
12134 "Pilot your ship inside a planet to find and rescue the colonists trapped
12135 inside the Zenith Colony.")
12136 (license license:gpl3+)))
12137
12138 (define-public cgoban
12139 (package
12140 (name "cgoban")
12141 (version "1.9.14")
12142 (source
12143 (origin
12144 (method url-fetch)
12145 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12146 version "/cgoban-" version ".tar.gz"))
12147 (sha256
12148 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12149 (build-system gnu-build-system)
12150 (inputs
12151 `(("libx11" ,libx11)
12152 ("libxt" ,libxt)
12153 ("xorgproto" ,xorgproto)))
12154 (home-page "http://cgoban1.sourceforge.net/")
12155 (synopsis "Go client for X11")
12156 (description "Provides a large set of Go-related services for X11:
12157 @itemize
12158 @item Local games with precise implementation of the Chinese and Japanese rulesets
12159 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12160 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12161 such as GnuGo.
12162 @end itemize")
12163 (license license:gpl2+)))
12164
12165 (define-public paperview
12166 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12167 (revision "1"))
12168 (package
12169 (name "paperview")
12170 (version (git-version "0.0.1" revision commit)) ;no upstream release
12171 (source (origin
12172 (method git-fetch)
12173 (uri (git-reference
12174 (url "https://github.com/glouw/paperview")
12175 (commit commit)))
12176 (file-name (git-file-name name version))
12177 (sha256
12178 (base32
12179 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12180 (build-system gnu-build-system)
12181 (inputs
12182 `(("sdl2" ,sdl2)))
12183 (arguments
12184 '(#:tests? #f ;no tests
12185 #:make-flags
12186 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12187 #:phases
12188 (modify-phases %standard-phases
12189 (delete 'configure))))
12190 (home-page "https://github.com/glouw/paperview/")
12191 (synopsis "High performance X11 animated wallpaper setter")
12192 (description "High performance animated desktop background setter for
12193 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12194 game FPS.")
12195 (license license:unlicense))))
12196
12197 (define-public curseofwar
12198 (package
12199 (name "curseofwar")
12200 (version "1.3.0")
12201 (source
12202 (origin
12203 (method git-fetch)
12204 (uri (git-reference
12205 (url "https://github.com/a-nikolaev/curseofwar")
12206 (commit (string-append "v" version))))
12207 (file-name (git-file-name name version))
12208 (sha256
12209 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12210 (build-system gnu-build-system)
12211 (arguments
12212 `(#:tests? #f ; no tests
12213 #:make-flags
12214 (list (string-append "CC=" ,(cc-for-target))
12215 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12216 #:phases
12217 (modify-phases %standard-phases
12218 (delete 'configure))))
12219 (inputs `(("ncurses" ,ncurses)))
12220 (home-page "https://a-nikolaev.github.io/curseofwar/")
12221 (synopsis "Fast-paced action strategy game")
12222 (description "Curse of War is a fast-paced action strategy game originally
12223 implemented using ncurses user interface. An SDL graphical version is also
12224 available.")
12225 (license license:gpl3+)))