gnu: libdvdcss: Update to 1.4.3.
[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, 2021 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, 2021 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020, 2021 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020, 2021 Leo Prikler <leo.prikler@student.tugraz.at>
57 ;;; Copyright © 2020 Lu hux <luhux@outlook.com>
58 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
59 ;;; Copyright © 2021 Olivier Rojon <o.rojon@posteo.net>
60 ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
61 ;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
62 ;;;
63 ;;; This file is part of GNU Guix.
64 ;;;
65 ;;; GNU Guix is free software; you can redistribute it and/or modify it
66 ;;; under the terms of the GNU General Public License as published by
67 ;;; the Free Software Foundation; either version 3 of the License, or (at
68 ;;; your option) any later version.
69 ;;;
70 ;;; GNU Guix is distributed in the hope that it will be useful, but
71 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
72 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
73 ;;; GNU General Public License for more details.
74 ;;;
75 ;;; You should have received a copy of the GNU General Public License
76 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
77
78 (define-module (gnu packages games)
79 #:use-module (ice-9 match)
80 #:use-module ((guix licenses) #:prefix license:)
81 #:use-module (guix utils)
82 #:use-module (guix packages)
83 #:use-module (guix download)
84 #:use-module (guix git-download)
85 #:use-module (guix svn-download)
86 #:use-module (guix gexp)
87 #:use-module (gnu packages)
88 #:use-module (gnu packages adns)
89 #:use-module (gnu packages algebra)
90 #:use-module (gnu packages autotools)
91 #:use-module (gnu packages backup)
92 #:use-module (gnu packages base)
93 #:use-module (gnu packages build-tools)
94 #:use-module (gnu packages admin)
95 #:use-module (gnu packages audio)
96 #:use-module (gnu packages avahi)
97 #:use-module (gnu packages assembly)
98 #:use-module (gnu packages bash)
99 #:use-module (gnu packages bison)
100 #:use-module (gnu packages boost)
101 #:use-module (gnu packages check)
102 #:use-module (gnu packages cmake)
103 #:use-module (gnu packages compression)
104 #:use-module (gnu packages cpp)
105 #:use-module (gnu packages curl)
106 #:use-module (gnu packages crypto)
107 #:use-module (gnu packages cyrus-sasl)
108 #:use-module (gnu packages documentation)
109 #:use-module (gnu packages docbook)
110 #:use-module (gnu packages emulators)
111 #:use-module (gnu packages flex)
112 #:use-module (gnu packages fltk)
113 #:use-module (gnu packages fonts)
114 #:use-module (gnu packages fontutils)
115 #:use-module (gnu packages freedesktop)
116 #:use-module (gnu packages fribidi)
117 #:use-module (gnu packages game-development)
118 #:use-module (gnu packages gcc)
119 #:use-module (gnu packages gettext)
120 #:use-module (gnu packages ghostscript)
121 #:use-module (gnu packages gimp)
122 #:use-module (gnu packages gl)
123 #:use-module (gnu packages glib)
124 #:use-module (gnu packages gnome)
125 #:use-module (gnu packages gnu-doc)
126 #:use-module (gnu packages gnupg)
127 #:use-module (gnu packages gnuzilla)
128 #:use-module (gnu packages gperf)
129 #:use-module (gnu packages graphics)
130 #:use-module (gnu packages gsasl)
131 #:use-module (gnu packages gstreamer)
132 #:use-module (gnu packages gtk)
133 #:use-module (gnu packages guile)
134 #:use-module (gnu packages haskell)
135 #:use-module (gnu packages haskell-crypto)
136 #:use-module (gnu packages haskell-xyz)
137 #:use-module (gnu packages icu4c)
138 #:use-module (gnu packages image)
139 #:use-module (gnu packages imagemagick)
140 #:use-module (gnu packages javascript)
141 #:use-module (gnu packages kde)
142 #:use-module (gnu packages kde-frameworks)
143 #:use-module (gnu packages less)
144 #:use-module (gnu packages libcanberra)
145 #:use-module (gnu packages libedit)
146 #:use-module (gnu packages libunwind)
147 #:use-module (gnu packages linux)
148 #:use-module (gnu packages llvm)
149 #:use-module (gnu packages lua)
150 #:use-module (gnu packages man)
151 #:use-module (gnu packages maths)
152 #:use-module (gnu packages messaging)
153 #:use-module (gnu packages mp3)
154 #:use-module (gnu packages music)
155 #:use-module (gnu packages multiprecision)
156 #:use-module (gnu packages ncurses)
157 #:use-module (gnu packages netpbm)
158 #:use-module (gnu packages networking)
159 #:use-module (gnu packages ocaml)
160 #:use-module (gnu packages opencl)
161 #:use-module (gnu packages pcre)
162 #:use-module (gnu packages perl)
163 #:use-module (gnu packages perl-check)
164 #:use-module (gnu packages perl-compression)
165 #:use-module (gnu packages pkg-config)
166 #:use-module (gnu packages protobuf)
167 #:use-module (gnu packages pulseaudio)
168 #:use-module (gnu packages python)
169 #:use-module (gnu packages python-xyz)
170 #:use-module (gnu packages qt)
171 #:use-module (gnu packages readline)
172 #:use-module (gnu packages ruby)
173 #:use-module (gnu packages shells)
174 #:use-module (gnu packages sdl)
175 #:use-module (gnu packages serialization)
176 #:use-module (gnu packages sqlite)
177 #:use-module (gnu packages squirrel)
178 #:use-module (gnu packages swig)
179 #:use-module (gnu packages tcl)
180 #:use-module (gnu packages terminals)
181 #:use-module (gnu packages texinfo)
182 #:use-module (gnu packages textutils)
183 #:use-module (gnu packages tls)
184 #:use-module (gnu packages upnp)
185 #:use-module (gnu packages video)
186 #:use-module (gnu packages vulkan)
187 #:use-module (gnu packages web)
188 #:use-module (gnu packages wget)
189 #:use-module (gnu packages wxwidgets)
190 #:use-module (gnu packages xdisorg)
191 #:use-module (gnu packages xorg)
192 #:use-module (gnu packages xiph)
193 #:use-module (gnu packages xml)
194 #:use-module (guix build-system copy)
195 #:use-module (guix build-system cmake)
196 #:use-module (guix build-system glib-or-gtk)
197 #:use-module (guix build-system gnu)
198 #:use-module (guix build-system go)
199 #:use-module (guix build-system meson)
200 #:use-module (guix build-system perl)
201 #:use-module (guix build-system python)
202 #:use-module (guix build-system qt)
203 #:use-module (guix build-system scons)
204 #:use-module (guix build-system trivial)
205 #:use-module ((srfi srfi-1) #:hide (zip))
206 #:use-module (srfi srfi-26))
207
208 (define-public abe
209 (package
210 (name "abe")
211 (version "1.1")
212 (source
213 (origin
214 (method url-fetch)
215 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
216 "/abe-" version ".tar.gz"))
217 (sha256
218 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
219 (build-system gnu-build-system)
220 (arguments
221 `(#:configure-flags
222 (list (string-append "--with-data-dir="
223 (assoc-ref %outputs "out")
224 "/share/abe"))
225 #:phases
226 (modify-phases %standard-phases
227 (replace 'bootstrap
228 (lambda _ (invoke "sh" "autogen.sh")))
229 (add-before 'build 'set-SDL
230 ;; Set correct environment for SDL.
231 (lambda* (#:key inputs #:allow-other-keys)
232 (setenv "CPATH"
233 (string-append
234 (assoc-ref inputs "sdl") "/include/SDL:"
235 (or (getenv "CPATH") "")))
236 #t))
237 (add-after 'install 'finalize-install
238 (lambda* (#:key outputs #:allow-other-keys)
239 (let ((share (string-append (assoc-ref outputs "out") "/share")))
240 ;; Installation script does not copy game data files.
241 (let ((data (string-append share "/abe")))
242 (for-each (lambda (dir)
243 (let ((target (string-append data "/" dir)))
244 (mkdir-p target)
245 (copy-recursively dir target)))
246 '("images" "maps" "sounds")))
247 ;; Create desktop file.
248 (let ((apps (string-append share "/applications")))
249 (mkdir-p apps)
250 (make-desktop-entry-file
251 (string-append apps "/abe.desktop")
252 #:name "Abe's Amazing Adventure"
253 #:exec ,name
254 #:categories '("AdventureGame" "Game")
255 #:keywords
256 '("side-scrolling" "adventure" "pyramid" "singleplayer")
257 #:comment
258 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
259 (#f "Side-scrolling game")))))
260 #t)))))
261 (native-inputs
262 `(("autoconf" ,autoconf)
263 ("automake" ,automake)))
264 (inputs
265 `(("libxi" ,libxi)
266 ("libxmu" ,libxmu)
267 ("libxt" ,libxt)
268 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
269 (home-page "http://abe.sourceforge.net")
270 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
271 (description
272 "Abe's Amazing Adventure is a scrolling,
273 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
274 the style of similar games for the Commodore+4.")
275 (license license:gpl2+)))
276
277 ;; Data package for adanaxisgpl.
278 (define adanaxis-mush
279 (let ((version "1.1.0"))
280 (origin
281 (method url-fetch)
282 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
283 version ".tar.gz"))
284 (sha256
285 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
286
287 (define-public adanaxisgpl
288 (package
289 (name "adanaxisgpl")
290 (version "1.2.5")
291 (source
292 (origin
293 (method url-fetch)
294 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
295 version ".tar.gz"))
296 (sha256
297 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
298 (modules '((guix build utils)))
299 (snippet
300 '(begin
301 ;; Necessary for building with gcc >=4.7.
302 (substitute* "src/Mushcore/MushcoreSingleton.h"
303 (("SingletonPtrSet\\(new SingletonType\\);")
304 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
305 ;; Avoid an "invalid conversion from const char* to char*" error.
306 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
307 (("char \\*end, \\*result;")
308 (string-append "const char *end;"
309 "\n"
310 "char *result;")))
311 #t))))
312 (build-system gnu-build-system)
313 (arguments
314 `(#:tests? #f ; no check target
315 #:phases
316 (modify-phases %standard-phases
317 (add-after 'install 'install-data
318 (lambda* (#:key inputs outputs #:allow-other-keys)
319 (let ((data (assoc-ref inputs "adanaxis-mush"))
320 (share (string-append (assoc-ref outputs "out")
321 "/share/" ,name "-" ,version)))
322 (mkdir-p share)
323 (invoke "tar" "xvf" data "-C" share)))))))
324 (native-inputs
325 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
326 (inputs
327 `(("expat" ,expat)
328 ("freeglut" ,freeglut)
329 ("glu" ,glu)
330 ("libjpeg" ,libjpeg-turbo)
331 ("libogg" ,libogg)
332 ("libtiff" ,libtiff)
333 ("libvorbis" ,libvorbis)
334 ("libx11" ,libx11)
335 ("libxext" ,libxext)
336 ("pcre" ,pcre)
337 ("sdl" ,sdl)
338 ("sdl-mixer" ,sdl-mixer)))
339 (home-page "https://www.mushware.com")
340 (synopsis "Action game in four spatial dimensions")
341 (description
342 "Adanaxis is a fast-moving first person shooter set in deep space, where
343 the fundamentals of space itself are changed. By adding another dimension to
344 space this game provides an environment with movement in four directions and
345 six planes of rotation. Initially the game explains the 4D control system via
346 a graphical sequence, before moving on to 30 levels of gameplay with numerous
347 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
348 mouse and joystick control, and original music.")
349 (license license:gpl2)))
350
351 (define-public alex4
352 (package
353 (name "alex4")
354 (version "1.2.1")
355 (source
356 (origin
357 (method git-fetch)
358 (uri (git-reference
359 (url "https://github.com/carstene1ns/alex4")
360 (commit version)))
361 (file-name (git-file-name name version))
362 (sha256
363 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
364 (build-system gnu-build-system)
365 (arguments
366 `(#:tests? #f ; no check target
367 #:make-flags
368 (list "CC=gcc"
369 "CFLAGS=-D_FILE_OFFSET_BITS=64"
370 (string-append "PREFIX=" (assoc-ref %outputs "out")))
371 #:phases
372 (modify-phases %standard-phases
373 (delete 'configure) ; no configure script
374 (add-after 'install 'install-data
375 (lambda* (#:key outputs #:allow-other-keys)
376 (let ((share (string-append (assoc-ref outputs "out")
377 "/share/" ,name)))
378 (install-file "alex4.ini" share)
379 #t))))))
380 (inputs
381 `(("allegro" ,allegro-4)
382 ("dumb" ,dumb-allegro4)))
383 (home-page "http://allegator.sourceforge.net/")
384 (synopsis "Retro platform game")
385 (description
386 "Guide Alex the Allegator through the jungle in order to save his
387 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
388 Plenty of classic platforming in four nice colors guaranteed!
389
390 The game includes a built-in editor so you can design and share your own maps.")
391 (license license:gpl2+)))
392
393 (define-public armagetronad
394 (package
395 (name "armagetronad")
396 (version "0.2.9.0.1")
397 (source (origin
398 (method url-fetch)
399 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
400 version "/armagetronad-" version ".tbz"))
401 (sha256
402 (base32
403 "19rfhlg4gp0r7k1j8v4iw20325ciy156nmzax4xikmw22c6nmxcz"))))
404 (build-system gnu-build-system)
405 (native-inputs
406 `(("pkg-config" ,pkg-config)))
407 (inputs
408 `(("libxml2" ,libxml2)
409 ("sdl" ,sdl)
410 ("sdl-image" ,sdl-image)
411 ("freeglut" ,freeglut)
412 ("libpng" ,libpng)
413 ("libjpeg-turbo" ,libjpeg-turbo)))
414 (home-page "http://www.armagetronad.org")
415 (synopsis "Tron clone in 3D")
416 (description "Armagetron Advanced is a multiplayer game in 3d that
417 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
418 It's an old school arcade game slung into the 21st century. Highlights
419 include a customizable playing arena, HUD, unique graphics, and AI bots. For
420 the more advanced player there are new game modes and a wide variety of
421 physics settings to tweak as well.")
422 (license license:gpl2+)))
423
424 (define-public astromenace
425 (package
426 (name "astromenace")
427 (version "1.4.1")
428 (source
429 (origin
430 (method git-fetch)
431 (uri (git-reference
432 (url "https://github.com/viewizard/astromenace")
433 (commit (string-append "v" version))))
434 (file-name (git-file-name name version))
435 (sha256
436 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
437 (build-system cmake-build-system)
438 (arguments
439 `(#:tests? #f ;no test
440 #:configure-flags (list (string-append "-DDATADIR="
441 (assoc-ref %outputs "out")
442 "/share/astromenace"))
443 #:phases
444 (modify-phases %standard-phases
445 (replace 'install
446 ;; Upstream provides no install phase.
447 (lambda* (#:key inputs outputs #:allow-other-keys)
448 (let* ((out (assoc-ref outputs "out"))
449 (bin (string-append out "/bin"))
450 (share (string-append out "/share"))
451 (apps (string-append share "/applications"))
452 (data (string-append share "/astromenace"))
453 (icons (string-append share "/icons/hicolor/64x64/apps")))
454 (install-file "astromenace" bin)
455 (install-file "gamedata.vfs" data)
456 (let ((source (assoc-ref inputs "source")))
457 (with-directory-excursion (string-append source "/share")
458 (install-file "astromenace.desktop" apps)
459 (mkdir-p icons)
460 (copy-file "astromenace_64.png"
461 (string-append icons "/astromenace.png")))))
462 #t)))))
463 (inputs
464 `(("freealut" ,freealut)
465 ("freetype" ,freetype)
466 ("glu" ,glu)
467 ("libogg" ,libogg)
468 ("libvorbis" ,libvorbis)
469 ("openal" ,openal)
470 ("sdl2" ,sdl2)))
471 (home-page "https://www.viewizard.com/")
472 (synopsis "3D space shooter with spaceship upgrade possibilities")
473 (description
474 "Space is a vast area, an unbounded territory where it seems there is
475 a room for everybody, but reversal of fortune put things differently. The
476 hordes of hostile creatures crawled out from the dark corners of the universe,
477 craving to conquer your homeland. Their force is compelling, their legions
478 are interminable. However, humans didn't give up without a final showdown and
479 put their best pilot to fight back. These malicious invaders chose the wrong
480 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
481 regret their insolence.")
482 ;; Game is released under GPL3+ terms. Artwork is subject to CC
483 ;; BY-SA 4.0, and fonts to OFL1.1.
484 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
485
486 (define-public bastet
487 (package
488 (name "bastet")
489 (version "0.43.2")
490 (source
491 (origin
492 (method git-fetch)
493 (uri (git-reference
494 (url "https://github.com/fph/bastet")
495 (commit version)))
496 (file-name (git-file-name name version))
497 (sha256
498 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
499 (patches
500 (search-patches "bastet-change-source-of-unordered_set.patch"))))
501 (build-system gnu-build-system)
502 (arguments
503 `(#:make-flags
504 (list (string-append "CXXFLAGS=-I"
505 (assoc-ref %build-inputs "boost") "/include"))
506 #:phases
507 (modify-phases %standard-phases
508 (delete 'configure) ; no configure script
509 (replace 'check
510 ;; The 'Test' target builds the tests, but doesn't actually run them.
511 (lambda* (#:key make-flags #:allow-other-keys)
512 (apply invoke "make" "Test" make-flags)
513 (setenv "HOME" ".")
514 (invoke "./Test")))
515 (replace 'install
516 (lambda* (#:key outputs #:allow-other-keys)
517 (let* ((out (assoc-ref outputs "out"))
518 (share (string-append out "/share"))
519 (hicolor (string-append share "/icons/hicolor")))
520 (install-file "bastet"
521 (string-append out "/bin"))
522
523 (install-file "bastet.desktop"
524 (string-append share "/applications"))
525 (install-file "bastet.svg"
526 (string-append hicolor "/scalable/apps"))
527
528 (install-file "bastet.appdata.xml"
529 (string-append share "/appdata"))
530
531 (install-file "bastet.6"
532 (string-append out "/share/man/man6"))
533 #t))))))
534 (native-inputs
535 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
536 (inputs
537 `(("boost" ,boost)
538 ("ncurses" ,ncurses)))
539 (home-page "https://fph.altervista.org/prog/bastet.html")
540 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
541 (description
542 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
543 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
544 Instead, it uses a special algorithm to choose the worst brick possible.
545
546 Playing bastet can be a painful experience, especially if you usually make
547 canyons and wait for the long I-shaped block to clear four rows at a time.")
548 (license license:gpl3+)))
549
550 (define-public vitetris
551 (package
552 (name "vitetris")
553 (version "0.59.1")
554 (source
555 (origin
556 (method git-fetch)
557 (uri (git-reference
558 (url "https://github.com/vicgeralds/vitetris")
559 (commit (string-append "v" version))))
560 (sha256
561 (base32 "1ah1c5g7abksif0n8v5rb7r4pn2az20c3mkp4ak13vgs23ddmds5"))
562 (file-name (git-file-name name version))))
563 (build-system gnu-build-system)
564 (arguments
565 `(#:tests? #f ;no test
566 #:make-flags
567 (list ,(string-append "CC=" (cc-for-target))
568 (string-append "DESTDIR=" (assoc-ref %outputs "out")))
569 #:phases
570 (modify-phases %standard-phases
571 (replace 'configure
572 (lambda _
573 ;; the non standard configure script does not accept
574 ;; standard parameters -> invoke configure by hand
575 (invoke "./configure" "prefix=")
576 ;; src/src-conf.mk must be writable for the build step
577 (make-file-writable "src/src-conf.mk"))))))
578 (home-page "http://victornils.net/tetris/")
579 (synopsis "Terminal-based Tetris clone")
580 (description "Vitetris is a classic multiplayer Tetris clone for the
581 terminal.")
582 (license license:bsd-2)))
583
584 (define-public blobwars
585 (package
586 (name "blobwars")
587 (version "2.00")
588 (source
589 (origin
590 (method url-fetch)
591 (uri (string-append "mirror://sourceforge/blobwars/"
592 "blobwars-" version ".tar.gz"))
593 (sha256
594 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
595 (build-system gnu-build-system)
596 (arguments
597 `(#:tests? #f ;no test
598 #:make-flags
599 (let ((out (assoc-ref %outputs "out")))
600 (list (string-append "PREFIX=" out)
601 (string-append "BINDIR=" out "/bin/")
602 "USEPAK=1"
603 "RELEASE=1"))
604 #:phases
605 (modify-phases %standard-phases
606 (add-after 'unpack 'werror-begone
607 (lambda _
608 (substitute* "Makefile" (("-Werror") ""))
609 #t))
610 (delete 'configure)))) ;no configure script
611 (native-inputs
612 `(("gettext" ,gettext-minimal)
613 ("pkg-config" ,pkg-config)))
614 (inputs
615 `(("hicolor-icon-theme" ,hicolor-icon-theme)
616 ("sdl" ,(sdl-union (list sdl2
617 sdl2-image
618 sdl2-mixer
619 sdl2-ttf
620 sdl2-net)))))
621 (home-page "https://sourceforge.net/projects/blobwars/")
622 (synopsis "Platform action game featuring a blob with a lot of weapons")
623 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
624 in the Blobwars series. You take on the role of a fearless Blob agent. Your
625 mission is to infiltrate various enemy bases and rescue as many MIAs as
626 possible, while battling many vicious aliens.")
627 (license (list license:gpl2 ; For code and graphics
628 license:cc0 ; Music and sounds have specific licenses
629 license:cc-by3.0 ; see /doc/readme
630 license:cc-by-sa3.0
631 license:lgpl2.1+
632 license:bsd-2))))
633
634 (define-public bsd-games
635 (package
636 (name "bsd-games")
637 (version "2.17.0")
638 (source
639 (origin
640 (method url-fetch)
641 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
642 (sha256
643 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
644 (patches
645 (search-patches
646 ;; thanks Arch, and Debian
647 "bsd-games-2.17-64bit.patch"
648 "bsd-games-bad-ntohl-cast.patch"
649 "bsd-games-gamescreen.h.patch"
650 "bsd-games-getline.patch"
651 "bsd-games-null-check.patch"
652 "bsd-games-number.c-and-test.patch"
653 "bsd-games-stdio.h.patch"
654 "bsd-games-prevent-name-collisions.patch"
655 ;; Guix customizations
656 "bsd-games-add-configure-config.patch"
657 "bsd-games-dont-install-empty-files.patch"
658 "bsd-games-add-wrapper.patch"))))
659 (build-system gnu-build-system)
660 (native-inputs
661 `(("flex" ,flex)
662 ("bison" ,bison)))
663 (inputs
664 `(("curses" ,ncurses)
665 ("pager" ,less)
666 ("miscfiles" ,miscfiles)
667 ("openssl" ,openssl))) ;used only by 'factor'
668 (arguments
669 `(#:phases
670 (modify-phases %standard-phases
671 (replace 'configure
672 (lambda* (#:key outputs inputs #:allow-other-keys)
673 (let* ((out (assoc-ref outputs "out"))
674 (bin (string-append out "/bin"))
675 (doc (string-append out "/share/doc/bsd-games-" ,version))
676 (man (string-append out "/share/man"))
677 (word-list (string-append (assoc-ref inputs "miscfiles")
678 "/share/web2"))
679 (static-data (string-append out "/share/games/bsd-games"))
680 ;; Not a "./" because of substitute* in 'patch-install
681 ;; below. The .// allow us not to mess with the games'
682 ;; code any further: we just use a wrapper script that
683 ;; cd's to a BSD_GAMES_DIR. :]
684 (save-files ".//"))
685 (substitute* "configure"
686 (("/usr/share/man") man)
687 (("/usr/share/doc/bsd-games") doc)
688 (("/usr/share/[^\n/]*") static-data)
689 (("/var/games") save-files)
690 (("/usr/bin/less") (which "less"))
691 (("(/usr/bin|/usr/games)") bin))
692 (substitute* "config.params" (("WORD_LIST") word-list))
693 (substitute* "wrapper" (("STATIC_DATA") static-data))
694 (invoke "./configure"))
695 #t))
696 (add-before 'install 'patch-install
697 ;; Some games need a writable directory containing pre-maded files.
698 ;; The files get installed to the Store. Then the wrapper kicks in.
699 (lambda* (#:key outputs #:allow-other-keys)
700 (let* ((out (assoc-ref outputs "out"))
701 (static-data (string-append out "/share/games/bsd-games"))
702 (save-files ".//"))
703 (substitute* "Makeconfig" ((save-files) static-data)))
704 #t))
705 (add-after 'install 'install-documents
706 (lambda* (#:key outputs #:allow-other-keys)
707 (let* ((out (assoc-ref outputs "out"))
708 (doc (string-append out "/share/doc/bsd-games-" ,version)))
709 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
710 (for-each
711 (lambda(file) (install-file file doc))
712 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
713 "phantasia-COPYRIGHT")))
714 #t)))))
715 (home-page "https://github.com/vattam/BSDGames")
716 (synopsis "Collection of the old text-based games and amusements")
717 (description
718 "These are the BSD games. See the fortune-mod package for fortunes.
719
720 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
721 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
722 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
723 the $$ from the cave, anger the snake, and get out alive), tetris (game of
724 lining up the falling bricks of different shapes), and worm (eat, grow big,
725 and neither bite your tail, nor ram the wall).
726
727 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
728 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
729 the input), factor (factorizes a number), number (translates numbers into
730 text), pig (translates from English to Pig Latin), pom (should print the
731 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
732 in terminal), random (prints randomly chosen lines from files, or returns a
733 random exit-code), and wtf (explains what do some acronyms mean).
734
735 Board: backgammon (lead the men out of board faster than the friend do),
736 boggle (find the words in the square of letters), dab (game of dots and
737 boxes), gomoku (game of five in a row), hangman (guess a word before man is
738 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
739 canfield, cribbage, fish (juniors game), and mille.
740
741 Quests: adventure (search for treasures with the help of wizard),
742 battlestar (explore the world around, starting from dying spaceship),
743 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
744 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
745
746 Quizzes: arithmetic and quiz.")
747 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
748 ;; not bearing copyright notices, probably fall under the terms of the UCB
749 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
750 ;; warning in regard to the fortune databases."
751 (license (list
752 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
753 ;; lib/strlcpy.c, wargames/wargames.6
754 license:bsd-3
755 ;; dab and hunt. Files: adventure/extern.h,
756 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
757 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
758 ;; hack/extern.h, robots/auto.c, sail/display.h,
759 ;; sail/restart.h, wargames/wargames
760 license:bsd-4
761 ;; wtf (the game)
762 license:public-domain
763 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
764 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
765
766
767 (define-public bzflag
768 (package
769 (name "bzflag")
770 (version "2.4.22")
771 (source
772 (origin
773 (method url-fetch)
774 (uri (string-append "https://download.bzflag.org/bzflag/source/"
775 version "/bzflag-" version ".tar.bz2"))
776 (sha256
777 (base32 "0kba0011nswc2csqlzkd7bas307zm5813zlnby5vsmxn08rnar4y"))))
778 (build-system gnu-build-system)
779 (arguments
780 `(#:phases
781 (modify-phases %standard-phases
782 (add-after 'install 'install-desktop-file-and-icons
783 (lambda* (#:key outputs #:allow-other-keys)
784 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
785 (data (string-append share "/bzflag"))
786 (hicolor (string-append share "/icons/hicolor"))
787 (applications (string-append share "/applications")))
788 ;; Move desktop file.
789 (install-file (string-append data "/bzflag.desktop")
790 applications)
791 ;; Install icons.
792 (for-each (lambda (size)
793 (let* ((dim (string-append size "x" size))
794 (dir (string-append hicolor "/" dim "/apps")))
795 (mkdir-p dir)
796 (copy-file
797 (string-append data "/bzflag-" dim ".png")
798 (string-append dir "/bzflag.png"))))
799 '("48" "256")))
800 #t)))))
801 (native-inputs
802 `(("pkg-config" ,pkg-config)))
803 (inputs
804 `(("c-ares" ,c-ares)
805 ("curl" ,curl)
806 ("glew" ,glew)
807 ("glu" ,glu)
808 ("sdl2" ,sdl2)
809 ("zlib" ,zlib)))
810 (home-page "https://www.bzflag.org/")
811 (synopsis "3D first person tank battle game")
812 (description
813 "BZFlag is a 3D multi-player multiplatform tank battle game that
814 allows users to play against each other in a network environment.
815 There are five teams: red, green, blue, purple and rogue (rogue tanks
816 are black). Destroying a player on another team scores a win, while
817 being destroyed or destroying a teammate scores a loss. Rogues have
818 no teammates (not even other rogues), so they cannot shoot teammates
819 and they do not have a team score.
820
821 There are two main styles of play: capture-the-flag and free-for-all.
822 In capture-the-flag, each team (except rogues) has a team base and
823 each team with at least one player has a team flag. The object is to
824 capture an enemy team's flag by bringing it to your team's base. This
825 destroys every player on the captured team, subtracts one from that
826 team's score, and adds one to your team's score. In free-for-all,
827 there are no team flags or team bases. The object is simply to get as
828 high a score as possible.")
829 ;; The game is dual-licensed.
830 (license (list license:lgpl2.1 license:mpl2.0))))
831
832 (define-public cataclysm-dda
833 (package
834 (name "cataclysm-dda")
835 (version "0.E-3")
836 (source
837 (origin
838 (method git-fetch)
839 (uri (git-reference
840 (url "https://github.com/CleverRaven/Cataclysm-DDA")
841 (commit version)))
842 (sha256
843 (base32 "108cs6vp99qmqqfnmczad0xjgcl82bypm5xszwnlfcswdsrfs4da"))
844 (file-name (git-file-name name version))))
845 (build-system gnu-build-system)
846 (arguments
847 '(#:make-flags
848 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
849 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
850 "LOCALIZE=1" "LANGUAGES=all")
851 #:phases
852 (modify-phases %standard-phases
853 (delete 'configure)
854 (add-after 'build 'build-tiles
855 (lambda* (#:key make-flags outputs #:allow-other-keys)
856 ;; Change prefix directory and enable tile graphics and sound.
857 (apply invoke "make" "TILES=1" "SOUND=1"
858 (string-append "PREFIX="
859 (assoc-ref outputs "tiles"))
860 (cdr make-flags))))
861 (add-after 'install 'install-tiles
862 (lambda* (#:key make-flags outputs #:allow-other-keys)
863 (apply invoke "make" "install" "TILES=1" "SOUND=1"
864 (string-append "PREFIX="
865 (assoc-ref outputs "tiles"))
866 (cdr make-flags)))))
867 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
868 ;; input in order to support tests.
869 #:tests? #f))
870 (outputs '("out"
871 "tiles")) ;for tile graphics and sound support
872 (native-inputs
873 `(("gettext" ,gettext-minimal)
874 ("pkg-config" ,pkg-config)))
875 (inputs
876 `(("freetype" ,freetype)
877 ("libogg" ,libogg)
878 ("libvorbis" ,libvorbis)
879 ("ncurses" ,ncurses)
880 ("sdl2" ,sdl2)
881 ("sdl2-image" ,sdl2-image)
882 ("sdl2-ttf" ,sdl2-ttf)
883 ("sdl2-mixer" ,sdl2-mixer)))
884 (home-page "https://cataclysmdda.org/")
885 (synopsis "Survival horror roguelike video game")
886 (description
887 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
888 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
889 procedurally generated world. Scavenge the remnants of a dead civilization
890 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
891 to get you out of Dodge. Fight to defeat or escape from a wide variety of
892 powerful monstrosities, from zombies to giant insects to killer robots and
893 things far stranger and deadlier, and against the others like yourself, that
894 want what you have.")
895 (license license:cc-by-sa3.0)))
896
897 (define-public cockatrice
898 (let ((release-date "2021-01-26"))
899 (package
900 (name "cockatrice")
901 (version "2.8.0")
902 (source
903 (origin
904 (method git-fetch)
905 (uri (git-reference
906 (url "https://github.com/Cockatrice/Cockatrice")
907 (commit (string-append release-date "-Release-" version))))
908 (file-name (git-file-name name version))
909 (sha256
910 (base32
911 "0q8ffcklb2b7hcqhy3d2f9kz9aw22pp04pc9y4sslyqmf17pwnz9"))
912 (modules '((guix build utils)))
913 (snippet
914 ;; Strip image URLs as they point towards non-free web services
915 '(substitute* "cockatrice/src/settings/downloadsettings.cpp"
916 (("downloadURLs.append\\(\".*\"\\);") "")))))
917 (build-system cmake-build-system)
918 (arguments
919 `(#:configure-flags '("-DWITH_SERVER=1"
920 "-DWITH_CLIENT=1"
921 "-DWITH_ORACLE=1"
922 "-DTEST=1")))
923 (native-inputs
924 `(("googletest" ,googletest)
925 ("pkg-config" ,pkg-config)))
926 (inputs
927 `(("protobuf" ,protobuf)
928 ("qtbase" ,qtbase)
929 ("qtmultimedia" ,qtmultimedia)
930 ("qtsvg" ,qtsvg)
931 ("qttools" ,qttools)
932 ("qtwebsockets" ,qtwebsockets)
933 ("xz" ,xz)
934 ("zlib" ,zlib)))
935 (home-page "https://cockatrice.github.io")
936 (synopsis "Tabletop card game simulator")
937 (description "Cockatrice is a program for playing tabletop card games
938 over a network. Its server design prevents users from manipulating the game
939 for unfair advantage. The client also provides a single-player mode, which
940 allows users to brew while offline.")
941 (license license:gpl2))))
942
943 (define-public corsix-th
944 (package
945 (name "corsix-th")
946 (version "0.64")
947 (source
948 (origin
949 (method git-fetch)
950 (uri (git-reference
951 (url "https://github.com/CorsixTH/CorsixTH")
952 (commit (string-append "v" version))))
953 (file-name (git-file-name name version))
954 (sha256
955 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
956 (build-system cmake-build-system)
957 (arguments
958 `(#:phases
959 (modify-phases %standard-phases
960 (add-after 'install 'wrap-binary
961 (lambda _
962 ;; Set Lua module paths and default MIDI soundfont on startup.
963 (let* ((out (assoc-ref %outputs "out"))
964 (fluid (assoc-ref %build-inputs "fluid-3"))
965 (lua-version ,(version-major+minor (package-version lua)))
966 (lua-cpath
967 (map (lambda (lib)
968 (string-append
969 (assoc-ref %build-inputs (string-append "lua-" lib))
970 "/lib/lua/" lua-version "/?.so"))
971 '("filesystem" "lpeg"))))
972 (wrap-program (string-append out "/bin/corsix-th")
973 `("LUA_CPATH" ";" = ,lua-cpath)
974 `("SDL_SOUNDFONTS" ":" suffix
975 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
976 #t)))
977 #:tests? #f)) ; TODO need busted package to run tests
978 ;; Omit Lua-Socket dependency to disable automatic updates.
979 (inputs
980 `(("ffmpeg" ,ffmpeg)
981 ("fluid-3" ,fluid-3)
982 ("freetype" ,freetype)
983 ("lua" ,lua)
984 ("lua-filesystem" ,lua-filesystem)
985 ("lua-lpeg" ,lua-lpeg)
986 ("sdl2" ,sdl2)
987 ("sdl2-mixer" ,sdl2-mixer)))
988 (home-page "https://corsixth.com")
989 (synopsis "Implementation of the @i{Theme Hospital} game engine")
990 (description
991 "This package provides a reimplementation of the 1997 Bullfrog business
992 simulation game @i{Theme Hospital}. As well as faithfully recreating the
993 original engine, CorsixTH adds support for high resolutions, custom levels and
994 more. This package does @emph{not} provide the game assets.")
995 (license (list
996 license:expat ; main license
997 license:bsd-3)))) ; CorsixTH/Src/random.c
998
999 (define-public cowsay
1000 (package
1001 (name "cowsay")
1002 (version "3.04")
1003 (source (origin
1004 (method git-fetch)
1005 (uri (git-reference
1006 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
1007 (commit (string-append name "-" version))))
1008 (file-name (git-file-name name version))
1009 (sha256
1010 (base32
1011 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
1012 (build-system gnu-build-system)
1013 (arguments
1014 `(#:phases
1015 (modify-phases %standard-phases
1016 (delete 'configure) ; no configure script
1017 (delete 'build) ; nothing to be built
1018 (replace 'install
1019 (lambda* (#:key outputs #:allow-other-keys)
1020 (invoke "sh" "install.sh"
1021 (assoc-ref outputs "out"))))
1022 (delete 'check)
1023 (add-after 'install 'check
1024 (lambda* (#:key outputs #:allow-other-keys)
1025 (invoke (string-append (assoc-ref outputs "out")
1026 "/bin/cowsay")
1027 "We're done!"))))))
1028 (inputs
1029 `(("perl" ,perl)))
1030 (home-page (string-append "https://web.archive.org/web/20071026043648/"
1031 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
1032 (synopsis "Speaking cow text filter")
1033 (description "Cowsay is basically a text filter. Send some text into it,
1034 and you get a cow saying your text. If you think a talking cow isn't enough,
1035 cows can think too: all you have to do is run @command{cowthink}. If you're
1036 tired of cows, a variety of other ASCII-art messengers are available.")
1037 (license license:gpl3+)))
1038
1039 (define-public lolcat
1040 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
1041 (revision "0"))
1042 (package
1043 (name "lolcat")
1044 (version (git-version "1.0" revision commit))
1045 (source
1046 (origin
1047 (method git-fetch)
1048 (uri (git-reference
1049 (url "https://github.com/jaseg/lolcat")
1050 (commit commit)))
1051 (sha256
1052 (base32
1053 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
1054 (file-name (git-file-name name version))))
1055 (build-system gnu-build-system)
1056 (arguments
1057 `(#:tests? #f ; no check target
1058 #:make-flags
1059 (list ,(string-append "CC=" (cc-for-target)))
1060 #:phases
1061 (modify-phases %standard-phases
1062 (delete 'bootstrap)
1063 (delete 'configure)
1064 (replace 'install
1065 (lambda* (#:key outputs #:allow-other-keys)
1066 (let* ((out (assoc-ref outputs "out"))
1067 (dest (string-append out "/bin")))
1068 (mkdir-p dest)
1069 (install-file "lolcat" dest)
1070 (install-file "censor" dest)
1071 #t))))))
1072 (home-page "https://github.com/jaseg/lolcat")
1073 (synopsis "Rainbow coloring effect for text console display")
1074 (description "@command{lolcat} concatenates files and streams like
1075 regular @command{cat}, but it also adds terminal escape codes between
1076 characters and lines resulting in a rainbow effect.")
1077 (license license:wtfpl2))))
1078
1079 (define-public foobillard++
1080 ;; Even though this latest revision is old already, stable release is
1081 ;; lagging way behind it, and has issues with textures rendering.
1082 (let ((svn-revision 170))
1083 (package
1084 (name "foobillard++")
1085 (version (string-append "3.43-r" (number->string svn-revision)))
1086 (source
1087 (origin
1088 (method svn-fetch)
1089 (uri (svn-reference
1090 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1091 (revision svn-revision)))
1092 (file-name (git-file-name name version))
1093 (sha256
1094 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1095 (patches
1096 (search-patches "foobillard++-pkg-config.patch"))
1097 (modules '((guix build utils)))
1098 (snippet
1099 '(begin
1100 ;; Unfortunately, the game includes background music with
1101 ;; a non-commercial clause. Delete it.
1102 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1103 #t))))
1104 (build-system gnu-build-system)
1105 (arguments
1106 `(#:configure-flags
1107 (list
1108 ;; Install data in a less exotic location.
1109 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1110 ;; Prevent a build error about undefined trigonometric functions.
1111 "--enable-fastmath=no")
1112 #:phases
1113 (modify-phases %standard-phases
1114 (add-after 'unpack 'fix-makefile
1115 ;; Remove hard-coded directories. Also fix installation
1116 ;; rule: it tries to move around non-existent files or
1117 ;; files already moved.
1118 (lambda* (#:key outputs #:allow-other-keys)
1119 (substitute* "Makefile.am"
1120 (("/usr") (assoc-ref outputs "out"))
1121 (("cp .*?/foobillardplus\\.desktop.*") "")
1122 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1123 ""))
1124 #t))
1125 (add-after 'unpack 'unbundle-font
1126 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1127 ;; LinBiolinum_aS.ttf, which are not provided by
1128 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1129 ;; them yet.
1130 (lambda* (#:key inputs #:allow-other-keys)
1131 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1132 "/share/fonts/truetype/")))
1133 (with-directory-excursion "data"
1134 (for-each (lambda (f)
1135 (delete-file f)
1136 (symlink (string-append dejavu f) f))
1137 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1138 #t))
1139 (replace 'bootstrap
1140 (lambda _
1141 (invoke "aclocal" "--force")
1142 (invoke "autoconf" "-f")
1143 (invoke "autoheader" "-f")
1144 (invoke "automake" "-a" "-c" "-f")))
1145 (add-before 'build 'prepare-build
1146 ;; Set correct environment for SDL.
1147 (lambda* (#:key inputs #:allow-other-keys)
1148 (setenv "CPATH"
1149 (string-append (assoc-ref inputs "sdl")
1150 "/include/SDL:"
1151 (or (getenv "CPATH") "")))
1152 #t))
1153 (add-before 'build 'fix-settings-directory
1154 ;; Hide foobillardplus settings directory in $HOME.
1155 (lambda _
1156 (substitute* "src/history.c"
1157 (("/foobillardplus-data") "/.foobillardplus"))
1158 #t))
1159 (add-before 'install 'create-directories
1160 ;; Install process does not create directories before
1161 ;; trying to move file in it.
1162 (lambda* (#:key outputs #:allow-other-keys)
1163 (let ((out (assoc-ref outputs "out")))
1164 (mkdir-p (string-append out "/share/icons"))
1165 (mkdir-p (string-append out "/share/applications")))
1166 #t))
1167 (add-after 'install 'symlink-executable
1168 ;; Symlink executable to $out/bin.
1169 (lambda* (#:key outputs #:allow-other-keys)
1170 (let* ((out (assoc-ref outputs "out"))
1171 (bin (string-append out "/bin")))
1172 (mkdir-p bin)
1173 (with-directory-excursion bin
1174 (symlink "../share/foobillardplus/bin/foobillardplus"
1175 "foobillardplus"))
1176 #t))))))
1177 (native-inputs
1178 `(("autoconf" ,autoconf)
1179 ("automake" ,automake)
1180 ("pkg-config" ,pkg-config)))
1181 (inputs
1182 `(("font-dejavu" ,font-dejavu)
1183 ("freetype" ,freetype)
1184 ("glu" ,glu)
1185 ("libpng" ,libpng)
1186 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1187 (home-page "http://foobillardplus.sourceforge.net/")
1188 (synopsis "3D billiard game")
1189 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1190 based on the original foobillard 3.0a sources from Florian Berger.
1191 You can play it with one or two players or against the computer.
1192
1193 The game features:
1194
1195 @itemize
1196 @item Wood paneled table with gold covers and gold diamonds.
1197 @item Reflections on balls.
1198 @item Zoom in and out, rotation, different angles and bird's eye view.
1199 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1200 @item Tournaments. Compete against other players.
1201 @item Animated cue with strength and eccentric hit adjustment.
1202 @item Jump shots and snipping.
1203 @item Realistic gameplay and billiard sounds.
1204 @item Red-Green stereo.
1205 @item And much more.
1206 @end itemize")
1207 (license (list license:gpl2 license:silofl1.1)))))
1208
1209 (define-public freedoom
1210 (package
1211 (name "freedoom")
1212 (version "0.12.1")
1213 (source
1214 (origin
1215 (method git-fetch)
1216 (uri (git-reference
1217 (url "https://github.com/freedoom/freedoom")
1218 (commit (string-append "v" version))))
1219 (file-name (git-file-name name version))
1220 (sha256
1221 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1222 (build-system gnu-build-system)
1223 (arguments
1224 '(#:make-flags
1225 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1226 #:tests? #f ; no check target
1227 #:phases
1228 (modify-phases %standard-phases
1229 (delete 'bootstrap)
1230 (replace 'configure
1231 (lambda* (#:key inputs outputs #:allow-other-keys)
1232 (let* ((freedoom (assoc-ref outputs "out"))
1233 (wad-dir (string-append freedoom "/share/games/doom")))
1234 ;; Make sure that the install scripts know where to find
1235 ;; the appropriate WAD files.
1236 (substitute* "dist/freedoom"
1237 (("IWAD=freedm.wad")
1238 (string-append "IWAD=" wad-dir "/freedm.wad"))
1239 (("IWAD=freedoom1.wad")
1240 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1241 (("IWAD=freedoom2.wad")
1242 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1243 #t))))))
1244 (native-inputs
1245 `(("asciidoc" ,asciidoc)
1246 ("deutex" ,deutex)
1247 ("python" ,python)
1248 ("python-pillow" ,python-pillow)))
1249 (home-page "https://freedoom.github.io/")
1250 (synopsis "Free content game based on the Doom engine")
1251 (native-search-paths
1252 (list (search-path-specification
1253 (variable "DOOMWADDIR")
1254 (files '("share/games/doom")))
1255 (search-path-specification
1256 (variable "DOOMWADPATH")
1257 (files '("share/games/doom")))))
1258 (description
1259 "The Freedoom project aims to create a complete free content first person
1260 shooter game. Freedoom by itself is just the raw material for a game: it must
1261 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1262 played. Freedoom complements the Doom engine with free levels, artwork, sound
1263 effects and music to make a completely free game.")
1264 (license license:bsd-3)))
1265
1266 (define-public freedroidrpg
1267 (package
1268 (name "freedroidrpg")
1269 (version "0.16.1")
1270 (source
1271 (origin
1272 (method url-fetch)
1273 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1274 "freedroidRPG-" (version-major+minor version) "/"
1275 "freedroidRPG-" version ".tar.gz"))
1276 (sha256
1277 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1278 (build-system gnu-build-system)
1279 (arguments
1280 `(#:configure-flags
1281 (list
1282 (string-append "CFLAGS="
1283 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1284 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1285 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1286 "--enable-opengl")
1287 ;; FIXME: the test suite fails with the following error output:
1288 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1289 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1290 #:tests? #f))
1291 (native-inputs
1292 `(("pkg-config" ,pkg-config)))
1293 (inputs
1294 `(("glu" ,glu)
1295 ("libjpeg" ,libjpeg-turbo)
1296 ("libogg" ,libogg)
1297 ("libpng" ,libpng)
1298 ("libvorbis" ,libvorbis)
1299 ("mesa" ,mesa)
1300 ("python" ,python-wrapper)
1301 ("sdl" ,sdl)
1302 ("sdl-gfx" ,sdl-gfx)
1303 ("sdl-image" ,sdl-image)
1304 ("sdl-mixer" ,sdl-mixer)
1305 ("zlib" ,zlib)))
1306 (home-page "https://www.freedroid.org/")
1307 (synopsis "Isometric role-playing game against killer robots")
1308 (description
1309 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1310 The game tells the story of a world destroyed by a conflict between robots and
1311 their human masters. To restore peace to humankind, the player must complete
1312 numerous quests while fighting off rebelling robots---either by taking control
1313 of them, or by simply blasting them to pieces with melee and ranged weapons in
1314 real-time combat.")
1315 (license (list license:expat ; lua/
1316 license:gpl3 ; src/gen_savestruct.py
1317 license:gpl2+)))) ; the rest
1318
1319 (define-public golly
1320 (package
1321 (name "golly")
1322 (version "3.3")
1323 (source (origin
1324 (method url-fetch)
1325 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1326 version "/golly-" version
1327 "-src.tar.gz"))
1328 (sha256
1329 (base32
1330 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1331 (build-system gnu-build-system)
1332 (arguments
1333 '(#:make-flags (list "CC=gcc"
1334 (string-append "GOLLYDIR="
1335 (assoc-ref %outputs "out")
1336 "/share/golly"))
1337 #:tests? #f ; no check target
1338 #:phases
1339 (modify-phases %standard-phases
1340 (replace 'configure
1341 (lambda* (#:key inputs #:allow-other-keys)
1342 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1343 ;; properly set the path to the Python shared library. This
1344 ;; substitution acheives the same end by different means.
1345 (substitute* "gui-wx/wxprefs.cpp"
1346 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1347 (string-append "pythonlib = \""
1348 (assoc-ref inputs "python")
1349 "/lib/libpython-2.7.so\"")))
1350 #t))
1351 (replace 'build
1352 (lambda* (#:key make-flags outputs #:allow-other-keys)
1353 (with-directory-excursion "gui-wx"
1354 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1355 (replace 'install
1356 (lambda* (#:key outputs #:allow-other-keys)
1357 (let* ((out (assoc-ref outputs "out"))
1358 (bin (string-append out "/bin"))
1359 (doc (string-append out "/share/doc/golly"))
1360 (pixmaps (string-append out "/share/pixmaps"))
1361 (share (string-append out "/share/golly")))
1362 (for-each (lambda (binary)
1363 (install-file binary bin))
1364 '("bgolly" "golly"))
1365 (for-each (lambda (document)
1366 (install-file
1367 (string-append "docs/" document ".html")
1368 doc))
1369 '("License" "ReadMe" "ToDo"))
1370 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1371 (for-each (lambda (folder)
1372 (copy-recursively
1373 folder
1374 (string-append share "/" folder)))
1375 '("Help" "Patterns" "Rules" "Scripts")))
1376 #t)))))
1377 (native-inputs
1378 `(("lua" ,lua)))
1379 (inputs
1380 `(("glu" ,glu)
1381 ("mesa" ,mesa)
1382 ("python" ,python-2)
1383 ("wxwidgets" ,wxwidgets-gtk2)
1384 ("zlib" ,zlib)))
1385 (home-page "http://golly.sourceforge.net/")
1386 (synopsis "Software for exploring cellular automata")
1387 (description
1388 "Golly simulates Conway's Game of Life and many other types of cellular
1389 automata. The following features are available:
1390 @enumerate
1391 @item Support for bounded and unbounded universes, with cells of up to 256
1392 states.
1393 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1394 algorithm.
1395 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1396 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1397 @item Scriptable via Lua or Python.
1398 @item Extracting patterns, rules and scripts from zip files.
1399 @item Downloading patterns, rules and scripts from online archives.
1400 @item Pasting patterns from the clipboard.
1401 @item Unlimited undo/redo.
1402 @item Configurable keyboard shortcuts.
1403 @item Auto fit option to keep patterns within the view.
1404 @end enumerate")
1405 (license license:gpl2+)))
1406
1407 (define-public julius
1408 (package
1409 (name "julius")
1410 (version "1.6.0")
1411 (source
1412 (origin
1413 (method git-fetch)
1414 (uri (git-reference
1415 (url "https://github.com/bvschaik/julius")
1416 (commit (string-append "v" version))))
1417 (file-name (git-file-name name version))
1418 (sha256
1419 (base32 "0nfdn8n6ywhm69ckz9a1chl5xxiqyaj3l337wadsbppnpscjihrc"))
1420 ;; Remove unused bundled libraries.
1421 (modules '((guix build utils)))
1422 (snippet
1423 '(begin
1424 (with-directory-excursion "ext"
1425 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1426 #t))))
1427 (build-system cmake-build-system)
1428 (inputs
1429 `(("libpng" ,libpng)
1430 ("sdl2" ,sdl2)
1431 ("sdl2-mixer" ,sdl2-mixer)))
1432 (home-page "https://github.com/bvschaik/julius")
1433 (synopsis "Re-implementation of Caesar III game engine")
1434 (description
1435 "Engine for Caesar III, a city-building real-time strategy game.
1436 Julius includes some UI enhancements while preserving the logic (including
1437 bugs) of the original game, so that saved games are compatible. This package
1438 does not include game data.")
1439 (license (list license:agpl3
1440 license:zlib)))) ; ext/tinyfiledialogs
1441
1442 (define-public augustus
1443 (package
1444 (inherit julius)
1445 (name "augustus")
1446 (version "2.0.1")
1447 (source
1448 (origin
1449 (method git-fetch)
1450 (uri (git-reference
1451 (url "https://github.com/Keriew/augustus")
1452 (commit (string-append "v" version))))
1453 (file-name (git-file-name name version))
1454 (sha256
1455 (base32 "0czazw8mc3fbvdazs2nzvgxd1dpzjc8z5fwiv89vv4nd7laz3jkj"))
1456 ;; Remove unused bundled libraries.
1457 (modules '((guix build utils)))
1458 (snippet
1459 '(begin
1460 (with-directory-excursion "ext"
1461 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1462 #t))))
1463 (arguments
1464 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1465 `(#:tests? #f))
1466 (home-page "https://github.com/Keriew/augustus")
1467 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1468 (description
1469 "Fork of Julius, an engine for the a city-building real-time strategy
1470 game Caesar III. Gameplay enhancements include:
1471
1472 @itemize
1473 @item roadblocks;
1474 @item market special orders;
1475 @item global labour pool;
1476 @item partial warehouse storage;
1477 @item increased game limits;
1478 @item zoom controls.
1479 @end itemize\n")))
1480
1481 (define-public meandmyshadow
1482 (package
1483 (name "meandmyshadow")
1484 (version "0.5a")
1485 (source (origin
1486 (method url-fetch)
1487 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1488 version "/meandmyshadow-" version
1489 "-src.tar.gz"))
1490 (sha256
1491 (base32
1492 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1493 (build-system cmake-build-system)
1494 (arguments
1495 `(#:tests? #f)) ; there are no tests
1496 (native-inputs
1497 `(("pkg-config" ,pkg-config)))
1498 (inputs
1499 `(("curl" ,curl)
1500 ("libarchive" ,libarchive)
1501 ("lua" ,lua)
1502 ("sdl" ,(sdl-union (list sdl2
1503 sdl2-image
1504 sdl2-mixer
1505 sdl2-ttf)))))
1506 (home-page "https://acmepjz.github.io/meandmyshadow/")
1507 (synopsis "Puzzle/platform game")
1508 (description "Me and My Shadow is a puzzle/platform game in which you try
1509 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1510 and much more stand between you and the exit. Record your moves and let your
1511 shadow mimic them to reach blocks you couldn't reach alone.")
1512 (license license:gpl3+)))
1513
1514 (define-public opensurge
1515 (package
1516 (name "opensurge")
1517 (version "0.5.1.2")
1518 (source
1519 (origin
1520 (method git-fetch)
1521 (uri (git-reference
1522 (url "https://github.com/alemart/opensurge")
1523 (commit (string-append "v" version))))
1524 (file-name (git-file-name name version))
1525 (sha256
1526 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1527 (build-system cmake-build-system)
1528 (arguments
1529 `(#:tests? #f ;there are no tests
1530 #:configure-flags
1531 (let* ((out (assoc-ref %outputs "out"))
1532 (share (string-append out "/share")))
1533 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1534 (string-append "-DGAME_DATADIR=" share "/" ,name)
1535 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1536 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1537 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1538 #:phases
1539 (modify-phases %standard-phases
1540 (add-after 'unpack 'fix-xdg-open-path
1541 (lambda* (#:key inputs #:allow-other-keys)
1542 ;; Look for xdg-open in the store.
1543 (substitute* "src/core/web.c"
1544 (("/usr(/bin/xdg-open)" _ bin)
1545 (string-append (assoc-ref inputs "xdg-utils") bin)))
1546 #t))
1547 (add-after 'unpack 'unbundle-fonts
1548 (lambda* (#:key inputs #:allow-other-keys)
1549 ;; Replace bundled Roboto fonts with links to the store.
1550 (with-directory-excursion "fonts"
1551 (let ((roboto-dir (string-append
1552 (assoc-ref inputs "font-google-roboto")
1553 "/share/fonts/truetype/")))
1554 (for-each
1555 (lambda (font)
1556 (delete-file font)
1557 (symlink (string-append roboto-dir font) font))
1558 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1559 #t))))))
1560 (inputs
1561 `(("allegro" ,allegro)
1562 ("font-google-roboto" ,font-google-roboto)
1563 ("surgescript" ,surgescript)
1564 ("xdg-utils" ,xdg-utils)))
1565 (home-page "https://opensurge2d.org")
1566 (synopsis "2D retro side-scrolling game")
1567 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1568 inspired by the Sonic games. The player runs at high speeds through each
1569 level while collecting items and avoiding obstacles. The game includes a
1570 built-in level editor.")
1571 (license
1572 ;; Code is under GPL 3+, assets are under various licenses.
1573 ;; See src/misc/credits.c for details.
1574 (list license:gpl3+
1575 license:cc0
1576 license:cc-by3.0
1577 license:cc-by-sa3.0
1578 license:expat
1579 license:public-domain
1580 license:silofl1.1))))
1581
1582 (define-public knights
1583 (package
1584 (name "knights")
1585 (version "025")
1586 (source (origin
1587 (method url-fetch)
1588 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1589 version "_src.tar.gz"))
1590 (sha256
1591 (base32
1592 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1593 (build-system gnu-build-system)
1594 (arguments
1595 '(#:make-flags
1596 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1597 "CXXFLAGS=-lpthread")
1598 #:phases
1599 (modify-phases %standard-phases
1600 ;; No configure script.
1601 (delete 'configure))
1602 #:tests? #f)) ;; No check target.
1603 (inputs
1604 `(("boost" ,boost)
1605 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1606 ("freetype" ,freetype)
1607 ("fontconfig" ,fontconfig)
1608 ("curl" ,curl)))
1609 (native-inputs
1610 `(("pkg-config" ,pkg-config)))
1611 (home-page "http://www.knightsgame.org.uk/")
1612 (synopsis "Multiplayer dungeon game involving knights and quests")
1613 (description "Knights is a multiplayer game involving several knights who
1614 must run around a dungeon and complete various quests. Each game revolves
1615 around a quest – for example, you might have to find some items and carry them
1616 back to your starting point. This may sound easy, but as there are only
1617 enough items in the dungeon for one player to win, you may end up having to
1618 kill your opponents to get their stuff! Other quests involve escaping from
1619 the dungeon, fighting a duel to the death against the enemy knights, or
1620 destroying an ancient book using a special wand.")
1621 ;; This package includes modified sources of lua (X11), enet (Expat), and
1622 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1623 ;; license. The whole package is released under GPLv3+.
1624 (license license:gpl3+)))
1625
1626 (define-public gnome-2048
1627 (package
1628 (name "gnome-2048")
1629 (version "3.38.2")
1630 (source (origin
1631 (method url-fetch)
1632 (uri (string-append "mirror://gnome/sources/gnome-2048/"
1633 (version-major+minor version) "/"
1634 "gnome-2048-" version ".tar.xz"))
1635 (sha256
1636 (base32
1637 "0s5fg4z5in1h39fcr69j1qc5ynmg7a8mfprk3mc3c0csq3snfwz2"))))
1638 (build-system meson-build-system)
1639 (arguments
1640 '(#:glib-or-gtk? #t
1641 #:phases
1642 (modify-phases %standard-phases
1643 (add-after 'unpack 'skip-gtk-update-icon-cache
1644 ;; Don't create 'icon-theme.cache'.
1645 (lambda _
1646 (substitute* "meson_post_install.py"
1647 (("gtk-update-icon-cache") "true"))
1648 #t)))))
1649 (inputs
1650 `(("gtk+" ,gtk+)
1651 ("clutter" ,clutter)
1652 ("clutter-gtk" ,clutter-gtk)
1653 ("libgee" ,libgee)
1654 ("libgnome-games-support" ,libgnome-games-support)))
1655 (native-inputs
1656 `(("gettext" ,gettext-minimal)
1657 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1658 ("itstool" ,itstool)
1659 ("libxml2" ,libxml2)
1660 ("pkg-config" ,pkg-config)
1661 ("vala" ,vala)))
1662 (home-page "https://wiki.gnome.org/Apps/2048")
1663 (synopsis "Move the tiles until you obtain the 2048 tile")
1664 (description "GNOME 2048 provides a 2D grid for playing 2048, a
1665 single-player sliding tile puzzle game. The objective of the game is to merge
1666 together adjacent tiles of the same number until the sum of 2048 is achieved
1667 in one tile.")
1668 (license license:gpl3+)))
1669
1670 (define-public gnome-chess
1671 (package
1672 (name "gnome-chess")
1673 (version "3.37.3")
1674 (source (origin
1675 (method url-fetch)
1676 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1677 (version-major+minor version) "/"
1678 "gnome-chess-" version ".tar.xz"))
1679 (sha256
1680 (base32
1681 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1682 (build-system meson-build-system)
1683 (arguments
1684 '(#:glib-or-gtk? #t
1685 #:phases
1686 (modify-phases %standard-phases
1687 (add-after 'unpack 'skip-gtk-update-icon-cache
1688 ;; Don't create 'icon-theme.cache'.
1689 (lambda _
1690 (substitute* "meson_post_install.py"
1691 (("gtk-update-icon-cache") "true"))
1692 #t)))))
1693 (inputs
1694 `(("gtk+" ,gtk+)
1695 ("librsvg" ,librsvg)))
1696 (native-inputs
1697 `(("gettext" ,gettext-minimal)
1698 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1699 ("itstool" ,itstool)
1700 ("pkg-config" ,pkg-config)
1701 ("vala" ,vala)))
1702 (home-page "https://wiki.gnome.org/Apps/Chess")
1703 (synopsis "Chess board for GNOME")
1704 (description "GNOME Chess provides a 2D board for playing chess games
1705 against human or computer players. It supports loading and saving games in
1706 Portable Game Notation. To play against a computer, install a chess engine
1707 such as chess or stockfish.")
1708 (license license:gpl3+)))
1709
1710 (define-public gnubg
1711 (package
1712 (name "gnubg")
1713 (version "1.06.002")
1714 (source
1715 (origin
1716 (method url-fetch)
1717 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1718 version "-sources.tar.gz"))
1719 (sha256
1720 (base32
1721 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1722 (build-system gnu-build-system)
1723 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1724 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1725 ("pango" ,pango-1.42)
1726
1727 ("glib" ,glib)
1728 ("readline" ,readline)
1729 ("gtk+" ,gtk+-2)
1730 ("mesa" ,mesa)
1731 ("glu" ,glu)
1732 ("gtkglext" ,gtkglext)
1733 ("sqlite" ,sqlite)
1734 ("libcanberra" ,libcanberra)))
1735 (native-inputs `(("python-2" ,python-2)
1736 ("pkg-config" ,pkg-config)))
1737 (arguments
1738 `(#:configure-flags
1739 ;; SSE instructions are available on Intel systems only.
1740 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1741 (%current-system)))
1742 '("x86_64" "i686"))
1743 '("--enable-simd=sse2") ; prevent avx instructions
1744 '()))
1745 #:phases
1746 (modify-phases %standard-phases
1747 (add-after 'install 'install-desktop-file
1748 (lambda* (#:key outputs #:allow-other-keys)
1749 (let* ((out (assoc-ref outputs "out"))
1750 (apps (string-append out "/share/applications")))
1751 (mkdir-p apps)
1752 (with-output-to-file (string-append apps "/gnubg.desktop")
1753 (lambda _
1754 (format #t
1755 "[Desktop Entry]~@
1756 Name=GNU Backgammon~@
1757 Exec=~a/bin/gnubg -w~@
1758 Icon=gnubg~@
1759 Categories=Game;~@
1760 Terminal=false~@
1761 Type=Application~%"
1762 out))))
1763 #t)))))
1764 (home-page "https://www.gnu.org/software/gnubg/")
1765 (synopsis "Backgammon game")
1766 (description "The GNU backgammon application (also known as \"gnubg\") can
1767 be used for playing, analyzing and teaching the game. It has an advanced
1768 evaluation engine based on artificial neural networks suitable for both
1769 beginners and advanced players. In addition to a command-line interface, it
1770 also features an attractive, 3D representation of the playing board.")
1771 (license license:gpl3+)))
1772
1773 (define-public gnubik
1774 (package
1775 (name "gnubik")
1776 (version "2.4.3")
1777 (source
1778 (origin
1779 (method url-fetch)
1780 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1781 version ".tar.gz"))
1782 (sha256
1783 (base32
1784 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1785 (build-system gnu-build-system)
1786 (arguments
1787 '(#:phases (modify-phases %standard-phases
1788 (add-after 'unpack 'skip-gtk-update-icon-cache
1789 (lambda _
1790 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1791 ;; unnecessary and causes a needless dependency on glib.
1792 (substitute* "Makefile.in"
1793 (("gtk-update-icon-cache")
1794 "true"))
1795 #t)))))
1796 (inputs `(("gtk+" ,gtk+-2)
1797 ("mesa" ,mesa)
1798 ("glu" ,glu)
1799 ("libx11" ,libx11)
1800 ("guile" ,guile-2.0)
1801 ("gtkglext" ,gtkglext)))
1802 (native-inputs `(("gettext" ,gettext-minimal)
1803 ("pkg-config" ,pkg-config)))
1804 (home-page "https://www.gnu.org/software/gnubik/")
1805 (synopsis "3d Rubik's cube game")
1806 (description
1807 "GNUbik is a puzzle game in which you must manipulate a cube to make
1808 each of its faces have a uniform color. The game is customizable, allowing
1809 you to set the size of the cube (the default is 3x3) or to change the colors.
1810 You may even apply photos to the faces instead of colors. The game is
1811 scriptable with Guile.")
1812 (license license:gpl3+)))
1813
1814 (define-public gnushogi
1815 (package
1816 (name "gnushogi")
1817 (version "1.4.2")
1818 (source
1819 (origin
1820 (method url-fetch)
1821 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1822 version ".tar.gz"))
1823 (sha256
1824 (base32
1825 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1826 (arguments `(#:tests? #f)) ;; No check target.
1827 (build-system gnu-build-system)
1828 (home-page "https://www.gnu.org/software/gnushogi/")
1829 (synopsis "The game of Shogi (Japanese chess)")
1830 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1831 Chess). It is similar to standard chess but this variant is far more complicated.")
1832 (license license:gpl3+)))
1833
1834 (define-public ltris
1835 (package
1836 (name "ltris")
1837 (version "1.2.1")
1838 (source
1839 (origin
1840 (method url-fetch)
1841 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1842 "ltris-" version ".tar.gz"))
1843 (sha256
1844 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1845 (build-system gnu-build-system)
1846 (arguments
1847 '(;; The code in LTris uses traditional GNU semantics for inline functions
1848 #:configure-flags '("CFLAGS=-fgnu89-inline")
1849 #:phases
1850 (modify-phases %standard-phases
1851 (add-after 'set-paths 'set-sdl-paths
1852 (lambda* (#:key inputs #:allow-other-keys)
1853 (setenv "CPATH"
1854 (string-append (assoc-ref inputs "sdl-union")
1855 "/include/SDL:"
1856 (or (getenv "CPATH") "")))
1857 #t)))))
1858 (inputs
1859 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1860 (home-page "http://lgames.sourceforge.net/LTris/")
1861 (synopsis "Tetris clone based on the SDL library")
1862 (description
1863 "LTris is a tetris clone: differently shaped blocks are falling down the
1864 rectangular playing field and can be moved sideways or rotated by 90 degree
1865 units with the aim of building lines without gaps which then disappear (causing
1866 any block above the deleted line to fall down). LTris has three game modes: In
1867 Classic you play until the stack of blocks reaches the top of the playing field
1868 and no new blocks can enter. In Figures the playing field is reset to a new
1869 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1870 up to three players (either human or CPU) compete with each other sending
1871 removed lines to all opponents. There is also a Demo mode in which you can
1872 watch your CPU playing while enjoying a cup of tea!")
1873 (license license:gpl2+)))
1874
1875 (define-public nethack
1876 (package
1877 (name "nethack")
1878 (version "3.6.6")
1879 (source
1880 (origin
1881 (method url-fetch)
1882 (uri
1883 (string-append "https://www.nethack.org/download/" version "/nethack-"
1884 (string-join (string-split version #\.) "") "-src.tgz"))
1885 (sha256
1886 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1887 (native-inputs
1888 `(("bison" ,bison)
1889 ("flex" ,flex)))
1890 (inputs
1891 `(("ncurses" ,ncurses)
1892 ("less" ,less)))
1893 (build-system gnu-build-system)
1894 (arguments
1895 '(#:make-flags
1896 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1897 #:phases
1898 (modify-phases %standard-phases
1899 (add-before 'configure 'patch-paths
1900 (lambda _
1901 (substitute* "sys/unix/nethack.sh"
1902 (("^ *cd .*$") ""))
1903 (substitute* "sys/unix/Makefile.utl"
1904 (("^YACC *=.*$") "YACC = bison -y\n")
1905 (("^LEX *=.*$") "LEX = flex\n")
1906 (("^# CC = gcc") "CC = gcc"))
1907 (substitute* "sys/unix/hints/linux"
1908 (("/bin/gzip") (string-append
1909 (assoc-ref %build-inputs "gzip")
1910 "/bin/gzip"))
1911 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1912 (substitute* "include/config.h"
1913 (("^.*define CHDIR.*$") "")
1914 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1915 ;; Honor SOURCE_DATE_EPOCH.
1916 "#define REPRODUCIBLE_BUILD"))
1917
1918 ;; Note: 'makedefs' rejects and ignores dates that are too old
1919 ;; or too new, so we must choose something reasonable here.
1920 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1921
1922 (substitute* "sys/unix/Makefile.src"
1923 (("^# CC = gcc") "CC = gcc"))
1924 #t))
1925 (replace 'configure
1926 (lambda _
1927 (let ((bash (string-append
1928 (assoc-ref %build-inputs "bash")
1929 "/bin/bash")))
1930 (with-directory-excursion "sys/unix"
1931 (substitute* "setup.sh" (("/bin/sh") bash))
1932 (invoke bash "setup.sh" "hints/linux"))
1933 #t)))
1934 (add-after 'install 'fixup-paths
1935 (lambda _
1936 (let* ((output (assoc-ref %outputs "out"))
1937 (nethack-script (string-append output "/bin/nethack")))
1938 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1939 (for-each
1940 (lambda (file)
1941 (rename-file
1942 (string-append output "/games/lib/nethackdir/" file)
1943 (string-append output "/games/lib/nethackuserdir/"
1944 file)))
1945 '("xlogfile" "logfile" "perm" "record" "save"))
1946 (mkdir-p (string-append output "/bin"))
1947 (call-with-output-file nethack-script
1948 (lambda (port)
1949 (format port "#!~a/bin/sh
1950 PATH=~a:$PATH
1951 if [ ! -d ~~/.config/nethack ]; then
1952 mkdir -p ~~/.config/nethack
1953 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1954 chmod -R +w ~~/.config/nethack
1955 fi
1956
1957 RUNDIR=$(mktemp -d)
1958
1959 cleanup() {
1960 rm -rf $RUNDIR
1961 }
1962 trap cleanup EXIT
1963
1964 cd $RUNDIR
1965 for i in ~~/.config/nethack/*; do
1966 ln -s $i $(basename $i)
1967 done
1968 for i in ~a/games/lib/nethackdir/*; do
1969 ln -s $i $(basename $i)
1970 done
1971 ~a/games/nethack"
1972 (assoc-ref %build-inputs "bash")
1973 (list->search-path-as-string
1974 (list
1975 (string-append
1976 (assoc-ref %build-inputs "coreutils") "/bin")
1977 (string-append
1978 (assoc-ref %build-inputs "less") "/bin"))
1979 ":")
1980 output
1981 output
1982 output)))
1983 (chmod nethack-script #o555)
1984 #t)))
1985 (delete 'check))))
1986 (home-page "https://nethack.org")
1987 (synopsis "Classic dungeon crawl game")
1988 (description "NetHack is a single player dungeon exploration game that runs
1989 on a wide variety of computer systems, with a variety of graphical and text
1990 interfaces all using the same game engine. Unlike many other Dungeons &
1991 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1992 the dungeon and not simply killing everything in sight - in fact, killing
1993 everything in sight is a good way to die quickly. Each game presents a
1994 different landscape - the random number generator provides an essentially
1995 unlimited number of variations of the dungeon and its denizens to be discovered
1996 by the player in one of a number of characters: you can pick your race, your
1997 role, and your gender.")
1998 (license
1999 (license:fsdg-compatible
2000 "https://nethack.org/common/license.html"))))
2001
2002 (define-public pipewalker
2003 (package
2004 (name "pipewalker")
2005 (version "0.9.4")
2006 (source
2007 (origin
2008 (method url-fetch)
2009 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
2010 version "/pipewalker-" version ".tar.gz"))
2011 (sha256
2012 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
2013 (build-system gnu-build-system)
2014 (arguments
2015 `(#:configure-flags
2016 (list (string-append "--docdir=" (assoc-ref %outputs "out")
2017 "/share/doc/" ,name "-" ,version))
2018 #:phases
2019 (modify-phases %standard-phases
2020 (add-after 'configure 'patch-docdir
2021 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
2022 (lambda _
2023 (substitute* "Makefile"
2024 (("(pkgdocdatadir = ).*" _ assignment)
2025 (string-append assignment "$(docdir)\n")))
2026 #t)))))
2027 (inputs
2028 `(("libpng" ,libpng)
2029 ("mesa" ,mesa)
2030 ("sdl" ,sdl)))
2031 (home-page "http://pipewalker.sourceforge.net/")
2032 (synopsis "Logical tile puzzle")
2033 (description
2034 "PipeWalker is a simple puzzle game with many diffent themes: connect all
2035 computers to one network server, bring water from a source to the taps, etc.
2036 The underlying mechanism is always the same: you must turn each tile in the
2037 grid in the right direction to combine all components into a single circuit.
2038 Every puzzle has a complete solution, although there may be more than one.")
2039 (license license:gpl3+)))
2040
2041 (define-public prboom-plus
2042 (package
2043 (name "prboom-plus")
2044 (version "2.5.1.4")
2045 (source (origin
2046 (method url-fetch)
2047 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
2048 version "/prboom-plus-" version ".tar.gz"))
2049 (sha256
2050 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
2051 (modules '((guix build utils)))
2052 (snippet
2053 '(begin
2054 (substitute* "src/version.c"
2055 (("__DATE__") "")
2056 (("__TIME__") ""))
2057 #t))))
2058 (build-system gnu-build-system)
2059 (arguments
2060 '(#:configure-flags '("--disable-cpu-opt")
2061 #:make-flags `(,(string-append "gamesdir="
2062 (assoc-ref %outputs "out") "/bin"))
2063 #:phases
2064 (modify-phases %standard-phases
2065 (add-after 'set-paths 'set-sdl'paths
2066 (lambda* (#:key inputs #:allow-other-keys)
2067 (setenv "CPATH"
2068 (string-append (assoc-ref inputs "sdl-union")
2069 "/include/SDL:"
2070 (or (getenv "CPATH") "")))
2071 #t)))))
2072 (inputs
2073 `(("fluidsynth" ,fluidsynth)
2074 ("glu" ,glu)
2075 ("libmad" ,libmad)
2076 ("libpng" ,libpng)
2077 ("libvorbis" ,libvorbis)
2078 ("pcre" ,pcre)
2079 ("portmidi" ,portmidi)
2080 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
2081 (home-page "http://prboom-plus.sourceforge.net/")
2082 (synopsis "Version of the classic 3D shoot'em'up game Doom")
2083 (description
2084 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
2085 (license license:gpl2+)))
2086
2087 (define-public retux
2088 (let ((release "1.4.1")
2089 (revision 1))
2090 (package
2091 (name "retux")
2092 (version (if (zero? revision)
2093 release
2094 (string-append release "-"
2095 (number->string revision))))
2096 (source (origin
2097 (method url-fetch)
2098 (uri (string-append "https://github.com/retux-game/retux/"
2099 "releases/download/v"
2100 version "/retux-"
2101 release "-src.tar.gz"))
2102 (sha256
2103 (base32
2104 "1vrldg2qh2gqfswj7vkpc589ldrrjd903j6cnfdik9zh0jhlq4h2"))))
2105 (build-system python-build-system)
2106 (arguments
2107 `(#:tests? #f ; no check target
2108 #:phases
2109 (modify-phases %standard-phases
2110 ;; no setup.py script
2111 (delete 'build)
2112 (replace 'install
2113 (lambda* (#:key outputs #:allow-other-keys)
2114 (let* ((out (assoc-ref outputs "out"))
2115 (bin (string-append out "/bin"))
2116 (data (string-append out "/share/retux")))
2117 (mkdir-p bin)
2118
2119 (substitute* "retux.py"
2120 ;; Use the correct data directory.
2121 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
2122 (string-append "\"" data "\",")))
2123
2124 (copy-file "retux.py" (string-append bin "/retux"))
2125 (copy-recursively "data" data)
2126 #t))))))
2127 (inputs
2128 `(("python-sge-pygame" ,python-sge-pygame)
2129 ("python-six" ,python-six)
2130 ("python-xsge" ,python-xsge)))
2131 (home-page "https://retux-game.github.io/")
2132 (synopsis "Action platformer game")
2133 (description
2134 "ReTux is an action platformer loosely inspired by the Mario games,
2135 utilizing the art assets from the @code{SuperTux} project.")
2136 ;; GPL version 3 or later is the license for the code and some art.
2137 ;; The rest of the licenses are for the art exclusively, as listed in
2138 ;; data/LICENSES.
2139 (license (list license:cc0
2140 license:cc-by3.0
2141 license:cc-by-sa3.0
2142 license:cc-by-sa4.0
2143 license:gpl2+
2144 license:gpl3+)))))
2145
2146 (define-public roguebox-adventures
2147 (package
2148 (name "roguebox-adventures")
2149 (version "3.0.1")
2150 (source
2151 (origin
2152 (method url-fetch)
2153 (uri (string-append
2154 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2155 (string-join (string-split version #\.) "_") "_Source.zip"))
2156 (file-name (string-append name "-" version ".zip"))
2157 (sha256
2158 (base32
2159 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2160 (build-system python-build-system)
2161 (arguments
2162 `(#:tests? #f ; no check target
2163 #:phases
2164 (modify-phases %standard-phases
2165 (replace 'unpack
2166 (lambda* (#:key source #:allow-other-keys)
2167 (and (invoke "unzip" source)
2168 ;; The actual source is buried a few directories deep.
2169 (chdir (string-append "RogueBoxAdventures_v"
2170 (string-join
2171 (string-split ,version #\.) "_")
2172 "_Source")))))
2173 ;; no setup.py script
2174 (replace 'build
2175 (lambda* (#:key outputs #:allow-other-keys)
2176 (let* ((out (assoc-ref outputs "out"))
2177 (data (string-append
2178 out "/share/games/roguebox-adventures")))
2179 ;; Use the correct data directory.
2180 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2181 (("basic_path + os\\.sep + 'DATA'")
2182 (string-append "'" data "'"))
2183 (("^basic_path.*$")
2184 (string-append "basic_path ='" data "'\n")))
2185 (substitute* "LIB/dialog.py"
2186 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2187 (string-append "d_path = '" data "'")))
2188 (substitute* "LIB/gra_files.py"
2189 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2190 (string-append "basic_path ='" data "'\n")))
2191
2192 ;; The game must save in the user's home directory because
2193 ;; the store is read-only.
2194 (substitute* "main.py"
2195 (("home_save = False") "home_save = True")
2196 (("'icon_small.png'")
2197 (string-append "'" data "/icon_small.png'"))))
2198 #t))
2199 (replace 'install
2200 (lambda* (#:key outputs #:allow-other-keys)
2201 (let* ((out (assoc-ref outputs "out"))
2202 (bin (string-append out "/bin"))
2203 (roguebox-adventures
2204 (string-append bin "/roguebox-adventures"))
2205 (data (string-append
2206 out "/share/games/roguebox-adventures"))
2207 (lib (string-append data "/LIB"))
2208 (doc (string-append
2209 out "/share/doc/roguebox-adventures")))
2210 (mkdir-p bin)
2211 (mkdir-p doc)
2212
2213 (for-each (lambda (file)
2214 (copy-recursively file
2215 (string-append data "/" file)))
2216 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2217 "icon_big.png" "icon_small.png"))
2218 (for-each (lambda (file)
2219 (chmod file #o555)
2220 (install-file file lib))
2221 '("main.py" "run.py"))
2222
2223 (copy-recursively "DOC" doc)
2224
2225 (call-with-output-file
2226 roguebox-adventures
2227 (lambda (p)
2228 (format p "\
2229 #!~a
2230 export PYTHONPATH=~a/LIB:~a
2231 exec -a \"~a\" ~a \"$@\"\n"
2232 (which "bash") data (getenv "PYTHONPATH")
2233 (which "python3")
2234 (string-append lib "/main.py"))))
2235 (chmod roguebox-adventures #o555))
2236 #t)))))
2237 (native-inputs
2238 `(("unzip" ,unzip)))
2239 (inputs
2240 `(("python-pygame" ,python-pygame)
2241 ("python-tmx" ,python-tmx)))
2242 (home-page "https://rogueboxadventures.tuxfamily.org")
2243 (synopsis "A classical roguelike/sandbox game")
2244 (description
2245 "RogueBox Adventures is a graphical roguelike with strong influences
2246 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2247 Adventures is to offer the player a kind of roguelike toy-world. This world
2248 can be explored and changed freely.")
2249 ;; The GPL3+ is for code, the rest are for art.
2250 (license (list license:cc0
2251 license:cc-by3.0
2252 license:gpl3+
2253 license:silofl1.1))))
2254
2255 (define-public seahorse-adventures
2256 (package
2257 (name "seahorse-adventures")
2258 (version "1.3")
2259 (source
2260 (origin
2261 (method git-fetch)
2262 (uri (git-reference
2263 (url "https://github.com/dulsi/seahorse-adventures")
2264 (commit (string-append "release-" version))))
2265 (file-name (git-file-name name version))
2266 (sha256
2267 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2268 (modules '((guix build utils)
2269 (ice-9 ftw)
2270 (srfi srfi-1)))
2271 ;; Remove non-free (non-commercial) font.
2272 (snippet
2273 `(begin
2274 (for-each delete-file (find-files "data/fonts" "."))
2275 #t))))
2276 (build-system python-build-system)
2277 (arguments
2278 `(#:tests? #f ;no test
2279 #:phases
2280 (modify-phases %standard-phases
2281 (delete 'build) ;pure Python
2282 (replace 'install ;no install script
2283 (lambda* (#:key outputs #:allow-other-keys)
2284 (let* ((out (assoc-ref outputs "out"))
2285 (bin (string-append out "/bin"))
2286 (share (string-append out "/share"))
2287 (applications (string-append share "/applications"))
2288 (data (string-append share "/seahorse-adventures")))
2289 ;; Install data.
2290 (for-each (lambda (f)
2291 (chmod f #o555)
2292 (install-file f data))
2293 '("leveledit.py" "run_game.py" "tileedit.py"))
2294 (for-each (lambda (dir)
2295 (let ((target (string-append data "/" dir)))
2296 (mkdir-p target)
2297 (copy-recursively dir target)))
2298 '("data" "lib"))
2299 ;; Create executable.
2300 (mkdir-p bin)
2301 (let ((executable (string-append bin "/seahorse-adventures")))
2302 (call-with-output-file executable
2303 (lambda (p)
2304 (format p
2305 "#!~a~@
2306 export PYTHONPATH=~a:~a~@
2307 exec -a \"~a\" ~a \"$@\"~%"
2308 (which "bash") data (getenv "PYTHONPATH")
2309 (which "python3")
2310 (string-append data "/run_game.py"))))
2311 (chmod executable #o555))
2312 ;; Add desktop file.
2313 (mkdir-p applications)
2314 (make-desktop-entry-file
2315 (string-append applications "/seahorse-adventures.desktop")
2316 #:name "Seahorse Adventures"
2317 #:comment
2318 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2319 #:exec ,name
2320 #:icon ,name
2321 #:categories '("Game" "ActionGame")
2322 #:keywords '("game" "retro" "platform"))
2323 ;; Add icons.
2324 (for-each
2325 (lambda (size)
2326 (let ((dir (string-append share "/icons/hicolor/"
2327 size "x" size "/apps")))
2328 (mkdir-p dir)
2329 (copy-file
2330 (string-append "icon" size ".png")
2331 (string-append dir "/searhorse-adventures.png"))))
2332 '("32" "64" "128")))
2333 #t))
2334 (add-after 'install 'unbundle-fonts
2335 ;; Unbundle Bitstream Vera font and replace deleted one.
2336 (lambda* (#:key outputs inputs #:allow-other-keys)
2337 (let* ((out (assoc-ref outputs "out"))
2338 (data (string-append out "/share/seahorse-adventures"))
2339 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2340 "/share/fonts/truetype/Vera.ttf")))
2341 (let ((themes-dir (string-append data "/data/themes/")))
2342 (for-each
2343 (lambda (theme)
2344 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2345 (delete-file target)
2346 (symlink vera target)))
2347 '("default" "gray")))
2348 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2349 (substitute* (string-append data "/lib/main.py")
2350 (("f_scale = 0.35") "f_scale = 0.47")))
2351 #t)))))
2352 (inputs
2353 `(("font-bitstream-vera" ,font-bitstream-vera)
2354 ("python-pygame" ,python-pygame)))
2355 (home-page "http://www.imitationpickles.org/barbie/")
2356 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2357 (description
2358 "Barbie Seahorse Adventures is a retro style platform arcade game.
2359 You are Barbie the seahorse who travels through the jungle, up to the
2360 volcano until you float on bubbles to the moon. On the way to your
2361 final destination you will encounter various enemies, servants of the
2362 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2363 and defeat them with your bubbles!")
2364 ;; GPL2+ is for code, CC0 is for art.
2365 (license (list license:gpl2+ license:cc0))))
2366
2367 (define-public solarus
2368 (package
2369 (name "solarus")
2370 ;; XXX: When updating this package, please also update hash in
2371 ;; `solarus-quest-editor' below.
2372 (version "1.6.5")
2373 (source
2374 (origin
2375 (method git-fetch)
2376 (uri (git-reference
2377 (url "https://gitlab.com/solarus-games/solarus")
2378 (commit (string-append "v" version))))
2379 (file-name (git-file-name name version))
2380 (sha256
2381 (base32 "0ny9dgqphjv2l39rff2621hnrzpf8qin8vmnv7jdz20azjk4m8id"))))
2382 (build-system cmake-build-system)
2383 (arguments
2384 `(#:phases
2385 (modify-phases %standard-phases
2386 (add-after 'unpack 'disable-failing-tests
2387 ;; The following tests fail reporting a missing "/dev/dri"
2388 ;; file.
2389 (lambda _
2390 (substitute* "tests/cmake/AddTestMaps.cmake"
2391 ((".*1200_create_shader_from_source.*" all)
2392 (string-append "#" all))
2393 ((".*1210_shader_scaling_factor.*" all)
2394 (string-append "#" all)))
2395 #t))
2396 (add-before 'check 'set-home
2397 ;; Tests fail without setting the following environment
2398 ;; variables.
2399 (lambda _
2400 (setenv "HOME" (getcwd))
2401 (setenv "XDG_RUNTIME_DIR" (getcwd))
2402 #t)))))
2403 (native-inputs
2404 `(("pkg-config" ,pkg-config)
2405 ("qttools" ,qttools)))
2406 (inputs
2407 `(("glm" ,glm)
2408 ("libmodplug" ,libmodplug)
2409 ("libogg" ,libogg)
2410 ("libvorbis" ,libvorbis)
2411 ("luajit" ,luajit)
2412 ("openal" ,openal)
2413 ("physfs" ,physfs)
2414 ("qtbase" ,qtbase)
2415 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2416 (home-page "https://www.solarus-games.org/")
2417 (synopsis "Lightweight game engine for Action-RPGs")
2418 (description
2419 "Solarus is a 2D game engine written in C++, that can run games
2420 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2421 in mind.")
2422 ;; The source code is licensed under the terms of GPL-3.0.
2423 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2424 ;; CC-BY-SA 4.0.
2425 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2426
2427 (define-public solarus-quest-editor
2428 (package
2429 (inherit solarus)
2430 (name "solarus-quest-editor")
2431 (version (package-version solarus))
2432 (source
2433 (origin
2434 (method git-fetch)
2435 (uri (git-reference
2436 (url "https://gitlab.com/solarus-games/solarus-quest-editor")
2437 (commit (string-append "v" version))))
2438 (file-name (git-file-name name version))
2439 (sha256
2440 (base32 "1pvjgd4faxii5sskw1h55lw90hlbazhwni8nxyywzrmkjbq7irm0"))))
2441 (arguments
2442 `(#:tests? #false)) ; no test suite
2443 (inputs
2444 `(("solarus" ,solarus)
2445 ,@(package-inputs solarus)))
2446 (synopsis "Create and modify quests for the Solarus engine")
2447 (description
2448 "Solarus Quest Editor is a graphical user interface to create and
2449 modify quests for the Solarus engine.")))
2450
2451 (define-public superstarfighter
2452 (package
2453 (name "superstarfighter")
2454 (version "0.6.4")
2455 (source
2456 (origin
2457 (method git-fetch)
2458 (uri (git-reference
2459 (url "https://github.com/notapixelstudio/superstarfighter")
2460 (commit (string-append "v" version))))
2461 (file-name (git-file-name name version))
2462 (sha256
2463 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2464 (build-system gnu-build-system)
2465 (arguments
2466 `(#:tests? #f ;there are no tests
2467 #:phases
2468 (modify-phases %standard-phases
2469 (replace 'configure
2470 (lambda _
2471 (chdir "godot")
2472 (setenv "HOME" (getcwd))
2473 (with-output-to-file "export_presets.cfg"
2474 (lambda ()
2475 (display
2476 "[preset.0]
2477 name=\"Guix\"
2478 platform=\"Linux/X11\"
2479 runnable=true
2480 [preset.0.options]")))
2481 #t))
2482 (replace 'build
2483 (lambda _
2484 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2485 (invoke (string-append godot "/bin/godot_server")
2486 "--export-pack" "Guix"
2487 "superstarfighter.pck" "project.godot"))
2488 #t))
2489 (replace 'install
2490 (lambda* (#:key inputs outputs #:allow-other-keys)
2491 (let* ((out (assoc-ref outputs "out"))
2492 (bin (string-append out "/bin"))
2493 (share (string-append out "/share"))
2494 (data (string-append share "/superstarfighter"))
2495 (icons (string-append share "/icons/hicolor/256x256/apps")))
2496 (install-file "superstarfighter.pck" data)
2497 (mkdir-p bin)
2498 (call-with-output-file (string-append bin "/superstarfighter")
2499 (lambda (port)
2500 (format port
2501 "#!/bin/sh~@
2502 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2503 (assoc-ref inputs "godot")
2504 data)
2505 (chmod port #o755)))
2506 (mkdir-p icons)
2507 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2508 (make-desktop-entry-file
2509 (string-append share "/applications/" ,name ".desktop")
2510 #:name "SuperStarfighter"
2511 #:comment "Fast-paced arcade combat game"
2512 #:exec ,name
2513 #:icon ,name
2514 #:categories '("Game" "ArcadeGame")))
2515 #t)))))
2516 (native-inputs
2517 `(("godot-headless" ,godot "headless")))
2518 (inputs
2519 `(("godot" ,godot)))
2520 (home-page "https://notapixel.itch.io/superstarfighter")
2521 (synopsis "Fast-paced local multiplayer arcade game")
2522 (description "In SuperStarfighter, up to four local players compete in a
2523 2D arena with fast-moving ships and missiles. Different game types are
2524 available, as well as a single-player mode with AI-controlled ships.")
2525 (license (list license:expat ; game
2526 license:silofl1.1)))) ; fonts
2527
2528 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2529 (define %ufoai-revision "0")
2530 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2531 (define ufoai-source
2532 (origin
2533 (method git-fetch)
2534 (uri (git-reference
2535 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2536 (commit %ufoai-commit)))
2537 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2538 (sha256
2539 (base32
2540 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2541 (modules '((guix build utils)
2542 (srfi srfi-1)
2543 (ice-9 ftw)))
2544 (snippet
2545 '(begin
2546 ;; Delete ~32MiB of bundled dependencies.
2547 (with-directory-excursion "src/libs"
2548 (for-each delete-file-recursively
2549 (lset-difference equal? (scandir ".")
2550 '("." ".." "gtest" "mumble"))))
2551
2552 ;; Use relative path to Lua headers.
2553 (substitute* "src/common/scripts_lua.h"
2554 (("\\.\\./libs/lua/") ""))
2555
2556 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2557 ;; it as a separate package. This way we don't need to make the same
2558 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2559 (substitute* "build/maps.mk"
2560 (("\\./ufo2map") "ufo2map")
2561 (("maps: ufo2map") "maps:"))
2562 (substitute* "build/modules/testall.mk"
2563 (("testall: ufo2map") "testall:"))
2564
2565 ;; If no cURL headers are found, the build system will try to include
2566 ;; the bundled version, even when not required. Prevent that.
2567 (substitute* "build/default.mk"
2568 (("^include src/libs/curl/lib/Makefile\\.inc")
2569 ""))
2570
2571 ;; While here, improve reproducibility by adding the '-X' flag to the
2572 ;; zip command used to create the map files, in order to prevent time
2573 ;; stamps from making it into the generated archives.
2574 (substitute* "build/data.mk"
2575 (("\\$\\(call ZIP\\)")
2576 "$(call ZIP) -X"))
2577 #t))))
2578
2579 (define-public trigger-rally
2580 (package
2581 (name "trigger-rally")
2582 (version "0.6.6.1")
2583 (source
2584 (origin
2585 (method url-fetch)
2586 (uri (string-append "mirror://sourceforge/trigger-rally/"
2587 "trigger-" version "/"
2588 "trigger-rally-" version ".tar.gz"))
2589 (sha256
2590 (base32
2591 "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z"))))
2592 (build-system gnu-build-system)
2593 (inputs
2594 `(("freealut" ,freealut)
2595 ("glew" ,glew)
2596 ("glu" ,glu)
2597 ("mesa" ,mesa)
2598 ("openal" ,openal)
2599 ("physfs" ,physfs)
2600 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))
2601 ("tinyxml2" ,tinyxml2)))
2602 (arguments
2603 `(#:make-flags (list (string-append "prefix=" %output)
2604 "bindir=$(prefix)/bin"
2605 "datadir=$(datarootdir)"
2606 "OPTIMS=-Ofast")
2607 #:tests? #f ; No tests present
2608 #:phases
2609 (modify-phases %standard-phases
2610 (delete 'configure)
2611 (add-before 'build 'cd-src
2612 (lambda _ (chdir "src")))
2613 (add-before 'build 'remove-timestamps
2614 (lambda _
2615 (substitute* (list "Trigger/menu.cpp"
2616 "PEngine/app.cpp")
2617 ((".*__DATE__.*") ""))))
2618 (add-before 'build 'make-verbose
2619 (lambda _
2620 (substitute* "GNUmakefile"
2621 (("@\\$\\(CXX\\)") "$(CXX)"))))
2622 (add-after 'build 'set-data-path
2623 (lambda* (#:key outputs #:allow-other-keys)
2624 (let ((out (assoc-ref outputs "out")))
2625 (substitute* "../bin/trigger-rally.config.defs"
2626 (("<data path=\"C:[^\"]*\"")
2627 (string-append "<data path=\"" out "/share/trigger-rally\""))))))
2628 (add-after 'install 'create-desktop-entry
2629 (lambda* (#:key outputs #:allow-other-keys)
2630 (let* ((out (assoc-ref outputs "out"))
2631 (apps (string-append out "/share/applications")))
2632 (mkdir-p apps)
2633 (with-output-to-file
2634 (string-append apps "/trigger-rally.desktop")
2635 (lambda ()
2636 (format #t ; Borrowed from Debian package
2637 "[Desktop Entry]~@
2638 Name=Trigger Rally~@
2639 Icon=trigger-rally~@
2640 Comment=3D rally racing car game~@
2641 Comment[de]=3D Rally-Autorennen~@
2642 Comment[fr_FR]=un jeu de rally en 3D~@
2643 Comment[ro_RO]=Un joc în 3D cu curse de raliu~@
2644 Exec=~a/bin/trigger-rally~@
2645 Terminal=false~@
2646 StartupNotify=false~@
2647 Type=Application~@
2648 TryExec=~:*~a/bin/trigger-rally~@
2649 Categories=Game;ArcadeGame;~@
2650 Keywords=racing;tracks;~@
2651 Keywords[de]=Rennstrecke;~%"
2652 out)))))))))
2653 (home-page "http://trigger-rally.sourceforge.net")
2654 (synopsis "Fast-paced single-player racing game")
2655 (description "Trigger-rally is a 3D rally simulation with great physics
2656 for drifting on over 200 maps. Different terrain materials like dirt,
2657 asphalt, sand, ice, etc. and various weather, light, and fog conditions give
2658 this rally simulation the edge over many other games. You need to make it
2659 through the maps in often tight time limits and can further improve by beating
2660 the recorded high scores. All attached single races must be finished in time
2661 in order to win an event, unlocking additional events and cars. Most maps are
2662 equipped with spoken co-driver notes and co-driver icons.")
2663 (license (list license:cc0 ;textures and audio in data.zip
2664 license:gpl2+))))
2665
2666 (define-public ufo2map
2667 (package
2668 (name "ufo2map")
2669 (version %ufoai-version)
2670 (home-page "https://ufoai.org/")
2671 (source ufoai-source)
2672 (build-system gnu-build-system)
2673 (arguments
2674 '(#:configure-flags '("CC=gcc" "CXX=g++"
2675 "--enable-release"
2676 "--enable-ufo2map"
2677 "--disable-uforadiant"
2678 "--disable-cgame-campaign"
2679 "--disable-cgame-multiplayer"
2680 "--disable-cgame-skirmish"
2681 "--disable-game"
2682 "--disable-memory"
2683 "--disable-testall"
2684 "--disable-ufoded"
2685 "--disable-ufo"
2686 "--disable-ufomodel"
2687 "--disable-ufoslicer")
2688 #:tests? #f ;no tests
2689 #:phases (modify-phases %standard-phases
2690 (replace 'configure
2691 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2692 ;; The home-made configure script does not understand
2693 ;; some of the default flags of gnu-build-system.
2694 (apply invoke "./configure" configure-flags)))
2695 (replace 'install
2696 (lambda* (#:key outputs #:allow-other-keys)
2697 (let ((out (assoc-ref outputs "out")))
2698 (install-file "ufo2map" (string-append out "/bin"))
2699 (install-file "debian/ufo2map.6"
2700 (string-append out "/share/man/man6"))
2701 #t))))))
2702 (native-inputs
2703 `(("pkg-config" ,pkg-config)))
2704 (inputs
2705 `(("libjpeg" ,libjpeg-turbo)
2706 ("libpng" ,libpng)
2707 ("lua" ,lua-5.1)
2708 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2709 (synopsis "UFO: AI map generator")
2710 (description
2711 "This package provides @command{ufo2map}, a program used to generate
2712 maps for the UFO: Alien Invasion strategy game.")
2713 (license license:gpl2+)))
2714
2715 (define ufoai-data
2716 (package
2717 (name "ufoai-data")
2718 (version %ufoai-version)
2719 (home-page "https://ufoai.org/")
2720 (source ufoai-source)
2721 (build-system gnu-build-system)
2722 (arguments
2723 '(#:tests? #f
2724 #:configure-flags '("CC=gcc" "CXX=g++")
2725 #:phases (modify-phases %standard-phases
2726 (replace 'configure
2727 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2728 (apply invoke "./configure" configure-flags)))
2729 (replace 'build
2730 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2731 (invoke "make"
2732 "-j" (if parallel-build?
2733 (number->string (parallel-job-count))
2734 "1")
2735 "maps")))
2736 (add-after 'build 'pack
2737 (lambda _
2738 (invoke "make" "pk3")))
2739 (replace 'install
2740 (lambda* (#:key outputs #:allow-other-keys)
2741 (let ((out (assoc-ref outputs "out")))
2742 (for-each (lambda (file)
2743 (install-file file out))
2744 (find-files "base" "\\.pk3$"))
2745 #t))))))
2746 (native-inputs
2747 `(("python" ,python-2)
2748 ("ufo2map" ,ufo2map)
2749 ("which" ,which)
2750 ("zip" ,zip)))
2751 (synopsis "UFO: AI data files")
2752 (description
2753 "This package contains maps and other assets for UFO: Alien Invasion.")
2754 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2755 ;; licenses, see LICENSES for details.
2756 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2757 license:cc-by-sa3.0 license:public-domain))))
2758
2759 (define-public ufoai
2760 (package
2761 (name "ufoai")
2762 (version %ufoai-version)
2763 (home-page "https://ufoai.org/")
2764 (source ufoai-source)
2765 (build-system gnu-build-system)
2766 (arguments
2767 `(#:configure-flags
2768 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2769 (string-append "--datadir=" (assoc-ref %outputs "out")
2770 "/share/games/ufo")
2771 "CC=gcc" "CXX=g++"
2772 "--enable-release"
2773 "--enable-game"
2774 "--disable-ufo2map"
2775 "--disable-dependency-tracking"
2776
2777 ;; Disable hard links to prevent huge NARs.
2778 "--disable-hardlinkedgame"
2779 "--disable-hardlinkedcgame")
2780 #:phases (modify-phases %standard-phases
2781 (add-after 'unpack 'symlink-data-files
2782 (lambda* (#:key inputs #:allow-other-keys)
2783 (let ((data (assoc-ref inputs "ufoai-data")))
2784 ;; Symlink the data files to where the build system
2785 ;; expects to find them. Ultimately these files are
2786 ;; copied to $out/share/games/ufoai/base, losing the
2787 ;; symlinks; we could fix that after install, but it
2788 ;; does not make a big difference in practice due to
2789 ;; deduplication.
2790 (with-directory-excursion "base"
2791 (for-each (lambda (file)
2792 (symlink file (basename file)))
2793 (find-files data "\\.pk3$")))
2794 #t)))
2795 (add-before 'configure 'create-language-files
2796 (lambda _
2797 (invoke "make" "lang")))
2798 (replace 'configure
2799 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2800 (apply invoke "./configure" configure-flags)))
2801 (replace 'check
2802 (lambda* (#:key tests? #:allow-other-keys)
2803 (if tests?
2804 (invoke "./testall")
2805 (format #t "test suite not run~%"))
2806 #t))
2807 (add-after 'install 'install-man-pages
2808 (lambda* (#:key outputs #:allow-other-keys)
2809 (let* ((out (assoc-ref outputs "out"))
2810 (man6 (string-append out "/share/man/man6")))
2811 (install-file "debian/ufo.6" man6)
2812 (install-file "debian/ufoded.6" man6)
2813 #t))))
2814
2815 ;; TODO: Some map tests occasionally fail because of randomness issues,
2816 ;; e.g. not enough generated aliens. The test runner also fails early
2817 ;; in the build container with 'failed to shutdown server'?
2818 #:tests? #f))
2819 (native-inputs
2820 `(("gettext" ,gettext-minimal)
2821 ("pkg-config" ,pkg-config)
2822 ("python" ,python-2)
2823 ("ufo2map" ,ufo2map)
2824 ("ufoai-data" ,ufoai-data)))
2825 (inputs
2826 `(("curl" ,curl)
2827 ("libjpeg" ,libjpeg-turbo)
2828 ("libogg" ,libogg)
2829 ("libpng" ,libpng)
2830 ("libtheora" ,libtheora)
2831 ("libvorbis" ,libvorbis)
2832 ("libxml2" ,libxml2)
2833 ("lua" ,lua-5.1)
2834 ("mesa" ,mesa)
2835 ("minixml" ,minixml)
2836 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2837 ("zlib" ,zlib)))
2838 (synopsis "Turn-based tactical strategy game")
2839 (description
2840 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2841 You control a secret organisation charged with defending Earth from a brutal
2842 alien enemy. Build up your bases, prepare your team, and dive head-first into
2843 the fast and flowing turn-based combat.
2844
2845 Over the long term you will need to conduct research into the alien threat to
2846 figure out their mysterious goals and use their powerful weapons for your own
2847 ends. You will produce unique items and use them in combat against your
2848 enemies.
2849
2850 You can also use them against your friends with the multiplayer functionality.
2851
2852 Warning: This is a pre-release version of UFO: AI! Some things may not work
2853 properly.")
2854
2855 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2856 ;; because some assets do not use the "or later" clause. Many individual
2857 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2858 (license (delete license:gpl2+ (package-license ufoai-data)))))
2859
2860 (define-public xshogi
2861 (package
2862 (name "xshogi")
2863 (version "1.4.2")
2864 (source
2865 (origin
2866 (method url-fetch)
2867 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2868 version ".tar.gz"))
2869 (sha256
2870 (base32
2871 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2872 (build-system gnu-build-system)
2873 (inputs
2874 `(("libxaw" ,libxaw)
2875 ("libxt" ,libxt)))
2876 (home-page "https://www.gnu.org/software/gnushogi/")
2877 (synopsis "User interface for gnushogi")
2878 (description "A graphical user interface for the package @code{gnushogi}.")
2879 ;; Contains a copy of GPLv3 but the licence notices simply
2880 ;; state "GNU General Public Licence" without specifying a version.
2881 (license license:gpl1+)))
2882
2883 (define-public abbaye
2884 (package
2885 (name "abbaye")
2886 (version "2.0.1")
2887 (source
2888 (origin
2889 (method git-fetch)
2890 (uri (git-reference
2891 (url "https://github.com/nevat/abbayedesmorts-gpl")
2892 (commit (string-append "v" version))))
2893 (file-name (git-file-name name version))
2894 (sha256
2895 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2896 (modules '((guix build utils)))
2897 (snippet
2898 ;; Unbundle fonts.
2899 '(begin
2900 (delete-file-recursively "fonts")
2901 #t))))
2902 (build-system gnu-build-system)
2903 (arguments
2904 '(#:make-flags '("CC=gcc")
2905 #:phases (modify-phases %standard-phases
2906 (add-after 'set-paths 'set-sdl-paths
2907 (lambda* (#:key inputs #:allow-other-keys)
2908 (setenv "CPATH"
2909 (string-append (assoc-ref inputs "sdl-union")
2910 "/include/SDL:"
2911 (or (getenv "CPATH") "")))))
2912 (add-after 'patch-source-shebangs 'patch-makefile
2913 (lambda* (#:key outputs #:allow-other-keys)
2914 ;; Replace /usr with package output directory.
2915 (substitute* "Makefile"
2916 (("/usr") (assoc-ref outputs "out")))))
2917 (add-before 'install 'make-install-dirs
2918 (lambda* (#:key outputs #:allow-other-keys)
2919 (let ((prefix (assoc-ref outputs "out")))
2920 ;; Create directories that the makefile assumes exist.
2921 (mkdir-p (string-append prefix "/bin"))
2922 (mkdir-p (string-append prefix "/share/applications"))
2923 (mkdir-p (string-append prefix "/share/pixmaps")))))
2924 ;; No configure script.
2925 (delete 'configure))
2926 #:tests? #f)) ;; No check target.
2927 (native-inputs `(("pkg-config" ,pkg-config)))
2928 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2929 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2930 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2931 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2932 France. The Cathars, who preach about good Christian beliefs, were being
2933 expelled by the Catholic Church out of the Languedoc region in France. One of
2934 them, called Jean Raymond, found an old church in which to hide, not knowing
2935 that beneath its ruins lay buried an ancient evil.")
2936 (license license:gpl3)))
2937
2938 (define-public angband
2939 (package
2940 (name "angband")
2941 (version "4.2.1")
2942 (source
2943 (origin
2944 (method url-fetch)
2945 (uri (string-append "https://rephial.org/downloads/"
2946 (version-major+minor version)
2947 "/angband-" version ".tar.gz"))
2948 (sha256
2949 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2950 (modules '((guix build utils)))
2951 (snippet
2952 ;; So, some of the sounds/graphics/tilesets are under different
2953 ;; licenses... some of them even nonfree! This is a console-only
2954 ;; version of this package so we just remove them.
2955 ;; In the future, if someone tries to make a graphical variant of
2956 ;; this package, they can deal with that mess themselves. :)
2957 '(begin
2958 (for-each (lambda (subdir)
2959 (let ((lib-subdir (string-append "lib/" subdir)))
2960 (delete-file-recursively lib-subdir)))
2961 '("fonts" "icons" "sounds" "tiles"))
2962 (substitute* "lib/Makefile"
2963 ;; And don't try to invoke makefiles in the directories we removed.
2964 (("gamedata customize help screens fonts tiles sounds icons user")
2965 "gamedata customize help screens user"))
2966 #t))))
2967 (build-system gnu-build-system)
2968 (arguments
2969 `(#:tests? #f ; no check target
2970 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2971 #:phases
2972 (modify-phases %standard-phases
2973 (replace 'bootstrap
2974 (lambda _
2975 (substitute* "acinclude.m4"
2976 (("ncursesw5-config") "ncursesw6-config"))
2977 (invoke "sh" "autogen.sh"))))))
2978 (native-inputs
2979 `(("autoconf" ,autoconf)
2980 ("automake" ,automake)))
2981 (inputs `(("ncurses" ,ncurses)))
2982 (home-page "https://rephial.org/")
2983 (synopsis "Dungeon exploration roguelike")
2984 (description "Angband is a Classic dungeon exploration roguelike. Explore
2985 the depths below Angband, seeking riches, fighting monsters, and preparing to
2986 fight Morgoth, the Lord of Darkness.")
2987 (license license:gpl2)))
2988
2989 (define-public pingus
2990 (package
2991 (name "pingus")
2992 (version "0.7.6")
2993 (source
2994 (origin
2995 (method git-fetch)
2996 (uri (git-reference
2997 (url "https://gitlab.com/pingus/pingus.git")
2998 (commit (string-append "v" version))))
2999 (file-name (git-file-name name version))
3000 (sha256
3001 (base32
3002 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
3003 (patches (search-patches "pingus-boost-headers.patch"
3004 "pingus-sdl-libs-config.patch"))
3005 (modules '((guix build utils)))
3006 (snippet
3007 '(begin
3008 (substitute* "src/pingus/screens/demo_session.cpp"
3009 (("#include <iostream>")
3010 ;; std::function moved to <functional> with C++ 11.
3011 ;; Remove this for versions newer than 0.7.6.
3012 "#include <iostream>\n#include <functional>"))
3013 #t))))
3014 (build-system gnu-build-system)
3015 (native-inputs `(("pkg-config" ,pkg-config)
3016 ("scons-python2" ,scons-python2)))
3017 (inputs `(("sdl" ,sdl)
3018 ("sdl-image" ,sdl-image)
3019 ("sdl-mixer" ,sdl-mixer)
3020 ("mesa" ,mesa)
3021 ("glu" ,glu)
3022 ("libpng" ,libpng)
3023 ("boost" ,boost)))
3024 (arguments
3025 '(#:make-flags (list (string-append "PREFIX=" %output))
3026 #:tests? #f ; no check target
3027 #:phases
3028 (modify-phases %standard-phases
3029 (delete 'configure)))) ; no configure script
3030 (home-page "https://pingus.seul.org/")
3031 (synopsis "Lemmings clone")
3032 (description
3033 "Pingus is a free Lemmings-like puzzle game in which the player takes
3034 command of a bunch of small animals and has to guide them through levels.
3035 Since the animals walk on their own, the player can only influence them by
3036 giving them commands, like build a bridge, dig a hole, or redirect all animals
3037 in the other direction. Multiple such commands are necessary to reach the
3038 level's exit. The game is presented in a 2D side view.")
3039 ;; Some source files are under bsd-3 and gpl2+ licenses.
3040 (license license:gpl3+)))
3041
3042 (define-public talkfilters
3043 (package
3044 (name "talkfilters")
3045 (version "2.3.8")
3046 (source
3047 (origin
3048 (method url-fetch)
3049 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
3050 "talkfilters-" version ".tar.gz"))
3051 (sha256
3052 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
3053 (build-system gnu-build-system)
3054 (home-page "https://www.gnu.org/software/talkfilters/")
3055 (synopsis "Convert English text to humorous dialects")
3056 (description "The GNU Talk Filters are programs that convert English text
3057 into stereotyped or otherwise humorous dialects. The filters are provided as
3058 a C library, so they can easily be integrated into other programs.")
3059 (license license:gpl2+)))
3060
3061 (define-public taisei
3062 (package
3063 (name "taisei")
3064 (version "1.3.1")
3065 (source
3066 (origin
3067 (method url-fetch)
3068 (uri (string-append "https://github.com/taisei-project/"
3069 "taisei/releases/download/v" version
3070 "/taisei-v" version ".tar.xz"))
3071 (sha256
3072 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
3073 (build-system meson-build-system)
3074 (arguments
3075 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
3076 #:configure-flags
3077 (list "-Dr_default=gles30"
3078 "-Dr_gles20=true"
3079 "-Dr_gles30=true"
3080 "-Dshader_transpiler=true")))
3081 (native-inputs
3082 `(("pkg-config" ,pkg-config)
3083 ("python" ,python)
3084 ("python-docutils" ,python-docutils)
3085 ("python-pygments" ,python-pygments)))
3086 (inputs
3087 `(("freetype" ,freetype)
3088 ("libpng" ,libpng)
3089 ("libwebp" ,libwebp)
3090 ("libzip" ,libzip)
3091 ("mesa" ,mesa)
3092 ("openssl" ,openssl)
3093 ("opusfile" ,opusfile)
3094 ("sdl2" ,sdl2)
3095 ("sdl2-mixer" ,sdl2-mixer)
3096 ("shaderc" ,shaderc)
3097 ("spirv-cross" ,spirv-cross)
3098 ("zlib" ,zlib)))
3099 (home-page "https://taisei-project.org/")
3100 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
3101 (description
3102 "The player controls a character (one of three: Good, Bad, and Dead),
3103 dodges the missiles (lots of it cover the screen, but the character's hitbox
3104 is very small), and shoot at the adversaries that keep appear on the screen.")
3105 (license (list ;;game
3106 license:expat
3107 ;;resources/00-taisei.pkgdir/bgm/
3108 ;;atlas/portraits/
3109 license:cc-by4.0
3110 ;;miscellaneous
3111 license:cc0
3112 license:public-domain))))
3113
3114 (define-public cmatrix
3115 (package
3116 (name "cmatrix")
3117 (version "2.0")
3118 (source
3119 (origin
3120 (method git-fetch)
3121 (uri (git-reference
3122 (url "https://github.com/abishekvashok/cmatrix")
3123 (commit (string-append "v" version))))
3124 (file-name (git-file-name name version))
3125 (sha256
3126 (base32
3127 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
3128 (build-system gnu-build-system)
3129 (native-inputs
3130 `(("autoconf" ,autoconf)
3131 ("automake" ,automake)))
3132 (arguments
3133 '(#:phases
3134 (modify-phases %standard-phases
3135 (replace 'configure
3136 (lambda* (#:key outputs #:allow-other-keys)
3137 ;; This old ‘configure’ script doesn't support
3138 ;; variables passed as arguments.
3139 (let ((out (assoc-ref outputs "out")))
3140 (setenv "CONFIG_SHELL" (which "bash"))
3141 (invoke "./configure"
3142 (string-append "--prefix=" out))))))))
3143 (inputs `(("ncurses" ,ncurses)))
3144 (home-page "http://www.asty.org/cmatrix")
3145 (synopsis "Simulate the display from \"The Matrix\"")
3146 (description "CMatrix simulates the display from \"The Matrix\" and is
3147 based on the screensaver from the movie's website. It works with terminal
3148 settings up to 132x300 and can scroll lines all at the same rate or
3149 asynchronously and at a user-defined speed.")
3150 (license license:gpl2+)))
3151
3152 (define-public chess
3153 (package
3154 (name "chess")
3155 (version "6.2.7")
3156 (source
3157 (origin
3158 (method url-fetch)
3159 (uri (string-append "mirror://gnu/chess/gnuchess-" version
3160 ".tar.gz"))
3161 (sha256
3162 (base32
3163 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
3164 (build-system gnu-build-system)
3165 (home-page "https://www.gnu.org/software/chess/")
3166 (synopsis "Full chess implementation")
3167 (description "GNU Chess is a chess engine. It allows you to compete
3168 against the computer in a game of chess, either through the default terminal
3169 interface or via an external visual interface such as GNU XBoard.")
3170 (properties '((upstream-name . "gnuchess")
3171 (ftp-directory . "/chess")))
3172 (license license:gpl3+)))
3173
3174 (define-public freedink-engine
3175 (package
3176 (name "freedink-engine")
3177 (version "109.6")
3178 (source (origin
3179 (method url-fetch)
3180 (uri (string-append "mirror://gnu/freedink/freedink-" version
3181 ".tar.gz"))
3182 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
3183 (sha256
3184 (base32
3185 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
3186 (build-system gnu-build-system)
3187 (arguments
3188 `(#:configure-flags '("--disable-embedded-resources")
3189 #:phases
3190 (modify-phases %standard-phases
3191 (add-after 'unpack 'disable-graphical-tests
3192 (lambda _
3193 ;; These tests require a graphical interface.
3194 (substitute* "src/Makefile.am"
3195 (("test_gfx_fonts TestIOGfxDisplay") ""))
3196 #t))
3197 (add-before 'bootstrap 'autoreconf
3198 (lambda _
3199 ;; automake is out of date in the source
3200 ;; autoreconf updates the automake scripts
3201 (invoke "autoreconf")
3202 ;; Build fails when autom4te.cache exists.
3203 (delete-file-recursively "autom4te.cache")
3204 #t))
3205 (add-after 'install 'delete-freedinkedit-desktop
3206 (lambda* (#:key outputs #:allow-other-keys)
3207 (let ((out (assoc-ref outputs "out")))
3208 ;; freedinkedit does not know where to find freedink data
3209 ;; freedink data is read-only, so it cannot be edited anyway.
3210 ;; TODO: fix freedink.desktop
3211 (delete-file-recursively (string-append
3212 out "/share/applications"))
3213 #t))))))
3214 (native-inputs `(("autoconf" ,autoconf)
3215 ("automake" ,automake)
3216 ("cxxtest" ,cxxtest)
3217 ("gettext" ,gettext-minimal)
3218 ("help2man" ,help2man)
3219 ("pkg-config" ,pkg-config)))
3220 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
3221 sdl2-ttf sdl2-gfx)))
3222 ("fontconfig" ,fontconfig)
3223 ("glm" ,glm)))
3224 (properties '((ftp-directory . "/freedink")
3225 (upstream-name . "freedink")))
3226 (home-page "https://www.gnu.org/software/freedink/")
3227 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
3228 (description
3229 "GNU FreeDink is a free and portable re-implementation of the engine
3230 for the role-playing game Dink Smallwood. It supports not only the original
3231 game data files but it also supports user-produced game mods or \"D-Mods\".
3232 To that extent, it also includes a front-end for managing all of your D-Mods.")
3233 (license license:gpl3+)))
3234
3235 (define-public freedink-data
3236 (package
3237 (name "freedink-data")
3238 (version "1.08.20190120")
3239 (source (origin
3240 (method url-fetch)
3241 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3242 version ".tar.gz"))
3243 (sha256
3244 (base32
3245 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3246 (build-system gnu-build-system)
3247 (arguments
3248 `(#:phases
3249 (modify-phases %standard-phases
3250 (delete 'configure) ; no configure script
3251 (delete 'check)) ; no tests
3252 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3253 (properties '((ftp-directory . "/freedink")))
3254 (home-page "https://www.gnu.org/software/freedink/")
3255 (synopsis "Game data for GNU Freedink")
3256 (description
3257 "This package contains the game data of GNU Freedink.")
3258 (license license:gpl3+)))
3259
3260 (define-public freedink-dfarc
3261 (package
3262 (name "freedink-dfarc")
3263 (version "3.14")
3264 (source (origin
3265 (method url-fetch)
3266 (uri (string-append "mirror://gnu/freedink/dfarc-"
3267 version ".tar.gz"))
3268 (sha256
3269 (base32
3270 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3271 (build-system gnu-build-system)
3272 (native-inputs
3273 `(("intltool" ,intltool)))
3274 (inputs
3275 `(("bzip2" ,bzip2)
3276 ("wxwidgets" ,wxwidgets)))
3277 (properties '((ftp-directory . "/freedink")
3278 (upstream-name . "dfarc")))
3279 (home-page "https://www.gnu.org/software/freedink/")
3280 (synopsis "Front-end for managing and playing Dink Modules")
3281 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3282 and its numerous D-Mods.")
3283 (license license:gpl3+)))
3284
3285 (define-public freedink
3286 ;; This is a wrapper that tells the engine where to find the data.
3287 (package (inherit freedink-engine)
3288 (name "freedink")
3289 (build-system trivial-build-system)
3290 (arguments
3291 '(#:builder (begin
3292 (use-modules (guix build utils))
3293
3294 (let* ((output (assoc-ref %outputs "out"))
3295 (bin (string-append output "/bin"))
3296 (executable (string-append bin "/freedink")))
3297 (mkdir-p bin)
3298 (call-with-output-file executable
3299 (lambda (port)
3300 (format port "#!~a/bin/sh
3301 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3302 (assoc-ref %build-inputs "bash")
3303 (assoc-ref %build-inputs "engine")
3304 (assoc-ref %build-inputs "data"))
3305 (chmod port #o777)))
3306 #t))
3307 #:modules ((guix build utils))))
3308 (inputs `(("engine" ,freedink-engine)
3309 ("data" ,freedink-data)
3310 ("bash" ,bash)))
3311 (native-inputs '())))
3312
3313 (define-public xboard
3314 (package
3315 (name "xboard")
3316 (version "4.9.1")
3317 (source
3318 (origin
3319 (method url-fetch)
3320 (uri (string-append "mirror://gnu/xboard/xboard-" version
3321 ".tar.gz"))
3322 (sha256
3323 (base32
3324 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3325 (build-system gnu-build-system)
3326 (inputs
3327 `(("gtk+" ,gtk+-2)
3328 ("librsvg" ,librsvg)))
3329 (native-inputs
3330 `(("texinfo" ,texinfo)
3331 ("pkg-config" ,pkg-config)))
3332 (home-page "https://www.gnu.org/software/xboard/")
3333 (synopsis "Graphical user interface for chess programs")
3334 (description "GNU XBoard is a graphical board for all varieties of chess,
3335 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3336 and Makruk. Several lesser-known variants are also supported. It presents a
3337 fully interactive graphical interface and it can load and save games in the
3338 Portable Game Notation.")
3339 (license license:gpl3+)))
3340
3341 (define-public gtypist
3342 (package
3343 (name "gtypist")
3344 (version "2.9.5")
3345 (source (origin
3346 (method url-fetch)
3347 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3348 version ".tar.xz"))
3349 (sha256
3350 (base32
3351 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3352 (modules '((guix build utils)))
3353 (snippet
3354 ;; We do not provide `ncurses.h' within an `ncursesw'
3355 ;; sub-directory, so patch the source accordingly. See
3356 ;; <http://bugs.gnu.org/19018>.
3357 '(begin
3358 (for-each (lambda (file)
3359 (substitute* file
3360 (("ncursesw/ncurses.h")
3361 "ncurses.h")))
3362 (find-files "." "configure$|\\.c$"))
3363 #t))))
3364 (build-system gnu-build-system)
3365 (inputs `(("ncurses" ,ncurses)
3366 ("perl" ,perl)))
3367 (home-page "https://www.gnu.org/software/gtypist/")
3368 (synopsis "Typing tutor")
3369 (description
3370 "GNU Typist is a universal typing tutor. It can be used to learn and
3371 practice touch-typing. Several tutorials are included; in addition to
3372 tutorials for the standard QWERTY layout, there are also tutorials for the
3373 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3374 are primarily in English, however some in other languages are provided.")
3375 (license license:gpl3+)))
3376
3377 (define-public irrlicht
3378 (package
3379 (name "irrlicht")
3380 (version "1.8.4")
3381 (source (origin
3382 (method url-fetch)
3383 (uri (string-append
3384 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3385 (version-major+minor version)
3386 "/" version "/irrlicht-" version ".zip"))
3387 (sha256
3388 (base32
3389 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3390 (patches (search-patches "irrlicht-use-system-libs.patch"))
3391 (modules '((guix build utils)))
3392 (snippet
3393 '(begin
3394 (for-each delete-file-recursively
3395 '("bin" ; bundled compiled Windows binaries"
3396 "source/Irrlicht/MacOSX"
3397 "source/Irrlicht/bzip2"
3398 "source/Irrlicht/jpeglib"
3399 "source/Irrlicht/libpng"
3400 "source/Irrlicht/lzma"
3401 "source/Irrlicht/zlib"))
3402 (delete-file "source/Irrlicht/glext.h")
3403 (delete-file "source/Irrlicht/glxext.h")
3404 (delete-file "source/Irrlicht/wglext.h")
3405 #t))))
3406 (build-system gnu-build-system)
3407 (arguments
3408 `(#:phases
3409 (modify-phases %standard-phases
3410 (add-after 'unpack 'chdir-to-source
3411 (lambda _
3412 ;; The actual source is buried a few directories deep.
3413 (chdir "source/Irrlicht/")
3414 #t))
3415 (add-after 'chdir-to-source 'fix-build-env
3416 (lambda* (#:key outputs #:allow-other-keys)
3417 (let ((out (assoc-ref outputs "out")))
3418 (substitute* "Makefile"
3419 (("INSTALL_DIR = /usr/local/lib")
3420 (string-append "INSTALL_DIR = " out "/lib"))
3421 ;; Add '-fpermissive' to the CXXFLAGS
3422 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3423 ;; The Makefile assumes these directories exist.
3424 (mkdir-p (string-append out "/lib"))
3425 (mkdir-p (string-append out "/include")))))
3426 (delete 'configure)) ; no configure script
3427 #:tests? #f ; no check target
3428 #:make-flags '("CC=gcc" "sharedlib")))
3429 (inputs
3430 `(("bzip2" ,bzip2)
3431 ("libjpeg" ,libjpeg-turbo)
3432 ("libpng" ,libpng)
3433 ("libx11" ,libx11)
3434 ("libxxf86vm" ,libxxf86vm)
3435 ("mesa" ,mesa)))
3436 (synopsis "3D game engine written in C++")
3437 (description
3438 "The Irrlicht Engine is a high performance realtime 3D engine written in
3439 C++. Features include an OpenGL renderer, extensible materials, scene graph
3440 management, character animation, particle and other special effects, support
3441 for common mesh file formats, and collision detection.")
3442 (home-page "http://irrlicht.sourceforge.net/")
3443 (license license:zlib)))
3444
3445 (define-public mars
3446 ;; The latest release on SourceForge relies on an unreleased version of SFML
3447 ;; with a different API, so we take the latest version from the official
3448 ;; repository on Github.
3449 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3450 (revision "1"))
3451 (package
3452 (name "mars")
3453 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3454 (source (origin
3455 (method git-fetch)
3456 (uri (git-reference
3457 (url "https://github.com/thelaui/M.A.R.S.")
3458 (commit commit)))
3459 (file-name (git-file-name name version))
3460 (sha256
3461 (base32
3462 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3463 (patches (search-patches "mars-sfml-2.3.patch"
3464 "mars-install.patch"))))
3465 (build-system cmake-build-system)
3466 (arguments
3467 `(#:tests? #f ; There are no tests
3468 #:phases
3469 (modify-phases %standard-phases
3470 (add-after 'unpack 'fix-install-path
3471 (lambda _
3472 (substitute* "src/CMakeLists.txt"
3473 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3474 "${CMAKE_INSTALL_PREFIX}/bin"))
3475 #t))
3476 (add-after 'unpack 'fix-data-path
3477 (lambda* (#:key outputs #:allow-other-keys)
3478 (substitute* "src/System/settings.cpp"
3479 (("C_dataPath = \"./data/\";")
3480 (string-append "C_dataPath = \""
3481 (assoc-ref outputs "out")
3482 "/share/games/marsshooter/\";")))
3483 #t)))))
3484 (inputs
3485 `(("mesa" ,mesa)
3486 ("fribidi" ,fribidi)
3487 ("taglib" ,taglib)
3488 ("sfml" ,sfml)))
3489 (home-page "http://mars-game.sourceforge.net/")
3490 (synopsis "2D space shooter")
3491 (description
3492 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3493 attractive physics. Players can battle each other or computer controlled
3494 enemies in different game modes such as space ball, death match, team death
3495 match, cannon keep, and grave-itation pit.")
3496 (license license:gpl3+))))
3497
3498 (define-public minetest
3499 (package
3500 (name "minetest")
3501 (version "5.4.1")
3502 (source (origin
3503 (method git-fetch)
3504 (uri (git-reference
3505 (url "https://github.com/minetest/minetest")
3506 (commit version)))
3507 (file-name (git-file-name name version))
3508 (sha256
3509 (base32
3510 "062ilb7s377q3hwfhl8q06vvcw2raydz5ljzlzwy2dmyzmdcndb8"))
3511 (modules '((guix build utils)))
3512 (snippet
3513 '(begin
3514 ;; Delete bundled libraries.
3515 (delete-file-recursively "lib")
3516 #t))))
3517 (build-system cmake-build-system)
3518 (arguments
3519 `(#:configure-flags
3520 (list "-DRUN_IN_PLACE=0"
3521 "-DENABLE_FREETYPE=1"
3522 "-DENABLE_GETTEXT=1"
3523 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3524 (string-append "-DIRRLICHT_INCLUDE_DIR="
3525 (assoc-ref %build-inputs "irrlicht")
3526 "/include/irrlicht")
3527 (string-append "-DCURL_INCLUDE_DIR="
3528 (assoc-ref %build-inputs "curl")
3529 "/include/curl"))
3530 #:phases
3531 (modify-phases %standard-phases
3532 (add-after 'unpack 'patch-sources
3533 (lambda* (#:key inputs #:allow-other-keys)
3534 (substitute* "src/filesys.cpp"
3535 ;; Use store-path for "rm" instead of non-existing FHS path.
3536 (("\"/bin/rm\"")
3537 (string-append "\"" (assoc-ref inputs "coreutils") "/bin/rm\"")))
3538 (substitute* "src/CMakeLists.txt"
3539 ;; Let minetest binary remain in build directory.
3540 (("set\\(EXECUTABLE_OUTPUT_PATH .*\\)") ""))
3541 (substitute* "src/unittest/test_servermodmanager.cpp"
3542 ;; do no override MINETEST_SUBGAME_PATH
3543 (("(un)?setenv\\(\"MINETEST_SUBGAME_PATH\".*\\);")
3544 "(void)0;"))
3545 (setenv "MINETEST_SUBGAME_PATH"
3546 (string-append (getcwd) "/games")) ; for check
3547 #t))
3548 (replace 'check
3549 (lambda _
3550 ;; Thanks to our substitutions, the tests should also run
3551 ;; when invoked on the target outside of `guix build'.
3552 (unless ,(%current-target-system)
3553 (setenv "HOME" "/tmp")
3554 (invoke "src/minetest" "--run-unittests"))
3555 #t)))))
3556 (native-search-paths
3557 (list (search-path-specification
3558 (variable "MINETEST_SUBGAME_PATH")
3559 (files '("share/minetest/games")))))
3560 (native-inputs
3561 `(("pkg-config" ,pkg-config)))
3562 (inputs
3563 `(("coreutils" ,coreutils)
3564 ("curl" ,curl)
3565 ("freetype" ,freetype)
3566 ("gettext" ,gettext-minimal)
3567 ("gmp" ,gmp)
3568 ("irrlicht" ,irrlicht)
3569 ("jsoncpp" ,jsoncpp)
3570 ("libjpeg" ,libjpeg-turbo)
3571 ("libpng" ,libpng)
3572 ("libogg" ,libogg)
3573 ("libvorbis" ,libvorbis)
3574 ("libxxf86vm" ,libxxf86vm)
3575 ("luajit" ,luajit)
3576 ("mesa" ,mesa)
3577 ("ncurses" ,ncurses)
3578 ("openal" ,openal)
3579 ("sqlite" ,sqlite)))
3580 (propagated-inputs
3581 `(("minetest-data" ,minetest-data)))
3582 (synopsis "Infinite-world block sandbox game")
3583 (description
3584 "Minetest is a sandbox construction game. Players can create and destroy
3585 various types of blocks in a three-dimensional open world. This allows
3586 forming structures in every possible creation, on multiplayer servers or as a
3587 single player. Mods and texture packs allow players to personalize the game
3588 in different ways.")
3589 (home-page "https://www.minetest.net/")
3590 (license license:lgpl2.1+)))
3591
3592 (define minetest-data
3593 (package
3594 (name "minetest-data")
3595 (version (package-version minetest))
3596 (source (origin
3597 (method git-fetch)
3598 (uri (git-reference
3599 (url "https://github.com/minetest/minetest_game")
3600 (commit version)))
3601 (file-name (git-file-name name version))
3602 (sha256
3603 (base32
3604 "0i45lbnikvgj9kxdp0yphpjjwjcgp4ibn49xkj78j5ic1s9n8jd4"))))
3605 (build-system trivial-build-system)
3606 (native-inputs
3607 `(("source" ,source)))
3608 (arguments
3609 `(#:modules ((guix build utils))
3610 #:builder (begin
3611 (use-modules (guix build utils))
3612 (let ((install-dir (string-append
3613 %output
3614 "/share/minetest/games/minetest_game")))
3615 (mkdir-p install-dir)
3616 (copy-recursively
3617 (assoc-ref %build-inputs "source")
3618 install-dir)
3619 #t))))
3620 (synopsis "Main game data for the Minetest game engine")
3621 (description
3622 "Game data for the Minetest infinite-world block sandbox game.")
3623 (home-page "https://www.minetest.net/")
3624 (license license:lgpl2.1+)))
3625
3626 (define-public minetest-mineclone
3627 (package
3628 (name "minetest-mineclone")
3629 (version "0.71.0")
3630 (source (origin
3631 (method git-fetch)
3632 (uri (git-reference
3633 (url "https://git.minetest.land/Wuzzy/MineClone2")
3634 (commit version)))
3635 (file-name (git-file-name name version))
3636 (sha256
3637 (base32
3638 "0qm809dqvxc7pa1cr9skmglq9vrbq5hhm4c4m5yi46ldh1v96dgf"))))
3639 (build-system copy-build-system)
3640 (arguments
3641 `(#:install-plan
3642 '(("." "share/minetest/games/mineclone"))))
3643 (synopsis "Minecraft clone based on Minetest engine")
3644 (description
3645 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3646 closely as the engine allows.")
3647 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3648 (license license:gpl3+)))
3649
3650 (define glkterm
3651 (package
3652 (name "glkterm")
3653 (version "1.0.4")
3654 (source
3655 (origin
3656 (method url-fetch)
3657 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3658 "glk/implementations/glkterm-104.tar.gz"))
3659 (sha256
3660 (base32
3661 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3662 (build-system gnu-build-system)
3663 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3664 (arguments
3665 '(#:tests? #f ; no check target
3666 #:phases
3667 (modify-phases %standard-phases
3668 (replace 'install
3669 (lambda* (#:key outputs #:allow-other-keys)
3670 (let* ((out (assoc-ref outputs "out"))
3671 (inc (string-append out "/include"))
3672 (lib (string-append out "/lib")))
3673 (for-each
3674 (lambda (file)
3675 (install-file file inc))
3676 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3677 (install-file "libglkterm.a" lib))
3678 #t))
3679 (delete 'configure)))) ; no configure script
3680 (home-page "http://www.eblong.com/zarf/glk/")
3681 (synopsis "Curses Implementation of the Glk API")
3682 (description
3683 "Glk defines a portable API for applications with text UIs. It was
3684 primarily designed for interactive fiction, but it should be suitable for many
3685 interactive text utilities, particularly those based on a command line.
3686 This is an implementation of the Glk library which runs in a terminal window,
3687 using the @code{curses.h} library for screen control.")
3688 (license (license:fsf-free "file://README"))))
3689
3690 (define-public glulxe
3691 (package
3692 (name "glulxe")
3693 (version "0.5.4")
3694 (source
3695 (origin
3696 (method url-fetch)
3697 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3698 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3699 (sha256
3700 (base32
3701 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3702 (build-system gnu-build-system)
3703 (inputs `(("glk" ,glkterm)))
3704 (arguments
3705 '(#:tests? #f ; no check target
3706 #:make-flags
3707 (let* ((glk (assoc-ref %build-inputs "glk")))
3708 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3709 (string-append "GLKLIBDIR=" glk "/lib")
3710 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3711 #:phases
3712 (modify-phases %standard-phases
3713 (replace 'install
3714 (lambda* (#:key outputs #:allow-other-keys)
3715 (let* ((out (assoc-ref outputs "out"))
3716 (bin (string-append out "/bin")))
3717 (install-file "glulxe" bin))
3718 #t))
3719 (delete 'configure)))) ; no configure script
3720 (home-page "https://www.eblong.com/zarf/glulx/")
3721 (synopsis "Interpreter for Glulx VM")
3722 (description
3723 "Glulx is a 32-bit portable virtual machine intended for writing and
3724 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3725 some of the restrictions in the venerable Z-machine format. This is the
3726 reference interpreter, using the Glk API.")
3727 (license license:expat)))
3728
3729 (define-public fifechan
3730 (package
3731 (name "fifechan")
3732 (version "0.1.5")
3733 (source (origin
3734 (method url-fetch)
3735 (uri (string-append "https://codeload.github.com/fifengine/"
3736 "fifechan/tar.gz/" version))
3737 (file-name (string-append name "-" version ".tar.gz"))
3738 (sha256
3739 (base32
3740 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3741 (build-system cmake-build-system)
3742 (inputs
3743 `(("sdl2" ,sdl2)
3744 ("sdl2-image" ,sdl2-image)
3745 ("mesa" ,mesa)))
3746 (arguments
3747 '(#:tests? #f)) ; No included tests
3748 (home-page "https://fifengine.github.io/fifechan/")
3749 (synopsis "Cross platform GUI library specifically for games")
3750 (description
3751 "Fifechan is a lightweight cross platform GUI library written in C++
3752 specifically designed for games. It has a built in set of extendable GUI
3753 Widgets, and allows users to create more.")
3754 (license license:lgpl2.1+)))
3755
3756 (define-public fifengine
3757 (package
3758 (name "fifengine")
3759 (version "0.4.2")
3760 (source (origin
3761 (method url-fetch)
3762 (uri (string-append "https://codeload.github.com/fifengine/"
3763 "fifengine/tar.gz/" version))
3764 (file-name (string-append name "-" version ".tar.gz"))
3765 (patches (search-patches "fifengine-swig-compat.patch"))
3766 (sha256
3767 (base32
3768 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3769 (build-system cmake-build-system)
3770 (arguments
3771 `(#:tests? #f ; TODO The test running fails to run some tests.
3772 #:modules ((srfi srfi-1)
3773 (guix build cmake-build-system)
3774 (guix build utils))
3775 #:configure-flags
3776 (list
3777 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3778 (assoc-ref %build-inputs "openal")
3779 "/include/AL")
3780 (string-append "-DPYTHON_SITE_PACKAGES="
3781 (assoc-ref %outputs "out")
3782 "/lib/python"
3783 ,(version-major+minor (package-version python))
3784 "/site-packages"))
3785 #:phases
3786 (modify-phases %standard-phases
3787 (add-after 'unpack 'patch-run_tests.py
3788 (lambda _
3789 ;; Patch the test runner to exit with a status of 1 if any test
3790 ;; fails, to allow detecting failures.
3791 (substitute* "run_tests.py"
3792 (("ERROR\\. One or more tests failed!'\\)")
3793 "ERROR. One or more tests failed!')
3794 \t\texit(1)"))
3795 #t))
3796 ;; Run tests after installation so that we can make use of the built
3797 ;; python modules.
3798 (delete 'check)
3799 (add-after 'install 'check
3800 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3801 (define python-version
3802 (let* ((version (last (string-split
3803 (assoc-ref inputs "python")
3804 #\-)))
3805 (components (string-split version #\.))
3806 (major+minor (take components 2)))
3807 (string-join major+minor ".")))
3808
3809 (when tests?
3810 ;; Set PYTHONPATH so that python finds the installed modules.
3811 (setenv "PYTHONPATH"
3812 (string-append (getenv "PYTHONPATH") ":"
3813 (assoc-ref outputs "out")
3814 "/lib/python"
3815 python-version
3816 "/site-packages"))
3817 ;; The tests require an X server.
3818 (system "Xvfb :1 &")
3819 (setenv "DISPLAY" ":1")
3820 (setenv "XDG_RUNTIME_DIR" "/tmp")
3821 ;; Run tests
3822 (chdir ,(string-append "../" name "-" version))
3823 (invoke "python3" "run_tests.py" "-a"))
3824 #t)))))
3825 (inputs
3826 `(("sdl2" ,sdl2)
3827 ("sdl2-image" ,sdl2-image)
3828 ("sdl2-ttf" ,sdl2-ttf)
3829 ("tinyxml" ,tinyxml)
3830 ("openal" ,openal)
3831 ("libogg" ,libogg)
3832 ("glew" ,glew)
3833 ("libvorbis" ,libvorbis)
3834 ("boost" ,boost)
3835 ("fifechan" ,fifechan)
3836 ("swig" ,swig)
3837 ("python" ,python)))
3838 (native-inputs
3839 `(("python" ,python)
3840 ("swig" ,swig)
3841 ("xvfb" ,xorg-server)))
3842 (propagated-inputs
3843 `(("python-future" ,python-future)))
3844 (home-page "https://www.fifengine.net/")
3845 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3846 (description
3847 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3848 isometric game engine. Python bindings are included allowing users to create
3849 games using Python as well as C++.")
3850 (license license:lgpl2.1+)))
3851
3852 (define-public fizmo
3853 (package
3854 (name "fizmo")
3855 (version "0.8.5")
3856 (source (origin
3857 (method url-fetch)
3858 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3859 "fizmo-" version ".tar.gz"))
3860 (sha256
3861 (base32
3862 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3863 (build-system gnu-build-system)
3864 (arguments
3865 '(#:configure-flags
3866 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3867 (ncurses (assoc-ref %build-inputs "ncurses")))
3868 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3869 (native-inputs
3870 `(("pkg-config" ,pkg-config)))
3871 (inputs
3872 `(("freetype" ,freetype)
3873 ("libjpeg" ,libjpeg-turbo)
3874 ("libpng" ,libpng)
3875 ("libsndfile" ,libsndfile)
3876 ("libxml2" ,libxml2)
3877 ("ncurses" ,ncurses)
3878 ("sdl2" ,sdl2)))
3879 (home-page "https://fizmo.spellbreaker.org/")
3880 (synopsis "Z-machine interpreter")
3881 (description
3882 "Fizmo is a console-based Z-machine interpreter. It is used to play
3883 interactive fiction, also known as text adventures, which were implemented
3884 either by Infocom or created using the Inform compiler.")
3885 (license license:bsd-3)))
3886
3887 (define-public gnugo
3888 (package
3889 (name "gnugo")
3890 (version "3.8")
3891 (source (origin
3892 (method url-fetch)
3893 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3894 ".tar.gz"))
3895 (sha256
3896 (base32
3897 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3898 (build-system gnu-build-system)
3899 (inputs `(("readline" ,readline)))
3900 (synopsis "Play the game of Go")
3901 (description
3902 "GNU Go is a program that plays the game of Go, in which players
3903 place stones on a grid to form territory or capture other stones. While
3904 it can be played directly from the terminal, rendered in ASCII characters,
3905 it is also possible to play GNU Go with 3rd party graphical interfaces or
3906 even in Emacs. It supports the standard game storage format (SGF, Smart
3907 Game Format) and inter-process communication format (GMP, Go Modem
3908 Protocol).")
3909 (home-page "https://www.gnu.org/software/gnugo/")
3910 (license license:gpl3+)))
3911
3912 (define-public extremetuxracer
3913 (package
3914 (name "extremetuxracer")
3915 (version "0.8.0")
3916 (source (origin
3917 (method url-fetch)
3918 (uri (string-append
3919 "mirror://sourceforge/extremetuxracer/releases/"
3920 version "/etr-" version ".tar.xz"))
3921 (sha256
3922 (base32
3923 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3924 (build-system gnu-build-system)
3925 (native-inputs
3926 `(("pkg-config" ,pkg-config)))
3927 (inputs
3928 `(("glu" ,glu)
3929 ("sfml" ,sfml)))
3930 (synopsis "High-speed arctic racing game based on Tux Racer")
3931 ;; Snarfed straight from Debian.
3932 (description "Extreme Tux Racer, or etracer as it is called for short, is
3933 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3934 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3935 avoiding the trees and rocks that will slow you down.
3936
3937 Collect herrings and other goodies while sliding down the hill, but avoid fish
3938 bones.
3939
3940 This game is based on the GPL version of the famous game TuxRacer.")
3941 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3942 (license license:gpl2+)))
3943
3944 (define-public supertuxkart
3945 (package
3946 (name "supertuxkart")
3947 (version "1.2")
3948 (source
3949 (origin
3950 (method url-fetch)
3951 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3952 version "/SuperTuxKart-" version "-src.tar.xz"))
3953 (sha256
3954 (base32
3955 "0dvx56hmy6wdhl7m9dw8zc1n3jqfp05gnxl6zs1rbfdyzl5dybh5"))
3956 (modules '((guix build utils)))
3957 (snippet
3958 ;; Delete bundled library sources
3959 '(begin
3960 ;; Supertuxkart uses modified versions of the Irrlicht engine
3961 ;; and the bullet library. The developers gave an explanation
3962 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3963 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3964 (for-each delete-file-recursively
3965 '("lib/glew"
3966 "lib/wiiuse"
3967 "lib/enet"))
3968 #t))))
3969 (build-system cmake-build-system)
3970 (arguments
3971 `(#:tests? #f ; no check target
3972 #:configure-flags
3973 (list "-DUSE_WIIUSE=0"
3974 "-DUSE_SYSTEM_GLEW=TRUE"
3975 "-DUSE_SYSTEM_ENET=TRUE"
3976 ;; In order to use the system ENet library, IPv6 support (added in
3977 ;; SuperTuxKart version 1.1) must be disabled.
3978 "-DUSE_IPV6=FALSE"
3979 ;; FIXME: needs libopenglrecorder
3980 "-DBUILD_RECORDER=0")))
3981 (inputs
3982 `(("curl" ,curl)
3983 ("freetype" ,freetype)
3984 ("fribidi" ,fribidi)
3985 ("glew" ,glew)
3986 ("harfbuzz" ,harfbuzz)
3987 ("libvorbis" ,libvorbis)
3988 ("libx11" ,libx11)
3989 ("libxrandr" ,libxrandr)
3990 ("mesa" ,mesa)
3991 ("openal" ,openal)
3992 ("sdl2" ,sdl2)
3993 ("zlib" ,zlib)
3994 ;; The following input is needed to build the bundled and modified
3995 ;; version of irrlicht.
3996 ("enet" ,enet)
3997 ("libjpeg" ,libjpeg-turbo)
3998 ("openssl" ,openssl)))
3999 (native-inputs
4000 `(("pkg-config" ,pkg-config)))
4001 (home-page "https://supertuxkart.net/Main_Page")
4002 (synopsis "3D kart racing game")
4003 (description "SuperTuxKart is a 3D kart racing game, with a focus on
4004 having fun over realism. You can play with up to 4 friends on one PC, racing
4005 against each other or just trying to beat the computer; single-player mode is
4006 also available.")
4007 (license license:gpl3+)))
4008
4009 (define-public unknown-horizons
4010 (package
4011 (name "unknown-horizons")
4012 (version "2019.1")
4013 (source (origin
4014 (method url-fetch)
4015 (uri (string-append "https://codeload.github.com/unknown-horizons/"
4016 "unknown-horizons/tar.gz/" version))
4017 (file-name (string-append name "-" version ".tar.gz"))
4018 (sha256
4019 (base32
4020 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
4021 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
4022 (build-system python-build-system)
4023 (arguments
4024 '(#:phases
4025 (modify-phases %standard-phases
4026 (add-before 'build 'set-HOME
4027 (lambda _
4028 (setenv "HOME" "/tmp")
4029 #t))
4030 (add-after 'build 'build-extra
4031 (lambda _
4032 (invoke "python3" "./setup.py" "build_i18n")
4033 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
4034 #t))
4035 (add-after 'install 'patch
4036 (lambda* (#:key outputs #:allow-other-keys)
4037 (let ((out (assoc-ref outputs "out")))
4038 (substitute* (string-append out "/bin/unknown-horizons")
4039 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
4040 (string-append "os.chdir(\""
4041 (assoc-ref outputs "out")
4042 "/share/unknown-horizons\")"))))
4043 #t))
4044 (add-before 'check 'fix-tests-with-pytest>=4
4045 (lambda _
4046 (substitute* "tests/conftest.py"
4047 (("pytest_namespace")
4048 "pytest_configure")
4049 (("get_marker")
4050 "get_closest_marker"))
4051 #t))
4052 ;; TODO: Run GUI tests as well
4053 (replace 'check
4054 (lambda _
4055 (substitute* "horizons/constants.py"
4056 (("IS_DEV_VERSION = False")
4057 "IS_DEV_VERSION = True"))
4058 (invoke "pytest" "tests")
4059 (substitute* "horizons/constants.py"
4060 (("IS_DEV_VERSION = True")
4061 "IS_DEV_VERSION = False"))
4062 #t)))))
4063 (inputs
4064 `(("fifengine" ,fifengine)
4065 ("python:tk" ,python "tk")
4066 ("python-pillow" ,python-pillow)
4067 ("python-pyyaml" ,python-pyyaml)))
4068 (native-inputs
4069 `(("intltool" ,intltool)
4070 ("python-distro" ,python-distro)
4071
4072 ;; Required for tests
4073 ("python-greenlet" ,python-greenlet)
4074 ("python-polib" ,python-polib)
4075 ("python-pytest" ,python-pytest)
4076 ("python-pytest-mock" ,python-pytest-mock)))
4077 (home-page "https://unknown-horizons.org/")
4078 (synopsis "Isometric realtime strategy, economy and city building simulation")
4079 (description
4080 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
4081 on economy and city building. Expand your small settlement to a strong and
4082 wealthy colony, collect taxes and supply your inhabitants with valuable
4083 goods. Increase your power with a well balanced economy and with strategic
4084 trade and diplomacy.")
4085 (license (list
4086 license:gpl2+ ; Covers code
4087 license:expat ; tests/dummy.py, ext/polib.py
4088 license:cc-by-sa3.0 ; Covers some media content
4089 license:cc-by3.0 ; Covers some media content
4090 license:bsd-3)))) ; horizons/ext/speaklater.py
4091
4092 (define-public gnujump
4093 (package
4094 (name "gnujump")
4095 (version "1.0.8")
4096 (source (origin
4097 (method url-fetch)
4098 (uri (string-append "mirror://gnu/gnujump/gnujump-"
4099 version ".tar.gz"))
4100 (sha256
4101 (base32
4102 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
4103 (build-system gnu-build-system)
4104 (arguments
4105 '(#:phases
4106 (modify-phases %standard-phases
4107 (add-before
4108 'configure 'link-libm
4109 (lambda _ (setenv "LIBS" "-lm")))
4110 (add-after 'install 'create-desktop-entry
4111 (lambda* (#:key outputs #:allow-other-keys)
4112 (let* ((out (assoc-ref outputs "out"))
4113 (apps (string-append out "/share/applications")))
4114 (mkdir-p apps)
4115 (with-output-to-file
4116 (string-append apps "/gnujump.desktop")
4117 (lambda _
4118 (format #t
4119 "[Desktop Entry]~@
4120 Name=GNUjump~@
4121 Comment=Jump up the tower to survive~@
4122 Exec=~a/bin/gnujump~@
4123 Terminal=false~@
4124 Type=Application~@
4125 Categories=Game;ArcadeGame~%"
4126 out)))))))))
4127 (inputs
4128 `(("glu" ,glu)
4129 ("mesa" ,mesa)
4130 ("sdl" ,sdl)
4131 ("sdl-image" ,sdl-image)
4132 ("sdl-mixer" ,sdl-mixer)))
4133 (home-page "http://gnujump.es.gnu.org/")
4134 (synopsis
4135 "Game of jumping to the next floor, trying not to fall")
4136 (description
4137 "GNUjump is a simple, yet addictive game in which you must jump from
4138 platform to platform to avoid falling, while the platforms drop at faster rates
4139 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
4140 falling, themeable graphics and sounds, and replays.")
4141 (license license:gpl3+)))
4142
4143 (define-public wesnoth
4144 (package
4145 (name "wesnoth")
4146 (version "1.14.16")
4147 (source (origin
4148 (method url-fetch)
4149 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
4150 (version-major+minor version)
4151 "/wesnoth-" version "/"
4152 "wesnoth-" version ".tar.bz2"))
4153 (sha256
4154 (base32
4155 "1d9hq3dcx0sgs2v4400rg2nw98v46m7bwiqqjv8z8n7vw8kx8lhg"))))
4156 (build-system cmake-build-system)
4157 (arguments
4158 `(#:tests? #f)) ;no check target
4159 (native-inputs
4160 `(("gettext" ,gettext-minimal)
4161 ("pkg-config" ,pkg-config)))
4162 (inputs
4163 `(("boost" ,boost)
4164 ("dbus" ,dbus)
4165 ("fribidi" ,fribidi)
4166 ("libvorbis" ,libvorbis)
4167 ("openssl" ,openssl)
4168 ("pango" ,pango)
4169 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
4170 (home-page "https://www.wesnoth.org/")
4171 (synopsis "Turn-based strategy game")
4172 (description
4173 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
4174 with several single player campaigns, and multiplayer games (both networked and
4175 local).
4176
4177 Battle for control on a range of maps, using variety of units which have
4178 advantages and disadvantages against different types of attacks. Units gain
4179 experience and advance levels, and are carried over from one scenario to the
4180 next campaign.")
4181 (license license:gpl2+)))
4182
4183 (define-public wesnoth-server
4184 (package
4185 (inherit wesnoth)
4186 (name "wesnoth-server")
4187 (inputs
4188 `(("boost" ,boost)
4189 ("icu4c" ,icu4c)
4190 ("openssl" ,openssl)
4191 ("sdl2" ,sdl2)))
4192 (arguments
4193 `(#:configure-flags '("-DENABLE_GAME=OFF")
4194 ,@(package-arguments wesnoth)))
4195 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
4196 (description "This package contains a dedicated server for @emph{The
4197 Battle for Wesnoth}.")))
4198
4199 (define-public gamine
4200 (package
4201 (name "gamine")
4202 (version "1.6")
4203 (source (origin
4204 (method url-fetch)
4205 (uri (string-append "mirror://sourceforge/gamine-game/"
4206 "gamine-" version ".tar.gz"))
4207 (sha256
4208 (base32
4209 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
4210 (build-system gnu-build-system)
4211 (native-inputs
4212 `(("pkg-config" ,pkg-config)
4213 ("intltool" ,intltool)))
4214 (inputs
4215 `(("gstreamer" ,gstreamer)
4216 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
4217 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
4218 ("gtk+" ,gtk+)))
4219 (arguments
4220 `(#:tests? #f
4221 #:make-flags
4222 (let ((out (assoc-ref %outputs "out")))
4223 (list (string-append "PREFIX=" out)
4224 (string-append "SYSCONFDIR=" out "/etc")))
4225 #:phases
4226 (modify-phases %standard-phases
4227 (delete 'configure)
4228 (add-after
4229 'install 'wrap-gamine
4230 (lambda* (#:key outputs #:allow-other-keys)
4231 (let ((out (assoc-ref outputs "out"))
4232 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4233 (wrap-program (string-append out "/bin/gamine")
4234 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4235 #t)))))
4236 (home-page "http://gamine-game.sourceforge.net/")
4237 (synopsis "Mouse and keyboard discovery for children")
4238 (description
4239 "Gamine is a game designed for young children who are learning to use the
4240 mouse and keyboard. The child uses the mouse to draw colored dots and lines
4241 on the screen and keyboard to display letters.")
4242 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
4243 (license license:gpl3)))
4244
4245 (define-public manaplus
4246 (package
4247 (name "manaplus")
4248 (version "1.9.3.23")
4249 (source (origin
4250 (method url-fetch)
4251 (uri (string-append
4252 "https://repo.manaplus.org/manaplus/download/"
4253 version "/manaplus-" version ".tar.xz"))
4254 (sha256
4255 (base32
4256 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
4257 (build-system gnu-build-system)
4258 (arguments
4259 '(#:configure-flags
4260 (list (string-append "CPPFLAGS=-I"
4261 (assoc-ref %build-inputs "sdl-union")
4262 "/include/SDL"))))
4263 (native-inputs
4264 `(("pkg-config" ,pkg-config)))
4265 (inputs
4266 `(("glu" ,glu)
4267 ("curl" ,curl)
4268 ("libxml2" ,libxml2)
4269 ("mesa" ,mesa)
4270 ("sdl-union" ,(sdl-union))))
4271 (home-page "https://manaplus.org")
4272 (synopsis "Client for 'The Mana World' and similar games")
4273 (description
4274 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4275 fully supported client for @uref{http://www.themanaworld.org, The mana
4276 world}, @uref{http://evolonline.org, Evol Online} and
4277 @uref{http://landoffire.org, Land of fire}.")
4278 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4279 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4280 ;; The rest is under GPL2+.
4281 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4282
4283 (define openttd-engine
4284 (package
4285 (name "openttd-engine")
4286 (version "1.10.3")
4287 (source
4288 (origin (method url-fetch)
4289 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4290 version "/openttd-" version "-source.tar.xz"))
4291 (sha256
4292 (base32
4293 "0fxmfz1mm95a2x0rnzfff9wb8q57w0cvsdd0z7agdcbyakph25n1"))))
4294 (build-system gnu-build-system)
4295 (arguments
4296 `(#:tests? #f ; no "check" target
4297 #:phases
4298 (modify-phases %standard-phases
4299 ;; The build process fails if the configure script is passed the
4300 ;; option "--enable-fast-install".
4301 (replace 'configure
4302 (lambda* (#:key inputs outputs (configure-flags '())
4303 #:allow-other-keys)
4304 (let ((out (assoc-ref outputs "out"))
4305 (lzo (assoc-ref inputs "lzo")))
4306 (apply invoke "./configure"
4307 (string-append "--prefix=" out)
4308 ;; Provide the "lzo" path.
4309 (string-append "--with-liblzo2="
4310 lzo "/lib/liblzo2.a")
4311 ;; Put the binary in 'bin' instead of 'games'.
4312 "--binary-dir=bin"
4313 configure-flags)))))))
4314 (native-inputs `(("pkg-config" ,pkg-config)))
4315 (inputs
4316 `(("allegro" ,allegro)
4317 ("fontconfig" ,fontconfig)
4318 ("freetype" ,freetype)
4319 ("icu4c" ,icu4c)
4320 ("libpng" ,libpng)
4321 ("lzo" ,lzo)
4322 ("sdl" ,sdl)
4323 ("xz" ,xz)
4324 ("zlib" ,zlib)))
4325 (synopsis "Transportation economics simulator game")
4326 (description "OpenTTD is a game in which you transport goods and
4327 passengers by land, water and air. It is a re-implementation of Transport
4328 Tycoon Deluxe with many enhancements including multiplayer mode,
4329 internationalization support, conditional orders and the ability to clone,
4330 autoreplace and autoupdate vehicles. This package only includes the game
4331 engine. When you start it you will be prompted to download a graphics set.")
4332 (home-page "https://www.openttd.org/")
4333 ;; This package is GPLv2, except for a few files located in
4334 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4335 ;; licenses. In addition, this software contains an in-game downloader
4336 ;; from which the user may find non-functional data licensed under
4337 ;; different terms.
4338 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4339
4340 (define openttd-opengfx
4341 (package
4342 (name "openttd-opengfx")
4343 (version "0.6.0")
4344 (source
4345 (origin
4346 (method url-fetch)
4347 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4348 version "/opengfx-" version "-source.tar.xz"))
4349 (sha256
4350 (base32
4351 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
4352 (build-system gnu-build-system)
4353 (arguments
4354 '(#:make-flags (list "CC=gcc"
4355 (string-append "INSTALL_DIR="
4356 (assoc-ref %outputs "out")
4357 "/share/games/openttd/baseset/opengfx"))
4358 #:phases
4359 (modify-phases %standard-phases
4360 (replace 'configure
4361 (lambda _
4362 ;; Make sure HOME is writable for GIMP.
4363 (setenv "HOME" (getcwd))
4364
4365 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4366 ;; dos2unix from receiving its version information as a flag.
4367 (substitute* "Makefile"
4368 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4369 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4370 ;; The check phase for this package only checks the md5sums of the built
4371 ;; GRF files against the md5sums of the release versions. Because we use
4372 ;; different software versions than upstream does, some of the md5sums
4373 ;; are different. However, the package is still reproducible, it's safe
4374 ;; to disable this test.
4375 #:tests? #f
4376 #:parallel-build? #f))
4377 (native-inputs `(("dos2unix" ,dos2unix)
4378 ("gimp" ,gimp)
4379 ("grfcodec" ,grfcodec)
4380 ("nml" ,nml)
4381 ("which" ,which)
4382 ("python" ,python-2)))
4383 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4384 (synopsis "Base graphics set for OpenTTD")
4385 (description
4386 "The OpenGFX project is an implementation of the OpenTTD base graphics
4387 set that aims to ensure the best possible out-of-the-box experience.
4388
4389 OpenGFX provides you with...
4390 @enumerate
4391 @item All graphics you need to enjoy OpenTTD.
4392 @item Uniquely drawn rail vehicles for every climate.
4393 @item Completely snow-aware rivers.
4394 @item Different river and sea water.
4395 @item Snow-aware buoys.
4396 @end enumerate")
4397 (license license:gpl2)))
4398
4399 (define openttd-opensfx
4400 (package
4401 (name "openttd-opensfx")
4402 (version "0.2.3")
4403 (source
4404 (origin
4405 (method url-fetch)
4406 (uri (string-append
4407 "https://binaries.openttd.org/extra/opensfx/"
4408 version "/opensfx-" version "-source.tar.gz"))
4409 (sha256
4410 (base32
4411 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
4412 (build-system gnu-build-system)
4413 (native-inputs
4414 `(("catcodec" ,catcodec)
4415 ("python" ,python-2)))
4416 (arguments
4417 `(#:make-flags
4418 (list (string-append "INSTALL_DIR=" %output
4419 "/share/games/openttd/baseset/opensfx"))
4420 #:phases
4421 (modify-phases %standard-phases
4422 (add-after 'unpack 'make-reproducible
4423 (lambda _
4424 ;; Remove the time dependency of the installed tarball by setting
4425 ;; the modification times if its members to 0.
4426 (substitute* "scripts/Makefile.def"
4427 (("-cf") " --mtime=@0 -cf"))
4428 #t))
4429 (delete 'configure))))
4430 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4431 (synopsis "Base sounds for OpenTTD")
4432 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4433 it possible to play OpenTTD without requiring the proprietary sound files from
4434 the original Transport Tycoon Deluxe.")
4435 (license license:cc-sampling-plus-1.0)))
4436
4437 (define openttd-openmsx
4438 (package
4439 (name "openttd-openmsx")
4440 (version "0.3.1")
4441 (source
4442 (origin
4443 (method url-fetch)
4444 (uri (string-append
4445 "https://binaries.openttd.org/extra/openmsx/"
4446 version "/openmsx-" version "-source.tar.gz"))
4447 (sha256
4448 (base32
4449 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
4450 (build-system gnu-build-system)
4451 (native-inputs
4452 `(("python" ,python-2)))
4453 (arguments
4454 `(#:make-flags
4455 (list (string-append "INSTALL_DIR=" %output
4456 "/share/games/openttd/baseset"))
4457 #:phases
4458 (modify-phases %standard-phases
4459 (delete 'configure)
4460 (add-after 'install 'post-install
4461 ;; Rename openmsx-version to openmsx
4462 (lambda* (#:key outputs #:allow-other-keys)
4463 (let ((install-directory (string-append (assoc-ref outputs "out")
4464 "/share/games/openttd/baseset")))
4465 (rename-file (string-append install-directory "/openmsx-" ,version)
4466 (string-append install-directory "/openmsx"))
4467 #t))))))
4468 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4469 (synopsis "Music set for OpenTTD")
4470 (description "OpenMSX is a music set for OpenTTD which makes it possible
4471 to play OpenTTD without requiring the proprietary music from the original
4472 Transport Tycoon Deluxe.")
4473 (license license:gpl2)))
4474
4475 (define-public openttd
4476 (package
4477 (inherit openttd-engine)
4478 (name "openttd")
4479 (arguments
4480 `(#:configure-flags
4481 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4482 "/bin/timidity"))
4483 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4484 ((#:phases phases)
4485 `(modify-phases ,phases
4486 (add-after 'install 'install-data
4487 (lambda* (#:key inputs outputs #:allow-other-keys)
4488 (for-each
4489 (lambda (input)
4490 (copy-recursively (assoc-ref inputs input)
4491 (assoc-ref outputs "out")))
4492 (list "opengfx" "openmsx" "opensfx"))
4493 #t)))))))
4494 (inputs
4495 `(("timidity++" ,timidity++)
4496 ,@(package-inputs openttd-engine)))
4497 (native-inputs
4498 `(("opengfx" ,openttd-opengfx)
4499 ("openmsx" ,openttd-openmsx)
4500 ("opensfx" ,openttd-opensfx)
4501 ,@(package-native-inputs openttd-engine)))))
4502
4503 (define openrct2-title-sequences
4504 (package
4505 (name "openrct2-title-sequences")
4506 (version "0.1.2")
4507 (source
4508 (origin
4509 (method url-fetch)
4510 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4511 version "/title-sequence-v" version ".zip"))
4512 (file-name (string-append name "-" version ".zip"))
4513 (sha256
4514 (base32
4515 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4516 (build-system trivial-build-system)
4517 (native-inputs
4518 `(("bash" ,bash)
4519 ("coreutils" ,coreutils)
4520 ("unzip" ,unzip)))
4521 (arguments
4522 `(#:modules ((guix build utils))
4523 #:builder
4524 (begin
4525 (use-modules (guix build utils))
4526 (let* ((out (assoc-ref %outputs "out"))
4527 (openrct2-title-sequences (string-append out
4528 "/share/openrct2/title-sequences"))
4529 (source (assoc-ref %build-inputs "source"))
4530 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4531 (copy-file source (string-append ,name "-" ,version ".zip"))
4532 (invoke unzip (string-append ,name "-" ,version ".zip"))
4533 (delete-file (string-append ,name "-" ,version ".zip"))
4534 (mkdir-p openrct2-title-sequences)
4535 (copy-recursively "."
4536 openrct2-title-sequences)
4537 #t))))
4538 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4539 (synopsis "Title sequences for OpenRCT2")
4540 (description
4541 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4542 (license license:gpl3+)))
4543
4544 (define openrct2-objects
4545 (package
4546 (name "openrct2-objects")
4547 (version "1.0.20")
4548 (source
4549 (origin
4550 (method url-fetch)
4551 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4552 version "/objects.zip"))
4553 (file-name (string-append name "-" version ".zip"))
4554 (sha256
4555 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4556 (build-system trivial-build-system)
4557 (native-inputs
4558 `(("bash" ,bash)
4559 ("coreutils" ,coreutils)
4560 ("unzip" ,unzip)))
4561 (arguments
4562 `(#:modules ((guix build utils))
4563 #:builder
4564 (begin
4565 (use-modules (guix build utils))
4566 (let* ((out (assoc-ref %outputs "out"))
4567 (openrct2-objects (string-append out
4568 "/share/openrct2/objects"))
4569 (source (assoc-ref %build-inputs "source"))
4570 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4571 (copy-file source (string-append ,name "-" ,version ".zip"))
4572 (invoke unzip (string-append ,name "-" ,version ".zip"))
4573 (delete-file (string-append ,name "-" ,version ".zip"))
4574 (mkdir-p openrct2-objects)
4575 (copy-recursively "."
4576 openrct2-objects)
4577 #t))))
4578 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4579 (synopsis "Objects for OpenRCT2")
4580 (description
4581 "openrct2-objects is a set of objects for OpenRCT2.")
4582 (license license:gpl3+)))
4583
4584 (define-public openrct2
4585 (package
4586 (name "openrct2")
4587 (version "0.3.2")
4588 (source
4589 (origin
4590 (method git-fetch)
4591 (uri (git-reference
4592 (url "https://github.com/OpenRCT2/OpenRCT2")
4593 (commit (string-append "v" version))))
4594 (file-name (git-file-name name version))
4595 (sha256
4596 (base32 "1fd32wniiy6qz2046ppqfj2sb3rf2qf086rf9v1bdhyj254d0b1z"))))
4597 (build-system cmake-build-system)
4598 (arguments
4599 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4600 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4601 #:tests? #f ; tests require network access
4602 #:phases
4603 (modify-phases %standard-phases
4604 (add-after 'unpack 'fix-usr-share-paths&add-data
4605 (lambda* (#:key inputs outputs #:allow-other-keys)
4606 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4607 (objects (assoc-ref inputs "openrct2-objects")))
4608 ;; Fix some references to /usr/share.
4609 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4610 (("/usr/share")
4611 (string-append (assoc-ref %outputs "out") "/share")))
4612 (copy-recursively
4613 (string-append titles "/share/openrct2/title-sequences")
4614 "data/title")
4615 (copy-recursively
4616 (string-append objects "/share/openrct2/objects")
4617 "data/object"))))
4618 (add-before 'configure 'get-rid-of-errors
4619 (lambda _
4620 ;; Don't treat warnings as errors.
4621 (substitute* "CMakeLists.txt"
4622 (("-Werror") ""))
4623 #t)))))
4624 (inputs `(("curl" ,curl)
4625 ("duktape" ,duktape)
4626 ("fontconfig" ,fontconfig)
4627 ("freetype" ,freetype)
4628 ("icu4c" ,icu4c)
4629 ("jansson" ,jansson)
4630 ("libpng" ,libpng)
4631 ("libzip" ,libzip)
4632 ("mesa" ,mesa)
4633 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4634 ("openrct2-objects" ,openrct2-objects)
4635 ("openrct2-title-sequences" ,openrct2-title-sequences)
4636 ("openssl" ,openssl)
4637 ("sdl2" ,sdl2)
4638 ("speexdsp" ,speexdsp)
4639 ("zlib" ,zlib)))
4640 (native-inputs
4641 `(("pkg-config" ,pkg-config)))
4642 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4643 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4644 (description "OpenRCT2 is a free software re-implementation of
4645 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4646 maintaining an amusement park containing attractions, shops and facilities.
4647
4648 Note that this package does @emph{not} provide the game assets (sounds,
4649 images, etc.)")
4650 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4651 ;; regarding assets.
4652 (license license:gpl3+)))
4653
4654 (define-public pinball
4655 (package
4656 (name "pinball")
4657 (version "0.3.1")
4658 (source
4659 (origin (method url-fetch)
4660 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4661 "pinball-" version "/"
4662 "pinball-" version ".tar.gz"))
4663 (sha256
4664 (base32
4665 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4666 (patches (search-patches "pinball-const-fix.patch"
4667 "pinball-cstddef.patch"
4668 "pinball-missing-separators.patch"
4669 "pinball-src-deps.patch"
4670 "pinball-system-ltdl.patch"))))
4671 (build-system gnu-build-system)
4672 (inputs
4673 `(("glu" ,glu)
4674 ("mesa" ,mesa)
4675 ("sdl" ,sdl)
4676 ("sdl-image" ,sdl-image)
4677 ("sdl-mixer" ,sdl-mixer)))
4678 (arguments
4679 '(#:configure-flags
4680 (list (string-append "CPPFLAGS=-I"
4681 (assoc-ref %build-inputs "sdl-image")
4682 "/include/SDL -I"
4683 (assoc-ref %build-inputs "sdl-mixer")
4684 "/include/SDL"))))
4685 (home-page "http://pinball.sourceforge.net")
4686 (synopsis "Pinball simulator")
4687 (description "The Emilia Pinball Project is a pinball simulator. There
4688 are only two levels to play with, but they are very addictive.")
4689 (license license:gpl2)))
4690
4691 (define-public pioneers
4692 (package
4693 (name "pioneers")
4694 (version "15.6")
4695 (source (origin
4696 (method url-fetch)
4697 (uri (string-append "https://downloads.sourceforge.net/pio/"
4698 "pioneers-" version ".tar.gz"))
4699 (sha256
4700 (base32
4701 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4702 (build-system gnu-build-system)
4703 (inputs `(("avahi" ,avahi)
4704 ("gtk+" ,gtk+)
4705 ("librsvg" ,librsvg)))
4706 (native-inputs `(("intltool" ,intltool)
4707 ("itstool" ,itstool)
4708 ("libxml2" ,libxml2)
4709 ("pkg-config" ,pkg-config)))
4710 (synopsis "Board game inspired by The Settlers of Catan")
4711 (description "Pioneers is an emulation of the board game The Settlers of
4712 Catan. It can be played on a local network, on the internet, and with AI
4713 players.")
4714 (home-page "http://pio.sourceforge.net/")
4715 (license license:gpl2+)))
4716
4717 (define-public einstein
4718 (package
4719 (name "einstein")
4720 (version "2.0")
4721 (source (origin
4722 (method url-fetch)
4723 (uri (string-append "mirror://debian/pool/main/e/"
4724 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4725 (sha256
4726 (base32
4727 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4728 (patches (search-patches "einstein-build.patch"))))
4729 (build-system gnu-build-system)
4730 (inputs
4731 `(("freetype" ,freetype)
4732 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4733 ("zlib" ,zlib)))
4734 (native-inputs
4735 `(("font-dejavu" ,font-dejavu)))
4736 (arguments
4737 `(#:tests? #f ; no check target
4738 #:phases
4739 (modify-phases %standard-phases
4740 (replace 'configure
4741 (lambda* (#:key outputs inputs #:allow-other-keys)
4742 (let ((out (assoc-ref outputs "out"))
4743 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4744 "/share/fonts/truetype/DejaVuSans.ttf")))
4745 (substitute* "Makefile"
4746 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4747 ;; The patch above registers a free font for use by the binary,
4748 ;; but the font is copied during the compile phase into a
4749 ;; resources file, so we need to make the ttf file available.
4750 (symlink dejavu "res/DejaVuSans.ttf")
4751 #t))))))
4752 (synopsis "Logic puzzle game")
4753 (description "The goal of this logic game is to open all cards in a 6x6
4754 grid, using a number of hints as to their relative position. The game idea
4755 is attributed to Albert Einstein.")
4756 ;; The original home page has disappeared.
4757 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4758 "http://games.flowix.com/en/index.html"))
4759 ;; License according to
4760 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4761 ;; The source code is a DFSG-sanitized tarball and does not contain any
4762 ;; license information.
4763 (license license:gpl3+)))
4764
4765 (define-public powwow
4766 (package
4767 (name "powwow")
4768 (version "1.2.22")
4769 (source (origin
4770 (method url-fetch)
4771 (uri (string-append
4772 "https://www.hoopajoo.net/static/projects/powwow-"
4773 version ".tar.gz"))
4774 (sha256
4775 (base32
4776 "12i11b8zxg8vdb9d6ims8qy2lmwwr42rcqbwq3vsa1x94s51bcbp"))))
4777 (inputs
4778 `(("ncurses" ,ncurses)))
4779 (build-system gnu-build-system)
4780 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4781 (synopsis "MUD and telnet client")
4782 (description
4783 "POWWOW is a client software which can be used for telnet as well as for
4784 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4785 the chat server psyced with the specific config located at
4786 http://lavachat.symlynx.com/unix/")
4787 (license license:gpl2+)))
4788
4789 (define-public red-eclipse
4790 (let ((release "2.0.0")
4791 (revision 0))
4792 (package
4793 (name "red-eclipse")
4794 (version (if (zero? revision)
4795 release
4796 (string-append release "-"
4797 (number->string revision))))
4798 (source
4799 (origin
4800 (method git-fetch)
4801 (uri (git-reference
4802 (url "https://github.com/redeclipse/base")
4803 (commit (string-append "v" release))
4804 (recursive? #t))) ; for game data
4805 (file-name (git-file-name name version))
4806 (sha256
4807 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4808 (modules '((guix build utils)))
4809 (snippet
4810 ;; Remove proprietary libraries and other pre-compiled binaries.
4811 '(begin
4812 (delete-file-recursively "bin")
4813 #t))))
4814 (build-system gnu-build-system)
4815 (arguments
4816 `(#:tests? #f ; no check target
4817 #:make-flags (list "CC=gcc" "-Csrc"
4818 (string-append "INSTDIR="
4819 (assoc-ref %outputs "out") "/bin")
4820 (string-append "prefix="
4821 (assoc-ref %outputs "out")))
4822 #:phases
4823 (modify-phases %standard-phases
4824 (add-after 'unpack 'add-store-data-package-path-as-default
4825 (lambda* (#:key outputs #:allow-other-keys)
4826 (substitute* "src/engine/server.cpp"
4827 (("data = \"data\"")
4828 (string-append "data = \""
4829 (assoc-ref outputs "out")
4830 "/share/redeclipse/data\"")))
4831 #t))
4832 (delete 'configure) ; no configure script
4833 (add-after 'set-paths 'set-sdl-paths
4834 (lambda* (#:key inputs #:allow-other-keys)
4835 (setenv "CPATH"
4836 (string-append (assoc-ref inputs "sdl-union")
4837 "/include/SDL2:"
4838 (or (getenv "CPATH") "")))
4839 #t))
4840 (add-after 'install 'copy-data
4841 (lambda* (#:key outputs #:allow-other-keys)
4842 (let ((out (assoc-ref outputs "out")))
4843 (copy-recursively "config"
4844 (string-append out "/config"))
4845 (copy-file "doc/examples/servinit.cfg"
4846 (string-append out "/config/servinit.cfg"))
4847 (copy-recursively "data"
4848 (string-append out "/share/redeclipse/data"))
4849 (mkdir-p (string-append out "/lib/redeclipse"))
4850 (symlink (string-append out "/share/redeclipse/data")
4851 (string-append out "/lib/redeclipse/data")))
4852 #t))
4853 (add-after 'copy-data 'wrap-program
4854 (lambda* (#:key inputs outputs #:allow-other-keys)
4855 (let* ((out (assoc-ref outputs "out"))
4856 (bin (string-append out "/bin")))
4857 (with-directory-excursion bin
4858 (rename-file "redeclipse_linux"
4859 ".redeclipse_linux-real")
4860 (rename-file "redeclipse_server_linux"
4861 ".redeclipse_server_linux-real")
4862 (call-with-output-file "redeclipse_linux"
4863 (lambda (port)
4864 (format port "#!~a/bin/sh
4865 # Run the thing from its home, otherwise it just bails out.
4866 cd \"~a\"
4867 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4868 (assoc-ref inputs "bash") ;implicit input
4869 (string-append out)
4870 (string-append bin))))
4871 (call-with-output-file "redeclipse_server_linux"
4872 (lambda (port)
4873 (format port "#!~a/bin/sh
4874 # Run the thing from its home, otherwise it just bails out.
4875 cd \"~a\"
4876 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4877 (assoc-ref inputs "bash") ;implicit input
4878 (string-append out)
4879 (string-append bin))))
4880 (chmod "redeclipse_linux" #o555)
4881 (chmod "redeclipse_server_linux" #o555)))
4882 #t)))))
4883 (native-inputs
4884 `(("pkg-config" ,pkg-config)))
4885 (inputs
4886 `(("curl" ,curl)
4887 ("freetype" ,freetype)
4888 ("glu" ,glu)
4889 ("sdl-union" ,(sdl-union (list sdl2
4890 sdl2-image
4891 sdl2-mixer)))))
4892 (home-page "https://redeclipse.net/")
4893 (synopsis "Arena shooter derived from the Cube 2 engine")
4894 (description
4895 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4896 Offering an innovative parkour system and distinct but all potent weapons,
4897 Red Eclipse provides fast paced and accessible gameplay.")
4898 ;; The engine is under Zlib; data files are covered by the other
4899 ;; licenses. More details at file:///doc/all-licenses.txt.
4900 (license (list license:expat
4901 license:zlib
4902 license:cc-by-sa4.0
4903 license:cc-by-sa3.0
4904 license:cc-by3.0
4905 license:cc0
4906 license:public-domain
4907 license:silofl1.1)))))
4908
4909 (define-public grue-hunter
4910 (package
4911 (name "grue-hunter")
4912 (version "1.0")
4913 (source (origin
4914 (method url-fetch)
4915 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4916 (sha256
4917 (base32
4918 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4919 (build-system trivial-build-system) ; no Makefile.PL
4920 (arguments `(#:modules ((guix build utils))
4921 #:builder
4922 (begin
4923 (use-modules (guix build utils))
4924 (use-modules (srfi srfi-1))
4925
4926 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4927 (perl (string-append (assoc-ref %build-inputs
4928 "perl")
4929 "/bin"))
4930 (gzip (string-append (assoc-ref %build-inputs
4931 "gzip")
4932 "/bin/gzip"))
4933 (tar (string-append (assoc-ref %build-inputs
4934 "tar")
4935 "/bin/tar"))
4936 (out (assoc-ref %outputs "out"))
4937 (bin (string-append out "/bin"))
4938 (doc (string-append out
4939 "/share/doc/grue-hunter")))
4940 (copy-file tarball "grue-hunter.tar.gz")
4941 (invoke gzip "-d" "grue-hunter.tar.gz")
4942 (invoke tar "xvf" "grue-hunter.tar")
4943
4944 (mkdir-p bin)
4945 (copy-file "grue-hunter/gh.pl"
4946 (string-append bin "/grue-hunter"))
4947 (patch-shebang (string-append bin "/grue-hunter")
4948 (list perl))
4949
4950 (install-file "grue-hunter/AGPLv3.txt" doc)
4951
4952 #t))))
4953 (inputs `(("perl" ,perl)
4954 ("tar" ,tar)
4955 ("gzip" ,gzip)
4956 ("tarball" ,source)))
4957 (home-page "https://jxself.org/grue-hunter.shtml")
4958 (synopsis "Text adventure game")
4959 (description
4960 "Grue Hunter is a text adventure game written in Perl. You must make
4961 your way through an underground cave system in search of the Grue. Can you
4962 capture it and get out alive?")
4963 (license license:agpl3+)))
4964
4965 (define-public lierolibre
4966 (package
4967 (name "lierolibre")
4968 (version "0.5")
4969 (source (origin
4970 (method url-fetch)
4971 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4972 version "/+download/lierolibre-"
4973 version ".tar.xz"))
4974 (sha256
4975 (base32
4976 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4977 (patches
4978 (search-patches "lierolibre-check-unaligned-access.patch"
4979 "lierolibre-try-building-other-arch.patch"
4980 "lierolibre-remove-arch-warning.patch"
4981 "lierolibre-newer-libconfig.patch"
4982 "lierolibre-is-free-software.patch"))
4983 (modules '((guix build utils)))
4984 (snippet
4985 '(begin
4986 ;; Delete pre-compiled files.
4987 (delete-file "data/LIERO.CHR")
4988 (delete-file "data/LIERO.SND")
4989 #t))))
4990 (build-system gnu-build-system)
4991 (native-inputs
4992 `(("imagemagick" ,imagemagick)
4993 ("pkg-config" ,pkg-config)
4994 ("util-linux" ,util-linux)
4995 ("sox" ,sox)))
4996 (inputs
4997 `(("boost" ,boost)
4998 ("libconfig" ,libconfig)
4999 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
5000 ("zlib" ,zlib)))
5001 (home-page "https://gitlab.com/lierolibre/lierolibre")
5002 (synopsis "Old-school earthworm action game")
5003 (description
5004 "lierolibre is an earthworm action game where you fight another player
5005 (or the computer) underground using a wide array of weapons.
5006
5007 Features:
5008 @itemize
5009 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
5010 and Game of Tag, plus AI-players without true intelligence!
5011 @item Dat nostalgia.
5012 @item Extensions via a hidden F1 menu:
5013 @itemize
5014 @item Replays
5015 @item Game controller support
5016 @item Powerlevel palettes
5017 @end itemize
5018 @item Ability to write game variables to plain text files.
5019 @item Ability to load game variables from both EXE and plain text files.
5020 @item Scripts to extract and repack graphics, sounds and levels.
5021 @end itemize
5022
5023 To switch between different window sizes, use F6, F7 and F8, to switch to
5024 fullscreen, use F5 or Alt+Enter.")
5025 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
5026 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
5027
5028 (define-public tennix
5029 (package
5030 (name "tennix")
5031 (version "1.3.1")
5032 (source
5033 (origin
5034 (method git-fetch)
5035 (uri (git-reference
5036 (url "https://repo.or.cz/tennix.git")
5037 (commit (string-append "tennix-" version))))
5038 (file-name (git-file-name name version))
5039 (sha256
5040 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
5041 ;; Remove non-free images.
5042 (modules '((guix build utils)))
5043 (snippet
5044 '(begin
5045 (for-each delete-file
5046 '("data/loc_training_camp.png"
5047 "data/loc_austrian_open.png"
5048 "data/loc_olympic_green_tennis.png"))
5049 #t))))
5050 (build-system gnu-build-system)
5051 (arguments
5052 `(#:tests? #f ;no test
5053 #:phases
5054 (modify-phases %standard-phases
5055 (add-after 'unpack 'fix-include
5056 (lambda _
5057 (substitute* '("src/graphics.h" "src/sound.h")
5058 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
5059 (string-append "#include \"SDL/" header "\"")))
5060 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
5061 (("#include <SDL.h>") "#include <SDL/SDL.h>")
5062 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
5063 #t))
5064 (add-after 'unpack 'locate-install
5065 ;; Build process cannot expand "$(INSTALL)" in Makefile.
5066 (lambda _
5067 (substitute* "makefile"
5068 (("^CONFIGURE_OUTPUT :=.*" all)
5069 (string-append "INSTALL := install -c\n" all)))
5070 #t))
5071 (replace 'configure
5072 ;; The "configure" script is picky about the arguments it
5073 ;; gets. Call it ourselves.
5074 (lambda _
5075 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
5076 (native-inputs
5077 `(("which" ,which)))
5078 (inputs
5079 `(("python" ,python-wrapper)
5080 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
5081 (home-page "http://icculus.org/tennix/")
5082 (synopsis "Play tennis against the computer or a friend")
5083 (description "Tennix is a 2D tennis game. You can play against the
5084 computer or against another player using the keyboard. The game runs
5085 in-window at 640x480 resolution or fullscreen.")
5086 ;; Project is licensed under GPL2+ terms. It includes images
5087 ;; released under Public Domain terms, and SDL_rotozoom, released
5088 ;; under LGPL2.1 terms.
5089 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
5090
5091 (define-public warzone2100
5092 (package
5093 (name "warzone2100")
5094 (version "3.4.1")
5095 (source
5096 (origin
5097 (method url-fetch)
5098 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
5099 version
5100 "/warzone2100_src.tar.xz"))
5101 (sha256
5102 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
5103 (modules '((guix build utils)))
5104 (snippet
5105 '(begin
5106 (with-directory-excursion "3rdparty"
5107 (for-each
5108 delete-file-recursively
5109 '("discord-rpc"
5110 "miniupnp"
5111 "utfcpp")))
5112 #t))))
5113 (build-system cmake-build-system)
5114 (arguments
5115 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
5116 "-DENABLE_DISCORD=off")
5117 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
5118 #:phases
5119 (modify-phases %standard-phases
5120 (add-after 'unpack 'fix-utfcpp-include
5121 (lambda _
5122 (substitute* "lib/framework/wzstring.cpp"
5123 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
5124 #t))
5125 (add-after 'unpack 'link-tests-with-qt
5126 (lambda _
5127 (substitute* "tests/Makefile.am"
5128 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
5129 (string-append prefix "$(QT5_LIBS) ")))
5130 #t))
5131 (add-after 'unpack 'fix-ivis-linktest
5132 (lambda _
5133 (substitute* "tests/ivis_linktest.cpp"
5134 (("iV_DrawTextRotated.*;")
5135 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
5136 "100, 100, 0.0f, font_regular);")))
5137 #t)))))
5138 (native-inputs `(("asciidoc" ,asciidoc)
5139 ("asciidoctor" ,ruby-asciidoctor)
5140 ("gettext" ,gettext-minimal)
5141 ("pkg-config" ,pkg-config)
5142 ("unzip" ,unzip)
5143 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
5144 ("p7zip" ,p7zip)))
5145 (inputs `(("curl" ,curl)
5146 ("fontconfig" ,fontconfig)
5147 ("freetype" ,freetype)
5148 ("glew" ,glew)
5149 ("harfbuzz" ,harfbuzz)
5150 ("libtheora" ,libtheora)
5151 ("libvorbis" ,libvorbis)
5152 ("libxrandr" ,libxrandr)
5153 ("libsodium" ,libsodium)
5154 ("miniupnpc" ,miniupnpc)
5155 ("openal" ,openal)
5156 ("physfs" ,physfs)
5157 ("qtbase" ,qtbase)
5158 ("qtscript" ,qtscript)
5159 ("openssl" ,openssl)
5160 ("sdl2" ,sdl2)
5161 ("utfcpp" ,utfcpp)))
5162 (home-page "https://wz2100.net")
5163 (synopsis "3D Real-time strategy and real-time tactics game")
5164 (description
5165 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
5166 modes. An extensive tech tree with over 400 different technologies, combined
5167 with the unit design system, allows for a wide variety of possible units and
5168 tactics.")
5169 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
5170 (license (list license:bsd-3
5171 license:cc0
5172 license:cc-by-sa3.0
5173 license:expat
5174 license:gpl2+
5175 license:lgpl2.1+))))
5176
5177 (define-public widelands
5178 (package
5179 (name "widelands")
5180 (version "21")
5181 (source
5182 (origin
5183 (method url-fetch)
5184 (uri (string-append "https://launchpad.net/widelands/"
5185 "build" version "/build" version "/+download/"
5186 "widelands-build" version "-source.tar.gz"))
5187 (sha256
5188 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
5189 (modules '((guix build utils)))
5190 (snippet
5191 '(begin
5192 (delete-file-recursively "src/third_party/minizip")
5193 #t))
5194 (patches
5195 ;; Use system Minizip. Patch is provided by Debian, and discussed
5196 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
5197 (search-patches "widelands-system-wide_minizip.patch"))))
5198 (build-system cmake-build-system)
5199 (arguments
5200 `(#:configure-flags
5201 (let* ((out (assoc-ref %outputs "out"))
5202 (share (string-append out "/share")))
5203 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
5204 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
5205 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
5206 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
5207 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
5208 ;; type. When used, no game data is installed!
5209 "-DCMAKE_BUILD_TYPE=Release"))
5210 #:phases
5211 (modify-phases %standard-phases
5212 (add-after 'unpack 'unbundle-fonts
5213 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
5214 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
5215 (lambda* (#:key inputs #:allow-other-keys)
5216 (with-directory-excursion "data/i18n/fonts"
5217 (for-each (lambda (font)
5218 (delete-file-recursively font)
5219 (symlink (string-append (assoc-ref inputs font)
5220 "/share/fonts/truetype")
5221 font))
5222 '("DejaVu" "MicroHei")))
5223 #t)))))
5224 (native-inputs
5225 `(("gettext" ,gettext-minimal)
5226 ("python" ,python-wrapper)))
5227 (inputs
5228 `(("boost" ,boost)
5229 ("glew" ,glew)
5230 ("icu4c" ,icu4c)
5231 ("libpng" ,libpng)
5232 ("minizip" ,minizip)
5233 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5234 ("zlib" ,zlib)
5235 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
5236 ("DejaVu" ,font-dejavu)
5237 ("MicroHei" ,font-wqy-microhei)))
5238 (home-page "https://www.widelands.org/")
5239 (synopsis "Fantasy real-time strategy game")
5240 (description
5241 "In Widelands, you are the regent of a small clan. You start out with
5242 nothing but your headquarters, where all your resources are stored.
5243
5244 In the course of the game, you will build an ever growing settlement. Every
5245 member of your clan will do his or her part to produce more resources---wood,
5246 food, iron, gold and more---to further this growth. The economic network is
5247 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
5248 Frisians).
5249
5250 As you are not alone in the world, you will meet other clans sooner or later.
5251 Some of them may be friendly and you may eventually trade with them. However,
5252 if you want to rule the world, you will have to train soldiers and fight.
5253
5254 Widelands offers single-player mode with different campaigns; the campaigns
5255 all tell stories of tribes and their struggle in the Widelands universe!
5256 However, settling really starts when you unite with friends over the Internet
5257 or LAN to build up new empires together---or to crush each other in the dusts
5258 of war. Widelands also offers an Artificial Intelligence to challenge you.")
5259 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
5260 ;; different licenses.
5261 (license (list license:gpl2+
5262 license:expat ;src/third_party/eris
5263 license:silofl1.1 ;Widelands.ttf
5264 license:cc-by-sa3.0)))) ;some music files
5265
5266 (define-public starfighter
5267 (package
5268 (name "starfighter")
5269 (version "2.4")
5270 (source (origin
5271 (method url-fetch)
5272 (uri (string-append
5273 "https://github.com/pr-starfighter/starfighter/releases"
5274 "/download/v" version "/starfighter-"
5275 version "-src.tar.gz"))
5276 (sha256
5277 (base32
5278 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5279 (build-system gnu-build-system)
5280 (native-inputs
5281 `(("pkg-config" ,pkg-config)))
5282 (inputs
5283 `(("pango" ,pango)
5284 ("sdl2" ,sdl2)
5285 ("sdl2-image" ,sdl2-image)
5286 ("sdl2-mixer" ,sdl2-mixer)
5287 ("sdl2-ttf" ,sdl2-ttf)))
5288 (home-page "https://pr-starfighter.github.io/")
5289 (synopsis "2D scrolling shooter game")
5290 (description
5291 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5292 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5293 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5294 way, you will encounter new foes, make new allies, and assist local rebels
5295 in strikes against the evil corporation.")
5296 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5297 (license (list license:gpl3+
5298 license:cc-by3.0
5299 license:cc-by-sa3.0
5300 license:cc0
5301 license:public-domain))))
5302
5303 (define-public chromium-bsu
5304 (package
5305 (name "chromium-bsu")
5306 (version "0.9.16.1")
5307 (source (origin
5308 (method url-fetch)
5309 (uri (string-append "mirror://sourceforge/chromium-bsu"
5310 "/Chromium B.S.U. source code/"
5311 "chromium-bsu-" version ".tar.gz"))
5312 (sha256
5313 (base32
5314 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5315 (build-system gnu-build-system)
5316 (native-inputs `(("pkg-config" ,pkg-config)))
5317 (inputs `(("gettext" ,gettext-minimal)
5318 ("glu" ,glu)
5319 ("quesoglc" ,quesoglc)
5320 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5321 (home-page "http://chromium-bsu.sourceforge.net/")
5322 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5323 (description
5324 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5325 are responsible for delivering supplies to the troops on the front line. Your
5326 ship has a small fleet of robotic fighters which you control from the relative
5327 safety of the Chromium vessel.")
5328 ;; Clarified Artistic License for everything but sound, which is covered
5329 ;; by the Expat License.
5330 (license (list license:clarified-artistic license:expat))))
5331
5332 (define-public tuxpaint
5333 (package
5334 (name "tuxpaint")
5335 (version "0.9.23") ;keep VER_DATE below in sync
5336 (source
5337 (origin
5338 (method url-fetch)
5339 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5340 version "/tuxpaint-" version ".tar.gz"))
5341 (sha256
5342 (base32
5343 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5344 (modules '((guix build utils)))
5345 (snippet
5346 '(begin
5347 ;; Remove win32 directory which contains binary dll's and the
5348 ;; deprecated visualc directory.
5349 (for-each delete-file-recursively '("win32" "visualc"))
5350 (substitute* "Makefile"
5351 ;; Do not rely on $(GPERF) being an absolute file name
5352 (("\\[ -x \\$\\(GPERF\\) \\]")
5353 "$(GPERF) --version >/dev/null 2>&1"))
5354 #t))
5355 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5356 (build-system gnu-build-system)
5357 (native-inputs
5358 `(("gperf" ,gperf)
5359 ("pkg-config" ,pkg-config)))
5360 (inputs
5361 `(("cairo" ,cairo)
5362 ("fribidi" ,fribidi)
5363 ("gettext" ,gettext-minimal)
5364 ("libpng" ,libpng)
5365 ("librsvg" ,librsvg)
5366 ("libpaper" ,libpaper)
5367 ("netpbm" ,netpbm)
5368 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5369 ;; TODO: Use system fonts rather than those in data/fonts
5370 (arguments
5371 `(#:make-flags `("VER_DATE=2018-09-02"
5372 "GPERF=gperf" "CC=gcc"
5373 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5374 ,(string-append "PREFIX=" %output)
5375 "KDE_PREFIX=$(PREFIX)/share/applications"
5376 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5377 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5378 #:parallel-build? #f ;fails on some systems
5379 #:tests? #f ;No tests
5380 #:phases (modify-phases %standard-phases
5381 (delete 'configure) ;no configure phase
5382 (add-before 'install 'no-sys-cache
5383 (lambda _ ;do not rebuild system conf cache
5384 (substitute* "Makefile"
5385 (("kbuildsycoca4") ""))
5386 #t))
5387 (add-after 'install 'fix-import
5388 (lambda* (#:key inputs outputs #:allow-other-keys)
5389 (let* ((out (assoc-ref outputs "out"))
5390 (net (assoc-ref inputs "netpbm"))
5391 (tpi (string-append out "/bin/tuxpaint-import")))
5392 (substitute* tpi
5393 ;; Point to installation prefix so that the default
5394 ;; configure file is found.
5395 (("/usr/local") out))
5396 ;; tuxpaint-import uses a bunch of programs from
5397 ;; netpbm, so make sure it knows where those are
5398 (wrap-program tpi
5399 `("PATH" ":" prefix
5400 (,(string-append net "/bin"))))))))))
5401 (native-search-paths
5402 (list (search-path-specification
5403 (variable "TUXPAINT_STAMPS_PATH")
5404 (files '("share/tuxpaint/stamps")))))
5405 (home-page "http://www.tuxpaint.org")
5406 (synopsis "Drawing software for children")
5407 (description
5408 "Tux Paint is a free drawing program designed for young children (kids
5409 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5410 and an encouraging cartoon mascot who helps guide children as they use the
5411 program. It provides a blank canvas and a variety of drawing tools to help
5412 your child be creative.")
5413 (license license:gpl2+)))
5414
5415 (define-public tuxpaint-stamps
5416 (package
5417 (name "tuxpaint-stamps")
5418 (version "2018.09.01")
5419 (source
5420 (origin
5421 (method url-fetch)
5422 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5423 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5424 "/tuxpaint-stamps-" version ".tar.gz"))
5425 (sha256
5426 (base32
5427 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5428 (build-system trivial-build-system)
5429 (native-inputs
5430 `(("tar" ,tar)
5431 ("gzip" ,gzip)))
5432 (arguments
5433 `(#:modules ((guix build utils))
5434 #:builder (begin
5435 (use-modules (guix build utils))
5436 (setenv "PATH"
5437 (string-append
5438 (assoc-ref %build-inputs "tar") "/bin" ":"
5439 (assoc-ref %build-inputs "gzip") "/bin"))
5440 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5441 (chdir (string-append ,name "-" ,version))
5442 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5443 (mkdir-p dir)
5444 (copy-recursively "stamps" dir))
5445 #t)))
5446 (home-page (package-home-page tuxpaint))
5447 (synopsis "Stamp images for Tux Paint")
5448 (description
5449 "This package contains a set of \"Rubber Stamp\" images which can be used
5450 with the \"Stamp\" tool within Tux Paint.")
5451 (license license:gpl2+)))
5452
5453 (define-public tuxpaint-config
5454 (package
5455 (name "tuxpaint-config")
5456 (version "0.0.14") ;keep VER_DATE below in sync
5457 (source
5458 (origin
5459 (method url-fetch)
5460 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5461 version "/tuxpaint-config-" version ".tar.gz"))
5462 (sha256
5463 (base32
5464 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5465 (build-system gnu-build-system)
5466 (native-inputs
5467 `(("gettext" ,gettext-minimal)))
5468 (inputs
5469 `(("fltk" ,fltk)
5470 ("libpaper" ,libpaper)
5471 ;; TODO: Should the following be propagated by fltk?
5472 ("libx11" ,libx11)
5473 ("libxft" ,libxft)
5474 ("mesa" ,mesa)))
5475 (arguments
5476 `(#:make-flags `("VER_DATE=2018-09-01"
5477 "CONFDIR=/etc/tuxpaint" ;don't write to store
5478 ,(string-append "PREFIX=" %output)
5479 "GNOME_PREFIX=$(PREFIX)")
5480 #:parallel-build? #f ;race conditions
5481 #:tests? #f ;no tests
5482 #:phases (modify-phases %standard-phases
5483 (delete 'configure) ;no configure phase
5484 (add-before 'install 'gzip-no-name
5485 (lambda* _
5486 (substitute* "Makefile"
5487 ;; tuxpaint-config compresses its own documentation;
5488 ;; make sure it uses flags for reproducibility.
5489 (("gzip") "gzip --no-name"))))
5490 (add-before 'install 'make-install-dirs
5491 (lambda* (#:key outputs #:allow-other-keys)
5492 (let ((out (assoc-ref outputs "out")))
5493 (mkdir-p (string-append out "/bin"))
5494 #t))))))
5495 (home-page (package-home-page tuxpaint))
5496 (synopsis "Configure Tux Paint")
5497 (description
5498 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5499 (license license:gpl2))) ;no "or later" present
5500
5501 (define-public supertux
5502 (package
5503 (name "supertux")
5504 (version "0.6.2")
5505 (source (origin
5506 (method url-fetch)
5507 (uri (string-append "https://github.com/SuperTux/supertux/"
5508 "releases/download/v" version "/SuperTux-v"
5509 version "-Source.tar.gz"))
5510 (file-name (string-append name "-" version ".tar.gz"))
5511 (sha256
5512 (base32
5513 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5514 (patches
5515 (search-patches "supertux-unbundle-squirrel.patch"))))
5516 (arguments
5517 '(#:tests? #f
5518 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5519 "-DUSE_SYSTEM_PHYSFS=ON")
5520 #:phases
5521 (modify-phases %standard-phases
5522 (add-after 'unpack 'patch-squirrel-path
5523 (lambda* (#:key inputs #:allow-other-keys)
5524 (let ((squirrel (assoc-ref inputs "squirrel")))
5525 (substitute* "CMakeLists.txt"
5526 (("set\\(SQUIRREL_PREFIX.*")
5527 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5528 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5529 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5530 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5531 #t)))))
5532 (build-system cmake-build-system)
5533 (inputs `(("sdl2" ,sdl2)
5534 ("sdl2-image" ,sdl2-image)
5535 ("sdl2-mixer" ,sdl2-mixer)
5536 ("openal" ,openal)
5537 ("mesa" ,mesa)
5538 ("glew" ,glew)
5539 ("libvorbis" ,libvorbis)
5540 ("libogg" ,libogg)
5541 ("physfs" ,physfs)
5542 ("curl" ,curl)
5543 ("boost" ,boost)
5544 ("freetype" ,freetype)
5545 ("squirrel" ,squirrel)))
5546 (native-inputs
5547 `(("pkg-config" ,pkg-config)))
5548 (synopsis "2D platformer game")
5549 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5550 a style similar to the original Super Mario games.")
5551 (home-page "https://supertux.org/")
5552 (license license:gpl3+)))
5553
5554 (define-public tintin++
5555 (package
5556 (name "tintin++")
5557 (version "2.02.05")
5558 (source
5559 (origin
5560 (method url-fetch)
5561 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5562 (string-drop-right version 1)
5563 "/tintin-" version ".tar.gz"))
5564 (sha256
5565 (base32 "18fm9ga08mxqmblahmnlzwnl387i8mbkj4n0gffxc91d299019v3"))))
5566 (inputs
5567 `(("gnutls" ,gnutls)
5568 ("pcre" ,pcre)
5569 ("readline" ,readline)
5570 ("zlib" ,zlib)))
5571 (arguments
5572 '(#:tests? #f ; no test suite
5573 #:phases
5574 (modify-phases %standard-phases
5575 ;; The source is in tt/src.
5576 (add-before 'configure 'chdir
5577 (lambda _
5578 (chdir "src")
5579 #t)))))
5580 (build-system gnu-build-system)
5581 (home-page "https://tintin.mudhalla.net/")
5582 (synopsis "MUD client")
5583 (description
5584 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5585 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5586 options used by MUDs, as well as those required to login via telnet on
5587 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5588 (license license:gpl3+)))
5589
5590 (define-public laby
5591 (package
5592 (name "laby")
5593 (version "0.7.0")
5594 (source
5595 (origin (method git-fetch)
5596 (uri (git-reference
5597 (url "https://github.com/sgimenez/laby")
5598 (commit (string-append name "-" version))))
5599 (file-name (git-file-name name version))
5600 (sha256
5601 (base32
5602 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5603 (patches (search-patches "laby-make-install.patch"))))
5604 (build-system gnu-build-system)
5605 (inputs
5606 `(("lablgtk" ,lablgtk)
5607 ("ocaml" ,ocaml)
5608 ("ocaml-findlib" ,ocaml-findlib)
5609 ("ocamlbuild" ,ocamlbuild)))
5610 (arguments
5611 '(#:phases
5612 (modify-phases %standard-phases
5613 (delete 'configure)
5614 (add-before 'build 'allow-unsafe-strings
5615 ;; Fix a build failure with ocaml >=4.06.0.
5616 ;; See <https://github.com/sgimenez/laby/issues/53>.
5617 (lambda _
5618 (setenv "OCAMLPARAM" "safe-string=0,_")
5619 #t))
5620 (add-before 'build 'set-library-path
5621 (lambda* (#:key inputs #:allow-other-keys)
5622 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5623 (setenv "LD_LIBRARY_PATH"
5624 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5625 #:tests? #f ; no 'check' target
5626 #:make-flags
5627 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5628 (home-page "https://sgimenez.github.io/laby/")
5629 (synopsis "Programming game")
5630 (description "Learn programming, playing with ants and spider webs ;-)
5631 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5632 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5633 programmers may also add their own favorite language.")
5634 (license license:gpl3+)))
5635
5636 (define-public bambam
5637 (package
5638 (name "bambam")
5639 (version "1.0.0")
5640 (source
5641 (origin
5642 (method git-fetch)
5643 (uri (git-reference
5644 (url "https://github.com/porridge/bambam")
5645 (commit (string-append "v" version))))
5646 (file-name (git-file-name name version))
5647 (sha256
5648 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5649 (build-system python-build-system)
5650 (arguments
5651 `(#:tests? #f ; no tests
5652 #:phases
5653 (modify-phases %standard-phases
5654 (delete 'build) ; nothing to build
5655 (replace 'install
5656 (lambda* (#:key outputs #:allow-other-keys)
5657 (let* ((out (assoc-ref outputs "out"))
5658 (bin (string-append out "/bin"))
5659 (share (string-append out "/share")))
5660 (mkdir-p bin)
5661 (copy-file "bambam.py" (string-append bin "/bambam"))
5662 (install-file "bambam.6" (string-append share "/man/man6"))
5663 (copy-recursively "data" (string-append share "/bambam/data")))
5664 #t)))))
5665 (inputs
5666 `(("python-pygame" ,python-pygame)))
5667 (home-page "https://github.com/porridge/bambam")
5668 (synopsis "Keyboard mashing and doodling game for babies")
5669 (description "Bambam is a simple baby keyboard (and gamepad) masher
5670 application that locks the keyboard and mouse and instead displays bright
5671 colors, pictures, and sounds.")
5672 (license license:gpl3+)))
5673
5674 (define-public mrrescue
5675 (package
5676 (name "mrrescue")
5677 (version "1.02e")
5678 (source (origin
5679 (method url-fetch)
5680 (uri (string-append
5681 "https://github.com/SimonLarsen/mrrescue/releases/"
5682 "download/" version "/mrrescue" version ".love"))
5683 (file-name (string-append name "-" version ".love"))
5684 (sha256
5685 (base32
5686 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5687 (build-system trivial-build-system)
5688 (arguments
5689 `(#:modules ((guix build utils))
5690 #:builder
5691 (begin
5692 (use-modules (guix build utils))
5693 (let* ((out (assoc-ref %outputs "out"))
5694 (script (string-append out "/bin/" ,name))
5695 (data (string-append out "/share/" ,name))
5696 (source (assoc-ref %build-inputs "source"))
5697 (unzip (string-append (assoc-ref %build-inputs "unzip")
5698 "/bin/unzip"))
5699 (patch (string-append (assoc-ref %build-inputs "patch")
5700 "/bin/patch"))
5701 (bash (string-append (assoc-ref %build-inputs "bash")
5702 "/bin/bash"))
5703 (love (string-append (assoc-ref %build-inputs "love")
5704 "/bin/love")))
5705
5706 (mkdir-p (dirname script))
5707 (with-output-to-file script
5708 (lambda ()
5709 (format #t "#!~a~%" bash)
5710 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5711 (chmod script #o755)
5712
5713 ;; The better way to package this game would be to install *only* the
5714 ;; script above, pointing to the unextracted .love file in the store.
5715 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5716 ;; Instead of extracting the .love file, patching it, and re-zipping
5717 ;; it to the store, simply point the script to the extracted patched
5718 ;; data directory directly.
5719 (mkdir-p data)
5720 (with-directory-excursion data
5721 (invoke unzip source)
5722 (invoke patch "-p1" "-i"
5723 (assoc-ref %build-inputs "love-11.patch")))
5724 #t))))
5725 (native-inputs
5726 `(("unzip" ,unzip)
5727 ("patch" ,patch)
5728 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5729 (inputs
5730 `(("bash" ,bash)
5731 ("love" ,love)))
5732 (home-page "https://tangramgames.dk/games/mrrescue")
5733 (synopsis "Arcade-style fire fighting game")
5734 (description
5735 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5736 civilians from burning buildings. The game features fast-paced fire
5737 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5738 throwing people around in pseudo-randomly generated buildings.")
5739 (license (list license:zlib ; for source code
5740 license:cc-by-sa3.0)))) ; for graphics and music assets
5741
5742 (define-public hyperrogue
5743 (package
5744 (name "hyperrogue")
5745 (version "11.3a")
5746 ;; When updating this package, be sure to update the "hyperrogue-data"
5747 ;; origin in native-inputs.
5748 (source (origin
5749 (method url-fetch)
5750 (uri (string-append
5751 "https://www.roguetemple.com/z/hyper/hyperrogue"
5752 (string-join (string-split version #\.) "")
5753 "-src.tgz"))
5754 (sha256
5755 (base32
5756 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5757 (build-system gnu-build-system)
5758 (arguments
5759 `(#:tests? #f ; no check target
5760 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5761 "HYPERROGUE_USE_PNG=1")
5762 #:phases
5763 (modify-phases %standard-phases
5764 (add-after 'set-paths 'set-sdl-paths
5765 (lambda* (#:key inputs #:allow-other-keys)
5766 (setenv "CPATH"
5767 (string-append (or (getenv "CPATH") "") ":"
5768 (assoc-ref inputs "sdl-union")
5769 "/include/SDL"))))
5770 (replace 'configure
5771 (lambda* (#:key inputs outputs #:allow-other-keys)
5772 (let* ((out (assoc-ref outputs "out"))
5773 (share-dir (string-append out "/share/hyperrogue"))
5774 (dejavu-dir (string-append
5775 (assoc-ref inputs "font-dejavu")
5776 "/share/fonts/truetype"))
5777 (dejavu-font "DejaVuSans-Bold.ttf")
5778 (music-file "hyperrogue-music.txt"))
5779 ;; Fix font and music paths.
5780 (substitute* "basegraph.cpp"
5781 ((dejavu-font)
5782 (string-append dejavu-dir "/" dejavu-font)))
5783 (substitute* music-file
5784 (("\\*/")
5785 (string-append share-dir "/sounds/")))
5786 (substitute* "sound.cpp"
5787 (("musicfile = \"\"")
5788 (string-append "musicfile = \""
5789 share-dir "/" music-file "\"")))
5790 ;; Disable build machine CPU optimizations and warnings treated
5791 ;; as errors.
5792 (substitute* "Makefile"
5793 (("-march=native") "")
5794 (("-Werror") "")))
5795 #t))
5796 (replace 'install
5797 (lambda* (#:key inputs outputs #:allow-other-keys)
5798 (let* ((out (assoc-ref outputs "out"))
5799 (bin (string-append out "/bin"))
5800 (share-dir (string-append out "/share/hyperrogue")))
5801 (mkdir-p bin)
5802 (install-file "hyperrogue" bin)
5803 (install-file "hyperrogue-music.txt" share-dir))
5804 #t))
5805 (add-after 'install 'install-data
5806 (lambda* (#:key inputs outputs #:allow-other-keys)
5807 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5808 (out (assoc-ref outputs "out"))
5809 (sounds (string-append out "/share/hyperrogue/sounds"))
5810 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5811 ;; Extract media license information into sounds directory.
5812 (invoke unzip "-j" data
5813 (string-append
5814 "hyperrogue"
5815 (string-join (string-split ,version #\.) "")
5816 "/sounds/credits.txt") "-d" sounds)
5817 ;; Extract sounds and music into sounds directory.
5818 (invoke "unzip" "-j" data
5819 (string-append
5820 "hyperrogue"
5821 (string-join (string-split ,version #\.) "")
5822 "/*.ogg") "-d" sounds)))))))
5823 (native-inputs
5824 `(("hyperrogue-data"
5825 ,(origin
5826 (method url-fetch)
5827 (uri
5828 (string-append
5829 "https://www.roguetemple.com/z/hyper/hyperrogue"
5830 (string-join (string-split version #\.) "")
5831 "-win.zip"))
5832 (sha256
5833 (base32
5834 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5835 ("unzip" ,unzip)))
5836 (inputs
5837 `(("font-dejavu" ,font-dejavu)
5838 ("glew" ,glew)
5839 ("libpng" ,libpng)
5840 ("sdl-union" ,(sdl-union (list sdl
5841 sdl-gfx
5842 sdl-mixer
5843 sdl-ttf)))))
5844 (home-page "https://www.roguetemple.com/z/hyper/")
5845 (synopsis "Non-euclidean graphical rogue-like game")
5846 (description
5847 "HyperRogue is a game in which the player collects treasures and fights
5848 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5849 plane and not in euclidean space.
5850
5851 In HyperRogue, the player can move through different parts of the world, which
5852 are home to particular creatures and may be subject to their own rules of
5853 \"physics\".
5854
5855 While the game can use ASCII characters to display the the classical rogue
5856 symbols, it still needs graphics to render the non-euclidean world.")
5857 (license (list license:bsd-3 ; glew.c, mtrand.*
5858 license:cc-by-sa3.0 ; music
5859 license:cc-by-sa4.0 ; sounds
5860 license:cc0
5861 license:public-domain ; direntx.*, some sounds
5862 license:zlib ; savepng.*
5863 license:gpl2+)))) ; remaining files
5864
5865 (define-public kobodeluxe
5866 (package
5867 (name "kobodeluxe")
5868 (version "0.5.1")
5869 (source (origin
5870 (method url-fetch)
5871 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5872 version ".tar.bz2"))
5873 (sha256
5874 (base32
5875 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5876 (patches (search-patches
5877 "kobodeluxe-const-charp-conversion.patch"
5878 "kobodeluxe-enemies-pipe-decl.patch"
5879 "kobodeluxe-graphics-window-signed-char.patch"
5880 "kobodeluxe-manpage-minus-not-hyphen.patch"
5881 "kobodeluxe-midicon-segmentation-fault.patch"
5882 "kobodeluxe-paths.patch"))))
5883 (build-system gnu-build-system)
5884 (arguments
5885 '(#:configure-flags
5886 (list (string-append "CPPFLAGS=-I"
5887 (assoc-ref %build-inputs "sdl-union")
5888 "/include/SDL"))))
5889 (inputs
5890 `(("glu" ,glu)
5891 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5892 (synopsis "Shooter with space station destruction")
5893 (description
5894 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5895 for Un*x systems with X11.")
5896 (home-page "http://olofson.net/kobodl/")
5897 (license license:gpl2+)))
5898
5899 (define-public freeciv
5900 (package
5901 (name "freeciv")
5902 (version "2.6.4")
5903 (source
5904 (origin
5905 (method url-fetch)
5906 (uri (list (string-append
5907 "http://files.freeciv.org/stable/freeciv-"
5908 version ".tar.bz2")
5909 (string-append
5910 "mirror://sourceforge/freeciv/Freeciv%20"
5911 (version-major+minor version) "/" version
5912 "/freeciv-" version ".tar.bz2")))
5913 (sha256
5914 (base32 "1kn122f57wn5a8ryxaz73dlbd5m93mqx3bqmmz2lkgdccrvrbns0"))))
5915 (build-system gnu-build-system)
5916 (inputs
5917 `(("curl" ,curl)
5918 ("cyrus-sasl" ,cyrus-sasl)
5919 ("gtk+" ,gtk+)
5920 ("sdl-mixer" ,sdl-mixer)
5921 ("zlib" ,zlib)))
5922 (native-inputs
5923 `(("pkg-config" ,pkg-config)))
5924 (home-page "http://www.freeciv.org/")
5925 (synopsis "Turn-based empire building strategy game")
5926 (description "Freeciv is a turn-based empire building strategy game
5927 inspired by the history of human civilization. The game commences in
5928 prehistory and your mission is to lead your tribe from the Stone Age
5929 into the Space Age.")
5930 (license license:gpl2+)))
5931
5932 (define-public no-more-secrets
5933 (package
5934 (name "no-more-secrets")
5935 (version "0.3.3")
5936 (source
5937 (origin
5938 (method git-fetch)
5939 (uri (git-reference
5940 (url "https://github.com/bartobri/no-more-secrets")
5941 (commit (string-append "v" version))))
5942 (file-name (git-file-name name version))
5943 (sha256
5944 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5945 (build-system gnu-build-system)
5946 (arguments
5947 `(#:tests? #f
5948 #:make-flags (list "CC=gcc" "all-ncurses"
5949 (string-append "prefix="
5950 (assoc-ref %outputs "out")))
5951 #:phases
5952 (modify-phases %standard-phases
5953 (delete 'configure))))
5954 (inputs
5955 `(("ncurses" ,ncurses)))
5956 (home-page "https://github.com/bartobri/no-more-secrets")
5957 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5958 (description
5959 "@code{No More Secrets} provides a command line tool called \"nms\"
5960 that recreates the famous data decryption effect seen on screen in the 1992
5961 movie \"Sneakers\".
5962
5963 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5964 it will apply the hollywood effect, initially showing encrypted data, then
5965 starting a decryption sequence to reveal the original plaintext characters.")
5966 (license license:expat)))
5967
5968 (define-public megaglest-data
5969 (package
5970 (name "megaglest-data")
5971 (version "3.13.0")
5972 (source
5973 (origin
5974 (method url-fetch)
5975 (uri (string-append
5976 "https://github.com/MegaGlest/megaglest-data"
5977 "/releases/download/" version "/megaglest-data-"
5978 version ".tar.xz"))
5979 (sha256
5980 (base32
5981 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5982 (build-system cmake-build-system)
5983 (arguments
5984 `(#:tests? #f))
5985 (home-page "https://megaglest.org/")
5986 (synopsis "Data files for MegaGlest")
5987 (description "This package contains the data files required for MegaGlest.")
5988 (license license:cc-by-sa3.0)))
5989
5990 (define-public megaglest
5991 (package
5992 (name "megaglest")
5993 (version "3.13.0")
5994 (source
5995 (origin
5996 (method url-fetch)
5997 (uri (string-append
5998 "https://github.com/MegaGlest/megaglest-source"
5999 "/releases/download/" version "/megaglest-source-"
6000 version ".tar.xz"))
6001 (sha256
6002 (base32
6003 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
6004 (build-system cmake-build-system)
6005 (inputs
6006 `(("curl" ,curl)
6007 ("fontconfig" ,fontconfig)
6008 ("ftgl" ,ftgl)
6009 ("glew" ,glew)
6010 ("libjpeg-turbo" ,libjpeg-turbo)
6011 ("megaglest-data" ,megaglest-data)
6012 ("mesa" ,mesa)
6013 ("miniupnpc" ,miniupnpc)
6014 ("openal" ,openal)
6015 ("libircclient" ,libircclient)
6016 ("libpng" ,libpng)
6017 ("libvorbis" ,libvorbis)
6018 ("lua" ,lua)
6019 ("sdl2" ,sdl2)
6020 ("wxwidgets" ,wxwidgets)))
6021 (native-inputs
6022 `(("cppunit" ,cppunit)
6023 ("pkg-config" ,pkg-config)))
6024 (arguments
6025 `(#:configure-flags
6026 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
6027 (assoc-ref %build-inputs "megaglest-data")
6028 "/share/megaglest")
6029 "-DBUILD_MEGAGLEST_TESTS=ON")
6030 #:phases
6031 (modify-phases %standard-phases
6032 (add-after 'unpack 'fix-ini-search-path
6033 (lambda* (#:key outputs #:allow-other-keys)
6034 (substitute* "source/glest_game/global/config.cpp"
6035 (("/usr/share/megaglest/")
6036 (string-append (assoc-ref outputs "out")
6037 "/share/megaglest/"))))))
6038 #:test-target "megaglest_tests"))
6039 (home-page "https://megaglest.org/")
6040 (synopsis "3D real-time strategy (RTS) game")
6041 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
6042 game, where you control the armies of one of seven different factions: Tech,
6043 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
6044 (license license:gpl2+)))
6045
6046 (define-public freegish
6047 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
6048 (revision "1"))
6049 (package
6050 (name "freegish")
6051 (version (string-append "0-" revision "." (string-take commit 9)))
6052 (source (origin
6053 (method git-fetch)
6054 (uri (git-reference
6055 (url "https://github.com/freegish/freegish")
6056 (commit commit)))
6057 (file-name (git-file-name name version))
6058 (sha256
6059 (base32
6060 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
6061 (modules '((guix build utils)))
6062 ;; The audio files in the "music" directory are licensed under
6063 ;; CC-BY-NC, so we delete them.
6064 (snippet
6065 '(begin
6066 (delete-file-recursively "music")
6067 #t))))
6068 (build-system cmake-build-system)
6069 (arguments
6070 `(#:tests? #f ; no tests included
6071 #:configure-flags
6072 (list "-DCMAKE_INSTALL_FHS=ON")
6073 #:phases
6074 (modify-phases %standard-phases
6075 (add-after 'unpack 'set-DATAPATH
6076 (lambda* (#:key outputs #:allow-other-keys)
6077 (substitute* "CMakeLists.txt"
6078 (("^option\\(INSTALL_FHS" line)
6079 (string-append "add_definitions(-DDATAPATH=\""
6080 (assoc-ref outputs "out") "/share/freegish\")\n"
6081 line)))
6082 #t)))))
6083 (inputs
6084 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
6085 ("openal" ,openal)
6086 ("libvorbis" ,libvorbis)
6087 ("libogg" ,libogg)
6088 ("mesa" ,mesa)
6089 ("libpng" ,libpng)
6090 ("zlib" ,zlib)))
6091 (home-page "https://github.com/freegish/freegish")
6092 (synopsis "Side-scrolling physics platformer with a ball of tar")
6093 (description "In FreeGish you control Gish, a ball of tar who lives
6094 happily with his girlfriend Brea, until one day a mysterious dark creature
6095 emerges from a sewer hole and pulls her below ground.")
6096 ;; The textures are available under the Expat license. All other assets
6097 ;; (including levels) are covered under CC-BY-SA or public domain. The
6098 ;; source code is under GPLv2+.
6099 (license (list license:gpl2+
6100 license:expat
6101 license:public-domain
6102 license:cc-by-sa3.0)))))
6103
6104 (define-public cdogs-sdl
6105 (package
6106 (name "cdogs-sdl")
6107 (version "0.8.0")
6108 (source
6109 (origin
6110 (method git-fetch)
6111 (uri (git-reference
6112 (url "https://github.com/cxong/cdogs-sdl")
6113 (commit version)))
6114 (file-name (git-file-name name version))
6115 (sha256
6116 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
6117 (build-system cmake-build-system)
6118 (arguments
6119 `(#:configure-flags
6120 (list (string-append "-DCDOGS_DATA_DIR="
6121 (assoc-ref %outputs "out")
6122 "/share/cdogs-sdl/"))))
6123 (native-inputs
6124 `(("pkg-config" ,pkg-config)))
6125 (inputs
6126 `(("gtk+" ,gtk+)
6127 ("mesa" ,mesa)
6128 ("sdl2" ,sdl2)
6129 ("sdl2-image" ,sdl2-image)
6130 ("sdl2-mixer" ,sdl2-mixer)))
6131 (home-page "https://cxong.github.io/cdogs-sdl/")
6132 (synopsis "Classic overhead run-and-gun game")
6133 (description "C-Dogs SDL is a classic overhead run-and-gun game,
6134 supporting up to 4 players in co-op and deathmatch modes. Customize your
6135 player, choose from many weapons, and blast, slide and slash your way through
6136 over 100 user-created campaigns.")
6137 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
6138 ;; CC0/CC-BY/CC-BY-SA for assets.
6139 (license (list license:gpl2+
6140 license:bsd-2
6141 license:bsd-3
6142 license:cc0
6143 license:cc-by3.0
6144 license:cc-by-sa3.0))))
6145
6146 (define-public kiki
6147 (package
6148 (name "kiki")
6149 (version "1.0.2")
6150 (source (origin
6151 (method url-fetch)
6152 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
6153 version "/kiki-" version "-src.tgz"))
6154 (sha256
6155 (base32
6156 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
6157 (modules '((guix build utils)))
6158 (snippet
6159 '(begin
6160 (for-each delete-file (find-files "." "\\.dll$"))
6161 #t))
6162 (patches
6163 (search-patches "kiki-level-selection-crash.patch"
6164 "kiki-makefile.patch"
6165 "kiki-missing-includes.patch"
6166 "kiki-portability-64bit.patch"))))
6167 (build-system gnu-build-system)
6168 (arguments
6169 `(#:tests? #f ; there are no tests
6170 #:make-flags '("CXX=g++")
6171 #:phases
6172 (modify-phases %standard-phases
6173 (replace 'configure
6174 (lambda* (#:key inputs outputs #:allow-other-keys)
6175 (setenv "CPLUS_INCLUDE_PATH"
6176 (string-append (assoc-ref inputs "sdl-union")
6177 "/include/SDL:"
6178 (assoc-ref inputs "python")
6179 "/include/python2.7:"
6180 (or (getenv "CPLUS_INCLUDE_PATH") "")))
6181 (substitute* "src/main/main.cpp"
6182 (("#include <SDL.h>" line)
6183 (string-append line "
6184 #define K_INCLUDE_GLUT
6185 #include \"KIncludeTools.h\""))
6186 (("// initialize SDL" line)
6187 (string-append "glutInit(&argc,argv);\n" line)))
6188 (substitute* "src/main/KikiController.cpp"
6189 (("getenv\\(\"KIKI_HOME\"\\)")
6190 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
6191 (substitute* "linux/Makefile"
6192 (("CXXOPTS =" line)
6193 (string-append line " -fpermissive"))
6194 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
6195 (("PYTHONHOME =.*")
6196 (string-append "PYTHONHOME = "
6197 (assoc-ref inputs "python")
6198 "/lib/python2.7/"))
6199 (("\\$\\(GLLIBS\\)" line)
6200 (string-append line " -lm -lpython2.7")))
6201 (substitute* "src/main/KikiPythonWidget.h"
6202 (("#define __KikiPythonWidget" line)
6203 (string-append line "\n#include \"KikiPython.h\"")))
6204 #t))
6205 (add-before 'build 'build-kodilib
6206 (lambda* (#:key make-flags #:allow-other-keys)
6207 (with-directory-excursion "kodilib/linux"
6208 (apply invoke "make" make-flags))))
6209 (add-after 'build-kodilib 'chdir
6210 (lambda _ (chdir "linux") #t))
6211 (replace 'install
6212 (lambda* (#:key outputs #:allow-other-keys)
6213 (let* ((out (assoc-ref outputs "out"))
6214 (bin (string-append out "/bin"))
6215 (share (string-append out "/share/kiki")))
6216 (mkdir-p bin)
6217 (mkdir-p share)
6218 (install-file "kiki" bin)
6219 (copy-recursively "../py" (string-append share "/py"))
6220 (copy-recursively "../sound" (string-append share "/sound"))
6221 #t))))))
6222 (inputs
6223 `(("glu" ,glu)
6224 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
6225 ("freeglut" ,freeglut-2.8)
6226 ("sdl-union" ,(sdl-union (list sdl
6227 sdl-mixer
6228 sdl-image)))
6229 ("python" ,python-2)))
6230 (native-inputs
6231 `(("swig" ,swig)))
6232 (home-page "http://kiki.sourceforge.net/")
6233 (synopsis "3D puzzle game")
6234 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
6235 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
6236 small robot living in the nano world, repair its maker.")
6237 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
6238 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
6239 ;; for a statement from the author.
6240 (license license:public-domain)))
6241
6242 (define-public teeworlds
6243 (package
6244 (name "teeworlds")
6245 (version "0.7.5")
6246 (source (origin
6247 (method git-fetch)
6248 (uri (git-reference
6249 (url "https://github.com/teeworlds/teeworlds")
6250 (commit version)
6251 ;; There are two submodules in datasrc/{languages,maps}
6252 (recursive? #t)))
6253 (file-name (git-file-name name version))
6254 (sha256
6255 (base32
6256 "1l19ksmimg6b8zzjy0skyhh7z11ql7n5gvilkv7ay5x2b9ndbqwz"))
6257 (modules '((guix build utils)
6258 (ice-9 ftw)
6259 (ice-9 regex)
6260 (srfi srfi-1)
6261 (srfi srfi-26)))
6262 (snippet ; remove bundled libraries except md5
6263 '(let ((base-dir "src/engine/external/"))
6264 (for-each (compose (cut delete-file-recursively <>)
6265 (cut string-append base-dir <>))
6266 (remove (cut string-match "(^.)|(^md5$)" <>)
6267 (scandir base-dir)))
6268 #t))))
6269 (build-system cmake-build-system)
6270 (arguments
6271 `(#:tests? #f ; no tests included
6272 #:phases
6273 (modify-phases %standard-phases
6274 (add-after 'unpack 'patch-paths
6275 (lambda* (#:key outputs #:allow-other-keys)
6276 ;; Embed path to assets.
6277 (substitute* "src/engine/shared/storage.cpp"
6278 (("#define DATA_DIR.*")
6279 (string-append "#define DATA_DIR \""
6280 (assoc-ref outputs "out")
6281 "/share/teeworlds/data"
6282 "\"")))
6283 #t)))))
6284 (inputs
6285 `(("freetype" ,freetype)
6286 ("glu" ,glu)
6287 ("json-parser" ,json-parser)
6288 ("mesa" ,mesa)
6289 ("pnglite" ,pnglite)
6290 ("sdl2" ,sdl2)
6291 ("sdl2-image" ,sdl2-image)
6292 ("sdl2-mixer" ,sdl2-mixer)
6293 ("wavpack" ,wavpack)
6294 ("openssl" ,openssl)
6295 ("zlib" ,zlib)))
6296 (native-inputs
6297 `(("python" ,python-wrapper)
6298 ("pkg-config" ,pkg-config)))
6299 (home-page "https://www.teeworlds.com")
6300 (synopsis "2D retro multiplayer shooter game")
6301 (description "Teeworlds is an online multiplayer game. Battle with up to
6302 16 players in a variety of game modes, including Team Deathmatch and Capture
6303 The Flag. You can even design your own maps!")
6304 (license (list license:bsd-3 license:cc-by-sa3.0)))) ; game+maps&languages
6305
6306 (define-public enigma
6307 (package
6308 (name "enigma")
6309 (version "1.21")
6310 (source (origin
6311 (method url-fetch)
6312 (uri (string-append "mirror://sourceforge/enigma-game/"
6313 "Release%20" version "/enigma-"
6314 version ".tar.gz"))
6315 (sha256
6316 (base32
6317 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6318 (build-system gnu-build-system)
6319 (arguments
6320 `(#:configure-flags
6321 (list "--with-system-enet")
6322 #:phases
6323 (modify-phases %standard-phases
6324 (add-after 'unpack 'fix-build-with-new-gcc
6325 (lambda _
6326 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6327 ;; to NULL. Can be removed for versions > 1.21.
6328 (substitute* "src/lev/Proxy.cc"
6329 (("ifs != NULL")
6330 "ifs"))
6331 #t))
6332 (add-after 'unpack 'find-sdl
6333 (lambda _
6334 (substitute* "configure"
6335 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6336 (substitute* '("tools/ttf2bmf.cc"
6337 "lib-src/enigma-core/ecl_font.cc"
6338 "lib-src/enigma-core/ecl_video.cc"
6339 "lib-src/enigma-core/ecl_buffer.hh"
6340 "src/SoundEngine.cc"
6341 "src/SoundEngine.hh"
6342 "src/MusicManager.cc"
6343 "src/MusicManager.hh"
6344 "src/d_models.cc"
6345 "src/main.cc"
6346 "src/network.cc")
6347 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6348 (string-append "#include \"SDL/SDL_" header ".h\"")))
6349 (substitute* "src/main.cc"
6350 (("#include <SDL_(image|ttf|mixer).h>" line header)
6351 (string-append "#include \"SDL/SDL_" header ".h\"")))
6352 #t)))))
6353 (inputs
6354 `(("xerces-c" ,xerces-c)
6355 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6356 ("curl" ,curl)
6357 ("enet" ,enet)))
6358 (native-inputs
6359 `(("pkg-config" ,pkg-config)
6360 ("imagemagick" ,imagemagick)))
6361 (home-page "https://www.nongnu.org/enigma")
6362 (synopsis "Puzzle game with a dexterity component")
6363 (description "Enigma is a puzzle game with 550 unique levels. The object
6364 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6365 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6366 and most of all, countless hairy puzzles usually block your direct way to the
6367 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6368 get bored) interact in many unexpected ways, and since many of them follow the
6369 laws of physics (Enigma’s special laws of physics, that is), controlling them
6370 with the mouse isn’t always trivial.")
6371 (license license:gpl2+)))
6372
6373 (define-public chroma
6374 (package
6375 (name "chroma")
6376 (version "1.18")
6377 (source (origin
6378 (method url-fetch)
6379 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6380 version ".tar.bz2"))
6381 (sha256
6382 (base32
6383 "12bjisf5nlqinw8n4r223vld52p0p2mw3fca92vi175c46bycbzn"))))
6384 (build-system gnu-build-system)
6385 (arguments
6386 `(#:tests? #f ; no tests included
6387 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6388 (inputs
6389 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6390 ("freetype" ,freetype)
6391 ("ncurses" ,ncurses)
6392 ("fontconfig" ,fontconfig)
6393 ("libxft" ,libxft)))
6394 (native-inputs
6395 `(("pkg-config" ,pkg-config)))
6396 (home-page "http://level7.org.uk/chroma/")
6397 (synopsis "Abstract puzzle game")
6398 (description "Chroma is an abstract puzzle game. A variety of colourful
6399 shapes are arranged in a series of increasingly complex patterns, forming
6400 fiendish traps that must be disarmed and mysterious puzzles that must be
6401 manipulated in order to give up their subtle secrets. Initially so
6402 straightforward that anyone can pick it up and begin to play, yet gradually
6403 becoming difficult enough to tax even the brightest of minds.")
6404 (license license:gpl2+)))
6405
6406 (define-public fillets-ng
6407 (package
6408 (name "fillets-ng")
6409 (version "1.0.1")
6410 (source (origin
6411 (method url-fetch)
6412 (uri (string-append "mirror://sourceforge/fillets/"
6413 "Fish%20Fillets%20-%20Next%20Generation/"
6414 version "/fillets-ng-" version ".tar.gz"))
6415 (sha256
6416 (base32
6417 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6418 (build-system gnu-build-system)
6419 (arguments
6420 `(#:configure-flags
6421 (list (string-append "--with-lua="
6422 (assoc-ref %build-inputs "lua")))
6423 #:make-flags
6424 (list (string-append "CFLAGS=-I"
6425 (assoc-ref %build-inputs "sdl-union")
6426 "/include/SDL")
6427 (string-append "CXXFLAGS=-I"
6428 (assoc-ref %build-inputs "sdl-union")
6429 "/include/SDL"))
6430 #:phases
6431 (modify-phases %standard-phases
6432 ;; Lua 5.1 does not provide it.
6433 (add-after 'unpack 'do-not-link-with-lualib
6434 (lambda _
6435 (substitute* "configure"
6436 (("-llualib") ""))
6437 #t))
6438 (add-after 'install 'install-data
6439 (lambda* (#:key inputs outputs #:allow-other-keys)
6440 (let ((data (string-append (assoc-ref outputs "out")
6441 "/share/games/fillets-ng")))
6442 (mkdir-p data)
6443 (invoke "tar" "-xvf"
6444 (assoc-ref inputs "fillets-ng-data")
6445 "--strip-components=1"
6446 "-C" data)))))))
6447 (inputs
6448 `(("sdl-union" ,(sdl-union (list sdl
6449 sdl-mixer
6450 sdl-image
6451 sdl-ttf)))
6452 ("fribidi" ,fribidi)
6453 ("libx11" ,libx11)
6454 ("lua" ,lua-5.1)))
6455 (native-inputs
6456 `(("pkg-config" ,pkg-config)
6457 ("fillets-ng-data"
6458 ,(origin
6459 (method url-fetch)
6460 (uri (string-append "mirror://sourceforge/fillets/"
6461 "Fish%20Fillets%20-%20Next%20Generation/"
6462 version "/fillets-ng-data-" version ".tar.gz"))
6463 (sha256
6464 (base32
6465 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6466 (home-page "http://fillets.sourceforge.net/")
6467 (synopsis "Puzzle game")
6468 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6469 every of the seventy levels is always the same: find a safe way out. The fish
6470 utter witty remarks about their surroundings, the various inhabitants of their
6471 underwater realm quarrel among themselves or comment on the efforts of your
6472 fish. The whole game is accompanied by quiet, comforting music.")
6473 (license license:gpl2+)))
6474
6475 (define-public crawl
6476 (package
6477 (name "crawl")
6478 (version "0.26.1")
6479 (source
6480 (origin
6481 (method url-fetch)
6482 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6483 version "/stone_soup-" version "-nodeps.tar.xz"))
6484 (sha256
6485 (base32 "1d8p2np2q5951wqphq2f4dyvv976m2lh82b0qp7w9pp1h8zzi1ff"))
6486 (patches (search-patches "crawl-upgrade-saves.patch"))))
6487 (build-system gnu-build-system)
6488 (inputs
6489 `(("lua51" ,lua-5.1)
6490 ("ncurses" ,ncurses)
6491 ("sqlite" ,sqlite)
6492 ("zlib" ,zlib)))
6493 (native-inputs
6494 `(("bison" ,bison)
6495 ("flex" ,flex)
6496 ("perl" ,perl)
6497 ("python" ,python-wrapper)
6498 ("python-pyyaml" ,python-pyyaml)
6499 ("pkg-config" ,pkg-config)))
6500 (arguments
6501 `(#:make-flags
6502 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6503 (out (assoc-ref %outputs "out")))
6504 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6505 (string-append "prefix=" out)
6506 "SAVEDIR=~/.crawl"
6507 ;; Don't compile with SSE on systems which don't have it.
6508 ,@(match (%current-system)
6509 ((or "i686-linux" "x86_64-linux")
6510 '())
6511 (_ '("NOSSE=TRUE")))
6512 ;; don't build any bundled dependencies
6513 "BUILD_LUA="
6514 "BUILD_SQLITE="
6515 "BUILD_ZLIB="
6516 "-Csource"))
6517 #:phases
6518 (modify-phases %standard-phases
6519 (add-after 'unpack 'find-SDL-image
6520 (lambda _
6521 (substitute* "source/windowmanager-sdl.cc"
6522 (("SDL_image.h") "SDL2/SDL_image.h"))
6523 #t))
6524 (delete 'configure)
6525 (replace 'check
6526 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6527 (setenv "HOME" (getcwd))
6528 ;; Fake a terminal for the test cases.
6529 (setenv "TERM" "xterm-256color")
6530 ;; Run the tests that don't require a debug build.
6531 (apply invoke "make" "nondebugtest"
6532 (format #f "-j~d" (parallel-job-count))
6533 ;; Force command line build for test cases.
6534 (append make-flags '("GAME=crawl" "TILES="))))))))
6535 (synopsis "Roguelike dungeon crawler game")
6536 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6537 for short) is a roguelike adventure through dungeons filled with dangerous
6538 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6539 (home-page "https://crawl.develz.org")
6540 (license (list license:gpl2+
6541 license:bsd-2
6542 license:bsd-3
6543 license:cc0
6544 license:expat
6545 license:zlib
6546 license:asl2.0))))
6547
6548 ;; The linter here claims that patch file names should start with the package
6549 ;; name. But, in this case, the patches are inherited from crawl with the
6550 ;; "crawl-" prefix instead of "crawl-tiles-".
6551 (define-public crawl-tiles
6552 (package
6553 (inherit crawl)
6554 (name "crawl-tiles")
6555 (arguments
6556 (substitute-keyword-arguments
6557 (package-arguments crawl)
6558 ((#:make-flags flags)
6559 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6560 (cons*
6561 (string-append "PROPORTIONAL_FONT=" dejavu
6562 "/share/fonts/truetype/DejaVuSans.ttf")
6563 (string-append "MONOSPACED_FONT=" dejavu
6564 "/share/fonts/truetype/DejaVuSansMono.ttf")
6565 "TILES=y"
6566 ;; Rename the executable to allow parallel installation with crawl.
6567 "GAME=crawl-tiles"
6568 ,flags)))))
6569 (inputs
6570 `(,@(package-inputs crawl)
6571 ("font-dejavu" ,font-dejavu)
6572 ("freetype6" ,freetype)
6573 ("glu" ,glu)
6574 ("libpng" ,libpng)
6575 ("sdl2" ,sdl2)
6576 ("sdl2-image" ,sdl2-image)
6577 ("sdl2-mixer" ,sdl2-mixer)))
6578 (native-inputs
6579 `(,@(package-native-inputs crawl)
6580 ("pngcrush" ,pngcrush)
6581 ("which" ,which)))
6582 (synopsis "Graphical roguelike dungeon crawler game")))
6583
6584 (define-public lugaru
6585 (package
6586 (name "lugaru")
6587 (version "1.2")
6588 (source (origin
6589 (method url-fetch)
6590 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6591 "lugaru-" version ".tar.xz"))
6592 (sha256
6593 (base32
6594 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6595 (build-system cmake-build-system)
6596 (arguments
6597 `(#:configure-flags
6598 (list "-DSYSTEM_INSTALL=ON")
6599 ;; no test target
6600 #:tests? #f))
6601 (native-inputs
6602 `(("pkg-config" ,pkg-config)))
6603 (inputs
6604 `(("sdl2" ,sdl2)
6605 ("glu" ,glu)
6606 ("libjpeg" ,libjpeg-turbo)
6607 ("libpng" ,libpng)
6608 ("openal" ,openal)
6609 ("vorbis" ,libvorbis)
6610 ("zlib" ,zlib)))
6611 (home-page "https://osslugaru.gitlab.io")
6612 (synopsis "Cross-platform third-person action game")
6613 (description "Lugaru is a third-person action game. The main character,
6614 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6615 In his quest to find those responsible for slaughtering his village, he uncovers
6616 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6617 and the starving wolves from a nearby den. Turner takes it upon himself to
6618 fight against their plot and save his fellow rabbits from slavery.")
6619 (license (list license:gpl2+ ; code
6620 ;; assets:
6621 license:cc-by-sa3.0
6622 license:cc-by-sa4.0))))
6623
6624 (define-public 0ad-data
6625 (package
6626 (name "0ad-data")
6627 (version "0.0.23b-alpha")
6628 (source
6629 (origin
6630 (method url-fetch)
6631 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6632 version "-unix-data.tar.xz"))
6633 (file-name (string-append name "-" version ".tar.xz"))
6634 (sha256
6635 (base32
6636 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6637 (modules '((guix build utils)))
6638 (snippet
6639 #~(begin
6640 (for-each (lambda (name)
6641 (let* ((dir (string-append "binaries/data/mods/" name))
6642 (file (string-append dir "/" name ".zip"))
6643 (unzip #$(file-append unzip "/bin/unzip")))
6644 (invoke unzip "-d" dir file)
6645 (delete-file file)))
6646 '("mod" "public"))
6647 #t))))
6648 (build-system trivial-build-system)
6649 (native-inputs `(("tar" ,tar)
6650 ("xz" ,xz)))
6651 (arguments
6652 `(#:modules ((guix build utils))
6653 #:builder
6654 (begin
6655 (use-modules (guix build utils))
6656 (let ((out (assoc-ref %outputs "out"))
6657 (source (assoc-ref %build-inputs "source"))
6658 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6659 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6660 (setenv "PATH" xz-path)
6661 (mkdir out)
6662 (invoke tar "xvf" source "-C" out "--strip=3")))))
6663 (synopsis "Data files for 0ad")
6664 (description "0ad-data provides the data files required by the game 0ad.")
6665 (home-page "https://play0ad.com")
6666 (license (list (license:fsdg-compatible
6667 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6668 "Similar to the license of the Bitstream Vera fonts.")
6669 (license:fsdg-compatible
6670 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6671 license:cc-by-sa3.0
6672 license:expat
6673 license:gfl1.0
6674 license:gpl2+
6675 license:gpl3+))))
6676
6677 (define-public 0ad
6678 (package
6679 (name "0ad")
6680 (version "0.0.23b-alpha")
6681 (source
6682 (origin
6683 (method url-fetch)
6684 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6685 version "-unix-build.tar.xz"))
6686 (file-name (string-append name "-" version ".tar.xz"))
6687 (sha256
6688 (base32
6689 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6690 ;; A snippet here would cause a build failure because of timestamps
6691 ;; reset. See https://bugs.gnu.org/26734.
6692 (inputs
6693 `(("0ad-data" ,0ad-data)
6694 ("curl" ,curl)
6695 ("enet" ,enet)
6696 ("gloox" ,gloox)
6697 ("icu4c" ,icu4c)
6698 ("libpng" ,libpng)
6699 ("libsodium" ,libsodium)
6700 ("libvorbis" ,libvorbis)
6701 ("libxcursor" ,libxcursor)
6702 ("libxml2" ,libxml2)
6703 ("miniupnpc" ,miniupnpc)
6704 ("mozjs-38" ,mozjs-38)
6705 ("openal" ,openal)
6706 ("sdl2" ,sdl2)
6707 ("wxwidgets" ,wxwidgets)
6708 ("zlib" ,zlib)))
6709 (native-inputs
6710 `(("boost" ,boost)
6711 ("cmake" ,cmake-minimal)
6712 ("mesa" ,mesa)
6713 ("pkg-config" ,pkg-config)
6714 ("python-2" ,python-2)))
6715 (build-system gnu-build-system)
6716 (arguments
6717 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6718 #:phases
6719 (modify-phases %standard-phases
6720 (add-after 'unpack 'delete-bundles
6721 (lambda _
6722 (delete-file-recursively "libraries/source/spidermonkey")
6723 #t))
6724 (add-after 'unpack 'fix-x11-includes
6725 (lambda _
6726 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6727 (("<Xlib.h>") "<X11/Xlib.h>"))
6728 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6729 (("<Xatom.h>") "<X11/Xatom.h>"))
6730 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6731 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6732 #t))
6733 (replace 'configure
6734 (lambda* (#:key inputs outputs #:allow-other-keys)
6735 (let* ((jobs (number->string (parallel-job-count)))
6736 (out (assoc-ref outputs "out"))
6737 (lib (string-append out "/lib"))
6738 (data (string-append out "/share/0ad")))
6739 (setenv "JOBS" (string-append "-j" jobs))
6740 (setenv "CC" "gcc")
6741 (with-directory-excursion "build/workspaces"
6742 (invoke "./update-workspaces.sh"
6743 (string-append "--libdir=" lib)
6744 (string-append "--datadir=" data)
6745 ;; TODO: "--with-system-nvtt"
6746 "--with-system-mozjs38")))))
6747 (delete 'check)
6748 (replace 'install
6749 (lambda* (#:key inputs outputs #:allow-other-keys)
6750 (chdir "binaries")
6751 (let* ((out (assoc-ref outputs "out"))
6752 (bin (string-append out "/bin"))
6753 (lib (string-append out "/lib"))
6754 (data (string-append out "/share/0ad"))
6755 (applications (string-append out "/share/applications"))
6756 (pixmaps (string-append out "/share/pixmaps"))
6757 (0ad-data (assoc-ref inputs "0ad-data")))
6758 ;; data
6759 (copy-recursively "data" data)
6760 (for-each (lambda (file)
6761 (symlink (string-append 0ad-data "/" file)
6762 (string-append data "/" file)))
6763 '("config" "mods/mod" "mods/public" "tools"))
6764 ;; libraries
6765 (for-each (lambda (file)
6766 (install-file file lib))
6767 (find-files "system" "\\.so$"))
6768 ;; binaries
6769 (install-file "system/pyrogenesis" bin)
6770 (with-directory-excursion bin
6771 (symlink "pyrogenesis" "0ad"))
6772 ;; resources
6773 (with-directory-excursion "../build/resources"
6774 (install-file "0ad.desktop" applications)
6775 (install-file "0ad.png" pixmaps))
6776 #t)))
6777 (add-after 'install 'check
6778 (lambda _
6779 (with-directory-excursion "system"
6780 (invoke "./test")))))))
6781 (home-page "https://play0ad.com")
6782 (synopsis "3D real-time strategy game of ancient warfare")
6783 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6784 warfare. It's a historically-based war/economy game that allows players to
6785 relive or rewrite the history of twelve ancient civilizations, each depicted
6786 at their peak of economic growth and military prowess.
6787
6788 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6789 (license (list license:bsd-2
6790 license:bsd-3
6791 license:expat
6792 license:gpl2+
6793 license:ibmpl1.0
6794 license:isc
6795 license:lgpl2.1
6796 license:lgpl3
6797 license:mpl2.0
6798 license:zlib))))
6799
6800 (define-public open-adventure
6801 (package
6802 (name "open-adventure")
6803 (version "1.9")
6804 (source
6805 (origin
6806 (method git-fetch)
6807 (uri (git-reference
6808 (url "https://gitlab.com/esr/open-adventure")
6809 (commit version)))
6810 (file-name (git-file-name name version))
6811 (sha256
6812 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6813 (build-system gnu-build-system)
6814 (arguments
6815 `(#:make-flags (list "CC=gcc")
6816 #:phases
6817 (modify-phases %standard-phases
6818 (delete 'configure) ;no configure script
6819 (add-before 'build 'use-echo
6820 (lambda _
6821 (substitute* "tests/Makefile"
6822 (("/bin/echo") (which "echo")))
6823 #t))
6824 (add-after 'build 'build-manpage
6825 (lambda _
6826 ;; This target is missing a dependency
6827 (substitute* "Makefile"
6828 ((".adoc.6:" line)
6829 (string-append line " advent.adoc")))
6830 (invoke "make" ".adoc.6")))
6831 ;; There is no install target.
6832 (replace 'install
6833 (lambda* (#:key outputs #:allow-other-keys)
6834 (let* ((out (assoc-ref outputs "out"))
6835 (bin (string-append out "/bin"))
6836 (man (string-append out "/share/man/man6")))
6837 (install-file "advent" bin)
6838 (install-file "advent.6" man))
6839 #t)))))
6840 (native-inputs
6841 `(("asciidoc" ,asciidoc)
6842 ("libedit" ,libedit)
6843 ("pkg-config" ,pkg-config)
6844 ("python" ,python-wrapper)
6845 ("python-pyyaml" ,python-pyyaml)))
6846 (home-page "https://gitlab.com/esr/open-adventure")
6847 (synopsis "Colossal Cave Adventure")
6848 (description
6849 "The original Colossal Cave Adventure from 1976 was the origin of all
6850 text adventures, dungeon-crawl (computer) games, and computer-hosted
6851 roleplaying games. This is a forward port of the last version released by
6852 Crowther & Woods, its original authors, in 1995. It has been known as
6853 ``adventure 2.5'' and ``430-point adventure''.")
6854 (license license:bsd-2)))
6855
6856 (define-public open-adventure-2.5
6857 (package
6858 (inherit open-adventure)
6859 (version "2.5")
6860 (properties `((superseded . ,open-adventure)))))
6861
6862 (define-public tome4
6863 (package
6864 (name "tome4")
6865 (version "1.7.2")
6866 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6867 (source
6868 (origin
6869 (method url-fetch)
6870 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6871 version ".tar.bz2"))
6872 (sha256
6873 (base32 "1xa0pdn9pggwf7hnqb87ya2qxqhjahkdjwf8cr2y01gixgrkj9lv"))
6874 (modules '((guix build utils)))
6875 (snippet
6876 '(begin
6877 (substitute* '("src/music.h" "src/tSDL.h")
6878 (("#elif defined(__FreeBSD__)" line)
6879 (string-append
6880 line " || defined(__GNUC__)")))
6881 (substitute* '("src/tgl.h")
6882 (("#include <GL/glext.h>") ""))
6883 #t))))
6884 (build-system gnu-build-system)
6885 (native-inputs
6886 `(("unzip" ,unzip)))
6887 (inputs
6888 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6889 ("glu" ,glu)
6890 ("premake4" ,premake4)
6891 ("openal" ,openal)
6892 ("vorbis" ,libvorbis)
6893 ("luajit" ,luajit)))
6894 (arguments
6895 `(#:make-flags
6896 (list (string-append "CC=" ,(cc-for-target))
6897 "config=release")
6898 ;; XXX: Building in parallel occasionally causes this build failure:
6899 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6900 ;; No such file or directory
6901 #:parallel-build? #f
6902 #:phases (modify-phases %standard-phases
6903 (delete 'bootstrap)
6904 (replace 'configure
6905 (lambda _
6906 (invoke "premake4" "gmake")
6907 #t))
6908 (add-after 'set-paths 'set-sdl-paths
6909 (lambda* (#:key inputs #:allow-other-keys)
6910 (setenv "CPATH"
6911 (string-append (assoc-ref inputs "sdl-union")
6912 "/include/SDL2:"
6913 (or (getenv "CPATH") "")))
6914 #t))
6915 (delete 'check)
6916 ;; premake doesn't provide install target
6917 (replace 'install
6918 (lambda* (#:key inputs outputs #:allow-other-keys)
6919 (let* ((out (assoc-ref outputs "out"))
6920 (usr (string-append out "/usr"))
6921 (bin (string-append out "/bin"))
6922 (licenses (string-append out "/share/licenses"))
6923 (documents (string-append out "/share/doc"))
6924 (pixmaps (string-append out "/share/pixmaps"))
6925 (icon "te4-icon.png")
6926 (data (string-append out "/share/" ,name))
6927 (applications (string-append
6928 out "/share/applications"))
6929 (unzip (string-append
6930 (assoc-ref inputs "unzip") "/bin/unzip"))
6931 (wrapper (string-append bin "/" ,name)))
6932 ;; icon
6933 (mkdir-p pixmaps)
6934 (invoke unzip "-j"
6935 (string-append
6936 "game/engines/te4-" ,version ".teae")
6937 (string-append
6938 "data/gfx/" icon) "-d" pixmaps)
6939 ;; game executable
6940 (install-file "t-engine" data)
6941 (mkdir-p bin)
6942 (with-output-to-file wrapper
6943 (lambda ()
6944 (display
6945 (string-append
6946 "#!/bin/sh\n"
6947 ;; No bootstrap code found,
6948 ;; defaulting to working directory
6949 ;; for engine code!
6950 "cd " data "\n"
6951 "exec -a tome4 ./t-engine \"$@\"\n"))))
6952 (chmod wrapper #o555)
6953 ;; licenses
6954 (for-each (lambda (file)
6955 (install-file file licenses))
6956 '("COPYING" "COPYING-MEDIA"))
6957 ;; documents
6958 (for-each (lambda (file)
6959 (install-file file documents))
6960 '("CONTRIBUTING" "CREDITS"))
6961 ;; data
6962 (copy-recursively "bootstrap" (string-append
6963 data "/bootstrap"))
6964 (copy-recursively "game" (string-append data "/game"))
6965 ;; launcher
6966 (mkdir-p applications)
6967 (make-desktop-entry-file
6968 (string-append applications "/" ,name ".desktop")
6969 #:name "ToME4"
6970 #:comment ,synopsis
6971 #:exec ,name
6972 #:icon icon
6973 #:categories '("Game" "RolePlaying")))
6974 #t)))))
6975 (home-page "https://te4.org")
6976 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6977 combat and advanced character building. Play as one of many unique races and
6978 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6979 challenging battles, and developing characters with your own tailored mix of
6980 abilities and powers. With a modern graphical and customisable interface,
6981 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6982 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6983 (license license:gpl3+)))
6984
6985 (define-public quakespasm
6986 (package
6987 (name "quakespasm")
6988 (version "0.93.2")
6989 (source
6990 (origin
6991 (method url-fetch)
6992 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6993 version ".tgz"))
6994 (sha256
6995 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6996 (arguments
6997 `(#:tests? #f
6998 #:make-flags '("CC=gcc"
6999 "MP3LIB=mpg123"
7000 "USE_CODEC_FLAC=1"
7001 "USE_CODEC_MIKMOD=1"
7002 "USE_SDL2=1"
7003 "-CQuake")
7004 #:phases (modify-phases %standard-phases
7005 (delete 'configure)
7006 (add-after 'unpack 'fix-makefile-paths
7007 (lambda* (#:key outputs #:allow-other-keys)
7008 (let ((out (assoc-ref outputs "out")))
7009 (mkdir-p (string-append out "/bin"))
7010 (substitute* "Quake/Makefile"
7011 (("/usr/local/games")
7012 (string-append out "/bin")))
7013 #t))))))
7014 (build-system gnu-build-system)
7015 (inputs `(("libmikmod" ,libmikmod)
7016 ("libvorbis" ,libvorbis)
7017 ("flac" ,flac)
7018 ("mesa" ,mesa)
7019 ("mpg123" ,mpg123)
7020 ("sdl2" ,sdl2)))
7021 (synopsis "First person shooter engine for Quake 1")
7022 (description "Quakespasm is a modern engine for id software's Quake 1.
7023 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
7024 some graphical niceities, and numerous bug-fixes and other improvements.")
7025 (home-page "http://quakespasm.sourceforge.net/")
7026 (license license:gpl2+)))
7027
7028 (define-public vkquake
7029 (package
7030 (inherit quakespasm)
7031 (name "vkquake")
7032 (version "1.01.0")
7033 (source
7034 (origin
7035 (method git-fetch)
7036 (uri (git-reference
7037 (url "https://github.com/Novum/vkQuake")
7038 (commit version)))
7039 (file-name (git-file-name name version))
7040 (sha256
7041 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
7042 (arguments
7043 `(#:make-flags
7044 (let ((vulkanlib (string-append (assoc-ref %build-inputs
7045 "vulkan-loader") "/lib")))
7046 (list "CC=gcc"
7047 "MP3LIB=mpg123"
7048 "USE_CODEC_FLAC=1"
7049 "USE_CODEC_MIKMOD=1"
7050 "USE_SDL2=1"
7051 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
7052 "-CQuake"))
7053 #:phases (modify-phases %standard-phases
7054 (add-after 'unpack 'patch-for-new-vulkan
7055 (lambda _
7056 ;; Mimic upstream commit a869a22d9b51c68e for
7057 ;; compatibility with newer vulkan-headers.
7058 (substitute* "Quake/gl_rmisc.c"
7059 (("VK_DYNAMIC_STATE_RANGE_SIZE")
7060 "3"))
7061 #t))
7062 (delete 'configure)
7063 (add-after 'unpack 'fix-makefile-paths
7064 (lambda* (#:key outputs #:allow-other-keys)
7065 (let ((vulkan (assoc-ref %build-inputs
7066 "vulkan-loader"))
7067 (out (assoc-ref outputs "out")))
7068 (mkdir-p (string-append out "/bin"))
7069 (substitute* "Quake/Makefile" ((" /usr")
7070 (string-append " " out)))
7071 (substitute* "Quake/Makefile" (("/games")
7072 (string-append "/bin")))
7073 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
7074 #t))))
7075 ,@(strip-keyword-arguments '(#:make-flags #:phases)
7076 (package-arguments quakespasm))))
7077 (inputs `(("vulkan-headers" ,vulkan-headers)
7078 ("vulkan-loader" ,vulkan-loader)
7079 ,@(package-inputs quakespasm)))
7080 (description "vkquake is a modern engine for id software's Quake 1.
7081 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
7082 some graphical niceities, and numerous bug-fixes and other improvements.")
7083 (home-page "https://github.com/Novum/vkQuake")))
7084
7085 (define-public yamagi-quake2
7086 (package
7087 (name "yamagi-quake2")
7088 (version "7.45")
7089 (source
7090 (origin
7091 (method url-fetch)
7092 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
7093 version ".tar.xz"))
7094 (sha256
7095 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
7096 (build-system gnu-build-system)
7097 (arguments
7098 `(#:tests? #f
7099 #:make-flags
7100 (list "CC=gcc"
7101 ;; link openAL instead of using dlopen at runtime
7102 "DLOPEN_OPENAL=\"no\""
7103 ;; an optional directory where it will look for quake2 data files
7104 ;; in addition to the current working directory
7105 "WITH_SYSTEMWIDE=yes"
7106 "WITH_SYSTEMDIR=\"/opt/quake2\"")
7107 #:phases
7108 (modify-phases %standard-phases
7109 (delete 'configure)
7110 (replace 'install
7111 (lambda* (#:key outputs #:allow-other-keys)
7112 (let ((out (assoc-ref outputs "out")))
7113 (mkdir-p (string-append out "/lib"))
7114 (mkdir-p (string-append out "/bin"))
7115 ;; The yamagi-quake2 binary must be in the same directory
7116 ;; as it's engine libraries, but symlinking it to /bin is okay
7117 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
7118 (copy-recursively "release"
7119 (string-append out "/lib/yamagi-quake2"))
7120 (symlink (string-append out "/lib/yamagi-quake2/quake2")
7121 (string-append out "/bin/yamagi-quake2"))
7122 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
7123 (string-append out "/bin/yamagi-q2ded"))))))))
7124 (native-inputs
7125 `(("pkg-config" ,pkg-config)))
7126 (inputs
7127 `(("curl" ,curl-minimal)
7128 ("libvorbis" ,libvorbis)
7129 ("mesa" ,mesa)
7130 ("openal" ,openal)
7131 ("sdl2" ,sdl2)
7132 ("zlib" ,zlib)))
7133 (synopsis "First person shooter engine based on quake2")
7134 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
7135 The main focus is an unchanged single player experience like back in 1997,
7136 thus the gameplay and the graphics are unaltered. However the user may use one
7137 of the unofficial retexturing packs. In comparison with the official client,
7138 over 1000 bugs were fixed and an extensive code audit done,
7139 making Yamagi Quake II one of the most solid Quake II implementations available.")
7140 (home-page "https://www.yamagi.org/quake2/")
7141 (license (list license:gpl2+ ; game and server
7142 (license:non-copyleft ; info-zip
7143 "file://LICENSE"
7144 "See Info-Zip section.")
7145 license:public-domain)))) ; stb
7146
7147 (define-public nudoku
7148 (package
7149 (name "nudoku")
7150 (version "2.1.0")
7151 (source
7152 (origin
7153 (method git-fetch)
7154 (uri (git-reference
7155 (url "https://github.com/jubalh/nudoku")
7156 (commit version)))
7157 (file-name (git-file-name name version))
7158 (sha256
7159 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
7160 (build-system gnu-build-system)
7161 (native-inputs
7162 `(("autoconf" ,autoconf)
7163 ("automake" ,automake)
7164 ("gettext" ,gettext-minimal)
7165 ("pkg-config" ,pkg-config)))
7166 (inputs
7167 `(("ncurses" ,ncurses)))
7168 (home-page "https://jubalh.github.io/nudoku/")
7169 (synopsis "Sudoku for your terminal")
7170 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
7171 (license license:gpl3+)))
7172
7173 (define-public the-butterfly-effect
7174 (package
7175 (name "the-butterfly-effect")
7176 (version "0.9.3.1")
7177 (source
7178 (origin
7179 (method git-fetch)
7180 (uri (git-reference
7181 (url "https://github.com/the-butterfly-effect/tbe")
7182 (commit (string-append "v" version))))
7183 (file-name (git-file-name name version))
7184 (sha256
7185 (base32
7186 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
7187 (build-system gnu-build-system)
7188 (arguments
7189 `(#:phases
7190 (modify-phases %standard-phases
7191 (delete 'configure)
7192 ;; There is no "install" phase. By default, tbe is installed
7193 ;; in the build directory. Provide our own installation.
7194 (replace 'install
7195 (lambda* (#:key outputs #:allow-other-keys)
7196 (let* ((out (assoc-ref outputs "out"))
7197 (bin (string-append out "/bin"))
7198 (share (string-append out "/share")))
7199 (install-file "usr/games/tbe" bin)
7200 (mkdir-p share)
7201 (copy-recursively "usr/share" share)
7202 #t))))
7203 ;; Test suite requires a running Xorg server. Even when
7204 ;; provided, it fails with "D-Bus library appears to be
7205 ;; incorrectly set up; failed to read machine uuid: Failed to
7206 ;; open "/etc/machine-id": No such file or directory" along
7207 ;; with multiple "QPainter:: ... Painter not active" warnings.
7208 #:tests? #f))
7209 (inputs
7210 `(("qtbase" ,qtbase)
7211 ("qtsvg" ,qtsvg)))
7212 (native-inputs
7213 `(("cmake" ,cmake-minimal)
7214 ("gettext-minimal" ,gettext-minimal)
7215 ("qttools" ,qttools)))
7216 (synopsis "Realistic physics puzzle game")
7217 (description "The Butterfly Effect (tbe) is a game that uses
7218 realistic physics simulations to combine lots of simple mechanical
7219 elements to achieve a simple goal in the most complex way possible.")
7220 (home-page "http://the-butterfly-effect.org/")
7221 ;; Main license is GPL2-only. However, artwork is distributed
7222 ;; under various licenses, listed here.
7223 (license (list license:gpl2 license:public-domain license:expat
7224 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7225
7226 (define-public pioneer
7227 (package
7228 (name "pioneer")
7229 (version "20210203")
7230 (source (origin
7231 (method git-fetch)
7232 (uri (git-reference
7233 (url "https://github.com/pioneerspacesim/pioneer")
7234 (commit version)))
7235 (file-name (git-file-name name version))
7236 (sha256
7237 (base32
7238 "1zyi1xyghj99hz8fa6dywpscj6flp04fspnlgxbivf3rgmnxflg7"))))
7239 (build-system cmake-build-system)
7240 (native-inputs
7241 `(("pkg-config" ,pkg-config)))
7242 (inputs
7243 `(("assimp" ,assimp)
7244 ("curl" ,curl)
7245 ("freetype" ,freetype)
7246 ("glew" ,glew)
7247 ("glu" ,glu)
7248 ("libpng" ,libpng)
7249 ("libsigc++" ,libsigc++)
7250 ("libvorbis" ,libvorbis)
7251 ("lua" ,lua-5.2) ;not compatible with 5.3
7252 ("mesa" ,mesa)
7253 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7254 (arguments
7255 `(#:tests? #f ;tests are broken
7256 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7257 (string-append "-DPIONEER_DATA_DIR="
7258 %output "/share/games/pioneer"))))
7259 (home-page "https://pioneerspacesim.net")
7260 (synopsis "Game of lonely space adventure")
7261 (description
7262 "Pioneer is a space adventure game set in our galaxy at the turn of the
7263 31st century. The game is open-ended, and you are free to eke out whatever
7264 kind of space-faring existence you can think of. Look for fame or fortune by
7265 exploring the millions of star systems. Turn to a life of crime as a pirate,
7266 smuggler or bounty hunter. Forge and break alliances with the various
7267 factions fighting for power, freedom or self-determination. The universe is
7268 whatever you make of it.")
7269 (license license:gpl3)))
7270
7271 (define-public badass
7272 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7273 (revision "0"))
7274 (package
7275 (name "badass")
7276 (version (git-version "0.0" revision commit))
7277 (source (origin
7278 (method git-fetch)
7279 (uri (git-reference
7280 (url "https://github.com/umayr/badass")
7281 (commit commit)))
7282 (file-name (git-file-name name version))
7283 (sha256
7284 (base32
7285 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7286 (build-system go-build-system)
7287 (arguments
7288 '(#:import-path "github.com/umayr/badass"))
7289 (synopsis "Hacking contribution graphs in git")
7290 (description
7291 "Badass generates false commits for a range of dates, essentially
7292 hacking the gamification of contribution graphs on platforms such as
7293 Github or Gitlab.")
7294 (home-page "https://github.com/umayr/badass")
7295 (license license:expat))))
7296
7297 (define-public colobot
7298 (package
7299 (name "colobot")
7300 (version "0.1.12-alpha")
7301 (source
7302 (origin
7303 (method git-fetch)
7304 (uri (git-reference
7305 (url "https://github.com/colobot/colobot")
7306 (commit (string-append "colobot-gold-" version))
7307 (recursive? #t))) ;for "data/" subdir
7308 (file-name (git-file-name name version))
7309 (sha256
7310 (base32
7311 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
7312 (build-system cmake-build-system)
7313 (arguments
7314 `(#:tests? #f ;no test
7315 #:phases
7316 (modify-phases %standard-phases
7317 (add-after 'unpack 'make-git-checkout-writable
7318 (lambda _
7319 (for-each make-file-writable (find-files "."))
7320 #t))
7321 (add-after 'unpack 'fix-directories
7322 (lambda _
7323 (substitute* "CMakeLists.txt"
7324 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7325 (string-append prefix "/bin"))
7326 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7327 (string-append prefix "/colobot")))
7328 #t))
7329 (add-after 'fix-directories 'install-music
7330 ;; Retrieve and install music files.
7331 (lambda* (#:key inputs #:allow-other-keys)
7332 ;; Installation process tries to download music files using
7333 ;; "wget" if not already present. Since we are going another
7334 ;; route, skip "wget" command check.
7335 (substitute* "data/music/CMakeLists.txt"
7336 (("find_program\\(WGET wget\\)") ""))
7337 ;; Populate "music/" directory.
7338 (let ((data (assoc-ref inputs "colobot-music")))
7339 (invoke "tar" "-xvf" data "-Cdata/music"))
7340 #t)))))
7341 (native-inputs
7342 `(("colobot-music"
7343 ,(origin
7344 (method url-fetch)
7345 (uri (string-append "https://colobot.info/files/music/"
7346 "colobot-music_ogg_" version ".tar.gz"))
7347 (sha256
7348 (base32
7349 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7350 ("gettext" ,gettext-minimal)
7351 ("librsvg" ,librsvg)
7352 ("po4a" ,po4a)
7353 ("python" ,python-wrapper)))
7354 (inputs
7355 `(("boost" ,boost)
7356 ("glew" ,glew)
7357 ("libogg" ,libogg)
7358 ("libpng" ,libpng)
7359 ("libsndfile" ,libsndfile)
7360 ("libvorbis" ,libvorbis)
7361 ("openal" ,openal)
7362 ("physfs" ,physfs)
7363 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7364 (synopsis "Educational programming strategy game")
7365 (description "Colobot: Gold Edition is a real-time strategy game, where
7366 you can program your units (bots) in a language called CBOT, which is similar
7367 to C++ and Java. Your mission is to find a new planet to live and survive.
7368 You can save humanity and get programming skills!")
7369 (home-page "https://colobot.info")
7370 (license license:gpl3+)))
7371
7372 (define-public gzdoom
7373 (package
7374 (name "gzdoom")
7375 (version "4.3.2")
7376 (source
7377 (origin
7378 (method git-fetch)
7379 (uri (git-reference
7380 (url "https://github.com/coelckers/gzdoom")
7381 (commit (string-append "g" version))))
7382 (file-name (git-file-name name version))
7383 (sha256
7384 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7385 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7386 "gzdoom-find-system-libgme.patch"))
7387 (modules '((guix build utils)))
7388 (snippet
7389 '(begin
7390 ;; Remove some bundled libraries. XXX There are more, but removing
7391 ;; them would require, at least, patching the build system.
7392 (with-directory-excursion "libraries"
7393 (delete-file-recursively "bzip2")
7394 (delete-file-recursively "game-music-emu")
7395 (delete-file-recursively "jpeg")
7396 (delete-file-recursively "zlib"))
7397 #t))))
7398 (arguments
7399 '(#:tests? #f
7400 #:configure-flags
7401 (let ((out (assoc-ref %outputs "out")))
7402 (list
7403 (string-append
7404 "-DCMAKE_CXX_FLAGS:="
7405 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7406 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7407
7408 ;; The build requires some extra convincing not to use the bundled
7409 ;; libgme previously deleted in the soure snippet.
7410 "-DFORCE_INTERNAL_GME=OFF"
7411
7412 ;; Link libraries at build time instead of loading them at run time.
7413 "-DDYN_OPENAL=OFF"
7414 "-DDYN_FLUIDSYNTH=OFF"
7415 "-DDYN_GTK=OFF"
7416 "-DDYN_MPG123=OFF"
7417 "-DDYN_SNDFILE=OFF"))
7418 #:phases
7419 (modify-phases %standard-phases
7420 (add-before 'configure 'fix-referenced-paths
7421 (lambda* (#:key inputs outputs #:allow-other-keys)
7422 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7423 (timidity++ (assoc-ref inputs "timidity++"))
7424 (out (assoc-ref outputs "out")))
7425
7426 (substitute*
7427 "src/CMakeLists.txt"
7428 (("COMMAND /bin/sh")
7429 (string-append "COMMAND " (which "sh"))))
7430
7431 (substitute*
7432 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7433 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7434 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7435
7436 (substitute*
7437 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7438 (("exename = \"timidity\"")
7439 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7440 #t))))))
7441 (build-system cmake-build-system)
7442 (inputs `(("bzip2" ,bzip2)
7443 ("fluid-3" ,fluid-3)
7444 ("fluidsynth" ,fluidsynth)
7445 ("gtk+3" ,gtk+)
7446 ("libgme" ,libgme)
7447 ("libjpeg" ,libjpeg-turbo)
7448 ("libsndfile" ,libsndfile)
7449 ("mesa" ,mesa)
7450 ("mpg123" ,mpg123)
7451 ("openal" ,openal)
7452 ("sdl2" ,sdl2)
7453 ("timidity++" ,timidity++)
7454 ("zlib" ,zlib)))
7455 (native-inputs `(("pkg-config" ,pkg-config)
7456 ("unzip" ,unzip)))
7457 (synopsis "Modern Doom 2 source port")
7458 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7459 renderer. It improves modding support with ZDoom's advanced mapping features
7460 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7461 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7462 (home-page "https://zdoom.org/index")
7463 ;; The source uses x86 assembly
7464 (supported-systems '("x86_64-linux" "i686-linux"))
7465 (license (list license:gpl3+ ; gzdoom game
7466 license:lgpl3+ ; gzdoom renderer
7467 license:expat ; gdtoa
7468 (license:non-copyleft ; modified dumb
7469 "file://dumb/licence.txt"
7470 "Dumb license, explicitly GPL compatible.")))))
7471
7472 (define-public odamex
7473 (package
7474 (name "odamex")
7475 (version "0.8.3")
7476 (source
7477 (origin
7478 (method url-fetch)
7479 (uri (string-append
7480 "mirror://sourceforge/odamex/Odamex/" version "/"
7481 "odamex-src-" version ".tar.gz"))
7482 (sha256
7483 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7484 (build-system cmake-build-system)
7485 (arguments `(#:tests? #f)) ; no tests
7486 (inputs
7487 `(("sdl" ,sdl)
7488 ("sdl-mixer" ,sdl-mixer)
7489 ("zlib" ,zlib)
7490 ("libpng" ,libpng)
7491 ("alsa-lib" ,alsa-lib)))
7492 (home-page "https://odamex.net/")
7493 (synopsis "Multiplayer Doom port")
7494 (description "Odamex is a modification of the Doom engine that
7495 allows players to easily join servers dedicated to playing Doom
7496 online.")
7497 (license license:gpl2+)))
7498
7499 (define-public chocolate-doom
7500 (package
7501 (name "chocolate-doom")
7502 (version "3.0.1")
7503 (source (origin
7504 (method url-fetch)
7505 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7506 version
7507 "/chocolate-doom-"
7508 version
7509 ".tar.gz"))
7510 (sha256
7511 (base32
7512 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7513 (build-system gnu-build-system)
7514 (inputs `(("sdl2-net" ,sdl2-net)
7515 ("sdl2-mixer" , sdl2-mixer)
7516 ("sdl2" ,sdl2)))
7517 (native-inputs
7518 `(("pkg-config" ,pkg-config)))
7519 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7520 Doom")
7521 (description
7522 "Chocolate Doom takes a different approach to other source ports. Its
7523 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7524 a conservative, historically accurate Doom source port, which is compatible
7525 with the thousands of mods and levels that were made before the Doom source
7526 code was released. Rather than flashy new graphics, Chocolate Doom's main
7527 features are its accurate reproduction of the game as it was played in the
7528 1990s. The project is developed around a carefully-considered philosophy that
7529 intentionally restricts which features may be added (and rejects any that
7530 affect gameplay).")
7531 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7532 (license license:gpl2)))
7533
7534 (define-public crispy-doom
7535 (package
7536 (inherit chocolate-doom)
7537 (name "crispy-doom")
7538 (version "5.8.0")
7539 (source (origin
7540 (method git-fetch)
7541 (uri (git-reference
7542 (url "https://github.com/fabiangreffrath/crispy-doom")
7543 (commit (string-append "crispy-doom-" version))))
7544 (file-name (git-file-name name version))
7545 (sha256
7546 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7547 (native-inputs
7548 (append
7549 (package-native-inputs chocolate-doom)
7550 `(("automake" ,automake)
7551 ("autoreconf" ,autoconf))))
7552 (arguments
7553 `(#:phases
7554 (modify-phases %standard-phases
7555 (replace 'bootstrap
7556 ;; The bundled autogen.sh script unconditionally runs ./configure.
7557 (lambda _ (invoke "autoreconf" "-vif"))))))
7558 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7559 Chocolate Doom")
7560 (description
7561 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7562 display resolution, removes the static limits of the Doom engine and offers
7563 further optional visual, tactical and physical enhancements while remaining
7564 entirely config file, savegame, netplay and demo compatible with the
7565 original.")
7566 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7567
7568 (define shlomif-cmake-modules
7569 (origin
7570 (method url-fetch)
7571 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7572 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7573 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7574 (sha256
7575 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7576
7577 (define-public rinutils
7578 (package
7579 (name "rinutils")
7580 (version "0.2.0")
7581 (source (origin
7582 (method git-fetch)
7583 (uri (git-reference
7584 (url "https://github.com/shlomif/rinutils")
7585 (commit version)))
7586 (file-name (git-file-name name version))
7587 (sha256
7588 (base32
7589 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7590 (native-inputs
7591 `(("perl" ,perl)
7592 ;; The following is only needed for tests.
7593 ("perl-file-find-object" ,perl-file-find-object)
7594 ("perl-test-differences" ,perl-test-differences)
7595 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7596 ("perl-io-all" ,perl-io-all)
7597 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7598 ("cmake-rules" ,shlomif-cmake-modules)
7599 ("pkg-config" ,pkg-config)))
7600 (inputs
7601 `(("cmocka" ,cmocka)
7602 ("perl-env-path" ,perl-env-path)
7603 ("perl-inline" ,perl-inline)
7604 ("perl-inline-c" ,perl-inline-c)
7605 ("perl-string-shellquote" ,perl-string-shellquote)
7606 ("perl-test-trailingspace" ,perl-test-trailingspace)
7607 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7608 ("perl-text-glob" ,perl-text-glob)
7609 ("perl-number-compare" ,perl-number-compare)
7610 ("perl-moo" ,perl-moo)))
7611 (arguments
7612 `(#:phases
7613 (modify-phases %standard-phases
7614 (add-after 'unpack 'fix-build-env
7615 (lambda* (#:key inputs #:allow-other-keys)
7616 (use-modules (guix build utils))
7617 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7618 (copy-file cmake-rules
7619 (string-append "cmake/"
7620 (strip-store-file-name cmake-rules)))
7621 #t)))
7622 (replace 'check
7623 (lambda _
7624 (with-directory-excursion "../source"
7625 (setenv "FCS_TEST_BUILD" "1")
7626 (setenv "RINUTILS_TEST_BUILD" "1")
7627 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7628 ;; which requires tidy-all.
7629 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7630 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7631 (build-system cmake-build-system)
7632 (home-page "https://www.shlomifish.org/open-source/projects/")
7633 (synopsis "C11 / gnu11 utilities C library")
7634 (description "This package provides C11 / gnu11 utilities C library")
7635 (license license:expat)))
7636
7637 (define-public fortune-mod
7638 (package
7639 (name "fortune-mod")
7640 (version "2.28.0")
7641 (source
7642 (origin
7643 (method git-fetch)
7644 (uri (git-reference
7645 (url "https://github.com/shlomif/fortune-mod")
7646 (commit (string-append "fortune-mod-" version))))
7647 (file-name (git-file-name name version))
7648 (sha256
7649 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7650 (build-system cmake-build-system)
7651 (arguments
7652 `(#:test-target "check"
7653 #:phases
7654 (modify-phases %standard-phases
7655 (add-after 'unpack 'fix-build-env
7656 (lambda* (#:key inputs #:allow-other-keys)
7657 (use-modules (guix build utils))
7658 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7659 (copy-file cmake-rules
7660 (string-append "fortune-mod/cmake/"
7661 (strip-store-file-name cmake-rules)))
7662 (chdir "fortune-mod")
7663 ;; TODO: Valgrind tests fail for some reason.
7664 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7665 (delete-file "tests/t/valgrind.t")
7666 #t)))
7667 (add-after 'install 'fix-install-directory
7668 (lambda* (#:key outputs #:allow-other-keys)
7669 ;; Move binary from "games/" to "bin/" and remove the latter. This
7670 ;; is easier than patching CMakeLists.txt since the tests hard-code
7671 ;; the location as well.
7672 (let* ((out (assoc-ref outputs "out"))
7673 (bin (string-append out "/bin"))
7674 (games (string-append out "/games")))
7675 (rename-file (string-append games "/fortune")
7676 (string-append bin "/fortune"))
7677 (rmdir games)
7678 #t))))))
7679 (inputs `(("recode" ,recode)))
7680 (native-inputs
7681 `(("perl" ,perl)
7682 ;; The following is only needed for tests.
7683 ("perl-file-find-object" ,perl-file-find-object)
7684 ("perl-test-differences" ,perl-test-differences)
7685 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7686 ("perl-io-all" ,perl-io-all)
7687 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7688 ("cmake-rules" ,shlomif-cmake-modules)
7689 ("rinutils" ,rinutils)))
7690 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7691 (synopsis "The Fortune Cookie program from BSD games")
7692 (description "Fortune is a command-line utility which displays a random
7693 quotation from a collection of quotes.")
7694 (license license:bsd-4)))
7695
7696 (define xonotic-data
7697 (package
7698 (name "xonotic-data")
7699 (version "0.8.2")
7700 (source
7701 (origin
7702 (method url-fetch)
7703 (uri (string-append "http://dl.xonotic.org/xonotic-"
7704 version ".zip"))
7705 (file-name (string-append name "-" version ".zip"))
7706 (sha256
7707 (base32
7708 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7709 (build-system trivial-build-system)
7710 (native-inputs
7711 `(("unzip" ,unzip)))
7712 (arguments
7713 `(#:modules ((guix build utils))
7714 #:builder
7715 (begin
7716 (use-modules (guix build utils))
7717 (let* ((out (assoc-ref %outputs "out"))
7718 (xonotic (string-append out "/share/xonotic"))
7719 (source (assoc-ref %build-inputs "source"))
7720 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7721 (copy-file source (string-append ,name "-" ,version ".zip"))
7722 (invoke unzip (string-append ,name "-" ,version ".zip"))
7723 (mkdir-p out)
7724 (mkdir-p xonotic)
7725 (chdir "Xonotic")
7726 (copy-recursively "data"
7727 (string-append xonotic "/data"))
7728 (copy-recursively "server"
7729 (string-append xonotic "/server"))
7730 (install-file "key_0.d0pk" xonotic)))))
7731 (home-page "http://xonotic.org")
7732 (synopsis "Data files for Xonotic")
7733 (description
7734 "Xonotic-data provides the data files required by the game Xonotic.")
7735 (license (list license:gpl2+
7736 (license:x11-style "file://server/rcon.pl")))))
7737
7738 (define-public xonotic
7739 (package
7740 (name "xonotic")
7741 (version "0.8.2")
7742 (source
7743 (origin
7744 (method url-fetch)
7745 (uri (string-append "http://dl.xonotic.org/xonotic-"
7746 version "-source.zip"))
7747 (file-name (string-append name "-" version ".zip"))
7748 (sha256
7749 (base32
7750 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7751 (build-system gnu-build-system)
7752 (arguments
7753 `(#:configure-flags (list (string-append "--prefix="
7754 (assoc-ref %outputs "out"))
7755 "--disable-rijndael")
7756 #:phases
7757 (modify-phases %standard-phases
7758 (add-before 'configure 'make-darkplaces
7759 (lambda* (#:key outputs #:allow-other-keys)
7760 (let* ((out (assoc-ref outputs "out"))
7761 (sharedir (string-append out "/share/xonotic/")))
7762 (invoke "make" "-C" "source/darkplaces"
7763 (string-append "DP_FS_BASEDIR="
7764 sharedir)
7765 "DP_LINK_TO_LIBJPEG=1"
7766 "DP_SOUND_API=ALSA"
7767 "CC=gcc"
7768 "-f" "makefile"
7769 "cl-release")
7770 (invoke "make" "-C" "source/darkplaces"
7771 (string-append "DP_FS_BASEDIR="
7772 sharedir)
7773 "DP_LINK_TO_LIBJPEG=1"
7774 "DP_SOUND_API=ALSA"
7775 "CC=gcc"
7776 "-f" "makefile"
7777 "sdl-release")
7778 (invoke "make" "-C" "source/darkplaces"
7779 (string-append "DP_FS_BASEDIR="
7780 sharedir)
7781 "DP_LINK_TO_LIBJPEG=1"
7782 "DP_SOUND_API=ALSA"
7783 "CC=gcc"
7784 "-f" "makefile"
7785 "sv-release"))))
7786 (add-before 'configure 'bootstrap
7787 (lambda _
7788 (chdir "source/d0_blind_id")
7789 (invoke "sh" "autogen.sh")))
7790 (add-after 'build 'install-desktop-entry
7791 (lambda* (#:key outputs #:allow-other-keys)
7792 ;; Add .desktop files for the 2 variants and the symlink
7793 (let* ((output (assoc-ref outputs "out"))
7794 (apps (string-append output "/share/applications")))
7795 (mkdir-p apps)
7796 (with-output-to-file
7797 (string-append apps "/xonotic-glx.desktop")
7798 (lambda _
7799 (format #t
7800 "[Desktop Entry]~@
7801 Name=xonotic-glx~@
7802 Comment=Xonotic glx~@
7803 Exec=~a/bin/xonotic-glx~@
7804 TryExec=~@*~a/bin/xonotic-glx~@
7805 Icon=xonotic~@
7806 Categories=Game~@
7807 Type=Application~%"
7808 output)))
7809 (with-output-to-file
7810 (string-append apps "/xonotic-sdl.desktop")
7811 (lambda _
7812 (format #t
7813 "[Desktop Entry]~@
7814 Name=xonotic-sdl~@
7815 Comment=Xonotic sdl~@
7816 Exec=~a/bin/xonotic-sdl~@
7817 TryExec=~@*~a/bin/xonotic-sdl~@
7818 Icon=xonotic~@
7819 Categories=Game~@
7820 Type=Application~%"
7821 output)))
7822 (with-output-to-file
7823 (string-append apps "/xonotic.desktop")
7824 (lambda _
7825 (format #t
7826 "[Desktop Entry]~@
7827 Name=xonotic~@
7828 Comment=Xonotic~@
7829 Exec=~a/bin/xonotic-glx~@
7830 TryExec=~@*~a/bin/xonotic~@
7831 Icon=xonotic~@
7832 Categories=Game~@
7833 Type=Application~%"
7834 output)))
7835 #t)))
7836 (add-after 'install-desktop-entry 'install-icons
7837 (lambda* (#:key outputs #:allow-other-keys)
7838 (let ((out (assoc-ref outputs "out")))
7839 (with-directory-excursion "../../misc/logos/icons_png/"
7840 (for-each
7841 (lambda (file)
7842 (let* ((size (string-filter char-numeric? file))
7843 (icons (string-append out "/share/icons/hicolor/"
7844 size "x" size "/apps")))
7845 (mkdir-p icons)
7846 (copy-file file (string-append icons "/xonotic.png"))))
7847 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7848 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7849 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7850 (add-after 'install-icons 'install-binaries
7851 (lambda* (#:key outputs #:allow-other-keys)
7852 (let ((out (assoc-ref outputs "out")))
7853 (define (install src dst)
7854 (let ((dst (string-append out dst)))
7855 (mkdir-p (dirname dst))
7856 (copy-file src dst)))
7857 (mkdir-p (string-append out "/bin"))
7858 (install "../darkplaces/darkplaces-dedicated"
7859 "/bin/xonotic-dedicated")
7860 (install "../darkplaces/darkplaces-glx"
7861 "/bin/xonotic-glx")
7862 (install "../darkplaces/darkplaces-sdl"
7863 "/bin/xonotic-sdl")
7864 ;; Provide a default xonotic executable, defaulting to SDL.
7865 (symlink (string-append out "/bin/xonotic-sdl")
7866 (string-append out "/bin/xonotic"))
7867 #t)))
7868 (add-after 'install-binaries 'install-data
7869 (lambda* (#:key outputs inputs #:allow-other-keys)
7870 (let* ((out (assoc-ref outputs "out"))
7871 (data (assoc-ref inputs "xonotic-data")))
7872 (symlink (string-append data "/share/xonotic")
7873 (string-append out "/share/xonotic"))
7874 #t)))
7875 (add-after 'install-binaries 'wrap-binaries
7876 (lambda* (#:key outputs inputs #:allow-other-keys)
7877 ;; Curl and libvorbis need to be wrapped so that we get
7878 ;; sound and networking.
7879 (let* ((out (assoc-ref outputs "out"))
7880 (bin (string-append out "/bin/xonotic"))
7881 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7882 (bin-glx (string-append out "/bin/xonotic-glx"))
7883 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7884 (curl (assoc-ref inputs "curl"))
7885 (vorbis (assoc-ref inputs "libvorbis")))
7886 (wrap-program bin
7887 `("LD_LIBRARY_PATH" ":" prefix
7888 (,(string-append curl "/lib:" vorbis "/lib"))))
7889 (wrap-program bin-sdl
7890 `("LD_LIBRARY_PATH" ":" prefix
7891 (,(string-append curl "/lib:" vorbis "/lib"))))
7892 (wrap-program bin-glx
7893 `("LD_LIBRARY_PATH" ":" prefix
7894 (,(string-append curl "/lib:" vorbis "/lib"))))
7895 (wrap-program bin-dedicated
7896 `("LD_LIBRARY_PATH" ":" prefix
7897 (,(string-append curl "/lib:" vorbis "/lib"))))
7898 #t))))))
7899 (inputs
7900 `(("xonotic-data" ,xonotic-data)
7901 ("alsa-lib" ,alsa-lib)
7902 ("curl" ,curl)
7903 ("libjpeg" ,libjpeg-turbo)
7904 ("libmodplug" ,libmodplug)
7905 ("libvorbis" ,libvorbis)
7906 ("libogg" ,libogg)
7907 ("libxpm" ,libxpm)
7908 ("libxxf86dga" ,libxxf86dga)
7909 ("libxxf86vm" ,libxxf86vm)
7910 ("libx11" ,libx11)
7911 ("libxext" ,libxext)
7912 ("libxau" ,libxau)
7913 ("libxdmcp" ,libxdmcp)
7914 ("mesa" ,mesa)
7915 ("glu" ,glu)
7916 ("freetype" ,freetype)
7917 ("sdl2" ,sdl2)
7918 ("libpng" ,libpng)
7919 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7920 (native-inputs
7921 `(("unzip" ,unzip)
7922 ("autoconf" ,autoconf)
7923 ("automake" ,automake)
7924 ("pkg-config" ,pkg-config)
7925 ("libtool" ,libtool)
7926 ("gmp" ,gmp)))
7927 (home-page "https://xonotic.org")
7928 (synopsis "Fast-paced first-person shooter game")
7929 (description
7930 "Xonotic is a free, fast-paced first-person shooter.
7931 The project is geared towards providing addictive arena shooter
7932 gameplay which is all spawned and driven by the community itself.
7933 Xonotic is a direct successor of the Nexuiz project with years of
7934 development between them, and it aims to become the best possible
7935 open-source FPS of its kind.")
7936 (license (list license:gpl2+
7937 license:bsd-3 ; /source/d0_blind_id folder and others
7938 (license:x11-style "" "See file rcon.pl.")))))
7939
7940 (define-public frotz
7941 (package
7942 (name "frotz")
7943 (version "2.44")
7944 (source (origin
7945 (method url-fetch)
7946 (uri (list (string-append
7947 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7948 "frotz/frotz-" version ".tar.gz")
7949 (string-append
7950 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7951 "frotz/frotz-" version ".tar.gz")))
7952 (sha256
7953 (base32
7954 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7955 (build-system gnu-build-system)
7956 (arguments
7957 `(#:tests? #f ; there are no tests
7958 #:phases
7959 (modify-phases %standard-phases
7960 (delete 'configure)
7961 (add-before 'build 'curses
7962 (lambda _
7963 (substitute* "Makefile"
7964 (("lcurses") "lncurses"))
7965 #t))
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 "frotz" bin)
7972 (mkdir-p man)
7973 (install-file "doc/frotz.6" man)
7974 #t))))))
7975 (inputs `(("libmodplug" ,libmodplug)
7976 ("libsamplerate" ,libsamplerate)
7977 ("libsndfile" ,libsndfile)
7978 ("libvorbis" ,libvorbis)
7979 ("ncurses" ,ncurses)))
7980 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7981 (description "Frotz is an interpreter for Infocom games and other Z-machine
7982 games in the text adventure/interactive fiction genre. This version of Frotz
7983 complies with standard 1.0 of Graham Nelson's specification. It plays all
7984 Z-code games V1-V8, including V6, with sound support through libao, and uses
7985 ncurses for text display.")
7986 (home-page "http://frotz.sourceforge.net")
7987 (license license:gpl2+)))
7988
7989 (define-public frotz-dumb-terminal
7990 (package
7991 (name "frotz-dumb-terminal")
7992 (version "2.44")
7993 (source (origin
7994 (method url-fetch)
7995 (uri (list (string-append
7996 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7997 "frotz/frotz-" version ".tar.gz")
7998 (string-append
7999 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
8000 "frotz/frotz-" version ".tar.gz")))
8001 (sha256
8002 (base32
8003 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
8004 (build-system gnu-build-system)
8005 (arguments
8006 `(#:tests? #f ; there are no tests
8007 #:phases
8008 (modify-phases %standard-phases
8009 (delete 'configure)
8010 (replace 'build
8011 (lambda _
8012 (invoke "make" "dumb")))
8013 (replace 'install
8014 (lambda* (#:key outputs #:allow-other-keys)
8015 (let* ((out (assoc-ref outputs "out"))
8016 (bin (string-append out "/bin"))
8017 (man (string-append out "/share/man/man6")))
8018 (install-file "dfrotz" bin)
8019 (mkdir-p man)
8020 (install-file "doc/dfrotz.6" man)
8021 #t))))))
8022 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
8023 (description "Frotz is an interpreter for Infocom games and
8024 other Z-machine games in the text adventure/interactive fiction genre.
8025 dfrotz is the dumb interface version. You get no screen control; everything
8026 is just printed to the terminal line by line. The terminal handles all the
8027 scrolling. Maybe you'd like to experience what it's like to play Adventure on
8028 a teletype. A much cooler use for compiling Frotz with the dumb interface is
8029 that it can be wrapped in CGI scripting, PHP, and the like to allow people
8030 to play games on webpages. It can also be made into a chat bot.")
8031 (home-page "http://frotz.sourceforge.net")
8032 (license license:gpl2+)))
8033
8034 (define-public frotz-sdl
8035 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
8036 (package
8037 (name "frotz-sdl")
8038 (version "2.45pre")
8039 (source (origin
8040 (method git-fetch)
8041 (uri (git-reference
8042 (url "https://gitlab.com/DavidGriffith/frotz")
8043 (commit commit)))
8044 (sha256
8045 (base32
8046 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
8047 (file-name (git-file-name name version))))
8048 (build-system gnu-build-system)
8049 (arguments
8050 `(#:tests? #f ; there are no tests
8051 #:phases
8052 (modify-phases %standard-phases
8053 (delete 'configure)
8054 (add-before 'build 'patch-makefile
8055 (lambda _
8056 (substitute* "Makefile"
8057 (("lcurses") "lncurses")
8058 (("^BUILD_DATE_TIME =.*$")
8059 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
8060 #t))
8061 (replace 'build
8062 (lambda _
8063 (invoke "make" "sdl")))
8064 (replace 'install
8065 (lambda* (#:key outputs #:allow-other-keys)
8066 (let* ((out (assoc-ref outputs "out"))
8067 (bin (string-append out "/bin"))
8068 (man (string-append out "/share/man/man6")))
8069 (install-file "sfrotz" bin)
8070 (mkdir-p man)
8071 (install-file "doc/sfrotz.6" man)
8072 #t))))))
8073 (native-inputs
8074 `(("pkg-config" ,pkg-config)
8075 ("which" ,which)
8076 ("perl" ,perl)))
8077 (inputs `(("sdl2" ,sdl2)
8078 ("sdl2-mixer" ,sdl2-mixer)
8079 ("libmodplug" ,libmodplug)
8080 ("libsamplerate" ,libsamplerate)
8081 ("libsndfile" ,libsndfile)
8082 ("libvorbis" ,libvorbis)
8083 ("ncurses" ,ncurses)
8084 ("freetype" ,freetype)
8085 ("libjpeg-turbo" ,libjpeg-turbo)))
8086 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
8087 (description "Frotz is an interpreter for Infocom games and other Z-machine
8088 games in the text adventure/interactive fiction genre. This version of Frotz
8089 using SDL fully supports all these versions of the Z-Machine including the
8090 graphical version 6. Graphics and sound are created through the use of the SDL
8091 libraries. AIFF sound effects and music in MOD and OGG formats are supported
8092 when packaged in Blorb container files or optionally from individual files.")
8093 (home-page "http://frotz.sourceforge.net")
8094 (license license:gpl2+))))
8095
8096 (define-public frozen-bubble
8097 ;; Last official release is very outdated (2010). Use latest commit (2017).
8098 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
8099 (revision "1"))
8100 (package
8101 (name "frozen-bubble")
8102 (version (git-version "2.2.1" revision commit))
8103 (source
8104 (origin
8105 (method git-fetch)
8106 (uri (git-reference
8107 (url "https://github.com/kthakore/frozen-bubble")
8108 (commit commit)))
8109 (file-name (git-file-name name version))
8110 (sha256
8111 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
8112 (build-system perl-build-system)
8113 (arguments
8114 `(#:phases
8115 (modify-phases %standard-phases
8116 ;; Build process needs to create files in the "server"
8117 ;; directory.
8118 (add-after 'unpack 'fix-permissions
8119 (lambda _
8120 (for-each make-file-writable
8121 (find-files "server" "." #:directories? #t))))
8122 ;; By default, build stops at warnings.
8123 (add-after 'unpack 'prevent-build-error
8124 (lambda _
8125 (substitute* "inc/My/Builder.pm"
8126 (("-Werror") ""))
8127 #t))
8128 (add-after 'install 'install-desktop-file-and-icons
8129 (lambda* (#:key outputs #:allow-other-keys)
8130 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
8131 (hicolor (string-append share "/icons/hicolor")))
8132 ;; Create desktop entry.
8133 (make-desktop-entry-file
8134 (string-append share "/applications/" ,name ".desktop")
8135 #:name "Frozen Bubble"
8136 #:comment "Frozen Bubble arcade game"
8137 #:exec ,name
8138 #:icon ,name
8139 #:categories '("Game" "ArcadeGame"))
8140 ;; Add icons.
8141 (with-directory-excursion "share/icons"
8142 (for-each
8143 (lambda (size)
8144 (let* ((dim (string-append size "x" size))
8145 (dir (string-append hicolor "/" dim "/apps")))
8146 (mkdir-p dir)
8147 (copy-file
8148 (string-append "frozen-bubble-icon-" dim ".png")
8149 (string-append dir "/frozen-bubble.png"))))
8150 '("16" "32" "48" "64"))))
8151 #t))
8152 (add-after 'install 'wrap-perl-libs
8153 (lambda* (#:key outputs #:allow-other-keys)
8154 (let ((out (assoc-ref outputs "out"))
8155 (perl5lib (getenv "PERL5LIB")))
8156 (for-each (lambda (prog)
8157 (wrap-program (string-append out "/" prog)
8158 `("PERL5LIB" ":" prefix
8159 (,(string-append perl5lib ":" out
8160 "/lib/perl5/site_perl")))))
8161 (find-files "bin" ".")))
8162 #t)))))
8163 (native-inputs
8164 `(("perl-alien-sdl" ,perl-alien-sdl)
8165 ("perl-capture-tiny" ,perl-capture-tiny)
8166 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
8167 ("perl-module-build" ,perl-module-build)
8168 ("pkg-config" ,pkg-config)))
8169 (inputs
8170 `(("glib" ,glib)
8171 ("perl-compress-bzip2" ,perl-compress-bzip2)
8172 ("perl-file-sharedir" ,perl-file-sharedir)
8173 ("perl-file-slurp" ,perl-file-slurp)
8174 ("perl-file-which" ,perl-file-which)
8175 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
8176 ("perl-sdl" ,perl-sdl)
8177 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
8178 (home-page "http://frozen-bubble.org/")
8179 (synopsis "Puzzle with bubbles")
8180 (description
8181 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
8182 you attempt to shoot bubbles into groups of the same color to cause them to
8183 pop.
8184
8185 Players compete as penguins and must use the arrow keys to aim a colored
8186 bubble at groups of bubbles. The objective is to clear all the bubbles off
8187 the screen before a bubble passes below a line at the bottom.
8188
8189 It features 100 single-player levels, a two-player mode, music and striking
8190 graphics. A level editor is also included to allow players to create and play
8191 their own levels.")
8192 (license license:gpl2))))
8193
8194 (define-public libmanette
8195 (package
8196 (name "libmanette")
8197 (version "0.2.6")
8198 (source (origin
8199 (method url-fetch)
8200 (uri (string-append "mirror://gnome/sources/libmanette/"
8201 (version-major+minor version) "/"
8202 "libmanette-" version ".tar.xz"))
8203 (sha256
8204 (base32
8205 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
8206 (build-system meson-build-system)
8207 (native-inputs
8208 `(("glib" ,glib "bin") ; for glib-compile-resources
8209 ("gobject-introspection" ,gobject-introspection)
8210 ("pkg-config" ,pkg-config)
8211 ("vala" ,vala)))
8212 (inputs
8213 `(("libevdev" ,libevdev)
8214 ("libgudev" ,libgudev)))
8215 (home-page "https://wiki.gnome.org/Apps/Games")
8216 (synopsis "Game controller library")
8217 (description "Libmanette is a small GObject library giving you simple
8218 access to game controllers. It supports the de-facto standard gamepads as
8219 defined by the W3C standard Gamepad specification or as implemented by the SDL
8220 GameController.")
8221 (license license:lgpl2.1+)))
8222
8223 (define-public quadrapassel
8224 (package
8225 (name "quadrapassel")
8226 (version "3.36.05")
8227 (source (origin
8228 (method url-fetch)
8229 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8230 (version-major+minor version) "/"
8231 "quadrapassel-" version ".tar.xz"))
8232 (sha256
8233 (base32
8234 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8235 (build-system meson-build-system)
8236 (arguments
8237 '(#:glib-or-gtk? #t
8238 #:phases
8239 (modify-phases %standard-phases
8240 (add-after 'unpack 'skip-gtk-update-icon-cache
8241 ;; Don't create 'icon-theme.cache'.
8242 (lambda _
8243 (substitute* "build-aux/meson_post_install.py"
8244 (("gtk-update-icon-cache") (which "true")))
8245 #t)))))
8246 (native-inputs
8247 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8248 ("gettext" ,gettext-minimal)
8249 ("glib" ,glib "bin") ;for glib-compile-resources
8250 ("itstool" ,itstool)
8251 ("libxml2" ,libxml2) ;for xmllint
8252 ("pkg-config" ,pkg-config)
8253 ("vala" ,vala)))
8254 (inputs
8255 `(("clutter" ,clutter)
8256 ("clutter-gtk" ,clutter-gtk)
8257 ("gsound" ,gsound)
8258 ("gtk+" ,gtk+)
8259 ("libcanberra" ,libcanberra)
8260 ("libmanette" ,libmanette)
8261 ("librsvg" ,librsvg)))
8262 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8263 (synopsis "GNOME version of Tetris")
8264 (description "Quadrapassel comes from the classic falling-block game,
8265 Tetris. The goal of the game is to create complete horizontal lines of
8266 blocks, which will disappear. The blocks come in seven different shapes made
8267 from four blocks each: one straight, two L-shaped, one square, and two
8268 S-shaped. The blocks fall from the top center of the screen in a random
8269 order. You rotate the blocks and move them across the screen to drop them in
8270 complete lines. You score by dropping blocks fast and completing lines. As
8271 your score gets higher, you level up and the blocks fall faster.")
8272 (license license:gpl2+)))
8273
8274 (define-public endless-sky
8275 (package
8276 (name "endless-sky")
8277 (version "0.9.12")
8278 (source
8279 (origin
8280 (method git-fetch)
8281 (uri (git-reference
8282 (url "https://github.com/endless-sky/endless-sky")
8283 (commit (string-append "v" version))))
8284 (file-name (git-file-name name version))
8285 (sha256
8286 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
8287 (build-system scons-build-system)
8288 (arguments
8289 `(#:scons ,scons-python2
8290 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8291 #:tests? #f ; no tests
8292 #:phases
8293 (modify-phases %standard-phases
8294 (add-after 'unpack 'patch-resource-locations
8295 (lambda* (#:key outputs #:allow-other-keys)
8296 (substitute* "source/Files.cpp"
8297 (("/usr/local/")
8298 (string-append (assoc-ref outputs "out") "/")))
8299 #t))
8300 (add-after 'unpack 'patch-scons
8301 (lambda _
8302 (substitute* "SConstruct"
8303 ;; Keep environmental variables
8304 (("Environment\\(\\)")
8305 "Environment(ENV = os.environ)")
8306 ;; Install into %out/bin
8307 (("games\"") "bin\""))
8308 #t)))))
8309 (inputs
8310 `(("glew" ,glew)
8311 ("libjpeg" ,libjpeg-turbo)
8312 ("libmad" ,libmad)
8313 ("libpng" ,libpng)
8314 ("openal" ,openal)
8315 ("sdl2" ,sdl2)))
8316 (home-page "https://endless-sky.github.io/")
8317 (synopsis "2D space trading and combat game")
8318 (description "Endless Sky is a 2D space trading and combat game. Explore
8319 other star systems. Earn money by trading, carrying passengers, or completing
8320 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8321 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8322 leave human space behind and hope to find friendly aliens whose culture is more
8323 civilized than your own.")
8324 (license (list license:gpl3+
8325 license:cc-by-sa3.0
8326 license:cc-by-sa4.0
8327 license:public-domain))))
8328
8329 (define-public stepmania
8330 (package
8331 (name "stepmania")
8332 (version "5.1.0-b2")
8333 (source
8334 (origin
8335 (method git-fetch)
8336 (uri (git-reference
8337 (url "https://github.com/stepmania/stepmania")
8338 (commit (string-append "v" version))))
8339 (file-name (git-file-name name version))
8340 (sha256
8341 (base32
8342 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8343 (modules '((guix build utils)))
8344 (snippet
8345 '(begin
8346 ;; Remove song files, which are licensed under a non-commercial
8347 ;; clause, and a course pointing to them.
8348 (for-each delete-file-recursively
8349 '("Songs/StepMania 5/Goin' Under"
8350 "Songs/StepMania 5/MechaTribe Assault"
8351 "Songs/StepMania 5/Springtime"))
8352 (for-each delete-file '("Courses/Default/Jupiter.crs"
8353 "Courses/Default/Jupiter.png"))
8354 ;; Unbundle libpng.
8355 (substitute* "extern/CMakeLists.txt"
8356 (("include\\(CMakeProject-png.cmake\\)") ""))
8357 (delete-file-recursively "extern/libpng")
8358 #t))))
8359 (build-system cmake-build-system)
8360 (arguments
8361 `(#:tests? #f ;FIXME: couldn't find how to run tests
8362 #:build-type "Release"
8363 #:out-of-source? #f ;for the 'install-desktop' phase
8364 #:configure-flags
8365 (list "-DWITH_SYSTEM_FFMPEG=1"
8366 ;; SSE instructions are available on Intel systems only.
8367 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8368 (%current-system)))
8369 '("x86_64" "i686"))
8370 '()
8371 '("-DWITH_SSE2=NO"))
8372 ;; Configuration cannot find GTK2 without the two following
8373 ;; flags.
8374 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8375 (assoc-ref %build-inputs "gtk+")
8376 "/lib/gtk-2.0/include")
8377 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8378 (assoc-ref %build-inputs "glib")
8379 "/lib/glib-2.0/include"))
8380 #:phases
8381 (modify-phases %standard-phases
8382 (add-after 'unpack 'ensure-application-files-can-be-found
8383 (lambda* (#:key outputs #:allow-other-keys)
8384 (let ((out (assoc-ref outputs "out")))
8385 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8386 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8387 (string-append "\"" out
8388 "/share/stepmania/GtkModule.so\"")))
8389 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8390 (("Root = sDirOfExecutable")
8391 (string-append "Root = \"" out "/share/stepmania/\""))
8392 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8393 (string-append "\"" out "/share/stepmania/" dir "\"")))
8394 (substitute* "src/RageFileManager.cpp"
8395 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8396 (string-append "\"" out "/share/stepmania/\""))))
8397 #t))
8398 (add-after 'unpack 'fix-install-subdir
8399 ;; Installation would be done in "%out/stepmania-X.Y", but we
8400 ;; prefer the more common layout "%out/share/stepmania".
8401 (lambda _
8402 (substitute* "src/CMakeLists.txt"
8403 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8404 #t))
8405 (add-after 'unpack 'unbundle-libpng
8406 (lambda* (#:key inputs #:allow-other-keys)
8407 (substitute* "src/CMakeLists.txt"
8408 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8409 (string-append (assoc-ref inputs "libpng") "/include")))
8410 #t))
8411 (add-after 'install 'install-executable
8412 (lambda* (#:key outputs #:allow-other-keys)
8413 (let* ((out (assoc-ref outputs "out"))
8414 (bin (string-append out "/bin"))
8415 (exe (string-append out "/share/stepmania/stepmania")))
8416 (mkdir-p bin)
8417 (symlink exe (string-append bin "/stepmania"))
8418 #t)))
8419 (add-after 'install-executable 'install-desktop
8420 (lambda* (#:key outputs #:allow-other-keys)
8421 (let* ((out (assoc-ref outputs "out"))
8422 (share (string-append out "/share"))
8423 (applications (string-append share "/applications"))
8424 (icons (string-append share "/icons")))
8425 (install-file "stepmania.desktop" applications)
8426 (mkdir-p icons)
8427 (copy-recursively "icons" icons)
8428 #t)))
8429 ;; Move documentation in a more usual place, i.e.,
8430 ;; "%out/share/doc/stepmania/".
8431 (add-after 'install-desktop 'install-doc
8432 (lambda* (#:key outputs #:allow-other-keys)
8433 (let* ((out (assoc-ref outputs "out"))
8434 (share (string-append out "/share")))
8435 (with-directory-excursion share
8436 (mkdir-p "doc")
8437 (symlink "../stepmania/Docs" "doc/stepmania"))
8438 #t))))))
8439 (native-inputs
8440 `(("pkg-config" ,pkg-config)
8441 ("yasm" ,yasm)))
8442 (inputs
8443 `(("alsa-lib" ,alsa-lib)
8444 ;; Per upstream, StepMania is only guaranteed to work with a very
8445 ;; specific FFmpeg version, which is included in the repository as
8446 ;; a Git submodule. This particular version requirement usually
8447 ;; changes every few years.
8448 ("ffmpeg" ,ffmpeg-for-stepmania)
8449 ("glib" ,glib)
8450 ("glew" ,glew)
8451 ("gtk+" ,gtk+-2)
8452 ("jsoncpp" ,jsoncpp)
8453 ("libpng" ,libpng)
8454 ("libjpeg" ,libjpeg-turbo)
8455 ("libmad" ,libmad)
8456 ("libogg" ,libogg)
8457 ("libva" ,libva)
8458 ("libvorbis" ,libvorbis)
8459 ("libxinerama" ,libxinerama)
8460 ("libxrandr" ,libxrandr)
8461 ("mesa" ,mesa)
8462 ("pcre" ,pcre)
8463 ("pulseaudio" ,pulseaudio)
8464 ("sdl" ,sdl2)
8465 ("udev" ,eudev)
8466 ("zlib" ,zlib)))
8467 (synopsis "Advanced rhythm game designed for both home and arcade use")
8468 (description "StepMania is a dance and rhythm game. It features 3D
8469 graphics, keyboard and dance pad support, and an editor for creating your own
8470 steps.
8471
8472 This package provides the core application, but no song is shipped. You need
8473 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8474 (home-page "https://www.stepmania.com")
8475 (license license:expat)))
8476
8477 (define-public oshu
8478 (package
8479 (name "oshu")
8480 (version "2.0.1")
8481 (source
8482 (origin
8483 (method git-fetch)
8484 (uri (git-reference
8485 (url "https://github.com/fmang/oshu")
8486 (commit version)))
8487 (file-name (git-file-name name version))
8488 (sha256
8489 (base32
8490 "1g598incc6zlls876slgwqblwiwiszkmqa4xpzw0z7mbjmmzsizz"))))
8491 (build-system cmake-build-system)
8492 (arguments
8493 `(#:phases
8494 (modify-phases %standard-phases
8495 (add-before 'check 'pre-check
8496 ;; `make test' doesn't actually build the test executable
8497 (lambda _ (invoke "make" "zerotokei"))))))
8498 (native-inputs
8499 `(("pkg-config" ,pkg-config)))
8500 (inputs
8501 `(("cairo" ,cairo)
8502 ("ffmpeg" ,ffmpeg)
8503 ("pango" ,pango)
8504 ("sdl2" ,sdl2)
8505 ("sdl2-image" ,sdl2-image)))
8506 (home-page "https://github.com/fmang/oshu/")
8507 (synopsis "Rhythm game in which you click on circles")
8508 (description "@i{oshu!} is a minimalist variant of the @i{osu!} rhythm game,
8509 which is played by pressing buttons and following along sliders as they appear
8510 on screen. Its aim is to be able to play any beatmap even on low-end hardware.
8511
8512 This package provides the core application, but no beatmaps. You need to
8513 download and unpack them separately.")
8514 (license license:gpl3+)))
8515
8516 (define-public btanks
8517 (package
8518 (name "btanks")
8519 (version "0.9.8083")
8520 (source
8521 (origin
8522 (method url-fetch)
8523 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8524 "btanks-" version ".tar.bz2"))
8525 (sha256
8526 (base32
8527 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8528 (build-system scons-build-system)
8529 (arguments
8530 `(#:tests? #f ; there are none
8531 #:scons ,scons-python2
8532 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8533 #:phases
8534 (modify-phases %standard-phases
8535 (add-after 'unpack 'replace-removed-scons-syntax
8536 (lambda _
8537 (substitute* "SConstruct"
8538 (("Options") "Variables")
8539 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8540 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8541 #t))
8542 (add-after 'set-paths 'set-sdl-paths
8543 (lambda* (#:key inputs #:allow-other-keys)
8544 (setenv "CPATH"
8545 (string-append (assoc-ref inputs "sdl")
8546 "/include/SDL:"
8547 (or (getenv "CPATH") "")))
8548 #t))
8549 (add-after 'unpack 'fix-compilation-errors
8550 (lambda _
8551 (substitute* "mrt/base_file.h"
8552 (("#include <string>" m)
8553 (string-append m "\n#include <sys/types.h>")))
8554 (substitute* '("engine/sl08/sl08.h"
8555 "engine/sl08/sl08.py")
8556 (("signal = NULL") "signal = 0")
8557 (("object\\(NULL\\)") "object(0)")
8558 (("func\\(NULL\\)") "func(0)")
8559 ((" connect\\(signal_ref\\)")
8560 " this->connect(signal_ref)"))
8561 (substitute* "math/range_list.h"
8562 ((" lower_bound\\(value\\)")
8563 " this->lower_bound(value)")
8564 ((" erase\\(i\\)")
8565 " this->erase(i)"))
8566 (substitute* "clunk/source.cpp"
8567 (("using namespace clunk" m)
8568 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8569 #t))
8570 (add-after 'unpack 'find-lua
8571 (lambda _
8572 (substitute* "engine/SConscript"
8573 (("lua5.1") "lua-5.1")
8574 (("bt_libs.append\\(lua\\)")
8575 "bt_libs.append(\"lua\")"))
8576 #t)))))
8577 (inputs
8578 `(("expat" ,expat)
8579 ("glu" ,glu)
8580 ("libsmpeg" ,libsmpeg-with-sdl1)
8581 ("libvorbis" ,libvorbis)
8582 ("lua51" ,lua-5.1)
8583 ("sdl" ,(sdl-union (list sdl
8584 sdl-mixer
8585 sdl-image
8586 sdl-ttf)))
8587 ("zlib" ,zlib)))
8588 (native-inputs
8589 `(("pkg-config" ,pkg-config)
8590 ("zip" ,zip)))
8591 (home-page "http://btanks.sourceforge.net")
8592 (synopsis "Multiplayer tank battle game")
8593 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8594 game, where you can choose one of three vehicles and eliminate your enemy
8595 using the whole arsenal of weapons. It has original cartoon-like graphics and
8596 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8597 and cooperative.")
8598 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8599 ;; released under GPLv2 or later. It comes with extra exceptions for the
8600 ;; developers.
8601 (license (list license:gpl2+ license:lgpl2.1+))))
8602
8603 (define-public slimevolley
8604 (package
8605 (name "slimevolley")
8606 (version "2.4.2")
8607 (source
8608 (origin
8609 (method url-fetch)
8610 (uri (string-append "https://download.tuxfamily.org/slime/"
8611 "slimevolley_" version ".tar.gz"))
8612 (sha256
8613 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8614 (build-system cmake-build-system)
8615 (arguments
8616 `(#:tests? #f ;no test
8617 ;; Work around build failure: "error adding symbols: DSO
8618 ;; missing from command line".
8619 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8620 (native-inputs
8621 `(("gettext" ,gettext-minimal)))
8622 (inputs
8623 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8624 (home-page "https://slime.tuxfamily.org/")
8625 (synopsis "Unrealistic 2D volleyball simulation")
8626 (description
8627 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8628 the spirit of some Java games of the same name.
8629
8630 Two teams, 1-3 players each, try to be the first to get 10 points.
8631 This happens when the one ball touches the floor on the other side of
8632 the net. There can be 1 to 8 balls in game. Once one ball touches
8633 the ground, the set ends and all balls are served again.")
8634 (license license:gpl3+)))
8635
8636 (define-public slingshot
8637 (package
8638 (name "slingshot")
8639 (version "0.9")
8640 (source
8641 (origin
8642 (method git-fetch)
8643 (uri (git-reference
8644 (url "https://github.com/ryanakca/slingshot")
8645 (commit version)))
8646 (file-name (git-file-name name version))
8647 (sha256
8648 (base32
8649 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8650 (build-system python-build-system)
8651 (arguments
8652 `(#:python ,python-2))
8653 (inputs
8654 `(("python-pygame" ,python2-pygame)))
8655 (home-page "https://github.com/ryanakca/slingshot")
8656 (synopsis "Simple 2D shooting strategy game set in space")
8657 (description "Slingshot is a two-dimensional strategy game where two
8658 players attempt to shoot one another through a section of space populated by
8659 planets. The main feature of the game is that the shots, once fired, are
8660 affected by the gravity of the planets.")
8661 (license license:gpl2+)))
8662
8663 (define-public 4dtris
8664 (package
8665 (name "4dtris")
8666 (version "0.4.3")
8667 (source
8668 (origin
8669 (method url-fetch)
8670 (uri (string-append "https://launchpad.net/4dtris/"
8671 (version-major+minor version)
8672 "/" version "/+download/4dtris_"
8673 version ".orig.tar.gz"))
8674 (sha256
8675 (base32
8676 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8677 (build-system gnu-build-system)
8678 (arguments
8679 `(#:phases
8680 (modify-phases %standard-phases
8681 (add-after 'unpack 'fix-install-directories
8682 (lambda* (#:key outputs #:allow-other-keys)
8683 (let ((out (assoc-ref outputs "out")))
8684 (substitute* "Makefile.in"
8685 (("bindir = /usr/games")
8686 (string-append "bindir = " out "/bin"))
8687 (("/usr/share/applications")
8688 (string-append out "/share/applications"))
8689 (("/usr/share/games/4dtris")
8690 (string-append out "/share/4dtris"))))
8691 #t))
8692 (add-after 'set-paths 'set-sdl-paths
8693 (lambda* (#:key inputs #:allow-other-keys)
8694 (setenv "CPATH"
8695 (string-append (assoc-ref inputs "sdl")
8696 "/include/SDL:"
8697 (or (getenv "CPATH") "")))
8698 #t)))))
8699 (inputs
8700 `(("fontconfig" ,fontconfig)
8701 ("freeglut" ,freeglut)
8702 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8703 (home-page "https://launchpad.net/4dtris/")
8704 (synopsis "4D Tetris")
8705 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8706 game field is extended to 4D space, which has to filled up by the gamer with
8707 4D hyper cubes.")
8708 (license license:gpl3)))
8709
8710 (define-public arx-libertatis
8711 (package
8712 (name "arx-libertatis")
8713 (version "1.1.2")
8714 (source
8715 (origin
8716 (method url-fetch)
8717 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8718 version ".tar.xz"))
8719 (sha256
8720 (base32
8721 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8722 (build-system cmake-build-system)
8723 (outputs '("out" "installer"))
8724 (arguments
8725 '(#:tests? #f ; No tests.
8726 #:phases
8727 (modify-phases %standard-phases
8728 (add-after 'unpack 'fix-install-helper-paths
8729 (lambda* (#:key inputs #:allow-other-keys)
8730 (let ((p7zip (assoc-ref inputs "p7zip"))
8731 (innoextract (assoc-ref inputs "innoextract"))
8732 (wget (assoc-ref inputs "wget"))
8733 (zenity (assoc-ref inputs "zenity")))
8734 (substitute* "scripts/arx-install-data"
8735 (("have innoextract")
8736 (string-append "have " innoextract "/bin/innoextract"))
8737 (("then innoextract")
8738 (string-append "then " innoextract "/bin/innoextract"))
8739 (("else innoextract")
8740 (string-append "else " innoextract "/bin/innoextract"))
8741 (("for _extract_zip_sz in 7za 7z")
8742 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8743 (("else if have 7z")
8744 (string-append "else if have " p7zip "/bin/7za"))
8745 (("7z x -tiso")
8746 (string-append p7zip "/bin/7z x -tiso"))
8747 (("if have wget")
8748 (string-append "if have " wget "/bin/wget"))
8749 (("wget -O")
8750 (string-append wget "/bin/wget -O"))
8751 (("for backend in \\$preferred zenity")
8752 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8753 (("zenity +--title")
8754 (string-append zenity "/bin/zenity --title"))
8755 (("^zenity\\)")
8756 (string-append zenity "/bin/zenity)"))))
8757 #t))
8758 (add-after 'install 'move-installer
8759 (lambda* (#:key outputs #:allow-other-keys)
8760 (let ((out (assoc-ref outputs "out"))
8761 (installer (assoc-ref outputs "installer")))
8762 (mkdir-p (string-append installer "/bin"))
8763 (rename-file (string-append out "/bin/arx-install-data")
8764 (string-append installer "/bin/arx-install-data"))))))))
8765 (inputs
8766 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8767 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8768 ("glew" ,glew)
8769 ("openal" ,openal)
8770 ("zlib" ,zlib)
8771 ("boost" ,boost)
8772 ("glm" ,glm)
8773 ("freetype" ,freetype)
8774 ;; The following are only needed by the arx-install-data script.
8775 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8776 ("zenity" ,zenity) ; GUI for install-helper.
8777 ("wget" ,wget) ; Used by the install-helper to download the patch.
8778 ;; The install-helper needs it to extract the patch.
8779 ("innoextract" ,innoextract)))
8780 (home-page "https://arx-libertatis.org/")
8781 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8782 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8783 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8784 This port however does not include the game data, so you need to obtain a copy
8785 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8786 features crafting, melee and ranged combat, as well as a unique casting system
8787 where the player draws runes in real time to effect the desired spell.")
8788 (license license:gpl3+)))
8789
8790 (define-public edgar
8791 (package
8792 (name "edgar")
8793 (version "1.34")
8794 (source
8795 (origin
8796 (method url-fetch)
8797 (uri
8798 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8799 version "/edgar-" version "-1.tar.gz"))
8800 (sha256
8801 (base32 "1121rq5wk3g8rs413av84s2kcy6qj6maspgy2vsxs36c2jd3yygl"))))
8802 (build-system gnu-build-system)
8803 (arguments '(#:tests? #f ; there are no tests
8804 #:make-flags
8805 (list "CC=gcc"
8806 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8807 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8808 #:phases
8809 (modify-phases %standard-phases
8810 (delete 'configure)
8811 (add-before 'build 'fix-env
8812 (lambda* (#:key inputs #:allow-other-keys)
8813 (setenv "CPATH"
8814 (string-append (assoc-ref inputs "sdl2-union")
8815 "/include/SDL2:"
8816 (or (getenv "CPATH") "")))
8817 #t)))))
8818 (inputs
8819 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8820 ("zlib" ,zlib)))
8821 (native-inputs
8822 `(("pkg-config" ,pkg-config)
8823 ("autoconf" ,autoconf)
8824 ("automake" ,automake)
8825 ("gnu-gettext" ,gettext-minimal)
8826 ("libtool" ,libtool)
8827 ("which" ,which)))
8828 (synopsis "2d action platformer game")
8829 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8830 When Edgar's father fails to return home after venturing out one dark and stormy night,
8831 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8832 a fortress beyond the forbidden swamp.")
8833 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8834 (license license:gpl2+)))
8835
8836 (define-public openclonk
8837 (package
8838 (name "openclonk")
8839 (version "8.1")
8840 (source (origin
8841 (method url-fetch)
8842 (uri (string-append
8843 "https://www.openclonk.org/builds/release/" version "/"
8844 "openclonk-" version "-src.tar.bz2"))
8845 (sha256
8846 (base32
8847 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8848 (build-system cmake-build-system)
8849 (arguments
8850 `(#:configure-flags '("-DAudio_TK=OpenAL")
8851 #:test-target "tests"
8852 #:phases
8853 (modify-phases %standard-phases
8854 (add-after 'unpack 'prepare-gmock
8855 (lambda* (#:key inputs #:allow-other-keys)
8856 (mkdir "gmock")
8857 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8858 (substitute* "tests/CMakeLists.txt"
8859 (("/usr/src/gmock")
8860 (string-append (getcwd) "/gmock/googlemock"))
8861 (("/usr/src/gtest")
8862 (string-append (getcwd) "/gmock/googletest"))
8863 (("PATH_SUFFIXES \"src\" \"gtest\"")
8864 "PATH_SUFFIXES \"src\""))
8865 #t))
8866 (add-after 'unpack 'adjust-backward-cpp-includes
8867 (lambda _
8868 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8869 ;; that includes external libraries such as libdl from glibc.
8870 ;; By default, CMake interface includes are treated as "system
8871 ;; headers", and GCC behaves poorly when glibc is passed as a
8872 ;; system header (causing #include_next failures).
8873
8874 ;; Here we prevent targets that consume the Backward::Backward
8875 ;; interface from treating it as "system includes".
8876 (substitute* "CMakeLists.txt"
8877 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8878 (string-append "set_property(TARGET " target " PROPERTY "
8879 "NO_SYSTEM_FROM_IMPORTED true)\n"
8880 all)))
8881 #t))
8882 (add-after 'unpack 'add-libiberty
8883 ;; Build fails upon linking executables without this.
8884 (lambda _
8885 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8886 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8887 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8888 #t))
8889 (add-after 'add-libiberty 'lax-freealut-requirement
8890 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8891 ;; it as 1.0.1. Force minimal version.
8892 (lambda _
8893 (substitute* "cmake/FindAudio.cmake"
8894 (("freealut>=1.1.0") "freealut>=1.0.1"))
8895 #t))
8896 (add-after 'lax-freealut-requirement 'fix-directories
8897 ;; Prefer "$out/share/openclonk" over
8898 ;; "$out/share/games/openclonk". Also install "openclonk"
8899 ;; binary in "bin/", not "games/".
8900 (lambda _
8901 (substitute* "CMakeLists.txt"
8902 (("share/games/openclonk") "share/openclonk")
8903 (("TARGETS openclonk DESTINATION games")
8904 "TARGETS openclonk DESTINATION bin"))
8905 #t)))))
8906 (native-inputs
8907 `(("googlemock" ,(package-source googletest))
8908 ("googletest" ,googletest)
8909 ("pkg-config" ,pkg-config)))
8910 (inputs
8911 `(("freealut" ,freealut)
8912 ("freetype" ,freetype)
8913 ("glew" ,glew)
8914 ("libiberty" ,libiberty)
8915 ("libjpeg" ,libjpeg-turbo)
8916 ("libogg" ,libogg)
8917 ("libpng" ,libpng)
8918 ("libvorbis" ,libvorbis)
8919 ("libxrandr" ,libxrandr)
8920 ("mesa" ,mesa)
8921 ("miniupnpc" ,miniupnpc)
8922 ("openal" ,openal)
8923 ("qtbase" ,qtbase)
8924 ("readline" ,readline)
8925 ("sdl" ,sdl2)
8926 ("tinyxml" ,tinyxml)
8927 ("zlib" ,zlib)))
8928 (home-page "https://www.openclonk.org/")
8929 (synopsis
8930 "Multiplayer action game where you control small and nimble humanoids")
8931 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8932 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8933 antfarm-style landscape, the player controls a crew of Clonks, small but
8934 robust humanoid beings. The game encourages free play but the normal goal is
8935 to either exploit valuable resources from the earth by building a mine or
8936 fight each other on an arena-like map.")
8937 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8938 (license (list license:isc license:cc-by3.0))))
8939
8940 (define-public flare-engine
8941 (package
8942 (name "flare-engine")
8943 (version "1.11")
8944 (source (origin
8945 (method git-fetch)
8946 (uri (git-reference
8947 (url "https://github.com/flareteam/flare-engine")
8948 (commit (string-append "v" version))))
8949 (file-name (git-file-name name version))
8950 (sha256
8951 (base32
8952 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8953 (build-system cmake-build-system)
8954 (arguments
8955 `(#:tests? #f ;no test
8956 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8957 (inputs
8958 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8959 ("python" ,python-wrapper)
8960 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8961 (home-page "http://www.flarerpg.org/")
8962 (synopsis "Action Roleplaying Engine")
8963 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8964 game engine built to handle a very specific kind of game: single-player 2D
8965 action RPGs.")
8966 (license license:gpl3+)))
8967
8968 (define-public flare-game
8969 (package
8970 (name "flare-game")
8971 (version "1.11")
8972 (source (origin
8973 (method git-fetch)
8974 (uri (git-reference
8975 (url "https://github.com/flareteam/flare-game")
8976 (commit (string-append "v" version))))
8977 (file-name (git-file-name name version))
8978 (sha256
8979 (base32
8980 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8981 (build-system cmake-build-system)
8982 (arguments
8983 `(#:tests? #f ;no test
8984 #:configure-flags '("-DDATADIR=share/flare")
8985 #:phases
8986 (modify-phases %standard-phases
8987 ;; Flare expects the mods to be located in the same folder.
8988 ;; Yet, "default" mod is in the engine, whereas the others
8989 ;; are in the current package. Merge everything here with
8990 ;; a symlink.
8991 (add-after 'install 'add-default-mod
8992 (lambda* (#:key inputs outputs #:allow-other-keys)
8993 (let* ((out (assoc-ref outputs "out"))
8994 (mods (string-append out "/share/flare/mods")))
8995 (with-directory-excursion mods
8996 (symlink (string-append (assoc-ref inputs "flare-engine")
8997 "/share/flare/mods/default")
8998 "default")))
8999 #t))
9000 (add-after 'install 'install-executable
9001 ;; The package only provides assets for the game, the
9002 ;; executable coming from "flare-engine". Since more than
9003 ;; one game may use the engine, we create a new executable,
9004 ;; "flare-game", which launches the engine with appropriate
9005 ;; parameters.
9006 (lambda* (#:key inputs outputs #:allow-other-keys)
9007 (let* ((out (assoc-ref outputs "out"))
9008 (bash (string-append (assoc-ref inputs "bash")
9009 "/bin/bash"))
9010 (flare (string-append (assoc-ref inputs "flare-engine")
9011 "/bin/flare"))
9012 (script (string-append out "/bin/flare-game")))
9013 (mkdir-p (dirname script))
9014 (call-with-output-file script
9015 (lambda (port)
9016 (format port
9017 "#!~a
9018 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
9019 bash
9020 flare
9021 out)))
9022 (chmod script #o755))
9023 #t)))))
9024 (inputs
9025 `(("flare-engine" ,flare-engine)))
9026 (home-page "http://www.flarerpg.org/")
9027 (synopsis "Fantasy action RPG using the FLARE engine")
9028 (description "Flare is a single-player 2D action RPG with
9029 fast-paced action and a dark fantasy style.")
9030 (license license:cc-by-sa3.0)))
9031
9032 (define-public meritous
9033 (package
9034 (name "meritous")
9035 (version "1.5")
9036 (source (origin
9037 (method git-fetch)
9038 (uri (git-reference
9039 (url "https://gitlab.com/meritous/meritous.git")
9040 (commit (string-append "v" version))))
9041 (file-name (git-file-name name version))
9042 (sha256
9043 (base32
9044 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
9045 (build-system gnu-build-system)
9046 (arguments
9047 `(#:tests? #f ;no test
9048 #:make-flags
9049 (list "CC=gcc"
9050 (string-append "prefix=" (assoc-ref %outputs "out")))
9051 #:phases
9052 (modify-phases %standard-phases
9053 (delete 'configure)
9054 (add-after 'unpack 'fix-sdl-path
9055 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
9056 ;; directory, not SDL-union provided as an input to the package.
9057 ;; We force the latter with "--prefix=" option.
9058 (lambda* (#:key inputs #:allow-other-keys)
9059 (substitute* "Makefile"
9060 (("sdl-config" command)
9061 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9062 #t))
9063 (add-after 'unpack 'fix-crash
9064 ;; XXX: Songs are not present in the repository, due to licensing
9065 ;; issues. Yet, the game tries to load them, and, since it cannot
9066 ;; find them, crashes. Users cannot add them back, the store being
9067 ;; read-only, so we turn off background music altogether.
9068 (lambda _
9069 (substitute* "src/audio.c"
9070 (("PlayBackgroundMusic\\(new_track\\);" all)
9071 (string-append "// " all)))
9072 #t)))))
9073 (native-inputs
9074 `(("intltool" ,intltool)))
9075 (inputs
9076 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
9077 ("zlib" ,zlib)))
9078 (home-page "https://gitlab.com/meritous/meritous")
9079 (synopsis "Action-adventure dungeon crawl game")
9080 (description "Far below the surface of the planet is a place of limitless
9081 power. Those that seek to control such a utopia will soon bring an end to
9082 themselves. Seeking an end to the troubles that plague him, PSI user Merit
9083 journeys into the hallowed Orcus Dome in search of answers.
9084
9085 Meritous is a action-adventure game with simple controls but a challenge to
9086 find a balance of power versus recovery time during real-time battles. Set in
9087 a procedurally generated world, the player can explore thousands of rooms in
9088 search of powerful artifacts, tools to help them, and to eventually free the
9089 Orcus Dome from evil.")
9090 (license license:gpl3+)))
9091
9092 (define-public marble-marcher
9093 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
9094 (revision "1"))
9095 (package
9096 (name "marble-marcher")
9097 (version (git-version "0" revision commit))
9098 (source (origin
9099 (method git-fetch)
9100 (uri (git-reference
9101 (url "https://github.com/HackerPoet/MarbleMarcher")
9102 (commit commit)))
9103 (file-name (git-file-name name version))
9104 (sha256
9105 (base32
9106 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
9107 (build-system cmake-build-system)
9108 (arguments
9109 `(#:tests? #f ; there are none
9110 #:phases
9111 (modify-phases %standard-phases
9112 (add-after 'unpack 'embed-asset-directory
9113 (lambda* (#:key outputs #:allow-other-keys)
9114 (let ((assets (string-append (assoc-ref outputs "out")
9115 "/share/marble-marcher/assets/")))
9116 ;; Some of the files we're patching are
9117 ;; ISO-8859-1-encoded, so choose it as the default
9118 ;; encoding so the byte encoding is preserved.
9119 (with-fluids ((%default-port-encoding #f))
9120 (substitute* "src/Resource.rc"
9121 (("../assets/icon.ico")
9122 (string-append assets "icon.ico")))
9123 (substitute* "src/Res.h"
9124 (("assets/") assets))))
9125 #t))
9126 (replace 'install
9127 (lambda* (#:key outputs #:allow-other-keys)
9128 (let* ((out (assoc-ref outputs "out"))
9129 (assets (string-append out "/share/marble-marcher/assets"))
9130 (bin (string-append out "/bin/")))
9131 (mkdir-p bin)
9132 (mkdir-p assets)
9133 (copy-recursively "../source/assets" assets)
9134 (install-file "MarbleMarcher" bin))
9135 #t)))))
9136 (inputs
9137 `(("eigen" ,eigen)
9138 ("mesa" ,mesa)
9139 ("sfml" ,sfml)))
9140 (native-inputs
9141 `(("pkg-config" ,pkg-config)))
9142 (home-page "https://codeparade.itch.io/marblemarcher")
9143 (synopsis "Guide a marble across fractal landscapes")
9144 (description "Marble Marcher is a video game that uses a fractal physics
9145 engine and fully procedural rendering to produce beautiful and unique
9146 gameplay. The game is played on the surface of evolving fractals. The goal
9147 of the game is to get your marble to the flag as quickly as possible. But be
9148 careful not to fall off the level or get crushed by the fractal! There are 24
9149 levels to unlock.")
9150 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
9151 (license (list license:gpl2+
9152 license:silofl1.1
9153 license:cc-by-sa3.0)))))
9154
9155 ;; This must be updated together with flightgear.
9156 (define simgear
9157 (package
9158 (name "simgear")
9159 (version "2018.3.5")
9160 (source
9161 (origin
9162 (method url-fetch)
9163 (uri (string-append "mirror://sourceforge/flightgear/release-"
9164 (version-major+minor version) "/"
9165 "simgear-" version ".tar.bz2"))
9166 (sha256
9167 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
9168 (build-system cmake-build-system)
9169 (arguments
9170 `(#:phases
9171 (modify-phases %standard-phases
9172 (replace 'check
9173 (lambda _
9174 ;; Skip tests that require internet access.
9175 (invoke "ctest" "-E" "(http|dns)"))))))
9176 (inputs
9177 `(("boost" ,boost-for-mysql) ; fails with 1.69
9178 ("curl" ,curl)
9179 ("expat" ,expat)
9180 ("mesa" ,mesa)
9181 ("openal" ,openal)
9182 ("openscenegraph" ,openscenegraph-3.4)
9183 ("zlib" ,zlib)))
9184 (home-page "https://home.flightgear.org/")
9185 (synopsis "Libraries for 3D simulations and games")
9186 (description "SimGear is a set of libraries designed to be used as
9187 building blocks for quickly assembling 3D simulations, games, and
9188 visualization applications. SimGear is developed by the FlightGear project
9189 and also provides the base for the FlightGear Flight Simulator.")
9190 (license license:lgpl2.0+)))
9191
9192 (define-public flightgear
9193 (package
9194 (name "flightgear")
9195 (version (package-version simgear))
9196 (source
9197 (origin
9198 (method url-fetch)
9199 (uri (string-append "mirror://sourceforge/flightgear/release-"
9200 (version-major+minor version) "/"
9201 "flightgear-" version ".tar.bz2"))
9202 (sha256
9203 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
9204 (modules '((guix build utils)))
9205 (snippet
9206 '(begin
9207 ;; There are some bundled libraries.
9208 (for-each delete-file-recursively
9209 '("3rdparty/sqlite3/"))
9210 #t))))
9211 (build-system cmake-build-system)
9212 (arguments
9213 `(#:configure-flags
9214 (list "-DSYSTEM_SQLITE=ON"
9215 (string-append "-DFG_DATA_DIR="
9216 (assoc-ref %outputs "out")
9217 "/share/flightgear"))
9218 ;; TODO: test cannot be run because the "run_test_suite" executable
9219 ;; does not seem to be built.
9220 #:tests? #f
9221 #:phases
9222 (modify-phases %standard-phases
9223 (add-after 'install 'wrap-executable
9224 (lambda* (#:key inputs outputs #:allow-other-keys)
9225 (let ((out (assoc-ref outputs "out")))
9226 (wrap-program (string-append out "/bin/fgfs")
9227 `("QT_PLUGIN_PATH" ":" prefix
9228 ,(map (lambda (label)
9229 (string-append (assoc-ref inputs label)
9230 "/lib/qt5/plugins"))
9231 '("qtbase" "qtdeclarative" "qtsvg")))
9232 `("QML2_IMPORT_PATH" ":" prefix
9233 ,(map (lambda (label)
9234 (string-append (assoc-ref inputs label)
9235 "/lib/qt5/qml"))
9236 '("qtdeclarative" "qtsvg"))))
9237 #t)))
9238 (add-after 'install 'install-data
9239 (lambda* (#:key inputs outputs #:allow-other-keys)
9240 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
9241 (mkdir-p share)
9242 (with-directory-excursion share
9243 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
9244 "--strip-components=1")))
9245 #t)))))
9246 (inputs
9247 `(("boost" ,boost-for-mysql) ; same as simgear
9248 ("dbus" ,dbus)
9249 ("eudev" ,eudev)
9250 ("freeglut" ,freeglut)
9251 ("freetype" ,freetype)
9252 ("glew" ,glew)
9253 ("libpng" ,libpng)
9254 ("openal" ,openal)
9255 ("openscenegraph" ,openscenegraph-3.4)
9256 ("plib" ,plib)
9257 ("qtbase" ,qtbase)
9258 ("qtdeclarative" ,qtdeclarative)
9259 ("qtsvg" ,qtsvg)
9260 ("simgear" ,simgear)
9261 ("speexdsp" ,speexdsp)
9262 ("sqlite" ,sqlite)
9263 ("zlib" ,zlib)))
9264 (native-inputs
9265 `(("cppunit" ,cppunit)
9266 ("pkg-config" ,pkg-config)
9267 ("qttools" ,qttools)
9268 ("flightgear-data"
9269 ,(origin
9270 (method url-fetch)
9271 (uri (string-append "mirror://sourceforge/flightgear/release-"
9272 (version-major+minor version) "/"
9273 "FlightGear-" version "-data.tar.bz2"))
9274 (sha256
9275 (base32
9276 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9277 (home-page "https://home.flightgear.org/")
9278 (synopsis "Flight simulator")
9279 (description "The goal of the FlightGear project is to create a
9280 sophisticated flight simulator framework for use in research or academic
9281 environments, pilot training, as an industry engineering tool, for DIY-ers to
9282 pursue their favorite interesting flight simulation idea, and last but
9283 certainly not least as a fun, realistic, and challenging desktop flight
9284 simulator.")
9285 (license license:gpl2+)))
9286
9287 (define-public jumpnbump
9288 (package
9289 (name "jumpnbump")
9290 (version "1.61")
9291 (source (origin
9292 (method git-fetch)
9293 (uri (git-reference
9294 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9295 (commit version)))
9296 (file-name (git-file-name name version))
9297 (sha256
9298 (base32
9299 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9300 (build-system gnu-build-system)
9301 (arguments
9302 `(#:make-flags
9303 (list "CC=gcc"
9304 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9305 #:tests? #f ;no test
9306 #:phases
9307 (modify-phases %standard-phases
9308 (delete 'configure) ;no configure script
9309 (add-after 'unpack 'fix-sdl-path
9310 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9311 ;; directory, not SDL-union provided as an input to the package.
9312 ;; We force the latter with "--prefix=" option.
9313 (lambda* (#:key inputs #:allow-other-keys)
9314 (substitute* "Makefile"
9315 (("sdl2-config" command)
9316 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9317 #t)))))
9318 (inputs
9319 `(("bzip2" ,bzip2)
9320 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9321 ("zlib" ,zlib)))
9322 (native-inputs
9323 `(("gettext" ,gettext-minimal))) ;for msgfmt
9324 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9325 (synopsis "Multiplayer platform game with bunnies")
9326 (description "You, as a bunny, have to jump on your opponents to make them
9327 explode. It is a true multiplayer game; you cannot play this alone. You can
9328 play with up to four players simultaneously. It has network support.")
9329 (license license:gpl2+)))
9330
9331 (define-public hedgewars
9332 (package
9333 (name "hedgewars")
9334 (version "1.0.0")
9335 (source (origin
9336 (method url-fetch)
9337 (uri (string-append "https://www.hedgewars.org/download/releases/"
9338 "hedgewars-src-" version ".tar.bz2"))
9339 (sha256
9340 (base32
9341 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9342 (build-system cmake-build-system)
9343 (arguments
9344 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9345 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9346 ;; a Pascal to C translator and Clang instead.
9347 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9348 "-Dhaskell_flags=-dynamic;-fPIC")
9349 #:phases
9350 (modify-phases %standard-phases
9351 (add-before 'configure 'fix-sources
9352 (lambda _
9353 ;; Fix a missing 'include'.
9354 (substitute* "QTfrontend/ui/page/pagegamestats.cpp"
9355 (("#include <QSizePolicy>")
9356 "#include <QSizePolicy>\n#include <QPainterPath>"))))
9357 (replace 'check
9358 (lambda _ (invoke "ctest")))
9359 (add-after 'install 'install-icon
9360 (lambda _
9361 ;; Install icon for the desktop file.
9362 (let* ((out (assoc-ref %outputs "out"))
9363 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9364 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9365 (install-file "misc/hedgewars.png" icons)))
9366 #t)))))
9367 (inputs
9368 `(("ffmpeg" ,ffmpeg)
9369 ("freeglut" ,freeglut)
9370 ("ghc-entropy" ,ghc-entropy)
9371 ("ghc-hslogger" ,ghc-hslogger)
9372 ("ghc-network" ,ghc-network)
9373 ("ghc-random" ,ghc-random)
9374 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9375 ("ghc-sandi" ,ghc-sandi)
9376 ("ghc-sha" ,ghc-sha)
9377 ("ghc-utf8-string" ,ghc-utf8-string)
9378 ("ghc-vector" ,ghc-vector)
9379 ("ghc-zlib" ,ghc-zlib)
9380 ("glew" ,glew)
9381 ("libpng" ,libpng)
9382 ("lua" ,lua-5.1)
9383 ("physfs" ,physfs)
9384 ("qtbase" ,qtbase)
9385 ("sdl" ,(sdl-union
9386 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9387 (native-inputs
9388 `(("clang" ,clang)
9389 ("ghc" ,ghc)
9390 ("pkg-config" ,pkg-config)
9391 ("qttools" ,qttools)))
9392 (home-page "https://hedgewars.org/")
9393 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9394 (description
9395 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9396 featuring the antics of pink hedgehogs with attitude as they battle from the
9397 depths of hell to the depths of space.
9398
9399 As commander, it's your job to assemble your crack team of hedgehog soldiers
9400 and bring the war to your enemy.")
9401 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9402 ;; scripts are distributed under various terms.
9403 (license (list license:gpl2
9404 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9405 license:expat license:fdl1.3+ license:public-domain
9406 license:zlib))))
9407
9408 (define-public harmonist
9409 (package
9410 (name "harmonist")
9411 (version "0.3.0")
9412 (source (origin
9413 (method git-fetch)
9414 (uri (git-reference
9415 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9416 (commit (string-append "v" version))))
9417 (file-name (git-file-name name version))
9418 (sha256
9419 (base32
9420 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
9421 (build-system go-build-system)
9422 (arguments
9423 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9424 (inputs
9425 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
9426 (home-page "https://harmonist.tuxfamily.org/")
9427 (synopsis "Stealth coffee-break roguelike game")
9428 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9429 coffee-break roguelike game. The game has a heavy focus on tactical
9430 positioning, light and noise mechanisms, making use of various terrain types
9431 and cones of view for monsters. Aiming for a replayable streamlined experience,
9432 the game avoids complex inventory management and character building, relying
9433 on items and player adaptability for character progression.")
9434 (license license:isc)))
9435
9436 (define-public harmonist-tk
9437 (package
9438 (inherit harmonist)
9439 (name "harmonist-tk")
9440 (arguments
9441 (append
9442 (package-arguments harmonist)
9443 `(#:phases
9444 (modify-phases %standard-phases
9445 (replace 'build
9446 (lambda _
9447 (invoke "go" "install" "-v" "-x" "--tags" "tk"
9448 "git.tuxfamily.org/harmonist/harmonist")))
9449 (replace 'check
9450 (lambda _
9451 (invoke "go" "test" "--tags" "tk"
9452 "git.tuxfamily.org/harmonist/harmonist")))))))
9453 (inputs
9454 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
9455
9456 (define-public drascula
9457 (package
9458 (name "drascula")
9459 (version "1.0")
9460 (source (origin
9461 (method url-fetch)
9462 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9463 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9464 "drascula-" version ".zip"))
9465 (sha256
9466 (base32
9467 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9468 (build-system trivial-build-system)
9469 (arguments
9470 `(#:modules ((guix build utils))
9471 #:builder
9472 (begin
9473 (use-modules (guix build utils)
9474 (ice-9 match))
9475 (let* ((out (assoc-ref %outputs "out"))
9476 (share (string-append out "/share/drascula"))
9477 (scummvm (assoc-ref %build-inputs "scummvm")))
9478 ;; Install data.
9479 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9480 "/bin/unzip"))
9481 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9482 (for-each
9483 (lambda (input)
9484 (invoke unzip
9485 "-j"
9486 (assoc-ref %build-inputs input)
9487 "-x" "__MACOSX")
9488 ;; Every input provides "readme.txt", and we want to
9489 ;; preserve them all. Therefore we rename them first.
9490 (match input
9491 ("drascula-int"
9492 (rename-file "readme.txt" "readme-international.txt"))
9493 ("drascula-audio"
9494 (rename-file "readme.txt" "readme-audio.txt"))
9495 (_ #f))
9496 ;; Install documentation.
9497 (for-each (lambda (f) (install-file f doc))
9498 (find-files "." "\\.(txt|doc)$"))
9499 ;; Install data.
9500 (for-each (lambda (f) (install-file f share))
9501 (find-files "." "\\.(ogg|00[0-9])$")))
9502 '("drascula-audio" "drascula-int" "source")))
9503 ;; Create standalone executable.
9504 (let* ((bin (string-append out "/bin"))
9505 (executable (string-append bin "/drascula"))
9506 (bash (string-append (assoc-ref %build-inputs "bash")
9507 "/bin/bash")))
9508 (mkdir-p bin)
9509 (with-output-to-file executable
9510 (lambda ()
9511 (format #t "#!~a~%" bash)
9512 (format #t
9513 "exec ~a/bin/scummvm --path=~a drascula~%"
9514 scummvm share)))
9515 (chmod executable #o755))
9516 ;; Create desktop file. There is no dedicated icon for the
9517 ;; game, so we borrow SCUMMVM's.
9518 (let ((apps (string-append out "/share/applications")))
9519 (mkdir-p apps)
9520 (make-desktop-entry-file
9521 (string-append apps "/drascula.desktop")
9522 #:name "Drascula: The Vampire Strikes Back"
9523 #:generic-name "Drascula"
9524 #:exec (string-append out "/bin/drascula")
9525 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9526 #:categories '("AdventureGame" "Game" "RolePlaying")
9527 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9528 #:comment '((#f "Classic 2D point and click adventure game")
9529 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9530 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9531 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9532 #t))))
9533 (native-inputs
9534 `(("bash" ,bash)
9535 ("unzip" ,unzip)))
9536 (inputs
9537 `(("scummvm" ,scummvm)
9538 ("drascula-int"
9539 ,(let ((version "1.1"))
9540 (origin
9541 (method url-fetch)
9542 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9543 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9544 "drascula-int-" version ".zip"))
9545 (sha256
9546 (base32
9547 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9548 ("drascula-audio"
9549 ,(let ((version "2.0"))
9550 (origin
9551 (method url-fetch)
9552 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9553 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9554 "drascula-audio-" version ".zip"))
9555 (sha256
9556 (base32
9557 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9558 (home-page "https://www.scummvm.org")
9559 (synopsis "Classic 2D point and click adventure game")
9560 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9561 point and click adventure game.
9562
9563 In Drascula you play the role of John Hacker, a British estate agent, that
9564 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9565 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9566 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9567 the World and demonstrating that he is even more evil than his brother Vlad.")
9568 ;; Drascula uses a BSD-like license.
9569 (license (license:non-copyleft "file:///readme.txt"))))
9570
9571 (define (make-lure-package name language hash)
9572 (package
9573 (name name)
9574 (version "1.1")
9575 (source
9576 (origin
9577 (method url-fetch)
9578 (uri (string-append
9579 "mirror://sourceforge/scummvm/extras/"
9580 "Lure%20of%20the%20Temptress/"
9581 name "-" version ".zip"))
9582 (sha256
9583 (base32 hash))))
9584 (build-system trivial-build-system)
9585 (arguments
9586 `(#:modules ((guix build utils))
9587 #:builder
9588 (begin
9589 (use-modules (guix build utils))
9590 (let* ((out (assoc-ref %outputs "out"))
9591 (share (string-append out "/share"))
9592 (data (string-append share "/" ,name "/" ,language))
9593 (apps (string-append share "/applications"))
9594 (bin (string-append out "/bin"))
9595 (executable (string-append bin "/" ,name))
9596 (scummvm (assoc-ref %build-inputs "scummvm")))
9597 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9598 "/bin/unzip")))
9599 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9600 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9601 (for-each (lambda (f) (install-file f doc))
9602 (find-files "." "\\.(txt|PDF|pdf)$")))
9603 (for-each (lambda (f) (install-file f data))
9604 (find-files "." "\\.(vga|VGA)$"))
9605 ;; Build the executable.
9606 (mkdir-p bin)
9607 (let ((bash (assoc-ref %build-inputs "bash")))
9608 (with-output-to-file executable
9609 (lambda ()
9610 (format #t "#!~a/bin/bash~%" bash)
9611 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9612 scummvm ,language data))))
9613 (chmod executable #o755)
9614 ;; Create desktop file. There is no dedicated
9615 ;; icon for the game, so we borrow SCUMMVM's.
9616 (mkdir-p apps)
9617 (with-output-to-file (string-append apps "/" ,name ".desktop")
9618 (lambda _
9619 (format #t
9620 "[Desktop Entry]~@
9621 Name=Lure of the Temptress~@
9622 GenericName=Lure~@
9623 Exec=~a~@
9624 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9625 Categories=AdventureGame;Game;RolePlaying;~@
9626 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9627 Comment=Classic 2D point and click adventure game~@
9628 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9629 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9630 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9631 Type=Application~%"
9632 executable scummvm)))
9633 #t))))
9634 (native-inputs
9635 `(("unzip" ,unzip)))
9636 (inputs
9637 `(("bash" ,bash)
9638 ("scummvm" ,scummvm)))
9639 (home-page "https://www.scummvm.org")
9640 (synopsis "2D point and click fantasy adventure game")
9641 (description
9642 "Lure of the Temptress is a classic 2D point and click adventure game.
9643
9644 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9645 intents and purposes, a good man. After decades of unrest the King has united
9646 the warring factions in his kingdom and all his lands are at peace, except
9647 a remote region around a town called Turnvale. A revolt has recently taken
9648 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9649 Selena, the titular temptress. The king calls together his finest horsemen
9650 and heads off (with you in tow) to Turnvale just to witness how hellish
9651 mercenary monsters called Skorl are invading the town.
9652
9653 The king's men are defeated, the king is killed and you fall of your horse and
9654 bang your head heavily on the ground. You have been *unconscious for a while
9655 when you realize that you are in a dingy cell guarded by a not so friendly
9656 Skorl. Maybe it would be an idea to try and escape...")
9657 (license (license:non-copyleft "file:///README"))))
9658
9659 (define-public lure
9660 (make-lure-package
9661 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9662
9663 (define-public lure-de
9664 (make-lure-package
9665 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9666
9667 (define-public lure-es
9668 (make-lure-package
9669 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9670
9671 (define-public lure-fr
9672 (make-lure-package
9673 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9674
9675 (define-public lure-it
9676 (make-lure-package
9677 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9678
9679 (define (make-queen-package name file-prefix release language hash)
9680 (package
9681 (name name)
9682 (version release)
9683 (source
9684 (origin
9685 (method url-fetch)
9686 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9687 "Flight%20of%20the%20Amazon%20Queen/"
9688 file-prefix release ".zip"))
9689 (sha256
9690 (base32 hash))))
9691 (build-system trivial-build-system)
9692 (arguments
9693 `(#:modules ((guix build utils))
9694 #:builder
9695 (begin
9696 (use-modules (guix build utils))
9697 (let* ((out (assoc-ref %outputs "out"))
9698 (share (string-append out "/share"))
9699 (data (string-append share "/" ,name))
9700 (apps (string-append share "/applications"))
9701 (bin (string-append out "/bin"))
9702 (executable (string-append bin "/" ,name))
9703 (scummvm (assoc-ref %build-inputs "scummvm")))
9704 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9705 "/bin/unzip")))
9706 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9707 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9708 (install-file "readme.txt" doc))
9709 (install-file "queen.1c" data)
9710 (mkdir-p bin)
9711 (let ((bash (assoc-ref %build-inputs "bash")))
9712 (with-output-to-file executable
9713 (lambda ()
9714 (format #t "#!~a/bin/bash~%" bash)
9715 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9716 scummvm data))))
9717 (chmod executable #o755)
9718 ;; Create desktop file. There is no dedicated
9719 ;; icon for the game, so we borrow SCUMMVM's.
9720 (mkdir-p apps)
9721 (with-output-to-file (string-append apps "/" ,name ".desktop")
9722 (lambda _
9723 (format #t
9724 "[Desktop Entry]~@
9725 Name=Flight of the Amazon Queen~@
9726 GenericName=Queen~@
9727 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~@
9728 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~@
9729 Type=Application~@
9730 Exec=~a~@
9731 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9732 Categories=AdventureGame;Game;RolePlaying;~@
9733 Keywords=adventure;game;roleplaying;fantasy;~%"
9734 executable scummvm))))
9735 #t)))
9736 (native-inputs
9737 `(("unzip" ,unzip)))
9738 (inputs
9739 `(("bash" ,bash)
9740 ("scummvm" ,scummvm)))
9741 (home-page "https://www.scummvm.org/")
9742 (synopsis "Classic 2D point and click adventure game")
9743 (description "Flight of the Amazon Queen is a 2D point-and-click
9744 adventure game set in the 1940s.
9745
9746 You assume the role of Joe King, a pilot for hire who is given the job
9747 of flying Faye Russell (a famous movie star) into the Amazon jungle
9748 for a photo shoot. Of course, things never go according to plans.
9749 After an unfortunate turn of events they find themselves stranded in
9750 the heart of the Amazon jungle, where Joe will embark on a quest to
9751 rescue a kidnapped princess and in the process, discover the true
9752 sinister intentions of a suspiciously located Lederhosen company. In
9753 a rich 2D environment, Joe will cross paths with a variety of unlikely
9754 jungle inhabitants including, but not limited to, a tribe of Amazon
9755 women and 6-foot-tall pygmies.")
9756 (license (license:non-copyleft "file:///readme.txt"))))
9757
9758 (define-public queen
9759 (make-queen-package
9760 "queen" "FOTAQ_Talkie-" "1.1" "en"
9761 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9762
9763 (define-public queen-de
9764 (make-queen-package
9765 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9766 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9767
9768 (define-public queen-fr
9769 (make-queen-package
9770 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9771 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9772
9773 (define-public queen-it
9774 (make-queen-package
9775 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9776 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9777
9778 (define-public sky
9779 (package
9780 (name "sky")
9781 (version "1.2") ;1.3 is floppy version
9782 (source
9783 (origin
9784 (method url-fetch)
9785 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9786 "Beneath%20a%20Steel%20Sky/"
9787 "bass-cd-" version ".zip"))
9788 (sha256
9789 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9790 (build-system trivial-build-system)
9791 (arguments
9792 `(#:modules ((guix build utils))
9793 #:builder
9794 (begin
9795 (use-modules (guix build utils))
9796 (let* ((out (assoc-ref %outputs "out"))
9797 (share (string-append out "/share"))
9798 (data (string-append share "/" ,name))
9799 (apps (string-append share "/applications"))
9800 (bin (string-append out "/bin"))
9801 (executable (string-append bin "/" ,name))
9802 (scummvm (assoc-ref %build-inputs "scummvm")))
9803 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9804 "/bin/unzip")))
9805 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9806 (let ((doc (string-append share "/doc/bass-" ,version)))
9807 (install-file "readme.txt" doc))
9808 (for-each (lambda (f) (install-file f data))
9809 (find-files "." "^sky\\."))
9810 ;; Build the executable.
9811 (mkdir-p bin)
9812 (let ((bash (assoc-ref %build-inputs "bash")))
9813 (with-output-to-file executable
9814 (lambda ()
9815 (format #t "#!~a/bin/bash~%" bash)
9816 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9817 (chmod executable #o755)
9818 ;; Create desktop file. There is no dedicated
9819 ;; icon for the game, so we borrow SCUMMVM's.
9820 (mkdir-p apps)
9821 (with-output-to-file (string-append apps "/" ,name ".desktop")
9822 (lambda _
9823 (format #t
9824 "[Desktop Entry]~@
9825 Name=Beneath a Steel Sky~@
9826 GenericName=Bass~@
9827 Exec=~a~@
9828 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9829 Categories=AdventureGame;Game;RolePlaying;~@
9830 Keywords=adventure;game;roleplaying;cyberpunk;~@
9831 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9832 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9833 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9834 Type=Application~%"
9835 executable scummvm)))
9836 #t))))
9837 (native-inputs
9838 `(("unzip" ,unzip)))
9839 (inputs
9840 `(("bash" ,bash)
9841 ("scummvm" ,scummvm)))
9842 (home-page "https://www.scummvm.org/")
9843 (synopsis "Classic 2D point and click science-fiction adventure game")
9844 (description
9845 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9846 post-apocalyptic vision of the future. It revolves around Union City,
9847 where selfishness, rivalry, and corruption by its citizens seems to be
9848 all too common, those who can afford it live underground, away from
9849 the pollution and social problems which are plaguing the city.
9850
9851 You take on the role of Robert Foster, an outcast of sorts from the
9852 city since a boy who was raised in a remote environment outside of
9853 Union City simply termed ``the gap''. Robert's mother took him away
9854 from Union City as a child on their way to ``Hobart'' but the
9855 helicopter crashed on its way. Unfortunately, Robert's mother died,
9856 but he survived and was left to be raised by a local tribe from the
9857 gap.
9858
9859 Years later, Union City security drops by and abducts Robert, killing
9860 his tribe in the process; upon reaching the city the helicopter taking
9861 him there crashes with him escaping, high upon a tower block in the
9862 middle of the city. He sets out to discover the truth about his past,
9863 and to seek vengeance for the killing of his tribe.")
9864 (license (license:non-copyleft "file:///readme.txt"))))
9865
9866 (define-public gnurobots
9867 (package
9868 (name "gnurobots")
9869 (version "1.2.0")
9870 (source
9871 (origin
9872 (method url-fetch)
9873 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9874 version ".tar.gz"))
9875 (sha256
9876 (base32
9877 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9878 (build-system gnu-build-system)
9879 (inputs
9880 `(("glib" ,glib)
9881 ("gtk+" ,gtk+-2)
9882 ("vte" ,vte/gtk+-2)
9883 ("readline" ,readline)
9884 ("guile" ,guile-1.8)))
9885 (native-inputs
9886 `(("pkg-config" ,pkg-config)))
9887 (arguments
9888 `(#:make-flags
9889 (list
9890 ;; Do not abort build on "deprecated-declarations" warnings.
9891 "CFLAGS=-Wno-error=deprecated-declarations"
9892 ;; Find readline headers in sub-directory.
9893 (string-append "READLINE_CFLAGS=-I"
9894 (assoc-ref %build-inputs "readline")
9895 "/include/readline/"))
9896 #:phases
9897 (modify-phases %standard-phases
9898 (add-after 'install 'install-doc
9899 (lambda* (#:key outputs #:allow-other-keys)
9900 (install-file "doc/Robots-HOWTO"
9901 (string-append (assoc-ref outputs "out")
9902 "/share/doc/gnurobots-"
9903 ,version))
9904 #t)))))
9905 (home-page "https://www.gnu.org/software/gnurobots/")
9906 (synopsis "Program a little robot and watch it explore a world")
9907 (description
9908 "GNU Robots is a game in which you program a robot to explore a world
9909 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9910 the game is to stay alive and collect prizes. The robot program conveniently
9911 may be written in a plain text file in the Scheme programming language.")
9912 (license license:gpl3+)))
9913
9914 (define-public ri-li
9915 (package
9916 (name "ri-li")
9917 (version "2.0.1")
9918 (source (origin
9919 (method url-fetch)
9920 (uri (string-append "mirror://sourceforge/ri-li/"
9921 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9922 "Ri-li-" version ".tar.bz2"))
9923 (sha256
9924 (base32
9925 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9926 ;; Taken from
9927 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9928 ;; It doesn't build otherwise.
9929 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9930 (build-system gnu-build-system)
9931 (arguments
9932 `(#:phases
9933 (modify-phases %standard-phases
9934 ;; Remove "gentoo" subdirectory from Makefile, as it is
9935 ;; missing a make file and generates a build failure.
9936 (add-after 'configure 'fix-build
9937 (lambda _
9938 (substitute* "Makefile"
9939 ((" gentoo") ""))
9940 #t))
9941 (add-after 'install 'install-desktop-file
9942 (lambda* (#:key outputs #:allow-other-keys)
9943 (let* ((out (assoc-ref outputs "out"))
9944 (apps (string-append out "/share/applications"))
9945 (pixmaps (string-append out "/share/pixmaps")))
9946 (for-each (lambda (f) (install-file f pixmaps))
9947 (find-files "data" "\\.(png|ico)$"))
9948 (mkdir-p apps)
9949 (with-output-to-file (string-append apps "/ri-li.desktop")
9950 (lambda _
9951 (format #t
9952 "[Desktop Entry]~@
9953 Name=Ri-li~@
9954 Exec=~a/bin/Ri_li~@
9955 Icon=~a/Ri-li-icon-32x32.png~@
9956 Categories=Game;ArcadeGame;~@
9957 Keywords=toy;train;wooden;snake-like;engine;~@
9958 Comment=a toy simulator game~@
9959 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9960 Comment[fr]=un jeu de petit train~@
9961 Comment[ro_RO]=un joc cu un tren de jucărie~@
9962 Terminal=false~@
9963 Type=Application~%"
9964 out pixmaps))))
9965 #t))
9966 (add-after 'install-desktop-file 'remove-spurious-files
9967 ;; Delete redundant files already installed somewhere else.
9968 (lambda* (#:key outputs #:allow-other-keys)
9969 (let ((out (assoc-ref outputs "out")))
9970 (for-each delete-file
9971 (find-files (string-append out "/share/Ri-li")
9972 "\\.(png|ico)|COPYING"))
9973 #t))))))
9974 (inputs
9975 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9976 (home-page "http://www.ri-li.org")
9977 (synopsis "Toy train simulation game")
9978 (description "Ri-li is a game in which you drive a wooden toy
9979 steam locomotive across many levels and collect all the coaches to
9980 win.")
9981 ;; The project is dual-licensed GPL2+ and GPL3+.
9982 (license (list license:gpl2+ license:gpl3+))))
9983
9984 (define-public freeorion
9985 (package
9986 (name "freeorion")
9987 (version "0.4.10")
9988 (source
9989 (origin
9990 (method url-fetch)
9991 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9992 "download/v" version "/FreeOrion_v" version
9993 "_2020-07-10.f3d403e_Source.tar.gz"))
9994 (sha256
9995 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9996 (modules '((guix build utils)))
9997 (snippet
9998 '(begin
9999 ;; There are some bundled fonts.
10000 (for-each delete-file-recursively '("default/data/fonts"))
10001 #t))))
10002 (build-system cmake-build-system)
10003 (arguments
10004 '(#:tests? #f ;no test
10005 #:phases
10006 (modify-phases %standard-phases
10007 (add-after 'unpack 'unbundle-fonts
10008 (lambda* (#:key inputs #:allow-other-keys)
10009 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
10010 "/share/fonts/truetype/")))
10011 (substitute* "UI/ClientUI.cpp"
10012 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
10013 all type)
10014 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
10015 #t))))))
10016 (inputs
10017 `(("boost" ,boost)
10018 ("boost_signals" ,boost-signals2)
10019 ("font-dejavu" ,font-dejavu)
10020 ("font-roboto" ,font-google-roboto)
10021 ("freetype2" ,freetype)
10022 ("glew" ,glew)
10023 ("glu" ,glu)
10024 ("libogg" ,libogg)
10025 ("libpng" ,libpng)
10026 ("libvorbis" ,libvorbis)
10027 ("openal" ,openal)
10028 ("python" ,python)
10029 ("sdl2" ,sdl2)
10030 ("zlib" ,zlib)))
10031 (home-page "https://www.freeorion.org/index.php/Main_Page")
10032 (synopsis "Turn-based space empire and galactic conquest computer game")
10033 (description
10034 "FreeOrion is a turn-based space empire and galactic conquest (4X)
10035 computer game being designed and built by the FreeOrion project. Control an
10036 empire with the goal of exploring the galaxy, expanding your territory,
10037 exploiting the resources, and exterminating rival alien empires. FreeOrion is
10038 inspired by the tradition of the Master of Orion games, but is not a clone or
10039 remake of that series or any other game.")
10040 ;; Source code is released under gpl2. Artwork, music and sounds, and
10041 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
10042 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
10043 ;; released under lgpl2.1+.
10044 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
10045
10046 (define-public leela-zero
10047 (package
10048 (name "leela-zero")
10049 (version "0.17")
10050 (source
10051 (origin
10052 (method git-fetch)
10053 (uri (git-reference
10054 (url "https://github.com/leela-zero/leela-zero")
10055 (commit (string-append "v" version))))
10056 (file-name (git-file-name name version))
10057 (sha256
10058 (base32
10059 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
10060 (patches (search-patches "leela-zero-gtest.patch"))))
10061 (build-system cmake-build-system)
10062 (native-inputs
10063 `(("googletest" ,googletest)))
10064 (inputs
10065 `(("boost" ,boost)
10066 ("ocl-icd" ,ocl-icd)
10067 ("openblas" ,openblas)
10068 ("opencl-headers" ,opencl-headers)
10069 ("qtbase" ,qtbase)
10070 ("zlib" ,zlib)))
10071 (arguments
10072 '(#:configure-flags '("-DUSE_BLAS=YES")
10073 #:phases (modify-phases %standard-phases
10074 (add-before 'configure 'fix-tests
10075 (lambda* (#:key outputs #:allow-other-keys)
10076 (let ((home (getcwd)))
10077 (setenv "HOME" home)
10078 (substitute* "src/tests/gtests.cpp"
10079 (("\\.\\./src/tests/0k\\.txt")
10080 (string-append home "/src/tests/0k.txt"))
10081 (("cfg_gtp_mode = true;")
10082 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
10083 #t))
10084 (replace 'check
10085 (lambda _
10086 (invoke "./tests"))))))
10087 (home-page "https://github.com/leela-zero/leela-zero")
10088 (synopsis "Program playing the game of Go")
10089 (description
10090 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
10091 the AlphaGo Zero paper. The current best network weights file for the engine
10092 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
10093 (license license:gpl3+)))
10094
10095 (define-public q5go
10096 (package
10097 (name "q5go")
10098 (version "1.0")
10099 (source (origin
10100 (method git-fetch)
10101 (uri (git-reference
10102 (url "https://github.com/bernds/q5Go")
10103 (commit (string-append "q5go-" version))))
10104 (file-name (git-file-name name version))
10105 (sha256
10106 (base32
10107 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
10108 (build-system gnu-build-system)
10109 (native-inputs
10110 `(("pkg-config" ,pkg-config)))
10111 (inputs
10112 `(("qtbase" ,qtbase)
10113 ("qtmultimedia" ,qtmultimedia)
10114 ("qtsvg" ,qtsvg)))
10115 (arguments
10116 '(#:phases
10117 (modify-phases %standard-phases
10118 (add-after 'unpack 'fix-configure-script
10119 (lambda _
10120 ;; Bypass the unavailable qtchooser program.
10121 (substitute* "configure"
10122 (("test -z \"QTCHOOSER\"")
10123 "false")
10124 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
10125 command))
10126 #t))
10127 (add-after 'unpack 'fix-paths
10128 (lambda _
10129 (substitute* '("src/pics/Makefile.in"
10130 "src/translations/Makefile.in")
10131 (("\\$\\(datadir\\)/qGo/")
10132 "$(datadir)/q5go/"))
10133 #t))
10134 (add-after 'install 'install-desktop-file
10135 (lambda* (#:key outputs #:allow-other-keys)
10136 (let* ((out (assoc-ref outputs "out"))
10137 (apps (string-append out "/share/applications"))
10138 (pics (string-append out "/share/q5go/pics")))
10139 (delete-file-recursively (string-append out "/share/applnk"))
10140 (delete-file-recursively (string-append out "/share/mimelnk"))
10141 (install-file "../source/src/pics/Bowl.ico" pics)
10142 (mkdir-p apps)
10143 (with-output-to-file (string-append apps "/q5go.desktop")
10144 (lambda _
10145 (format #t
10146 "[Desktop Entry]~@
10147 Name=q5go~@
10148 Exec=~a/bin/q5go~@
10149 Icon=~a/Bowl.ico~@
10150 Categories=Game;~@
10151 Comment=Game of Go~@
10152 Comment[de]=Spiel des Go~@
10153 Comment[eo]=Goo~@
10154 Comment[es]=Juego de Go~@
10155 Comment[fr]=Jeu de Go~@
10156 Comment[ja]=囲碁~@
10157 Comment[ko]=바둑~@
10158 Comment[zh]=围棋~@
10159 Terminal=false~@
10160 Type=Application~%"
10161 out pics))))
10162 #t)))))
10163 (synopsis "Qt GUI to play the game of Go")
10164 (description
10165 "This a tool for Go players which performs the following functions:
10166 @itemize
10167 @item SGF editor,
10168 @item Analysis frontend for Leela Zero (or compatible engines),
10169 @item GTP interface (to play against an engine),
10170 @item IGS client (to play on the internet),
10171 @item Export games to a variety of formats.
10172 @end itemize")
10173 (home-page "https://github.com/bernds/q5Go")
10174 (license license:gpl2+)))
10175
10176 (define-public ktuberling
10177 (package
10178 (name "ktuberling")
10179 (version "20.12.0")
10180 (source
10181 (origin
10182 (method url-fetch)
10183 (uri (string-append "mirror://kde/stable/release-service/" version
10184 "/src/ktuberling-" version ".tar.xz"))
10185 (sha256
10186 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
10187 (build-system qt-build-system)
10188 (native-inputs
10189 `(("extra-cmake-modules" ,extra-cmake-modules)
10190 ("kdoctools" ,kdoctools)
10191 ("perl" ,perl)))
10192 (inputs
10193 `(("kcompletion" ,kcompletion)
10194 ("kconfigwidgets" ,kconfigwidgets)
10195 ("kcoreaddons" ,kcoreaddons)
10196 ("kcrash" ,kcrash)
10197 ("kdbusaddons" ,kdbusaddons)
10198 ("ki18n" ,ki18n)
10199 ("kio" ,kio)
10200 ("kwidgetsaddons" ,kwidgetsaddons)
10201 ("kxmlgui" ,kxmlgui)
10202 ("libkdegames" ,libkdegames)
10203 ("python" ,python-wrapper)
10204 ("qtbase" ,qtbase)
10205 ("qtmultimedia" ,qtmultimedia)
10206 ("qtdeclarative" ,qtdeclarative)
10207 ("qtsvg" ,qtsvg)))
10208 (home-page "https://games.kde.org/")
10209 (synopsis "Stamp drawing toy")
10210 (description "KTuberling is a drawing toy intended for small children and
10211 adults who remain young at heart. The game has no winner; the only purpose is
10212 to make the funniest faces you can. Several activities are possible, e.g.:
10213
10214 @itemize
10215 @item Give the potato a funny face, clothes, and other goodies
10216 @item Build a small town, complete with school, zoo, and fire department
10217 @item Create a fantastic moonscape with spaceships and aliens
10218 @item Top a pizza
10219 @end itemize
10220
10221 KTuberling can speak the name of each the object in several languages,
10222 to assist in learning basic vocabulary.
10223
10224 This package is part of the KDE games module.")
10225 (license (list license:gpl2+ license:fdl1.2+))))
10226
10227 (define-public picmi
10228 (package
10229 (name "picmi")
10230 (version "20.12.0")
10231 (source
10232 (origin
10233 (method url-fetch)
10234 (uri (string-append "mirror://kde/stable/release-service/" version
10235 "/src/picmi-" version ".tar.xz"))
10236 (sha256
10237 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
10238 (build-system qt-build-system)
10239 (native-inputs
10240 `(("extra-cmake-modules" ,extra-cmake-modules)
10241 ("kdoctools" ,kdoctools)))
10242 (inputs
10243 `(("kcoreaddons" ,kcoreaddons)
10244 ("kcrash" ,kcrash)
10245 ("kdbusaddons" ,kdbusaddons)
10246 ("kdeclarative" ,kdeclarative)
10247 ("ki18n" ,ki18n)
10248 ("kio" ,kio)
10249 ("knewstuff" ,knewstuff)
10250 ("kxmlgui" ,kxmlgui)
10251 ("libkdegames" ,libkdegames)
10252 ("qtbase" ,qtbase)
10253 ("qtdeclarative" ,qtdeclarative)
10254 ("qtsvg" ,qtsvg)))
10255 (home-page "https://games.kde.org/")
10256 (synopsis "Number logic game")
10257 (description "Picmi is a number logic game in which cells in a grid have
10258 to be colored or left blank according to numbers given at the side of the
10259 grid. The aim is to reveal a hidden picture.
10260
10261 This package is part of the KDE games module.")
10262 (license (list license:gpl2+ license:fdl1.2+))))
10263
10264 (define-public kolf
10265 (package
10266 (name "kolf")
10267 (version "20.12.0")
10268 (source
10269 (origin
10270 (method url-fetch)
10271 (uri (string-append "mirror://kde/stable/release-service/" version
10272 "/src/kolf-" version ".tar.xz"))
10273 (sha256
10274 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10275 (build-system qt-build-system)
10276 (native-inputs
10277 `(("extra-cmake-modules" ,extra-cmake-modules)
10278 ("kdoctools" ,kdoctools)))
10279 (inputs
10280 `(("kcompletion" ,kcompletion)
10281 ("kconfigwidgets" ,kconfigwidgets)
10282 ("kcoreaddons" ,kcoreaddons)
10283 ("kcrash" ,kcrash)
10284 ("kdbusaddons" ,kdbusaddons)
10285 ("ki18n" ,ki18n)
10286 ("kio" ,kio)
10287 ("kwidgetsaddons" ,kwidgetsaddons)
10288 ("kxmlgui" ,kxmlgui)
10289 ("ktextwidgets" ,ktextwidgets)
10290 ("libkdegames" ,libkdegames)
10291 ("qtbase" ,qtbase)
10292 ("qtdeclarative" ,qtdeclarative)))
10293 (home-page "https://games.kde.org/")
10294 (synopsis "Miniature golf game")
10295 (description "Kolf is a miniature golf game for one to ten players. The
10296 game is played from an overhead view, with a short bar representing the golf
10297 club. Kolf features many different types of objects, such as water hazards,
10298 slopes, sand traps, and black holes (warps), among others.
10299
10300 Features are:
10301 @itemize
10302 @item Single and Multi-player (up to ten players) modes
10303 @item High scores table
10304 @item Dynamic courses
10305 @item Third-party courses
10306 @item Course editor
10307 @end itemize
10308
10309 This package is part of the KDE games module.")
10310 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10311
10312 (define-public libkmahjongg
10313 (package
10314 (name "libkmahjongg")
10315 (version "20.12.0")
10316 (source
10317 (origin
10318 (method url-fetch)
10319 (uri (string-append "mirror://kde/stable/release-service/"
10320 version "/src/libkmahjongg-" version ".tar.xz"))
10321 (sha256
10322 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10323 (build-system qt-build-system)
10324 (native-inputs
10325 `(("extra-cmake-modules" ,extra-cmake-modules)))
10326 (inputs
10327 `(("kauth" ,kauth)
10328 ("kcompletion" ,kcompletion)
10329 ;("kconfig" ,kconfig)
10330 ("kcodecs" ,kcodecs)
10331 ("kconfigwidgets" ,kconfigwidgets)
10332 ("kcoreaddons" ,kcoreaddons)
10333 ("ki18n" ,ki18n)
10334 ("kwidgetsaddons" ,kwidgetsaddons)
10335 ("qtbase" ,qtbase)
10336 ("qtsvg" ,qtsvg)))
10337 (home-page "https://games.kde.org/")
10338 (synopsis "Shared library for kmahjongg and kshisen")
10339 (description "Shared library and common files for kmahjongg, kshisen and
10340 other Mah Jongg like games.")
10341 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10342
10343 (define-public kmahjongg
10344 (package
10345 (name "kmahjongg")
10346 (version "20.12.0")
10347 (source
10348 (origin
10349 (method url-fetch)
10350 (uri (string-append "mirror://kde/stable/release-service/"
10351 version "/src/kmahjongg-" version ".tar.xz"))
10352 (sha256
10353 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10354 (build-system qt-build-system)
10355 (native-inputs
10356 `(("extra-cmake-modules" ,extra-cmake-modules)
10357 ("kdoctools" ,kdoctools)))
10358 (inputs
10359 `(("kcompletion" ,kcompletion)
10360 ("kcrash" ,kcrash)
10361 ("kdbusaddons" ,kdbusaddons)
10362 ("kdeclarative" ,kdeclarative)
10363 ("ki18n" ,ki18n)
10364 ("knewstuff" ,knewstuff)
10365 ("kxmlgui" ,kxmlgui)
10366 ("libkdegames" ,libkdegames)
10367 ("libkmahjongg" ,libkmahjongg)
10368 ("qtbase" ,qtbase)
10369 ("qtdeclarative" ,qtdeclarative)
10370 ("qtsvg" ,qtsvg)))
10371 (home-page "https://games.kde.org/")
10372 (synopsis "Tile laying patience")
10373 (description "In KMahjongg the tiles are scrambled and staked on top of
10374 each other to resemble a certain shape. The player is then expected to remove
10375 all the tiles off the game board by locating each tile's matching pair.
10376
10377 A variety of tile layouts are included, as well as an editor to create new
10378 layouts.
10379
10380 This package is part of the KDE games module.")
10381 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10382
10383 (define-public kshisen
10384 (package
10385 (name "kshisen")
10386 (version "20.12.0")
10387 (source
10388 (origin
10389 (method url-fetch)
10390 (uri (string-append "mirror://kde/stable/release-service/"
10391 version "/src/kshisen-" version ".tar.xz"))
10392 (sha256
10393 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10394 (build-system qt-build-system)
10395 (native-inputs
10396 `(("extra-cmake-modules" ,extra-cmake-modules)
10397 ;("perl" ,perl)
10398 ;("pkg-config" ,pkg-config)
10399 ("kdoctools" ,kdoctools)))
10400 (inputs
10401 `(("kauth" ,kauth)
10402 ("kcompletion" ,kcompletion)
10403 ("kconfigwidgets" ,kconfigwidgets)
10404 ("kcoreaddons" ,kcoreaddons)
10405 ("kcrash" ,kcrash)
10406 ("kdbusaddons" ,kdbusaddons)
10407 ("ki18n" ,ki18n)
10408 ("kxmlgui" ,kxmlgui)
10409 ("libkdegames" ,libkdegames)
10410 ("libkmahjongg" ,libkmahjongg)
10411 ("qtbase" ,qtbase)
10412 ("qtdeclarative" ,qtdeclarative)))
10413 (home-page "https://games.kde.org/")
10414 (synopsis "Shisen-Sho solitaire game")
10415 (description "KShisen is a solitaire-like game played using the standard
10416 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10417 scrambled tiles
10418
10419 This package is part of the KDE games module.")
10420 (license license:gpl2+)))
10421
10422 (define-public kajongg
10423 (package
10424 (name "kajongg")
10425 (version "20.12.0")
10426 (source
10427 (origin
10428 (method url-fetch)
10429 (uri (string-append "mirror://kde/stable/release-service/"
10430 version "/src/kajongg-" version ".tar.xz"))
10431 (sha256
10432 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10433 (build-system qt-build-system)
10434 (arguments
10435 `(#:phases
10436 (modify-phases %standard-phases
10437 (add-after 'install 'wrap
10438 (lambda* (#:key outputs #:allow-other-keys)
10439 (let ((out (assoc-ref outputs "out")))
10440 (wrap-program (string-append out "/bin/kajongg")
10441 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
10442 #t))))))
10443 (native-inputs
10444 `(("extra-cmake-modules" ,extra-cmake-modules)
10445 ;("perl" ,perl)
10446 ("kdoctools" ,kdoctools)))
10447 (inputs
10448 `(("kconfig" ,kconfig)
10449 ("kconfigwidgets" ,kconfigwidgets)
10450 ("kcoreaddons" ,kcoreaddons)
10451 ("ki18n" ,ki18n)
10452 ("libkmahjongg" ,libkmahjongg)
10453 ("python" ,python)
10454 ("python-twisted" ,python-twisted)
10455 ("python-pyqt" ,python-pyqt)
10456 ("qtbase" ,qtbase)
10457 ("qtsvg" ,qtsvg)))
10458 (home-page "https://games.kde.org/")
10459 (synopsis "Classical Mah Jongg game for 4 players")
10460 (description "Kajongg is the ancient Chinese board game for 4 players.
10461
10462 If you are looking for the Mah Jongg solitaire please use the application
10463 kmahjongg.
10464
10465 Kajongg can be used in two different ways: Scoring a manual game where you
10466 play as always and use Kajongg for the computation of scores and for
10467 bookkeeping. Or you can use Kajongg to play against any combination of other
10468 human players or computer players.
10469
10470 This package is part of the KDE games module.")
10471 (license (list license:gpl2+ license:fdl1.2+))))
10472
10473 (define-public kbreakout
10474 (package
10475 (name "kbreakout")
10476 (version "20.12.0")
10477 (source
10478 (origin
10479 (method url-fetch)
10480 (uri (string-append "mirror://kde/stable/release-service/" version
10481 "/src/kbreakout-" version ".tar.xz"))
10482 (sha256
10483 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10484 (build-system qt-build-system)
10485 (native-inputs
10486 `(("extra-cmake-modules" ,extra-cmake-modules)
10487 ("kdoctools" ,kdoctools)))
10488 (inputs
10489 `(("kcompletion" ,kcompletion)
10490 ("kconfig" ,kconfig)
10491 ("kconfigwidgets" ,kconfigwidgets)
10492 ("kcoreaddons" ,kcoreaddons)
10493 ("kcrash" ,kcrash)
10494 ("kdbusaddons" ,kdbusaddons)
10495 ("ki18n" ,ki18n)
10496 ("kwidgetsaddons" ,kwidgetsaddons)
10497 ("kxmlgui" ,kxmlgui)
10498 ("libkdegames" ,libkdegames)
10499 ("qtbase" ,qtbase)
10500 ("qtdeclarative" ,qtdeclarative)))
10501 (home-page "https://games.kde.org/")
10502 (synopsis "Breakout like game")
10503 (description "KBreakout is similar to the classics breakout and xboing,
10504 featuring a number of added graphical enhancements and effects. You control a
10505 paddle at the bottom of the playing-field, and must destroy bricks at the top
10506 by bouncing balls against them.
10507
10508 This package is part of the KDE games module.")
10509 (license (list license:gpl2+ license:fdl1.2+))))
10510
10511 (define-public kmines
10512 (package
10513 (name "kmines")
10514 (version "20.12.0")
10515 (source
10516 (origin
10517 (method url-fetch)
10518 (uri (string-append "mirror://kde/stable/release-service/" version
10519 "/src/kmines-" version ".tar.xz"))
10520 (sha256
10521 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10522 (build-system qt-build-system)
10523 (native-inputs
10524 `(("extra-cmake-modules" ,extra-cmake-modules)
10525 ("kdoctools" ,kdoctools)))
10526 (inputs
10527 `(("kcompletion" ,kcompletion)
10528 ("kconfig" ,kconfig)
10529 ("kconfigwidgets" ,kconfigwidgets)
10530 ("kcoreaddons" ,kcoreaddons)
10531 ("kcrash" ,kcrash)
10532 ("kdbusaddons" ,kdbusaddons)
10533 ("ki18n" ,ki18n)
10534 ("ktextwidgets" ,ktextwidgets)
10535 ("kwidgetsaddons" ,kwidgetsaddons)
10536 ("kxmlgui" ,kxmlgui)
10537 ("libkdegames" ,libkdegames)
10538 ("qtbase" ,qtbase)
10539 ("qtdeclarative" ,qtdeclarative)))
10540 (home-page "https://games.kde.org/")
10541 (synopsis "Classical mine sweeper game")
10542 (description "KMines is a classic Minesweeper game. The idea is to
10543 uncover all the squares without blowing up any mines. When a mine is blown
10544 up, the game is over.
10545
10546 This package is part of the KDE games module.")
10547 (license (list license:gpl2+ license:fdl1.2+))))
10548
10549 (define-public konquest
10550 (package
10551 (name "konquest")
10552 (version "20.12.0")
10553 (source
10554 (origin
10555 (method url-fetch)
10556 (uri (string-append "mirror://kde/stable/release-service/"
10557 version "/src/konquest-" version ".tar.xz"))
10558 (sha256
10559 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10560 (build-system qt-build-system)
10561 (native-inputs
10562 `(("extra-cmake-modules" ,extra-cmake-modules)
10563 ("kdoctools" ,kdoctools)))
10564 (inputs
10565 `(("kcompletion" ,kcompletion)
10566 ("kconfig" ,kconfig)
10567 ("kcoreaddons" ,kcoreaddons)
10568 ("kcrash" ,kcrash)
10569 ("kdbusaddons" ,kdbusaddons)
10570 ("kguiaddons" ,kguiaddons)
10571 ("ki18n" ,ki18n)
10572 ("kwidgetsaddons" ,kwidgetsaddons)
10573 ("kxmlgui" ,kxmlgui)
10574 ("libkdegames" ,libkdegames)
10575 ("qtbase" ,qtbase)
10576 ("qtdeclarative" ,qtdeclarative)
10577 ("qtsvg" ,qtsvg)))
10578 (home-page "https://games.kde.org/")
10579 (synopsis "Simple turn-based strategy game")
10580 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10581 conquer other planets by sending ships to them. The goal is to build an
10582 interstellar empire and ultimately conquer all other player's planets. The
10583 game can be played with up to nine empires, commanded either by the computer
10584 or by puny earthlings.
10585
10586 This package is part of the KDE games module.")
10587 (license (list license:gpl2+ license:fdl1.2+))))
10588
10589 (define-public kbounce
10590 (package
10591 (name "kbounce")
10592 (version "20.12.0")
10593 (source
10594 (origin
10595 (method url-fetch)
10596 (uri (string-append "mirror://kde/stable/release-service/"
10597 version "/src/kbounce-" version ".tar.xz"))
10598 (sha256
10599 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10600 (build-system qt-build-system)
10601 (native-inputs
10602 `(("extra-cmake-modules" ,extra-cmake-modules)
10603 ("kdoctools" ,kdoctools)))
10604 (inputs
10605 `(("kcompletion" ,kcompletion)
10606 ("kconfigwidgets" ,kconfigwidgets)
10607 ("kcoreaddons" ,kcoreaddons)
10608 ("kcrash" ,kcrash)
10609 ("kdbusaddons" ,kdbusaddons)
10610 ("ki18n" ,ki18n)
10611 ("kio" ,kio)
10612 ("kwidgetsaddons" ,kwidgetsaddons)
10613 ("kxmlgui" ,kxmlgui)
10614 ("libkdegames" ,libkdegames)
10615 ("qtbase" ,qtbase)
10616 ("qtdeclarative" ,qtdeclarative)
10617 ("qtsvg" ,qtsvg)))
10618 (home-page "https://games.kde.org/")
10619 (synopsis "Jezzball arcade game")
10620 (description "KBounce is a single player arcade game with the elements of
10621 puzzle. It is played on a field, surrounded by wall, with two or more balls
10622 bouncing around within the walls. The object of the game is to build new
10623 walls to decrease the size of the active field.
10624
10625 This package is part of the KDE games module.")
10626 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10627
10628 (define-public kblocks
10629 (package
10630 (name "kblocks")
10631 (version "20.12.0")
10632 (source
10633 (origin
10634 (method url-fetch)
10635 (uri (string-append "mirror://kde/stable/release-service/"
10636 version "/src/kblocks-" version ".tar.xz"))
10637 (sha256
10638 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10639 (build-system qt-build-system)
10640 (native-inputs
10641 `(("extra-cmake-modules" ,extra-cmake-modules)
10642 ("kdoctools" ,kdoctools)))
10643 (inputs
10644 `(("kcompletion" ,kcompletion)
10645 ("kconfig" ,kconfig)
10646 ("kconfigwidgets" ,kconfigwidgets)
10647 ("kcoreaddons" ,kcoreaddons)
10648 ("kcrash" ,kcrash)
10649 ("kdbusaddons" ,kdbusaddons)
10650 ("ki18n" ,ki18n)
10651 ("kwidgetsaddons" ,kwidgetsaddons)
10652 ("kxmlgui" ,kxmlgui)
10653 ("libkdegames" ,libkdegames)
10654 ("qtbase" ,qtbase)
10655 ("qtdeclarative" ,qtdeclarative)
10656 ("qtsvg" ,qtsvg)))
10657 (home-page "https://games.kde.org/")
10658 (synopsis "Single player falling blocks puzzle game")
10659 (description "KBlocks is the classic Tetris-like falling blocks game.
10660
10661 The idea is to stack the falling blocks to create horizontal lines without any
10662 gaps. When a line is completed it is removed, and more space is available in
10663 the play area. When there is not enough space for blocks to fall, the game is
10664 over.
10665
10666 This package is part of the KDE games module.")
10667 (license (list license:gpl2+ license:fdl1.2+))))
10668
10669 (define-public ksudoku
10670 (package
10671 (name "ksudoku")
10672 (version "20.12.0")
10673 (source
10674 (origin
10675 (method url-fetch)
10676 (uri (string-append "mirror://kde/stable/release-service/"
10677 version "/src/ksudoku-" version ".tar.xz"))
10678 (sha256
10679 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10680 (build-system qt-build-system)
10681 (native-inputs
10682 `(("extra-cmake-modules" ,extra-cmake-modules)
10683 ("kdoctools" ,kdoctools)))
10684 (inputs
10685 `(("karchive" ,karchive)
10686 ("kconfig" ,kconfig)
10687 ("kconfigwidgets" ,kconfigwidgets)
10688 ("kcoreaddons" ,kcoreaddons)
10689 ("kcrash" ,kcrash)
10690 ("kguiaddons" ,kguiaddons)
10691 ("ki18n" ,ki18n)
10692 ("kiconthemes" ,kiconthemes)
10693 ("kio" ,kio)
10694 ("kwidgetsaddons" ,kwidgetsaddons)
10695 ("kxmlgui" ,kxmlgui)
10696 ("libkdegames" ,libkdegames)
10697 ("glu" ,glu)
10698 ("qtbase" ,qtbase)
10699 ("qtdeclarative" ,qtdeclarative)
10700 ("qtsvg" ,qtsvg)))
10701 (home-page "https://games.kde.org/")
10702 (synopsis "Sudoku puzzle game and solver")
10703 (description "KSudoku is a Sudoku game and solver, supporting a range of
10704 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10705 puzzle sheets and find the solution to any Sudoku puzzle.
10706
10707 The word Sudoku means \"single number in an allotted place\" in Japanese.
10708 These are the basic rules: Every Sudoku is a square divided into 3x3
10709 subsquares with 3x3 cells each.
10710
10711 Some cells are filled with a number at the beginning. The remaining ones are
10712 to be filled by the player using numbers from 1 to 9, without repeating a
10713 number twice on each column, row or subsquare (each of them must contain only
10714 one 1, one 2, one 3, and so on). The game requires logic and patience.
10715 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10716 and experience.
10717
10718 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10719 board we use letters): arithmetic relationships between numbers are
10720 irrelevant.
10721
10722 This program supports also 16x16 games with numbers from 1 to 16 and 256
10723 cells with 16 cols, rows and subsquares!
10724
10725 More information at http://en.wikipedia.org/wiki/Sudoku
10726
10727 This package is part of the KDE games module.")
10728 (license (list license:gpl2+ license:fdl1.2+))))
10729
10730 (define-public klines
10731 (package
10732 (name "klines")
10733 (version "20.12.0")
10734 (source
10735 (origin
10736 (method url-fetch)
10737 (uri (string-append "mirror://kde/stable/release-service/" version
10738 "/src/klines-" version ".tar.xz"))
10739 (sha256
10740 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10741 (build-system qt-build-system)
10742 (native-inputs
10743 `(("extra-cmake-modules" ,extra-cmake-modules)
10744 ("kdoctools" ,kdoctools)))
10745 (inputs
10746 `(("kcompletion" ,kcompletion)
10747 ("kconfigwidgets" ,kconfigwidgets)
10748 ("kcoreaddons" ,kcoreaddons)
10749 ("kcrash" ,kcrash)
10750 ("kdbusaddons" ,kdbusaddons)
10751 ("ki18n" ,ki18n)
10752 ("kwidgetsaddons" ,kwidgetsaddons)
10753 ("kxmlgui" ,kxmlgui)
10754 ("libkdegames" ,libkdegames)
10755 ("qtbase" ,qtbase)
10756 ("qtdeclarative" ,qtdeclarative)))
10757 (home-page "https://games.kde.org/")
10758 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10759 (description "KLines is a simple but highly addictive one player game.
10760
10761 The player has to move the colored balls around the game board, gathering them
10762 into the lines of the same color by five. Once the line is complete it is
10763 removed from the board, therefore freeing precious space. In the same time
10764 the new balls keep arriving by three after each move, filling up the game
10765 board.
10766
10767 KLines is a single-player game where the player removes colored balls from the
10768 board by arranging them into lines of five or more. However, every time the
10769 player moves a ball, three more balls are added to the board.
10770
10771 This package is part of the KDE games module.")
10772 (license (list license:gpl2+ license:fdl1.2+))))
10773
10774 (define-public kgoldrunner
10775 (package
10776 (name "kgoldrunner")
10777 (version "20.12.0")
10778 (source
10779 (origin
10780 (method url-fetch)
10781 (uri (string-append "mirror://kde/stable/release-service/" version
10782 "/src/kgoldrunner-" version ".tar.xz"))
10783 (sha256
10784 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
10785 (build-system qt-build-system)
10786 (native-inputs
10787 `(("extra-cmake-modules" ,extra-cmake-modules)
10788 ("kdoctools" ,kdoctools)))
10789 (inputs
10790 `(("kcompletion" ,kcompletion)
10791 ("kcoreaddons" ,kcoreaddons)
10792 ("kcrash" ,kcrash)
10793 ("kdbusaddons" ,kdbusaddons)
10794 ("ki18n" ,ki18n)
10795 ("kio" ,kio)
10796 ("kwidgetsaddons" ,kwidgetsaddons)
10797 ("kxmlgui" ,kxmlgui)
10798 ("libkdegames" ,libkdegames)
10799 ("qtbase" ,qtbase)
10800 ("qtdeclarative" ,qtdeclarative)))
10801 (home-page "https://games.kde.org/")
10802 (synopsis "Action and puzzle solving game")
10803 (description "KGoldrunner is an action game where the hero runs through a
10804 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10805 gold nuggets and escape to the next level. Your enemies are also after the
10806 gold. Worse still, they are after you!.
10807
10808 KGoldrunner is a fast-paced platform game where the player must navigate a
10809 maze while collecting gold nuggets and avoiding enemies. A variety of level
10810 packs are included, as well as an editor to create new levels.
10811
10812 This package is part of the KDE games module.")
10813 (license (list license:gpl2+ license:fdl1.2+))))
10814
10815 (define-public kdiamond
10816 (package
10817 (name "kdiamond")
10818 (version "20.12.0")
10819 (source
10820 (origin
10821 (method url-fetch)
10822 (uri (string-append "mirror://kde/stable/release-service/" version
10823 "/src/kdiamond-" version ".tar.xz"))
10824 (sha256
10825 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
10826 (build-system qt-build-system)
10827 (native-inputs
10828 `(("extra-cmake-modules" ,extra-cmake-modules)
10829 ("kdoctools" ,kdoctools)))
10830 (inputs
10831 `(("kcompletion" ,kcompletion)
10832 ("kconfig" ,kconfig)
10833 ("kconfigwidgets" ,kconfigwidgets)
10834 ("kcoreaddons" ,kcoreaddons)
10835 ("kcrash" ,kcrash)
10836 ("kdbusaddons" ,kdbusaddons)
10837 ("ki18n" ,ki18n)
10838 ("knotifications" ,knotifications)
10839 ("knotifyconfig" ,knotifyconfig)
10840 ("kwidgetsaddons" ,kwidgetsaddons)
10841 ("kxmlgui" ,kxmlgui)
10842 ("libkdegames" ,libkdegames)
10843 ("qtbase" ,qtbase)
10844 ("qtdeclarative" ,qtdeclarative)))
10845 (home-page "https://games.kde.org/")
10846 (synopsis "Three-in-a-row game")
10847 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10848 features unlimited fun with randomly generated games and five difficulty
10849 levels with varying number of diamond colors and board sizes.
10850
10851 This package is part of the KDE games module.")
10852 (license (list license:gpl2+ license:fdl1.2+))))
10853
10854 (define-public kfourinline
10855 (package
10856 (name "kfourinline")
10857 (version "20.12.0")
10858 (source
10859 (origin
10860 (method url-fetch)
10861 (uri (string-append "mirror://kde/stable/release-service/" version
10862 "/src/kfourinline-" version ".tar.xz"))
10863 (sha256
10864 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10865 (build-system qt-build-system)
10866 (native-inputs
10867 `(("extra-cmake-modules" ,extra-cmake-modules)
10868 ("kdoctools" ,kdoctools)))
10869 (inputs
10870 `(("kcompletion" ,kcompletion)
10871 ("kconfig" ,kconfig)
10872 ("kconfigwidgets" ,kconfigwidgets)
10873 ("kcoreaddons" ,kcoreaddons)
10874 ("kcrash" ,kcrash)
10875 ("kdnssd" ,kdnssd)
10876 ("ki18n" ,ki18n)
10877 ("kxmlgui" ,kxmlgui)
10878 ("libkdegames" ,libkdegames)
10879 ("qtbase" ,qtbase)
10880 ("qtdeclarative" ,qtdeclarative)
10881 ("qtsvg" ,qtsvg)))
10882 (home-page "https://games.kde.org/")
10883 (synopsis "Place 4 pieces in a row")
10884 (description "KFourInLine is a board game for two players based on the
10885 Connect-Four game.
10886
10887 KFourInLine is a game where two players take turns dropping pieces into a
10888 grid, the winner being the first to place four pieces in a line.
10889
10890 This package is part of the KDE games module.")
10891 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10892
10893 (define-public kblackbox
10894 (package
10895 (name "kblackbox")
10896 (version "20.12.0")
10897 (source
10898 (origin
10899 (method url-fetch)
10900 (uri (string-append "mirror://kde/stable/release-service/" version
10901 "/src/kblackbox-" version ".tar.xz"))
10902 (sha256
10903 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10904 (build-system qt-build-system)
10905 (native-inputs
10906 `(("extra-cmake-modules" ,extra-cmake-modules)
10907 ("kdoctools" ,kdoctools)))
10908 (inputs
10909 `(("karchive" ,karchive)
10910 ("kcompletion" ,kcompletion)
10911 ("kconfig" ,kconfig)
10912 ("kcoreaddons" ,kcoreaddons)
10913 ("kcrash" ,kcrash)
10914 ("kdbusaddons" ,kdbusaddons)
10915 ("ki18n" ,ki18n)
10916 ("ktextwidgets" ,ktextwidgets)
10917 ("kxmlgui" ,kxmlgui)
10918 ("libkdegames" ,libkdegames)
10919 ("qtbase" ,qtbase)
10920 ("qtdeclarative" ,qtdeclarative)
10921 ("qtsvg" ,qtsvg)))
10922 (home-page "https://games.kde.org/")
10923 (synopsis "Find atoms in a grid by shooting electrons")
10924 (description "KBlackbox is a game of hide and seek played on a grid of
10925 boxes where the computer has hidden several balls. The position of the hidden
10926 balls can be deduced by shooting beams into the box
10927
10928 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10929 player shoots rays into the grid to deduce the positions of hidden objects.
10930
10931 This package is part of the KDE games module.")
10932 (license (list license:gpl2+ license:fdl1.2+))))
10933
10934 (define-public knetwalk
10935 (package
10936 (name "knetwalk")
10937 (version "20.12.0")
10938 (source
10939 (origin
10940 (method url-fetch)
10941 (uri (string-append "mirror://kde/stable/release-service/" version
10942 "/src/knetwalk-" version ".tar.xz"))
10943 (sha256
10944 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
10945 (build-system qt-build-system)
10946 (native-inputs
10947 `(("extra-cmake-modules" ,extra-cmake-modules)
10948 ("kdoctools" ,kdoctools)))
10949 (inputs
10950 `(("kcompletion" ,kcompletion)
10951 ("kconfig" ,kconfig)
10952 ("kconfigwidgets" ,kconfigwidgets)
10953 ("kcoreaddons" ,kcoreaddons)
10954 ("kcrash" ,kcrash)
10955 ("kdbusaddons" ,kdbusaddons)
10956 ("ki18n" ,ki18n)
10957 ("ktextwidgets" ,ktextwidgets)
10958 ("kwidgetsaddons" ,kwidgetsaddons)
10959 ("kxmlgui" ,kxmlgui)
10960 ("libkdegames" ,libkdegames)
10961 ("qtbase" ,qtbase)
10962 ("qtdeclarative" ,qtdeclarative)))
10963 (home-page "https://games.kde.org/")
10964 (synopsis "Turn the board pieces to get all computers connected")
10965 (description "KNetWalk is a small game where you have to build up a
10966 computer network by rotating the wires to connect the terminals to the server.
10967 When the network is build, a highscore-list comes up where competitions can be
10968 fought out.
10969
10970 KNetwalk is a puzzle game where the player arranges sections of wire to
10971 connect all the computers on the board.
10972
10973 This package is part of the KDE games module.")
10974 (license (list license:gpl2+ license:fdl1.2+))))
10975
10976 (define-public bomber
10977 (package
10978 (name "bomber")
10979 (version "20.12.0")
10980 (source
10981 (origin
10982 (method url-fetch)
10983 (uri (string-append "mirror://kde/stable/release-service/" version
10984 "/src/bomber-" version ".tar.xz"))
10985 (sha256
10986 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
10987 (build-system qt-build-system)
10988 (native-inputs
10989 `(("extra-cmake-modules" ,extra-cmake-modules)
10990 ("kdoctools" ,kdoctools)))
10991 (inputs
10992 `(("kcompletiom" ,kcompletion)
10993 ("kconfig" ,kconfig)
10994 ("kcoreaddons" ,kcoreaddons)
10995 ("kcrash" ,kcrash)
10996 ("kdbusaddons" ,kdbusaddons)
10997 ("ki18n" ,ki18n)
10998 ("kxmlgui" ,kxmlgui)
10999 ("libkdegames" ,libkdegames)
11000 ("qtbase" ,qtbase)
11001 ("qtdeclarative" ,qtdeclarative)))
11002 (home-page "https://games.kde.org/")
11003 (synopsis "Arcade bombing game")
11004 (description "Bomber is a single player arcade game.
11005
11006 The player is invading various cities in a plane that is decreasing in height.
11007 The goal of the game is to destroy all the buildings and advance to the next
11008 level. Each level gets a bit harder by increasing the speed of the plane and
11009 the height of the buildings.
11010
11011 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
11012 below you. Each pass the spaceship makes, it gets lower and lower. If you've
11013 not destroyed a building in your path, you will crash into it.
11014
11015 This package is part of the KDE games module.")
11016 (license (list license:gpl2+ license:fdl1.2+))))
11017
11018 (define-public granatier
11019 (package
11020 (name "granatier")
11021 (version "20.12.0")
11022 (source
11023 (origin
11024 (method url-fetch)
11025 (uri (string-append "mirror://kde/stable/release-service/" version
11026 "/src/granatier-" version ".tar.xz"))
11027 (sha256
11028 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
11029 (build-system qt-build-system)
11030 (native-inputs
11031 `(("extra-cmake-modules" ,extra-cmake-modules)
11032 ("kdoctools" ,kdoctools)))
11033 (inputs
11034 `(("kcompletion" ,kcompletion)
11035 ("kconfig" ,kconfig)
11036 ("kconfigwidgets" ,kconfigwidgets)
11037 ("kcoreaddons" ,kcoreaddons)
11038 ("kcrash" ,kcrash)
11039 ("kdbusaddons" ,kdbusaddons)
11040 ("ki18n" ,ki18n)
11041 ("knewstuff" ,knewstuff)
11042 ("kwidgetsaddons" ,kwidgetsaddons)
11043 ("kxmlgui" ,kxmlgui)
11044 ("libkdegames" ,libkdegames)
11045 ("qtbase" ,qtbase)
11046 ("qtdeclarative" ,qtdeclarative)
11047 ("qtsvg" ,qtsvg)))
11048 (home-page "https://games.kde.org/")
11049 (synopsis "Bomberman clone")
11050 (description "Granatier is a clone of the classic Bomberman game,
11051 inspired by the work of the Clanbomber clone.
11052
11053 This package is part of the KDE games module.")
11054 (license (list license:gpl2+ license:fdl1.2+))))
11055
11056 (define-public ksirk
11057 (package
11058 (name "ksirk")
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/ksirk-" version ".tar.xz"))
11065 (sha256
11066 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
11067 (build-system qt-build-system)
11068 (native-inputs
11069 `(("extra-cmake-modules" ,extra-cmake-modules)
11070 ("kdoctools" ,kdoctools)))
11071 (inputs
11072 `(("kcrash" ,kcrash)
11073 ("ki18n" ,ki18n)
11074 ("kiconthemes" ,kiconthemes)
11075 ("kio" ,kio)
11076 ("knewstuff" ,knewstuff)
11077 ("kwallet" ,kwallet)
11078 ("kxmlgui" ,kxmlgui)
11079 ("libkdegames" ,libkdegames)
11080 ("phonon" ,phonon)
11081 ("qca" ,qca)
11082 ("qtbase" ,qtbase)
11083 ("qtdeclarative" ,qtdeclarative)
11084 ("qtsvg" ,qtsvg)
11085 ("zlib" ,zlib)))
11086 (home-page "https://games.kde.org/")
11087 (synopsis "Computerized version of the well known strategy board game
11088 'Risk'")
11089 (description "KsirK is a multi-player network-enabled game. The goal of
11090 the game is simply to conquer the world by attacking your neighbors with your
11091 armies.
11092
11093 At the beginning of the game, countries are distributed to all the players.
11094 Each country contains one army represented by an infantryman. Each player has
11095 some armies to distribute to his countries. On each turn, each player can
11096 attack his neighbours, eventually conquering one or more countries. At the
11097 end of each turn, some bonus armies are distributed to the players in function
11098 of the number of countries they own. The winner is the player that conquered
11099 all the world.
11100
11101 Features:
11102 @itemize
11103 @item Support for 1-6 human or computer players
11104 @item Multi-player gaming over a network
11105 @item You can easily create new skins with SVG graphics and the skin editor
11106 @item Hot New Stuff support. You can easily download and install new skins
11107 @end itemize
11108
11109 This package is part of the KDE games module.")
11110 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11111
11112 (define-public palapeli
11113 (package
11114 (name "palapeli")
11115 (version "20.12.0")
11116 (source
11117 (origin
11118 (method url-fetch)
11119 (uri (string-append "mirror://kde/stable/release-service/" version
11120 "/src/palapeli-" version ".tar.xz"))
11121 (sha256
11122 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
11123 (build-system qt-build-system)
11124 (native-inputs
11125 `(("extra-cmake-modules" ,extra-cmake-modules)
11126 ("kdoctools" ,kdoctools)))
11127 (inputs
11128 `(("karchive" ,karchive)
11129 ("kcompletion" ,kcompletion)
11130 ("kconfig" ,kconfig)
11131 ("kconfigwidgets" ,kconfigwidgets)
11132 ("kcoreaddons" ,kcoreaddons)
11133 ("kcrash" ,kcrash)
11134 ("kcrash" ,kcrash)
11135 ("ki18n" ,ki18n)
11136 ("ki18n" ,ki18n)
11137 ("kio" ,kio)
11138 ("kitemviews" ,kitemviews)
11139 ("knotifications" ,knotifications)
11140 ("kservice" ,kservice)
11141 ("kwidgetsaddons" ,kwidgetsaddons)
11142 ("kxmlgui" ,kxmlgui)
11143 ("libkdegames" ,libkdegames)
11144 ("qtbase" ,qtbase)
11145 ("qtdeclarative" ,qtdeclarative)
11146 ("qtsvg" ,qtsvg)
11147 ("shared-mime-info" ,shared-mime-info)))
11148 (home-page "https://games.kde.org/")
11149 (synopsis "Jigsaw puzzle game")
11150 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
11151 that genre, you are not limited to aligning pieces on imaginary grids. The
11152 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
11153 everything you do is saved on your disk immediately.
11154
11155 Palapeli is the Finnish word for jigsaw puzzle.
11156
11157 This package is part of the KDE games module.")
11158 (license license:gpl2+)))
11159
11160 (define-public kiriki
11161 (package
11162 (name "kiriki")
11163 (version "20.12.0")
11164 (source
11165 (origin
11166 (method url-fetch)
11167 (uri (string-append "mirror://kde/stable/release-service/" version
11168 "/src/kiriki-" version ".tar.xz"))
11169 (sha256
11170 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
11171 (build-system qt-build-system)
11172 (native-inputs
11173 `(("extra-cmake-modules" ,extra-cmake-modules)
11174 ("kdoctools" ,kdoctools)))
11175 (inputs
11176 `(("kcompletion" ,kcompletion)
11177 ("kconfig" ,kconfig)
11178 ("kconfigwidgets" ,kconfigwidgets)
11179 ("kcoreaddons" ,kcoreaddons)
11180 ("kcrash" ,kcrash)
11181 ("kdbusaddons" ,kdbusaddons)
11182 ("ki18n" ,ki18n)
11183 ("kiconthemes" ,kiconthemes)
11184 ("kxmlgui" ,kxmlgui)
11185 ("libkdegames" ,libkdegames)
11186 ("qtbase" ,qtbase)
11187 ("qtdeclarative" ,qtdeclarative)))
11188 (home-page "https://games.kde.org/")
11189 (synopsis "Yahtzee dice game")
11190 (description "Kiriki is an addictive and fun dice game, designed to be
11191 played by as many as six players.
11192
11193 Participants have to collect points by rolling five dice for up to three times
11194 per single turn to make combinations with the highest score.
11195
11196 This package is part of the KDE games module.")
11197 (license (list license:gpl2+ license:fdl1.2+))))
11198
11199 (define-public kigo
11200 (package
11201 (name "kigo")
11202 (version "20.12.0")
11203 (source
11204 (origin
11205 (method url-fetch)
11206 (uri (string-append "mirror://kde/stable/release-service/" version
11207 "/src/kigo-" version ".tar.xz"))
11208 (sha256
11209 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
11210 (build-system qt-build-system)
11211 (native-inputs
11212 `(("extra-cmake-modules" ,extra-cmake-modules)
11213 ("kdoctools" ,kdoctools)))
11214 (inputs
11215 `(("kconfig" ,kconfig)
11216 ("kconfigwidgets" ,kconfigwidgets)
11217 ("kcoreaddons" ,kcoreaddons)
11218 ("kcrash" ,kcrash)
11219 ("kdbusaddons" ,kdbusaddons)
11220 ("ki18n" ,ki18n)
11221 ("kio" ,kio)
11222 ("knewstuff" ,knewstuff)
11223 ("ktextwidgets" ,ktextwidgets)
11224 ("kxmlgui" ,kxmlgui)
11225 ("libkdegames" ,libkdegames)
11226 ("qtbase" ,qtbase)
11227 ("qtdeclarative" ,qtdeclarative)
11228 ("qtsvg" ,qtsvg)))
11229 (home-page "https://games.kde.org/")
11230 (synopsis "Go board game")
11231 (description "Kigo is an open-source implementation of the popular Go
11232 game.
11233
11234 Go is a strategic board game for two players. It is also known as
11235 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
11236 for being rich in strategic complexity despite its simple rules. The game is
11237 played by two players who alternately place black and white stones (playing
11238 pieces, now usually made of glass or plastic) on the vacant intersections of a
11239 grid of 19x19 lines (9x9 or 13x13 for easier games).
11240
11241 You also need to install a go engine, e.g. @code{gnugo}.
11242
11243 This package is part of the KDE games module.")
11244 (license license:gpl3+)))
11245
11246 (define-public kubrick
11247 (package
11248 (name "kubrick")
11249 (version "20.12.0")
11250 (source
11251 (origin
11252 (method url-fetch)
11253 (uri (string-append "mirror://kde/stable/release-service/" version
11254 "/src/kubrick-" version ".tar.xz"))
11255 (sha256
11256 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
11257 (build-system qt-build-system)
11258 (native-inputs
11259 `(("extra-cmake-modules" ,extra-cmake-modules)
11260 ("kdoctools" ,kdoctools)))
11261 (inputs
11262 `(("glu" ,glu)
11263 ("kconfig" ,kconfig)
11264 ("kconfigwidgets" ,kconfigwidgets)
11265 ("kcoreaddons" ,kcoreaddons)
11266 ("kcrash" ,kcrash)
11267 ("ki18n" ,ki18n)
11268 ("kio" ,kio)
11269 ("kwidgetsaddons" ,kwidgetsaddons)
11270 ("kxmlgui" ,kxmlgui)
11271 ("libkdegames" ,libkdegames)
11272 ("qtbase" ,qtbase)
11273 ("qtdeclarative" ,qtdeclarative)
11274 ("qtsvg" ,qtsvg)))
11275 (home-page "https://games.kde.org/")
11276 (synopsis "Game based on Rubik's Cube")
11277 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11278
11279 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11280 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11281 selection of puzzles at several levels of difficulty, as well as demos of
11282 pretty patterns and solution moves, or you can make up your own puzzles. The
11283 game has unlimited undo, redo, save and reload capabilities.
11284
11285 This package is part of the KDE games module.")
11286 (license (list license:gpl2+ license:fdl1.2+))))
11287
11288 (define-public lskat
11289 (package
11290 (name "lskat")
11291 (version "20.12.0")
11292 (source
11293 (origin
11294 (method url-fetch)
11295 (uri (string-append "mirror://kde/stable/release-service/" version
11296 "/src/lskat-" version ".tar.xz"))
11297 (sha256
11298 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11299 (build-system qt-build-system)
11300 (native-inputs
11301 `(("extra-cmake-modules" ,extra-cmake-modules)
11302 ("kdoctools" ,kdoctools)))
11303 (inputs
11304 `(("kcompletion" ,kcompletion)
11305 ("kconfig" ,kconfig)
11306 ("kcoreaddons" ,kcoreaddons)
11307 ("kcrash" ,kcrash)
11308 ("kguiaddons" ,kguiaddons)
11309 ("ki18n" ,ki18n)
11310 ("kwidgetsaddons" ,kwidgetsaddons)
11311 ("kxmlgui" ,kxmlgui)
11312 ("libkdegames" ,libkdegames)
11313 ("qtbase" ,qtbase)
11314 ("qtdeclarative" ,qtdeclarative)
11315 ("qtsvg" ,qtsvg)))
11316 (home-page "https://games.kde.org/")
11317 (synopsis "Lieutnant Skat card game")
11318 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11319 engaging card game for two players, where the second player is either live
11320 opponent, or a built in artificial intelligence.
11321
11322 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11323
11324 This package is part of the KDE games module.")
11325 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11326
11327 (define-public kapman
11328 (package
11329 (name "kapman")
11330 (version "20.12.0")
11331 (source
11332 (origin
11333 (method url-fetch)
11334 (uri (string-append "mirror://kde/stable/release-service/" version
11335 "/src/kapman-" version ".tar.xz"))
11336 (sha256
11337 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11338 (build-system qt-build-system)
11339 (native-inputs
11340 `(("extra-cmake-modules" ,extra-cmake-modules)
11341 ("kdoctools" ,kdoctools)))
11342 (inputs
11343 `(("kcompletion" ,kcompletion)
11344 ("kconfig" ,kconfig)
11345 ("kconfigwidgets" ,kconfigwidgets)
11346 ("kcoreaddons" ,kcoreaddons)
11347 ("kcrash" ,kcrash)
11348 ("kdbusaddons" ,kdbusaddons)
11349 ("ki18n" ,ki18n)
11350 ("kxmlgui" ,kxmlgui)
11351 ("libkdegames" ,libkdegames)
11352 ("qtbase" ,qtbase)
11353 ("qtdeclarative" ,qtdeclarative)
11354 ("qtsvg" ,qtsvg)))
11355 (home-page "https://games.kde.org/")
11356 (synopsis "Pac-Man clone")
11357 (description "Kapman is a clone of the well known game Pac-Man.
11358
11359 You must run through the maze to eat all pills without being captured by a
11360 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11361 few seconds. When a stage is cleared of pills and energizer the player is
11362 taken to the next stage with slightly increased game speed
11363
11364 This package is part of the KDE games module.")
11365 (license (list license:gpl2+ license:fdl1.2+))))
11366
11367 (define-public kspaceduel
11368 (package
11369 (name "kspaceduel")
11370 (version "20.12.0")
11371 (source
11372 (origin
11373 (method url-fetch)
11374 (uri (string-append "mirror://kde/stable/release-service/" version
11375 "/src/kspaceduel-" version ".tar.xz"))
11376 (sha256
11377 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11378 (build-system qt-build-system)
11379 (native-inputs
11380 `(("extra-cmake-modules" ,extra-cmake-modules)
11381 ("kdoctools" ,kdoctools)))
11382 (inputs
11383 `(("kcompletion" ,kcompletion)
11384 ("kconfig" ,kconfig)
11385 ("kconfigwidgets" ,kconfigwidgets)
11386 ("kcoreaddons" ,kcoreaddons)
11387 ("kcrash" ,kcrash)
11388 ("kdbusaddons" ,kdbusaddons)
11389 ("ki18n" ,ki18n)
11390 ("kxmlgui" ,kxmlgui)
11391 ("libkdegames" ,libkdegames)
11392 ("qtbase" ,qtbase)
11393 ("qtdeclarative" ,qtdeclarative)
11394 ("qtsvg" ,qtsvg)))
11395 (home-page "https://games.kde.org/")
11396 (synopsis "Two player game with shooting spaceships flying around a sun")
11397 (description "KSpaceduel is a space battle game for one or two players,
11398 where two ships fly around a star in a struggle to be the only survivor.
11399
11400 This package is part of the KDE games module.")
11401 (license (list license:gpl2+ license:fdl1.2+))))
11402
11403 (define-public bovo
11404 (package
11405 (name "bovo")
11406 (version "20.12.0")
11407 (source
11408 (origin
11409 (method url-fetch)
11410 (uri (string-append "mirror://kde/stable/release-service/" version
11411 "/src/bovo-" version ".tar.xz"))
11412 (sha256
11413 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11414 (build-system qt-build-system)
11415 (native-inputs
11416 `(("extra-cmake-modules" ,extra-cmake-modules)
11417 ("kdoctools" ,kdoctools)))
11418 (inputs
11419 `(("kcompletion" ,kcompletion)
11420 ("kcoreaddons" ,kcoreaddons)
11421 ("kcrash" ,kcrash)
11422 ("kdbusaddons" ,kdbusaddons)
11423 ("ki18n" ,ki18n)
11424 ("kxmlgui" ,kxmlgui)
11425 ("libkdegames" ,libkdegames)
11426 ("qtbase" ,qtbase)
11427 ("qtdeclarative" ,qtdeclarative)
11428 ("qtsvg" ,qtsvg)))
11429 (home-page "https://games.kde.org/")
11430 (synopsis "Classic pen and paper game: five in a line")
11431 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11432 points\") like game for two players, where the opponents alternate in placing
11433 their respective pictogram on the game board. The winner is the first to
11434 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11435 X and O, Naughts and Crosses)
11436
11437 This package is part of the KDE games module.")
11438 (license (list license:gpl2+ license:fdl1.2+))))
11439
11440 (define-public killbots
11441 (package
11442 (name "killbots")
11443 (version "20.12.0")
11444 (source
11445 (origin
11446 (method url-fetch)
11447 (uri (string-append "mirror://kde/stable/release-service/" version
11448 "/src/killbots-" version ".tar.xz"))
11449 (sha256
11450 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11451 (build-system qt-build-system)
11452 (native-inputs
11453 `(("extra-cmake-modules" ,extra-cmake-modules)
11454 ("kdoctools" ,kdoctools)))
11455 (inputs
11456 `(("kcompletion" ,kcompletion)
11457 ("kconfig" ,kconfig)
11458 ("kconfigwidgets" ,kconfigwidgets)
11459 ("kcoreaddons" ,kcoreaddons)
11460 ("kcrash" ,kcrash)
11461 ("kdbusaddons" ,kdbusaddons)
11462 ("ki18n" ,ki18n)
11463 ("kwidgetsaddons" ,kwidgetsaddons)
11464 ("kxmlgui" ,kxmlgui)
11465 ("libkdegames" ,libkdegames)
11466 ("qtbase" ,qtbase)
11467 ("qtdeclarative" ,qtdeclarative)))
11468 (home-page "https://games.kde.org/")
11469 (synopsis "Port of the classic BSD console game robots")
11470 (description "Killbots is a simple game of evading killer robots.
11471
11472 Who created the robots and why they have been programmed to destroy, no one
11473 knows. All that is known is that the robots are numerous and their sole
11474 objective is to destroy you. Fortunately for you, their creator has focused
11475 on quantity rather than quality and as a result the robots are severely
11476 lacking in intelligence. Your superior wit and a fancy teleportation device
11477 are your only weapons against the never-ending stream of mindless automatons.
11478
11479 This package is part of the KDE games module.")
11480 (license (list license:gpl2+ license:fdl1.2+))))
11481
11482 (define-public ksnakeduel
11483 (package
11484 (name "ksnakeduel")
11485 (version "20.12.0")
11486 (source
11487 (origin
11488 (method url-fetch)
11489 (uri (string-append "mirror://kde/stable/release-service/" version
11490 "/src/ksnakeduel-" version ".tar.xz"))
11491 (sha256
11492 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11493 (build-system qt-build-system)
11494 (native-inputs
11495 `(("extra-cmake-modules" ,extra-cmake-modules)
11496 ("kdoctools" ,kdoctools)))
11497 (inputs
11498 `(("kcompletion" ,kcompletion)
11499 ("kconfig" ,kconfig)
11500 ("kconfigwidgets" ,kconfigwidgets)
11501 ("kcoreaddons" ,kcoreaddons)
11502 ("kcrash" ,kcrash)
11503 ("kdbusaddons" ,kdbusaddons)
11504 ("kguiaddons" ,kguiaddons)
11505 ("ki18n" ,ki18n)
11506 ("kxmlgui" ,kxmlgui)
11507 ("libkdegames" ,libkdegames)
11508 ("qtbase" ,qtbase)
11509 ("qtdeclarative" ,qtdeclarative)
11510 ("qtsvg" ,qtsvg)))
11511 (home-page "https://games.kde.org/")
11512 (synopsis "Snake race played against the computer")
11513 (description "KSnakeDuel is a fast action game where you steer a snake
11514 which has to eat food. While eating the snake grows. But once a player
11515 collides with the other snake or the wall the game is lost. This becomes of
11516 course more and more difficult the longer the snakes grow.
11517
11518 This package is part of the KDE games module.")
11519 (license (list license:gpl2+ license:fdl1.2+))))
11520
11521 (define-public kollision
11522 (package
11523 (name "kollision")
11524 (version "20.12.0")
11525 (source
11526 (origin
11527 (method url-fetch)
11528 (uri (string-append "mirror://kde/stable/release-service/" version
11529 "/src/kollision-" version ".tar.xz"))
11530 (sha256
11531 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11532 (build-system qt-build-system)
11533 (native-inputs
11534 `(("extra-cmake-modules" ,extra-cmake-modules)
11535 ("kdoctools" ,kdoctools)))
11536 (inputs
11537 `(("kcompletion" ,kcompletion)
11538 ("kconfig" ,kconfig)
11539 ("kcoreaddons" ,kcoreaddons)
11540 ("kcrash" ,kcrash)
11541 ("kdbusaddons" ,kdbusaddons)
11542 ("ki18n" ,ki18n)
11543 ("kwidgetsaddons" ,kwidgetsaddons)
11544 ("kxmlgui" ,kxmlgui)
11545 ("libkdegames" ,libkdegames)
11546 ("qtbase" ,qtbase)
11547 ("qtdeclarative" ,qtdeclarative)))
11548 (home-page "https://games.kde.org/")
11549 (synopsis "Simple ball dodging game")
11550 (description "In Kollision you use mouse to control a small blue ball in a
11551 closed space environment filled with small red balls, which move about
11552 chaotically. Your goal is to avoid touching any of those red balls with your
11553 blue one, because the moment you do the game will be over. The longer you can
11554 stay in game the higher will your score be.
11555
11556 This package is part of the KDE games module.")
11557 (license (list license:gpl2+ license:fdl1.2+))))
11558
11559 (define-public knavalbattle
11560 (package
11561 (name "knavalbattle")
11562 (version "20.12.0")
11563 (source
11564 (origin
11565 (method url-fetch)
11566 (uri (string-append "mirror://kde/stable/release-service/" version
11567 "/src/knavalbattle-" version ".tar.xz"))
11568 (sha256
11569 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11570 (build-system qt-build-system)
11571 (native-inputs
11572 `(("extra-cmake-modules" ,extra-cmake-modules)
11573 ("kdoctools" ,kdoctools)))
11574 (inputs
11575 `(("kauth" ,kauth)
11576 ("kcompletion" ,kcompletion)
11577 ("kconfig" ,kconfig)
11578 ("kconfigwidgets" ,kconfigwidgets)
11579 ("kcoreaddons" ,kcoreaddons)
11580 ("kcrash" ,kcrash)
11581 ("kdbusaddons" ,kdbusaddons)
11582 ("kdnssd" ,kdnssd)
11583 ("ki18n" ,ki18n)
11584 ("ktextwidgets" ,ktextwidgets)
11585 ("kxmlgui" ,kxmlgui)
11586 ("libkdegames" ,libkdegames)
11587 ("qtbase" ,qtbase)
11588 ("qtdeclarative" ,qtdeclarative)))
11589 (home-page "https://games.kde.org/")
11590 (synopsis "Battleship board game with built-in game server")
11591 (description "KBattleship is a Battle Ship game for KDE.
11592
11593 Ships are placed on a board which represents the sea. Players try to hit each
11594 others ships in turns without knowing where they are placed. The first player
11595 to destroy all ships wins the game.
11596
11597 This package is part of the KDE games module.")
11598 (license (list license:gpl2+ license:fdl1.2+))))
11599
11600 (define-public kreversi
11601 (package
11602 (name "kreversi")
11603 (version "20.08.3")
11604 (source
11605 (origin
11606 (method url-fetch)
11607 (uri (string-append "mirror://kde/stable/release-service/" version
11608 "/src/kreversi-" version ".tar.xz"))
11609 (sha256
11610 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11611 (build-system qt-build-system)
11612 (native-inputs
11613 `(("extra-cmake-modules" ,extra-cmake-modules)
11614 ("kdoctools" ,kdoctools)))
11615 (inputs
11616 `(("kconfig" ,kconfig)
11617 ("kconfigwidgets" ,kconfigwidgets)
11618 ("kcoreaddons" ,kcoreaddons)
11619 ("kcrash" ,kcrash)
11620 ("kdbusaddons" ,kdbusaddons)
11621 ("kdeclarative" ,kdeclarative)
11622 ("ki18n" ,ki18n)
11623 ("kiconthemes" ,kiconthemes)
11624 ("kio" ,kio)
11625 ("kxmlgui" ,kxmlgui)
11626 ("libkdegames" ,libkdegames)
11627 ("qtbase" ,qtbase)
11628 ("qtdeclarative" ,qtdeclarative)
11629 ("qtsvg" ,qtsvg)))
11630 (home-page "https://games.kde.org/")
11631 (synopsis "Old reversi board game, also known as othello")
11632 (description "KReversi is a simple one player strategy game played
11633 against the computer.
11634
11635 If a player's piece is captured by an opposing player, that piece is turned
11636 over to reveal the color of that player. A winner is declared when one player
11637 has more pieces of his own color on the board and there are no more possible
11638 moves.
11639
11640 This package is part of the KDE games module.")
11641 (license (list license:gpl2+ license:fdl1.2+))))
11642
11643 (define-public ksquares
11644 (package
11645 (name "ksquares")
11646 (version "20.12.0")
11647 (source
11648 (origin
11649 (method url-fetch)
11650 (uri (string-append "mirror://kde/stable/release-service/" version
11651 "/src/ksquares-" version ".tar.xz"))
11652 (sha256
11653 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11654 (build-system qt-build-system)
11655 (native-inputs
11656 `(("extra-cmake-modules" ,extra-cmake-modules)
11657 ("kdoctools" ,kdoctools)))
11658 (inputs
11659 `(("kcompletion" ,kcompletion)
11660 ("kconfig" ,kconfig)
11661 ("kconfigwidgets" ,kconfigwidgets)
11662 ("kcoreaddons" ,kcoreaddons)
11663 ("kcrash" ,kcrash)
11664 ("kdbusaddons" ,kdbusaddons)
11665 ("ki18n" ,ki18n)
11666 ("kwidgetsaddons" ,kwidgetsaddons)
11667 ("kxmlgui" ,kxmlgui)
11668 ("libkdegames" ,libkdegames)
11669 ("qtbase" ,qtbase)
11670 ("qtdeclarative" ,qtdeclarative)))
11671 (home-page "https://games.kde.org/")
11672 (synopsis "Dots and Boxes game")
11673 (description "KSquares is an implementation of the popular paper based
11674 game Squares. Two players take turns connecting dots on a grid to complete
11675 squares, the player with the most squares wins.
11676
11677 This package is part of the KDE games module.")
11678 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11679
11680 (define-public kjumpingcube
11681 (package
11682 (name "kjumpingcube")
11683 (version "20.12.0")
11684 (source
11685 (origin
11686 (method url-fetch)
11687 (uri (string-append "mirror://kde/stable/release-service/" version
11688 "/src/kjumpingcube-" version ".tar.xz"))
11689 (sha256
11690 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11691 (build-system qt-build-system)
11692 (native-inputs
11693 `(("extra-cmake-modules" ,extra-cmake-modules)
11694 ("kdoctools" ,kdoctools)))
11695 (inputs
11696 `(("kconfig" ,kconfig)
11697 ("kconfigwidgets" ,kconfigwidgets)
11698 ("kcoreaddons" ,kcoreaddons)
11699 ("kcrash" ,kcrash)
11700 ("kdbusaddons" ,kdbusaddons)
11701 ("ki18n" ,ki18n)
11702 ("kio" ,kio)
11703 ("kwidgetsaddons" ,kwidgetsaddons)
11704 ("kxmlgui" ,kxmlgui)
11705 ("libkdegames" ,libkdegames)
11706 ("qtbase" ,qtbase)
11707 ("qtdeclarative" ,qtdeclarative)
11708 ("qtsvg" ,qtsvg)))
11709 (home-page "https://games.kde.org/")
11710 (synopsis "Simple tactical game for number-crunchers")
11711 (description "KJumpingcube is a simple tactical game for one or two
11712 players, played on a grid of numbered squares. Each turn, players compete for
11713 control of the board by capturing or adding to one square.
11714
11715 This package is part of the KDE games module.")
11716 (license (list license:gpl2+ license:fdl1.2+))))
11717
11718 (define-public xmoto
11719 (package
11720 (name "xmoto")
11721 (version "0.6.1")
11722 (source
11723 (origin
11724 (method git-fetch)
11725 (uri (git-reference
11726 (url "https://github.com/xmoto/xmoto")
11727 (commit version)))
11728 (file-name (git-file-name name version))
11729 (sha256
11730 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11731 (modules '((guix build utils)
11732 (ice-9 ftw)
11733 (srfi srfi-1)))
11734 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11735 ;; it appears to be incompatible with the (older) one bundled.
11736 (snippet
11737 `(begin
11738 (let ((keep '("chipmunk" "glad" "md5sum")))
11739 (with-directory-excursion "vendor"
11740 (for-each delete-file-recursively
11741 (lset-difference string=?
11742 (scandir ".")
11743 (cons* "." ".." keep))))
11744 (substitute* "src/CMakeLists.txt"
11745 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11746 (if (member library keep) line ""))))
11747 #t))))
11748 (build-system cmake-build-system)
11749 (arguments
11750 `(#:tests? #f ;no test
11751 #:phases
11752 (modify-phases %standard-phases
11753 (add-after 'unpack 'fix-hard-coded-directory
11754 (lambda* (#:key outputs #:allow-other-keys)
11755 (substitute* "src/common/VFileIO.cpp"
11756 (("/usr/share")
11757 (string-append (assoc-ref outputs "out") "/share")))
11758 #t))
11759 (add-before 'build 'set-SDL
11760 ;; Set correct environment for SDL.
11761 (lambda* (#:key inputs #:allow-other-keys)
11762 (setenv "CPATH"
11763 (string-append
11764 (assoc-ref inputs "sdl") "/include/SDL:"
11765 (or (getenv "CPATH") "")))
11766 #t))
11767 (add-after 'install 'unbundle-fonts
11768 ;; Unbundle DejaVuSans TTF files.
11769 (lambda* (#:key outputs inputs #:allow-other-keys)
11770 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11771 "/share/fonts/truetype/"))
11772 (target-dir (string-append (assoc-ref outputs "out")
11773 "/share/xmoto/Textures/Fonts/")))
11774 (for-each (lambda (f)
11775 (let ((font (string-append font-dir f))
11776 (target (string-append target-dir f)))
11777 (delete-file target)
11778 (symlink font target)))
11779 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11780 #t))))))
11781 (native-inputs
11782 `(("gettext" ,gettext-minimal)
11783 ("pkg-config" ,pkg-config)))
11784 (inputs
11785 `(("bzip2" ,bzip2)
11786 ("curl" ,curl)
11787 ("font-dejavu" ,font-dejavu)
11788 ("glu" ,glu)
11789 ("libjpeg" ,libjpeg-turbo)
11790 ("libpng" ,libpng)
11791 ("libxdg-basedir" ,libxdg-basedir)
11792 ("libxml2" ,libxml2)
11793 ("lua" ,lua-5.1)
11794 ("ode" ,ode)
11795 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11796 ("sqlite" ,sqlite)
11797 ("zlib" ,zlib)))
11798 (home-page "https://xmoto.tuxfamily.org/")
11799 (synopsis "2D motocross platform game")
11800 (description
11801 "X-Moto is a challenging 2D motocross platform game, where
11802 physics play an all important role in the gameplay. You need to
11803 control your bike to its limit, if you want to have a chance finishing
11804 the more difficult challenges.")
11805 (license (list license:gpl2+ ;whole project
11806 license:bsd-3 ;vendor/md5sum
11807 license:lgpl2.1+
11808 license:expat))))
11809
11810 (define-public eboard
11811 (package
11812 (name "eboard")
11813 (version "1.1.3")
11814 (source
11815 (origin
11816 (method git-fetch)
11817 (uri (git-reference
11818 (url "https://github.com/fbergo/eboard")
11819 (commit (string-append "v" version))))
11820 (file-name (git-file-name name version))
11821 (sha256
11822 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11823 (build-system gnu-build-system)
11824 (native-inputs
11825 `(("perl" ,perl)
11826 ("pkg-config" ,pkg-config)))
11827 (inputs
11828 `(("gtk+" ,gtk+-2)
11829 ("libpng" ,libpng)
11830 ("gstreamer" ,gstreamer)))
11831 (arguments
11832 `(#:tests? #f
11833 #:phases
11834 (modify-phases %standard-phases
11835 (replace 'configure
11836 (lambda* (#:key outputs #:allow-other-keys)
11837 (make-file-writable "eboard-config")
11838 (setenv "CC" "gcc")
11839 (invoke "./configure"
11840 (string-append "--prefix=" (assoc-ref outputs "out")))
11841 #t))
11842 (add-before 'install 'make-required-directories
11843 (lambda* (#:key outputs #:allow-other-keys)
11844 (mkdir-p (string-append (assoc-ref outputs "out")
11845 "/share/eboard"))
11846 #t)))))
11847 (synopsis "Graphical user interface to play chess")
11848 (description
11849 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11850 and chess engines.")
11851 (home-page "https://www.bergo.eng.br/eboard/")
11852 (license license:gpl2+)))
11853
11854 (define-public chessx
11855 (package
11856 (name "chessx")
11857 (version "1.5.6")
11858 (source
11859 (origin
11860 (method url-fetch)
11861 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11862 version "/chessx-" version ".tgz"))
11863 (sha256
11864 (base32 "01fjchil2h6ry2ywr0dwjw2g7zd29580cr4c74d5z74h999lp6nh"))))
11865 (build-system qt-build-system)
11866 (native-inputs
11867 `(("qttools" ,qttools)))
11868 (inputs
11869 `(("qtbase" ,qtbase)
11870 ("qtmultimedia" ,qtmultimedia)
11871 ("qtspeech" ,qtspeech)
11872 ("qtsvg" ,qtsvg)
11873 ("zlib" ,zlib)))
11874 (arguments
11875 `(#:tests? #f
11876 #:phases
11877 (modify-phases %standard-phases
11878 (add-after 'unpack 'fix-paths
11879 (lambda* (#:key inputs #:allow-other-keys)
11880 (substitute* "chessx.pro"
11881 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11882 (string-append (assoc-ref inputs "qttools") "/bin/lrelease")))
11883 #t))
11884 (add-after 'fix-paths 'make-qt-deterministic
11885 (lambda _
11886 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11887 #t))
11888 (replace 'configure
11889 (lambda _
11890 (invoke "qmake")
11891 #t))
11892 (replace 'install
11893 (lambda* (#:key outputs #:allow-other-keys)
11894 (let ((out (assoc-ref outputs "out")))
11895 (install-file "release/chessx" (string-append out "/bin"))
11896 (install-file "unix/chessx.desktop"
11897 (string-append out "/share/applications")))
11898 #t)))))
11899 (synopsis "Chess game database")
11900 (description
11901 "ChessX is a chess database. With ChessX you can operate on your
11902 collection of chess games in many ways: browse, edit, add, organize, analyze,
11903 etc. You can also play games on FICS or against an engine.")
11904 (home-page "http://chessx.sourceforge.net/")
11905 (license license:gpl2+)))
11906
11907 (define-public stockfish
11908 (package
11909 (name "stockfish")
11910 (version "13")
11911 (source
11912 (origin
11913 (method git-fetch)
11914 (uri (git-reference
11915 (url "https://github.com/official-stockfish/Stockfish")
11916 (commit (string-append "sf_" version))))
11917 (file-name (git-file-name name version))
11918 (sha256
11919 (base32 "15dfp9fnl3w7dgxhqmsm461amsysn646rj1arnzvwhy2i6ijhg2m"))))
11920 (build-system gnu-build-system)
11921 (inputs
11922 `(("neural-network"
11923 ,(origin
11924 (method url-fetch)
11925 (uri "https://tests.stockfishchess.org/api/nn/nn-62ef826d1a6d.nnue")
11926 (sha256
11927 (base32 "0qsy9rr4zgxrpgwhwbi96z01a2560am2b00q2klbj4bd39nq5vv2"))))))
11928 (arguments
11929 `(#:tests? #f
11930 #:make-flags (list "-C" "src"
11931 "build"
11932 (string-append "PREFIX="
11933 (assoc-ref %outputs "out"))
11934 (string-append "ARCH="
11935 ,(match (%current-system)
11936 ("x86_64-linux" "x86-64")
11937 ("i686-linux" "x86-32")
11938 ("aarch64-linux" "general-64")
11939 ("armhf-linux" "armv7")
11940 ("mips64el-linux" "general-64")
11941 (_ "general-32"))))
11942 #:phases (modify-phases %standard-phases
11943 (delete 'configure)
11944 ;; The official neural network file is needed for building
11945 ;; and is embedded in the resulting binary.
11946 (add-after 'unpack 'copy-net
11947 (lambda* (#:key inputs #:allow-other-keys)
11948 (copy-file (assoc-ref inputs "neural-network")
11949 "src/nn-62ef826d1a6d.nnue")
11950 #t)))))
11951 (synopsis "Strong chess engine")
11952 (description
11953 "Stockfish is a very strong chess engine. It is much stronger than the
11954 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11955 ChessX.")
11956 (home-page "https://stockfishchess.org/")
11957 (license license:gpl3+)))
11958
11959 (define-public barrage
11960 (package
11961 (name "barrage")
11962 (version "1.0.5")
11963 (source
11964 (origin
11965 (method url-fetch)
11966 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11967 "barrage-" version ".tar.gz"))
11968 (sha256
11969 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11970 (build-system gnu-build-system)
11971 (inputs
11972 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11973 ("sdl" ,sdl)
11974 ("sdl-mixer" ,sdl-mixer)))
11975 (arguments
11976 `(#:configure-flags
11977 (list
11978 (string-append "CFLAGS="
11979 "-I" (assoc-ref %build-inputs "sdl-mixer")
11980 "/include/SDL"))))
11981 (home-page "http://lgames.sourceforge.net/Barrage/")
11982 (synopsis "Violent point-and-click shooting game with nice effects")
11983 (description
11984 "Barrage is a rather destructive action game that puts you on a shooting
11985 range with the objective to hit as many dummy targets as possible within
11986 3 minutes. You control a gun that may either fire small or large grenades at
11987 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11988 get high scores.")
11989 (license license:gpl2+)))
11990
11991 (define-public burgerspace
11992 (package
11993 (name "burgerspace")
11994 (version "1.9.3")
11995 (source
11996 (origin
11997 (method url-fetch)
11998 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11999 "burgerspace-" version ".tar.gz"))
12000 (sha256
12001 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
12002 (build-system gnu-build-system)
12003 (native-inputs
12004 `(("pkg-config" ,pkg-config)))
12005 (inputs
12006 `(("flatzebra" ,flatzebra)))
12007 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
12008 (synopsis "Avoid evil foodstuffs and make burgers")
12009 (description
12010 "This is a clone of the classic game BurgerTime. In it, you play
12011 the part of a chef who must create burgers by stepping repeatedly on
12012 the ingredients until they fall into place. And to make things more
12013 complicated, you also must avoid evil animate food items while
12014 performing this task, with nothing but your trusty pepper shaker to
12015 protect you.")
12016 (license license:gpl2+)))
12017
12018 (define-public 7kaa
12019 (package
12020 (name "7kaa")
12021 (version "2.15.4p1")
12022 (source
12023 (origin
12024 (method url-fetch)
12025 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
12026 "releases/download/v" version "/"
12027 "7kaa-" version ".tar.xz"))
12028 (sha256
12029 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
12030 (build-system gnu-build-system)
12031 (native-inputs
12032 `(("gettext" ,gettext-minimal)
12033 ("pkg-config" ,pkg-config)))
12034 (inputs
12035 `(("curl" ,curl)
12036 ("enet" ,enet)
12037 ("openal" ,openal)
12038 ("sdl2" ,sdl2)))
12039 (home-page "https://7kfans.com/")
12040 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
12041 (description
12042 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
12043 Strategy with the addition of trade, diplomacy, and espionage. The game
12044 enables players to compete against up to six other kingdoms allowing players
12045 to conquer opponents by defeating them in war (with troops or machines),
12046 capturing their buildings with spies, or offering opponents money for their
12047 kingdom.")
12048 (license license:gpl2+)))
12049
12050 (define-public neverball
12051 ;; Git version is 6-years younger than latest release.
12052 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
12053 (revision "1"))
12054 (package
12055 (name "neverball")
12056 (version (git-version "1.6.0" revision commit))
12057 (source
12058 (origin
12059 (method git-fetch)
12060 (uri (git-reference
12061 (url "https://github.com/Neverball/neverball")
12062 (commit commit)))
12063 (sha256
12064 (base32
12065 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
12066 (file-name (git-file-name name version))
12067 (modules '((guix build utils)))
12068 (snippet
12069 '(begin
12070 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
12071 (delete-file-recursively "data/ball/octocat")
12072 #t))))
12073 (build-system copy-build-system)
12074 (arguments
12075 `(#:install-plan
12076 '(("neverball" "bin/")
12077 ("neverputt" "bin/")
12078 ("mapc" "bin/")
12079 ("data" "share/games/neverball/")
12080 ("locale" "share/")
12081 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
12082 "neverlogos.svg"
12083 "svg readme.txt"))
12084 ("dist/" "share/applications" #:include ("neverball.desktop"
12085 "neverputt.desktop"))
12086 ("dist/neverball_16.png"
12087 "/share/icons/hicolor/16x16/apps/neverball.png")
12088 ("dist/neverball_24.png"
12089 "/share/icons/hicolor/24x24/apps/neverball.png")
12090 ("dist/neverball_32.png"
12091 "/share/icons/hicolor/32x32/apps/neverball.png")
12092 ("dist/neverball_48.png"
12093 "/share/icons/hicolor/48x48/apps/neverball.png")
12094 ("dist/neverball_64.png"
12095 "/share/icons/hicolor/64x64/apps/neverball.png")
12096 ("dist/neverball_128.png"
12097 "/share/icons/hicolor/128x128/apps/neverball.png")
12098 ("dist/neverball_256.png"
12099 "/share/icons/hicolor/256x256/apps/neverball.png")
12100 ("dist/neverball_512.png"
12101 "/share/icons/hicolor/512x512/apps/neverball.png")
12102 ("dist/neverputt_16.png"
12103 "/share/icons/hicolor/16x16/apps/neverputt.png")
12104 ("dist/neverputt_24.png"
12105 "/share/icons/hicolor/24x24/apps/neverputt.png")
12106 ("dist/neverputt_32.png"
12107 "/share/icons/hicolor/32x32/apps/neverputt.png")
12108 ("dist/neverputt_48.png"
12109 "/share/icons/hicolor/48x48/apps/neverputt.png")
12110 ("dist/neverputt_64.png"
12111 "/share/icons/hicolor/64x64/apps/neverputt.png")
12112 ("dist/neverputt_128.png"
12113 "/share/icons/hicolor/128x128/apps/neverputt.png")
12114 ("dist/neverputt_256.png"
12115 "/share/icons/hicolor/256x256/apps/neverputt.png")
12116 ("dist/neverputt_512.png"
12117 "/share/icons/hicolor/512x512/apps/neverputt.png")
12118 ("dist/" "share/man/man1" #:include ("mapc.1"))
12119 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
12120 ("doc/" "share/doc/neverball")
12121 ("README.md" "share/doc/neverball/"))
12122 #:phases
12123 (modify-phases %standard-phases
12124 (add-before 'install 'build
12125 (lambda* (#:key inputs outputs #:allow-other-keys)
12126 (let* ((out (assoc-ref outputs "out"))
12127 (sdl (assoc-ref inputs "sdl")))
12128 (invoke "make" "-j" (number->string (parallel-job-count))
12129 "--environment-overrides"
12130 "CC=gcc" "BUILD=release"
12131 (string-append "DATADIR="
12132 out
12133 "/share/games/neverball/data")
12134 (string-append "LOCALEDIR=" out "/share/locale")
12135 (string-append "SDL_CPPFLAGS=-I"
12136 sdl
12137 "/include/SDL2/")))
12138 #t))
12139 (add-after 'install 'fix-some-broken-fonts
12140 (lambda* (#:key outputs #:allow-other-keys)
12141 (let* ((out (assoc-ref outputs "out")))
12142 (wrap-program (string-append out "/bin/neverball")
12143 `("LANG" = ("en_US.utf8")))
12144 (wrap-program (string-append out "/bin/neverputt")
12145 `("LANG" = ("en_US.utf8"))))
12146 #t)))))
12147 (native-inputs
12148 `(("gettext" ,gettext-minimal))) ;for msgfmt
12149 (inputs
12150 `(("libjpeg" ,libjpeg-turbo)
12151 ("libpng" ,libpng)
12152 ("libvorbis" ,libvorbis)
12153 ("physfs" ,physfs)
12154 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
12155 (home-page "https://neverball.org/")
12156 (synopsis "3D floor-tilting game")
12157 (description
12158 "In the grand tradition of Marble Madness and Super Monkey Ball,
12159 Neverball has you guide a rolling ball through dangerous territory. Balance
12160 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
12161 and shovers to get to the goal. Race against the clock to collect coins to
12162 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
12163 game.") ;thanks to Debian for description
12164 (license license:gpl2+))))
12165
12166 (define-public pokerth
12167 (package
12168 (name "pokerth")
12169 (version "1.1.2")
12170 (source
12171 (origin
12172 (method url-fetch)
12173 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
12174 version "/pokerth-" version ".tar.gz"))
12175 (sha256
12176 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
12177 (modules '((guix build utils)))
12178 (snippet
12179 '(begin
12180 ;; Remove bundled websocketpp.
12181 (delete-file-recursively "src/third_party/websocketpp")
12182 (substitute* "pokerth_lib.pro"
12183 (("src/third_party/websocketpp")
12184 ""))
12185 #t))))
12186 (build-system qt-build-system)
12187 (inputs
12188 `(("boost" ,boost)
12189 ("curl" ,curl)
12190 ("gsasl" ,gsasl)
12191 ("libgcrypt" ,libgcrypt)
12192 ("libircclient" ,libircclient)
12193 ("protobuf" ,protobuf-2) ; remove package when no longer needed
12194 ("qtbase" ,qtbase)
12195 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
12196 ("sqlite" ,sqlite)
12197 ("tinyxml" ,tinyxml)
12198 ("websocketpp" ,websocketpp)
12199 ("zlib" ,zlib)))
12200 (arguments
12201 `(#:tests? #f ; No test suite
12202 #:phases
12203 (modify-phases %standard-phases
12204 (add-after 'unpack 'fix-paths
12205 (lambda* (#:key inputs #:allow-other-keys)
12206 (substitute* (find-files "." "\\.pro$")
12207 (("/opt/gsasl")
12208 (assoc-ref inputs "gsasl"))
12209 (("\\$\\$\\{PREFIX\\}/include/libircclient")
12210 (string-append (assoc-ref inputs "libircclient")
12211 "/include/libircclient"))
12212 (("LIB_DIRS =")
12213 (string-append "LIB_DIRS = "
12214 (assoc-ref inputs "boost") "/lib")))
12215 #t))
12216 (add-after 'unpack 'fix-build
12217 (lambda _
12218 ;; Fixes for Boost versions >= 1.66.
12219 (substitute* '("src/net/common/clientthread.cpp"
12220 "src/net/serveraccepthelper.h")
12221 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
12222 "")
12223 (("newSock->io_control\\(command\\);")
12224 "newSock->non_blocking(true);")
12225 (("acceptedSocket->io_control\\(command\\);")
12226 "acceptedSocket->non_blocking(true);"))
12227 #t))
12228 (replace 'configure
12229 (lambda* (#:key outputs #:allow-other-keys)
12230 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
12231 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
12232 (home-page "https://www.pokerth.net")
12233 (synopsis "Texas holdem poker game")
12234 (description
12235 "With PokerTH you can play the Texas holdem poker game, either against
12236 computer opponents or against real players online.")
12237 (license license:agpl3+)))
12238
12239 (define-public azimuth
12240 (package
12241 (name "azimuth")
12242 ;; Not marked as latest release, but it fixes a compiling issue
12243 ;; and adds the install target.
12244 (version "1.0.3")
12245 (source
12246 (origin
12247 (method git-fetch)
12248 (uri (git-reference
12249 (url "https://github.com/mdsteele/azimuth")
12250 (commit (string-append "v" version))))
12251 (file-name (git-file-name name version))
12252 (sha256
12253 (base32
12254 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
12255 (build-system gnu-build-system)
12256 (arguments
12257 `(#:test-target "test"
12258 #:phases
12259 (modify-phases %standard-phases
12260 (delete 'configure) ; no configure script
12261 ;; Build release version instead of debug version.
12262 (add-after 'unpack 'set-release
12263 (lambda _
12264 (setenv "BUILDTYPE" "release") #t))
12265 (add-after 'unpack 'fix-install ; set install directory
12266 (lambda* (#:key outputs #:allow-other-keys)
12267 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12268 (inputs `(("sdl" ,sdl)))
12269 (home-page "https://mdsteele.games/azimuth/")
12270 (synopsis "Metroidvania game with vector graphics")
12271 (description
12272 "Pilot your ship inside a planet to find and rescue the colonists trapped
12273 inside the Zenith Colony.")
12274 (license license:gpl3+)))
12275
12276 (define-public cgoban
12277 (package
12278 (name "cgoban")
12279 (version "1.9.14")
12280 (source
12281 (origin
12282 (method url-fetch)
12283 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12284 version "/cgoban-" version ".tar.gz"))
12285 (sha256
12286 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12287 (build-system gnu-build-system)
12288 (inputs
12289 `(("libx11" ,libx11)
12290 ("libxt" ,libxt)
12291 ("xorgproto" ,xorgproto)))
12292 (home-page "http://cgoban1.sourceforge.net/")
12293 (synopsis "Go client for X11")
12294 (description "Provides a large set of Go-related services for X11:
12295 @itemize
12296 @item Local games with precise implementation of the Chinese and Japanese rulesets
12297 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12298 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12299 such as GnuGo.
12300 @end itemize")
12301 (license license:gpl2+)))
12302
12303 (define-public passage
12304 (package
12305 (name "passage")
12306 (version "4")
12307 (source
12308 (origin
12309 (method url-fetch)
12310 (uri (string-append "mirror://sourceforge/hcsoftware/Passage/v"
12311 version "/Passage_v" version "_UnixSource.tar.gz"))
12312 (sha256
12313 (base32 "02ky4a4xdjvr71r58339jjrjyz76b5skcnbq4f8707mrln9vhby3"))))
12314 (build-system gnu-build-system)
12315 (arguments
12316 `(#:tests? #false ; there are none
12317 #:phases
12318 (modify-phases %standard-phases
12319 (add-after 'unpack 'chdir
12320 (lambda _
12321 (chdir "gamma256/gameSource")
12322 (system "cat Makefile.GnuLinux Makefile.all > Makefile")))
12323 (replace 'configure
12324 (lambda* (#:key outputs inputs #:allow-other-keys)
12325 (setenv "CPATH"
12326 (string-append
12327 (assoc-ref inputs "sdl") "/include/SDL:"
12328 (or (getenv "CPATH") "")))
12329 (let* ((out (assoc-ref outputs "out"))
12330 (assets (string-append out "/share/passage")))
12331 (substitute* "common.cpp"
12332 (("readTGA\\( \"graphics\"")
12333 (format #false "readTGA(\"~a/graphics\"" assets)))
12334 (substitute* "musicPlayer.cpp"
12335 (("readTGA\\( \"music\"")
12336 (format #false "readTGA(\"~a/music\"" assets))))))
12337 (replace 'install
12338 (lambda* (#:key outputs #:allow-other-keys)
12339 (let* ((out (assoc-ref outputs "out"))
12340 (bin (string-append out "/bin"))
12341 (assets (string-append out "/share/passage/")))
12342 (install-file "Passage" bin)
12343 (install-file "../documentation/Readme.txt" assets)
12344 (copy-recursively "graphics" (string-append assets "graphics"))
12345 (copy-recursively "music" (string-append assets "music"))
12346 (copy-recursively "settings" (string-append assets "settings"))))))))
12347 (inputs
12348 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
12349 (native-inputs
12350 `(("imagemagick" ,imagemagick)))
12351 (home-page "http://hcsoftware.sourceforge.net/passage/")
12352 (synopsis "Memento mori game")
12353 (description
12354 "Passage is meant to be a memento mori game. It presents an entire life,
12355 from young adulthood through old age and death, in the span of five minutes.
12356 Of course, it's a game, not a painting or a film, so the choices that you make
12357 as the player are crucial. There's no ``right'' way to play Passage, just as
12358 there's no right way to interpret it.")
12359 (license license:public-domain)))
12360
12361 (define-public paperview
12362 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12363 (revision "1"))
12364 (package
12365 (name "paperview")
12366 (version (git-version "0.0.1" revision commit)) ;no upstream release
12367 (source (origin
12368 (method git-fetch)
12369 (uri (git-reference
12370 (url "https://github.com/glouw/paperview")
12371 (commit commit)))
12372 (file-name (git-file-name name version))
12373 (sha256
12374 (base32
12375 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12376 (build-system gnu-build-system)
12377 (inputs
12378 `(("sdl2" ,sdl2)))
12379 (arguments
12380 '(#:tests? #f ;no tests
12381 #:make-flags
12382 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12383 #:phases
12384 (modify-phases %standard-phases
12385 (delete 'configure))))
12386 (home-page "https://github.com/glouw/paperview/")
12387 (synopsis "High performance X11 animated wallpaper setter")
12388 (description "High performance animated desktop background setter for
12389 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12390 game FPS.")
12391 (license license:unlicense))))
12392
12393 (define-public curseofwar
12394 (package
12395 (name "curseofwar")
12396 (version "1.3.0")
12397 (source
12398 (origin
12399 (method git-fetch)
12400 (uri (git-reference
12401 (url "https://github.com/a-nikolaev/curseofwar")
12402 (commit (string-append "v" version))))
12403 (file-name (git-file-name name version))
12404 (sha256
12405 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12406 (build-system gnu-build-system)
12407 (arguments
12408 `(#:tests? #f ; no tests
12409 #:make-flags
12410 (list (string-append "CC=" ,(cc-for-target))
12411 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12412 #:phases
12413 (modify-phases %standard-phases
12414 (delete 'configure))))
12415 (inputs `(("ncurses" ,ncurses)))
12416 (home-page "https://a-nikolaev.github.io/curseofwar/")
12417 (synopsis "Fast-paced action strategy game")
12418 (description "Curse of War is a fast-paced action strategy game originally
12419 implemented using ncurses user interface. An SDL graphical version is also
12420 available.")
12421 (license license:gpl3+)))