gnu: Add solarus.
[jackhill/guix/guix.git] / gnu / packages / games.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Eric Bavier <bavier@posteo.net>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015, 2019 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015, 2017, 2018 Christopher Lemmer Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017, 2019 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
35 ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
36 ;;; Copyright © 2018 Madalin Ionel-Patrascu <madalinionel.patrascu@mdc-berlin.de>
37 ;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
38 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
39 ;;; Copyright © 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
40 ;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
41 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
42 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
43 ;;; Copyright © 2019, 2020 Jesse Gibbons <jgibbons2357+guix@gmail.com>
44 ;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
45 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
46 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
47 ;;; Copyright © 2019 Josh Holland <josh@inv.alid.pw>
48 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
49 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
50 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
51 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
52 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
53 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
54 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
57 ;;; Copyright © 2020 Lu hux <luhux@outlook.com>
58 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
59 ;;;
60 ;;; This file is part of GNU Guix.
61 ;;;
62 ;;; GNU Guix is free software; you can redistribute it and/or modify it
63 ;;; under the terms of the GNU General Public License as published by
64 ;;; the Free Software Foundation; either version 3 of the License, or (at
65 ;;; your option) any later version.
66 ;;;
67 ;;; GNU Guix is distributed in the hope that it will be useful, but
68 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
69 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
70 ;;; GNU General Public License for more details.
71 ;;;
72 ;;; You should have received a copy of the GNU General Public License
73 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
74
75 (define-module (gnu packages games)
76 #:use-module (ice-9 match)
77 #:use-module ((guix licenses) #:prefix license:)
78 #:use-module (guix utils)
79 #:use-module (guix packages)
80 #:use-module (guix download)
81 #:use-module (guix git-download)
82 #:use-module (guix svn-download)
83 #:use-module (guix gexp)
84 #:use-module (gnu packages)
85 #:use-module (gnu packages adns)
86 #:use-module (gnu packages algebra)
87 #:use-module (gnu packages autotools)
88 #:use-module (gnu packages backup)
89 #:use-module (gnu packages base)
90 #:use-module (gnu packages build-tools)
91 #:use-module (gnu packages admin)
92 #:use-module (gnu packages audio)
93 #:use-module (gnu packages avahi)
94 #:use-module (gnu packages assembly)
95 #:use-module (gnu packages bash)
96 #:use-module (gnu packages bison)
97 #:use-module (gnu packages boost)
98 #:use-module (gnu packages check)
99 #:use-module (gnu packages cmake)
100 #:use-module (gnu packages compression)
101 #:use-module (gnu packages cpp)
102 #:use-module (gnu packages curl)
103 #:use-module (gnu packages crypto)
104 #:use-module (gnu packages cyrus-sasl)
105 #:use-module (gnu packages documentation)
106 #:use-module (gnu packages docbook)
107 #:use-module (gnu packages emulators)
108 #:use-module (gnu packages flex)
109 #:use-module (gnu packages fltk)
110 #:use-module (gnu packages fonts)
111 #:use-module (gnu packages fontutils)
112 #:use-module (gnu packages freedesktop)
113 #:use-module (gnu packages fribidi)
114 #:use-module (gnu packages game-development)
115 #:use-module (gnu packages gcc)
116 #:use-module (gnu packages gettext)
117 #:use-module (gnu packages ghostscript)
118 #:use-module (gnu packages gimp)
119 #:use-module (gnu packages gl)
120 #:use-module (gnu packages glib)
121 #:use-module (gnu packages gnome)
122 #:use-module (gnu packages gnu-doc)
123 #:use-module (gnu packages gnupg)
124 #:use-module (gnu packages gnuzilla)
125 #:use-module (gnu packages gperf)
126 #:use-module (gnu packages graphics)
127 #:use-module (gnu packages gsasl)
128 #:use-module (gnu packages gstreamer)
129 #:use-module (gnu packages gtk)
130 #:use-module (gnu packages guile)
131 #:use-module (gnu packages haskell)
132 #:use-module (gnu packages haskell-crypto)
133 #:use-module (gnu packages haskell-xyz)
134 #:use-module (gnu packages icu4c)
135 #:use-module (gnu packages image)
136 #:use-module (gnu packages imagemagick)
137 #:use-module (gnu packages javascript)
138 #:use-module (gnu packages kde)
139 #:use-module (gnu packages kde-frameworks)
140 #:use-module (gnu packages less)
141 #:use-module (gnu packages libcanberra)
142 #:use-module (gnu packages libedit)
143 #:use-module (gnu packages libunwind)
144 #:use-module (gnu packages linux)
145 #:use-module (gnu packages llvm)
146 #:use-module (gnu packages lua)
147 #:use-module (gnu packages man)
148 #:use-module (gnu packages maths)
149 #:use-module (gnu packages messaging)
150 #:use-module (gnu packages mp3)
151 #:use-module (gnu packages music)
152 #:use-module (gnu packages multiprecision)
153 #:use-module (gnu packages ncurses)
154 #:use-module (gnu packages netpbm)
155 #:use-module (gnu packages networking)
156 #:use-module (gnu packages ocaml)
157 #:use-module (gnu packages opencl)
158 #:use-module (gnu packages pcre)
159 #:use-module (gnu packages perl)
160 #:use-module (gnu packages perl-check)
161 #:use-module (gnu packages perl-compression)
162 #:use-module (gnu packages pkg-config)
163 #:use-module (gnu packages protobuf)
164 #:use-module (gnu packages pulseaudio)
165 #:use-module (gnu packages python)
166 #:use-module (gnu packages python-xyz)
167 #:use-module (gnu packages qt)
168 #:use-module (gnu packages readline)
169 #:use-module (gnu packages ruby)
170 #:use-module (gnu packages shells)
171 #:use-module (gnu packages sdl)
172 #:use-module (gnu packages serialization)
173 #:use-module (gnu packages sqlite)
174 #:use-module (gnu packages squirrel)
175 #:use-module (gnu packages swig)
176 #:use-module (gnu packages tcl)
177 #:use-module (gnu packages terminals)
178 #:use-module (gnu packages texinfo)
179 #:use-module (gnu packages textutils)
180 #:use-module (gnu packages tls)
181 #:use-module (gnu packages upnp)
182 #:use-module (gnu packages video)
183 #:use-module (gnu packages vulkan)
184 #:use-module (gnu packages web)
185 #:use-module (gnu packages wget)
186 #:use-module (gnu packages wxwidgets)
187 #:use-module (gnu packages xdisorg)
188 #:use-module (gnu packages xorg)
189 #:use-module (gnu packages xiph)
190 #:use-module (gnu packages xml)
191 #:use-module (guix build-system copy)
192 #:use-module (guix build-system cmake)
193 #:use-module (guix build-system glib-or-gtk)
194 #:use-module (guix build-system gnu)
195 #:use-module (guix build-system go)
196 #:use-module (guix build-system meson)
197 #:use-module (guix build-system perl)
198 #:use-module (guix build-system python)
199 #:use-module (guix build-system qt)
200 #:use-module (guix build-system scons)
201 #:use-module (guix build-system trivial)
202 #:use-module ((srfi srfi-1) #:hide (zip))
203 #:use-module (srfi srfi-26))
204
205 (define-public abe
206 (package
207 (name "abe")
208 (version "1.1")
209 (source
210 (origin
211 (method url-fetch)
212 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
213 "/abe-" version ".tar.gz"))
214 (sha256
215 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
216 (build-system gnu-build-system)
217 (arguments
218 `(#:configure-flags
219 (list (string-append "--with-data-dir="
220 (assoc-ref %outputs "out")
221 "/share/abe"))
222 #:phases
223 (modify-phases %standard-phases
224 (replace 'bootstrap
225 (lambda _ (invoke "sh" "autogen.sh")))
226 (add-before 'build 'set-SDL
227 ;; Set correct environment for SDL.
228 (lambda* (#:key inputs #:allow-other-keys)
229 (setenv "CPATH"
230 (string-append
231 (assoc-ref inputs "sdl") "/include/SDL:"
232 (or (getenv "CPATH") "")))
233 #t))
234 (add-after 'install 'finalize-install
235 (lambda* (#:key outputs #:allow-other-keys)
236 (let ((share (string-append (assoc-ref outputs "out") "/share")))
237 ;; Installation script does not copy game data files.
238 (let ((data (string-append share "/abe")))
239 (for-each (lambda (dir)
240 (let ((target (string-append data "/" dir)))
241 (mkdir-p target)
242 (copy-recursively dir target)))
243 '("images" "maps" "sounds")))
244 ;; Create desktop file.
245 (let ((apps (string-append share "/applications")))
246 (mkdir-p apps)
247 (make-desktop-entry-file
248 (string-append apps "/abe.desktop")
249 #:name "Abe's Amazing Adventure"
250 #:exec ,name
251 #:categories '("AdventureGame" "Game")
252 #:keywords
253 '("side-scrolling" "adventure" "pyramid" "singleplayer")
254 #:comment
255 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
256 (#f "Side-scrolling game")))))
257 #t)))))
258 (native-inputs
259 `(("autoconf" ,autoconf)
260 ("automake" ,automake)))
261 (inputs
262 `(("libxi" ,libxi)
263 ("libxmu" ,libxmu)
264 ("libxt" ,libxt)
265 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
266 (home-page "http://abe.sourceforge.net")
267 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
268 (description
269 "Abe's Amazing Adventure is a scrolling,
270 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
271 the style of similar games for the Commodore+4.")
272 (license license:gpl2+)))
273
274 ;; Data package for adanaxisgpl.
275 (define adanaxis-mush
276 (let ((version "1.1.0"))
277 (origin
278 (method url-fetch)
279 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
280 version ".tar.gz"))
281 (sha256
282 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
283
284 (define-public adanaxisgpl
285 (package
286 (name "adanaxisgpl")
287 (version "1.2.5")
288 (source
289 (origin
290 (method url-fetch)
291 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
292 version ".tar.gz"))
293 (sha256
294 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
295 (modules '((guix build utils)))
296 (snippet
297 '(begin
298 ;; Necessary for building with gcc >=4.7.
299 (substitute* "src/Mushcore/MushcoreSingleton.h"
300 (("SingletonPtrSet\\(new SingletonType\\);")
301 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
302 ;; Avoid an "invalid conversion from const char* to char*" error.
303 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
304 (("char \\*end, \\*result;")
305 (string-append "const char *end;"
306 "\n"
307 "char *result;")))
308 #t))))
309 (build-system gnu-build-system)
310 (arguments
311 `(#:tests? #f ; no check target
312 #:phases
313 (modify-phases %standard-phases
314 (add-after 'install 'install-data
315 (lambda* (#:key inputs outputs #:allow-other-keys)
316 (let ((data (assoc-ref inputs "adanaxis-mush"))
317 (share (string-append (assoc-ref outputs "out")
318 "/share/" ,name "-" ,version)))
319 (mkdir-p share)
320 (invoke "tar" "xvf" data "-C" share)))))))
321 (native-inputs
322 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
323 (inputs
324 `(("expat" ,expat)
325 ("freeglut" ,freeglut)
326 ("glu" ,glu)
327 ("libjpeg" ,libjpeg-turbo)
328 ("libogg" ,libogg)
329 ("libtiff" ,libtiff)
330 ("libvorbis" ,libvorbis)
331 ("libx11" ,libx11)
332 ("libxext" ,libxext)
333 ("pcre" ,pcre)
334 ("sdl" ,sdl)
335 ("sdl-mixer" ,sdl-mixer)))
336 (home-page "https://www.mushware.com")
337 (synopsis "Action game in four spatial dimensions")
338 (description
339 "Adanaxis is a fast-moving first person shooter set in deep space, where
340 the fundamentals of space itself are changed. By adding another dimension to
341 space this game provides an environment with movement in four directions and
342 six planes of rotation. Initially the game explains the 4D control system via
343 a graphical sequence, before moving on to 30 levels of gameplay with numerous
344 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
345 mouse and joystick control, and original music.")
346 (license license:gpl2)))
347
348 (define-public alex4
349 (package
350 (name "alex4")
351 (version "1.2.1")
352 (source
353 (origin
354 (method git-fetch)
355 (uri (git-reference
356 (url "https://github.com/carstene1ns/alex4")
357 (commit version)))
358 (file-name (git-file-name name version))
359 (sha256
360 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
361 (build-system gnu-build-system)
362 (arguments
363 `(#:tests? #f ; no check target
364 #:make-flags
365 (list "CC=gcc"
366 "CFLAGS=-D_FILE_OFFSET_BITS=64"
367 (string-append "PREFIX=" (assoc-ref %outputs "out")))
368 #:phases
369 (modify-phases %standard-phases
370 (delete 'configure) ; no configure script
371 (add-after 'install 'install-data
372 (lambda* (#:key outputs #:allow-other-keys)
373 (let ((share (string-append (assoc-ref outputs "out")
374 "/share/" ,name)))
375 (install-file "alex4.ini" share)
376 #t))))))
377 (inputs
378 `(("allegro" ,allegro-4)
379 ("dumb" ,dumb-allegro4)))
380 (home-page "http://allegator.sourceforge.net/")
381 (synopsis "Retro platform game")
382 (description
383 "Guide Alex the Allegator through the jungle in order to save his
384 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
385 Plenty of classic platforming in four nice colors guaranteed!
386
387 The game includes a built-in editor so you can design and share your own maps.")
388 (license license:gpl2+)))
389
390 (define-public armagetronad
391 (package
392 (name "armagetronad")
393 (version "0.2.9.0.1")
394 (source (origin
395 (method url-fetch)
396 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
397 version "/armagetronad-" version ".tbz"))
398 (sha256
399 (base32
400 "19rfhlg4gp0r7k1j8v4iw20325ciy156nmzax4xikmw22c6nmxcz"))))
401 (build-system gnu-build-system)
402 (native-inputs
403 `(("pkg-config" ,pkg-config)))
404 (inputs
405 `(("libxml2" ,libxml2)
406 ("sdl" ,sdl)
407 ("sdl-image" ,sdl-image)
408 ("freeglut" ,freeglut)
409 ("libpng" ,libpng)
410 ("libjpeg-turbo" ,libjpeg-turbo)))
411 (home-page "http://www.armagetronad.org")
412 (synopsis "Tron clone in 3D")
413 (description "Armagetron Advanced is a multiplayer game in 3d that
414 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
415 It's an old school arcade game slung into the 21st century. Highlights
416 include a customizable playing arena, HUD, unique graphics, and AI bots. For
417 the more advanced player there are new game modes and a wide variety of
418 physics settings to tweak as well.")
419 (license license:gpl2+)))
420
421 (define-public astromenace
422 (package
423 (name "astromenace")
424 (version "1.4.1")
425 (source
426 (origin
427 (method git-fetch)
428 (uri (git-reference
429 (url "https://github.com/viewizard/astromenace")
430 (commit (string-append "v" version))))
431 (file-name (git-file-name name version))
432 (sha256
433 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
434 (build-system cmake-build-system)
435 (arguments
436 `(#:tests? #f ;no test
437 #:configure-flags (list (string-append "-DDATADIR="
438 (assoc-ref %outputs "out")
439 "/share/astromenace"))
440 #:phases
441 (modify-phases %standard-phases
442 (replace 'install
443 ;; Upstream provides no install phase.
444 (lambda* (#:key inputs outputs #:allow-other-keys)
445 (let* ((out (assoc-ref outputs "out"))
446 (bin (string-append out "/bin"))
447 (share (string-append out "/share"))
448 (apps (string-append share "/applications"))
449 (data (string-append share "/astromenace"))
450 (icons (string-append share "/icons/hicolor/64x64/apps")))
451 (install-file "astromenace" bin)
452 (install-file "gamedata.vfs" data)
453 (let ((source (assoc-ref inputs "source")))
454 (with-directory-excursion (string-append source "/share")
455 (install-file "astromenace.desktop" apps)
456 (mkdir-p icons)
457 (copy-file "astromenace_64.png"
458 (string-append icons "/astromenace.png")))))
459 #t)))))
460 (inputs
461 `(("freealut" ,freealut)
462 ("freetype" ,freetype)
463 ("glu" ,glu)
464 ("libogg" ,libogg)
465 ("libvorbis" ,libvorbis)
466 ("openal" ,openal)
467 ("sdl2" ,sdl2)))
468 (home-page "https://www.viewizard.com/")
469 (synopsis "3D space shooter with spaceship upgrade possibilities")
470 (description
471 "Space is a vast area, an unbounded territory where it seems there is
472 a room for everybody, but reversal of fortune put things differently. The
473 hordes of hostile creatures crawled out from the dark corners of the universe,
474 craving to conquer your homeland. Their force is compelling, their legions
475 are interminable. However, humans didn't give up without a final showdown and
476 put their best pilot to fight back. These malicious invaders chose the wrong
477 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
478 regret their insolence.")
479 ;; Game is released under GPL3+ terms. Artwork is subject to CC
480 ;; BY-SA 4.0, and fonts to OFL1.1.
481 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
482
483 (define-public bastet
484 (package
485 (name "bastet")
486 (version "0.43.2")
487 (source
488 (origin
489 (method git-fetch)
490 (uri (git-reference
491 (url "https://github.com/fph/bastet")
492 (commit version)))
493 (file-name (git-file-name name version))
494 (sha256
495 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
496 (patches
497 (search-patches "bastet-change-source-of-unordered_set.patch"))))
498 (build-system gnu-build-system)
499 (arguments
500 `(#:make-flags
501 (list (string-append "CXXFLAGS=-I"
502 (assoc-ref %build-inputs "boost") "/include"))
503 #:phases
504 (modify-phases %standard-phases
505 (delete 'configure) ; no configure script
506 (replace 'check
507 ;; The 'Test' target builds the tests, but doesn't actually run them.
508 (lambda* (#:key make-flags #:allow-other-keys)
509 (apply invoke "make" "Test" make-flags)
510 (setenv "HOME" ".")
511 (invoke "./Test")))
512 (replace 'install
513 (lambda* (#:key outputs #:allow-other-keys)
514 (let* ((out (assoc-ref outputs "out"))
515 (share (string-append out "/share"))
516 (hicolor (string-append share "/icons/hicolor")))
517 (install-file "bastet"
518 (string-append out "/bin"))
519
520 (install-file "bastet.desktop"
521 (string-append share "/applications"))
522 (install-file "bastet.svg"
523 (string-append hicolor "/scalable/apps"))
524
525 (install-file "bastet.appdata.xml"
526 (string-append share "/appdata"))
527
528 (install-file "bastet.6"
529 (string-append out "/share/man/man6"))
530 #t))))))
531 (native-inputs
532 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
533 (inputs
534 `(("boost" ,boost)
535 ("ncurses" ,ncurses)))
536 (home-page "https://fph.altervista.org/prog/bastet.html")
537 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
538 (description
539 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
540 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
541 Instead, it uses a special algorithm to choose the worst brick possible.
542
543 Playing bastet can be a painful experience, especially if you usually make
544 canyons and wait for the long I-shaped block to clear four rows at a time.")
545 (license license:gpl3+)))
546
547 (define-public blobwars
548 (package
549 (name "blobwars")
550 (version "2.00")
551 (source
552 (origin
553 (method url-fetch)
554 (uri (string-append "mirror://sourceforge/blobwars/"
555 "blobwars-" version ".tar.gz"))
556 (sha256
557 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
558 (build-system gnu-build-system)
559 (arguments
560 `(#:tests? #f ;no test
561 #:make-flags
562 (let ((out (assoc-ref %outputs "out")))
563 (list (string-append "PREFIX=" out)
564 (string-append "BINDIR=" out "/bin/")
565 "USEPAK=1"
566 "RELEASE=1"))
567 #:phases
568 (modify-phases %standard-phases
569 (add-after 'unpack 'werror-begone
570 (lambda _
571 (substitute* "Makefile" (("-Werror") ""))
572 #t))
573 (delete 'configure)))) ;no configure script
574 (native-inputs
575 `(("gettext" ,gettext-minimal)
576 ("pkg-config" ,pkg-config)))
577 (inputs
578 `(("hicolor-icon-theme" ,hicolor-icon-theme)
579 ("sdl" ,(sdl-union (list sdl2
580 sdl2-image
581 sdl2-mixer
582 sdl2-ttf
583 sdl2-net)))))
584 (home-page "https://sourceforge.net/projects/blobwars/")
585 (synopsis "Platform action game featuring a blob with a lot of weapons")
586 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
587 in the Blobwars series. You take on the role of a fearless Blob agent. Your
588 mission is to infiltrate various enemy bases and rescue as many MIAs as
589 possible, while battling many vicious aliens.")
590 (license (list license:gpl2 ; For code and graphics
591 license:cc0 ; Music and sounds have specific licenses
592 license:cc-by3.0 ; see /doc/readme
593 license:cc-by-sa3.0
594 license:lgpl2.1+
595 license:bsd-2))))
596
597 (define-public bsd-games
598 (package
599 (name "bsd-games")
600 (version "2.17.0")
601 (source
602 (origin
603 (method url-fetch)
604 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
605 (sha256
606 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
607 (patches
608 (search-patches
609 ;; thanks Arch, and Debian
610 "bsd-games-2.17-64bit.patch"
611 "bsd-games-bad-ntohl-cast.patch"
612 "bsd-games-gamescreen.h.patch"
613 "bsd-games-getline.patch"
614 "bsd-games-null-check.patch"
615 "bsd-games-number.c-and-test.patch"
616 "bsd-games-stdio.h.patch"
617 "bsd-games-prevent-name-collisions.patch"
618 ;; Guix customizations
619 "bsd-games-add-configure-config.patch"
620 "bsd-games-dont-install-empty-files.patch"
621 "bsd-games-add-wrapper.patch"))))
622 (build-system gnu-build-system)
623 (native-inputs
624 `(("flex" ,flex)
625 ("bison" ,bison)))
626 (inputs
627 `(("curses" ,ncurses)
628 ("pager" ,less)
629 ("miscfiles" ,miscfiles)
630 ("openssl" ,openssl))) ;used only by 'factor'
631 (arguments
632 `(#:phases
633 (modify-phases %standard-phases
634 (replace 'configure
635 (lambda* (#:key outputs inputs #:allow-other-keys)
636 (let* ((out (assoc-ref outputs "out"))
637 (bin (string-append out "/bin"))
638 (doc (string-append out "/share/doc/bsd-games-" ,version))
639 (man (string-append out "/share/man"))
640 (word-list (string-append (assoc-ref inputs "miscfiles")
641 "/share/web2"))
642 (static-data (string-append out "/share/games/bsd-games"))
643 ;; Not a "./" because of substitute* in 'patch-install
644 ;; below. The .// allow us not to mess with the games'
645 ;; code any further: we just use a wrapper script that
646 ;; cd's to a BSD_GAMES_DIR. :]
647 (save-files ".//"))
648 (substitute* "configure"
649 (("/usr/share/man") man)
650 (("/usr/share/doc/bsd-games") doc)
651 (("/usr/share/[^\n/]*") static-data)
652 (("/var/games") save-files)
653 (("/usr/bin/less") (which "less"))
654 (("(/usr/bin|/usr/games)") bin))
655 (substitute* "config.params" (("WORD_LIST") word-list))
656 (substitute* "wrapper" (("STATIC_DATA") static-data))
657 (invoke "./configure"))
658 #t))
659 (add-before 'install 'patch-install
660 ;; Some games need a writable directory containing pre-maded files.
661 ;; The files get installed to the Store. Then the wrapper kicks in.
662 (lambda* (#:key outputs #:allow-other-keys)
663 (let* ((out (assoc-ref outputs "out"))
664 (static-data (string-append out "/share/games/bsd-games"))
665 (save-files ".//"))
666 (substitute* "Makeconfig" ((save-files) static-data)))
667 #t))
668 (add-after 'install 'install-documents
669 (lambda* (#:key outputs #:allow-other-keys)
670 (let* ((out (assoc-ref outputs "out"))
671 (doc (string-append out "/share/doc/bsd-games-" ,version)))
672 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
673 (for-each
674 (lambda(file) (install-file file doc))
675 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
676 "phantasia-COPYRIGHT")))
677 #t)))))
678 (home-page "https://github.com/vattam/BSDGames")
679 (synopsis "Collection of the old text-based games and amusements")
680 (description
681 "These are the BSD games. See the fortune-mod package for fortunes.
682
683 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
684 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
685 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
686 the $$ from the cave, anger the snake, and get out alive), tetris (game of
687 lining up the falling bricks of different shapes), and worm (eat, grow big,
688 and neither bite your tail, nor ram the wall).
689
690 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
691 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
692 the input), factor (factorizes a number), number (translates numbers into
693 text), pig (translates from English to Pig Latin), pom (should print the
694 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
695 in terminal), random (prints randomly chosen lines from files, or returns a
696 random exit-code), and wtf (explains what do some acronyms mean).
697
698 Board: backgammon (lead the men out of board faster than the friend do),
699 boggle (find the words in the square of letters), dab (game of dots and
700 boxes), gomoku (game of five in a row), hangman (guess a word before man is
701 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
702 canfield, cribbage, fish (juniors game), and mille.
703
704 Quests: adventure (search for treasures with the help of wizard),
705 battlestar (explore the world around, starting from dying spaceship),
706 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
707 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
708
709 Quizes: arithmetic, and quiz.")
710 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
711 ;; not bearing copyright notices, probably fall under the terms of the UCB
712 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
713 ;; warning in regard to the fortune databases."
714 (license (list
715 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
716 ;; lib/strlcpy.c, wargames/wargames.6
717 license:bsd-3
718 ;; dab and hunt. Files: adventure/extern.h,
719 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
720 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
721 ;; hack/extern.h, robots/auto.c, sail/display.h,
722 ;; sail/restart.h, wargames/wargames
723 license:bsd-4
724 ;; wtf (the game)
725 license:public-domain
726 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
727 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
728
729
730 (define-public bzflag
731 (package
732 (name "bzflag")
733 (version "2.4.20")
734 (source
735 (origin
736 (method url-fetch)
737 (uri (string-append "https://download.bzflag.org/bzflag/source/"
738 version "/bzflag-" version ".tar.bz2"))
739 (sha256
740 (base32 "16brxqmfiyz4j4lb8ihzjcbwqmpsms6vm3ijbp34lnw0blbwdjb2"))))
741 (build-system gnu-build-system)
742 (arguments
743 `(#:phases
744 (modify-phases %standard-phases
745 (add-after 'install 'install-desktop-file-and-icons
746 (lambda* (#:key outputs #:allow-other-keys)
747 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
748 (data (string-append share "/bzflag"))
749 (hicolor (string-append share "/icons/hicolor"))
750 (applications (string-append share "/applications")))
751 ;; Move desktop file.
752 (install-file (string-append data "/bzflag.desktop")
753 applications)
754 ;; Install icons.
755 (for-each (lambda (size)
756 (let* ((dim (string-append size "x" size))
757 (dir (string-append hicolor "/" dim "/apps")))
758 (mkdir-p dir)
759 (copy-file
760 (string-append data "/bzflag-" dim ".png")
761 (string-append dir "/bzflag.png"))))
762 '("48" "256")))
763 #t)))))
764 (native-inputs
765 `(("pkg-config" ,pkg-config)))
766 (inputs
767 `(("c-ares" ,c-ares)
768 ("curl" ,curl)
769 ("glew" ,glew)
770 ("glu" ,glu)
771 ("sdl2" ,sdl2)
772 ("zlib" ,zlib)))
773 (home-page "https://www.bzflag.org/")
774 (synopsis "3D first person tank battle game")
775 (description
776 "BZFlag is a 3D multi-player multiplatform tank battle game that
777 allows users to play against each other in a network environment.
778 There are five teams: red, green, blue, purple and rogue (rogue tanks
779 are black). Destroying a player on another team scores a win, while
780 being destroyed or destroying a teammate scores a loss. Rogues have
781 no teammates (not even other rogues), so they cannot shoot teammates
782 and they do not have a team score.
783
784 There are two main styles of play: capture-the-flag and free-for-all.
785 In capture-the-flag, each team (except rogues) has a team base and
786 each team with at least one player has a team flag. The object is to
787 capture an enemy team's flag by bringing it to your team's base. This
788 destroys every player on the captured team, subtracts one from that
789 team's score, and adds one to your team's score. In free-for-all,
790 there are no team flags or team bases. The object is simply to get as
791 high a score as possible.")
792 ;; The game is dual-licensed.
793 (license (list license:lgpl2.1 license:mpl2.0))))
794
795 (define-public cataclysm-dda
796 (package
797 (name "cataclysm-dda")
798 (version "0.E-3")
799 (source
800 (origin
801 (method git-fetch)
802 (uri (git-reference
803 (url "https://github.com/CleverRaven/Cataclysm-DDA")
804 (commit version)))
805 (sha256
806 (base32 "108cs6vp99qmqqfnmczad0xjgcl82bypm5xszwnlfcswdsrfs4da"))
807 (file-name (git-file-name name version))))
808 (build-system gnu-build-system)
809 (arguments
810 '(#:make-flags
811 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
812 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
813 "LOCALIZE=1" "LANGUAGES=all")
814 #:phases
815 (modify-phases %standard-phases
816 (delete 'configure)
817 (add-after 'build 'build-tiles
818 (lambda* (#:key make-flags outputs #:allow-other-keys)
819 ;; Change prefix directory and enable tile graphics and sound.
820 (apply invoke "make" "TILES=1" "SOUND=1"
821 (string-append "PREFIX="
822 (assoc-ref outputs "tiles"))
823 (cdr make-flags))))
824 (add-after 'install 'install-tiles
825 (lambda* (#:key make-flags outputs #:allow-other-keys)
826 (apply invoke "make" "install" "TILES=1" "SOUND=1"
827 (string-append "PREFIX="
828 (assoc-ref outputs "tiles"))
829 (cdr make-flags)))))
830 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
831 ;; input in order to support tests.
832 #:tests? #f))
833 (outputs '("out"
834 "tiles")) ;for tile graphics and sound support
835 (native-inputs
836 `(("gettext" ,gettext-minimal)
837 ("pkg-config" ,pkg-config)))
838 (inputs
839 `(("freetype" ,freetype)
840 ("libogg" ,libogg)
841 ("libvorbis" ,libvorbis)
842 ("ncurses" ,ncurses)
843 ("sdl2" ,sdl2)
844 ("sdl2-image" ,sdl2-image)
845 ("sdl2-ttf" ,sdl2-ttf)
846 ("sdl2-mixer" ,sdl2-mixer)))
847 (home-page "https://cataclysmdda.org/")
848 (synopsis "Survival horror roguelike video game")
849 (description
850 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
851 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
852 procedurally generated world. Scavenge the remnants of a dead civilization
853 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
854 to get you out of Dodge. Fight to defeat or escape from a wide variety of
855 powerful monstrosities, from zombies to giant insects to killer robots and
856 things far stranger and deadlier, and against the others like yourself, that
857 want what you have.")
858 (license license:cc-by-sa3.0)))
859
860 (define-public corsix-th
861 (package
862 (name "corsix-th")
863 (version "0.64")
864 (source
865 (origin
866 (method git-fetch)
867 (uri (git-reference
868 (url "https://github.com/CorsixTH/CorsixTH")
869 (commit (string-append "v" version))))
870 (file-name (git-file-name name version))
871 (sha256
872 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
873 (build-system cmake-build-system)
874 (arguments
875 `(#:phases
876 (modify-phases %standard-phases
877 (add-after 'install 'wrap-binary
878 (lambda _
879 ;; Set Lua module paths and default MIDI soundfont on startup.
880 (let* ((out (assoc-ref %outputs "out"))
881 (fluid (assoc-ref %build-inputs "fluid-3"))
882 (lua-version ,(version-major+minor (package-version lua)))
883 (lua-cpath
884 (map (lambda (lib)
885 (string-append
886 (assoc-ref %build-inputs (string-append "lua-" lib))
887 "/lib/lua/" lua-version "/?.so"))
888 '("filesystem" "lpeg"))))
889 (wrap-program (string-append out "/bin/corsix-th")
890 `("LUA_CPATH" ";" = ,lua-cpath)
891 `("SDL_SOUNDFONTS" ":" suffix
892 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
893 #t)))
894 #:tests? #f)) ; TODO need busted package to run tests
895 ;; Omit Lua-Socket dependency to disable automatic updates.
896 (inputs
897 `(("ffmpeg" ,ffmpeg)
898 ("fluid-3" ,fluid-3)
899 ("freetype" ,freetype)
900 ("lua" ,lua)
901 ("lua-filesystem" ,lua-filesystem)
902 ("lua-lpeg" ,lua-lpeg)
903 ("sdl2" ,sdl2)
904 ("sdl2-mixer" ,sdl2-mixer)))
905 (home-page "https://corsixth.com")
906 (synopsis "Implementation of the @i{Theme Hospital} game engine")
907 (description
908 "This package provides a reimplementation of the 1997 Bullfrog business
909 simulation game @i{Theme Hospital}. As well as faithfully recreating the
910 original engine, CorsixTH adds support for high resolutions, custom levels and
911 more. This package does @emph{not} provide the game assets.")
912 (license (list
913 license:expat ; main license
914 license:bsd-3)))) ; CorsixTH/Src/random.c
915
916 (define-public cowsay
917 (package
918 (name "cowsay")
919 (version "3.04")
920 (source (origin
921 (method git-fetch)
922 (uri (git-reference
923 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
924 (commit (string-append name "-" version))))
925 (file-name (git-file-name name version))
926 (sha256
927 (base32
928 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
929 (build-system gnu-build-system)
930 (arguments
931 `(#:phases
932 (modify-phases %standard-phases
933 (delete 'configure) ; no configure script
934 (delete 'build) ; nothing to be built
935 (replace 'install
936 (lambda* (#:key outputs #:allow-other-keys)
937 (invoke "sh" "install.sh"
938 (assoc-ref outputs "out"))))
939 (delete 'check)
940 (add-after 'install 'check
941 (lambda* (#:key outputs #:allow-other-keys)
942 (invoke (string-append (assoc-ref outputs "out")
943 "/bin/cowsay")
944 "We're done!"))))))
945 (inputs
946 `(("perl" ,perl)))
947 (home-page (string-append "https://web.archive.org/web/20071026043648/"
948 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
949 (synopsis "Speaking cow text filter")
950 (description "Cowsay is basically a text filter. Send some text into it,
951 and you get a cow saying your text. If you think a talking cow isn't enough,
952 cows can think too: all you have to do is run @command{cowthink}. If you're
953 tired of cows, a variety of other ASCII-art messengers are available.")
954 (license license:gpl3+)))
955
956 (define-public lolcat
957 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
958 (revision "0"))
959 (package
960 (name "lolcat")
961 (version (git-version "1.0" revision commit))
962 (source
963 (origin
964 (method git-fetch)
965 (uri (git-reference
966 (url "https://github.com/jaseg/lolcat")
967 (commit commit)))
968 (sha256
969 (base32
970 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
971 (file-name (git-file-name name version))))
972 (build-system gnu-build-system)
973 (arguments
974 `(#:tests? #f ; no check target
975 #:make-flags
976 (list ,(string-append "CC=" (cc-for-target)))
977 #:phases
978 (modify-phases %standard-phases
979 (delete 'bootstrap)
980 (delete 'configure)
981 (replace 'install
982 (lambda* (#:key outputs #:allow-other-keys)
983 (let* ((out (assoc-ref outputs "out"))
984 (dest (string-append out "/bin")))
985 (mkdir-p dest)
986 (install-file "lolcat" dest)
987 (install-file "censor" dest)
988 #t))))))
989 (home-page "https://github.com/jaseg/lolcat")
990 (synopsis "Rainbow coloring effect for text console display")
991 (description "@command{lolcat} concatenates files and streams like
992 regular @command{cat}, but it also adds terminal escape codes between
993 characters and lines resulting in a rainbow effect.")
994 (license license:wtfpl2))))
995
996 (define-public foobillard++
997 ;; Even though this latest revision is old already, stable release is
998 ;; lagging way behind it, and has issues with textures rendering.
999 (let ((svn-revision 170))
1000 (package
1001 (name "foobillard++")
1002 (version (string-append "3.43-r" (number->string svn-revision)))
1003 (source
1004 (origin
1005 (method svn-fetch)
1006 (uri (svn-reference
1007 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1008 (revision svn-revision)))
1009 (file-name (git-file-name name version))
1010 (sha256
1011 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1012 (patches
1013 (search-patches "foobillard++-pkg-config.patch"))
1014 (modules '((guix build utils)))
1015 (snippet
1016 '(begin
1017 ;; Unfortunately, the game includes background music with
1018 ;; a non-commercial clause. Delete it.
1019 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1020 #t))))
1021 (build-system gnu-build-system)
1022 (arguments
1023 `(#:configure-flags
1024 (list
1025 ;; Install data in a less exotic location.
1026 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1027 ;; Prevent a build error about undefined trigonometric functions.
1028 "--enable-fastmath=no")
1029 #:phases
1030 (modify-phases %standard-phases
1031 (add-after 'unpack 'fix-makefile
1032 ;; Remove hard-coded directories. Also fix installation
1033 ;; rule: it tries to move around non-existent files or
1034 ;; files already moved.
1035 (lambda* (#:key outputs #:allow-other-keys)
1036 (substitute* "Makefile.am"
1037 (("/usr") (assoc-ref outputs "out"))
1038 (("cp .*?/foobillardplus\\.desktop.*") "")
1039 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1040 ""))
1041 #t))
1042 (add-after 'unpack 'unbundle-font
1043 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1044 ;; LinBiolinum_aS.ttf, which are not provided by
1045 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1046 ;; them yet.
1047 (lambda* (#:key inputs #:allow-other-keys)
1048 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1049 "/share/fonts/truetype/")))
1050 (with-directory-excursion "data"
1051 (for-each (lambda (f)
1052 (delete-file f)
1053 (symlink (string-append dejavu f) f))
1054 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1055 #t))
1056 (replace 'bootstrap
1057 (lambda _
1058 (invoke "aclocal" "--force")
1059 (invoke "autoconf" "-f")
1060 (invoke "autoheader" "-f")
1061 (invoke "automake" "-a" "-c" "-f")))
1062 (add-before 'build 'prepare-build
1063 ;; Set correct environment for SDL.
1064 (lambda* (#:key inputs #:allow-other-keys)
1065 (setenv "CPATH"
1066 (string-append (assoc-ref inputs "sdl")
1067 "/include/SDL:"
1068 (or (getenv "CPATH") "")))
1069 #t))
1070 (add-before 'build 'fix-settings-directory
1071 ;; Hide foobillardplus settings directory in $HOME.
1072 (lambda _
1073 (substitute* "src/history.c"
1074 (("/foobillardplus-data") "/.foobillardplus"))
1075 #t))
1076 (add-before 'install 'create-directories
1077 ;; Install process does not create directories before
1078 ;; trying to move file in it.
1079 (lambda* (#:key outputs #:allow-other-keys)
1080 (let ((out (assoc-ref outputs "out")))
1081 (mkdir-p (string-append out "/share/icons"))
1082 (mkdir-p (string-append out "/share/applications")))
1083 #t))
1084 (add-after 'install 'symlink-executable
1085 ;; Symlink executable to $out/bin.
1086 (lambda* (#:key outputs #:allow-other-keys)
1087 (let* ((out (assoc-ref outputs "out"))
1088 (bin (string-append out "/bin")))
1089 (mkdir-p bin)
1090 (with-directory-excursion bin
1091 (symlink "../share/foobillardplus/bin/foobillardplus"
1092 "foobillardplus"))
1093 #t))))))
1094 (native-inputs
1095 `(("autoconf" ,autoconf)
1096 ("automake" ,automake)
1097 ("pkg-config" ,pkg-config)))
1098 (inputs
1099 `(("font-dejavu" ,font-dejavu)
1100 ("freetype" ,freetype)
1101 ("glu" ,glu)
1102 ("libpng" ,libpng)
1103 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1104 (home-page "http://foobillardplus.sourceforge.net/")
1105 (synopsis "3D billiard game")
1106 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1107 based on the original foobillard 3.0a sources from Florian Berger.
1108 You can play it with one or two players or against the computer.
1109
1110 The game features:
1111
1112 @itemize
1113 @item Wood paneled table with gold covers and gold diamonds.
1114 @item Reflections on balls.
1115 @item Zoom in and out, rotation, different angles and bird's eye view.
1116 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1117 @item Tournaments. Compete against other players.
1118 @item Animated cue with strength and eccentric hit adjustment.
1119 @item Jump shots and snipping.
1120 @item Realistic gameplay and billiard sounds.
1121 @item Red-Green stereo.
1122 @item And much more.
1123 @end itemize")
1124 (license (list license:gpl2 license:silofl1.1)))))
1125
1126 (define-public freedoom
1127 (package
1128 (name "freedoom")
1129 (version "0.12.1")
1130 (source
1131 (origin
1132 (method git-fetch)
1133 (uri (git-reference
1134 (url "https://github.com/freedoom/freedoom")
1135 (commit (string-append "v" version))))
1136 (file-name (git-file-name name version))
1137 (sha256
1138 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1139 (build-system gnu-build-system)
1140 (arguments
1141 '(#:make-flags
1142 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1143 #:tests? #f ; no check target
1144 #:phases
1145 (modify-phases %standard-phases
1146 (delete 'bootstrap)
1147 (replace 'configure
1148 (lambda* (#:key inputs outputs #:allow-other-keys)
1149 (let* ((freedoom (assoc-ref outputs "out"))
1150 (wad-dir (string-append freedoom "/share/games/doom")))
1151 ;; Make sure that the install scripts know where to find
1152 ;; the appropriate WAD files.
1153 (substitute* "dist/freedoom"
1154 (("IWAD=freedm.wad")
1155 (string-append "IWAD=" wad-dir "/freedm.wad"))
1156 (("IWAD=freedoom1.wad")
1157 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1158 (("IWAD=freedoom2.wad")
1159 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1160 #t))))))
1161 (native-inputs
1162 `(("asciidoc" ,asciidoc)
1163 ("deutex" ,deutex)
1164 ("python" ,python)
1165 ("python-pillow" ,python-pillow)))
1166 (home-page "https://freedoom.github.io/")
1167 (synopsis "Free content game based on the Doom engine")
1168 (native-search-paths
1169 (list (search-path-specification
1170 (variable "DOOMWADDIR")
1171 (files '("share/games/doom")))
1172 (search-path-specification
1173 (variable "DOOMWADPATH")
1174 (files '("share/games/doom")))))
1175 (description
1176 "The Freedoom project aims to create a complete free content first person
1177 shooter game. Freedoom by itself is just the raw material for a game: it must
1178 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1179 played. Freedoom complements the Doom engine with free levels, artwork, sound
1180 effects and music to make a completely free game.")
1181 (license license:bsd-3)))
1182
1183 (define-public freedroidrpg
1184 (package
1185 (name "freedroidrpg")
1186 (version "0.16.1")
1187 (source
1188 (origin
1189 (method url-fetch)
1190 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1191 "freedroidRPG-" (version-major+minor version) "/"
1192 "freedroidRPG-" version ".tar.gz"))
1193 (sha256
1194 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1195 (build-system gnu-build-system)
1196 (arguments
1197 `(#:configure-flags
1198 (list
1199 (string-append "CFLAGS="
1200 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1201 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1202 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1203 "--enable-opengl")
1204 ;; FIXME: the test suite fails with the following error output:
1205 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1206 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1207 #:tests? #f))
1208 (native-inputs
1209 `(("pkg-config" ,pkg-config)))
1210 (inputs
1211 `(("glu" ,glu)
1212 ("libjpeg" ,libjpeg-turbo)
1213 ("libogg" ,libogg)
1214 ("libpng" ,libpng)
1215 ("libvorbis" ,libvorbis)
1216 ("mesa" ,mesa)
1217 ("python" ,python-wrapper)
1218 ("sdl" ,sdl)
1219 ("sdl-gfx" ,sdl-gfx)
1220 ("sdl-image" ,sdl-image)
1221 ("sdl-mixer" ,sdl-mixer)
1222 ("zlib" ,zlib)))
1223 (home-page "https://www.freedroid.org/")
1224 (synopsis "Isometric role-playing game against killer robots")
1225 (description
1226 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1227 The game tells the story of a world destroyed by a conflict between robots and
1228 their human masters. To restore peace to humankind, the player must complete
1229 numerous quests while fighting off rebelling robots---either by taking control
1230 of them, or by simply blasting them to pieces with melee and ranged weapons in
1231 real-time combat.")
1232 (license (list license:expat ; lua/
1233 license:gpl3 ; src/gen_savestruct.py
1234 license:gpl2+)))) ; the rest
1235
1236 (define-public golly
1237 (package
1238 (name "golly")
1239 (version "3.3")
1240 (source (origin
1241 (method url-fetch)
1242 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1243 version "/golly-" version
1244 "-src.tar.gz"))
1245 (sha256
1246 (base32
1247 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1248 (build-system gnu-build-system)
1249 (arguments
1250 '(#:make-flags (list "CC=gcc"
1251 (string-append "GOLLYDIR="
1252 (assoc-ref %outputs "out")
1253 "/share/golly"))
1254 #:tests? #f ; no check target
1255 #:phases
1256 (modify-phases %standard-phases
1257 (replace 'configure
1258 (lambda* (#:key inputs #:allow-other-keys)
1259 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1260 ;; properly set the path to the Python shared library. This
1261 ;; substitution acheives the same end by different means.
1262 (substitute* "gui-wx/wxprefs.cpp"
1263 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1264 (string-append "pythonlib = \""
1265 (assoc-ref inputs "python")
1266 "/lib/libpython-2.7.so\"")))
1267 #t))
1268 (replace 'build
1269 (lambda* (#:key make-flags outputs #:allow-other-keys)
1270 (with-directory-excursion "gui-wx"
1271 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1272 (replace 'install
1273 (lambda* (#:key outputs #:allow-other-keys)
1274 (let* ((out (assoc-ref outputs "out"))
1275 (bin (string-append out "/bin"))
1276 (doc (string-append out "/share/doc/golly"))
1277 (pixmaps (string-append out "/share/pixmaps"))
1278 (share (string-append out "/share/golly")))
1279 (for-each (lambda (binary)
1280 (install-file binary bin))
1281 '("bgolly" "golly"))
1282 (for-each (lambda (document)
1283 (install-file
1284 (string-append "docs/" document ".html")
1285 doc))
1286 '("License" "ReadMe" "ToDo"))
1287 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1288 (for-each (lambda (folder)
1289 (copy-recursively
1290 folder
1291 (string-append share "/" folder)))
1292 '("Help" "Patterns" "Rules" "Scripts")))
1293 #t)))))
1294 (native-inputs
1295 `(("lua" ,lua)))
1296 (inputs
1297 `(("glu" ,glu)
1298 ("mesa" ,mesa)
1299 ("python" ,python-2)
1300 ("wxwidgets" ,wxwidgets-gtk2)
1301 ("zlib" ,zlib)))
1302 (home-page "http://golly.sourceforge.net/")
1303 (synopsis "Software for exploring cellular automata")
1304 (description
1305 "Golly simulates Conway's Game of Life and many other types of cellular
1306 automata. The following features are available:
1307 @enumerate
1308 @item Support for bounded and unbounded universes, with cells of up to 256
1309 states.
1310 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1311 algorithm.
1312 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1313 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1314 @item Scriptable via Lua or Python.
1315 @item Extracting patterns, rules and scripts from zip files.
1316 @item Downloading patterns, rules and scripts from online archives.
1317 @item Pasting patterns from the clipboard.
1318 @item Unlimited undo/redo.
1319 @item Configurable keyboard shortcuts.
1320 @item Auto fit option to keep patterns within the view.
1321 @end enumerate")
1322 (license license:gpl2+)))
1323
1324 (define-public julius
1325 (package
1326 (name "julius")
1327 (version "1.6.0")
1328 (source
1329 (origin
1330 (method git-fetch)
1331 (uri (git-reference
1332 (url "https://github.com/bvschaik/julius")
1333 (commit (string-append "v" version))))
1334 (file-name (git-file-name name version))
1335 (sha256
1336 (base32 "0nfdn8n6ywhm69ckz9a1chl5xxiqyaj3l337wadsbppnpscjihrc"))
1337 ;; Remove unused bundled libraries.
1338 (modules '((guix build utils)))
1339 (snippet
1340 '(begin
1341 (with-directory-excursion "ext"
1342 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1343 #t))))
1344 (build-system cmake-build-system)
1345 (inputs
1346 `(("libpng" ,libpng)
1347 ("sdl2" ,sdl2)
1348 ("sdl2-mixer" ,sdl2-mixer)))
1349 (home-page "https://github.com/bvschaik/julius")
1350 (synopsis "Re-implementation of Caesar III game engine")
1351 (description
1352 "Engine for Caesar III, a city-building real-time strategy game.
1353 Julius includes some UI enhancements while preserving the logic (including
1354 bugs) of the original game, so that saved games are compatible. This package
1355 does not include game data.")
1356 (license (list license:agpl3
1357 license:zlib)))) ; ext/tinyfiledialogs
1358
1359 (define-public augustus
1360 (package
1361 (inherit julius)
1362 (name "augustus")
1363 (version "2.0.1")
1364 (source
1365 (origin
1366 (method git-fetch)
1367 (uri (git-reference
1368 (url "https://github.com/Keriew/augustus")
1369 (commit (string-append "v" version))))
1370 (file-name (git-file-name name version))
1371 (sha256
1372 (base32 "0czazw8mc3fbvdazs2nzvgxd1dpzjc8z5fwiv89vv4nd7laz3jkj"))
1373 ;; Remove unused bundled libraries.
1374 (modules '((guix build utils)))
1375 (snippet
1376 '(begin
1377 (with-directory-excursion "ext"
1378 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1379 #t))))
1380 (arguments
1381 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1382 `(#:tests? #f))
1383 (home-page "https://github.com/Keriew/augustus")
1384 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1385 (description
1386 "Fork of Julius, an engine for the a city-building real-time strategy
1387 game Caesar III. Gameplay enhancements include:
1388
1389 @itemize
1390 @item roadblocks;
1391 @item market special orders;
1392 @item global labour pool;
1393 @item partial warehouse storage;
1394 @item increased game limits;
1395 @item zoom controls.
1396 @end itemize\n")))
1397
1398 (define-public meandmyshadow
1399 (package
1400 (name "meandmyshadow")
1401 (version "0.5a")
1402 (source (origin
1403 (method url-fetch)
1404 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1405 version "/meandmyshadow-" version
1406 "-src.tar.gz"))
1407 (sha256
1408 (base32
1409 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1410 (build-system cmake-build-system)
1411 (arguments
1412 `(#:tests? #f)) ; there are no tests
1413 (native-inputs
1414 `(("pkg-config" ,pkg-config)))
1415 (inputs
1416 `(("curl" ,curl)
1417 ("libarchive" ,libarchive)
1418 ("lua" ,lua)
1419 ("sdl" ,(sdl-union (list sdl2
1420 sdl2-image
1421 sdl2-mixer
1422 sdl2-ttf)))))
1423 (home-page "https://acmepjz.github.io/meandmyshadow/")
1424 (synopsis "Puzzle/platform game")
1425 (description "Me and My Shadow is a puzzle/platform game in which you try
1426 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1427 and much more stand between you and the exit. Record your moves and let your
1428 shadow mimic them to reach blocks you couldn't reach alone.")
1429 (license license:gpl3+)))
1430
1431 (define-public opensurge
1432 (package
1433 (name "opensurge")
1434 (version "0.5.1.2")
1435 (source
1436 (origin
1437 (method git-fetch)
1438 (uri (git-reference
1439 (url "https://github.com/alemart/opensurge")
1440 (commit (string-append "v" version))))
1441 (file-name (git-file-name name version))
1442 (sha256
1443 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1444 (build-system cmake-build-system)
1445 (arguments
1446 `(#:tests? #f ;there are no tests
1447 #:configure-flags
1448 (let* ((out (assoc-ref %outputs "out"))
1449 (share (string-append out "/share")))
1450 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1451 (string-append "-DGAME_DATADIR=" share "/" ,name)
1452 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1453 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1454 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1455 #:phases
1456 (modify-phases %standard-phases
1457 (add-after 'unpack 'fix-xdg-open-path
1458 (lambda* (#:key inputs #:allow-other-keys)
1459 ;; Look for xdg-open in the store.
1460 (substitute* "src/core/web.c"
1461 (("/usr(/bin/xdg-open)" _ bin)
1462 (string-append (assoc-ref inputs "xdg-utils") bin)))
1463 #t))
1464 (add-after 'unpack 'unbundle-fonts
1465 (lambda* (#:key inputs #:allow-other-keys)
1466 ;; Replace bundled Roboto fonts with links to the store.
1467 (with-directory-excursion "fonts"
1468 (let ((roboto-dir (string-append
1469 (assoc-ref inputs "font-google-roboto")
1470 "/share/fonts/truetype/")))
1471 (for-each
1472 (lambda (font)
1473 (delete-file font)
1474 (symlink (string-append roboto-dir font) font))
1475 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1476 #t))))))
1477 (inputs
1478 `(("allegro" ,allegro)
1479 ("font-google-roboto" ,font-google-roboto)
1480 ("surgescript" ,surgescript)
1481 ("xdg-utils" ,xdg-utils)))
1482 (home-page "https://opensurge2d.org")
1483 (synopsis "2D retro side-scrolling game")
1484 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1485 inspired by the Sonic games. The player runs at high speeds through each
1486 level while collecting items and avoiding obstacles. The game includes a
1487 built-in level editor.")
1488 (license
1489 ;; Code is under GPL 3+, assets are under various licenses.
1490 ;; See src/misc/credits.c for details.
1491 (list license:gpl3+
1492 license:cc0
1493 license:cc-by3.0
1494 license:cc-by-sa3.0
1495 license:expat
1496 license:public-domain
1497 license:silofl1.1))))
1498
1499 (define-public knights
1500 (package
1501 (name "knights")
1502 (version "025")
1503 (source (origin
1504 (method url-fetch)
1505 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1506 version "_src.tar.gz"))
1507 (sha256
1508 (base32
1509 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1510 (build-system gnu-build-system)
1511 (arguments
1512 '(#:make-flags
1513 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1514 "CXXFLAGS=-lpthread")
1515 #:phases
1516 (modify-phases %standard-phases
1517 ;; No configure script.
1518 (delete 'configure))
1519 #:tests? #f)) ;; No check target.
1520 (inputs
1521 `(("boost" ,boost)
1522 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1523 ("freetype" ,freetype)
1524 ("fontconfig" ,fontconfig)
1525 ("curl" ,curl)))
1526 (native-inputs
1527 `(("pkg-config" ,pkg-config)))
1528 (home-page "http://www.knightsgame.org.uk/")
1529 (synopsis "Multiplayer dungeon game involving knights and quests")
1530 (description "Knights is a multiplayer game involving several knights who
1531 must run around a dungeon and complete various quests. Each game revolves
1532 around a quest – for example, you might have to find some items and carry them
1533 back to your starting point. This may sound easy, but as there are only
1534 enough items in the dungeon for one player to win, you may end up having to
1535 kill your opponents to get their stuff! Other quests involve escaping from
1536 the dungeon, fighting a duel to the death against the enemy knights, or
1537 destroying an ancient book using a special wand.")
1538 ;; This package includes modified sources of lua (X11), enet (Expat), and
1539 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1540 ;; license. The whole package is released under GPLv3+.
1541 (license license:gpl3+)))
1542
1543 (define-public gnome-chess
1544 (package
1545 (name "gnome-chess")
1546 (version "3.37.3")
1547 (source (origin
1548 (method url-fetch)
1549 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1550 (version-major+minor version) "/"
1551 "gnome-chess-" version ".tar.xz"))
1552 (sha256
1553 (base32
1554 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1555 (build-system meson-build-system)
1556 (arguments
1557 '(#:glib-or-gtk? #t
1558 #:phases
1559 (modify-phases %standard-phases
1560 (add-after 'unpack 'skip-gtk-update-icon-cache
1561 ;; Don't create 'icon-theme.cache'.
1562 (lambda _
1563 (substitute* "meson_post_install.py"
1564 (("gtk-update-icon-cache") "true"))
1565 #t)))))
1566 (inputs
1567 `(("gtk+" ,gtk+)
1568 ("librsvg" ,librsvg)))
1569 (native-inputs
1570 `(("gettext" ,gettext-minimal)
1571 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1572 ("itstool" ,itstool)
1573 ("pkg-config" ,pkg-config)
1574 ("vala" ,vala)))
1575 (home-page "https://wiki.gnome.org/Apps/Chess")
1576 (synopsis "Chess board for GNOME")
1577 (description "GNOME Chess provides a 2D board for playing chess games
1578 against human or computer players. It supports loading and saving games in
1579 Portable Game Notation. To play against a computer, install a chess engine
1580 such as chess or stockfish.")
1581 (license license:gpl3+)))
1582
1583 (define-public gnubg
1584 (package
1585 (name "gnubg")
1586 (version "1.06.002")
1587 (source
1588 (origin
1589 (method url-fetch)
1590 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1591 version "-sources.tar.gz"))
1592 (sha256
1593 (base32
1594 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1595 (build-system gnu-build-system)
1596 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1597 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1598 ("pango" ,pango-1.42)
1599
1600 ("glib" ,glib)
1601 ("readline" ,readline)
1602 ("gtk+" ,gtk+-2)
1603 ("mesa" ,mesa)
1604 ("glu" ,glu)
1605 ("gtkglext" ,gtkglext)
1606 ("sqlite" ,sqlite)
1607 ("libcanberra" ,libcanberra)))
1608 (native-inputs `(("python-2" ,python-2)
1609 ("pkg-config" ,pkg-config)))
1610 (arguments
1611 `(#:configure-flags
1612 ;; SSE instructions are available on Intel systems only.
1613 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1614 (%current-system)))
1615 '("x86_64" "i686"))
1616 '("--enable-simd=sse2") ; prevent avx instructions
1617 '()))
1618 #:phases
1619 (modify-phases %standard-phases
1620 (add-after 'install 'install-desktop-file
1621 (lambda* (#:key outputs #:allow-other-keys)
1622 (let* ((out (assoc-ref outputs "out"))
1623 (apps (string-append out "/share/applications")))
1624 (mkdir-p apps)
1625 (with-output-to-file (string-append apps "/gnubg.desktop")
1626 (lambda _
1627 (format #t
1628 "[Desktop Entry]~@
1629 Name=GNU Backgammon~@
1630 Exec=~a/bin/gnubg -w~@
1631 Icon=gnubg~@
1632 Categories=Game;~@
1633 Terminal=false~@
1634 Type=Application~%"
1635 out))))
1636 #t)))))
1637 (home-page "https://www.gnu.org/software/gnubg/")
1638 (synopsis "Backgammon game")
1639 (description "The GNU backgammon application (also known as \"gnubg\") can
1640 be used for playing, analyzing and teaching the game. It has an advanced
1641 evaluation engine based on artificial neural networks suitable for both
1642 beginners and advanced players. In addition to a command-line interface, it
1643 also features an attractive, 3D representation of the playing board.")
1644 (license license:gpl3+)))
1645
1646 (define-public gnubik
1647 (package
1648 (name "gnubik")
1649 (version "2.4.3")
1650 (source
1651 (origin
1652 (method url-fetch)
1653 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1654 version ".tar.gz"))
1655 (sha256
1656 (base32
1657 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1658 (build-system gnu-build-system)
1659 (arguments
1660 '(#:phases (modify-phases %standard-phases
1661 (add-after 'unpack 'skip-gtk-update-icon-cache
1662 (lambda _
1663 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1664 ;; unnecessary and causes a needless dependency on glib.
1665 (substitute* "Makefile.in"
1666 (("gtk-update-icon-cache")
1667 "true"))
1668 #t)))))
1669 (inputs `(("gtk+" ,gtk+-2)
1670 ("mesa" ,mesa)
1671 ("glu" ,glu)
1672 ("libx11" ,libx11)
1673 ("guile" ,guile-2.0)
1674 ("gtkglext" ,gtkglext)))
1675 (native-inputs `(("gettext" ,gettext-minimal)
1676 ("pkg-config" ,pkg-config)))
1677 (home-page "https://www.gnu.org/software/gnubik/")
1678 (synopsis "3d Rubik's cube game")
1679 (description
1680 "GNUbik is a puzzle game in which you must manipulate a cube to make
1681 each of its faces have a uniform color. The game is customizable, allowing
1682 you to set the size of the cube (the default is 3x3) or to change the colors.
1683 You may even apply photos to the faces instead of colors. The game is
1684 scriptable with Guile.")
1685 (license license:gpl3+)))
1686
1687 (define-public gnushogi
1688 (package
1689 (name "gnushogi")
1690 (version "1.4.2")
1691 (source
1692 (origin
1693 (method url-fetch)
1694 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1695 version ".tar.gz"))
1696 (sha256
1697 (base32
1698 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1699 (arguments `(#:tests? #f)) ;; No check target.
1700 (build-system gnu-build-system)
1701 (home-page "https://www.gnu.org/software/gnushogi/")
1702 (synopsis "The game of Shogi (Japanese chess)")
1703 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1704 Chess). It is similar to standard chess but this variant is far more complicated.")
1705 (license license:gpl3+)))
1706
1707 (define-public ltris
1708 (package
1709 (name "ltris")
1710 (version "1.2.1")
1711 (source
1712 (origin
1713 (method url-fetch)
1714 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1715 "ltris-" version ".tar.gz"))
1716 (sha256
1717 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1718 (build-system gnu-build-system)
1719 (arguments
1720 '(;; The code in LTris uses traditional GNU semantics for inline functions
1721 #:configure-flags '("CFLAGS=-fgnu89-inline")
1722 #:phases
1723 (modify-phases %standard-phases
1724 (add-after 'set-paths 'set-sdl-paths
1725 (lambda* (#:key inputs #:allow-other-keys)
1726 (setenv "CPATH"
1727 (string-append (assoc-ref inputs "sdl-union")
1728 "/include/SDL:"
1729 (or (getenv "CPATH") "")))
1730 #t)))))
1731 (inputs
1732 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1733 (home-page "http://lgames.sourceforge.net/LTris/")
1734 (synopsis "Tetris clone based on the SDL library")
1735 (description
1736 "LTris is a tetris clone: differently shaped blocks are falling down the
1737 rectangular playing field and can be moved sideways or rotated by 90 degree
1738 units with the aim of building lines without gaps which then disappear (causing
1739 any block above the deleted line to fall down). LTris has three game modes: In
1740 Classic you play until the stack of blocks reaches the top of the playing field
1741 and no new blocks can enter. In Figures the playing field is reset to a new
1742 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1743 up to three players (either human or CPU) compete with each other sending
1744 removed lines to all opponents. There is also a Demo mode in which you can
1745 watch your CPU playing while enjoying a cup of tea!")
1746 (license license:gpl2+)))
1747
1748 (define-public nethack
1749 (package
1750 (name "nethack")
1751 (version "3.6.6")
1752 (source
1753 (origin
1754 (method url-fetch)
1755 (uri
1756 (string-append "https://www.nethack.org/download/" version "/nethack-"
1757 (string-join (string-split version #\.) "") "-src.tgz"))
1758 (sha256
1759 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1760 (native-inputs
1761 `(("bison" ,bison)
1762 ("flex" ,flex)))
1763 (inputs
1764 `(("ncurses" ,ncurses)
1765 ("less" ,less)))
1766 (build-system gnu-build-system)
1767 (arguments
1768 '(#:make-flags
1769 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1770 #:phases
1771 (modify-phases %standard-phases
1772 (add-before 'configure 'patch-paths
1773 (lambda _
1774 (substitute* "sys/unix/nethack.sh"
1775 (("^ *cd .*$") ""))
1776 (substitute* "sys/unix/Makefile.utl"
1777 (("^YACC *=.*$") "YACC = bison -y\n")
1778 (("^LEX *=.*$") "LEX = flex\n")
1779 (("^# CC = gcc") "CC = gcc"))
1780 (substitute* "sys/unix/hints/linux"
1781 (("/bin/gzip") (string-append
1782 (assoc-ref %build-inputs "gzip")
1783 "/bin/gzip"))
1784 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1785 (substitute* "include/config.h"
1786 (("^.*define CHDIR.*$") "")
1787 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1788 ;; Honor SOURCE_DATE_EPOCH.
1789 "#define REPRODUCIBLE_BUILD"))
1790
1791 ;; Note: 'makedefs' rejects and ignores dates that are too old
1792 ;; or too new, so we must choose something reasonable here.
1793 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1794
1795 (substitute* "sys/unix/Makefile.src"
1796 (("^# CC = gcc") "CC = gcc"))
1797 #t))
1798 (replace 'configure
1799 (lambda _
1800 (let ((bash (string-append
1801 (assoc-ref %build-inputs "bash")
1802 "/bin/bash")))
1803 (with-directory-excursion "sys/unix"
1804 (substitute* "setup.sh" (("/bin/sh") bash))
1805 (invoke bash "setup.sh" "hints/linux"))
1806 #t)))
1807 (add-after 'install 'fixup-paths
1808 (lambda _
1809 (let* ((output (assoc-ref %outputs "out"))
1810 (nethack-script (string-append output "/bin/nethack")))
1811 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1812 (for-each
1813 (lambda (file)
1814 (rename-file
1815 (string-append output "/games/lib/nethackdir/" file)
1816 (string-append output "/games/lib/nethackuserdir/"
1817 file)))
1818 '("xlogfile" "logfile" "perm" "record" "save"))
1819 (mkdir-p (string-append output "/bin"))
1820 (call-with-output-file nethack-script
1821 (lambda (port)
1822 (format port "#!~a/bin/sh
1823 PATH=~a:$PATH
1824 if [ ! -d ~~/.config/nethack ]; then
1825 mkdir -p ~~/.config/nethack
1826 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1827 chmod -R +w ~~/.config/nethack
1828 fi
1829
1830 RUNDIR=$(mktemp -d)
1831
1832 cleanup() {
1833 rm -rf $RUNDIR
1834 }
1835 trap cleanup EXIT
1836
1837 cd $RUNDIR
1838 for i in ~~/.config/nethack/*; do
1839 ln -s $i $(basename $i)
1840 done
1841 for i in ~a/games/lib/nethackdir/*; do
1842 ln -s $i $(basename $i)
1843 done
1844 ~a/games/nethack"
1845 (assoc-ref %build-inputs "bash")
1846 (list->search-path-as-string
1847 (list
1848 (string-append
1849 (assoc-ref %build-inputs "coreutils") "/bin")
1850 (string-append
1851 (assoc-ref %build-inputs "less") "/bin"))
1852 ":")
1853 output
1854 output
1855 output)))
1856 (chmod nethack-script #o555)
1857 #t)))
1858 (delete 'check))))
1859 (home-page "https://nethack.org")
1860 (synopsis "Classic dungeon crawl game")
1861 (description "NetHack is a single player dungeon exploration game that runs
1862 on a wide variety of computer systems, with a variety of graphical and text
1863 interfaces all using the same game engine. Unlike many other Dungeons &
1864 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1865 the dungeon and not simply killing everything in sight - in fact, killing
1866 everything in sight is a good way to die quickly. Each game presents a
1867 different landscape - the random number generator provides an essentially
1868 unlimited number of variations of the dungeon and its denizens to be discovered
1869 by the player in one of a number of characters: you can pick your race, your
1870 role, and your gender.")
1871 (license
1872 (license:fsdg-compatible
1873 "https://nethack.org/common/license.html"))))
1874
1875 (define-public pipewalker
1876 (package
1877 (name "pipewalker")
1878 (version "0.9.4")
1879 (source
1880 (origin
1881 (method url-fetch)
1882 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
1883 version "/pipewalker-" version ".tar.gz"))
1884 (sha256
1885 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1886 (build-system gnu-build-system)
1887 (arguments
1888 `(#:configure-flags
1889 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1890 "/share/doc/" ,name "-" ,version))
1891 #:phases
1892 (modify-phases %standard-phases
1893 (add-after 'configure 'patch-docdir
1894 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1895 (lambda _
1896 (substitute* "Makefile"
1897 (("(pkgdocdatadir = ).*" _ assignment)
1898 (string-append assignment "$(docdir)\n")))
1899 #t)))))
1900 (inputs
1901 `(("libpng" ,libpng)
1902 ("mesa" ,mesa)
1903 ("sdl" ,sdl)))
1904 (home-page "http://pipewalker.sourceforge.net/")
1905 (synopsis "Logical tile puzzle")
1906 (description
1907 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1908 computers to one network server, bring water from a source to the taps, etc.
1909 The underlying mechanism is always the same: you must turn each tile in the
1910 grid in the right direction to combine all components into a single circuit.
1911 Every puzzle has a complete solution, although there may be more than one.")
1912 (license license:gpl3+)))
1913
1914 (define-public prboom-plus
1915 (package
1916 (name "prboom-plus")
1917 (version "2.5.1.4")
1918 (source (origin
1919 (method url-fetch)
1920 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
1921 version "/prboom-plus-" version ".tar.gz"))
1922 (sha256
1923 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
1924 (modules '((guix build utils)))
1925 (snippet
1926 '(begin
1927 (substitute* "src/version.c"
1928 (("__DATE__") "")
1929 (("__TIME__") ""))
1930 #t))))
1931 (build-system gnu-build-system)
1932 (arguments
1933 '(#:configure-flags '("--disable-cpu-opt")
1934 #:make-flags `(,(string-append "gamesdir="
1935 (assoc-ref %outputs "out") "/bin"))
1936 #:phases
1937 (modify-phases %standard-phases
1938 (add-after 'set-paths 'set-sdl'paths
1939 (lambda* (#:key inputs #:allow-other-keys)
1940 (setenv "CPATH"
1941 (string-append (assoc-ref inputs "sdl-union")
1942 "/include/SDL:"
1943 (or (getenv "CPATH") "")))
1944 #t)))))
1945 (inputs
1946 `(("fluidsynth" ,fluidsynth)
1947 ("glu" ,glu)
1948 ("libmad" ,libmad)
1949 ("libpng" ,libpng)
1950 ("libvorbis" ,libvorbis)
1951 ("pcre" ,pcre)
1952 ("portmidi" ,portmidi)
1953 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
1954 (home-page "http://prboom-plus.sourceforge.net/")
1955 (synopsis "Version of the classic 3D shoot'em'up game Doom")
1956 (description
1957 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
1958 (license license:gpl2+)))
1959
1960 (define-public retux
1961 (let ((release "1.4.1")
1962 (revision 1))
1963 (package
1964 (name "retux")
1965 (version (if (zero? revision)
1966 release
1967 (string-append release "-"
1968 (number->string revision))))
1969 (source (origin
1970 (method url-fetch)
1971 (uri (string-append "https://github.com/retux-game/retux/"
1972 "releases/download/v"
1973 version "/retux-"
1974 release "-src.tar.gz"))
1975 (sha256
1976 (base32
1977 "1vrldg2qh2gqfswj7vkpc589ldrrjd903j6cnfdik9zh0jhlq4h2"))))
1978 (build-system python-build-system)
1979 (arguments
1980 `(#:tests? #f ; no check target
1981 #:phases
1982 (modify-phases %standard-phases
1983 ;; no setup.py script
1984 (delete 'build)
1985 (replace 'install
1986 (lambda* (#:key outputs #:allow-other-keys)
1987 (let* ((out (assoc-ref outputs "out"))
1988 (bin (string-append out "/bin"))
1989 (data (string-append out "/share/retux")))
1990 (mkdir-p bin)
1991
1992 (substitute* "retux.py"
1993 ;; Use the correct data directory.
1994 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
1995 (string-append "\"" data "\",")))
1996
1997 (copy-file "retux.py" (string-append bin "/retux"))
1998 (copy-recursively "data" data)
1999 #t))))))
2000 (inputs
2001 `(("python-sge-pygame" ,python-sge-pygame)
2002 ("python-six" ,python-six)
2003 ("python-xsge" ,python-xsge)))
2004 (home-page "https://retux-game.github.io/")
2005 (synopsis "Action platformer game")
2006 (description
2007 "ReTux is an action platformer loosely inspired by the Mario games,
2008 utilizing the art assets from the @code{SuperTux} project.")
2009 ;; GPL version 3 or later is the license for the code and some art.
2010 ;; The rest of the licenses are for the art exclusively, as listed in
2011 ;; data/LICENSES.
2012 (license (list license:cc0
2013 license:cc-by3.0
2014 license:cc-by-sa3.0
2015 license:cc-by-sa4.0
2016 license:gpl2+
2017 license:gpl3+)))))
2018
2019 (define-public roguebox-adventures
2020 (package
2021 (name "roguebox-adventures")
2022 (version "3.0.1")
2023 (source
2024 (origin
2025 (method url-fetch)
2026 (uri (string-append
2027 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2028 (string-join (string-split version #\.) "_") "_Source.zip"))
2029 (file-name (string-append name "-" version ".zip"))
2030 (sha256
2031 (base32
2032 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2033 (build-system python-build-system)
2034 (arguments
2035 `(#:tests? #f ; no check target
2036 #:phases
2037 (modify-phases %standard-phases
2038 (replace 'unpack
2039 (lambda* (#:key source #:allow-other-keys)
2040 (and (invoke "unzip" source)
2041 ;; The actual source is buried a few directories deep.
2042 (chdir (string-append "RogueBoxAdventures_v"
2043 (string-join
2044 (string-split ,version #\.) "_")
2045 "_Source")))))
2046 ;; no setup.py script
2047 (replace 'build
2048 (lambda* (#:key outputs #:allow-other-keys)
2049 (let* ((out (assoc-ref outputs "out"))
2050 (data (string-append
2051 out "/share/games/roguebox-adventures")))
2052 ;; Use the correct data directory.
2053 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2054 (("basic_path + os\\.sep + 'DATA'")
2055 (string-append "'" data "'"))
2056 (("^basic_path.*$")
2057 (string-append "basic_path ='" data "'\n")))
2058 (substitute* "LIB/dialog.py"
2059 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2060 (string-append "d_path = '" data "'")))
2061 (substitute* "LIB/gra_files.py"
2062 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2063 (string-append "basic_path ='" data "'\n")))
2064
2065 ;; The game must save in the user's home directory because
2066 ;; the store is read-only.
2067 (substitute* "main.py"
2068 (("home_save = False") "home_save = True")
2069 (("'icon_small.png'")
2070 (string-append "'" data "/icon_small.png'"))))
2071 #t))
2072 (replace 'install
2073 (lambda* (#:key outputs #:allow-other-keys)
2074 (let* ((out (assoc-ref outputs "out"))
2075 (bin (string-append out "/bin"))
2076 (roguebox-adventures
2077 (string-append bin "/roguebox-adventures"))
2078 (data (string-append
2079 out "/share/games/roguebox-adventures"))
2080 (lib (string-append data "/LIB"))
2081 (doc (string-append
2082 out "/share/doc/roguebox-adventures")))
2083 (mkdir-p bin)
2084 (mkdir-p doc)
2085
2086 (for-each (lambda (file)
2087 (copy-recursively file
2088 (string-append data "/" file)))
2089 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2090 "icon_big.png" "icon_small.png"))
2091 (for-each (lambda (file)
2092 (chmod file #o555)
2093 (install-file file lib))
2094 '("main.py" "run.py"))
2095
2096 (copy-recursively "DOC" doc)
2097
2098 (call-with-output-file
2099 roguebox-adventures
2100 (lambda (p)
2101 (format p "\
2102 #!~a
2103 export PYTHONPATH=~a/LIB:~a
2104 exec -a \"~a\" ~a \"$@\"\n"
2105 (which "bash") data (getenv "PYTHONPATH")
2106 (which "python3")
2107 (string-append lib "/main.py"))))
2108 (chmod roguebox-adventures #o555))
2109 #t)))))
2110 (native-inputs
2111 `(("unzip" ,unzip)))
2112 (inputs
2113 `(("python-pygame" ,python-pygame)
2114 ("python-tmx" ,python-tmx)))
2115 (home-page "https://rogueboxadventures.tuxfamily.org")
2116 (synopsis "A classical roguelike/sandbox game")
2117 (description
2118 "RogueBox Adventures is a graphical roguelike with strong influences
2119 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2120 Adventures is to offer the player a kind of roguelike toy-world. This world
2121 can be explored and changed freely.")
2122 ;; The GPL3+ is for code, the rest are for art.
2123 (license (list license:cc0
2124 license:cc-by3.0
2125 license:gpl3+
2126 license:silofl1.1))))
2127
2128 (define-public seahorse-adventures
2129 (package
2130 (name "seahorse-adventures")
2131 (version "1.3")
2132 (source
2133 (origin
2134 (method git-fetch)
2135 (uri (git-reference
2136 (url "https://github.com/dulsi/seahorse-adventures")
2137 (commit (string-append "release-" version))))
2138 (file-name (git-file-name name version))
2139 (sha256
2140 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2141 (modules '((guix build utils)
2142 (ice-9 ftw)
2143 (srfi srfi-1)))
2144 ;; Remove non-free (non-commercial) font.
2145 (snippet
2146 `(begin
2147 (for-each delete-file (find-files "data/fonts" "."))
2148 #t))))
2149 (build-system python-build-system)
2150 (arguments
2151 `(#:tests? #f ;no test
2152 #:phases
2153 (modify-phases %standard-phases
2154 (delete 'build) ;pure Python
2155 (replace 'install ;no install script
2156 (lambda* (#:key outputs #:allow-other-keys)
2157 (let* ((out (assoc-ref outputs "out"))
2158 (bin (string-append out "/bin"))
2159 (share (string-append out "/share"))
2160 (applications (string-append share "/applications"))
2161 (data (string-append share "/seahorse-adventures")))
2162 ;; Install data.
2163 (for-each (lambda (f)
2164 (chmod f #o555)
2165 (install-file f data))
2166 '("leveledit.py" "run_game.py" "tileedit.py"))
2167 (for-each (lambda (dir)
2168 (let ((target (string-append data "/" dir)))
2169 (mkdir-p target)
2170 (copy-recursively dir target)))
2171 '("data" "lib"))
2172 ;; Create executable.
2173 (mkdir-p bin)
2174 (let ((executable (string-append bin "/seahorse-adventures")))
2175 (call-with-output-file executable
2176 (lambda (p)
2177 (format p
2178 "#!~a~@
2179 export PYTHONPATH=~a:~a~@
2180 exec -a \"~a\" ~a \"$@\"~%"
2181 (which "bash") data (getenv "PYTHONPATH")
2182 (which "python3")
2183 (string-append data "/run_game.py"))))
2184 (chmod executable #o555))
2185 ;; Add desktop file.
2186 (mkdir-p applications)
2187 (make-desktop-entry-file
2188 (string-append applications "/seahorse-adventures.desktop")
2189 #:name "Seahorse Adventures"
2190 #:comment
2191 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2192 #:exec ,name
2193 #:icon ,name
2194 #:categories '("Game" "ActionGame")
2195 #:keywords '("game" "retro" "platform"))
2196 ;; Add icons.
2197 (for-each
2198 (lambda (size)
2199 (let ((dir (string-append share "/icons/hicolor/"
2200 size "x" size "/apps")))
2201 (mkdir-p dir)
2202 (copy-file
2203 (string-append "icon" size ".png")
2204 (string-append dir "/searhorse-adventures.png"))))
2205 '("32" "64" "128")))
2206 #t))
2207 (add-after 'install 'unbundle-fonts
2208 ;; Unbundle Bitstream Vera font and replace deleted one.
2209 (lambda* (#:key outputs inputs #:allow-other-keys)
2210 (let* ((out (assoc-ref outputs "out"))
2211 (data (string-append out "/share/seahorse-adventures"))
2212 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2213 "/share/fonts/truetype/Vera.ttf")))
2214 (let ((themes-dir (string-append data "/data/themes/")))
2215 (for-each
2216 (lambda (theme)
2217 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2218 (delete-file target)
2219 (symlink vera target)))
2220 '("default" "gray")))
2221 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2222 (substitute* (string-append data "/lib/main.py")
2223 (("f_scale = 0.35") "f_scale = 0.47")))
2224 #t)))))
2225 (inputs
2226 `(("font-bitstream-vera" ,font-bitstream-vera)
2227 ("python-pygame" ,python-pygame)))
2228 (home-page "http://www.imitationpickles.org/barbie/")
2229 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2230 (description
2231 "Barbie Seahorse Adventures is a retro style platform arcade game.
2232 You are Barbie the seahorse who travels through the jungle, up to the
2233 volcano until you float on bubbles to the moon. On the way to your
2234 final destination you will encounter various enemies, servants of the
2235 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2236 and defeat them with your bubbles!")
2237 ;; GPL2+ is for code, CC0 is for art.
2238 (license (list license:gpl2+ license:cc0))))
2239
2240 (define-public solarus
2241 (package
2242 (name "solarus")
2243 (version "1.6.4")
2244 (source
2245 (origin
2246 (method git-fetch)
2247 (uri (git-reference
2248 (url "https://gitlab.com/solarus-games/solarus.git")
2249 (commit (string-append "v" version))))
2250 (file-name (git-file-name name version))
2251 (sha256
2252 (base32 "1n6l91yyqjx0pz4w1lp3yybpq0fs2yjswfcm8c1wjfkxwiznbdxi"))))
2253 (build-system cmake-build-system)
2254 (arguments
2255 `(#:phases
2256 (modify-phases %standard-phases
2257 (add-after 'unpack 'disable-failing-tests
2258 ;; The following tests fail reporting a missing "/dev/dri"
2259 ;; file.
2260 (lambda _
2261 (substitute* "tests/cmake/AddTestMaps.cmake"
2262 ((".*1200_create_shader_from_source.*" all)
2263 (string-append "#" all))
2264 ((".*1210_shader_scaling_factor.*" all)
2265 (string-append "#" all)))
2266 #t))
2267 (add-before 'check 'set-home
2268 ;; Tests fail without setting the following environment
2269 ;; variables.
2270 (lambda _
2271 (setenv "HOME" (getcwd))
2272 (setenv "XDG_RUNTIME_DIR" (getcwd))
2273 #t)))))
2274 (native-inputs
2275 `(("pkg-config" ,pkg-config)
2276 ("qttools" ,qttools)))
2277 (inputs
2278 `(("glm" ,glm)
2279 ("libmodplug" ,libmodplug)
2280 ("libogg" ,libogg)
2281 ("libvorbis" ,libvorbis)
2282 ("luajit" ,luajit)
2283 ("openal" ,openal)
2284 ("physfs" ,physfs)
2285 ("qtbase" ,qtbase)
2286 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2287 (home-page "https://www.solarus-games.org/")
2288 (synopsis "Lightweight game engine for Action-RPGs")
2289 (description
2290 "Solarus is a 2D game engine written in C++, that can run games
2291 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2292 in mind.")
2293 ;; The source code is licensed under the terms of GPL-3.0.
2294 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2295 ;; CC-BY-SA 4.0.
2296 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2297
2298 (define-public superstarfighter
2299 (package
2300 (name "superstarfighter")
2301 (version "0.6.4")
2302 (source
2303 (origin
2304 (method git-fetch)
2305 (uri (git-reference
2306 (url "https://github.com/notapixelstudio/superstarfighter")
2307 (commit (string-append "v" version))))
2308 (file-name (git-file-name name version))
2309 (sha256
2310 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2311 (build-system gnu-build-system)
2312 (arguments
2313 `(#:tests? #f ;there are no tests
2314 #:phases
2315 (modify-phases %standard-phases
2316 (replace 'configure
2317 (lambda _
2318 (chdir "godot")
2319 (setenv "HOME" (getcwd))
2320 (with-output-to-file "export_presets.cfg"
2321 (lambda ()
2322 (display
2323 "[preset.0]
2324 name=\"Guix\"
2325 platform=\"Linux/X11\"
2326 runnable=true
2327 [preset.0.options]")))
2328 #t))
2329 (replace 'build
2330 (lambda _
2331 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2332 (invoke (string-append godot "/bin/godot_server")
2333 "--export-pack" "Guix"
2334 "superstarfighter.pck" "project.godot"))
2335 #t))
2336 (replace 'install
2337 (lambda* (#:key inputs outputs #:allow-other-keys)
2338 (let* ((out (assoc-ref outputs "out"))
2339 (bin (string-append out "/bin"))
2340 (share (string-append out "/share"))
2341 (data (string-append share "/superstarfighter"))
2342 (icons (string-append share "/icons/hicolor/256x256/apps")))
2343 (install-file "superstarfighter.pck" data)
2344 (mkdir-p bin)
2345 (call-with-output-file (string-append bin "/superstarfighter")
2346 (lambda (port)
2347 (format port
2348 "#!/bin/sh~@
2349 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2350 (assoc-ref inputs "godot")
2351 data)
2352 (chmod port #o755)))
2353 (mkdir-p icons)
2354 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2355 (make-desktop-entry-file
2356 (string-append share "/applications/" ,name ".desktop")
2357 #:name "SuperStarfighter"
2358 #:comment "Fast-paced arcade combat game"
2359 #:exec ,name
2360 #:icon ,name
2361 #:categories '("Game" "ArcadeGame")))
2362 #t)))))
2363 (native-inputs
2364 `(("godot-headless" ,godot "headless")))
2365 (inputs
2366 `(("godot" ,godot)))
2367 (home-page "https://notapixel.itch.io/superstarfighter")
2368 (synopsis "Fast-paced local multiplayer arcade game")
2369 (description "In SuperStarfighter, up to four local players compete in a
2370 2D arena with fast-moving ships and missiles. Different game types are
2371 available, as well as a single-player mode with AI-controlled ships.")
2372 (license (list license:expat ; game
2373 license:silofl1.1)))) ; fonts
2374
2375 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2376 (define %ufoai-revision "0")
2377 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2378 (define ufoai-source
2379 (origin
2380 (method git-fetch)
2381 (uri (git-reference
2382 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2383 (commit %ufoai-commit)))
2384 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2385 (sha256
2386 (base32
2387 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2388 (modules '((guix build utils)
2389 (srfi srfi-1)
2390 (ice-9 ftw)))
2391 (snippet
2392 '(begin
2393 ;; Delete ~32MiB of bundled dependencies.
2394 (with-directory-excursion "src/libs"
2395 (for-each delete-file-recursively
2396 (lset-difference equal? (scandir ".")
2397 '("." ".." "gtest" "mumble"))))
2398
2399 ;; Use relative path to Lua headers.
2400 (substitute* "src/common/scripts_lua.h"
2401 (("\\.\\./libs/lua/") ""))
2402
2403 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2404 ;; it as a separate package. This way we don't need to make the same
2405 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2406 (substitute* "build/maps.mk"
2407 (("\\./ufo2map") "ufo2map")
2408 (("maps: ufo2map") "maps:"))
2409 (substitute* "build/modules/testall.mk"
2410 (("testall: ufo2map") "testall:"))
2411
2412 ;; If no cURL headers are found, the build system will try to include
2413 ;; the bundled version, even when not required. Prevent that.
2414 (substitute* "build/default.mk"
2415 (("^include src/libs/curl/lib/Makefile\\.inc")
2416 ""))
2417
2418 ;; While here, improve reproducibility by adding the '-X' flag to the
2419 ;; zip command used to create the map files, in order to prevent time
2420 ;; stamps from making it into the generated archives.
2421 (substitute* "build/data.mk"
2422 (("\\$\\(call ZIP\\)")
2423 "$(call ZIP) -X"))
2424 #t))))
2425
2426 (define-public ufo2map
2427 (package
2428 (name "ufo2map")
2429 (version %ufoai-version)
2430 (home-page "https://ufoai.org/")
2431 (source ufoai-source)
2432 (build-system gnu-build-system)
2433 (arguments
2434 '(#:configure-flags '("CC=gcc" "CXX=g++"
2435 "--enable-release"
2436 "--enable-ufo2map"
2437 "--disable-uforadiant"
2438 "--disable-cgame-campaign"
2439 "--disable-cgame-multiplayer"
2440 "--disable-cgame-skirmish"
2441 "--disable-game"
2442 "--disable-memory"
2443 "--disable-testall"
2444 "--disable-ufoded"
2445 "--disable-ufo"
2446 "--disable-ufomodel"
2447 "--disable-ufoslicer")
2448 #:tests? #f ;no tests
2449 #:phases (modify-phases %standard-phases
2450 (replace 'configure
2451 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2452 ;; The home-made configure script does not understand
2453 ;; some of the default flags of gnu-build-system.
2454 (apply invoke "./configure" configure-flags)))
2455 (replace 'install
2456 (lambda* (#:key outputs #:allow-other-keys)
2457 (let ((out (assoc-ref outputs "out")))
2458 (install-file "ufo2map" (string-append out "/bin"))
2459 (install-file "debian/ufo2map.6"
2460 (string-append out "/share/man/man6"))
2461 #t))))))
2462 (native-inputs
2463 `(("pkg-config" ,pkg-config)))
2464 (inputs
2465 `(("libjpeg" ,libjpeg-turbo)
2466 ("libpng" ,libpng)
2467 ("lua" ,lua-5.1)
2468 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2469 (synopsis "UFO: AI map generator")
2470 (description
2471 "This package provides @command{ufo2map}, a program used to generate
2472 maps for the UFO: Alien Invasion strategy game.")
2473 (license license:gpl2+)))
2474
2475 (define ufoai-data
2476 (package
2477 (name "ufoai-data")
2478 (version %ufoai-version)
2479 (home-page "https://ufoai.org/")
2480 (source ufoai-source)
2481 (build-system gnu-build-system)
2482 (arguments
2483 '(#:tests? #f
2484 #:configure-flags '("CC=gcc" "CXX=g++")
2485 #:phases (modify-phases %standard-phases
2486 (replace 'configure
2487 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2488 (apply invoke "./configure" configure-flags)))
2489 (replace 'build
2490 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2491 (invoke "make"
2492 "-j" (if parallel-build?
2493 (number->string (parallel-job-count))
2494 "1")
2495 "maps")))
2496 (add-after 'build 'pack
2497 (lambda _
2498 (invoke "make" "pk3")))
2499 (replace 'install
2500 (lambda* (#:key outputs #:allow-other-keys)
2501 (let ((out (assoc-ref outputs "out")))
2502 (for-each (lambda (file)
2503 (install-file file out))
2504 (find-files "base" "\\.pk3$"))
2505 #t))))))
2506 (native-inputs
2507 `(("python" ,python-2)
2508 ("ufo2map" ,ufo2map)
2509 ("which" ,which)
2510 ("zip" ,zip)))
2511 (synopsis "UFO: AI data files")
2512 (description
2513 "This package contains maps and other assets for UFO: Alien Invasion.")
2514 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2515 ;; licenses, see LICENSES for details.
2516 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2517 license:cc-by-sa3.0 license:public-domain))))
2518
2519 (define-public ufoai
2520 (package
2521 (name "ufoai")
2522 (version %ufoai-version)
2523 (home-page "https://ufoai.org/")
2524 (source ufoai-source)
2525 (build-system gnu-build-system)
2526 (arguments
2527 `(#:configure-flags
2528 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2529 (string-append "--datadir=" (assoc-ref %outputs "out")
2530 "/share/games/ufo")
2531 "CC=gcc" "CXX=g++"
2532 "--enable-release"
2533 "--enable-game"
2534 "--disable-ufo2map"
2535 "--disable-dependency-tracking"
2536
2537 ;; Disable hard links to prevent huge NARs.
2538 "--disable-hardlinkedgame"
2539 "--disable-hardlinkedcgame")
2540 #:phases (modify-phases %standard-phases
2541 (add-after 'unpack 'symlink-data-files
2542 (lambda* (#:key inputs #:allow-other-keys)
2543 (let ((data (assoc-ref inputs "ufoai-data")))
2544 ;; Symlink the data files to where the build system
2545 ;; expects to find them. Ultimately these files are
2546 ;; copied to $out/share/games/ufoai/base, losing the
2547 ;; symlinks; we could fix that after install, but it
2548 ;; does not make a big difference in practice due to
2549 ;; deduplication.
2550 (with-directory-excursion "base"
2551 (for-each (lambda (file)
2552 (symlink file (basename file)))
2553 (find-files data "\\.pk3$")))
2554 #t)))
2555 (add-before 'configure 'create-language-files
2556 (lambda _
2557 (invoke "make" "lang")))
2558 (replace 'configure
2559 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2560 (apply invoke "./configure" configure-flags)))
2561 (replace 'check
2562 (lambda* (#:key tests? #:allow-other-keys)
2563 (if tests?
2564 (invoke "./testall")
2565 (format #t "test suite not run~%"))
2566 #t))
2567 (add-after 'install 'install-man-pages
2568 (lambda* (#:key outputs #:allow-other-keys)
2569 (let* ((out (assoc-ref outputs "out"))
2570 (man6 (string-append out "/share/man/man6")))
2571 (install-file "debian/ufo.6" man6)
2572 (install-file "debian/ufoded.6" man6)
2573 #t))))
2574
2575 ;; TODO: Some map tests occasionally fail because of randomness issues,
2576 ;; e.g. not enough generated aliens. The test runner also fails early
2577 ;; in the build container with 'failed to shutdown server'?
2578 #:tests? #f))
2579 (native-inputs
2580 `(("gettext" ,gettext-minimal)
2581 ("pkg-config" ,pkg-config)
2582 ("python" ,python-2)
2583 ("ufo2map" ,ufo2map)
2584 ("ufoai-data" ,ufoai-data)))
2585 (inputs
2586 `(("curl" ,curl)
2587 ("libjpeg" ,libjpeg-turbo)
2588 ("libogg" ,libogg)
2589 ("libpng" ,libpng)
2590 ("libtheora" ,libtheora)
2591 ("libvorbis" ,libvorbis)
2592 ("libxml2" ,libxml2)
2593 ("lua" ,lua-5.1)
2594 ("mesa" ,mesa)
2595 ("minixml" ,minixml)
2596 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2597 ("zlib" ,zlib)))
2598 (synopsis "Turn-based tactical strategy game")
2599 (description
2600 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2601 You control a secret organisation charged with defending Earth from a brutal
2602 alien enemy. Build up your bases, prepare your team, and dive head-first into
2603 the fast and flowing turn-based combat.
2604
2605 Over the long term you will need to conduct research into the alien threat to
2606 figure out their mysterious goals and use their powerful weapons for your own
2607 ends. You will produce unique items and use them in combat against your
2608 enemies.
2609
2610 You can also use them against your friends with the multiplayer functionality.
2611
2612 Warning: This is a pre-release version of UFO: AI! Some things may not work
2613 properly.")
2614
2615 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2616 ;; because some assets do not use the "or later" clause. Many individual
2617 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2618 (license (delete license:gpl2+ (package-license ufoai-data)))))
2619
2620 (define-public xshogi
2621 (package
2622 (name "xshogi")
2623 (version "1.4.2")
2624 (source
2625 (origin
2626 (method url-fetch)
2627 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2628 version ".tar.gz"))
2629 (sha256
2630 (base32
2631 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2632 (build-system gnu-build-system)
2633 (inputs
2634 `(("libxaw" ,libxaw)
2635 ("libxt" ,libxt)))
2636 (home-page "https://www.gnu.org/software/gnushogi/")
2637 (synopsis "User interface for gnushogi")
2638 (description "A graphical user interface for the package @code{gnushogi}.")
2639 ;; Contains a copy of GPLv3 but the licence notices simply
2640 ;; state "GNU General Public Licence" without specifying a version.
2641 (license license:gpl1+)))
2642
2643 (define-public abbaye
2644 (package
2645 (name "abbaye")
2646 (version "2.0.1")
2647 (source
2648 (origin
2649 (method git-fetch)
2650 (uri (git-reference
2651 (url "https://github.com/nevat/abbayedesmorts-gpl")
2652 (commit (string-append "v" version))))
2653 (file-name (git-file-name name version))
2654 (sha256
2655 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2656 (modules '((guix build utils)))
2657 (snippet
2658 ;; Unbundle fonts.
2659 '(begin
2660 (delete-file-recursively "fonts")
2661 #t))))
2662 (build-system gnu-build-system)
2663 (arguments
2664 '(#:make-flags '("CC=gcc")
2665 #:phases (modify-phases %standard-phases
2666 (add-after 'set-paths 'set-sdl-paths
2667 (lambda* (#:key inputs #:allow-other-keys)
2668 (setenv "CPATH"
2669 (string-append (assoc-ref inputs "sdl-union")
2670 "/include/SDL:"
2671 (or (getenv "CPATH") "")))))
2672 (add-after 'patch-source-shebangs 'patch-makefile
2673 (lambda* (#:key outputs #:allow-other-keys)
2674 ;; Replace /usr with package output directory.
2675 (substitute* "Makefile"
2676 (("/usr") (assoc-ref outputs "out")))))
2677 (add-before 'install 'make-install-dirs
2678 (lambda* (#:key outputs #:allow-other-keys)
2679 (let ((prefix (assoc-ref outputs "out")))
2680 ;; Create directories that the makefile assumes exist.
2681 (mkdir-p (string-append prefix "/bin"))
2682 (mkdir-p (string-append prefix "/share/applications"))
2683 (mkdir-p (string-append prefix "/share/pixmaps")))))
2684 ;; No configure script.
2685 (delete 'configure))
2686 #:tests? #f)) ;; No check target.
2687 (native-inputs `(("pkg-config" ,pkg-config)))
2688 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2689 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2690 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2691 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2692 France. The Cathars, who preach about good Christian beliefs, were being
2693 expelled by the Catholic Church out of the Languedoc region in France. One of
2694 them, called Jean Raymond, found an old church in which to hide, not knowing
2695 that beneath its ruins lay buried an ancient evil.")
2696 (license license:gpl3)))
2697
2698 (define-public angband
2699 (package
2700 (name "angband")
2701 (version "4.2.1")
2702 (source
2703 (origin
2704 (method url-fetch)
2705 (uri (string-append "https://rephial.org/downloads/"
2706 (version-major+minor version)
2707 "/angband-" version ".tar.gz"))
2708 (sha256
2709 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2710 (modules '((guix build utils)))
2711 (snippet
2712 ;; So, some of the sounds/graphics/tilesets are under different
2713 ;; licenses... some of them even nonfree! This is a console-only
2714 ;; version of this package so we just remove them.
2715 ;; In the future, if someone tries to make a graphical variant of
2716 ;; this package, they can deal with that mess themselves. :)
2717 '(begin
2718 (for-each (lambda (subdir)
2719 (let ((lib-subdir (string-append "lib/" subdir)))
2720 (delete-file-recursively lib-subdir)))
2721 '("fonts" "icons" "sounds" "tiles"))
2722 (substitute* "lib/Makefile"
2723 ;; And don't try to invoke makefiles in the directories we removed.
2724 (("gamedata customize help screens fonts tiles sounds icons user")
2725 "gamedata customize help screens user"))
2726 #t))))
2727 (build-system gnu-build-system)
2728 (arguments
2729 `(#:tests? #f ; no check target
2730 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2731 #:phases
2732 (modify-phases %standard-phases
2733 (replace 'bootstrap
2734 (lambda _
2735 (substitute* "acinclude.m4"
2736 (("ncursesw5-config") "ncursesw6-config"))
2737 (invoke "sh" "autogen.sh"))))))
2738 (native-inputs
2739 `(("autoconf" ,autoconf)
2740 ("automake" ,automake)))
2741 (inputs `(("ncurses" ,ncurses)))
2742 (home-page "https://rephial.org/")
2743 (synopsis "Dungeon exploration roguelike")
2744 (description "Angband is a Classic dungeon exploration roguelike. Explore
2745 the depths below Angband, seeking riches, fighting monsters, and preparing to
2746 fight Morgoth, the Lord of Darkness.")
2747 (license license:gpl2)))
2748
2749 (define-public pingus
2750 (package
2751 (name "pingus")
2752 (version "0.7.6")
2753 (source
2754 (origin
2755 (method git-fetch)
2756 (uri (git-reference
2757 (url "https://gitlab.com/pingus/pingus.git")
2758 (commit (string-append "v" version))))
2759 (file-name (git-file-name name version))
2760 (sha256
2761 (base32
2762 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2763 (patches (search-patches "pingus-boost-headers.patch"
2764 "pingus-sdl-libs-config.patch"))
2765 (modules '((guix build utils)))
2766 (snippet
2767 '(begin
2768 (substitute* "src/pingus/screens/demo_session.cpp"
2769 (("#include <iostream>")
2770 ;; std::function moved to <functional> with C++ 11.
2771 ;; Remove this for versions newer than 0.7.6.
2772 "#include <iostream>\n#include <functional>"))
2773 #t))))
2774 (build-system gnu-build-system)
2775 (native-inputs `(("pkg-config" ,pkg-config)
2776 ("scons-python2" ,scons-python2)))
2777 (inputs `(("sdl" ,sdl)
2778 ("sdl-image" ,sdl-image)
2779 ("sdl-mixer" ,sdl-mixer)
2780 ("mesa" ,mesa)
2781 ("glu" ,glu)
2782 ("libpng" ,libpng)
2783 ("boost" ,boost)))
2784 (arguments
2785 '(#:make-flags (list (string-append "PREFIX=" %output))
2786 #:tests? #f ; no check target
2787 #:phases
2788 (modify-phases %standard-phases
2789 (delete 'configure)))) ; no configure script
2790 (home-page "https://pingus.seul.org/")
2791 (synopsis "Lemmings clone")
2792 (description
2793 "Pingus is a free Lemmings-like puzzle game in which the player takes
2794 command of a bunch of small animals and has to guide them through levels.
2795 Since the animals walk on their own, the player can only influence them by
2796 giving them commands, like build a bridge, dig a hole, or redirect all animals
2797 in the other direction. Multiple such commands are necessary to reach the
2798 level's exit. The game is presented in a 2D side view.")
2799 ;; Some source files are under bsd-3 and gpl2+ licenses.
2800 (license license:gpl3+)))
2801
2802 (define-public talkfilters
2803 (package
2804 (name "talkfilters")
2805 (version "2.3.8")
2806 (source
2807 (origin
2808 (method url-fetch)
2809 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
2810 "talkfilters-" version ".tar.gz"))
2811 (sha256
2812 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
2813 (build-system gnu-build-system)
2814 (home-page "https://www.gnu.org/software/talkfilters/")
2815 (synopsis "Convert English text to humorous dialects")
2816 (description "The GNU Talk Filters are programs that convert English text
2817 into stereotyped or otherwise humorous dialects. The filters are provided as
2818 a C library, so they can easily be integrated into other programs.")
2819 (license license:gpl2+)))
2820
2821 (define-public taisei
2822 (package
2823 (name "taisei")
2824 (version "1.3.1")
2825 (source
2826 (origin
2827 (method url-fetch)
2828 (uri (string-append "https://github.com/taisei-project/"
2829 "taisei/releases/download/v" version
2830 "/taisei-v" version ".tar.xz"))
2831 (sha256
2832 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
2833 (build-system meson-build-system)
2834 (arguments
2835 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
2836 #:configure-flags
2837 (list "-Dr_default=gles30"
2838 "-Dr_gles20=true"
2839 "-Dr_gles30=true"
2840 "-Dshader_transpiler=true")))
2841 (native-inputs
2842 `(("pkg-config" ,pkg-config)
2843 ("python" ,python)
2844 ("python-docutils" ,python-docutils)
2845 ("python-pygments" ,python-pygments)))
2846 (inputs
2847 `(("freetype" ,freetype)
2848 ("libpng" ,libpng)
2849 ("libwebp" ,libwebp)
2850 ("libzip" ,libzip)
2851 ("mesa" ,mesa)
2852 ("openssl" ,openssl)
2853 ("opusfile" ,opusfile)
2854 ("sdl2" ,sdl2)
2855 ("sdl2-mixer" ,sdl2-mixer)
2856 ("shaderc" ,shaderc)
2857 ("spirv-cross" ,spirv-cross)
2858 ("zlib" ,zlib)))
2859 (home-page "https://taisei-project.org/")
2860 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
2861 (description
2862 "The player controls a character (one of three: Good, Bad, and Dead),
2863 dodges the missiles (lots of it cover the screen, but the character's hitbox
2864 is very small), and shoot at the adversaries that keep appear on the screen.")
2865 (license (list ;;game
2866 license:expat
2867 ;;resources/00-taisei.pkgdir/bgm/
2868 ;;atlas/portraits/
2869 license:cc-by4.0
2870 ;;miscellaneous
2871 license:cc0
2872 license:public-domain))))
2873
2874 (define-public cmatrix
2875 (package
2876 (name "cmatrix")
2877 (version "2.0")
2878 (source
2879 (origin
2880 (method git-fetch)
2881 (uri (git-reference
2882 (url "https://github.com/abishekvashok/cmatrix")
2883 (commit (string-append "v" version))))
2884 (file-name (git-file-name name version))
2885 (sha256
2886 (base32
2887 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
2888 (build-system gnu-build-system)
2889 (native-inputs
2890 `(("autoconf" ,autoconf)
2891 ("automake" ,automake)))
2892 (arguments
2893 '(#:phases
2894 (modify-phases %standard-phases
2895 (replace 'configure
2896 (lambda* (#:key outputs #:allow-other-keys)
2897 ;; This old ‘configure’ script doesn't support
2898 ;; variables passed as arguments.
2899 (let ((out (assoc-ref outputs "out")))
2900 (setenv "CONFIG_SHELL" (which "bash"))
2901 (invoke "./configure"
2902 (string-append "--prefix=" out))))))))
2903 (inputs `(("ncurses" ,ncurses)))
2904 (home-page "http://www.asty.org/cmatrix")
2905 (synopsis "Simulate the display from \"The Matrix\"")
2906 (description "CMatrix simulates the display from \"The Matrix\" and is
2907 based on the screensaver from the movie's website. It works with terminal
2908 settings up to 132x300 and can scroll lines all at the same rate or
2909 asynchronously and at a user-defined speed.")
2910 (license license:gpl2+)))
2911
2912 (define-public chess
2913 (package
2914 (name "chess")
2915 (version "6.2.7")
2916 (source
2917 (origin
2918 (method url-fetch)
2919 (uri (string-append "mirror://gnu/chess/gnuchess-" version
2920 ".tar.gz"))
2921 (sha256
2922 (base32
2923 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
2924 (build-system gnu-build-system)
2925 (home-page "https://www.gnu.org/software/chess/")
2926 (synopsis "Full chess implementation")
2927 (description "GNU Chess is a chess engine. It allows you to compete
2928 against the computer in a game of chess, either through the default terminal
2929 interface or via an external visual interface such as GNU XBoard.")
2930 (properties '((upstream-name . "gnuchess")
2931 (ftp-directory . "/chess")))
2932 (license license:gpl3+)))
2933
2934 (define-public freedink-engine
2935 (package
2936 (name "freedink-engine")
2937 (version "109.6")
2938 (source (origin
2939 (method url-fetch)
2940 (uri (string-append "mirror://gnu/freedink/freedink-" version
2941 ".tar.gz"))
2942 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
2943 (sha256
2944 (base32
2945 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
2946 (build-system gnu-build-system)
2947 (arguments
2948 `(#:configure-flags '("--disable-embedded-resources")
2949 #:phases
2950 (modify-phases %standard-phases
2951 (add-after 'unpack 'disable-graphical-tests
2952 (lambda _
2953 ;; These tests require a graphical interface.
2954 (substitute* "src/Makefile.am"
2955 (("test_gfx_fonts TestIOGfxDisplay") ""))
2956 #t))
2957 (add-before 'bootstrap 'autoreconf
2958 (lambda _
2959 ;; automake is out of date in the source
2960 ;; autoreconf updates the automake scripts
2961 (invoke "autoreconf")
2962 ;; Build fails when autom4te.cache exists.
2963 (delete-file-recursively "autom4te.cache")
2964 #t))
2965 (add-after 'install 'delete-freedinkedit-desktop
2966 (lambda* (#:key outputs #:allow-other-keys)
2967 (let ((out (assoc-ref outputs "out")))
2968 ;; freedinkedit does not know where to find freedink data
2969 ;; freedink data is read-only, so it cannot be edited anyway.
2970 ;; TODO: fix freedink.desktop
2971 (delete-file-recursively (string-append
2972 out "/share/applications"))
2973 #t))))))
2974 (native-inputs `(("autoconf" ,autoconf)
2975 ("automake" ,automake)
2976 ("cxxtest" ,cxxtest)
2977 ("gettext" ,gettext-minimal)
2978 ("help2man" ,help2man)
2979 ("pkg-config" ,pkg-config)))
2980 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
2981 sdl2-ttf sdl2-gfx)))
2982 ("fontconfig" ,fontconfig)
2983 ("glm" ,glm)))
2984 (properties '((ftp-directory . "/freedink")
2985 (upstream-name . "freedink")))
2986 (home-page "https://www.gnu.org/software/freedink/")
2987 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
2988 (description
2989 "GNU FreeDink is a free and portable re-implementation of the engine
2990 for the role-playing game Dink Smallwood. It supports not only the original
2991 game data files but it also supports user-produced game mods or \"D-Mods\".
2992 To that extent, it also includes a front-end for managing all of your D-Mods.")
2993 (license license:gpl3+)))
2994
2995 (define-public freedink-data
2996 (package
2997 (name "freedink-data")
2998 (version "1.08.20190120")
2999 (source (origin
3000 (method url-fetch)
3001 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3002 version ".tar.gz"))
3003 (sha256
3004 (base32
3005 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3006 (build-system gnu-build-system)
3007 (arguments
3008 `(#:phases
3009 (modify-phases %standard-phases
3010 (delete 'configure) ; no configure script
3011 (delete 'check)) ; no tests
3012 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3013 (properties '((ftp-directory . "/freedink")))
3014 (home-page "https://www.gnu.org/software/freedink/")
3015 (synopsis "Game data for GNU Freedink")
3016 (description
3017 "This package contains the game data of GNU Freedink.")
3018 (license license:gpl3+)))
3019
3020 (define-public freedink-dfarc
3021 (package
3022 (name "freedink-dfarc")
3023 (version "3.14")
3024 (source (origin
3025 (method url-fetch)
3026 (uri (string-append "mirror://gnu/freedink/dfarc-"
3027 version ".tar.gz"))
3028 (sha256
3029 (base32
3030 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3031 (build-system gnu-build-system)
3032 (native-inputs
3033 `(("intltool" ,intltool)))
3034 (inputs
3035 `(("bzip2" ,bzip2)
3036 ("wxwidgets" ,wxwidgets)))
3037 (properties '((ftp-directory . "/freedink")
3038 (upstream-name . "dfarc")))
3039 (home-page "https://www.gnu.org/software/freedink/")
3040 (synopsis "Front-end for managing and playing Dink Modules")
3041 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3042 and its numerous D-Mods.")
3043 (license license:gpl3+)))
3044
3045 (define-public freedink
3046 ;; This is a wrapper that tells the engine where to find the data.
3047 (package (inherit freedink-engine)
3048 (name "freedink")
3049 (build-system trivial-build-system)
3050 (arguments
3051 '(#:builder (begin
3052 (use-modules (guix build utils))
3053
3054 (let* ((output (assoc-ref %outputs "out"))
3055 (bin (string-append output "/bin"))
3056 (executable (string-append bin "/freedink")))
3057 (mkdir-p bin)
3058 (call-with-output-file executable
3059 (lambda (port)
3060 (format port "#!~a/bin/sh
3061 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3062 (assoc-ref %build-inputs "bash")
3063 (assoc-ref %build-inputs "engine")
3064 (assoc-ref %build-inputs "data"))
3065 (chmod port #o777)))
3066 #t))
3067 #:modules ((guix build utils))))
3068 (inputs `(("engine" ,freedink-engine)
3069 ("data" ,freedink-data)
3070 ("bash" ,bash)))
3071 (native-inputs '())))
3072
3073 (define-public xboard
3074 (package
3075 (name "xboard")
3076 (version "4.9.1")
3077 (source
3078 (origin
3079 (method url-fetch)
3080 (uri (string-append "mirror://gnu/xboard/xboard-" version
3081 ".tar.gz"))
3082 (sha256
3083 (base32
3084 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3085 (build-system gnu-build-system)
3086 (inputs
3087 `(("gtk+" ,gtk+-2)
3088 ("librsvg" ,librsvg)))
3089 (native-inputs
3090 `(("texinfo" ,texinfo)
3091 ("pkg-config" ,pkg-config)))
3092 (home-page "https://www.gnu.org/software/xboard/")
3093 (synopsis "Graphical user interface for chess programs")
3094 (description "GNU XBoard is a graphical board for all varieties of chess,
3095 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3096 and Makruk. Several lesser-known variants are also supported. It presents a
3097 fully interactive graphical interface and it can load and save games in the
3098 Portable Game Notation.")
3099 (license license:gpl3+)))
3100
3101 (define-public gtypist
3102 (package
3103 (name "gtypist")
3104 (version "2.9.5")
3105 (source (origin
3106 (method url-fetch)
3107 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3108 version ".tar.xz"))
3109 (sha256
3110 (base32
3111 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3112 (modules '((guix build utils)))
3113 (snippet
3114 ;; We do not provide `ncurses.h' within an `ncursesw'
3115 ;; sub-directory, so patch the source accordingly. See
3116 ;; <http://bugs.gnu.org/19018>.
3117 '(begin
3118 (for-each (lambda (file)
3119 (substitute* file
3120 (("ncursesw/ncurses.h")
3121 "ncurses.h")))
3122 (find-files "." "configure$|\\.c$"))
3123 #t))))
3124 (build-system gnu-build-system)
3125 (inputs `(("ncurses" ,ncurses)
3126 ("perl" ,perl)))
3127 (home-page "https://www.gnu.org/software/gtypist/")
3128 (synopsis "Typing tutor")
3129 (description
3130 "GNU Typist is a universal typing tutor. It can be used to learn and
3131 practice touch-typing. Several tutorials are included; in addition to
3132 tutorials for the standard QWERTY layout, there are also tutorials for the
3133 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3134 are primarily in English, however some in other languages are provided.")
3135 (license license:gpl3+)))
3136
3137 (define-public irrlicht
3138 (package
3139 (name "irrlicht")
3140 (version "1.8.4")
3141 (source (origin
3142 (method url-fetch)
3143 (uri (string-append
3144 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3145 (version-major+minor version)
3146 "/" version "/irrlicht-" version ".zip"))
3147 (sha256
3148 (base32
3149 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3150 (patches (search-patches "irrlicht-use-system-libs.patch"))
3151 (modules '((guix build utils)))
3152 (snippet
3153 '(begin
3154 (for-each delete-file-recursively
3155 '("bin" ; bundled compiled Windows binaries"
3156 "source/Irrlicht/MacOSX"
3157 "source/Irrlicht/bzip2"
3158 "source/Irrlicht/jpeglib"
3159 "source/Irrlicht/libpng"
3160 "source/Irrlicht/lzma"
3161 "source/Irrlicht/zlib"))
3162 (delete-file "source/Irrlicht/glext.h")
3163 (delete-file "source/Irrlicht/glxext.h")
3164 (delete-file "source/Irrlicht/wglext.h")
3165 #t))))
3166 (build-system gnu-build-system)
3167 (arguments
3168 `(#:phases
3169 (modify-phases %standard-phases
3170 (add-after 'unpack 'chdir-to-source
3171 (lambda _
3172 ;; The actual source is buried a few directories deep.
3173 (chdir "source/Irrlicht/")
3174 #t))
3175 (add-after 'chdir-to-source 'fix-build-env
3176 (lambda* (#:key outputs #:allow-other-keys)
3177 (let ((out (assoc-ref outputs "out")))
3178 (substitute* "Makefile"
3179 (("INSTALL_DIR = /usr/local/lib")
3180 (string-append "INSTALL_DIR = " out "/lib"))
3181 ;; Add '-fpermissive' to the CXXFLAGS
3182 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3183 ;; The Makefile assumes these directories exist.
3184 (mkdir-p (string-append out "/lib"))
3185 (mkdir-p (string-append out "/include")))))
3186 (delete 'configure)) ; no configure script
3187 #:tests? #f ; no check target
3188 #:make-flags '("CC=gcc" "sharedlib")))
3189 (inputs
3190 `(("bzip2" ,bzip2)
3191 ("libjpeg" ,libjpeg-turbo)
3192 ("libpng" ,libpng)
3193 ("libx11" ,libx11)
3194 ("libxxf86vm" ,libxxf86vm)
3195 ("mesa" ,mesa)))
3196 (synopsis "3D game engine written in C++")
3197 (description
3198 "The Irrlicht Engine is a high performance realtime 3D engine written in
3199 C++. Features include an OpenGL renderer, extensible materials, scene graph
3200 management, character animation, particle and other special effects, support
3201 for common mesh file formats, and collision detection.")
3202 (home-page "http://irrlicht.sourceforge.net/")
3203 (license license:zlib)))
3204
3205 (define-public mars
3206 ;; The latest release on SourceForge relies on an unreleased version of SFML
3207 ;; with a different API, so we take the latest version from the official
3208 ;; repository on Github.
3209 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3210 (revision "1"))
3211 (package
3212 (name "mars")
3213 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3214 (source (origin
3215 (method git-fetch)
3216 (uri (git-reference
3217 (url "https://github.com/thelaui/M.A.R.S.")
3218 (commit commit)))
3219 (file-name (git-file-name name version))
3220 (sha256
3221 (base32
3222 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3223 (patches (search-patches "mars-sfml-2.3.patch"
3224 "mars-install.patch"))))
3225 (build-system cmake-build-system)
3226 (arguments
3227 `(#:tests? #f ; There are no tests
3228 #:phases
3229 (modify-phases %standard-phases
3230 (add-after 'unpack 'fix-install-path
3231 (lambda _
3232 (substitute* "src/CMakeLists.txt"
3233 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3234 "${CMAKE_INSTALL_PREFIX}/bin"))
3235 #t))
3236 (add-after 'unpack 'fix-data-path
3237 (lambda* (#:key outputs #:allow-other-keys)
3238 (substitute* "src/System/settings.cpp"
3239 (("C_dataPath = \"./data/\";")
3240 (string-append "C_dataPath = \""
3241 (assoc-ref outputs "out")
3242 "/share/games/marsshooter/\";")))
3243 #t)))))
3244 (inputs
3245 `(("mesa" ,mesa)
3246 ("fribidi" ,fribidi)
3247 ("taglib" ,taglib)
3248 ("sfml" ,sfml)))
3249 (home-page "http://mars-game.sourceforge.net/")
3250 (synopsis "2D space shooter")
3251 (description
3252 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3253 attractive physics. Players can battle each other or computer controlled
3254 enemies in different game modes such as space ball, death match, team death
3255 match, cannon keep, and grave-itation pit.")
3256 (license license:gpl3+))))
3257
3258 (define-public minetest
3259 (package
3260 (name "minetest")
3261 (version "5.3.0")
3262 (source (origin
3263 (method git-fetch)
3264 (uri (git-reference
3265 (url "https://github.com/minetest/minetest")
3266 (commit version)))
3267 (file-name (git-file-name name version))
3268 (sha256
3269 (base32
3270 "03ga3j3cg38w4lg4d4qxasmnjdl8n3lbizidrinanvyfdyvznyh6"))
3271 (modules '((guix build utils)))
3272 (snippet
3273 '(begin
3274 ;; Delete bundled libraries.
3275 (delete-file-recursively "lib")
3276 #t))))
3277 (build-system cmake-build-system)
3278 (arguments
3279 '(#:configure-flags
3280 (list "-DRUN_IN_PLACE=0"
3281 "-DENABLE_FREETYPE=1"
3282 "-DENABLE_GETTEXT=1"
3283 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3284 (string-append "-DIRRLICHT_INCLUDE_DIR="
3285 (assoc-ref %build-inputs "irrlicht")
3286 "/include/irrlicht")
3287 (string-append "-DCURL_INCLUDE_DIR="
3288 (assoc-ref %build-inputs "curl")
3289 "/include/curl"))
3290 #:tests? #f)) ;no check target
3291 (native-search-paths
3292 (list (search-path-specification
3293 (variable "MINETEST_SUBGAME_PATH")
3294 (files '("share/minetest/games")))))
3295 (native-inputs
3296 `(("pkg-config" ,pkg-config)))
3297 (inputs
3298 `(("curl" ,curl)
3299 ("freetype" ,freetype)
3300 ("gettext" ,gettext-minimal)
3301 ("gmp" ,gmp)
3302 ("irrlicht" ,irrlicht)
3303 ("jsoncpp" ,jsoncpp)
3304 ("libjpeg" ,libjpeg-turbo)
3305 ("libpng" ,libpng)
3306 ("libogg" ,libogg)
3307 ("libvorbis" ,libvorbis)
3308 ("libxxf86vm" ,libxxf86vm)
3309 ("luajit" ,luajit)
3310 ("mesa" ,mesa)
3311 ("ncurses" ,ncurses)
3312 ("openal" ,openal)
3313 ("sqlite" ,sqlite)))
3314 (propagated-inputs
3315 `(("minetest-data" ,minetest-data)))
3316 (synopsis "Infinite-world block sandbox game")
3317 (description
3318 "Minetest is a sandbox construction game. Players can create and destroy
3319 various types of blocks in a three-dimensional open world. This allows
3320 forming structures in every possible creation, on multiplayer servers or as a
3321 single player. Mods and texture packs allow players to personalize the game
3322 in different ways.")
3323 (home-page "https://www.minetest.net/")
3324 (license license:lgpl2.1+)))
3325
3326 (define minetest-data
3327 (package
3328 (name "minetest-data")
3329 (version (package-version minetest))
3330 (source (origin
3331 (method git-fetch)
3332 (uri (git-reference
3333 (url "https://github.com/minetest/minetest_game")
3334 (commit version)))
3335 (file-name (git-file-name name version))
3336 (sha256
3337 (base32
3338 "1liciwlh013z5h08ib0psjbwn5wkvlr937ir7kslfk4vly984cjx"))))
3339 (build-system trivial-build-system)
3340 (native-inputs
3341 `(("source" ,source)))
3342 (arguments
3343 `(#:modules ((guix build utils))
3344 #:builder (begin
3345 (use-modules (guix build utils))
3346 (let ((install-dir (string-append
3347 %output
3348 "/share/minetest/games/minetest_game")))
3349 (mkdir-p install-dir)
3350 (copy-recursively
3351 (assoc-ref %build-inputs "source")
3352 install-dir)
3353 #t))))
3354 (synopsis "Main game data for the Minetest game engine")
3355 (description
3356 "Game data for the Minetest infinite-world block sandbox game.")
3357 (home-page "https://www.minetest.net/")
3358 (license license:lgpl2.1+)))
3359
3360 (define-public minetest-mineclone
3361 (package
3362 (name "minetest-mineclone")
3363 (version "0.66.2")
3364 (source (origin
3365 (method git-fetch)
3366 (uri (git-reference
3367 (url "https://git.minetest.land/Wuzzy/MineClone2")
3368 (commit version)))
3369 (file-name (git-file-name name version))
3370 (sha256
3371 (base32
3372 "0miszzlzplpvaj0j1yii9867ydr42wsaqa9g6grxdrci75p05g00"))))
3373 (build-system copy-build-system)
3374 (arguments
3375 `(#:install-plan
3376 '(("." "share/minetest/games/mineclone"))))
3377 (synopsis "Minecraft clone based on Minetest engine")
3378 (description
3379 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3380 closely as the engine allows.")
3381 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3382 (license license:gpl3+)))
3383
3384 (define glkterm
3385 (package
3386 (name "glkterm")
3387 (version "1.0.4")
3388 (source
3389 (origin
3390 (method url-fetch)
3391 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3392 "glk/implementations/glkterm-104.tar.gz"))
3393 (sha256
3394 (base32
3395 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3396 (build-system gnu-build-system)
3397 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3398 (arguments
3399 '(#:tests? #f ; no check target
3400 #:phases
3401 (modify-phases %standard-phases
3402 (replace 'install
3403 (lambda* (#:key outputs #:allow-other-keys)
3404 (let* ((out (assoc-ref outputs "out"))
3405 (inc (string-append out "/include"))
3406 (lib (string-append out "/lib")))
3407 (for-each
3408 (lambda (file)
3409 (install-file file inc))
3410 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3411 (install-file "libglkterm.a" lib))
3412 #t))
3413 (delete 'configure)))) ; no configure script
3414 (home-page "http://www.eblong.com/zarf/glk/")
3415 (synopsis "Curses Implementation of the Glk API")
3416 (description
3417 "Glk defines a portable API for applications with text UIs. It was
3418 primarily designed for interactive fiction, but it should be suitable for many
3419 interactive text utilities, particularly those based on a command line.
3420 This is an implementation of the Glk library which runs in a terminal window,
3421 using the @code{curses.h} library for screen control.")
3422 (license (license:fsf-free "file://README"))))
3423
3424 (define-public glulxe
3425 (package
3426 (name "glulxe")
3427 (version "0.5.4")
3428 (source
3429 (origin
3430 (method url-fetch)
3431 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3432 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3433 (sha256
3434 (base32
3435 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3436 (build-system gnu-build-system)
3437 (inputs `(("glk" ,glkterm)))
3438 (arguments
3439 '(#:tests? #f ; no check target
3440 #:make-flags
3441 (let* ((glk (assoc-ref %build-inputs "glk")))
3442 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3443 (string-append "GLKLIBDIR=" glk "/lib")
3444 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3445 #:phases
3446 (modify-phases %standard-phases
3447 (replace 'install
3448 (lambda* (#:key outputs #:allow-other-keys)
3449 (let* ((out (assoc-ref outputs "out"))
3450 (bin (string-append out "/bin")))
3451 (install-file "glulxe" bin))
3452 #t))
3453 (delete 'configure)))) ; no configure script
3454 (home-page "https://www.eblong.com/zarf/glulx/")
3455 (synopsis "Interpreter for Glulx VM")
3456 (description
3457 "Glulx is a 32-bit portable virtual machine intended for writing and
3458 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3459 some of the restrictions in the venerable Z-machine format. This is the
3460 reference interpreter, using the Glk API.")
3461 (license license:expat)))
3462
3463 (define-public fifechan
3464 (package
3465 (name "fifechan")
3466 (version "0.1.5")
3467 (source (origin
3468 (method url-fetch)
3469 (uri (string-append "https://codeload.github.com/fifengine/"
3470 "fifechan/tar.gz/" version))
3471 (file-name (string-append name "-" version ".tar.gz"))
3472 (sha256
3473 (base32
3474 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3475 (build-system cmake-build-system)
3476 (inputs
3477 `(("sdl2" ,sdl2)
3478 ("sdl2-image" ,sdl2-image)
3479 ("mesa" ,mesa)))
3480 (arguments
3481 '(#:tests? #f)) ; No included tests
3482 (home-page "https://fifengine.github.io/fifechan/")
3483 (synopsis "Cross platform GUI library specifically for games")
3484 (description
3485 "Fifechan is a lightweight cross platform GUI library written in C++
3486 specifically designed for games. It has a built in set of extendable GUI
3487 Widgets, and allows users to create more.")
3488 (license license:lgpl2.1+)))
3489
3490 (define-public fifengine
3491 (package
3492 (name "fifengine")
3493 (version "0.4.2")
3494 (source (origin
3495 (method url-fetch)
3496 (uri (string-append "https://codeload.github.com/fifengine/"
3497 "fifengine/tar.gz/" version))
3498 (file-name (string-append name "-" version ".tar.gz"))
3499 (patches (search-patches "fifengine-swig-compat.patch"))
3500 (sha256
3501 (base32
3502 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3503 (build-system cmake-build-system)
3504 (arguments
3505 `(#:tests? #f ; TODO The test running fails to run some tests.
3506 #:modules ((srfi srfi-1)
3507 (guix build cmake-build-system)
3508 (guix build utils))
3509 #:configure-flags
3510 (list
3511 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3512 (assoc-ref %build-inputs "openal")
3513 "/include/AL")
3514 (string-append "-DPYTHON_SITE_PACKAGES="
3515 (assoc-ref %outputs "out")
3516 "/lib/python"
3517 ,(version-major+minor (package-version python))
3518 "/site-packages"))
3519 #:phases
3520 (modify-phases %standard-phases
3521 (add-after 'unpack 'patch-run_tests.py
3522 (lambda _
3523 ;; Patch the test runner to exit with a status of 1 if any test
3524 ;; fails, to allow detecting failures.
3525 (substitute* "run_tests.py"
3526 (("ERROR\\. One or more tests failed!'\\)")
3527 "ERROR. One or more tests failed!')
3528 \t\texit(1)"))
3529 #t))
3530 ;; Run tests after installation so that we can make use of the built
3531 ;; python modules.
3532 (delete 'check)
3533 (add-after 'install 'check
3534 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3535 (define python-version
3536 (let* ((version (last (string-split
3537 (assoc-ref inputs "python")
3538 #\-)))
3539 (components (string-split version #\.))
3540 (major+minor (take components 2)))
3541 (string-join major+minor ".")))
3542
3543 (when tests?
3544 ;; Set PYTHONPATH so that python finds the installed modules.
3545 (setenv "PYTHONPATH"
3546 (string-append (getenv "PYTHONPATH") ":"
3547 (assoc-ref outputs "out")
3548 "/lib/python"
3549 python-version
3550 "/site-packages"))
3551 ;; The tests require an X server.
3552 (system "Xvfb :1 &")
3553 (setenv "DISPLAY" ":1")
3554 (setenv "XDG_RUNTIME_DIR" "/tmp")
3555 ;; Run tests
3556 (chdir ,(string-append "../" name "-" version))
3557 (invoke "python3" "run_tests.py" "-a"))
3558 #t)))))
3559 (inputs
3560 `(("sdl2" ,sdl2)
3561 ("sdl2-image" ,sdl2-image)
3562 ("sdl2-ttf" ,sdl2-ttf)
3563 ("tinyxml" ,tinyxml)
3564 ("openal" ,openal)
3565 ("libogg" ,libogg)
3566 ("glew" ,glew)
3567 ("libvorbis" ,libvorbis)
3568 ("boost" ,boost)
3569 ("fifechan" ,fifechan)
3570 ("swig" ,swig)
3571 ("python" ,python)))
3572 (native-inputs
3573 `(("python" ,python)
3574 ("swig" ,swig)
3575 ("xvfb" ,xorg-server)))
3576 (propagated-inputs
3577 `(("python-future" ,python-future)))
3578 (home-page "https://www.fifengine.net/")
3579 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3580 (description
3581 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3582 isometric game engine. Python bindings are included allowing users to create
3583 games using Python as well as C++.")
3584 (license license:lgpl2.1+)))
3585
3586 (define-public fizmo
3587 (package
3588 (name "fizmo")
3589 (version "0.8.5")
3590 (source (origin
3591 (method url-fetch)
3592 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3593 "fizmo-" version ".tar.gz"))
3594 (sha256
3595 (base32
3596 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3597 (build-system gnu-build-system)
3598 (arguments
3599 '(#:configure-flags
3600 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3601 (ncurses (assoc-ref %build-inputs "ncurses")))
3602 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3603 (native-inputs
3604 `(("pkg-config" ,pkg-config)))
3605 (inputs
3606 `(("freetype" ,freetype)
3607 ("libjpeg" ,libjpeg-turbo)
3608 ("libpng" ,libpng)
3609 ("libsndfile" ,libsndfile)
3610 ("libxml2" ,libxml2)
3611 ("ncurses" ,ncurses)
3612 ("sdl2" ,sdl2)))
3613 (home-page "https://fizmo.spellbreaker.org/")
3614 (synopsis "Z-machine interpreter")
3615 (description
3616 "Fizmo is a console-based Z-machine interpreter. It is used to play
3617 interactive fiction, also known as text adventures, which were implemented
3618 either by Infocom or created using the Inform compiler.")
3619 (license license:bsd-3)))
3620
3621 (define-public gnugo
3622 (package
3623 (name "gnugo")
3624 (version "3.8")
3625 (source (origin
3626 (method url-fetch)
3627 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3628 ".tar.gz"))
3629 (sha256
3630 (base32
3631 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3632 (build-system gnu-build-system)
3633 (inputs `(("readline" ,readline)))
3634 (synopsis "Play the game of Go")
3635 (description
3636 "GNU Go is a program that plays the game of Go, in which players
3637 place stones on a grid to form territory or capture other stones. While
3638 it can be played directly from the terminal, rendered in ASCII characters,
3639 it is also possible to play GNU Go with 3rd party graphical interfaces or
3640 even in Emacs. It supports the standard game storage format (SGF, Smart
3641 Game Format) and inter-process communication format (GMP, Go Modem
3642 Protocol).")
3643 (home-page "https://www.gnu.org/software/gnugo/")
3644 (license license:gpl3+)))
3645
3646 (define-public extremetuxracer
3647 (package
3648 (name "extremetuxracer")
3649 (version "0.8.0")
3650 (source (origin
3651 (method url-fetch)
3652 (uri (string-append
3653 "mirror://sourceforge/extremetuxracer/releases/"
3654 version "/etr-" version ".tar.xz"))
3655 (sha256
3656 (base32
3657 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3658 (build-system gnu-build-system)
3659 (native-inputs
3660 `(("pkg-config" ,pkg-config)))
3661 (inputs
3662 `(("glu" ,glu)
3663 ("sfml" ,sfml)))
3664 (synopsis "High-speed arctic racing game based on Tux Racer")
3665 ;; Snarfed straight from Debian.
3666 (description "Extreme Tux Racer, or etracer as it is called for short, is
3667 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3668 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3669 avoiding the trees and rocks that will slow you down.
3670
3671 Collect herrings and other goodies while sliding down the hill, but avoid fish
3672 bones.
3673
3674 This game is based on the GPL version of the famous game TuxRacer.")
3675 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3676 (license license:gpl2+)))
3677
3678 (define-public supertuxkart
3679 (package
3680 (name "supertuxkart")
3681 (version "1.2")
3682 (source
3683 (origin
3684 (method url-fetch)
3685 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3686 version "/SuperTuxKart-" version "-src.tar.xz"))
3687 (sha256
3688 (base32
3689 "0dvx56hmy6wdhl7m9dw8zc1n3jqfp05gnxl6zs1rbfdyzl5dybh5"))
3690 (modules '((guix build utils)))
3691 (snippet
3692 ;; Delete bundled library sources
3693 '(begin
3694 ;; Supertuxkart uses modified versions of the Irrlicht engine
3695 ;; and the bullet library. The developers gave an explanation
3696 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3697 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3698 (for-each delete-file-recursively
3699 '("lib/glew"
3700 "lib/wiiuse"
3701 "lib/enet"))
3702 #t))))
3703 (build-system cmake-build-system)
3704 (arguments
3705 `(#:tests? #f ; no check target
3706 #:configure-flags
3707 (list "-DUSE_WIIUSE=0"
3708 "-DUSE_SYSTEM_GLEW=TRUE"
3709 "-DUSE_SYSTEM_ENET=TRUE"
3710 ;; In order to use the system ENet library, IPv6 support (added in
3711 ;; SuperTuxKart version 1.1) must be disabled.
3712 "-DUSE_IPV6=FALSE"
3713 ;; FIXME: needs libopenglrecorder
3714 "-DBUILD_RECORDER=0")))
3715 (inputs
3716 `(("curl" ,curl)
3717 ("freetype" ,freetype)
3718 ("fribidi" ,fribidi)
3719 ("glew" ,glew)
3720 ("harfbuzz" ,harfbuzz)
3721 ("libvorbis" ,libvorbis)
3722 ("libx11" ,libx11)
3723 ("libxrandr" ,libxrandr)
3724 ("mesa" ,mesa)
3725 ("openal" ,openal)
3726 ("sdl2" ,sdl2)
3727 ("zlib" ,zlib)
3728 ;; The following input is needed to build the bundled and modified
3729 ;; version of irrlicht.
3730 ("enet" ,enet)
3731 ("libjpeg" ,libjpeg-turbo)
3732 ("openssl" ,openssl)))
3733 (native-inputs
3734 `(("pkg-config" ,pkg-config)))
3735 (home-page "https://supertuxkart.net/Main_Page")
3736 (synopsis "3D kart racing game")
3737 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3738 having fun over realism. You can play with up to 4 friends on one PC, racing
3739 against each other or just trying to beat the computer; single-player mode is
3740 also available.")
3741 (license license:gpl3+)))
3742
3743 (define-public unknown-horizons
3744 (package
3745 (name "unknown-horizons")
3746 (version "2019.1")
3747 (source (origin
3748 (method url-fetch)
3749 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3750 "unknown-horizons/tar.gz/" version))
3751 (file-name (string-append name "-" version ".tar.gz"))
3752 (sha256
3753 (base32
3754 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
3755 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
3756 (build-system python-build-system)
3757 (arguments
3758 '(#:phases
3759 (modify-phases %standard-phases
3760 (add-before 'build 'set-HOME
3761 (lambda _
3762 (setenv "HOME" "/tmp")
3763 #t))
3764 (add-after 'build 'build-extra
3765 (lambda _
3766 (invoke "python3" "./setup.py" "build_i18n")
3767 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3768 #t))
3769 (add-after 'install 'patch
3770 (lambda* (#:key outputs #:allow-other-keys)
3771 (let ((out (assoc-ref outputs "out")))
3772 (substitute* (string-append out "/bin/unknown-horizons")
3773 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3774 (string-append "os.chdir(\""
3775 (assoc-ref outputs "out")
3776 "/share/unknown-horizons\")"))))
3777 #t))
3778 (add-before 'check 'fix-tests-with-pytest>=4
3779 (lambda _
3780 (substitute* "tests/conftest.py"
3781 (("pytest_namespace")
3782 "pytest_configure")
3783 (("get_marker")
3784 "get_closest_marker"))
3785 #t))
3786 ;; TODO: Run GUI tests as well
3787 (replace 'check
3788 (lambda _
3789 (substitute* "horizons/constants.py"
3790 (("IS_DEV_VERSION = False")
3791 "IS_DEV_VERSION = True"))
3792 (invoke "pytest" "tests")
3793 (substitute* "horizons/constants.py"
3794 (("IS_DEV_VERSION = True")
3795 "IS_DEV_VERSION = False"))
3796 #t)))))
3797 (inputs
3798 `(("fifengine" ,fifengine)
3799 ("python:tk" ,python "tk")
3800 ("python-pillow" ,python-pillow)
3801 ("python-pyyaml" ,python-pyyaml)))
3802 (native-inputs
3803 `(("intltool" ,intltool)
3804 ("python-distro" ,python-distro)
3805
3806 ;; Required for tests
3807 ("python-greenlet" ,python-greenlet)
3808 ("python-polib" ,python-polib)
3809 ("python-pytest" ,python-pytest)
3810 ("python-pytest-mock" ,python-pytest-mock)))
3811 (home-page "http://unknown-horizons.org/")
3812 (synopsis "Isometric realtime strategy, economy and city building simulation")
3813 (description
3814 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
3815 on economy and city building. Expand your small settlement to a strong and
3816 wealthy colony, collect taxes and supply your inhabitants with valuable
3817 goods. Increase your power with a well balanced economy and with strategic
3818 trade and diplomacy.")
3819 (license (list
3820 license:gpl2+ ; Covers code
3821 license:expat ; tests/dummy.py, ext/polib.py
3822 license:cc-by-sa3.0 ; Covers some media content
3823 license:cc-by3.0 ; Covers some media content
3824 license:bsd-3)))) ; horizons/ext/speaklater.py
3825
3826 (define-public gnujump
3827 (package
3828 (name "gnujump")
3829 (version "1.0.8")
3830 (source (origin
3831 (method url-fetch)
3832 (uri (string-append "mirror://gnu/gnujump/gnujump-"
3833 version ".tar.gz"))
3834 (sha256
3835 (base32
3836 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
3837 (build-system gnu-build-system)
3838 (arguments
3839 '(#:phases
3840 (modify-phases %standard-phases
3841 (add-before
3842 'configure 'link-libm
3843 (lambda _ (setenv "LIBS" "-lm")))
3844 (add-after 'install 'create-desktop-entry
3845 (lambda* (#:key outputs #:allow-other-keys)
3846 (let* ((out (assoc-ref outputs "out"))
3847 (apps (string-append out "/share/applications")))
3848 (mkdir-p apps)
3849 (with-output-to-file
3850 (string-append apps "/gnujump.desktop")
3851 (lambda _
3852 (format #t
3853 "[Desktop Entry]~@
3854 Name=GNUjump~@
3855 Comment=Jump up the tower to survive~@
3856 Exec=~a/bin/gnujump~@
3857 Terminal=false~@
3858 Type=Application~@
3859 Categories=Game;ArcadeGame~%"
3860 out)))))))))
3861 (inputs
3862 `(("glu" ,glu)
3863 ("mesa" ,mesa)
3864 ("sdl" ,sdl)
3865 ("sdl-image" ,sdl-image)
3866 ("sdl-mixer" ,sdl-mixer)))
3867 (home-page "http://gnujump.es.gnu.org/")
3868 (synopsis
3869 "Game of jumping to the next floor, trying not to fall")
3870 (description
3871 "GNUjump is a simple, yet addictive game in which you must jump from
3872 platform to platform to avoid falling, while the platforms drop at faster rates
3873 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
3874 falling, themeable graphics and sounds, and replays.")
3875 (license license:gpl3+)))
3876
3877 (define-public wesnoth
3878 (package
3879 (name "wesnoth")
3880 (version "1.14.15")
3881 (source (origin
3882 (method url-fetch)
3883 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
3884 (version-major+minor version)
3885 "/wesnoth-" version "/"
3886 "wesnoth-" version ".tar.bz2"))
3887 (sha256
3888 (base32
3889 "05iapxj3nzaqh10y42yq1jf7spxgm4iwjw4qj1c4lnb25xp4mc2h"))))
3890 (build-system cmake-build-system)
3891 (arguments
3892 `(#:tests? #f)) ;no check target
3893 (native-inputs
3894 `(("gettext" ,gettext-minimal)
3895 ("pkg-config" ,pkg-config)))
3896 (inputs
3897 `(("boost" ,boost)
3898 ("dbus" ,dbus)
3899 ("fribidi" ,fribidi)
3900 ("libvorbis" ,libvorbis)
3901 ("openssl" ,openssl)
3902 ("pango" ,pango)
3903 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
3904 (home-page "https://www.wesnoth.org/")
3905 (synopsis "Turn-based strategy game")
3906 (description
3907 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
3908 with several single player campaigns, and multiplayer games (both networked and
3909 local).
3910
3911 Battle for control on a range of maps, using variety of units which have
3912 advantages and disadvantages against different types of attacks. Units gain
3913 experience and advance levels, and are carried over from one scenario to the
3914 next campaign.")
3915 (license license:gpl2+)))
3916
3917 (define-public wesnoth-server
3918 (package
3919 (inherit wesnoth)
3920 (name "wesnoth-server")
3921 (inputs
3922 `(("boost" ,boost)
3923 ("icu4c" ,icu4c)
3924 ("openssl" ,openssl)
3925 ("sdl2" ,sdl2)))
3926 (arguments
3927 `(#:configure-flags '("-DENABLE_GAME=OFF")
3928 ,@(package-arguments wesnoth)))
3929 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
3930 (description "This package contains a dedicated server for @emph{The
3931 Battle for Wesnoth}.")))
3932
3933 (define-public gamine
3934 (package
3935 (name "gamine")
3936 (version "1.6")
3937 (source (origin
3938 (method url-fetch)
3939 (uri (string-append "mirror://sourceforge/gamine-game/"
3940 "gamine-" version ".tar.gz"))
3941 (sha256
3942 (base32
3943 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
3944 (build-system gnu-build-system)
3945 (native-inputs
3946 `(("pkg-config" ,pkg-config)
3947 ("intltool" ,intltool)))
3948 (inputs
3949 `(("gstreamer" ,gstreamer)
3950 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
3951 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
3952 ("gtk+" ,gtk+)))
3953 (arguments
3954 `(#:tests? #f
3955 #:make-flags
3956 (let ((out (assoc-ref %outputs "out")))
3957 (list (string-append "PREFIX=" out)
3958 (string-append "SYSCONFDIR=" out "/etc")))
3959 #:phases
3960 (modify-phases %standard-phases
3961 (delete 'configure)
3962 (add-after
3963 'install 'wrap-gamine
3964 (lambda* (#:key outputs #:allow-other-keys)
3965 (let ((out (assoc-ref outputs "out"))
3966 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
3967 (wrap-program (string-append out "/bin/gamine")
3968 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
3969 #t)))))
3970 (home-page "http://gamine-game.sourceforge.net/")
3971 (synopsis "Mouse and keyboard discovery for children")
3972 (description
3973 "Gamine is a game designed for young children who are learning to use the
3974 mouse and keyboard. The child uses the mouse to draw colored dots and lines
3975 on the screen and keyboard to display letters.")
3976 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
3977 (license license:gpl3)))
3978
3979 (define-public manaplus
3980 (package
3981 (name "manaplus")
3982 (version "1.9.3.23")
3983 (source (origin
3984 (method url-fetch)
3985 (uri (string-append
3986 "https://repo.manaplus.org/manaplus/download/"
3987 version "/manaplus-" version ".tar.xz"))
3988 (sha256
3989 (base32
3990 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
3991 (build-system gnu-build-system)
3992 (arguments
3993 '(#:configure-flags
3994 (list (string-append "CPPFLAGS=-I"
3995 (assoc-ref %build-inputs "sdl-union")
3996 "/include/SDL"))))
3997 (native-inputs
3998 `(("pkg-config" ,pkg-config)))
3999 (inputs
4000 `(("glu" ,glu)
4001 ("curl" ,curl)
4002 ("libxml2" ,libxml2)
4003 ("mesa" ,mesa)
4004 ("sdl-union" ,(sdl-union))))
4005 (home-page "https://manaplus.org")
4006 (synopsis "Client for 'The Mana World' and similar games")
4007 (description
4008 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4009 fully supported client for @uref{http://www.themanaworld.org, The mana
4010 world}, @uref{http://evolonline.org, Evol Online} and
4011 @uref{http://landoffire.org, Land of fire}.")
4012 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4013 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4014 ;; The rest is under GPL2+.
4015 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4016
4017 (define openttd-engine
4018 (package
4019 (name "openttd-engine")
4020 (version "1.10.3")
4021 (source
4022 (origin (method url-fetch)
4023 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4024 version "/openttd-" version "-source.tar.xz"))
4025 (sha256
4026 (base32
4027 "0fxmfz1mm95a2x0rnzfff9wb8q57w0cvsdd0z7agdcbyakph25n1"))))
4028 (build-system gnu-build-system)
4029 (arguments
4030 `(#:tests? #f ; no "check" target
4031 #:phases
4032 (modify-phases %standard-phases
4033 ;; The build process fails if the configure script is passed the
4034 ;; option "--enable-fast-install".
4035 (replace 'configure
4036 (lambda* (#:key inputs outputs (configure-flags '())
4037 #:allow-other-keys)
4038 (let ((out (assoc-ref outputs "out"))
4039 (lzo (assoc-ref inputs "lzo")))
4040 (apply invoke "./configure"
4041 (string-append "--prefix=" out)
4042 ;; Provide the "lzo" path.
4043 (string-append "--with-liblzo2="
4044 lzo "/lib/liblzo2.a")
4045 ;; Put the binary in 'bin' instead of 'games'.
4046 "--binary-dir=bin"
4047 configure-flags)))))))
4048 (native-inputs `(("pkg-config" ,pkg-config)))
4049 (inputs
4050 `(("allegro" ,allegro)
4051 ("fontconfig" ,fontconfig)
4052 ("freetype" ,freetype)
4053 ("icu4c" ,icu4c)
4054 ("libpng" ,libpng)
4055 ("lzo" ,lzo)
4056 ("sdl" ,sdl)
4057 ("xz" ,xz)
4058 ("zlib" ,zlib)))
4059 (synopsis "Transportation economics simulator game")
4060 (description "OpenTTD is a game in which you transport goods and
4061 passengers by land, water and air. It is a re-implementation of Transport
4062 Tycoon Deluxe with many enhancements including multiplayer mode,
4063 internationalization support, conditional orders and the ability to clone,
4064 autoreplace and autoupdate vehicles. This package only includes the game
4065 engine. When you start it you will be prompted to download a graphics set.")
4066 (home-page "https://www.openttd.org/")
4067 ;; This package is GPLv2, except for a few files located in
4068 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4069 ;; licenses. In addition, this software contains an in-game downloader
4070 ;; from which the user may find non-functional data licensed under
4071 ;; different terms.
4072 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4073
4074 (define openttd-opengfx
4075 (package
4076 (name "openttd-opengfx")
4077 (version "0.6.0")
4078 (source
4079 (origin
4080 (method url-fetch)
4081 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4082 version "/opengfx-" version "-source.tar.xz"))
4083 (sha256
4084 (base32
4085 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
4086 (build-system gnu-build-system)
4087 (arguments
4088 '(#:make-flags (list "CC=gcc"
4089 (string-append "INSTALL_DIR="
4090 (assoc-ref %outputs "out")
4091 "/share/games/openttd/baseset/opengfx"))
4092 #:phases
4093 (modify-phases %standard-phases
4094 (replace 'configure
4095 (lambda _
4096 ;; Make sure HOME is writable for GIMP.
4097 (setenv "HOME" (getcwd))
4098
4099 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4100 ;; dos2unix from receiving its version information as a flag.
4101 (substitute* "Makefile"
4102 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4103 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4104 ;; The check phase for this package only checks the md5sums of the built
4105 ;; GRF files against the md5sums of the release versions. Because we use
4106 ;; different software versions than upstream does, some of the md5sums
4107 ;; are different. However, the package is still reproducible, it's safe
4108 ;; to disable this test.
4109 #:tests? #f
4110 #:parallel-build? #f))
4111 (native-inputs `(("dos2unix" ,dos2unix)
4112 ("gimp" ,gimp)
4113 ("grfcodec" ,grfcodec)
4114 ("nml" ,nml)
4115 ("which" ,which)
4116 ("python" ,python-2)))
4117 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4118 (synopsis "Base graphics set for OpenTTD")
4119 (description
4120 "The OpenGFX project is an implementation of the OpenTTD base graphics
4121 set that aims to ensure the best possible out-of-the-box experience.
4122
4123 OpenGFX provides you with...
4124 @enumerate
4125 @item All graphics you need to enjoy OpenTTD.
4126 @item Uniquely drawn rail vehicles for every climate.
4127 @item Completely snow-aware rivers.
4128 @item Different river and sea water.
4129 @item Snow-aware buoys.
4130 @end enumerate")
4131 (license license:gpl2)))
4132
4133 (define openttd-opensfx
4134 (package
4135 (name "openttd-opensfx")
4136 (version "0.2.3")
4137 (source
4138 (origin
4139 (method url-fetch)
4140 (uri (string-append
4141 "https://binaries.openttd.org/extra/opensfx/"
4142 version "/opensfx-" version "-source.tar.gz"))
4143 (sha256
4144 (base32
4145 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
4146 (build-system gnu-build-system)
4147 (native-inputs
4148 `(("catcodec" ,catcodec)
4149 ("python" ,python-2)))
4150 (arguments
4151 `(#:make-flags
4152 (list (string-append "INSTALL_DIR=" %output
4153 "/share/games/openttd/baseset/opensfx"))
4154 #:phases
4155 (modify-phases %standard-phases
4156 (add-after 'unpack 'make-reproducible
4157 (lambda _
4158 ;; Remove the time dependency of the installed tarball by setting
4159 ;; the modification times if its members to 0.
4160 (substitute* "scripts/Makefile.def"
4161 (("-cf") " --mtime=@0 -cf"))
4162 #t))
4163 (delete 'configure))))
4164 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4165 (synopsis "Base sounds for OpenTTD")
4166 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4167 it possible to play OpenTTD without requiring the proprietary sound files from
4168 the original Transport Tycoon Deluxe.")
4169 (license license:cc-sampling-plus-1.0)))
4170
4171 (define openttd-openmsx
4172 (package
4173 (name "openttd-openmsx")
4174 (version "0.3.1")
4175 (source
4176 (origin
4177 (method url-fetch)
4178 (uri (string-append
4179 "https://binaries.openttd.org/extra/openmsx/"
4180 version "/openmsx-" version "-source.tar.gz"))
4181 (sha256
4182 (base32
4183 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
4184 (build-system gnu-build-system)
4185 (native-inputs
4186 `(("python" ,python-2)))
4187 (arguments
4188 `(#:make-flags
4189 (list (string-append "INSTALL_DIR=" %output
4190 "/share/games/openttd/baseset"))
4191 #:phases
4192 (modify-phases %standard-phases
4193 (delete 'configure)
4194 (add-after 'install 'post-install
4195 ;; Rename openmsx-version to openmsx
4196 (lambda* (#:key outputs #:allow-other-keys)
4197 (let ((install-directory (string-append (assoc-ref outputs "out")
4198 "/share/games/openttd/baseset")))
4199 (rename-file (string-append install-directory "/openmsx-" ,version)
4200 (string-append install-directory "/openmsx"))
4201 #t))))))
4202 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4203 (synopsis "Music set for OpenTTD")
4204 (description "OpenMSX is a music set for OpenTTD which makes it possible
4205 to play OpenTTD without requiring the proprietary music from the original
4206 Transport Tycoon Deluxe.")
4207 (license license:gpl2)))
4208
4209 (define-public openttd
4210 (package
4211 (inherit openttd-engine)
4212 (name "openttd")
4213 (arguments
4214 `(#:configure-flags
4215 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4216 "/bin/timidity"))
4217 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4218 ((#:phases phases)
4219 `(modify-phases ,phases
4220 (add-after 'install 'install-data
4221 (lambda* (#:key inputs outputs #:allow-other-keys)
4222 (for-each
4223 (lambda (input)
4224 (copy-recursively (assoc-ref inputs input)
4225 (assoc-ref outputs "out")))
4226 (list "opengfx" "openmsx" "opensfx"))
4227 #t)))))))
4228 (inputs
4229 `(("timidity++" ,timidity++)
4230 ,@(package-inputs openttd-engine)))
4231 (native-inputs
4232 `(("opengfx" ,openttd-opengfx)
4233 ("openmsx" ,openttd-openmsx)
4234 ("opensfx" ,openttd-opensfx)
4235 ,@(package-native-inputs openttd-engine)))))
4236
4237 (define openrct2-title-sequences
4238 (package
4239 (name "openrct2-title-sequences")
4240 (version "0.1.2")
4241 (source
4242 (origin
4243 (method url-fetch)
4244 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4245 version "/title-sequence-v" version ".zip"))
4246 (file-name (string-append name "-" version ".zip"))
4247 (sha256
4248 (base32
4249 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4250 (build-system trivial-build-system)
4251 (native-inputs
4252 `(("bash" ,bash)
4253 ("coreutils" ,coreutils)
4254 ("unzip" ,unzip)))
4255 (arguments
4256 `(#:modules ((guix build utils))
4257 #:builder
4258 (begin
4259 (use-modules (guix build utils))
4260 (let* ((out (assoc-ref %outputs "out"))
4261 (openrct2-title-sequences (string-append out
4262 "/share/openrct2/title-sequences"))
4263 (source (assoc-ref %build-inputs "source"))
4264 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4265 (copy-file source (string-append ,name "-" ,version ".zip"))
4266 (invoke unzip (string-append ,name "-" ,version ".zip"))
4267 (delete-file (string-append ,name "-" ,version ".zip"))
4268 (mkdir-p openrct2-title-sequences)
4269 (copy-recursively "."
4270 openrct2-title-sequences)
4271 #t))))
4272 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4273 (synopsis "Title sequences for OpenRCT2")
4274 (description
4275 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4276 (license license:gpl3+)))
4277
4278 (define openrct2-objects
4279 (package
4280 (name "openrct2-objects")
4281 (version "1.0.20")
4282 (source
4283 (origin
4284 (method url-fetch)
4285 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4286 version "/objects.zip"))
4287 (file-name (string-append name "-" version ".zip"))
4288 (sha256
4289 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4290 (build-system trivial-build-system)
4291 (native-inputs
4292 `(("bash" ,bash)
4293 ("coreutils" ,coreutils)
4294 ("unzip" ,unzip)))
4295 (arguments
4296 `(#:modules ((guix build utils))
4297 #:builder
4298 (begin
4299 (use-modules (guix build utils))
4300 (let* ((out (assoc-ref %outputs "out"))
4301 (openrct2-objects (string-append out
4302 "/share/openrct2/objects"))
4303 (source (assoc-ref %build-inputs "source"))
4304 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4305 (copy-file source (string-append ,name "-" ,version ".zip"))
4306 (invoke unzip (string-append ,name "-" ,version ".zip"))
4307 (delete-file (string-append ,name "-" ,version ".zip"))
4308 (mkdir-p openrct2-objects)
4309 (copy-recursively "."
4310 openrct2-objects)
4311 #t))))
4312 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4313 (synopsis "Objects for OpenRCT2")
4314 (description
4315 "openrct2-objects is a set of objects for OpenRCT2.")
4316 (license license:gpl3+)))
4317
4318 (define-public openrct2
4319 (package
4320 (name "openrct2")
4321 (version "0.3.2")
4322 (source
4323 (origin
4324 (method git-fetch)
4325 (uri (git-reference
4326 (url "https://github.com/OpenRCT2/OpenRCT2")
4327 (commit (string-append "v" version))))
4328 (file-name (git-file-name name version))
4329 (sha256
4330 (base32 "1fd32wniiy6qz2046ppqfj2sb3rf2qf086rf9v1bdhyj254d0b1z"))))
4331 (build-system cmake-build-system)
4332 (arguments
4333 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4334 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4335 #:tests? #f ; tests require network access
4336 #:phases
4337 (modify-phases %standard-phases
4338 (add-after 'unpack 'fix-usr-share-paths&add-data
4339 (lambda* (#:key inputs outputs #:allow-other-keys)
4340 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4341 (objects (assoc-ref inputs "openrct2-objects")))
4342 ;; Fix some references to /usr/share.
4343 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4344 (("/usr/share")
4345 (string-append (assoc-ref %outputs "out") "/share")))
4346 (copy-recursively
4347 (string-append titles "/share/openrct2/title-sequences")
4348 "data/title")
4349 (copy-recursively
4350 (string-append objects "/share/openrct2/objects")
4351 "data/object"))))
4352 (add-before 'configure 'get-rid-of-errors
4353 (lambda _
4354 ;; Don't treat warnings as errors.
4355 (substitute* "CMakeLists.txt"
4356 (("-Werror") ""))
4357 #t)))))
4358 (inputs `(("curl" ,curl)
4359 ("duktape" ,duktape)
4360 ("fontconfig" ,fontconfig)
4361 ("freetype" ,freetype)
4362 ("icu4c" ,icu4c)
4363 ("jansson" ,jansson)
4364 ("libpng" ,libpng)
4365 ("libzip" ,libzip)
4366 ("mesa" ,mesa)
4367 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4368 ("openrct2-objects" ,openrct2-objects)
4369 ("openrct2-title-sequences" ,openrct2-title-sequences)
4370 ("openssl" ,openssl)
4371 ("sdl2" ,sdl2)
4372 ("speexdsp" ,speexdsp)
4373 ("zlib" ,zlib)))
4374 (native-inputs
4375 `(("pkg-config" ,pkg-config)))
4376 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4377 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4378 (description "OpenRCT2 is a free software re-implementation of
4379 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4380 maintaining an amusement park containing attractions, shops and facilities.
4381
4382 Note that this package does @emph{not} provide the game assets (sounds,
4383 images, etc.)")
4384 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4385 ;; regarding assets.
4386 (license license:gpl3+)))
4387
4388 (define-public pinball
4389 (package
4390 (name "pinball")
4391 (version "0.3.1")
4392 (source
4393 (origin (method url-fetch)
4394 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4395 "pinball-" version "/"
4396 "pinball-" version ".tar.gz"))
4397 (sha256
4398 (base32
4399 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4400 (patches (search-patches "pinball-const-fix.patch"
4401 "pinball-cstddef.patch"
4402 "pinball-missing-separators.patch"
4403 "pinball-src-deps.patch"
4404 "pinball-system-ltdl.patch"))))
4405 (build-system gnu-build-system)
4406 (inputs
4407 `(("glu" ,glu)
4408 ("mesa" ,mesa)
4409 ("sdl" ,sdl)
4410 ("sdl-image" ,sdl-image)
4411 ("sdl-mixer" ,sdl-mixer)))
4412 (arguments
4413 '(#:configure-flags
4414 (list (string-append "CPPFLAGS=-I"
4415 (assoc-ref %build-inputs "sdl-image")
4416 "/include/SDL -I"
4417 (assoc-ref %build-inputs "sdl-mixer")
4418 "/include/SDL"))))
4419 (home-page "http://pinball.sourceforge.net")
4420 (synopsis "Pinball simulator")
4421 (description "The Emilia Pinball Project is a pinball simulator. There
4422 are only two levels to play with, but they are very addictive.")
4423 (license license:gpl2)))
4424
4425 (define-public pioneers
4426 (package
4427 (name "pioneers")
4428 (version "15.6")
4429 (source (origin
4430 (method url-fetch)
4431 (uri (string-append "https://downloads.sourceforge.net/pio/"
4432 "pioneers-" version ".tar.gz"))
4433 (sha256
4434 (base32
4435 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4436 (build-system gnu-build-system)
4437 (inputs `(("avahi" ,avahi)
4438 ("gtk+" ,gtk+)
4439 ("librsvg" ,librsvg)))
4440 (native-inputs `(("intltool" ,intltool)
4441 ("itstool" ,itstool)
4442 ("libxml2" ,libxml2)
4443 ("pkg-config" ,pkg-config)))
4444 (synopsis "Board game inspired by The Settlers of Catan")
4445 (description "Pioneers is an emulation of the board game The Settlers of
4446 Catan. It can be played on a local network, on the internet, and with AI
4447 players.")
4448 (home-page "http://pio.sourceforge.net/")
4449 (license license:gpl2+)))
4450
4451 (define-public einstein
4452 (package
4453 (name "einstein")
4454 (version "2.0")
4455 (source (origin
4456 (method url-fetch)
4457 (uri (string-append "mirror://debian/pool/main/e/"
4458 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4459 (sha256
4460 (base32
4461 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4462 (patches (search-patches "einstein-build.patch"))))
4463 (build-system gnu-build-system)
4464 (inputs
4465 `(("freetype" ,freetype)
4466 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4467 ("zlib" ,zlib)))
4468 (native-inputs
4469 `(("font-dejavu" ,font-dejavu)))
4470 (arguments
4471 `(#:tests? #f ; no check target
4472 #:phases
4473 (modify-phases %standard-phases
4474 (replace 'configure
4475 (lambda* (#:key outputs inputs #:allow-other-keys)
4476 (let ((out (assoc-ref outputs "out"))
4477 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4478 "/share/fonts/truetype/DejaVuSans.ttf")))
4479 (substitute* "Makefile"
4480 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4481 ;; The patch above registers a free font for use by the binary,
4482 ;; but the font is copied during the compile phase into a
4483 ;; resources file, so we need to make the ttf file available.
4484 (symlink dejavu "res/DejaVuSans.ttf")
4485 #t))))))
4486 (synopsis "Logic puzzle game")
4487 (description "The goal of this logic game is to open all cards in a 6x6
4488 grid, using a number of hints as to their relative position. The game idea
4489 is attributed to Albert Einstein.")
4490 ;; The original home page has disappeared.
4491 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4492 "http://games.flowix.com/en/index.html"))
4493 ;; License according to
4494 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4495 ;; The source code is a DFSG-sanitized tarball and does not contain any
4496 ;; license information.
4497 (license license:gpl3+)))
4498
4499 (define-public powwow
4500 (package
4501 (name "powwow")
4502 (version "1.2.22")
4503 (source (origin
4504 (method url-fetch)
4505 (uri (string-append
4506 "https://www.hoopajoo.net/static/projects/powwow-"
4507 version ".tar.gz"))
4508 (sha256
4509 (base32
4510 "12i11b8zxg8vdb9d6ims8qy2lmwwr42rcqbwq3vsa1x94s51bcbp"))))
4511 (inputs
4512 `(("ncurses" ,ncurses)))
4513 (build-system gnu-build-system)
4514 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4515 (synopsis "MUD and telnet client")
4516 (description
4517 "POWWOW is a client software which can be used for telnet as well as for
4518 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4519 the chat server psyced with the specific config located at
4520 http://lavachat.symlynx.com/unix/")
4521 (license license:gpl2+)))
4522
4523 (define-public red-eclipse
4524 (let ((release "2.0.0")
4525 (revision 0))
4526 (package
4527 (name "red-eclipse")
4528 (version (if (zero? revision)
4529 release
4530 (string-append release "-"
4531 (number->string revision))))
4532 (source
4533 (origin
4534 (method git-fetch)
4535 (uri (git-reference
4536 (url "https://github.com/redeclipse/base")
4537 (commit (string-append "v" release))
4538 (recursive? #t))) ; for game data
4539 (file-name (git-file-name name version))
4540 (sha256
4541 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4542 (modules '((guix build utils)))
4543 (snippet
4544 ;; Remove proprietary libraries and other pre-compiled binaries.
4545 '(begin
4546 (delete-file-recursively "bin")
4547 #t))))
4548 (build-system gnu-build-system)
4549 (arguments
4550 `(#:tests? #f ; no check target
4551 #:make-flags (list "CC=gcc" "-Csrc"
4552 (string-append "INSTDIR="
4553 (assoc-ref %outputs "out") "/bin")
4554 (string-append "prefix="
4555 (assoc-ref %outputs "out")))
4556 #:phases
4557 (modify-phases %standard-phases
4558 (add-after 'unpack 'add-store-data-package-path-as-default
4559 (lambda* (#:key outputs #:allow-other-keys)
4560 (substitute* "src/engine/server.cpp"
4561 (("data = \"data\"")
4562 (string-append "data = \""
4563 (assoc-ref outputs "out")
4564 "/share/redeclipse/data\"")))
4565 #t))
4566 (delete 'configure) ; no configure script
4567 (add-after 'set-paths 'set-sdl-paths
4568 (lambda* (#:key inputs #:allow-other-keys)
4569 (setenv "CPATH"
4570 (string-append (assoc-ref inputs "sdl-union")
4571 "/include/SDL2:"
4572 (or (getenv "CPATH") "")))
4573 #t))
4574 (add-after 'install 'copy-data
4575 (lambda* (#:key outputs #:allow-other-keys)
4576 (let ((out (assoc-ref outputs "out")))
4577 (copy-recursively "config"
4578 (string-append out "/config"))
4579 (copy-file "doc/examples/servinit.cfg"
4580 (string-append out "/config/servinit.cfg"))
4581 (copy-recursively "data"
4582 (string-append out "/share/redeclipse/data"))
4583 (mkdir-p (string-append out "/lib/redeclipse"))
4584 (symlink (string-append out "/share/redeclipse/data")
4585 (string-append out "/lib/redeclipse/data")))
4586 #t))
4587 (add-after 'copy-data 'wrap-program
4588 (lambda* (#:key inputs outputs #:allow-other-keys)
4589 (let* ((out (assoc-ref outputs "out"))
4590 (bin (string-append out "/bin")))
4591 (with-directory-excursion bin
4592 (rename-file "redeclipse_linux"
4593 ".redeclipse_linux-real")
4594 (rename-file "redeclipse_server_linux"
4595 ".redeclipse_server_linux-real")
4596 (call-with-output-file "redeclipse_linux"
4597 (lambda (port)
4598 (format port "#!~a/bin/sh
4599 # Run the thing from its home, otherwise it just bails out.
4600 cd \"~a\"
4601 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4602 (assoc-ref inputs "bash") ;implicit input
4603 (string-append out)
4604 (string-append bin))))
4605 (call-with-output-file "redeclipse_server_linux"
4606 (lambda (port)
4607 (format port "#!~a/bin/sh
4608 # Run the thing from its home, otherwise it just bails out.
4609 cd \"~a\"
4610 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4611 (assoc-ref inputs "bash") ;implicit input
4612 (string-append out)
4613 (string-append bin))))
4614 (chmod "redeclipse_linux" #o555)
4615 (chmod "redeclipse_server_linux" #o555)))
4616 #t)))))
4617 (native-inputs
4618 `(("pkg-config" ,pkg-config)))
4619 (inputs
4620 `(("curl" ,curl)
4621 ("freetype" ,freetype)
4622 ("glu" ,glu)
4623 ("sdl-union" ,(sdl-union (list sdl2
4624 sdl2-image
4625 sdl2-mixer)))))
4626 (home-page "https://redeclipse.net/")
4627 (synopsis "Arena shooter derived from the Cube 2 engine")
4628 (description
4629 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4630 Offering an innovative parkour system and distinct but all potent weapons,
4631 Red Eclipse provides fast paced and accessible gameplay.")
4632 ;; The engine is under Zlib; data files are covered by the other
4633 ;; licenses. More details at file:///doc/all-licenses.txt.
4634 (license (list license:expat
4635 license:zlib
4636 license:cc-by-sa4.0
4637 license:cc-by-sa3.0
4638 license:cc-by3.0
4639 license:cc0
4640 license:public-domain
4641 license:silofl1.1)))))
4642
4643 (define-public grue-hunter
4644 (package
4645 (name "grue-hunter")
4646 (version "1.0")
4647 (source (origin
4648 (method url-fetch)
4649 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4650 (sha256
4651 (base32
4652 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4653 (build-system trivial-build-system) ; no Makefile.PL
4654 (arguments `(#:modules ((guix build utils))
4655 #:builder
4656 (begin
4657 (use-modules (guix build utils))
4658 (use-modules (srfi srfi-1))
4659
4660 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4661 (perl (string-append (assoc-ref %build-inputs
4662 "perl")
4663 "/bin"))
4664 (gzip (string-append (assoc-ref %build-inputs
4665 "gzip")
4666 "/bin/gzip"))
4667 (tar (string-append (assoc-ref %build-inputs
4668 "tar")
4669 "/bin/tar"))
4670 (out (assoc-ref %outputs "out"))
4671 (bin (string-append out "/bin"))
4672 (doc (string-append out
4673 "/share/doc/grue-hunter")))
4674 (copy-file tarball "grue-hunter.tar.gz")
4675 (invoke gzip "-d" "grue-hunter.tar.gz")
4676 (invoke tar "xvf" "grue-hunter.tar")
4677
4678 (mkdir-p bin)
4679 (copy-file "grue-hunter/gh.pl"
4680 (string-append bin "/grue-hunter"))
4681 (patch-shebang (string-append bin "/grue-hunter")
4682 (list perl))
4683
4684 (install-file "grue-hunter/AGPLv3.txt" doc)
4685
4686 #t))))
4687 (inputs `(("perl" ,perl)
4688 ("tar" ,tar)
4689 ("gzip" ,gzip)
4690 ("tarball" ,source)))
4691 (home-page "https://jxself.org/grue-hunter.shtml")
4692 (synopsis "Text adventure game")
4693 (description
4694 "Grue Hunter is a text adventure game written in Perl. You must make
4695 your way through an underground cave system in search of the Grue. Can you
4696 capture it and get out alive?")
4697 (license license:agpl3+)))
4698
4699 (define-public lierolibre
4700 (package
4701 (name "lierolibre")
4702 (version "0.5")
4703 (source (origin
4704 (method url-fetch)
4705 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4706 version "/+download/lierolibre-"
4707 version ".tar.xz"))
4708 (sha256
4709 (base32
4710 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4711 (patches
4712 (search-patches "lierolibre-check-unaligned-access.patch"
4713 "lierolibre-try-building-other-arch.patch"
4714 "lierolibre-remove-arch-warning.patch"
4715 "lierolibre-newer-libconfig.patch"
4716 "lierolibre-is-free-software.patch"))
4717 (modules '((guix build utils)))
4718 (snippet
4719 '(begin
4720 ;; Delete pre-compiled files.
4721 (delete-file "data/LIERO.CHR")
4722 (delete-file "data/LIERO.SND")
4723 #t))))
4724 (build-system gnu-build-system)
4725 (native-inputs
4726 `(("imagemagick" ,imagemagick)
4727 ("pkg-config" ,pkg-config)
4728 ("util-linux" ,util-linux)
4729 ("sox" ,sox)))
4730 (inputs
4731 `(("boost" ,boost)
4732 ("libconfig" ,libconfig)
4733 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4734 ("zlib" ,zlib)))
4735 (home-page "https://gitlab.com/lierolibre/lierolibre")
4736 (synopsis "Old-school earthworm action game")
4737 (description
4738 "lierolibre is an earthworm action game where you fight another player
4739 (or the computer) underground using a wide array of weapons.
4740
4741 Features:
4742 @itemize
4743 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4744 and Game of Tag, plus AI-players without true intelligence!
4745 @item Dat nostalgia.
4746 @item Extensions via a hidden F1 menu:
4747 @itemize
4748 @item Replays
4749 @item Game controller support
4750 @item Powerlevel palettes
4751 @end itemize
4752 @item Ability to write game variables to plain text files.
4753 @item Ability to load game variables from both EXE and plain text files.
4754 @item Scripts to extract and repack graphics, sounds and levels.
4755 @end itemize
4756
4757 To switch between different window sizes, use F6, F7 and F8, to switch to
4758 fullscreen, use F5 or Alt+Enter.")
4759 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4760 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4761
4762 (define-public tennix
4763 (package
4764 (name "tennix")
4765 (version "1.3.1")
4766 (source
4767 (origin
4768 (method git-fetch)
4769 (uri (git-reference
4770 (url "https://repo.or.cz/tennix.git")
4771 (commit (string-append "tennix-" version))))
4772 (file-name (git-file-name name version))
4773 (sha256
4774 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4775 ;; Remove non-free images.
4776 (modules '((guix build utils)))
4777 (snippet
4778 '(begin
4779 (for-each delete-file
4780 '("data/loc_training_camp.png"
4781 "data/loc_austrian_open.png"
4782 "data/loc_olympic_green_tennis.png"))
4783 #t))))
4784 (build-system gnu-build-system)
4785 (arguments
4786 `(#:tests? #f ;no test
4787 #:phases
4788 (modify-phases %standard-phases
4789 (add-after 'unpack 'fix-include
4790 (lambda _
4791 (substitute* '("src/graphics.h" "src/sound.h")
4792 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
4793 (string-append "#include \"SDL/" header "\"")))
4794 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
4795 (("#include <SDL.h>") "#include <SDL/SDL.h>")
4796 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
4797 #t))
4798 (add-after 'unpack 'locate-install
4799 ;; Build process cannot expand "$(INSTALL)" in Makefile.
4800 (lambda _
4801 (substitute* "makefile"
4802 (("^CONFIGURE_OUTPUT :=.*" all)
4803 (string-append "INSTALL := install -c\n" all)))
4804 #t))
4805 (replace 'configure
4806 ;; The "configure" script is picky about the arguments it
4807 ;; gets. Call it ourselves.
4808 (lambda _
4809 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
4810 (native-inputs
4811 `(("which" ,which)))
4812 (inputs
4813 `(("python" ,python-wrapper)
4814 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
4815 (home-page "http://icculus.org/tennix/")
4816 (synopsis "Play tennis against the computer or a friend")
4817 (description "Tennix is a 2D tennis game. You can play against the
4818 computer or against another player using the keyboard. The game runs
4819 in-window at 640x480 resolution or fullscreen.")
4820 ;; Project is licensed under GPL2+ terms. It includes images
4821 ;; released under Public Domain terms, and SDL_rotozoom, released
4822 ;; under LGPL2.1 terms.
4823 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
4824
4825 (define-public warzone2100
4826 (package
4827 (name "warzone2100")
4828 (version "3.4.1")
4829 (source
4830 (origin
4831 (method url-fetch)
4832 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
4833 version
4834 "/warzone2100_src.tar.xz"))
4835 (sha256
4836 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
4837 (modules '((guix build utils)))
4838 (snippet
4839 '(begin
4840 (with-directory-excursion "3rdparty"
4841 (for-each
4842 delete-file-recursively
4843 '("discord-rpc"
4844 "miniupnp"
4845 "utfcpp")))
4846 #t))))
4847 (build-system cmake-build-system)
4848 (arguments
4849 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
4850 "-DENABLE_DISCORD=off")
4851 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
4852 #:phases
4853 (modify-phases %standard-phases
4854 (add-after 'unpack 'fix-utfcpp-include
4855 (lambda _
4856 (substitute* "lib/framework/wzstring.cpp"
4857 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
4858 #t))
4859 (add-after 'unpack 'link-tests-with-qt
4860 (lambda _
4861 (substitute* "tests/Makefile.am"
4862 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
4863 (string-append prefix "$(QT5_LIBS) ")))
4864 #t))
4865 (add-after 'unpack 'fix-ivis-linktest
4866 (lambda _
4867 (substitute* "tests/ivis_linktest.cpp"
4868 (("iV_DrawTextRotated.*;")
4869 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
4870 "100, 100, 0.0f, font_regular);")))
4871 #t)))))
4872 (native-inputs `(("asciidoc" ,asciidoc)
4873 ("asciidoctor" ,ruby-asciidoctor)
4874 ("gettext" ,gettext-minimal)
4875 ("pkg-config" ,pkg-config)
4876 ("unzip" ,unzip)
4877 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
4878 ("p7zip" ,p7zip)))
4879 (inputs `(("curl" ,curl)
4880 ("fontconfig" ,fontconfig)
4881 ("freetype" ,freetype)
4882 ("glew" ,glew)
4883 ("harfbuzz" ,harfbuzz)
4884 ("libtheora" ,libtheora)
4885 ("libvorbis" ,libvorbis)
4886 ("libxrandr" ,libxrandr)
4887 ("libsodium" ,libsodium)
4888 ("miniupnpc" ,miniupnpc)
4889 ("openal" ,openal)
4890 ("physfs" ,physfs)
4891 ("qtbase" ,qtbase)
4892 ("qtscript" ,qtscript)
4893 ("openssl" ,openssl)
4894 ("sdl2" ,sdl2)
4895 ("utfcpp" ,utfcpp)))
4896 (home-page "https://wz2100.net")
4897 (synopsis "3D Real-time strategy and real-time tactics game")
4898 (description
4899 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
4900 modes. An extensive tech tree with over 400 different technologies, combined
4901 with the unit design system, allows for a wide variety of possible units and
4902 tactics.")
4903 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
4904 (license (list license:bsd-3
4905 license:cc0
4906 license:cc-by-sa3.0
4907 license:expat
4908 license:gpl2+
4909 license:lgpl2.1+))))
4910
4911 (define-public widelands
4912 (package
4913 (name "widelands")
4914 (version "21")
4915 (source
4916 (origin
4917 (method url-fetch)
4918 (uri (string-append "https://launchpad.net/widelands/"
4919 "build" version "/build" version "/+download/"
4920 "widelands-build" version "-source.tar.gz"))
4921 (sha256
4922 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
4923 (modules '((guix build utils)))
4924 (snippet
4925 '(begin
4926 (delete-file-recursively "src/third_party/minizip")
4927 #t))
4928 (patches
4929 ;; Use system Minizip. Patch is provided by Debian, and discussed
4930 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
4931 (search-patches "widelands-system-wide_minizip.patch"))))
4932 (build-system cmake-build-system)
4933 (arguments
4934 `(#:configure-flags
4935 (let* ((out (assoc-ref %outputs "out"))
4936 (share (string-append out "/share")))
4937 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
4938 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
4939 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
4940 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
4941 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
4942 ;; type. When used, no game data is installed!
4943 "-DCMAKE_BUILD_TYPE=Release"))
4944 #:phases
4945 (modify-phases %standard-phases
4946 (add-after 'unpack 'unbundle-fonts
4947 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
4948 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
4949 (lambda* (#:key inputs #:allow-other-keys)
4950 (with-directory-excursion "data/i18n/fonts"
4951 (for-each (lambda (font)
4952 (delete-file-recursively font)
4953 (symlink (string-append (assoc-ref inputs font)
4954 "/share/fonts/truetype")
4955 font))
4956 '("DejaVu" "MicroHei")))
4957 #t)))))
4958 (native-inputs
4959 `(("gettext" ,gettext-minimal)
4960 ("python" ,python-wrapper)))
4961 (inputs
4962 `(("boost" ,boost)
4963 ("glew" ,glew)
4964 ("icu4c" ,icu4c)
4965 ("libpng" ,libpng)
4966 ("minizip" ,minizip)
4967 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
4968 ("zlib" ,zlib)
4969 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
4970 ("DejaVu" ,font-dejavu)
4971 ("MicroHei" ,font-wqy-microhei)))
4972 (home-page "https://www.widelands.org/")
4973 (synopsis "Fantasy real-time strategy game")
4974 (description
4975 "In Widelands, you are the regent of a small clan. You start out with
4976 nothing but your headquarters, where all your resources are stored.
4977
4978 In the course of the game, you will build an ever growing settlement. Every
4979 member of your clan will do his or her part to produce more resources---wood,
4980 food, iron, gold and more---to further this growth. The economic network is
4981 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
4982 Frisians).
4983
4984 As you are not alone in the world, you will meet other clans sooner or later.
4985 Some of them may be friendly and you may eventually trade with them. However,
4986 if you want to rule the world, you will have to train soldiers and fight.
4987
4988 Widelands offers single-player mode with different campaigns; the campaigns
4989 all tell stories of tribes and their struggle in the Widelands universe!
4990 However, settling really starts when you unite with friends over the Internet
4991 or LAN to build up new empires together---or to crush each other in the dusts
4992 of war. Widelands also offers an Artificial Intelligence to challenge you.")
4993 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
4994 ;; different licenses.
4995 (license (list license:gpl2+
4996 license:expat ;src/third_party/eris
4997 license:silofl1.1 ;Widelands.ttf
4998 license:cc-by-sa3.0)))) ;some music files
4999
5000 (define-public starfighter
5001 (package
5002 (name "starfighter")
5003 (version "2.4")
5004 (source (origin
5005 (method url-fetch)
5006 (uri (string-append
5007 "https://github.com/pr-starfighter/starfighter/releases"
5008 "/download/v" version "/starfighter-"
5009 version "-src.tar.gz"))
5010 (sha256
5011 (base32
5012 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5013 (build-system gnu-build-system)
5014 (native-inputs
5015 `(("pkg-config" ,pkg-config)))
5016 (inputs
5017 `(("pango" ,pango)
5018 ("sdl2" ,sdl2)
5019 ("sdl2-image" ,sdl2-image)
5020 ("sdl2-mixer" ,sdl2-mixer)
5021 ("sdl2-ttf" ,sdl2-ttf)))
5022 (home-page "https://pr-starfighter.github.io/")
5023 (synopsis "2D scrolling shooter game")
5024 (description
5025 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5026 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5027 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5028 way, you will encounter new foes, make new allies, and assist local rebels
5029 in strikes against the evil corporation.")
5030 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5031 (license (list license:gpl3+
5032 license:cc-by3.0
5033 license:cc-by-sa3.0
5034 license:cc0
5035 license:public-domain))))
5036
5037 (define-public chromium-bsu
5038 (package
5039 (name "chromium-bsu")
5040 (version "0.9.16.1")
5041 (source (origin
5042 (method url-fetch)
5043 (uri (string-append "mirror://sourceforge/chromium-bsu"
5044 "/Chromium B.S.U. source code/"
5045 "chromium-bsu-" version ".tar.gz"))
5046 (sha256
5047 (base32
5048 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5049 (build-system gnu-build-system)
5050 (native-inputs `(("pkg-config" ,pkg-config)))
5051 (inputs `(("gettext" ,gettext-minimal)
5052 ("glu" ,glu)
5053 ("quesoglc" ,quesoglc)
5054 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5055 (home-page "http://chromium-bsu.sourceforge.net/")
5056 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5057 (description
5058 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5059 are responsible for delivering supplies to the troops on the front line. Your
5060 ship has a small fleet of robotic fighters which you control from the relative
5061 safety of the Chromium vessel.")
5062 ;; Clarified Artistic License for everything but sound, which is covered
5063 ;; by the Expat License.
5064 (license (list license:clarified-artistic license:expat))))
5065
5066 (define-public tuxpaint
5067 (package
5068 (name "tuxpaint")
5069 (version "0.9.23") ;keep VER_DATE below in sync
5070 (source
5071 (origin
5072 (method url-fetch)
5073 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5074 version "/tuxpaint-" version ".tar.gz"))
5075 (sha256
5076 (base32
5077 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5078 (modules '((guix build utils)))
5079 (snippet
5080 '(begin
5081 ;; Remove win32 directory which contains binary dll's and the
5082 ;; deprecated visualc directory.
5083 (for-each delete-file-recursively '("win32" "visualc"))
5084 (substitute* "Makefile"
5085 ;; Do not rely on $(GPERF) being an absolute file name
5086 (("\\[ -x \\$\\(GPERF\\) \\]")
5087 "$(GPERF) --version >/dev/null 2>&1"))
5088 #t))
5089 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5090 (build-system gnu-build-system)
5091 (native-inputs
5092 `(("gperf" ,gperf)
5093 ("pkg-config" ,pkg-config)))
5094 (inputs
5095 `(("cairo" ,cairo)
5096 ("fribidi" ,fribidi)
5097 ("gettext" ,gettext-minimal)
5098 ("libpng" ,libpng)
5099 ("librsvg" ,librsvg)
5100 ("libpaper" ,libpaper)
5101 ("netpbm" ,netpbm)
5102 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5103 ;; TODO: Use system fonts rather than those in data/fonts
5104 (arguments
5105 `(#:make-flags `("VER_DATE=2018-09-02"
5106 "GPERF=gperf" "CC=gcc"
5107 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5108 ,(string-append "PREFIX=" %output)
5109 "KDE_PREFIX=$(PREFIX)/share/applications"
5110 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5111 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5112 #:parallel-build? #f ;fails on some systems
5113 #:tests? #f ;No tests
5114 #:phases (modify-phases %standard-phases
5115 (delete 'configure) ;no configure phase
5116 (add-before 'install 'no-sys-cache
5117 (lambda _ ;do not rebuild system conf cache
5118 (substitute* "Makefile"
5119 (("kbuildsycoca4") ""))
5120 #t))
5121 (add-after 'install 'fix-import
5122 (lambda* (#:key inputs outputs #:allow-other-keys)
5123 (let* ((out (assoc-ref outputs "out"))
5124 (net (assoc-ref inputs "netpbm"))
5125 (tpi (string-append out "/bin/tuxpaint-import")))
5126 (substitute* tpi
5127 ;; Point to installation prefix so that the default
5128 ;; configure file is found.
5129 (("/usr/local") out))
5130 ;; tuxpaint-import uses a bunch of programs from
5131 ;; netpbm, so make sure it knows where those are
5132 (wrap-program tpi
5133 `("PATH" ":" prefix
5134 (,(string-append net "/bin"))))))))))
5135 (native-search-paths
5136 (list (search-path-specification
5137 (variable "TUXPAINT_STAMPS_PATH")
5138 (files '("share/tuxpaint/stamps")))))
5139 (home-page "http://www.tuxpaint.org")
5140 (synopsis "Drawing software for children")
5141 (description
5142 "Tux Paint is a free drawing program designed for young children (kids
5143 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5144 and an encouraging cartoon mascot who helps guide children as they use the
5145 program. It provides a blank canvas and a variety of drawing tools to help
5146 your child be creative.")
5147 (license license:gpl2+)))
5148
5149 (define-public tuxpaint-stamps
5150 (package
5151 (name "tuxpaint-stamps")
5152 (version "2018.09.01")
5153 (source
5154 (origin
5155 (method url-fetch)
5156 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5157 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5158 "/tuxpaint-stamps-" version ".tar.gz"))
5159 (sha256
5160 (base32
5161 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5162 (build-system trivial-build-system)
5163 (native-inputs
5164 `(("tar" ,tar)
5165 ("gzip" ,gzip)))
5166 (arguments
5167 `(#:modules ((guix build utils))
5168 #:builder (begin
5169 (use-modules (guix build utils))
5170 (setenv "PATH"
5171 (string-append
5172 (assoc-ref %build-inputs "tar") "/bin" ":"
5173 (assoc-ref %build-inputs "gzip") "/bin"))
5174 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5175 (chdir (string-append ,name "-" ,version))
5176 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5177 (mkdir-p dir)
5178 (copy-recursively "stamps" dir))
5179 #t)))
5180 (home-page (package-home-page tuxpaint))
5181 (synopsis "Stamp images for Tux Paint")
5182 (description
5183 "This package contains a set of \"Rubber Stamp\" images which can be used
5184 with the \"Stamp\" tool within Tux Paint.")
5185 (license license:gpl2+)))
5186
5187 (define-public tuxpaint-config
5188 (package
5189 (name "tuxpaint-config")
5190 (version "0.0.14") ;keep VER_DATE below in sync
5191 (source
5192 (origin
5193 (method url-fetch)
5194 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5195 version "/tuxpaint-config-" version ".tar.gz"))
5196 (sha256
5197 (base32
5198 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5199 (build-system gnu-build-system)
5200 (native-inputs
5201 `(("gettext" ,gettext-minimal)))
5202 (inputs
5203 `(("fltk" ,fltk)
5204 ("libpaper" ,libpaper)
5205 ;; TODO: Should the following be propagated by fltk?
5206 ("libx11" ,libx11)
5207 ("libxft" ,libxft)
5208 ("mesa" ,mesa)))
5209 (arguments
5210 `(#:make-flags `("VER_DATE=2018-09-01"
5211 "CONFDIR=/etc/tuxpaint" ;don't write to store
5212 ,(string-append "PREFIX=" %output)
5213 "GNOME_PREFIX=$(PREFIX)")
5214 #:parallel-build? #f ;race conditions
5215 #:tests? #f ;no tests
5216 #:phases (modify-phases %standard-phases
5217 (delete 'configure) ;no configure phase
5218 (add-before 'install 'gzip-no-name
5219 (lambda* _
5220 (substitute* "Makefile"
5221 ;; tuxpaint-config compresses its own documentation;
5222 ;; make sure it uses flags for reproducibility.
5223 (("gzip") "gzip --no-name"))))
5224 (add-before 'install 'make-install-dirs
5225 (lambda* (#:key outputs #:allow-other-keys)
5226 (let ((out (assoc-ref outputs "out")))
5227 (mkdir-p (string-append out "/bin"))
5228 #t))))))
5229 (home-page (package-home-page tuxpaint))
5230 (synopsis "Configure Tux Paint")
5231 (description
5232 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5233 (license license:gpl2))) ;no "or later" present
5234
5235 (define-public supertux
5236 (package
5237 (name "supertux")
5238 (version "0.6.2")
5239 (source (origin
5240 (method url-fetch)
5241 (uri (string-append "https://github.com/SuperTux/supertux/"
5242 "releases/download/v" version "/SuperTux-v"
5243 version "-Source.tar.gz"))
5244 (file-name (string-append name "-" version ".tar.gz"))
5245 (sha256
5246 (base32
5247 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5248 (patches
5249 (search-patches "supertux-unbundle-squirrel.patch"))))
5250 (arguments
5251 '(#:tests? #f
5252 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5253 "-DUSE_SYSTEM_PHYSFS=ON")
5254 #:phases
5255 (modify-phases %standard-phases
5256 (add-after 'unpack 'patch-squirrel-path
5257 (lambda* (#:key inputs #:allow-other-keys)
5258 (let ((squirrel (assoc-ref inputs "squirrel")))
5259 (substitute* "CMakeLists.txt"
5260 (("set\\(SQUIRREL_PREFIX.*")
5261 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5262 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5263 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5264 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5265 #t)))))
5266 (build-system cmake-build-system)
5267 (inputs `(("sdl2" ,sdl2)
5268 ("sdl2-image" ,sdl2-image)
5269 ("sdl2-mixer" ,sdl2-mixer)
5270 ("openal" ,openal)
5271 ("mesa" ,mesa)
5272 ("glew" ,glew)
5273 ("libvorbis" ,libvorbis)
5274 ("libogg" ,libogg)
5275 ("physfs" ,physfs)
5276 ("curl" ,curl)
5277 ("boost" ,boost)
5278 ("freetype" ,freetype)
5279 ("squirrel" ,squirrel)))
5280 (native-inputs
5281 `(("pkg-config" ,pkg-config)))
5282 (synopsis "2D platformer game")
5283 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5284 a style similar to the original Super Mario games.")
5285 (home-page "https://supertux.org/")
5286 (license license:gpl3+)))
5287
5288 (define-public tintin++
5289 (package
5290 (name "tintin++")
5291 (version "2.02.05")
5292 (source
5293 (origin
5294 (method url-fetch)
5295 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5296 (string-drop-right version 1)
5297 "/tintin-" version ".tar.gz"))
5298 (sha256
5299 (base32 "18fm9ga08mxqmblahmnlzwnl387i8mbkj4n0gffxc91d299019v3"))))
5300 (inputs
5301 `(("gnutls" ,gnutls)
5302 ("pcre" ,pcre)
5303 ("readline" ,readline)
5304 ("zlib" ,zlib)))
5305 (arguments
5306 '(#:tests? #f ; no test suite
5307 #:phases
5308 (modify-phases %standard-phases
5309 ;; The source is in tt/src.
5310 (add-before 'configure 'chdir
5311 (lambda _
5312 (chdir "src")
5313 #t)))))
5314 (build-system gnu-build-system)
5315 (home-page "https://tintin.mudhalla.net/")
5316 (synopsis "MUD client")
5317 (description
5318 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5319 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5320 options used by MUDs, as well as those required to login via telnet on
5321 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5322 (license license:gpl3+)))
5323
5324 (define-public laby
5325 (package
5326 (name "laby")
5327 (version "0.7.0")
5328 (source
5329 (origin (method git-fetch)
5330 (uri (git-reference
5331 (url "https://github.com/sgimenez/laby")
5332 (commit (string-append name "-" version))))
5333 (file-name (git-file-name name version))
5334 (sha256
5335 (base32
5336 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5337 (patches (search-patches "laby-make-install.patch"))))
5338 (build-system gnu-build-system)
5339 (inputs
5340 `(("lablgtk" ,lablgtk)
5341 ("ocaml" ,ocaml)
5342 ("ocaml-findlib" ,ocaml-findlib)
5343 ("ocamlbuild" ,ocamlbuild)))
5344 (arguments
5345 '(#:phases
5346 (modify-phases %standard-phases
5347 (delete 'configure)
5348 (add-before 'build 'allow-unsafe-strings
5349 ;; Fix a build failure with ocaml >=4.06.0.
5350 ;; See <https://github.com/sgimenez/laby/issues/53>.
5351 (lambda _
5352 (setenv "OCAMLPARAM" "safe-string=0,_")
5353 #t))
5354 (add-before 'build 'set-library-path
5355 (lambda* (#:key inputs #:allow-other-keys)
5356 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5357 (setenv "LD_LIBRARY_PATH"
5358 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5359 #:tests? #f ; no 'check' target
5360 #:make-flags
5361 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5362 (home-page "https://sgimenez.github.io/laby/")
5363 (synopsis "Programming game")
5364 (description "Learn programming, playing with ants and spider webs ;-)
5365 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5366 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5367 programmers may also add their own favorite language.")
5368 (license license:gpl3+)))
5369
5370 (define-public bambam
5371 (package
5372 (name "bambam")
5373 (version "1.0.0")
5374 (source
5375 (origin
5376 (method git-fetch)
5377 (uri (git-reference
5378 (url "https://github.com/porridge/bambam")
5379 (commit (string-append "v" version))))
5380 (file-name (git-file-name name version))
5381 (sha256
5382 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5383 (build-system python-build-system)
5384 (arguments
5385 `(#:tests? #f ; no tests
5386 #:phases
5387 (modify-phases %standard-phases
5388 (delete 'build) ; nothing to build
5389 (replace 'install
5390 (lambda* (#:key outputs #:allow-other-keys)
5391 (let* ((out (assoc-ref outputs "out"))
5392 (bin (string-append out "/bin"))
5393 (share (string-append out "/share")))
5394 (mkdir-p bin)
5395 (copy-file "bambam.py" (string-append bin "/bambam"))
5396 (install-file "bambam.6" (string-append share "/man/man6"))
5397 (copy-recursively "data" (string-append share "/bambam/data")))
5398 #t)))))
5399 (inputs
5400 `(("python-pygame" ,python-pygame)))
5401 (home-page "https://github.com/porridge/bambam")
5402 (synopsis "Keyboard mashing and doodling game for babies")
5403 (description "Bambam is a simple baby keyboard (and gamepad) masher
5404 application that locks the keyboard and mouse and instead displays bright
5405 colors, pictures, and sounds.")
5406 (license license:gpl3+)))
5407
5408 (define-public mrrescue
5409 (package
5410 (name "mrrescue")
5411 (version "1.02e")
5412 (source (origin
5413 (method url-fetch)
5414 (uri (string-append
5415 "https://github.com/SimonLarsen/mrrescue/releases/"
5416 "download/" version "/mrrescue" version ".love"))
5417 (file-name (string-append name "-" version ".love"))
5418 (sha256
5419 (base32
5420 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5421 (build-system trivial-build-system)
5422 (arguments
5423 `(#:modules ((guix build utils))
5424 #:builder
5425 (begin
5426 (use-modules (guix build utils))
5427 (let* ((out (assoc-ref %outputs "out"))
5428 (script (string-append out "/bin/" ,name))
5429 (data (string-append out "/share/" ,name))
5430 (source (assoc-ref %build-inputs "source"))
5431 (unzip (string-append (assoc-ref %build-inputs "unzip")
5432 "/bin/unzip"))
5433 (patch (string-append (assoc-ref %build-inputs "patch")
5434 "/bin/patch"))
5435 (bash (string-append (assoc-ref %build-inputs "bash")
5436 "/bin/bash"))
5437 (love (string-append (assoc-ref %build-inputs "love")
5438 "/bin/love")))
5439
5440 (mkdir-p (dirname script))
5441 (with-output-to-file script
5442 (lambda ()
5443 (format #t "#!~a~%" bash)
5444 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5445 (chmod script #o755)
5446
5447 ;; The better way to package this game would be to install *only* the
5448 ;; script above, pointing to the unextracted .love file in the store.
5449 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5450 ;; Instead of extracting the .love file, patching it, and re-zipping
5451 ;; it to the store, simply point the script to the extracted patched
5452 ;; data directory directly.
5453 (mkdir-p data)
5454 (with-directory-excursion data
5455 (invoke unzip source)
5456 (invoke patch "-p1" "-i"
5457 (assoc-ref %build-inputs "love-11.patch")))
5458 #t))))
5459 (native-inputs
5460 `(("unzip" ,unzip)
5461 ("patch" ,patch)
5462 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5463 (inputs
5464 `(("bash" ,bash)
5465 ("love" ,love)))
5466 (home-page "https://tangramgames.dk/games/mrrescue")
5467 (synopsis "Arcade-style fire fighting game")
5468 (description
5469 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5470 civilians from burning buildings. The game features fast-paced fire
5471 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5472 throwing people around in pseudo-randomly generated buildings.")
5473 (license (list license:zlib ; for source code
5474 license:cc-by-sa3.0)))) ; for graphics and music assets
5475
5476 (define-public hyperrogue
5477 (package
5478 (name "hyperrogue")
5479 (version "11.3a")
5480 ;; When updating this package, be sure to update the "hyperrogue-data"
5481 ;; origin in native-inputs.
5482 (source (origin
5483 (method url-fetch)
5484 (uri (string-append
5485 "https://www.roguetemple.com/z/hyper/hyperrogue"
5486 (string-join (string-split version #\.) "")
5487 "-src.tgz"))
5488 (sha256
5489 (base32
5490 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5491 (build-system gnu-build-system)
5492 (arguments
5493 `(#:tests? #f ; no check target
5494 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5495 "HYPERROGUE_USE_PNG=1")
5496 #:phases
5497 (modify-phases %standard-phases
5498 (add-after 'set-paths 'set-sdl-paths
5499 (lambda* (#:key inputs #:allow-other-keys)
5500 (setenv "CPATH"
5501 (string-append (or (getenv "CPATH") "") ":"
5502 (assoc-ref inputs "sdl-union")
5503 "/include/SDL"))))
5504 (replace 'configure
5505 (lambda* (#:key inputs outputs #:allow-other-keys)
5506 (let* ((out (assoc-ref outputs "out"))
5507 (share-dir (string-append out "/share/hyperrogue"))
5508 (dejavu-dir (string-append
5509 (assoc-ref inputs "font-dejavu")
5510 "/share/fonts/truetype"))
5511 (dejavu-font "DejaVuSans-Bold.ttf")
5512 (music-file "hyperrogue-music.txt"))
5513 ;; Fix font and music paths.
5514 (substitute* "basegraph.cpp"
5515 ((dejavu-font)
5516 (string-append dejavu-dir "/" dejavu-font)))
5517 (substitute* music-file
5518 (("\\*/")
5519 (string-append share-dir "/sounds/")))
5520 (substitute* "sound.cpp"
5521 (("musicfile = \"\"")
5522 (string-append "musicfile = \""
5523 share-dir "/" music-file "\"")))
5524 ;; Disable build machine CPU optimizations and warnings treated
5525 ;; as errors.
5526 (substitute* "Makefile"
5527 (("-march=native") "")
5528 (("-Werror") "")))
5529 #t))
5530 (replace 'install
5531 (lambda* (#:key inputs outputs #:allow-other-keys)
5532 (let* ((out (assoc-ref outputs "out"))
5533 (bin (string-append out "/bin"))
5534 (share-dir (string-append out "/share/hyperrogue")))
5535 (mkdir-p bin)
5536 (install-file "hyperrogue" bin)
5537 (install-file "hyperrogue-music.txt" share-dir))
5538 #t))
5539 (add-after 'install 'install-data
5540 (lambda* (#:key inputs outputs #:allow-other-keys)
5541 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5542 (out (assoc-ref outputs "out"))
5543 (sounds (string-append out "/share/hyperrogue/sounds"))
5544 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5545 ;; Extract media license information into sounds directory.
5546 (invoke unzip "-j" data
5547 (string-append
5548 "hyperrogue"
5549 (string-join (string-split ,version #\.) "")
5550 "/sounds/credits.txt") "-d" sounds)
5551 ;; Extract sounds and music into sounds directory.
5552 (invoke "unzip" "-j" data
5553 (string-append
5554 "hyperrogue"
5555 (string-join (string-split ,version #\.) "")
5556 "/*.ogg") "-d" sounds)))))))
5557 (native-inputs
5558 `(("hyperrogue-data"
5559 ,(origin
5560 (method url-fetch)
5561 (uri
5562 (string-append
5563 "https://www.roguetemple.com/z/hyper/hyperrogue"
5564 (string-join (string-split version #\.) "")
5565 "-win.zip"))
5566 (sha256
5567 (base32
5568 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5569 ("unzip" ,unzip)))
5570 (inputs
5571 `(("font-dejavu" ,font-dejavu)
5572 ("glew" ,glew)
5573 ("libpng" ,libpng)
5574 ("sdl-union" ,(sdl-union (list sdl
5575 sdl-gfx
5576 sdl-mixer
5577 sdl-ttf)))))
5578 (home-page "https://www.roguetemple.com/z/hyper/")
5579 (synopsis "Non-euclidean graphical rogue-like game")
5580 (description
5581 "HyperRogue is a game in which the player collects treasures and fights
5582 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5583 plane and not in euclidean space.
5584
5585 In HyperRogue, the player can move through different parts of the world, which
5586 are home to particular creatures and may be subject to their own rules of
5587 \"physics\".
5588
5589 While the game can use ASCII characters to display the the classical rogue
5590 symbols, it still needs graphics to render the non-euclidean world.")
5591 (license (list license:bsd-3 ; glew.c, mtrand.*
5592 license:cc-by-sa3.0 ; music
5593 license:cc-by-sa4.0 ; sounds
5594 license:cc0
5595 license:public-domain ; direntx.*, some sounds
5596 license:zlib ; savepng.*
5597 license:gpl2+)))) ; remaining files
5598
5599 (define-public kobodeluxe
5600 (package
5601 (name "kobodeluxe")
5602 (version "0.5.1")
5603 (source (origin
5604 (method url-fetch)
5605 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5606 version ".tar.bz2"))
5607 (sha256
5608 (base32
5609 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5610 (patches (search-patches
5611 "kobodeluxe-const-charp-conversion.patch"
5612 "kobodeluxe-enemies-pipe-decl.patch"
5613 "kobodeluxe-graphics-window-signed-char.patch"
5614 "kobodeluxe-manpage-minus-not-hyphen.patch"
5615 "kobodeluxe-midicon-segmentation-fault.patch"
5616 "kobodeluxe-paths.patch"))))
5617 (build-system gnu-build-system)
5618 (arguments
5619 '(#:configure-flags
5620 (list (string-append "CPPFLAGS=-I"
5621 (assoc-ref %build-inputs "sdl-union")
5622 "/include/SDL"))))
5623 (inputs
5624 `(("glu" ,glu)
5625 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5626 (synopsis "Shooter with space station destruction")
5627 (description
5628 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5629 for Un*x systems with X11.")
5630 (home-page "http://olofson.net/kobodl/")
5631 (license license:gpl2+)))
5632
5633 (define-public freeciv
5634 (package
5635 (name "freeciv")
5636 (version "2.6.3")
5637 (source
5638 (origin
5639 (method url-fetch)
5640 (uri (list (string-append
5641 "http://files.freeciv.org/stable/freeciv-"
5642 version ".tar.bz2")
5643 (string-append
5644 "mirror://sourceforge/freeciv/Freeciv%20"
5645 (version-major+minor version) "/" version
5646 "/freeciv-" version ".tar.bz2")))
5647 (sha256
5648 (base32 "1lgq7wcbhwpy2yqdw4biwfmp5q8fh7lhlwxcgm0fpaapfl12whvp"))))
5649 (build-system gnu-build-system)
5650 (inputs
5651 `(("curl" ,curl)
5652 ("cyrus-sasl" ,cyrus-sasl)
5653 ("gtk+" ,gtk+)
5654 ("sdl-mixer" ,sdl-mixer)
5655 ("zlib" ,zlib)))
5656 (native-inputs
5657 `(("pkg-config" ,pkg-config)))
5658 (home-page "http://www.freeciv.org/")
5659 (synopsis "Turn-based empire building strategy game")
5660 (description "Freeciv is a turn-based empire building strategy game
5661 inspired by the history of human civilization. The game commences in
5662 prehistory and your mission is to lead your tribe from the Stone Age
5663 into the Space Age.")
5664 (license license:gpl2+)))
5665
5666 (define-public no-more-secrets
5667 (package
5668 (name "no-more-secrets")
5669 (version "0.3.3")
5670 (source
5671 (origin
5672 (method git-fetch)
5673 (uri (git-reference
5674 (url "https://github.com/bartobri/no-more-secrets")
5675 (commit (string-append "v" version))))
5676 (file-name (git-file-name name version))
5677 (sha256
5678 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5679 (build-system gnu-build-system)
5680 (arguments
5681 `(#:tests? #f
5682 #:make-flags (list "CC=gcc" "all-ncurses"
5683 (string-append "prefix="
5684 (assoc-ref %outputs "out")))
5685 #:phases
5686 (modify-phases %standard-phases
5687 (delete 'configure))))
5688 (inputs
5689 `(("ncurses" ,ncurses)))
5690 (home-page "https://github.com/bartobri/no-more-secrets")
5691 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5692 (description
5693 "@code{No More Secrets} provides a command line tool called \"nms\"
5694 that recreates the famous data decryption effect seen on screen in the 1992
5695 movie \"Sneakers\".
5696
5697 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5698 it will apply the hollywood effect, initially showing encrypted data, then
5699 starting a decryption sequence to reveal the original plaintext characters.")
5700 (license license:expat)))
5701
5702 (define-public megaglest-data
5703 (package
5704 (name "megaglest-data")
5705 (version "3.13.0")
5706 (source
5707 (origin
5708 (method url-fetch)
5709 (uri (string-append
5710 "https://github.com/MegaGlest/megaglest-data"
5711 "/releases/download/" version "/megaglest-data-"
5712 version ".tar.xz"))
5713 (sha256
5714 (base32
5715 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5716 (build-system cmake-build-system)
5717 (arguments
5718 `(#:tests? #f))
5719 (home-page "https://megaglest.org/")
5720 (synopsis "Data files for MegaGlest")
5721 (description "This package contains the data files required for MegaGlest.")
5722 (license license:cc-by-sa3.0)))
5723
5724 (define-public megaglest
5725 (package
5726 (name "megaglest")
5727 (version "3.13.0")
5728 (source
5729 (origin
5730 (method url-fetch)
5731 (uri (string-append
5732 "https://github.com/MegaGlest/megaglest-source"
5733 "/releases/download/" version "/megaglest-source-"
5734 version ".tar.xz"))
5735 (sha256
5736 (base32
5737 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5738 (build-system cmake-build-system)
5739 (inputs
5740 `(("curl" ,curl)
5741 ("fontconfig" ,fontconfig)
5742 ("ftgl" ,ftgl)
5743 ("glew" ,glew)
5744 ("libjpeg-turbo" ,libjpeg-turbo)
5745 ("megaglest-data" ,megaglest-data)
5746 ("mesa" ,mesa)
5747 ("miniupnpc" ,miniupnpc)
5748 ("openal" ,openal)
5749 ("libircclient" ,libircclient)
5750 ("libpng" ,libpng)
5751 ("libvorbis" ,libvorbis)
5752 ("lua" ,lua)
5753 ("sdl2" ,sdl2)
5754 ("wxwidgets" ,wxwidgets)))
5755 (native-inputs
5756 `(("cppunit" ,cppunit)
5757 ("pkg-config" ,pkg-config)))
5758 (arguments
5759 `(#:configure-flags
5760 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5761 (assoc-ref %build-inputs "megaglest-data")
5762 "/share/megaglest")
5763 "-DBUILD_MEGAGLEST_TESTS=ON")
5764 #:phases
5765 (modify-phases %standard-phases
5766 (add-after 'unpack 'fix-ini-search-path
5767 (lambda* (#:key outputs #:allow-other-keys)
5768 (substitute* "source/glest_game/global/config.cpp"
5769 (("/usr/share/megaglest/")
5770 (string-append (assoc-ref outputs "out")
5771 "/share/megaglest/"))))))
5772 #:test-target "megaglest_tests"))
5773 (home-page "https://megaglest.org/")
5774 (synopsis "3D real-time strategy (RTS) game")
5775 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5776 game, where you control the armies of one of seven different factions: Tech,
5777 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5778 (license license:gpl2+)))
5779
5780 (define-public freegish
5781 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5782 (revision "1"))
5783 (package
5784 (name "freegish")
5785 (version (string-append "0-" revision "." (string-take commit 9)))
5786 (source (origin
5787 (method git-fetch)
5788 (uri (git-reference
5789 (url "https://github.com/freegish/freegish")
5790 (commit commit)))
5791 (file-name (git-file-name name version))
5792 (sha256
5793 (base32
5794 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
5795 (modules '((guix build utils)))
5796 ;; The audio files in the "music" directory are licensed under
5797 ;; CC-BY-NC, so we delete them.
5798 (snippet
5799 '(begin
5800 (delete-file-recursively "music")
5801 #t))))
5802 (build-system cmake-build-system)
5803 (arguments
5804 `(#:tests? #f ; no tests included
5805 #:configure-flags
5806 (list "-DCMAKE_INSTALL_FHS=ON")
5807 #:phases
5808 (modify-phases %standard-phases
5809 (add-after 'unpack 'set-DATAPATH
5810 (lambda* (#:key outputs #:allow-other-keys)
5811 (substitute* "CMakeLists.txt"
5812 (("^option\\(INSTALL_FHS" line)
5813 (string-append "add_definitions(-DDATAPATH=\""
5814 (assoc-ref outputs "out") "/share/freegish\")\n"
5815 line)))
5816 #t)))))
5817 (inputs
5818 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
5819 ("openal" ,openal)
5820 ("libvorbis" ,libvorbis)
5821 ("libogg" ,libogg)
5822 ("mesa" ,mesa)
5823 ("libpng" ,libpng)
5824 ("zlib" ,zlib)))
5825 (home-page "https://github.com/freegish/freegish")
5826 (synopsis "Side-scrolling physics platformer with a ball of tar")
5827 (description "In FreeGish you control Gish, a ball of tar who lives
5828 happily with his girlfriend Brea, until one day a mysterious dark creature
5829 emerges from a sewer hole and pulls her below ground.")
5830 ;; The textures are available under the Expat license. All other assets
5831 ;; (including levels) are covered under CC-BY-SA or public domain. The
5832 ;; source code is under GPLv2+.
5833 (license (list license:gpl2+
5834 license:expat
5835 license:public-domain
5836 license:cc-by-sa3.0)))))
5837
5838 (define-public cdogs-sdl
5839 (package
5840 (name "cdogs-sdl")
5841 (version "0.8.0")
5842 (source
5843 (origin
5844 (method git-fetch)
5845 (uri (git-reference
5846 (url "https://github.com/cxong/cdogs-sdl")
5847 (commit version)))
5848 (file-name (git-file-name name version))
5849 (sha256
5850 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
5851 (build-system cmake-build-system)
5852 (arguments
5853 `(#:configure-flags
5854 (list (string-append "-DCDOGS_DATA_DIR="
5855 (assoc-ref %outputs "out")
5856 "/share/cdogs-sdl/"))))
5857 (native-inputs
5858 `(("pkg-config" ,pkg-config)))
5859 (inputs
5860 `(("gtk+" ,gtk+)
5861 ("mesa" ,mesa)
5862 ("sdl2" ,sdl2)
5863 ("sdl2-image" ,sdl2-image)
5864 ("sdl2-mixer" ,sdl2-mixer)))
5865 (home-page "https://cxong.github.io/cdogs-sdl/")
5866 (synopsis "Classic overhead run-and-gun game")
5867 (description "C-Dogs SDL is a classic overhead run-and-gun game,
5868 supporting up to 4 players in co-op and deathmatch modes. Customize your
5869 player, choose from many weapons, and blast, slide and slash your way through
5870 over 100 user-created campaigns.")
5871 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
5872 ;; CC0/CC-BY/CC-BY-SA for assets.
5873 (license (list license:gpl2+
5874 license:bsd-2
5875 license:bsd-3
5876 license:cc0
5877 license:cc-by3.0
5878 license:cc-by-sa3.0))))
5879
5880 (define-public kiki
5881 (package
5882 (name "kiki")
5883 (version "1.0.2")
5884 (source (origin
5885 (method url-fetch)
5886 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
5887 version "/kiki-" version "-src.tgz"))
5888 (sha256
5889 (base32
5890 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
5891 (modules '((guix build utils)))
5892 (snippet
5893 '(begin
5894 (for-each delete-file (find-files "." "\\.dll$"))
5895 #t))
5896 (patches
5897 (search-patches "kiki-level-selection-crash.patch"
5898 "kiki-makefile.patch"
5899 "kiki-missing-includes.patch"
5900 "kiki-portability-64bit.patch"))))
5901 (build-system gnu-build-system)
5902 (arguments
5903 `(#:tests? #f ; there are no tests
5904 #:make-flags '("CXX=g++")
5905 #:phases
5906 (modify-phases %standard-phases
5907 (replace 'configure
5908 (lambda* (#:key inputs outputs #:allow-other-keys)
5909 (setenv "CPLUS_INCLUDE_PATH"
5910 (string-append (assoc-ref inputs "sdl-union")
5911 "/include/SDL:"
5912 (assoc-ref inputs "python")
5913 "/include/python2.7:"
5914 (or (getenv "CPLUS_INCLUDE_PATH") "")))
5915 (substitute* "src/main/main.cpp"
5916 (("#include <SDL.h>" line)
5917 (string-append line "
5918 #define K_INCLUDE_GLUT
5919 #include \"KIncludeTools.h\""))
5920 (("// initialize SDL" line)
5921 (string-append "glutInit(&argc,argv);\n" line)))
5922 (substitute* "src/main/KikiController.cpp"
5923 (("getenv\\(\"KIKI_HOME\"\\)")
5924 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
5925 (substitute* "linux/Makefile"
5926 (("CXXOPTS =" line)
5927 (string-append line " -fpermissive"))
5928 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
5929 (("PYTHONHOME =.*")
5930 (string-append "PYTHONHOME = "
5931 (assoc-ref inputs "python")
5932 "/lib/python2.7/"))
5933 (("\\$\\(GLLIBS\\)" line)
5934 (string-append line " -lm -lpython2.7")))
5935 (substitute* "src/main/KikiPythonWidget.h"
5936 (("#define __KikiPythonWidget" line)
5937 (string-append line "\n#include \"KikiPython.h\"")))
5938 #t))
5939 (add-before 'build 'build-kodilib
5940 (lambda* (#:key make-flags #:allow-other-keys)
5941 (with-directory-excursion "kodilib/linux"
5942 (apply invoke "make" make-flags))))
5943 (add-after 'build-kodilib 'chdir
5944 (lambda _ (chdir "linux") #t))
5945 (replace 'install
5946 (lambda* (#:key outputs #:allow-other-keys)
5947 (let* ((out (assoc-ref outputs "out"))
5948 (bin (string-append out "/bin"))
5949 (share (string-append out "/share/kiki")))
5950 (mkdir-p bin)
5951 (mkdir-p share)
5952 (install-file "kiki" bin)
5953 (copy-recursively "../py" (string-append share "/py"))
5954 (copy-recursively "../sound" (string-append share "/sound"))
5955 #t))))))
5956 (inputs
5957 `(("glu" ,glu)
5958 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
5959 ("freeglut" ,freeglut-2.8)
5960 ("sdl-union" ,(sdl-union (list sdl
5961 sdl-mixer
5962 sdl-image)))
5963 ("python" ,python-2)))
5964 (native-inputs
5965 `(("swig" ,swig)))
5966 (home-page "http://kiki.sourceforge.net/")
5967 (synopsis "3D puzzle game")
5968 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
5969 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
5970 small robot living in the nano world, repair its maker.")
5971 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
5972 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
5973 ;; for a statement from the author.
5974 (license license:public-domain)))
5975
5976 (define-public teeworlds
5977 (package
5978 (name "teeworlds")
5979 (version "0.7.5")
5980 (source (origin
5981 (method git-fetch)
5982 (uri (git-reference
5983 (url "https://github.com/teeworlds/teeworlds")
5984 (commit version)))
5985 (file-name (git-file-name name version))
5986 (sha256
5987 (base32
5988 "169dl83q08zl4h813az8hjs4rs3dms9yjn6bnsld4fjcj0imvvc6"))
5989 (modules '((guix build utils)
5990 (ice-9 ftw)
5991 (ice-9 regex)
5992 (srfi srfi-1)
5993 (srfi srfi-26)))
5994 (snippet ; remove bundled libraries except md5
5995 '(let ((base-dir "src/engine/external/"))
5996 (for-each (compose (cut delete-file-recursively <>)
5997 (cut string-append base-dir <>))
5998 (remove (cut string-match "(^.)|(^md5$)" <>)
5999 (scandir base-dir)))
6000 #t))))
6001 (build-system gnu-build-system)
6002 (arguments
6003 `(#:tests? #f ; no tests included
6004 #:modules ((guix build gnu-build-system)
6005 (guix build utils)
6006 (srfi srfi-26))
6007 #:phases
6008 (modify-phases %standard-phases
6009 (replace 'configure
6010 (lambda* (#:key outputs #:allow-other-keys)
6011 ;; Embed path to assets.
6012 (substitute* "src/engine/shared/storage.cpp"
6013 (("#define DATA_DIR.*")
6014 (string-append "#define DATA_DIR \""
6015 (assoc-ref outputs "out")
6016 "/share/teeworlds/data"
6017 "\"")))
6018
6019 ;; Bam expects all files to have a recent time stamp.
6020 (for-each (cut utime <> 1 1)
6021 (find-files "."))
6022
6023 ;; Do not use bundled libraries.
6024 (substitute* "bam.lua"
6025 (("local json = Compile.+$")
6026 "local json = nil
6027 settings.link.libs:Add(\"jsonparser\")")
6028 (("local png = Compile.+$")
6029 "local png = nil
6030 settings.link.libs:Add(\"pnglite\")")
6031 (("local wavpack = Compile.+$")
6032 "local wavpack = nil
6033 settings.link.libs:Add(\"wavpack\")")
6034 (("if config\\.zlib\\.value == 1")
6035 "if config.zlib.value"))
6036 (substitute* "src/engine/client/graphics_threaded.cpp"
6037 (("engine/external/pnglite/pnglite\\.h")
6038 "pnglite.h"))
6039 (substitute* "src/engine/client/sound.cpp"
6040 (("engine/external/wavpack/wavpack\\.h")
6041 "wavpack/wavpack.h"))
6042 #t))
6043 (replace 'build
6044 (lambda _
6045 (invoke "bam" "-a" "-v" "conf=release")))
6046 (replace 'install
6047 (lambda* (#:key outputs #:allow-other-keys)
6048 (let* ((arch ,(system->linux-architecture
6049 (or (%current-target-system)
6050 (%current-system))))
6051 (build (string-append "build/" (if (string=? arch "i386")
6052 "x86" arch)
6053 "/release/"))
6054 (data-built (string-append build "data/"))
6055 (out (assoc-ref outputs "out"))
6056 (bin (string-append out "/bin/"))
6057 (data (string-append out "/share/teeworlds/data/")))
6058 (for-each (cut install-file <> bin)
6059 (map (cut string-append build <>)
6060 '("teeworlds" "teeworlds_srv")))
6061 (copy-recursively data-built data)
6062 #t))))))
6063 (inputs
6064 `(("freetype" ,freetype)
6065 ("glu" ,glu)
6066 ("json-parser" ,json-parser)
6067 ("mesa" ,mesa)
6068 ("pnglite" ,pnglite)
6069 ("sdl2" ,sdl2)
6070 ("sdl2-image" ,sdl2-image)
6071 ("sdl2-mixer" ,sdl2-mixer)
6072 ("wavpack" ,wavpack)
6073 ("zlib" ,zlib)))
6074 (native-inputs
6075 `(("bam" ,bam)
6076 ("python" ,python-wrapper)
6077 ("pkg-config" ,pkg-config)))
6078 (home-page "https://www.teeworlds.com")
6079 (synopsis "2D retro multiplayer shooter game")
6080 (description "Teeworlds is an online multiplayer game. Battle with up to
6081 16 players in a variety of game modes, including Team Deathmatch and Capture
6082 The Flag. You can even design your own maps!")
6083 (license license:bsd-3)))
6084
6085 (define-public enigma
6086 (package
6087 (name "enigma")
6088 (version "1.21")
6089 (source (origin
6090 (method url-fetch)
6091 (uri (string-append "mirror://sourceforge/enigma-game/"
6092 "Release%20" version "/enigma-"
6093 version ".tar.gz"))
6094 (sha256
6095 (base32
6096 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6097 (build-system gnu-build-system)
6098 (arguments
6099 `(#:configure-flags
6100 (list "--with-system-enet")
6101 #:phases
6102 (modify-phases %standard-phases
6103 (add-after 'unpack 'fix-build-with-new-gcc
6104 (lambda _
6105 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6106 ;; to NULL. Can be removed for versions > 1.21.
6107 (substitute* "src/lev/Proxy.cc"
6108 (("ifs != NULL")
6109 "ifs"))
6110 #t))
6111 (add-after 'unpack 'find-sdl
6112 (lambda _
6113 (substitute* "configure"
6114 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6115 (substitute* '("tools/ttf2bmf.cc"
6116 "lib-src/enigma-core/ecl_font.cc"
6117 "lib-src/enigma-core/ecl_video.cc"
6118 "lib-src/enigma-core/ecl_buffer.hh"
6119 "src/SoundEngine.cc"
6120 "src/SoundEngine.hh"
6121 "src/MusicManager.cc"
6122 "src/MusicManager.hh"
6123 "src/d_models.cc"
6124 "src/main.cc"
6125 "src/network.cc")
6126 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6127 (string-append "#include \"SDL/SDL_" header ".h\"")))
6128 (substitute* "src/main.cc"
6129 (("#include <SDL_(image|ttf|mixer).h>" line header)
6130 (string-append "#include \"SDL/SDL_" header ".h\"")))
6131 #t)))))
6132 (inputs
6133 `(("xerces-c" ,xerces-c)
6134 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6135 ("curl" ,curl)
6136 ("enet" ,enet)))
6137 (native-inputs
6138 `(("pkg-config" ,pkg-config)
6139 ("imagemagick" ,imagemagick)))
6140 (home-page "https://www.nongnu.org/enigma")
6141 (synopsis "Puzzle game with a dexterity component")
6142 (description "Enigma is a puzzle game with 550 unique levels. The object
6143 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6144 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6145 and most of all, countless hairy puzzles usually block your direct way to the
6146 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6147 get bored) interact in many unexpected ways, and since many of them follow the
6148 laws of physics (Enigma’s special laws of physics, that is), controlling them
6149 with the mouse isn’t always trivial.")
6150 (license license:gpl2+)))
6151
6152 (define-public chroma
6153 (package
6154 (name "chroma")
6155 (version "1.17")
6156 (source (origin
6157 (method url-fetch)
6158 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6159 version ".tar.bz2"))
6160 (sha256
6161 (base32
6162 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
6163 (build-system gnu-build-system)
6164 (arguments
6165 `(#:tests? #f ; no tests included
6166 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6167 (inputs
6168 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6169 ("freetype" ,freetype)
6170 ("ncurses" ,ncurses)
6171 ("fontconfig" ,fontconfig)
6172 ("libxft" ,libxft)))
6173 (native-inputs
6174 `(("pkg-config" ,pkg-config)))
6175 (home-page "http://level7.org.uk/chroma/")
6176 (synopsis "Abstract puzzle game")
6177 (description "Chroma is an abstract puzzle game. A variety of colourful
6178 shapes are arranged in a series of increasingly complex patterns, forming
6179 fiendish traps that must be disarmed and mysterious puzzles that must be
6180 manipulated in order to give up their subtle secrets. Initially so
6181 straightforward that anyone can pick it up and begin to play, yet gradually
6182 becoming difficult enough to tax even the brightest of minds.")
6183 (license license:gpl2+)))
6184
6185 (define-public fillets-ng
6186 (package
6187 (name "fillets-ng")
6188 (version "1.0.1")
6189 (source (origin
6190 (method url-fetch)
6191 (uri (string-append "mirror://sourceforge/fillets/"
6192 "Fish%20Fillets%20-%20Next%20Generation/"
6193 version "/fillets-ng-" version ".tar.gz"))
6194 (sha256
6195 (base32
6196 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6197 (build-system gnu-build-system)
6198 (arguments
6199 `(#:configure-flags
6200 (list (string-append "--with-lua="
6201 (assoc-ref %build-inputs "lua")))
6202 #:make-flags
6203 (list (string-append "CFLAGS=-I"
6204 (assoc-ref %build-inputs "sdl-union")
6205 "/include/SDL")
6206 (string-append "CXXFLAGS=-I"
6207 (assoc-ref %build-inputs "sdl-union")
6208 "/include/SDL"))
6209 #:phases
6210 (modify-phases %standard-phases
6211 ;; Lua 5.1 does not provide it.
6212 (add-after 'unpack 'do-not-link-with-lualib
6213 (lambda _
6214 (substitute* "configure"
6215 (("-llualib") ""))
6216 #t))
6217 (add-after 'install 'install-data
6218 (lambda* (#:key inputs outputs #:allow-other-keys)
6219 (let ((data (string-append (assoc-ref outputs "out")
6220 "/share/games/fillets-ng")))
6221 (mkdir-p data)
6222 (invoke "tar" "-xvf"
6223 (assoc-ref inputs "fillets-ng-data")
6224 "--strip-components=1"
6225 "-C" data)))))))
6226 (inputs
6227 `(("sdl-union" ,(sdl-union (list sdl
6228 sdl-mixer
6229 sdl-image
6230 sdl-ttf)))
6231 ("fribidi" ,fribidi)
6232 ("libx11" ,libx11)
6233 ("lua" ,lua-5.1)))
6234 (native-inputs
6235 `(("pkg-config" ,pkg-config)
6236 ("fillets-ng-data"
6237 ,(origin
6238 (method url-fetch)
6239 (uri (string-append "mirror://sourceforge/fillets/"
6240 "Fish%20Fillets%20-%20Next%20Generation/"
6241 version "/fillets-ng-data-" version ".tar.gz"))
6242 (sha256
6243 (base32
6244 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6245 (home-page "http://fillets.sourceforge.net/")
6246 (synopsis "Puzzle game")
6247 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6248 every of the seventy levels is always the same: find a safe way out. The fish
6249 utter witty remarks about their surroundings, the various inhabitants of their
6250 underwater realm quarrel among themselves or comment on the efforts of your
6251 fish. The whole game is accompanied by quiet, comforting music.")
6252 (license license:gpl2+)))
6253
6254 (define-public crawl
6255 (package
6256 (name "crawl")
6257 (version "0.26.0")
6258 (source
6259 (origin
6260 (method url-fetch)
6261 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6262 version "/stone_soup-" version "-nodeps.tar.xz"))
6263 (sha256
6264 (base32 "1m81x1sp6p2ka5w2nib3pcw5w5iv58z41c8aqn0dayi1lb3yslfb"))
6265 (patches (search-patches "crawl-upgrade-saves.patch"))))
6266 (build-system gnu-build-system)
6267 (inputs
6268 `(("lua51" ,lua-5.1)
6269 ("ncurses" ,ncurses)
6270 ("sqlite" ,sqlite)
6271 ("zlib" ,zlib)))
6272 (native-inputs
6273 `(("bison" ,bison)
6274 ("flex" ,flex)
6275 ("perl" ,perl)
6276 ("python" ,python-wrapper)
6277 ("python-pyyaml" ,python-pyyaml)
6278 ("pkg-config" ,pkg-config)))
6279 (arguments
6280 `(#:make-flags
6281 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6282 (out (assoc-ref %outputs "out")))
6283 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6284 (string-append "prefix=" out)
6285 "SAVEDIR=~/.crawl"
6286 ;; Don't compile with SSE on systems which don't have it.
6287 ,@(match (%current-system)
6288 ((or "i686-linux" "x86_64-linux")
6289 '())
6290 (_ '("NOSSE=TRUE")))
6291 ;; don't build any bundled dependencies
6292 "BUILD_LUA="
6293 "BUILD_SQLITE="
6294 "BUILD_ZLIB="
6295 "-Csource"))
6296 #:phases
6297 (modify-phases %standard-phases
6298 (add-after 'unpack 'find-SDL-image
6299 (lambda _
6300 (substitute* "source/windowmanager-sdl.cc"
6301 (("SDL_image.h") "SDL2/SDL_image.h"))
6302 #t))
6303 (delete 'configure)
6304 (replace 'check
6305 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6306 (setenv "HOME" (getcwd))
6307 ;; Fake a terminal for the test cases.
6308 (setenv "TERM" "xterm-256color")
6309 ;; Run the tests that don't require a debug build.
6310 (apply invoke "make" "nondebugtest"
6311 (format #f "-j~d" (parallel-job-count))
6312 ;; Force command line build for test cases.
6313 (append make-flags '("GAME=crawl" "TILES="))))))))
6314 (synopsis "Roguelike dungeon crawler game")
6315 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6316 for short) is a roguelike adventure through dungeons filled with dangerous
6317 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6318 (home-page "https://crawl.develz.org")
6319 (license (list license:gpl2+
6320 license:bsd-2
6321 license:bsd-3
6322 license:cc0
6323 license:expat
6324 license:zlib
6325 license:asl2.0))))
6326
6327 ;; The linter here claims that patch file names should start with the package
6328 ;; name. But, in this case, the patches are inherited from crawl with the
6329 ;; "crawl-" prefix instead of "crawl-tiles-".
6330 (define-public crawl-tiles
6331 (package
6332 (inherit crawl)
6333 (name "crawl-tiles")
6334 (arguments
6335 (substitute-keyword-arguments
6336 (package-arguments crawl)
6337 ((#:make-flags flags)
6338 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6339 (cons*
6340 (string-append "PROPORTIONAL_FONT=" dejavu
6341 "/share/fonts/truetype/DejaVuSans.ttf")
6342 (string-append "MONOSPACED_FONT=" dejavu
6343 "/share/fonts/truetype/DejaVuSansMono.ttf")
6344 "TILES=y"
6345 ;; Rename the executable to allow parallel installation with crawl.
6346 "GAME=crawl-tiles"
6347 ,flags)))))
6348 (inputs
6349 `(,@(package-inputs crawl)
6350 ("font-dejavu" ,font-dejavu)
6351 ("freetype6" ,freetype)
6352 ("glu" ,glu)
6353 ("libpng" ,libpng)
6354 ("sdl2" ,sdl2)
6355 ("sdl2-image" ,sdl2-image)
6356 ("sdl2-mixer" ,sdl2-mixer)))
6357 (native-inputs
6358 `(,@(package-native-inputs crawl)
6359 ("pngcrush" ,pngcrush)
6360 ("which" ,which)))
6361 (synopsis "Graphical roguelike dungeon crawler game")))
6362
6363 (define-public lugaru
6364 (package
6365 (name "lugaru")
6366 (version "1.2")
6367 (source (origin
6368 (method url-fetch)
6369 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6370 "lugaru-" version ".tar.xz"))
6371 (sha256
6372 (base32
6373 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6374 (build-system cmake-build-system)
6375 (arguments
6376 `(#:configure-flags
6377 (list "-DSYSTEM_INSTALL=ON")
6378 ;; no test target
6379 #:tests? #f))
6380 (native-inputs
6381 `(("pkg-config" ,pkg-config)))
6382 (inputs
6383 `(("sdl2" ,sdl2)
6384 ("glu" ,glu)
6385 ("libjpeg" ,libjpeg-turbo)
6386 ("libpng" ,libpng)
6387 ("openal" ,openal)
6388 ("vorbis" ,libvorbis)
6389 ("zlib" ,zlib)))
6390 (home-page "https://osslugaru.gitlab.io")
6391 (synopsis "Cross-platform third-person action game")
6392 (description "Lugaru is a third-person action game. The main character,
6393 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6394 In his quest to find those responsible for slaughtering his village, he uncovers
6395 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6396 and the starving wolves from a nearby den. Turner takes it upon himself to
6397 fight against their plot and save his fellow rabbits from slavery.")
6398 (license (list license:gpl2+ ; code
6399 ;; assets:
6400 license:cc-by-sa3.0
6401 license:cc-by-sa4.0))))
6402
6403 (define-public 0ad-data
6404 (package
6405 (name "0ad-data")
6406 (version "0.0.23b-alpha")
6407 (source
6408 (origin
6409 (method url-fetch)
6410 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6411 version "-unix-data.tar.xz"))
6412 (file-name (string-append name "-" version ".tar.xz"))
6413 (sha256
6414 (base32
6415 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6416 (modules '((guix build utils)))
6417 (snippet
6418 #~(begin
6419 (for-each (lambda (name)
6420 (let* ((dir (string-append "binaries/data/mods/" name))
6421 (file (string-append dir "/" name ".zip"))
6422 (unzip #$(file-append unzip "/bin/unzip")))
6423 (invoke unzip "-d" dir file)
6424 (delete-file file)))
6425 '("mod" "public"))
6426 #t))))
6427 (build-system trivial-build-system)
6428 (native-inputs `(("tar" ,tar)
6429 ("xz" ,xz)))
6430 (arguments
6431 `(#:modules ((guix build utils))
6432 #:builder
6433 (begin
6434 (use-modules (guix build utils))
6435 (let ((out (assoc-ref %outputs "out"))
6436 (source (assoc-ref %build-inputs "source"))
6437 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6438 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6439 (setenv "PATH" xz-path)
6440 (mkdir out)
6441 (invoke tar "xvf" source "-C" out "--strip=3")))))
6442 (synopsis "Data files for 0ad")
6443 (description "0ad-data provides the data files required by the game 0ad.")
6444 (home-page "https://play0ad.com")
6445 (license (list (license:fsdg-compatible
6446 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6447 "Similar to the license of the Bitstream Vera fonts.")
6448 (license:fsdg-compatible
6449 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6450 license:cc-by-sa3.0
6451 license:expat
6452 license:gfl1.0
6453 license:gpl2+
6454 license:gpl3+))))
6455
6456 (define-public 0ad
6457 (package
6458 (name "0ad")
6459 (version "0.0.23b-alpha")
6460 (source
6461 (origin
6462 (method url-fetch)
6463 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6464 version "-unix-build.tar.xz"))
6465 (file-name (string-append name "-" version ".tar.xz"))
6466 (sha256
6467 (base32
6468 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6469 ;; A snippet here would cause a build failure because of timestamps
6470 ;; reset. See https://bugs.gnu.org/26734.
6471 (inputs
6472 `(("0ad-data" ,0ad-data)
6473 ("curl" ,curl)
6474 ("enet" ,enet)
6475 ("gloox" ,gloox)
6476 ("icu4c" ,icu4c)
6477 ("libpng" ,libpng)
6478 ("libsodium" ,libsodium)
6479 ("libvorbis" ,libvorbis)
6480 ("libxcursor" ,libxcursor)
6481 ("libxml2" ,libxml2)
6482 ("miniupnpc" ,miniupnpc)
6483 ("mozjs-38" ,mozjs-38)
6484 ("openal" ,openal)
6485 ("sdl2" ,sdl2)
6486 ("wxwidgets" ,wxwidgets)
6487 ("zlib" ,zlib)))
6488 (native-inputs
6489 `(("boost" ,boost)
6490 ("cmake" ,cmake-minimal)
6491 ("mesa" ,mesa)
6492 ("pkg-config" ,pkg-config)
6493 ("python-2" ,python-2)))
6494 (build-system gnu-build-system)
6495 (arguments
6496 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6497 #:phases
6498 (modify-phases %standard-phases
6499 (add-after 'unpack 'delete-bundles
6500 (lambda _
6501 (delete-file-recursively "libraries/source/spidermonkey")
6502 #t))
6503 (add-after 'unpack 'fix-x11-includes
6504 (lambda _
6505 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6506 (("<Xlib.h>") "<X11/Xlib.h>"))
6507 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6508 (("<Xatom.h>") "<X11/Xatom.h>"))
6509 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6510 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6511 #t))
6512 (replace 'configure
6513 (lambda* (#:key inputs outputs #:allow-other-keys)
6514 (let* ((jobs (number->string (parallel-job-count)))
6515 (out (assoc-ref outputs "out"))
6516 (lib (string-append out "/lib"))
6517 (data (string-append out "/share/0ad")))
6518 (setenv "JOBS" (string-append "-j" jobs))
6519 (setenv "CC" "gcc")
6520 (with-directory-excursion "build/workspaces"
6521 (invoke "./update-workspaces.sh"
6522 (string-append "--libdir=" lib)
6523 (string-append "--datadir=" data)
6524 ;; TODO: "--with-system-nvtt"
6525 "--with-system-mozjs38")))))
6526 (delete 'check)
6527 (replace 'install
6528 (lambda* (#:key inputs outputs #:allow-other-keys)
6529 (chdir "binaries")
6530 (let* ((out (assoc-ref outputs "out"))
6531 (bin (string-append out "/bin"))
6532 (lib (string-append out "/lib"))
6533 (data (string-append out "/share/0ad"))
6534 (applications (string-append out "/share/applications"))
6535 (pixmaps (string-append out "/share/pixmaps"))
6536 (0ad-data (assoc-ref inputs "0ad-data")))
6537 ;; data
6538 (copy-recursively "data" data)
6539 (for-each (lambda (file)
6540 (symlink (string-append 0ad-data "/" file)
6541 (string-append data "/" file)))
6542 '("config" "mods/mod" "mods/public" "tools"))
6543 ;; libraries
6544 (for-each (lambda (file)
6545 (install-file file lib))
6546 (find-files "system" "\\.so$"))
6547 ;; binaries
6548 (install-file "system/pyrogenesis" bin)
6549 (with-directory-excursion bin
6550 (symlink "pyrogenesis" "0ad"))
6551 ;; resources
6552 (with-directory-excursion "../build/resources"
6553 (install-file "0ad.desktop" applications)
6554 (install-file "0ad.png" pixmaps))
6555 #t)))
6556 (add-after 'install 'check
6557 (lambda _
6558 (with-directory-excursion "system"
6559 (invoke "./test")))))))
6560 (home-page "https://play0ad.com")
6561 (synopsis "3D real-time strategy game of ancient warfare")
6562 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6563 warfare. It's a historically-based war/economy game that allows players to
6564 relive or rewrite the history of twelve ancient civilizations, each depicted
6565 at their peak of economic growth and military prowess.
6566
6567 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6568 (license (list license:bsd-2
6569 license:bsd-3
6570 license:expat
6571 license:gpl2+
6572 license:ibmpl1.0
6573 license:isc
6574 license:lgpl2.1
6575 license:lgpl3
6576 license:mpl2.0
6577 license:zlib))))
6578
6579 (define-public open-adventure
6580 (package
6581 (name "open-adventure")
6582 (version "1.9")
6583 (source
6584 (origin
6585 (method git-fetch)
6586 (uri (git-reference
6587 (url "https://gitlab.com/esr/open-adventure")
6588 (commit version)))
6589 (file-name (git-file-name name version))
6590 (sha256
6591 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6592 (build-system gnu-build-system)
6593 (arguments
6594 `(#:make-flags (list "CC=gcc")
6595 #:phases
6596 (modify-phases %standard-phases
6597 (delete 'configure) ;no configure script
6598 (add-before 'build 'use-echo
6599 (lambda _
6600 (substitute* "tests/Makefile"
6601 (("/bin/echo") (which "echo")))
6602 #t))
6603 (add-after 'build 'build-manpage
6604 (lambda _
6605 ;; This target is missing a dependency
6606 (substitute* "Makefile"
6607 ((".adoc.6:" line)
6608 (string-append line " advent.adoc")))
6609 (invoke "make" ".adoc.6")))
6610 ;; There is no install target.
6611 (replace 'install
6612 (lambda* (#:key outputs #:allow-other-keys)
6613 (let* ((out (assoc-ref outputs "out"))
6614 (bin (string-append out "/bin"))
6615 (man (string-append out "/share/man/man6")))
6616 (install-file "advent" bin)
6617 (install-file "advent.6" man))
6618 #t)))))
6619 (native-inputs
6620 `(("asciidoc" ,asciidoc)
6621 ("libedit" ,libedit)
6622 ("pkg-config" ,pkg-config)
6623 ("python" ,python-wrapper)
6624 ("python-pyyaml" ,python-pyyaml)))
6625 (home-page "https://gitlab.com/esr/open-adventure")
6626 (synopsis "Colossal Cave Adventure")
6627 (description
6628 "The original Colossal Cave Adventure from 1976 was the origin of all
6629 text adventures, dungeon-crawl (computer) games, and computer-hosted
6630 roleplaying games. This is a forward port of the last version released by
6631 Crowther & Woods, its original authors, in 1995. It has been known as
6632 ``adventure 2.5'' and ``430-point adventure''.")
6633 (license license:bsd-2)))
6634
6635 (define-public open-adventure-2.5
6636 (package
6637 (inherit open-adventure)
6638 (version "2.5")
6639 (properties `((superseded . ,open-adventure)))))
6640
6641 (define-public tome4
6642 (package
6643 (name "tome4")
6644 (version "1.7.2")
6645 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6646 (source
6647 (origin
6648 (method url-fetch)
6649 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6650 version ".tar.bz2"))
6651 (sha256
6652 (base32 "1xa0pdn9pggwf7hnqb87ya2qxqhjahkdjwf8cr2y01gixgrkj9lv"))
6653 (modules '((guix build utils)))
6654 (snippet
6655 '(begin
6656 (substitute* '("src/music.h" "src/tSDL.h")
6657 (("#elif defined(__FreeBSD__)" line)
6658 (string-append
6659 line " || defined(__GNUC__)")))
6660 (substitute* '("src/tgl.h")
6661 (("#include <GL/glext.h>") ""))
6662 #t))))
6663 (build-system gnu-build-system)
6664 (native-inputs
6665 `(("unzip" ,unzip)))
6666 (inputs
6667 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6668 ("glu" ,glu)
6669 ("premake4" ,premake4)
6670 ("openal" ,openal)
6671 ("vorbis" ,libvorbis)
6672 ("luajit" ,luajit)))
6673 (arguments
6674 `(#:make-flags
6675 (list (string-append "CC=" ,(cc-for-target))
6676 "config=release")
6677 ;; XXX: Building in parallel occasionally causes this build failure:
6678 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6679 ;; No such file or directory
6680 #:parallel-build? #f
6681 #:phases (modify-phases %standard-phases
6682 (delete 'bootstrap)
6683 (replace 'configure
6684 (lambda _
6685 (invoke "premake4" "gmake")
6686 #t))
6687 (add-after 'set-paths 'set-sdl-paths
6688 (lambda* (#:key inputs #:allow-other-keys)
6689 (setenv "CPATH"
6690 (string-append (assoc-ref inputs "sdl-union")
6691 "/include/SDL2:"
6692 (or (getenv "CPATH") "")))
6693 #t))
6694 (delete 'check)
6695 ;; premake doesn't provide install target
6696 (replace 'install
6697 (lambda* (#:key inputs outputs #:allow-other-keys)
6698 (let* ((out (assoc-ref outputs "out"))
6699 (usr (string-append out "/usr"))
6700 (bin (string-append out "/bin"))
6701 (licenses (string-append out "/share/licenses"))
6702 (documents (string-append out "/share/doc"))
6703 (pixmaps (string-append out "/share/pixmaps"))
6704 (icon "te4-icon.png")
6705 (data (string-append out "/share/" ,name))
6706 (applications (string-append
6707 out "/share/applications"))
6708 (unzip (string-append
6709 (assoc-ref inputs "unzip") "/bin/unzip"))
6710 (wrapper (string-append bin "/" ,name)))
6711 ;; icon
6712 (mkdir-p pixmaps)
6713 (invoke unzip "-j"
6714 (string-append
6715 "game/engines/te4-" ,version ".teae")
6716 (string-append
6717 "data/gfx/" icon) "-d" pixmaps)
6718 ;; game executable
6719 (install-file "t-engine" data)
6720 (mkdir-p bin)
6721 (with-output-to-file wrapper
6722 (lambda ()
6723 (display
6724 (string-append
6725 "#!/bin/sh\n"
6726 ;; No bootstrap code found,
6727 ;; defaulting to working directory
6728 ;; for engine code!
6729 "cd " data "\n"
6730 "exec -a tome4 ./t-engine \"$@\"\n"))))
6731 (chmod wrapper #o555)
6732 ;; licenses
6733 (for-each (lambda (file)
6734 (install-file file licenses))
6735 '("COPYING" "COPYING-MEDIA"))
6736 ;; documents
6737 (for-each (lambda (file)
6738 (install-file file documents))
6739 '("CONTRIBUTING" "CREDITS"))
6740 ;; data
6741 (copy-recursively "bootstrap" (string-append
6742 data "/bootstrap"))
6743 (copy-recursively "game" (string-append data "/game"))
6744 ;; launcher
6745 (mkdir-p applications)
6746 (make-desktop-entry-file
6747 (string-append applications "/" ,name ".desktop")
6748 #:name "ToME4"
6749 #:comment ,synopsis
6750 #:exec ,name
6751 #:icon icon
6752 #:categories '("Game" "RolePlaying")))
6753 #t)))))
6754 (home-page "https://te4.org")
6755 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6756 combat and advanced character building. Play as one of many unique races and
6757 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6758 challenging battles, and developing characters with your own tailored mix of
6759 abilities and powers. With a modern graphical and customisable interface,
6760 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6761 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6762 (license license:gpl3+)))
6763
6764 (define-public quakespasm
6765 (package
6766 (name "quakespasm")
6767 (version "0.93.2")
6768 (source
6769 (origin
6770 (method url-fetch)
6771 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6772 version ".tgz"))
6773 (sha256
6774 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6775 (arguments
6776 `(#:tests? #f
6777 #:make-flags '("CC=gcc"
6778 "MP3LIB=mpg123"
6779 "USE_CODEC_FLAC=1"
6780 "USE_CODEC_MIKMOD=1"
6781 "USE_SDL2=1"
6782 "-CQuake")
6783 #:phases (modify-phases %standard-phases
6784 (delete 'configure)
6785 (add-after 'unpack 'fix-makefile-paths
6786 (lambda* (#:key outputs #:allow-other-keys)
6787 (let ((out (assoc-ref outputs "out")))
6788 (mkdir-p (string-append out "/bin"))
6789 (substitute* "Quake/Makefile"
6790 (("/usr/local/games")
6791 (string-append out "/bin")))
6792 #t))))))
6793 (build-system gnu-build-system)
6794 (inputs `(("libmikmod" ,libmikmod)
6795 ("libvorbis" ,libvorbis)
6796 ("flac" ,flac)
6797 ("mesa" ,mesa)
6798 ("mpg123" ,mpg123)
6799 ("sdl2" ,sdl2)))
6800 (synopsis "First person shooter engine for Quake 1")
6801 (description "Quakespasm is a modern engine for id software's Quake 1.
6802 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6803 some graphical niceities, and numerous bug-fixes and other improvements.")
6804 (home-page "http://quakespasm.sourceforge.net/")
6805 (license license:gpl2+)))
6806
6807 (define-public vkquake
6808 (package
6809 (inherit quakespasm)
6810 (name "vkquake")
6811 (version "1.01.0")
6812 (source
6813 (origin
6814 (method git-fetch)
6815 (uri (git-reference
6816 (url "https://github.com/Novum/vkQuake")
6817 (commit version)))
6818 (file-name (git-file-name name version))
6819 (sha256
6820 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6821 (arguments
6822 `(#:make-flags
6823 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6824 "vulkan-loader") "/lib")))
6825 (list "CC=gcc"
6826 "MP3LIB=mpg123"
6827 "USE_CODEC_FLAC=1"
6828 "USE_CODEC_MIKMOD=1"
6829 "USE_SDL2=1"
6830 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
6831 "-CQuake"))
6832 #:phases (modify-phases %standard-phases
6833 (add-after 'unpack 'patch-for-new-vulkan
6834 (lambda _
6835 ;; Mimic upstream commit a869a22d9b51c68e for
6836 ;; compatibility with newer vulkan-headers.
6837 (substitute* "Quake/gl_rmisc.c"
6838 (("VK_DYNAMIC_STATE_RANGE_SIZE")
6839 "3"))
6840 #t))
6841 (delete 'configure)
6842 (add-after 'unpack 'fix-makefile-paths
6843 (lambda* (#:key outputs #:allow-other-keys)
6844 (let ((vulkan (assoc-ref %build-inputs
6845 "vulkan-loader"))
6846 (out (assoc-ref outputs "out")))
6847 (mkdir-p (string-append out "/bin"))
6848 (substitute* "Quake/Makefile" ((" /usr")
6849 (string-append " " out)))
6850 (substitute* "Quake/Makefile" (("/games")
6851 (string-append "/bin")))
6852 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
6853 #t))))
6854 ,@(strip-keyword-arguments '(#:make-flags #:phases)
6855 (package-arguments quakespasm))))
6856 (inputs `(("vulkan-headers" ,vulkan-headers)
6857 ("vulkan-loader" ,vulkan-loader)
6858 ,@(package-inputs quakespasm)))
6859 (description "vkquake is a modern engine for id software's Quake 1.
6860 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6861 some graphical niceities, and numerous bug-fixes and other improvements.")
6862 (home-page "https://github.com/Novum/vkQuake")))
6863
6864 (define-public yamagi-quake2
6865 (package
6866 (name "yamagi-quake2")
6867 (version "7.45")
6868 (source
6869 (origin
6870 (method url-fetch)
6871 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
6872 version ".tar.xz"))
6873 (sha256
6874 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
6875 (build-system gnu-build-system)
6876 (arguments
6877 `(#:tests? #f
6878 #:make-flags
6879 (list "CC=gcc"
6880 ;; link openAL instead of using dlopen at runtime
6881 "DLOPEN_OPENAL=\"no\""
6882 ;; an optional directory where it will look for quake2 data files
6883 ;; in addition to the current working directory
6884 "WITH_SYSTEMWIDE=yes"
6885 "WITH_SYSTEMDIR=\"/opt/quake2\"")
6886 #:phases
6887 (modify-phases %standard-phases
6888 (delete 'configure)
6889 (replace 'install
6890 (lambda* (#:key outputs #:allow-other-keys)
6891 (let ((out (assoc-ref outputs "out")))
6892 (mkdir-p (string-append out "/lib"))
6893 (mkdir-p (string-append out "/bin"))
6894 ;; The yamagi-quake2 binary must be in the same directory
6895 ;; as it's engine libraries, but symlinking it to /bin is okay
6896 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
6897 (copy-recursively "release"
6898 (string-append out "/lib/yamagi-quake2"))
6899 (symlink (string-append out "/lib/yamagi-quake2/quake2")
6900 (string-append out "/bin/yamagi-quake2"))
6901 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
6902 (string-append out "/bin/yamagi-q2ded"))))))))
6903 (native-inputs
6904 `(("pkg-config" ,pkg-config)))
6905 (inputs
6906 `(("curl" ,curl-minimal)
6907 ("libvorbis" ,libvorbis)
6908 ("mesa" ,mesa)
6909 ("openal" ,openal)
6910 ("sdl2" ,sdl2)
6911 ("zlib" ,zlib)))
6912 (synopsis "First person shooter engine based on quake2")
6913 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
6914 The main focus is an unchanged single player experience like back in 1997,
6915 thus the gameplay and the graphics are unaltered. However the user may use one
6916 of the unofficial retexturing packs. In comparison with the official client,
6917 over 1000 bugs were fixed and an extensive code audit done,
6918 making Yamagi Quake II one of the most solid Quake II implementations available.")
6919 (home-page "https://www.yamagi.org/quake2/")
6920 (license (list license:gpl2+ ; game and server
6921 (license:non-copyleft ; info-zip
6922 "file://LICENSE"
6923 "See Info-Zip section.")
6924 license:public-domain)))) ; stb
6925
6926 (define-public nudoku
6927 (package
6928 (name "nudoku")
6929 (version "2.1.0")
6930 (source
6931 (origin
6932 (method git-fetch)
6933 (uri (git-reference
6934 (url "https://github.com/jubalh/nudoku")
6935 (commit version)))
6936 (file-name (git-file-name name version))
6937 (sha256
6938 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
6939 (build-system gnu-build-system)
6940 (native-inputs
6941 `(("autoconf" ,autoconf)
6942 ("automake" ,automake)
6943 ("gettext" ,gettext-minimal)
6944 ("pkg-config" ,pkg-config)))
6945 (inputs
6946 `(("ncurses" ,ncurses)))
6947 (home-page "https://jubalh.github.io/nudoku/")
6948 (synopsis "Sudoku for your terminal")
6949 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
6950 (license license:gpl3+)))
6951
6952 (define-public the-butterfly-effect
6953 (package
6954 (name "the-butterfly-effect")
6955 (version "0.9.3.1")
6956 (source
6957 (origin
6958 (method git-fetch)
6959 (uri (git-reference
6960 (url "https://github.com/the-butterfly-effect/tbe")
6961 (commit (string-append "v" version))))
6962 (file-name (git-file-name name version))
6963 (sha256
6964 (base32
6965 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
6966 (build-system gnu-build-system)
6967 (arguments
6968 `(#:phases
6969 (modify-phases %standard-phases
6970 (delete 'configure)
6971 ;; There is no "install" phase. By default, tbe is installed
6972 ;; in the build directory. Provide our own installation.
6973 (replace 'install
6974 (lambda* (#:key outputs #:allow-other-keys)
6975 (let* ((out (assoc-ref outputs "out"))
6976 (bin (string-append out "/bin"))
6977 (share (string-append out "/share")))
6978 (install-file "usr/games/tbe" bin)
6979 (mkdir-p share)
6980 (copy-recursively "usr/share" share)
6981 #t))))
6982 ;; Test suite requires a running Xorg server. Even when
6983 ;; provided, it fails with "D-Bus library appears to be
6984 ;; incorrectly set up; failed to read machine uuid: Failed to
6985 ;; open "/etc/machine-id": No such file or directory" along
6986 ;; with multiple "QPainter:: ... Painter not active" warnings.
6987 #:tests? #f))
6988 (inputs
6989 `(("qtbase" ,qtbase)
6990 ("qtsvg" ,qtsvg)))
6991 (native-inputs
6992 `(("cmake" ,cmake-minimal)
6993 ("gettext-minimal" ,gettext-minimal)
6994 ("qttools" ,qttools)))
6995 (synopsis "Realistic physics puzzle game")
6996 (description "The Butterfly Effect (tbe) is a game that uses
6997 realistic physics simulations to combine lots of simple mechanical
6998 elements to achieve a simple goal in the most complex way possible.")
6999 (home-page "http://the-butterfly-effect.org/")
7000 ;; Main license is GPL2-only. However, artwork is distributed
7001 ;; under various licenses, listed here.
7002 (license (list license:gpl2 license:public-domain license:expat
7003 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7004
7005 (define-public pioneer
7006 (package
7007 (name "pioneer")
7008 (version "20200203")
7009 (source (origin
7010 (method git-fetch)
7011 (uri (git-reference
7012 (url "https://github.com/pioneerspacesim/pioneer")
7013 (commit version)))
7014 (file-name (git-file-name name version))
7015 (sha256
7016 (base32
7017 "1011xsi94jhw98mhm8kryq8ajig0qfbrdx5xdasi92bd4nk7lcp8"))))
7018 (build-system cmake-build-system)
7019 (native-inputs
7020 `(("pkg-config" ,pkg-config)))
7021 (inputs
7022 `(("assimp" ,assimp)
7023 ("curl" ,curl)
7024 ("freetype" ,freetype)
7025 ("glew" ,glew)
7026 ("glu" ,glu)
7027 ("libpng" ,libpng)
7028 ("libsigc++" ,libsigc++)
7029 ("libvorbis" ,libvorbis)
7030 ("lua" ,lua-5.2) ;not compatible with 5.3
7031 ("mesa" ,mesa)
7032 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7033 (arguments
7034 `(#:tests? #f ;tests are broken
7035 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7036 (string-append "-DPIONEER_DATA_DIR="
7037 %output "/share/games/pioneer"))))
7038 (home-page "https://pioneerspacesim.net")
7039 (synopsis "Game of lonely space adventure")
7040 (description
7041 "Pioneer is a space adventure game set in our galaxy at the turn of the
7042 31st century. The game is open-ended, and you are free to eke out whatever
7043 kind of space-faring existence you can think of. Look for fame or fortune by
7044 exploring the millions of star systems. Turn to a life of crime as a pirate,
7045 smuggler or bounty hunter. Forge and break alliances with the various
7046 factions fighting for power, freedom or self-determination. The universe is
7047 whatever you make of it.")
7048 (license license:gpl3)))
7049
7050 (define-public badass
7051 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7052 (revision "0"))
7053 (package
7054 (name "badass")
7055 (version (git-version "0.0" revision commit))
7056 (source (origin
7057 (method git-fetch)
7058 (uri (git-reference
7059 (url "https://github.com/umayr/badass")
7060 (commit commit)))
7061 (file-name (git-file-name name version))
7062 (sha256
7063 (base32
7064 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7065 (build-system go-build-system)
7066 (arguments
7067 '(#:import-path "github.com/umayr/badass"))
7068 (synopsis "Hacking contribution graphs in git")
7069 (description
7070 "Badass generates false commits for a range of dates, essentially
7071 hacking the gamification of contribution graphs on platforms such as
7072 Github or Gitlab.")
7073 (home-page "https://github.com/umayr/badass")
7074 (license license:expat))))
7075
7076 (define-public colobot
7077 (package
7078 (name "colobot")
7079 (version "0.1.12-alpha")
7080 (source
7081 (origin
7082 (method git-fetch)
7083 (uri (git-reference
7084 (url "https://github.com/colobot/colobot")
7085 (commit (string-append "colobot-gold-" version))
7086 (recursive? #t))) ;for "data/" subdir
7087 (file-name (git-file-name name version))
7088 (sha256
7089 (base32
7090 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
7091 (build-system cmake-build-system)
7092 (arguments
7093 `(#:tests? #f ;no test
7094 #:phases
7095 (modify-phases %standard-phases
7096 (add-after 'unpack 'make-git-checkout-writable
7097 (lambda _
7098 (for-each make-file-writable (find-files "."))
7099 #t))
7100 (add-after 'unpack 'fix-directories
7101 (lambda _
7102 (substitute* "CMakeLists.txt"
7103 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7104 (string-append prefix "/bin"))
7105 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7106 (string-append prefix "/colobot")))
7107 #t))
7108 (add-after 'fix-directories 'install-music
7109 ;; Retrieve and install music files.
7110 (lambda* (#:key inputs #:allow-other-keys)
7111 ;; Installation process tries to download music files using
7112 ;; "wget" if not already present. Since we are going another
7113 ;; route, skip "wget" command check.
7114 (substitute* "data/music/CMakeLists.txt"
7115 (("find_program\\(WGET wget\\)") ""))
7116 ;; Populate "music/" directory.
7117 (let ((data (assoc-ref inputs "colobot-music")))
7118 (invoke "tar" "-xvf" data "-Cdata/music"))
7119 #t)))))
7120 (native-inputs
7121 `(("colobot-music"
7122 ,(origin
7123 (method url-fetch)
7124 (uri (string-append "https://colobot.info/files/music/"
7125 "colobot-music_ogg_" version ".tar.gz"))
7126 (sha256
7127 (base32
7128 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7129 ("gettext" ,gettext-minimal)
7130 ("librsvg" ,librsvg)
7131 ("po4a" ,po4a)
7132 ("python" ,python-wrapper)))
7133 (inputs
7134 `(("boost" ,boost)
7135 ("glew" ,glew)
7136 ("libogg" ,libogg)
7137 ("libpng" ,libpng)
7138 ("libsndfile" ,libsndfile)
7139 ("libvorbis" ,libvorbis)
7140 ("openal" ,openal)
7141 ("physfs" ,physfs)
7142 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7143 (synopsis "Educational programming strategy game")
7144 (description "Colobot: Gold Edition is a real-time strategy game, where
7145 you can program your units (bots) in a language called CBOT, which is similar
7146 to C++ and Java. Your mission is to find a new planet to live and survive.
7147 You can save humanity and get programming skills!")
7148 (home-page "https://colobot.info")
7149 (license license:gpl3+)))
7150
7151 (define-public gzdoom
7152 (package
7153 (name "gzdoom")
7154 (version "4.3.2")
7155 (source
7156 (origin
7157 (method git-fetch)
7158 (uri (git-reference
7159 (url "https://github.com/coelckers/gzdoom")
7160 (commit (string-append "g" version))))
7161 (file-name (git-file-name name version))
7162 (sha256
7163 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7164 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7165 "gzdoom-find-system-libgme.patch"))
7166 (modules '((guix build utils)))
7167 (snippet
7168 '(begin
7169 ;; Remove some bundled libraries. XXX There are more, but removing
7170 ;; them would require, at least, patching the build system.
7171 (with-directory-excursion "libraries"
7172 (delete-file-recursively "bzip2")
7173 (delete-file-recursively "game-music-emu")
7174 (delete-file-recursively "jpeg")
7175 (delete-file-recursively "zlib"))
7176 #t))))
7177 (arguments
7178 '(#:tests? #f
7179 #:configure-flags
7180 (let ((out (assoc-ref %outputs "out")))
7181 (list
7182 (string-append
7183 "-DCMAKE_CXX_FLAGS:="
7184 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7185 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7186
7187 ;; The build requires some extra convincing not to use the bundled
7188 ;; libgme previously deleted in the soure snippet.
7189 "-DFORCE_INTERNAL_GME=OFF"
7190
7191 ;; Link libraries at build time instead of loading them at run time.
7192 "-DDYN_OPENAL=OFF"
7193 "-DDYN_FLUIDSYNTH=OFF"
7194 "-DDYN_GTK=OFF"
7195 "-DDYN_MPG123=OFF"
7196 "-DDYN_SNDFILE=OFF"))
7197 #:phases
7198 (modify-phases %standard-phases
7199 (add-before 'configure 'fix-referenced-paths
7200 (lambda* (#:key inputs outputs #:allow-other-keys)
7201 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7202 (timidity++ (assoc-ref inputs "timidity++"))
7203 (out (assoc-ref outputs "out")))
7204
7205 (substitute*
7206 "src/CMakeLists.txt"
7207 (("COMMAND /bin/sh")
7208 (string-append "COMMAND " (which "sh"))))
7209
7210 (substitute*
7211 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7212 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7213 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7214
7215 (substitute*
7216 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7217 (("exename = \"timidity\"")
7218 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7219 #t))))))
7220 (build-system cmake-build-system)
7221 (inputs `(("bzip2" ,bzip2)
7222 ("fluid-3" ,fluid-3)
7223 ("fluidsynth" ,fluidsynth)
7224 ("gtk+3" ,gtk+)
7225 ("libgme" ,libgme)
7226 ("libjpeg" ,libjpeg-turbo)
7227 ("libsndfile" ,libsndfile)
7228 ("mesa" ,mesa)
7229 ("mpg123" ,mpg123)
7230 ("openal" ,openal)
7231 ("sdl2" ,sdl2)
7232 ("timidity++" ,timidity++)
7233 ("zlib" ,zlib)))
7234 (native-inputs `(("pkg-config" ,pkg-config)
7235 ("unzip" ,unzip)))
7236 (synopsis "Modern Doom 2 source port")
7237 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7238 renderer. It improves modding support with ZDoom's advanced mapping features
7239 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7240 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7241 (home-page "https://zdoom.org/index")
7242 ;; The source uses x86 assembly
7243 (supported-systems '("x86_64-linux" "i686-linux"))
7244 (license (list license:gpl3+ ; gzdoom game
7245 license:lgpl3+ ; gzdoom renderer
7246 license:expat ; gdtoa
7247 (license:non-copyleft ; modified dumb
7248 "file://dumb/licence.txt"
7249 "Dumb license, explicitly GPL compatible.")))))
7250
7251 (define-public odamex
7252 (package
7253 (name "odamex")
7254 (version "0.8.3")
7255 (source
7256 (origin
7257 (method url-fetch)
7258 (uri (string-append
7259 "mirror://sourceforge/odamex/Odamex/" version "/"
7260 "odamex-src-" version ".tar.gz"))
7261 (sha256
7262 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7263 (build-system cmake-build-system)
7264 (arguments `(#:tests? #f)) ; no tests
7265 (inputs
7266 `(("sdl" ,sdl)
7267 ("sdl-mixer" ,sdl-mixer)
7268 ("zlib" ,zlib)
7269 ("libpng" ,libpng)
7270 ("alsa-lib" ,alsa-lib)))
7271 (home-page "https://odamex.net/")
7272 (synopsis "Multiplayer Doom port")
7273 (description "Odamex is a modification of the Doom engine that
7274 allows players to easily join servers dedicated to playing Doom
7275 online.")
7276 (license license:gpl2+)))
7277
7278 (define-public chocolate-doom
7279 (package
7280 (name "chocolate-doom")
7281 (version "3.0.1")
7282 (source (origin
7283 (method url-fetch)
7284 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7285 version
7286 "/chocolate-doom-"
7287 version
7288 ".tar.gz"))
7289 (sha256
7290 (base32
7291 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7292 (build-system gnu-build-system)
7293 (inputs `(("sdl2-net" ,sdl2-net)
7294 ("sdl2-mixer" , sdl2-mixer)
7295 ("sdl2" ,sdl2)))
7296 (native-inputs
7297 `(("pkg-config" ,pkg-config)))
7298 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7299 Doom")
7300 (description
7301 "Chocolate Doom takes a different approach to other source ports. Its
7302 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7303 a conservative, historically accurate Doom source port, which is compatible
7304 with the thousands of mods and levels that were made before the Doom source
7305 code was released. Rather than flashy new graphics, Chocolate Doom's main
7306 features are its accurate reproduction of the game as it was played in the
7307 1990s. The project is developed around a carefully-considered philosophy that
7308 intentionally restricts which features may be added (and rejects any that
7309 affect gameplay).")
7310 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7311 (license license:gpl2)))
7312
7313 (define-public crispy-doom
7314 (package
7315 (inherit chocolate-doom)
7316 (name "crispy-doom")
7317 (version "5.8.0")
7318 (source (origin
7319 (method git-fetch)
7320 (uri (git-reference
7321 (url "https://github.com/fabiangreffrath/crispy-doom")
7322 (commit (string-append "crispy-doom-" version))))
7323 (file-name (git-file-name name version))
7324 (sha256
7325 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7326 (native-inputs
7327 (append
7328 (package-native-inputs chocolate-doom)
7329 `(("automake" ,automake)
7330 ("autoreconf" ,autoconf))))
7331 (arguments
7332 `(#:phases
7333 (modify-phases %standard-phases
7334 (replace 'bootstrap
7335 ;; The bundled autogen.sh script unconditionally runs ./configure.
7336 (lambda _ (invoke "autoreconf" "-vif"))))))
7337 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7338 Chocolate Doom")
7339 (description
7340 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7341 display resolution, removes the static limits of the Doom engine and offers
7342 further optional visual, tactical and physical enhancements while remaining
7343 entirely config file, savegame, netplay and demo compatible with the
7344 original.")
7345 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7346
7347 (define shlomif-cmake-modules
7348 (origin
7349 (method url-fetch)
7350 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7351 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7352 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7353 (sha256
7354 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7355
7356 (define-public rinutils
7357 (package
7358 (name "rinutils")
7359 (version "0.2.0")
7360 (source (origin
7361 (method git-fetch)
7362 (uri (git-reference
7363 (url "https://github.com/shlomif/rinutils")
7364 (commit version)))
7365 (file-name (git-file-name name version))
7366 (sha256
7367 (base32
7368 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7369 (native-inputs
7370 `(("perl" ,perl)
7371 ;; The following is only needed for tests.
7372 ("perl-file-find-object" ,perl-file-find-object)
7373 ("perl-test-differences" ,perl-test-differences)
7374 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7375 ("perl-io-all" ,perl-io-all)
7376 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7377 ("cmake-rules" ,shlomif-cmake-modules)
7378 ("pkg-config" ,pkg-config)))
7379 (inputs
7380 `(("cmocka" ,cmocka)
7381 ("perl-env-path" ,perl-env-path)
7382 ("perl-inline" ,perl-inline)
7383 ("perl-inline-c" ,perl-inline-c)
7384 ("perl-string-shellquote" ,perl-string-shellquote)
7385 ("perl-test-trailingspace" ,perl-test-trailingspace)
7386 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7387 ("perl-text-glob" ,perl-text-glob)
7388 ("perl-number-compare" ,perl-number-compare)
7389 ("perl-moo" ,perl-moo)))
7390 (arguments
7391 `(#:phases
7392 (modify-phases %standard-phases
7393 (add-after 'unpack 'fix-build-env
7394 (lambda* (#:key inputs #:allow-other-keys)
7395 (use-modules (guix build utils))
7396 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7397 (copy-file cmake-rules
7398 (string-append "cmake/"
7399 (strip-store-file-name cmake-rules)))
7400 #t)))
7401 (replace 'check
7402 (lambda _
7403 (with-directory-excursion "../source"
7404 (setenv "FCS_TEST_BUILD" "1")
7405 (setenv "RINUTILS_TEST_BUILD" "1")
7406 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7407 ;; which requires tidy-all.
7408 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7409 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7410 (build-system cmake-build-system)
7411 (home-page "https://www.shlomifish.org/open-source/projects/")
7412 (synopsis "C11 / gnu11 utilities C library")
7413 (description "This package provides C11 / gnu11 utilities C library")
7414 (license license:expat)))
7415
7416 (define-public fortune-mod
7417 (package
7418 (name "fortune-mod")
7419 (version "2.28.0")
7420 (source
7421 (origin
7422 (method git-fetch)
7423 (uri (git-reference
7424 (url "https://github.com/shlomif/fortune-mod")
7425 (commit (string-append "fortune-mod-" version))))
7426 (file-name (git-file-name name version))
7427 (sha256
7428 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7429 (build-system cmake-build-system)
7430 (arguments
7431 `(#:test-target "check"
7432 #:phases
7433 (modify-phases %standard-phases
7434 (add-after 'unpack 'fix-build-env
7435 (lambda* (#:key inputs #:allow-other-keys)
7436 (use-modules (guix build utils))
7437 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7438 (copy-file cmake-rules
7439 (string-append "fortune-mod/cmake/"
7440 (strip-store-file-name cmake-rules)))
7441 (chdir "fortune-mod")
7442 ;; TODO: Valgrind tests fail for some reason.
7443 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7444 (delete-file "tests/t/valgrind.t")
7445 #t)))
7446 (add-after 'install 'fix-install-directory
7447 (lambda* (#:key outputs #:allow-other-keys)
7448 ;; Move binary from "games/" to "bin/" and remove the latter. This
7449 ;; is easier than patching CMakeLists.txt since the tests hard-code
7450 ;; the location as well.
7451 (let* ((out (assoc-ref outputs "out"))
7452 (bin (string-append out "/bin"))
7453 (games (string-append out "/games")))
7454 (rename-file (string-append games "/fortune")
7455 (string-append bin "/fortune"))
7456 (rmdir games)
7457 #t))))))
7458 (inputs `(("recode" ,recode)))
7459 (native-inputs
7460 `(("perl" ,perl)
7461 ;; The following is only needed for tests.
7462 ("perl-file-find-object" ,perl-file-find-object)
7463 ("perl-test-differences" ,perl-test-differences)
7464 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7465 ("perl-io-all" ,perl-io-all)
7466 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7467 ("cmake-rules" ,shlomif-cmake-modules)
7468 ("rinutils" ,rinutils)))
7469 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7470 (synopsis "The Fortune Cookie program from BSD games")
7471 (description "Fortune is a command-line utility which displays a random
7472 quotation from a collection of quotes.")
7473 (license license:bsd-4)))
7474
7475 (define xonotic-data
7476 (package
7477 (name "xonotic-data")
7478 (version "0.8.2")
7479 (source
7480 (origin
7481 (method url-fetch)
7482 (uri (string-append "http://dl.xonotic.org/xonotic-"
7483 version ".zip"))
7484 (file-name (string-append name "-" version ".zip"))
7485 (sha256
7486 (base32
7487 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7488 (build-system trivial-build-system)
7489 (native-inputs
7490 `(("unzip" ,unzip)))
7491 (arguments
7492 `(#:modules ((guix build utils))
7493 #:builder
7494 (begin
7495 (use-modules (guix build utils))
7496 (let* ((out (assoc-ref %outputs "out"))
7497 (xonotic (string-append out "/share/xonotic"))
7498 (source (assoc-ref %build-inputs "source"))
7499 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7500 (copy-file source (string-append ,name "-" ,version ".zip"))
7501 (invoke unzip (string-append ,name "-" ,version ".zip"))
7502 (mkdir-p out)
7503 (mkdir-p xonotic)
7504 (chdir "Xonotic")
7505 (copy-recursively "data"
7506 (string-append xonotic "/data"))
7507 (copy-recursively "server"
7508 (string-append xonotic "/server"))
7509 (install-file "key_0.d0pk" xonotic)))))
7510 (home-page "http://xonotic.org")
7511 (synopsis "Data files for Xonotic")
7512 (description
7513 "Xonotic-data provides the data files required by the game Xonotic.")
7514 (license (list license:gpl2+
7515 (license:x11-style "file://server/rcon.pl")))))
7516
7517 (define-public xonotic
7518 (package
7519 (name "xonotic")
7520 (version "0.8.2")
7521 (source
7522 (origin
7523 (method url-fetch)
7524 (uri (string-append "http://dl.xonotic.org/xonotic-"
7525 version "-source.zip"))
7526 (file-name (string-append name "-" version ".zip"))
7527 (sha256
7528 (base32
7529 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7530 (build-system gnu-build-system)
7531 (arguments
7532 `(#:configure-flags (list (string-append "--prefix="
7533 (assoc-ref %outputs "out"))
7534 "--disable-rijndael")
7535 #:phases
7536 (modify-phases %standard-phases
7537 (add-before 'configure 'make-darkplaces
7538 (lambda* (#:key outputs #:allow-other-keys)
7539 (let* ((out (assoc-ref outputs "out"))
7540 (sharedir (string-append out "/share/xonotic/")))
7541 (invoke "make" "-C" "source/darkplaces"
7542 (string-append "DP_FS_BASEDIR="
7543 sharedir)
7544 "DP_LINK_TO_LIBJPEG=1"
7545 "DP_SOUND_API=ALSA"
7546 "CC=gcc"
7547 "-f" "makefile"
7548 "cl-release")
7549 (invoke "make" "-C" "source/darkplaces"
7550 (string-append "DP_FS_BASEDIR="
7551 sharedir)
7552 "DP_LINK_TO_LIBJPEG=1"
7553 "DP_SOUND_API=ALSA"
7554 "CC=gcc"
7555 "-f" "makefile"
7556 "sdl-release")
7557 (invoke "make" "-C" "source/darkplaces"
7558 (string-append "DP_FS_BASEDIR="
7559 sharedir)
7560 "DP_LINK_TO_LIBJPEG=1"
7561 "DP_SOUND_API=ALSA"
7562 "CC=gcc"
7563 "-f" "makefile"
7564 "sv-release"))))
7565 (add-before 'configure 'bootstrap
7566 (lambda _
7567 (chdir "source/d0_blind_id")
7568 (invoke "sh" "autogen.sh")))
7569 (add-after 'build 'install-desktop-entry
7570 (lambda* (#:key outputs #:allow-other-keys)
7571 ;; Add .desktop files for the 2 variants and the symlink
7572 (let* ((output (assoc-ref outputs "out"))
7573 (apps (string-append output "/share/applications")))
7574 (mkdir-p apps)
7575 (with-output-to-file
7576 (string-append apps "/xonotic-glx.desktop")
7577 (lambda _
7578 (format #t
7579 "[Desktop Entry]~@
7580 Name=xonotic-glx~@
7581 Comment=Xonotic glx~@
7582 Exec=~a/bin/xonotic-glx~@
7583 TryExec=~@*~a/bin/xonotic-glx~@
7584 Icon=xonotic~@
7585 Categories=Game~@
7586 Type=Application~%"
7587 output)))
7588 (with-output-to-file
7589 (string-append apps "/xonotic-sdl.desktop")
7590 (lambda _
7591 (format #t
7592 "[Desktop Entry]~@
7593 Name=xonotic-sdl~@
7594 Comment=Xonotic sdl~@
7595 Exec=~a/bin/xonotic-sdl~@
7596 TryExec=~@*~a/bin/xonotic-sdl~@
7597 Icon=xonotic~@
7598 Categories=Game~@
7599 Type=Application~%"
7600 output)))
7601 (with-output-to-file
7602 (string-append apps "/xonotic.desktop")
7603 (lambda _
7604 (format #t
7605 "[Desktop Entry]~@
7606 Name=xonotic~@
7607 Comment=Xonotic~@
7608 Exec=~a/bin/xonotic-glx~@
7609 TryExec=~@*~a/bin/xonotic~@
7610 Icon=xonotic~@
7611 Categories=Game~@
7612 Type=Application~%"
7613 output)))
7614 #t)))
7615 (add-after 'install-desktop-entry 'install-icons
7616 (lambda* (#:key outputs #:allow-other-keys)
7617 (let ((out (assoc-ref outputs "out")))
7618 (with-directory-excursion "../../misc/logos/icons_png/"
7619 (for-each
7620 (lambda (file)
7621 (let* ((size (string-filter char-numeric? file))
7622 (icons (string-append out "/share/icons/hicolor/"
7623 size "x" size "/apps")))
7624 (mkdir-p icons)
7625 (copy-file file (string-append icons "/xonotic.png"))))
7626 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7627 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7628 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7629 (add-after 'install-icons 'install-binaries
7630 (lambda* (#:key outputs #:allow-other-keys)
7631 (let ((out (assoc-ref outputs "out")))
7632 (define (install src dst)
7633 (let ((dst (string-append out dst)))
7634 (mkdir-p (dirname dst))
7635 (copy-file src dst)))
7636 (mkdir-p (string-append out "/bin"))
7637 (install "../darkplaces/darkplaces-dedicated"
7638 "/bin/xonotic-dedicated")
7639 (install "../darkplaces/darkplaces-glx"
7640 "/bin/xonotic-glx")
7641 (install "../darkplaces/darkplaces-sdl"
7642 "/bin/xonotic-sdl")
7643 ;; Provide a default xonotic executable, defaulting to SDL.
7644 (symlink (string-append out "/bin/xonotic-sdl")
7645 (string-append out "/bin/xonotic"))
7646 #t)))
7647 (add-after 'install-binaries 'install-data
7648 (lambda* (#:key outputs inputs #:allow-other-keys)
7649 (let* ((out (assoc-ref outputs "out"))
7650 (data (assoc-ref inputs "xonotic-data")))
7651 (symlink (string-append data "/share/xonotic")
7652 (string-append out "/share/xonotic"))
7653 #t)))
7654 (add-after 'install-binaries 'wrap-binaries
7655 (lambda* (#:key outputs inputs #:allow-other-keys)
7656 ;; Curl and libvorbis need to be wrapped so that we get
7657 ;; sound and networking.
7658 (let* ((out (assoc-ref outputs "out"))
7659 (bin (string-append out "/bin/xonotic"))
7660 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7661 (bin-glx (string-append out "/bin/xonotic-glx"))
7662 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7663 (curl (assoc-ref inputs "curl"))
7664 (vorbis (assoc-ref inputs "libvorbis")))
7665 (wrap-program bin
7666 `("LD_LIBRARY_PATH" ":" prefix
7667 (,(string-append curl "/lib:" vorbis "/lib"))))
7668 (wrap-program bin-sdl
7669 `("LD_LIBRARY_PATH" ":" prefix
7670 (,(string-append curl "/lib:" vorbis "/lib"))))
7671 (wrap-program bin-glx
7672 `("LD_LIBRARY_PATH" ":" prefix
7673 (,(string-append curl "/lib:" vorbis "/lib"))))
7674 (wrap-program bin-dedicated
7675 `("LD_LIBRARY_PATH" ":" prefix
7676 (,(string-append curl "/lib:" vorbis "/lib"))))
7677 #t))))))
7678 (inputs
7679 `(("xonotic-data" ,xonotic-data)
7680 ("alsa-lib" ,alsa-lib)
7681 ("curl" ,curl)
7682 ("libjpeg" ,libjpeg-turbo)
7683 ("libmodplug" ,libmodplug)
7684 ("libvorbis" ,libvorbis)
7685 ("libogg" ,libogg)
7686 ("libxpm" ,libxpm)
7687 ("libxxf86dga" ,libxxf86dga)
7688 ("libxxf86vm" ,libxxf86vm)
7689 ("libx11" ,libx11)
7690 ("libxext" ,libxext)
7691 ("libxau" ,libxau)
7692 ("libxdmcp" ,libxdmcp)
7693 ("mesa" ,mesa)
7694 ("glu" ,glu)
7695 ("freetype" ,freetype)
7696 ("sdl2" ,sdl2)
7697 ("libpng" ,libpng)
7698 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7699 (native-inputs
7700 `(("unzip" ,unzip)
7701 ("autoconf" ,autoconf)
7702 ("automake" ,automake)
7703 ("pkg-config" ,pkg-config)
7704 ("libtool" ,libtool)
7705 ("gmp" ,gmp)))
7706 (home-page "https://xonotic.org")
7707 (synopsis "Fast-paced first-person shooter game")
7708 (description
7709 "Xonotic is a free, fast-paced first-person shooter.
7710 The project is geared towards providing addictive arena shooter
7711 gameplay which is all spawned and driven by the community itself.
7712 Xonotic is a direct successor of the Nexuiz project with years of
7713 development between them, and it aims to become the best possible
7714 open-source FPS of its kind.")
7715 (license (list license:gpl2+
7716 license:bsd-3 ; /source/d0_blind_id folder and others
7717 (license:x11-style "" "See file rcon.pl.")))))
7718
7719 (define-public frotz
7720 (package
7721 (name "frotz")
7722 (version "2.44")
7723 (source (origin
7724 (method url-fetch)
7725 (uri (list (string-append
7726 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7727 "frotz/frotz-" version ".tar.gz")
7728 (string-append
7729 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7730 "frotz/frotz-" version ".tar.gz")))
7731 (sha256
7732 (base32
7733 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7734 (build-system gnu-build-system)
7735 (arguments
7736 `(#:tests? #f ; there are no tests
7737 #:phases
7738 (modify-phases %standard-phases
7739 (delete 'configure)
7740 (add-before 'build 'curses
7741 (lambda _
7742 (substitute* "Makefile"
7743 (("lcurses") "lncurses"))
7744 #t))
7745 (replace 'install
7746 (lambda* (#:key outputs #:allow-other-keys)
7747 (let* ((out (assoc-ref outputs "out"))
7748 (bin (string-append out "/bin"))
7749 (man (string-append out "/share/man/man6")))
7750 (install-file "frotz" bin)
7751 (mkdir-p man)
7752 (install-file "doc/frotz.6" man)
7753 #t))))))
7754 (inputs `(("libmodplug" ,libmodplug)
7755 ("libsamplerate" ,libsamplerate)
7756 ("libsndfile" ,libsndfile)
7757 ("libvorbis" ,libvorbis)
7758 ("ncurses" ,ncurses)))
7759 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7760 (description "Frotz is an interpreter for Infocom games and other Z-machine
7761 games in the text adventure/interactive fiction genre. This version of Frotz
7762 complies with standard 1.0 of Graham Nelson's specification. It plays all
7763 Z-code games V1-V8, including V6, with sound support through libao, and uses
7764 ncurses for text display.")
7765 (home-page "http://frotz.sourceforge.net")
7766 (license license:gpl2+)))
7767
7768 (define-public frotz-dumb-terminal
7769 (package
7770 (name "frotz-dumb-terminal")
7771 (version "2.44")
7772 (source (origin
7773 (method url-fetch)
7774 (uri (list (string-append
7775 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7776 "frotz/frotz-" version ".tar.gz")
7777 (string-append
7778 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7779 "frotz/frotz-" version ".tar.gz")))
7780 (sha256
7781 (base32
7782 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7783 (build-system gnu-build-system)
7784 (arguments
7785 `(#:tests? #f ; there are no tests
7786 #:phases
7787 (modify-phases %standard-phases
7788 (delete 'configure)
7789 (replace 'build
7790 (lambda _
7791 (invoke "make" "dumb")))
7792 (replace 'install
7793 (lambda* (#:key outputs #:allow-other-keys)
7794 (let* ((out (assoc-ref outputs "out"))
7795 (bin (string-append out "/bin"))
7796 (man (string-append out "/share/man/man6")))
7797 (install-file "dfrotz" bin)
7798 (mkdir-p man)
7799 (install-file "doc/dfrotz.6" man)
7800 #t))))))
7801 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7802 (description "Frotz is an interpreter for Infocom games and
7803 other Z-machine games in the text adventure/interactive fiction genre.
7804 dfrotz is the dumb interface version. You get no screen control; everything
7805 is just printed to the terminal line by line. The terminal handles all the
7806 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7807 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7808 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7809 to play games on webpages. It can also be made into a chat bot.")
7810 (home-page "http://frotz.sourceforge.net")
7811 (license license:gpl2+)))
7812
7813 (define-public frotz-sdl
7814 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7815 (package
7816 (name "frotz-sdl")
7817 (version "2.45pre")
7818 (source (origin
7819 (method git-fetch)
7820 (uri (git-reference
7821 (url "https://gitlab.com/DavidGriffith/frotz")
7822 (commit commit)))
7823 (sha256
7824 (base32
7825 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7826 (file-name (git-file-name name version))))
7827 (build-system gnu-build-system)
7828 (arguments
7829 `(#:tests? #f ; there are no tests
7830 #:phases
7831 (modify-phases %standard-phases
7832 (delete 'configure)
7833 (add-before 'build 'patch-makefile
7834 (lambda _
7835 (substitute* "Makefile"
7836 (("lcurses") "lncurses")
7837 (("^BUILD_DATE_TIME =.*$")
7838 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
7839 #t))
7840 (replace 'build
7841 (lambda _
7842 (invoke "make" "sdl")))
7843 (replace 'install
7844 (lambda* (#:key outputs #:allow-other-keys)
7845 (let* ((out (assoc-ref outputs "out"))
7846 (bin (string-append out "/bin"))
7847 (man (string-append out "/share/man/man6")))
7848 (install-file "sfrotz" bin)
7849 (mkdir-p man)
7850 (install-file "doc/sfrotz.6" man)
7851 #t))))))
7852 (native-inputs
7853 `(("pkg-config" ,pkg-config)
7854 ("which" ,which)
7855 ("perl" ,perl)))
7856 (inputs `(("sdl2" ,sdl2)
7857 ("sdl2-mixer" ,sdl2-mixer)
7858 ("libmodplug" ,libmodplug)
7859 ("libsamplerate" ,libsamplerate)
7860 ("libsndfile" ,libsndfile)
7861 ("libvorbis" ,libvorbis)
7862 ("ncurses" ,ncurses)
7863 ("freetype" ,freetype)
7864 ("libjpeg-turbo" ,libjpeg-turbo)))
7865 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
7866 (description "Frotz is an interpreter for Infocom games and other Z-machine
7867 games in the text adventure/interactive fiction genre. This version of Frotz
7868 using SDL fully supports all these versions of the Z-Machine including the
7869 graphical version 6. Graphics and sound are created through the use of the SDL
7870 libraries. AIFF sound effects and music in MOD and OGG formats are supported
7871 when packaged in Blorb container files or optionally from individual files.")
7872 (home-page "http://frotz.sourceforge.net")
7873 (license license:gpl2+))))
7874
7875 (define-public frozen-bubble
7876 ;; Last official release is very outdated (2010). Use latest commit (2017).
7877 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
7878 (revision "1"))
7879 (package
7880 (name "frozen-bubble")
7881 (version (git-version "2.2.1" revision commit))
7882 (source
7883 (origin
7884 (method git-fetch)
7885 (uri (git-reference
7886 (url "https://github.com/kthakore/frozen-bubble")
7887 (commit commit)))
7888 (file-name (git-file-name name version))
7889 (sha256
7890 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
7891 (build-system perl-build-system)
7892 (arguments
7893 `(#:phases
7894 (modify-phases %standard-phases
7895 ;; Build process needs to create files in the "server"
7896 ;; directory.
7897 (add-after 'unpack 'fix-permissions
7898 (lambda _
7899 (for-each make-file-writable
7900 (find-files "server" "." #:directories? #t))))
7901 ;; By default, build stops at warnings.
7902 (add-after 'unpack 'prevent-build-error
7903 (lambda _
7904 (substitute* "inc/My/Builder.pm"
7905 (("-Werror") ""))
7906 #t))
7907 (add-after 'install 'install-desktop-file-and-icons
7908 (lambda* (#:key outputs #:allow-other-keys)
7909 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
7910 (hicolor (string-append share "/icons/hicolor")))
7911 ;; Create desktop entry.
7912 (make-desktop-entry-file
7913 (string-append share "/applications/" ,name ".desktop")
7914 #:name "Frozen Bubble"
7915 #:comment "Frozen Bubble arcade game"
7916 #:exec ,name
7917 #:icon ,name
7918 #:categories '("Game" "ArcadeGame"))
7919 ;; Add icons.
7920 (with-directory-excursion "share/icons"
7921 (for-each
7922 (lambda (size)
7923 (let* ((dim (string-append size "x" size))
7924 (dir (string-append hicolor "/" dim "/apps")))
7925 (mkdir-p dir)
7926 (copy-file
7927 (string-append "frozen-bubble-icon-" dim ".png")
7928 (string-append dir "/frozen-bubble.png"))))
7929 '("16" "32" "48" "64"))))
7930 #t))
7931 (add-after 'install 'wrap-perl-libs
7932 (lambda* (#:key outputs #:allow-other-keys)
7933 (let ((out (assoc-ref outputs "out"))
7934 (perl5lib (getenv "PERL5LIB")))
7935 (for-each (lambda (prog)
7936 (wrap-program (string-append out "/" prog)
7937 `("PERL5LIB" ":" prefix
7938 (,(string-append perl5lib ":" out
7939 "/lib/perl5/site_perl")))))
7940 (find-files "bin" ".")))
7941 #t)))))
7942 (native-inputs
7943 `(("perl-alien-sdl" ,perl-alien-sdl)
7944 ("perl-capture-tiny" ,perl-capture-tiny)
7945 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
7946 ("perl-module-build" ,perl-module-build)
7947 ("pkg-config" ,pkg-config)))
7948 (inputs
7949 `(("glib" ,glib)
7950 ("perl-compress-bzip2" ,perl-compress-bzip2)
7951 ("perl-file-sharedir" ,perl-file-sharedir)
7952 ("perl-file-slurp" ,perl-file-slurp)
7953 ("perl-file-which" ,perl-file-which)
7954 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
7955 ("perl-sdl" ,perl-sdl)
7956 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
7957 (home-page "http://frozen-bubble.org/")
7958 (synopsis "Puzzle with bubbles")
7959 (description
7960 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
7961 you attempt to shoot bubbles into groups of the same color to cause them to
7962 pop.
7963
7964 Players compete as penguins and must use the arrow keys to aim a colored
7965 bubble at groups of bubbles. The objective is to clear all the bubbles off
7966 the screen before a bubble passes below a line at the bottom.
7967
7968 It features 100 single-player levels, a two-player mode, music and striking
7969 graphics. A level editor is also included to allow players to create and play
7970 their own levels.")
7971 (license license:gpl2))))
7972
7973 (define-public libmanette
7974 (package
7975 (name "libmanette")
7976 (version "0.2.6")
7977 (source (origin
7978 (method url-fetch)
7979 (uri (string-append "mirror://gnome/sources/libmanette/"
7980 (version-major+minor version) "/"
7981 "libmanette-" version ".tar.xz"))
7982 (sha256
7983 (base32
7984 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
7985 (build-system meson-build-system)
7986 (native-inputs
7987 `(("glib" ,glib "bin") ; for glib-compile-resources
7988 ("gobject-introspection" ,gobject-introspection)
7989 ("pkg-config" ,pkg-config)
7990 ("vala" ,vala)))
7991 (inputs
7992 `(("libevdev" ,libevdev)
7993 ("libgudev" ,libgudev)))
7994 (home-page "https://wiki.gnome.org/Apps/Games")
7995 (synopsis "Game controller library")
7996 (description "Libmanette is a small GObject library giving you simple
7997 access to game controllers. It supports the de-facto standard gamepads as
7998 defined by the W3C standard Gamepad specification or as implemented by the SDL
7999 GameController.")
8000 (license license:lgpl2.1+)))
8001
8002 (define-public quadrapassel
8003 (package
8004 (name "quadrapassel")
8005 (version "3.36.05")
8006 (source (origin
8007 (method url-fetch)
8008 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8009 (version-major+minor version) "/"
8010 "quadrapassel-" version ".tar.xz"))
8011 (sha256
8012 (base32
8013 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8014 (build-system meson-build-system)
8015 (arguments
8016 '(#:glib-or-gtk? #t
8017 #:phases
8018 (modify-phases %standard-phases
8019 (add-after 'unpack 'skip-gtk-update-icon-cache
8020 ;; Don't create 'icon-theme.cache'.
8021 (lambda _
8022 (substitute* "build-aux/meson_post_install.py"
8023 (("gtk-update-icon-cache") (which "true")))
8024 #t)))))
8025 (native-inputs
8026 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8027 ("gettext" ,gettext-minimal)
8028 ("glib" ,glib "bin") ;for glib-compile-resources
8029 ("itstool" ,itstool)
8030 ("libxml2" ,libxml2) ;for xmllint
8031 ("pkg-config" ,pkg-config)
8032 ("vala" ,vala)))
8033 (inputs
8034 `(("clutter" ,clutter)
8035 ("clutter-gtk" ,clutter-gtk)
8036 ("gsound" ,gsound)
8037 ("gtk+" ,gtk+)
8038 ("libcanberra" ,libcanberra)
8039 ("libmanette" ,libmanette)
8040 ("librsvg" ,librsvg)))
8041 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8042 (synopsis "GNOME version of Tetris")
8043 (description "Quadrapassel comes from the classic falling-block game,
8044 Tetris. The goal of the game is to create complete horizontal lines of
8045 blocks, which will disappear. The blocks come in seven different shapes made
8046 from four blocks each: one straight, two L-shaped, one square, and two
8047 S-shaped. The blocks fall from the top center of the screen in a random
8048 order. You rotate the blocks and move them across the screen to drop them in
8049 complete lines. You score by dropping blocks fast and completing lines. As
8050 your score gets higher, you level up and the blocks fall faster.")
8051 (license license:gpl2+)))
8052
8053 (define-public endless-sky
8054 (package
8055 (name "endless-sky")
8056 (version "0.9.12")
8057 (source
8058 (origin
8059 (method git-fetch)
8060 (uri (git-reference
8061 (url "https://github.com/endless-sky/endless-sky")
8062 (commit (string-append "v" version))))
8063 (file-name (git-file-name name version))
8064 (sha256
8065 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
8066 (build-system scons-build-system)
8067 (arguments
8068 `(#:scons ,scons-python2
8069 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8070 #:tests? #f ; no tests
8071 #:phases
8072 (modify-phases %standard-phases
8073 (add-after 'unpack 'patch-resource-locations
8074 (lambda* (#:key outputs #:allow-other-keys)
8075 (substitute* "source/Files.cpp"
8076 (("/usr/local/")
8077 (string-append (assoc-ref outputs "out") "/")))
8078 #t))
8079 (add-after 'unpack 'patch-scons
8080 (lambda _
8081 (substitute* "SConstruct"
8082 ;; Keep environmental variables
8083 (("Environment\\(\\)")
8084 "Environment(ENV = os.environ)")
8085 ;; Install into %out/bin
8086 (("games\"") "bin\""))
8087 #t)))))
8088 (inputs
8089 `(("glew" ,glew)
8090 ("libjpeg" ,libjpeg-turbo)
8091 ("libmad" ,libmad)
8092 ("libpng" ,libpng)
8093 ("openal" ,openal)
8094 ("sdl2" ,sdl2)))
8095 (home-page "https://endless-sky.github.io/")
8096 (synopsis "2D space trading and combat game")
8097 (description "Endless Sky is a 2D space trading and combat game. Explore
8098 other star systems. Earn money by trading, carrying passengers, or completing
8099 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8100 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8101 leave human space behind and hope to find friendly aliens whose culture is more
8102 civilized than your own.")
8103 (license (list license:gpl3+
8104 license:cc-by-sa3.0
8105 license:cc-by-sa4.0
8106 license:public-domain))))
8107
8108 (define-public stepmania
8109 (package
8110 (name "stepmania")
8111 (version "5.1.0-b2")
8112 (source
8113 (origin
8114 (method git-fetch)
8115 (uri (git-reference
8116 (url "https://github.com/stepmania/stepmania")
8117 (commit (string-append "v" version))))
8118 (file-name (git-file-name name version))
8119 (sha256
8120 (base32
8121 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8122 (modules '((guix build utils)))
8123 (snippet
8124 '(begin
8125 ;; Remove song files, which are licensed under a non-commercial
8126 ;; clause, and a course pointing to them.
8127 (for-each delete-file-recursively
8128 '("Songs/StepMania 5/Goin' Under"
8129 "Songs/StepMania 5/MechaTribe Assault"
8130 "Songs/StepMania 5/Springtime"))
8131 (for-each delete-file '("Courses/Default/Jupiter.crs"
8132 "Courses/Default/Jupiter.png"))
8133 ;; Unbundle libpng.
8134 (substitute* "extern/CMakeLists.txt"
8135 (("include\\(CMakeProject-png.cmake\\)") ""))
8136 (delete-file-recursively "extern/libpng")
8137 #t))))
8138 (build-system cmake-build-system)
8139 (arguments
8140 `(#:tests? #f ;FIXME: couldn't find how to run tests
8141 #:build-type "Release"
8142 #:out-of-source? #f ;for the 'install-desktop' phase
8143 #:configure-flags
8144 (list "-DWITH_SYSTEM_FFMPEG=1"
8145 ;; SSE instructions are available on Intel systems only.
8146 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8147 (%current-system)))
8148 '("x86_64" "i686"))
8149 '()
8150 '("-DWITH_SSE2=NO"))
8151 ;; Configuration cannot find GTK2 without the two following
8152 ;; flags.
8153 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8154 (assoc-ref %build-inputs "gtk+")
8155 "/lib/gtk-2.0/include")
8156 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8157 (assoc-ref %build-inputs "glib")
8158 "/lib/glib-2.0/include"))
8159 #:phases
8160 (modify-phases %standard-phases
8161 (add-after 'unpack 'ensure-application-files-can-be-found
8162 (lambda* (#:key outputs #:allow-other-keys)
8163 (let ((out (assoc-ref outputs "out")))
8164 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8165 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8166 (string-append "\"" out
8167 "/share/stepmania/GtkModule.so\"")))
8168 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8169 (("Root = sDirOfExecutable")
8170 (string-append "Root = \"" out "/share/stepmania/\""))
8171 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8172 (string-append "\"" out "/share/stepmania/" dir "\"")))
8173 (substitute* "src/RageFileManager.cpp"
8174 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8175 (string-append "\"" out "/share/stepmania/\""))))
8176 #t))
8177 (add-after 'unpack 'fix-install-subdir
8178 ;; Installation would be done in "%out/stepmania-X.Y", but we
8179 ;; prefer the more common layout "%out/share/stepmania".
8180 (lambda _
8181 (substitute* "src/CMakeLists.txt"
8182 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8183 #t))
8184 (add-after 'unpack 'unbundle-libpng
8185 (lambda* (#:key inputs #:allow-other-keys)
8186 (substitute* "src/CMakeLists.txt"
8187 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8188 (string-append (assoc-ref inputs "libpng") "/include")))
8189 #t))
8190 (add-after 'install 'install-executable
8191 (lambda* (#:key outputs #:allow-other-keys)
8192 (let* ((out (assoc-ref outputs "out"))
8193 (bin (string-append out "/bin"))
8194 (exe (string-append out "/share/stepmania/stepmania")))
8195 (mkdir-p bin)
8196 (symlink exe (string-append bin "/stepmania"))
8197 #t)))
8198 (add-after 'install-executable 'install-desktop
8199 (lambda* (#:key outputs #:allow-other-keys)
8200 (let* ((out (assoc-ref outputs "out"))
8201 (share (string-append out "/share"))
8202 (applications (string-append share "/applications"))
8203 (icons (string-append share "/icons")))
8204 (install-file "stepmania.desktop" applications)
8205 (mkdir-p icons)
8206 (copy-recursively "icons" icons)
8207 #t)))
8208 ;; Move documentation in a more usual place, i.e.,
8209 ;; "%out/share/doc/stepmania/".
8210 (add-after 'install-desktop 'install-doc
8211 (lambda* (#:key outputs #:allow-other-keys)
8212 (let* ((out (assoc-ref outputs "out"))
8213 (share (string-append out "/share")))
8214 (with-directory-excursion share
8215 (mkdir-p "doc")
8216 (symlink "../stepmania/Docs" "doc/stepmania"))
8217 #t))))))
8218 (native-inputs
8219 `(("pkg-config" ,pkg-config)
8220 ("yasm" ,yasm)))
8221 (inputs
8222 `(("alsa-lib" ,alsa-lib)
8223 ;; Per upstream, StepMania is only guaranteed to work with a very
8224 ;; specific FFmpeg version, which is included in the repository as
8225 ;; a Git submodule. This particular version requirement usually
8226 ;; changes every few years.
8227 ("ffmpeg" ,ffmpeg-for-stepmania)
8228 ("glib" ,glib)
8229 ("glew" ,glew)
8230 ("gtk+" ,gtk+-2)
8231 ("jsoncpp" ,jsoncpp)
8232 ("libpng" ,libpng)
8233 ("libjpeg" ,libjpeg-turbo)
8234 ("libmad" ,libmad)
8235 ("libogg" ,libogg)
8236 ("libva" ,libva)
8237 ("libvorbis" ,libvorbis)
8238 ("libxinerama" ,libxinerama)
8239 ("libxrandr" ,libxrandr)
8240 ("mesa" ,mesa)
8241 ("pcre" ,pcre)
8242 ("pulseaudio" ,pulseaudio)
8243 ("sdl" ,sdl2)
8244 ("udev" ,eudev)
8245 ("zlib" ,zlib)))
8246 (synopsis "Advanced rhythm game designed for both home and arcade use")
8247 (description "StepMania is a dance and rhythm game. It features 3D
8248 graphics, keyboard and dance pad support, and an editor for creating your own
8249 steps.
8250
8251 This package provides the core application, but no song is shipped. You need
8252 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8253 (home-page "https://www.stepmania.com")
8254 (license license:expat)))
8255
8256 (define-public btanks
8257 (package
8258 (name "btanks")
8259 (version "0.9.8083")
8260 (source
8261 (origin
8262 (method url-fetch)
8263 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8264 "btanks-" version ".tar.bz2"))
8265 (sha256
8266 (base32
8267 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8268 (build-system scons-build-system)
8269 (arguments
8270 `(#:tests? #f ; there are none
8271 #:scons ,scons-python2
8272 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8273 #:phases
8274 (modify-phases %standard-phases
8275 (add-after 'unpack 'replace-removed-scons-syntax
8276 (lambda _
8277 (substitute* "SConstruct"
8278 (("Options") "Variables")
8279 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8280 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8281 #t))
8282 (add-after 'set-paths 'set-sdl-paths
8283 (lambda* (#:key inputs #:allow-other-keys)
8284 (setenv "CPATH"
8285 (string-append (assoc-ref inputs "sdl")
8286 "/include/SDL:"
8287 (or (getenv "CPATH") "")))
8288 #t))
8289 (add-after 'unpack 'fix-compilation-errors
8290 (lambda _
8291 (substitute* "mrt/base_file.h"
8292 (("#include <string>" m)
8293 (string-append m "\n#include <sys/types.h>")))
8294 (substitute* '("engine/sl08/sl08.h"
8295 "engine/sl08/sl08.py")
8296 (("signal = NULL") "signal = 0")
8297 (("object\\(NULL\\)") "object(0)")
8298 (("func\\(NULL\\)") "func(0)")
8299 ((" connect\\(signal_ref\\)")
8300 " this->connect(signal_ref)"))
8301 (substitute* "math/range_list.h"
8302 ((" lower_bound\\(value\\)")
8303 " this->lower_bound(value)")
8304 ((" erase\\(i\\)")
8305 " this->erase(i)"))
8306 (substitute* "clunk/source.cpp"
8307 (("using namespace clunk" m)
8308 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8309 #t))
8310 (add-after 'unpack 'find-lua
8311 (lambda _
8312 (substitute* "engine/SConscript"
8313 (("lua5.1") "lua-5.1")
8314 (("bt_libs.append\\(lua\\)")
8315 "bt_libs.append(\"lua\")"))
8316 #t)))))
8317 (inputs
8318 `(("expat" ,expat)
8319 ("glu" ,glu)
8320 ("libsmpeg" ,libsmpeg-with-sdl1)
8321 ("libvorbis" ,libvorbis)
8322 ("lua51" ,lua-5.1)
8323 ("sdl" ,(sdl-union (list sdl
8324 sdl-mixer
8325 sdl-image
8326 sdl-ttf)))
8327 ("zlib" ,zlib)))
8328 (native-inputs
8329 `(("pkg-config" ,pkg-config)
8330 ("zip" ,zip)))
8331 (home-page "http://btanks.sourceforge.net")
8332 (synopsis "Multiplayer tank battle game")
8333 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8334 game, where you can choose one of three vehicles and eliminate your enemy
8335 using the whole arsenal of weapons. It has original cartoon-like graphics and
8336 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8337 and cooperative.")
8338 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8339 ;; released under GPLv2 or later. It comes with extra exceptions for the
8340 ;; developers.
8341 (license (list license:gpl2+ license:lgpl2.1+))))
8342
8343 (define-public slimevolley
8344 (package
8345 (name "slimevolley")
8346 (version "2.4.2")
8347 (source
8348 (origin
8349 (method url-fetch)
8350 (uri (string-append "https://download.tuxfamily.org/slime/"
8351 "slimevolley_" version ".tar.gz"))
8352 (sha256
8353 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8354 (build-system cmake-build-system)
8355 (arguments
8356 `(#:tests? #f ;no test
8357 ;; Work around build failure: "error adding symbols: DSO
8358 ;; missing from command line".
8359 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8360 (native-inputs
8361 `(("gettext" ,gettext-minimal)))
8362 (inputs
8363 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8364 (home-page "https://slime.tuxfamily.org/")
8365 (synopsis "Unrealistic 2D volleyball simulation")
8366 (description
8367 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8368 the spirit of some Java games of the same name.
8369
8370 Two teams, 1-3 players each, try to be the first to get 10 points.
8371 This happens when the one ball touches the floor on the other side of
8372 the net. There can be 1 to 8 balls in game. Once one ball touches
8373 the ground, the set ends and all balls are served again.")
8374 (license license:gpl3+)))
8375
8376 (define-public slingshot
8377 (package
8378 (name "slingshot")
8379 (version "0.9")
8380 (source
8381 (origin
8382 (method git-fetch)
8383 (uri (git-reference
8384 (url "https://github.com/ryanakca/slingshot")
8385 (commit version)))
8386 (file-name (git-file-name name version))
8387 (sha256
8388 (base32
8389 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8390 (build-system python-build-system)
8391 (arguments
8392 `(#:python ,python-2))
8393 (inputs
8394 `(("python-pygame" ,python2-pygame)))
8395 (home-page "https://github.com/ryanakca/slingshot")
8396 (synopsis "Simple 2D shooting strategy game set in space")
8397 (description "Slingshot is a two-dimensional strategy game where two
8398 players attempt to shoot one another through a section of space populated by
8399 planets. The main feature of the game is that the shots, once fired, are
8400 affected by the gravity of the planets.")
8401 (license license:gpl2+)))
8402
8403 (define-public 4dtris
8404 (package
8405 (name "4dtris")
8406 (version "0.4.3")
8407 (source
8408 (origin
8409 (method url-fetch)
8410 (uri (string-append "https://launchpad.net/4dtris/"
8411 (version-major+minor version)
8412 "/" version "/+download/4dtris_"
8413 version ".orig.tar.gz"))
8414 (sha256
8415 (base32
8416 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8417 (build-system gnu-build-system)
8418 (arguments
8419 `(#:phases
8420 (modify-phases %standard-phases
8421 (add-after 'unpack 'fix-install-directories
8422 (lambda* (#:key outputs #:allow-other-keys)
8423 (let ((out (assoc-ref outputs "out")))
8424 (substitute* "Makefile.in"
8425 (("bindir = /usr/games")
8426 (string-append "bindir = " out "/bin"))
8427 (("/usr/share/applications")
8428 (string-append out "/share/applications"))
8429 (("/usr/share/games/4dtris")
8430 (string-append out "/share/4dtris"))))
8431 #t))
8432 (add-after 'set-paths 'set-sdl-paths
8433 (lambda* (#:key inputs #:allow-other-keys)
8434 (setenv "CPATH"
8435 (string-append (assoc-ref inputs "sdl")
8436 "/include/SDL:"
8437 (or (getenv "CPATH") "")))
8438 #t)))))
8439 (inputs
8440 `(("fontconfig" ,fontconfig)
8441 ("freeglut" ,freeglut)
8442 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8443 (home-page "https://launchpad.net/4dtris/")
8444 (synopsis "4D Tetris")
8445 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8446 game field is extended to 4D space, which has to filled up by the gamer with
8447 4D hyper cubes.")
8448 (license license:gpl3)))
8449
8450 (define-public arx-libertatis
8451 (package
8452 (name "arx-libertatis")
8453 (version "1.1.2")
8454 (source
8455 (origin
8456 (method url-fetch)
8457 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8458 version ".tar.xz"))
8459 (sha256
8460 (base32
8461 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8462 (build-system cmake-build-system)
8463 (outputs '("out" "installer"))
8464 (arguments
8465 '(#:tests? #f ; No tests.
8466 #:phases
8467 (modify-phases %standard-phases
8468 (add-after 'unpack 'fix-install-helper-paths
8469 (lambda* (#:key inputs #:allow-other-keys)
8470 (let ((p7zip (assoc-ref inputs "p7zip"))
8471 (innoextract (assoc-ref inputs "innoextract"))
8472 (wget (assoc-ref inputs "wget"))
8473 (zenity (assoc-ref inputs "zenity")))
8474 (substitute* "scripts/arx-install-data"
8475 (("have innoextract")
8476 (string-append "have " innoextract "/bin/innoextract"))
8477 (("then innoextract")
8478 (string-append "then " innoextract "/bin/innoextract"))
8479 (("else innoextract")
8480 (string-append "else " innoextract "/bin/innoextract"))
8481 (("for _extract_zip_sz in 7za 7z")
8482 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8483 (("else if have 7z")
8484 (string-append "else if have " p7zip "/bin/7za"))
8485 (("7z x -tiso")
8486 (string-append p7zip "/bin/7z x -tiso"))
8487 (("if have wget")
8488 (string-append "if have " wget "/bin/wget"))
8489 (("wget -O")
8490 (string-append wget "/bin/wget -O"))
8491 (("for backend in \\$preferred zenity")
8492 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8493 (("zenity +--title")
8494 (string-append zenity "/bin/zenity --title"))
8495 (("^zenity\\)")
8496 (string-append zenity "/bin/zenity)"))))
8497 #t))
8498 (add-after 'install 'move-installer
8499 (lambda* (#:key outputs #:allow-other-keys)
8500 (let ((out (assoc-ref outputs "out"))
8501 (installer (assoc-ref outputs "installer")))
8502 (mkdir-p (string-append installer "/bin"))
8503 (rename-file (string-append out "/bin/arx-install-data")
8504 (string-append installer "/bin/arx-install-data"))))))))
8505 (inputs
8506 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8507 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8508 ("glew" ,glew)
8509 ("openal" ,openal)
8510 ("zlib" ,zlib)
8511 ("boost" ,boost)
8512 ("glm" ,glm)
8513 ("freetype" ,freetype)
8514 ;; The following are only needed by the arx-install-data script.
8515 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8516 ("zenity" ,zenity) ; GUI for install-helper.
8517 ("wget" ,wget) ; Used by the install-helper to download the patch.
8518 ;; The install-helper needs it to extract the patch.
8519 ("innoextract" ,innoextract)))
8520 (home-page "https://arx-libertatis.org/")
8521 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8522 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8523 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8524 This port however does not include the game data, so you need to obtain a copy
8525 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8526 features crafting, melee and ranged combat, as well as a unique casting system
8527 where the player draws runes in real time to effect the desired spell.")
8528 (license license:gpl3+)))
8529
8530 (define-public edgar
8531 (package
8532 (name "edgar")
8533 (version "1.33")
8534 (source
8535 (origin
8536 (method url-fetch)
8537 (uri
8538 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8539 version "/edgar-" version "-1.tar.gz"))
8540 (sha256
8541 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8542 (build-system gnu-build-system)
8543 (arguments '(#:tests? #f ; there are no tests
8544 #:make-flags
8545 (list "CC=gcc"
8546 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8547 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8548 #:phases
8549 (modify-phases %standard-phases
8550 (delete 'configure)
8551 (add-before 'build 'fix-env
8552 (lambda* (#:key inputs #:allow-other-keys)
8553 (setenv "CPATH"
8554 (string-append (assoc-ref inputs "sdl2-union")
8555 "/include/SDL2:"
8556 (or (getenv "CPATH") "")))
8557 #t)))))
8558 (inputs
8559 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8560 ("zlib" ,zlib)))
8561 (native-inputs
8562 `(("pkg-config" ,pkg-config)
8563 ("autoconf" ,autoconf)
8564 ("automake" ,automake)
8565 ("gnu-gettext" ,gettext-minimal)
8566 ("libtool" ,libtool)
8567 ("which" ,which)))
8568 (synopsis "2d action platformer game")
8569 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8570 When Edgar's father fails to return home after venturing out one dark and stormy night,
8571 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8572 a fortress beyond the forbidden swamp.")
8573 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8574 (license license:gpl2+)))
8575
8576 (define-public openclonk
8577 (package
8578 (name "openclonk")
8579 (version "8.1")
8580 (source (origin
8581 (method url-fetch)
8582 (uri (string-append
8583 "https://www.openclonk.org/builds/release/" version "/"
8584 "openclonk-" version "-src.tar.bz2"))
8585 (sha256
8586 (base32
8587 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8588 (build-system cmake-build-system)
8589 (arguments
8590 `(#:configure-flags '("-DAudio_TK=OpenAL")
8591 #:test-target "tests"
8592 #:phases
8593 (modify-phases %standard-phases
8594 (add-after 'unpack 'prepare-gmock
8595 (lambda* (#:key inputs #:allow-other-keys)
8596 (mkdir "gmock")
8597 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8598 (substitute* "tests/CMakeLists.txt"
8599 (("/usr/src/gmock")
8600 (string-append (getcwd) "/gmock/googlemock"))
8601 (("/usr/src/gtest")
8602 (string-append (getcwd) "/gmock/googletest"))
8603 (("PATH_SUFFIXES \"src\" \"gtest\"")
8604 "PATH_SUFFIXES \"src\""))
8605 #t))
8606 (add-after 'unpack 'adjust-backward-cpp-includes
8607 (lambda _
8608 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8609 ;; that includes external libraries such as libdl from glibc.
8610 ;; By default, CMake interface includes are treated as "system
8611 ;; headers", and GCC behaves poorly when glibc is passed as a
8612 ;; system header (causing #include_next failures).
8613
8614 ;; Here we prevent targets that consume the Backward::Backward
8615 ;; interface from treating it as "system includes".
8616 (substitute* "CMakeLists.txt"
8617 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8618 (string-append "set_property(TARGET " target " PROPERTY "
8619 "NO_SYSTEM_FROM_IMPORTED true)\n"
8620 all)))
8621 #t))
8622 (add-after 'unpack 'add-libiberty
8623 ;; Build fails upon linking executables without this.
8624 (lambda _
8625 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8626 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8627 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8628 #t))
8629 (add-after 'add-libiberty 'lax-freealut-requirement
8630 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8631 ;; it as 1.0.1. Force minimal version.
8632 (lambda _
8633 (substitute* "cmake/FindAudio.cmake"
8634 (("freealut>=1.1.0") "freealut>=1.0.1"))
8635 #t))
8636 (add-after 'lax-freealut-requirement 'fix-directories
8637 ;; Prefer "$out/share/openclonk" over
8638 ;; "$out/share/games/openclonk". Also install "openclonk"
8639 ;; binary in "bin/", not "games/".
8640 (lambda _
8641 (substitute* "CMakeLists.txt"
8642 (("share/games/openclonk") "share/openclonk")
8643 (("TARGETS openclonk DESTINATION games")
8644 "TARGETS openclonk DESTINATION bin"))
8645 #t)))))
8646 (native-inputs
8647 `(("googlemock" ,(package-source googletest))
8648 ("googletest" ,googletest)
8649 ("pkg-config" ,pkg-config)))
8650 (inputs
8651 `(("freealut" ,freealut)
8652 ("freetype" ,freetype)
8653 ("glew" ,glew)
8654 ("libiberty" ,libiberty)
8655 ("libjpeg" ,libjpeg-turbo)
8656 ("libogg" ,libogg)
8657 ("libpng" ,libpng)
8658 ("libvorbis" ,libvorbis)
8659 ("libxrandr" ,libxrandr)
8660 ("mesa" ,mesa)
8661 ("miniupnpc" ,miniupnpc)
8662 ("openal" ,openal)
8663 ("qtbase" ,qtbase)
8664 ("readline" ,readline)
8665 ("sdl" ,sdl2)
8666 ("tinyxml" ,tinyxml)
8667 ("zlib" ,zlib)))
8668 (home-page "https://www.openclonk.org/")
8669 (synopsis
8670 "Multiplayer action game where you control small and nimble humanoids")
8671 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8672 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8673 antfarm-style landscape, the player controls a crew of Clonks, small but
8674 robust humanoid beings. The game encourages free play but the normal goal is
8675 to either exploit valuable resources from the earth by building a mine or
8676 fight each other on an arena-like map.")
8677 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8678 (license (list license:isc license:cc-by3.0))))
8679
8680 (define-public flare-engine
8681 (package
8682 (name "flare-engine")
8683 (version "1.11")
8684 (source (origin
8685 (method git-fetch)
8686 (uri (git-reference
8687 (url "https://github.com/flareteam/flare-engine")
8688 (commit (string-append "v" version))))
8689 (file-name (git-file-name name version))
8690 (sha256
8691 (base32
8692 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8693 (build-system cmake-build-system)
8694 (arguments
8695 `(#:tests? #f ;no test
8696 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8697 (inputs
8698 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8699 ("python" ,python-wrapper)
8700 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8701 (home-page "http://www.flarerpg.org/")
8702 (synopsis "Action Roleplaying Engine")
8703 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8704 game engine built to handle a very specific kind of game: single-player 2D
8705 action RPGs.")
8706 (license license:gpl3+)))
8707
8708 (define-public flare-game
8709 (package
8710 (name "flare-game")
8711 (version "1.11")
8712 (source (origin
8713 (method git-fetch)
8714 (uri (git-reference
8715 (url "https://github.com/flareteam/flare-game")
8716 (commit (string-append "v" version))))
8717 (file-name (git-file-name name version))
8718 (sha256
8719 (base32
8720 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8721 (build-system cmake-build-system)
8722 (arguments
8723 `(#:tests? #f ;no test
8724 #:configure-flags '("-DDATADIR=share/flare")
8725 #:phases
8726 (modify-phases %standard-phases
8727 ;; Flare expects the mods to be located in the same folder.
8728 ;; Yet, "default" mod is in the engine, whereas the others
8729 ;; are in the current package. Merge everything here with
8730 ;; a symlink.
8731 (add-after 'install 'add-default-mod
8732 (lambda* (#:key inputs outputs #:allow-other-keys)
8733 (let* ((out (assoc-ref outputs "out"))
8734 (mods (string-append out "/share/flare/mods")))
8735 (with-directory-excursion mods
8736 (symlink (string-append (assoc-ref inputs "flare-engine")
8737 "/share/flare/mods/default")
8738 "default")))
8739 #t))
8740 (add-after 'install 'install-executable
8741 ;; The package only provides assets for the game, the
8742 ;; executable coming from "flare-engine". Since more than
8743 ;; one game may use the engine, we create a new executable,
8744 ;; "flare-game", which launches the engine with appropriate
8745 ;; parameters.
8746 (lambda* (#:key inputs outputs #:allow-other-keys)
8747 (let* ((out (assoc-ref outputs "out"))
8748 (bash (string-append (assoc-ref inputs "bash")
8749 "/bin/bash"))
8750 (flare (string-append (assoc-ref inputs "flare-engine")
8751 "/bin/flare"))
8752 (script (string-append out "/bin/flare-game")))
8753 (mkdir-p (dirname script))
8754 (call-with-output-file script
8755 (lambda (port)
8756 (format port
8757 "#!~a
8758 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8759 bash
8760 flare
8761 out)))
8762 (chmod script #o755))
8763 #t)))))
8764 (inputs
8765 `(("flare-engine" ,flare-engine)))
8766 (home-page "http://www.flarerpg.org/")
8767 (synopsis "Fantasy action RPG using the FLARE engine")
8768 (description "Flare is a single-player 2D action RPG with
8769 fast-paced action and a dark fantasy style.")
8770 (license license:cc-by-sa3.0)))
8771
8772 (define-public meritous
8773 (package
8774 (name "meritous")
8775 (version "1.5")
8776 (source (origin
8777 (method git-fetch)
8778 (uri (git-reference
8779 (url "https://gitlab.com/meritous/meritous.git")
8780 (commit (string-append "v" version))))
8781 (file-name (git-file-name name version))
8782 (sha256
8783 (base32
8784 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8785 (build-system gnu-build-system)
8786 (arguments
8787 `(#:tests? #f ;no test
8788 #:make-flags
8789 (list "CC=gcc"
8790 (string-append "prefix=" (assoc-ref %outputs "out")))
8791 #:phases
8792 (modify-phases %standard-phases
8793 (delete 'configure)
8794 (add-after 'unpack 'fix-sdl-path
8795 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
8796 ;; directory, not SDL-union provided as an input to the package.
8797 ;; We force the latter with "--prefix=" option.
8798 (lambda* (#:key inputs #:allow-other-keys)
8799 (substitute* "Makefile"
8800 (("sdl-config" command)
8801 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8802 #t))
8803 (add-after 'unpack 'fix-crash
8804 ;; XXX: Songs are not present in the repository, due to licensing
8805 ;; issues. Yet, the game tries to load them, and, since it cannot
8806 ;; find them, crashes. Users cannot add them back, the store being
8807 ;; read-only, so we turn off background music altogether.
8808 (lambda _
8809 (substitute* "src/audio.c"
8810 (("PlayBackgroundMusic\\(new_track\\);" all)
8811 (string-append "// " all)))
8812 #t)))))
8813 (native-inputs
8814 `(("intltool" ,intltool)))
8815 (inputs
8816 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
8817 ("zlib" ,zlib)))
8818 (home-page "https://gitlab.com/meritous/meritous")
8819 (synopsis "Action-adventure dungeon crawl game")
8820 (description "Far below the surface of the planet is a place of limitless
8821 power. Those that seek to control such a utopia will soon bring an end to
8822 themselves. Seeking an end to the troubles that plague him, PSI user Merit
8823 journeys into the hallowed Orcus Dome in search of answers.
8824
8825 Meritous is a action-adventure game with simple controls but a challenge to
8826 find a balance of power versus recovery time during real-time battles. Set in
8827 a procedurally generated world, the player can explore thousands of rooms in
8828 search of powerful artifacts, tools to help them, and to eventually free the
8829 Orcus Dome from evil.")
8830 (license license:gpl3+)))
8831
8832 (define-public marble-marcher
8833 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
8834 (revision "1"))
8835 (package
8836 (name "marble-marcher")
8837 (version (git-version "0" revision commit))
8838 (source (origin
8839 (method git-fetch)
8840 (uri (git-reference
8841 (url "https://github.com/HackerPoet/MarbleMarcher")
8842 (commit commit)))
8843 (file-name (git-file-name name version))
8844 (sha256
8845 (base32
8846 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
8847 (build-system cmake-build-system)
8848 (arguments
8849 `(#:tests? #f ; there are none
8850 #:phases
8851 (modify-phases %standard-phases
8852 (add-after 'unpack 'embed-asset-directory
8853 (lambda* (#:key outputs #:allow-other-keys)
8854 (let ((assets (string-append (assoc-ref outputs "out")
8855 "/share/marble-marcher/assets/")))
8856 ;; Some of the files we're patching are
8857 ;; ISO-8859-1-encoded, so choose it as the default
8858 ;; encoding so the byte encoding is preserved.
8859 (with-fluids ((%default-port-encoding #f))
8860 (substitute* "src/Resource.rc"
8861 (("../assets/icon.ico")
8862 (string-append assets "icon.ico")))
8863 (substitute* "src/Res.h"
8864 (("assets/") assets))))
8865 #t))
8866 (replace 'install
8867 (lambda* (#:key outputs #:allow-other-keys)
8868 (let* ((out (assoc-ref outputs "out"))
8869 (assets (string-append out "/share/marble-marcher/assets"))
8870 (bin (string-append out "/bin/")))
8871 (mkdir-p bin)
8872 (mkdir-p assets)
8873 (copy-recursively "../source/assets" assets)
8874 (install-file "MarbleMarcher" bin))
8875 #t)))))
8876 (inputs
8877 `(("eigen" ,eigen)
8878 ("mesa" ,mesa)
8879 ("sfml" ,sfml)))
8880 (native-inputs
8881 `(("pkg-config" ,pkg-config)))
8882 (home-page "https://codeparade.itch.io/marblemarcher")
8883 (synopsis "Guide a marble across fractal landscapes")
8884 (description "Marble Marcher is a video game that uses a fractal physics
8885 engine and fully procedural rendering to produce beautiful and unique
8886 gameplay. The game is played on the surface of evolving fractals. The goal
8887 of the game is to get your marble to the flag as quickly as possible. But be
8888 careful not to fall off the level or get crushed by the fractal! There are 24
8889 levels to unlock.")
8890 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
8891 (license (list license:gpl2+
8892 license:silofl1.1
8893 license:cc-by-sa3.0)))))
8894
8895 ;; This must be updated together with flightgear.
8896 (define simgear
8897 (package
8898 (name "simgear")
8899 (version "2018.3.5")
8900 (source
8901 (origin
8902 (method url-fetch)
8903 (uri (string-append "mirror://sourceforge/flightgear/release-"
8904 (version-major+minor version) "/"
8905 "simgear-" version ".tar.bz2"))
8906 (sha256
8907 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
8908 (build-system cmake-build-system)
8909 (arguments
8910 `(#:phases
8911 (modify-phases %standard-phases
8912 (replace 'check
8913 (lambda _
8914 ;; Skip tests that require internet access.
8915 (invoke "ctest" "-E" "(http|dns)"))))))
8916 (inputs
8917 `(("boost" ,boost-for-mysql) ; fails with 1.69
8918 ("curl" ,curl)
8919 ("expat" ,expat)
8920 ("mesa" ,mesa)
8921 ("openal" ,openal)
8922 ("openscenegraph" ,openscenegraph-3.4)
8923 ("zlib" ,zlib)))
8924 (home-page "https://home.flightgear.org/")
8925 (synopsis "Libraries for 3D simulations and games")
8926 (description "SimGear is a set of libraries designed to be used as
8927 building blocks for quickly assembling 3D simulations, games, and
8928 visualization applications. SimGear is developed by the FlightGear project
8929 and also provides the base for the FlightGear Flight Simulator.")
8930 (license license:lgpl2.0+)))
8931
8932 (define-public flightgear
8933 (package
8934 (name "flightgear")
8935 (version (package-version simgear))
8936 (source
8937 (origin
8938 (method url-fetch)
8939 (uri (string-append "mirror://sourceforge/flightgear/release-"
8940 (version-major+minor version) "/"
8941 "flightgear-" version ".tar.bz2"))
8942 (sha256
8943 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
8944 (modules '((guix build utils)))
8945 (snippet
8946 '(begin
8947 ;; There are some bundled libraries.
8948 (for-each delete-file-recursively
8949 '("3rdparty/sqlite3/"))
8950 #t))))
8951 (build-system cmake-build-system)
8952 (arguments
8953 `(#:configure-flags
8954 (list "-DSYSTEM_SQLITE=ON"
8955 (string-append "-DFG_DATA_DIR="
8956 (assoc-ref %outputs "out")
8957 "/share/flightgear"))
8958 ;; TODO: test cannot be run because the "run_test_suite" executable
8959 ;; does not seem to be built.
8960 #:tests? #f
8961 #:phases
8962 (modify-phases %standard-phases
8963 (add-after 'install 'wrap-executable
8964 (lambda* (#:key inputs outputs #:allow-other-keys)
8965 (let ((out (assoc-ref outputs "out")))
8966 (wrap-program (string-append out "/bin/fgfs")
8967 `("QT_PLUGIN_PATH" ":" prefix
8968 ,(map (lambda (label)
8969 (string-append (assoc-ref inputs label)
8970 "/lib/qt5/plugins"))
8971 '("qtbase" "qtdeclarative" "qtsvg")))
8972 `("QML2_IMPORT_PATH" ":" prefix
8973 ,(map (lambda (label)
8974 (string-append (assoc-ref inputs label)
8975 "/lib/qt5/qml"))
8976 '("qtdeclarative" "qtsvg"))))
8977 #t)))
8978 (add-after 'install 'install-data
8979 (lambda* (#:key inputs outputs #:allow-other-keys)
8980 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
8981 (mkdir-p share)
8982 (with-directory-excursion share
8983 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
8984 "--strip-components=1")))
8985 #t)))))
8986 (inputs
8987 `(("boost" ,boost-for-mysql) ; same as simgear
8988 ("dbus" ,dbus)
8989 ("eudev" ,eudev)
8990 ("freeglut" ,freeglut)
8991 ("freetype" ,freetype)
8992 ("glew" ,glew)
8993 ("libpng" ,libpng)
8994 ("openal" ,openal)
8995 ("openscenegraph" ,openscenegraph-3.4)
8996 ("plib" ,plib)
8997 ("qtbase" ,qtbase)
8998 ("qtdeclarative" ,qtdeclarative)
8999 ("qtsvg" ,qtsvg)
9000 ("simgear" ,simgear)
9001 ("speexdsp" ,speexdsp)
9002 ("sqlite" ,sqlite)
9003 ("zlib" ,zlib)))
9004 (native-inputs
9005 `(("cppunit" ,cppunit)
9006 ("pkg-config" ,pkg-config)
9007 ("qttools" ,qttools)
9008 ("flightgear-data"
9009 ,(origin
9010 (method url-fetch)
9011 (uri (string-append "mirror://sourceforge/flightgear/release-"
9012 (version-major+minor version) "/"
9013 "FlightGear-" version "-data.tar.bz2"))
9014 (sha256
9015 (base32
9016 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9017 (home-page "https://home.flightgear.org/")
9018 (synopsis "Flight simulator")
9019 (description "The goal of the FlightGear project is to create a
9020 sophisticated flight simulator framework for use in research or academic
9021 environments, pilot training, as an industry engineering tool, for DIY-ers to
9022 pursue their favorite interesting flight simulation idea, and last but
9023 certainly not least as a fun, realistic, and challenging desktop flight
9024 simulator.")
9025 (license license:gpl2+)))
9026
9027 (define-public jumpnbump
9028 (package
9029 (name "jumpnbump")
9030 (version "1.61")
9031 (source (origin
9032 (method git-fetch)
9033 (uri (git-reference
9034 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9035 (commit version)))
9036 (file-name (git-file-name name version))
9037 (sha256
9038 (base32
9039 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9040 (build-system gnu-build-system)
9041 (arguments
9042 `(#:make-flags
9043 (list "CC=gcc"
9044 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9045 #:tests? #f ;no test
9046 #:phases
9047 (modify-phases %standard-phases
9048 (delete 'configure) ;no configure script
9049 (add-after 'unpack 'fix-sdl-path
9050 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9051 ;; directory, not SDL-union provided as an input to the package.
9052 ;; We force the latter with "--prefix=" option.
9053 (lambda* (#:key inputs #:allow-other-keys)
9054 (substitute* "Makefile"
9055 (("sdl2-config" command)
9056 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9057 #t)))))
9058 (inputs
9059 `(("bzip2" ,bzip2)
9060 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9061 ("zlib" ,zlib)))
9062 (native-inputs
9063 `(("gettext" ,gettext-minimal))) ;for msgfmt
9064 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9065 (synopsis "Multiplayer platform game with bunnies")
9066 (description "You, as a bunny, have to jump on your opponents to make them
9067 explode. It is a true multiplayer game; you cannot play this alone. You can
9068 play with up to four players simultaneously. It has network support.")
9069 (license license:gpl2+)))
9070
9071 (define-public hedgewars
9072 (package
9073 (name "hedgewars")
9074 (version "1.0.0")
9075 (source (origin
9076 (method url-fetch)
9077 (uri (string-append "https://www.hedgewars.org/download/releases/"
9078 "hedgewars-src-" version ".tar.bz2"))
9079 (sha256
9080 (base32
9081 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9082 (build-system cmake-build-system)
9083 (arguments
9084 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9085 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9086 ;; a Pascal to C translator and Clang instead.
9087 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9088 "-Dhaskell_flags=-dynamic;-fPIC")
9089 #:phases
9090 (modify-phases %standard-phases
9091 (replace 'check
9092 (lambda _ (invoke "ctest")))
9093 (add-after 'install 'install-icon
9094 (lambda _
9095 ;; Install icon for the desktop file.
9096 (let* ((out (assoc-ref %outputs "out"))
9097 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9098 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9099 (install-file "misc/hedgewars.png" icons)))
9100 #t)))))
9101 (inputs
9102 `(("ffmpeg" ,ffmpeg)
9103 ("freeglut" ,freeglut)
9104 ("ghc-entropy" ,ghc-entropy)
9105 ("ghc-hslogger" ,ghc-hslogger)
9106 ("ghc-network" ,ghc-network)
9107 ("ghc-random" ,ghc-random)
9108 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9109 ("ghc-sandi" ,ghc-sandi)
9110 ("ghc-sha" ,ghc-sha)
9111 ("ghc-utf8-string" ,ghc-utf8-string)
9112 ("ghc-vector" ,ghc-vector)
9113 ("ghc-zlib" ,ghc-zlib)
9114 ("glew" ,glew)
9115 ("libpng" ,libpng)
9116 ("lua" ,lua-5.1)
9117 ("physfs" ,physfs)
9118 ("qtbase" ,qtbase)
9119 ("sdl" ,(sdl-union
9120 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9121 (native-inputs
9122 `(("clang" ,clang)
9123 ("ghc" ,ghc)
9124 ("pkg-config" ,pkg-config)
9125 ("qttools" ,qttools)))
9126 (home-page "https://hedgewars.org/")
9127 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9128 (description
9129 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9130 featuring the antics of pink hedgehogs with attitude as they battle from the
9131 depths of hell to the depths of space.
9132
9133 As commander, it's your job to assemble your crack team of hedgehog soldiers
9134 and bring the war to your enemy.")
9135 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9136 ;; scripts are distributed under various terms.
9137 (license (list license:gpl2
9138 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9139 license:expat license:fdl1.3+ license:public-domain
9140 license:zlib))))
9141
9142 (define-public harmonist
9143 (package
9144 (name "harmonist")
9145 (version "0.3.0")
9146 (source (origin
9147 (method git-fetch)
9148 (uri (git-reference
9149 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9150 (commit (string-append "v" version))))
9151 (file-name (git-file-name name version))
9152 (sha256
9153 (base32
9154 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
9155 (build-system go-build-system)
9156 (arguments
9157 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9158 (inputs
9159 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
9160 (home-page "https://harmonist.tuxfamily.org/")
9161 (synopsis "Stealth coffee-break roguelike game")
9162 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9163 coffee-break roguelike game. The game has a heavy focus on tactical
9164 positioning, light and noise mechanisms, making use of various terrain types
9165 and cones of view for monsters. Aiming for a replayable streamlined experience,
9166 the game avoids complex inventory management and character building, relying
9167 on items and player adaptability for character progression.")
9168 (license license:isc)))
9169
9170 (define-public harmonist-tk
9171 (package
9172 (inherit harmonist)
9173 (name "harmonist-tk")
9174 (arguments
9175 (append
9176 (package-arguments harmonist)
9177 `(#:phases
9178 (modify-phases %standard-phases
9179 (replace 'build
9180 (lambda _
9181 (invoke "go" "install" "-v" "-x" "--tags" "tk"
9182 "git.tuxfamily.org/harmonist/harmonist")))
9183 (replace 'check
9184 (lambda _
9185 (invoke "go" "test" "--tags" "tk"
9186 "git.tuxfamily.org/harmonist/harmonist")))))))
9187 (inputs
9188 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
9189
9190 (define-public drascula
9191 (package
9192 (name "drascula")
9193 (version "1.0")
9194 (source (origin
9195 (method url-fetch)
9196 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9197 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9198 "drascula-" version ".zip"))
9199 (sha256
9200 (base32
9201 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9202 (build-system trivial-build-system)
9203 (arguments
9204 `(#:modules ((guix build utils))
9205 #:builder
9206 (begin
9207 (use-modules (guix build utils)
9208 (ice-9 match))
9209 (let* ((out (assoc-ref %outputs "out"))
9210 (share (string-append out "/share/drascula"))
9211 (scummvm (assoc-ref %build-inputs "scummvm")))
9212 ;; Install data.
9213 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9214 "/bin/unzip"))
9215 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9216 (for-each
9217 (lambda (input)
9218 (invoke unzip
9219 "-j"
9220 (assoc-ref %build-inputs input)
9221 "-x" "__MACOSX")
9222 ;; Every input provides "readme.txt", and we want to
9223 ;; preserve them all. Therefore we rename them first.
9224 (match input
9225 ("drascula-int"
9226 (rename-file "readme.txt" "readme-international.txt"))
9227 ("drascula-audio"
9228 (rename-file "readme.txt" "readme-audio.txt"))
9229 (_ #f))
9230 ;; Install documentation.
9231 (for-each (lambda (f) (install-file f doc))
9232 (find-files "." "\\.(txt|doc)$"))
9233 ;; Install data.
9234 (for-each (lambda (f) (install-file f share))
9235 (find-files "." "\\.(ogg|00[0-9])$")))
9236 '("drascula-audio" "drascula-int" "source")))
9237 ;; Create standalone executable.
9238 (let* ((bin (string-append out "/bin"))
9239 (executable (string-append bin "/drascula"))
9240 (bash (string-append (assoc-ref %build-inputs "bash")
9241 "/bin/bash")))
9242 (mkdir-p bin)
9243 (with-output-to-file executable
9244 (lambda ()
9245 (format #t "#!~a~%" bash)
9246 (format #t
9247 "exec ~a/bin/scummvm --path=~a drascula~%"
9248 scummvm share)))
9249 (chmod executable #o755))
9250 ;; Create desktop file. There is no dedicated icon for the
9251 ;; game, so we borrow SCUMMVM's.
9252 (let ((apps (string-append out "/share/applications")))
9253 (mkdir-p apps)
9254 (make-desktop-entry-file
9255 (string-append apps "/drascula.desktop")
9256 #:name "Drascula: The Vampire Strikes Back"
9257 #:generic-name "Drascula"
9258 #:exec (string-append out "/bin/drascula")
9259 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9260 #:categories '("AdventureGame" "Game" "RolePlaying")
9261 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9262 #:comment '((#f "Classic 2D point and click adventure game")
9263 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9264 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9265 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9266 #t))))
9267 (native-inputs
9268 `(("bash" ,bash)
9269 ("unzip" ,unzip)))
9270 (inputs
9271 `(("scummvm" ,scummvm)
9272 ("drascula-int"
9273 ,(let ((version "1.1"))
9274 (origin
9275 (method url-fetch)
9276 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9277 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9278 "drascula-int-" version ".zip"))
9279 (sha256
9280 (base32
9281 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9282 ("drascula-audio"
9283 ,(let ((version "2.0"))
9284 (origin
9285 (method url-fetch)
9286 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9287 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9288 "drascula-audio-" version ".zip"))
9289 (sha256
9290 (base32
9291 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9292 (home-page "https://www.scummvm.org")
9293 (synopsis "Classic 2D point and click adventure game")
9294 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9295 point and click adventure game.
9296
9297 In Drascula you play the role of John Hacker, a British estate agent, that
9298 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9299 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9300 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9301 the World and demonstrating that he is even more evil than his brother Vlad.")
9302 ;; Drascula uses a BSD-like license.
9303 (license (license:non-copyleft "file:///readme.txt"))))
9304
9305 (define (make-lure-package name language hash)
9306 (package
9307 (name name)
9308 (version "1.1")
9309 (source
9310 (origin
9311 (method url-fetch)
9312 (uri (string-append
9313 "mirror://sourceforge/scummvm/extras/"
9314 "Lure%20of%20the%20Temptress/"
9315 name "-" version ".zip"))
9316 (sha256
9317 (base32 hash))))
9318 (build-system trivial-build-system)
9319 (arguments
9320 `(#:modules ((guix build utils))
9321 #:builder
9322 (begin
9323 (use-modules (guix build utils))
9324 (let* ((out (assoc-ref %outputs "out"))
9325 (share (string-append out "/share"))
9326 (data (string-append share "/" ,name "/" ,language))
9327 (apps (string-append share "/applications"))
9328 (bin (string-append out "/bin"))
9329 (executable (string-append bin "/" ,name))
9330 (scummvm (assoc-ref %build-inputs "scummvm")))
9331 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9332 "/bin/unzip")))
9333 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9334 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9335 (for-each (lambda (f) (install-file f doc))
9336 (find-files "." "\\.(txt|PDF|pdf)$")))
9337 (for-each (lambda (f) (install-file f data))
9338 (find-files "." "\\.(vga|VGA)$"))
9339 ;; Build the executable.
9340 (mkdir-p bin)
9341 (let ((bash (assoc-ref %build-inputs "bash")))
9342 (with-output-to-file executable
9343 (lambda ()
9344 (format #t "#!~a/bin/bash~%" bash)
9345 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9346 scummvm ,language data))))
9347 (chmod executable #o755)
9348 ;; Create desktop file. There is no dedicated
9349 ;; icon for the game, so we borrow SCUMMVM's.
9350 (mkdir-p apps)
9351 (with-output-to-file (string-append apps "/" ,name ".desktop")
9352 (lambda _
9353 (format #t
9354 "[Desktop Entry]~@
9355 Name=Lure of the Temptress~@
9356 GenericName=Lure~@
9357 Exec=~a~@
9358 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9359 Categories=AdventureGame;Game;RolePlaying;~@
9360 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9361 Comment=Classic 2D point and click adventure game~@
9362 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9363 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9364 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9365 Type=Application~%"
9366 executable scummvm)))
9367 #t))))
9368 (native-inputs
9369 `(("unzip" ,unzip)))
9370 (inputs
9371 `(("bash" ,bash)
9372 ("scummvm" ,scummvm)))
9373 (home-page "https://www.scummvm.org")
9374 (synopsis "2D point and click fantasy adventure game")
9375 (description
9376 "Lure of the Temptress is a classic 2D point and click adventure game.
9377
9378 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9379 intents and purposes, a good man. After decades of unrest the King has united
9380 the warring factions in his kingdom and all his lands are at peace, except
9381 a remote region around a town called Turnvale. A revolt has recently taken
9382 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9383 Selena, the titular temptress. The king calls together his finest horsemen
9384 and heads off (with you in tow) to Turnvale just to witness how hellish
9385 mercenary monsters called Skorl are invading the town.
9386
9387 The king's men are defeated, the king is killed and you fall of your horse and
9388 bang your head heavily on the ground. You have been *unconscious for a while
9389 when you realize that you are in a dingy cell guarded by a not so friendly
9390 Skorl. Maybe it would be an idea to try and escape...")
9391 (license (license:non-copyleft "file:///README"))))
9392
9393 (define-public lure
9394 (make-lure-package
9395 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9396
9397 (define-public lure-de
9398 (make-lure-package
9399 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9400
9401 (define-public lure-es
9402 (make-lure-package
9403 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9404
9405 (define-public lure-fr
9406 (make-lure-package
9407 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9408
9409 (define-public lure-it
9410 (make-lure-package
9411 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9412
9413 (define (make-queen-package name file-prefix release language hash)
9414 (package
9415 (name name)
9416 (version release)
9417 (source
9418 (origin
9419 (method url-fetch)
9420 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9421 "Flight%20of%20the%20Amazon%20Queen/"
9422 file-prefix release ".zip"))
9423 (sha256
9424 (base32 hash))))
9425 (build-system trivial-build-system)
9426 (arguments
9427 `(#:modules ((guix build utils))
9428 #:builder
9429 (begin
9430 (use-modules (guix build utils))
9431 (let* ((out (assoc-ref %outputs "out"))
9432 (share (string-append out "/share"))
9433 (data (string-append share "/" ,name))
9434 (apps (string-append share "/applications"))
9435 (bin (string-append out "/bin"))
9436 (executable (string-append bin "/" ,name))
9437 (scummvm (assoc-ref %build-inputs "scummvm")))
9438 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9439 "/bin/unzip")))
9440 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9441 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9442 (install-file "readme.txt" doc))
9443 (install-file "queen.1c" data)
9444 (mkdir-p bin)
9445 (let ((bash (assoc-ref %build-inputs "bash")))
9446 (with-output-to-file executable
9447 (lambda ()
9448 (format #t "#!~a/bin/bash~%" bash)
9449 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9450 scummvm data))))
9451 (chmod executable #o755)
9452 ;; Create desktop file. There is no dedicated
9453 ;; icon for the game, so we borrow SCUMMVM's.
9454 (mkdir-p apps)
9455 (with-output-to-file (string-append apps "/" ,name ".desktop")
9456 (lambda _
9457 (format #t
9458 "[Desktop Entry]~@
9459 Name=Flight of the Amazon Queen~@
9460 GenericName=Queen~@
9461 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~@
9462 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~@
9463 Type=Application~@
9464 Exec=~a~@
9465 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9466 Categories=AdventureGame;Game;RolePlaying;~@
9467 Keywords=adventure;game;roleplaying;fantasy;~%"
9468 executable scummvm))))
9469 #t)))
9470 (native-inputs
9471 `(("unzip" ,unzip)))
9472 (inputs
9473 `(("bash" ,bash)
9474 ("scummvm" ,scummvm)))
9475 (home-page "https://www.scummvm.org/")
9476 (synopsis "Classic 2D point and click adventure game")
9477 (description "Flight of the Amazon Queen is a 2D point-and-click
9478 adventure game set in the 1940s.
9479
9480 You assume the role of Joe King, a pilot for hire who is given the job
9481 of flying Faye Russell (a famous movie star) into the Amazon jungle
9482 for a photo shoot. Of course, things never go according to plans.
9483 After an unfortunate turn of events they find themselves stranded in
9484 the heart of the Amazon jungle, where Joe will embark on a quest to
9485 rescue a kidnapped princess and in the process, discover the true
9486 sinister intentions of a suspiciously located Lederhosen company. In
9487 a rich 2D environment, Joe will cross paths with a variety of unlikely
9488 jungle inhabitants including, but not limited to, a tribe of Amazon
9489 women and 6-foot-tall pygmies.")
9490 (license (license:non-copyleft "file:///readme.txt"))))
9491
9492 (define-public queen
9493 (make-queen-package
9494 "queen" "FOTAQ_Talkie-" "1.1" "en"
9495 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9496
9497 (define-public queen-de
9498 (make-queen-package
9499 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9500 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9501
9502 (define-public queen-fr
9503 (make-queen-package
9504 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9505 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9506
9507 (define-public queen-it
9508 (make-queen-package
9509 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9510 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9511
9512 (define-public sky
9513 (package
9514 (name "sky")
9515 (version "1.2") ;1.3 is floppy version
9516 (source
9517 (origin
9518 (method url-fetch)
9519 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9520 "Beneath%20a%20Steel%20Sky/"
9521 "bass-cd-" version ".zip"))
9522 (sha256
9523 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9524 (build-system trivial-build-system)
9525 (arguments
9526 `(#:modules ((guix build utils))
9527 #:builder
9528 (begin
9529 (use-modules (guix build utils))
9530 (let* ((out (assoc-ref %outputs "out"))
9531 (share (string-append out "/share"))
9532 (data (string-append share "/" ,name))
9533 (apps (string-append share "/applications"))
9534 (bin (string-append out "/bin"))
9535 (executable (string-append bin "/" ,name))
9536 (scummvm (assoc-ref %build-inputs "scummvm")))
9537 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9538 "/bin/unzip")))
9539 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9540 (let ((doc (string-append share "/doc/bass-" ,version)))
9541 (install-file "readme.txt" doc))
9542 (for-each (lambda (f) (install-file f data))
9543 (find-files "." "^sky\\."))
9544 ;; Build the executable.
9545 (mkdir-p bin)
9546 (let ((bash (assoc-ref %build-inputs "bash")))
9547 (with-output-to-file executable
9548 (lambda ()
9549 (format #t "#!~a/bin/bash~%" bash)
9550 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9551 (chmod executable #o755)
9552 ;; Create desktop file. There is no dedicated
9553 ;; icon for the game, so we borrow SCUMMVM's.
9554 (mkdir-p apps)
9555 (with-output-to-file (string-append apps "/" ,name ".desktop")
9556 (lambda _
9557 (format #t
9558 "[Desktop Entry]~@
9559 Name=Beneath a Steel Sky~@
9560 GenericName=Bass~@
9561 Exec=~a~@
9562 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9563 Categories=AdventureGame;Game;RolePlaying;~@
9564 Keywords=adventure;game;roleplaying;cyberpunk;~@
9565 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9566 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9567 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9568 Type=Application~%"
9569 executable scummvm)))
9570 #t))))
9571 (native-inputs
9572 `(("unzip" ,unzip)))
9573 (inputs
9574 `(("bash" ,bash)
9575 ("scummvm" ,scummvm)))
9576 (home-page "https://www.scummvm.org/")
9577 (synopsis "Classic 2D point and click science-fiction adventure game")
9578 (description
9579 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9580 post-apocalyptic vision of the future. It revolves around Union City,
9581 where selfishness, rivalry, and corruption by its citizens seems to be
9582 all too common, those who can afford it live underground, away from
9583 the pollution and social problems which are plaguing the city.
9584
9585 You take on the role of Robert Foster, an outcast of sorts from the
9586 city since a boy who was raised in a remote environment outside of
9587 Union City simply termed ``the gap''. Robert's mother took him away
9588 from Union City as a child on their way to ``Hobart'' but the
9589 helicopter crashed on its way. Unfortunately, Robert's mother died,
9590 but he survived and was left to be raised by a local tribe from the
9591 gap.
9592
9593 Years later, Union City security drops by and abducts Robert, killing
9594 his tribe in the process; upon reaching the city the helicopter taking
9595 him there crashes with him escaping, high upon a tower block in the
9596 middle of the city. He sets out to discover the truth about his past,
9597 and to seek vengeance for the killing of his tribe.")
9598 (license (license:non-copyleft "file:///readme.txt"))))
9599
9600 (define-public gnurobots
9601 (package
9602 (name "gnurobots")
9603 (version "1.2.0")
9604 (source
9605 (origin
9606 (method url-fetch)
9607 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9608 version ".tar.gz"))
9609 (sha256
9610 (base32
9611 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9612 (build-system gnu-build-system)
9613 (inputs
9614 `(("glib" ,glib)
9615 ("gtk+" ,gtk+-2)
9616 ("vte" ,vte/gtk+-2)
9617 ("readline" ,readline)
9618 ("guile" ,guile-1.8)))
9619 (native-inputs
9620 `(("pkg-config" ,pkg-config)))
9621 (arguments
9622 `(#:make-flags
9623 (list
9624 ;; Do not abort build on "deprecated-declarations" warnings.
9625 "CFLAGS=-Wno-error=deprecated-declarations"
9626 ;; Find readline headers in sub-directory.
9627 (string-append "READLINE_CFLAGS=-I"
9628 (assoc-ref %build-inputs "readline")
9629 "/include/readline/"))
9630 #:phases
9631 (modify-phases %standard-phases
9632 (add-after 'install 'install-doc
9633 (lambda* (#:key outputs #:allow-other-keys)
9634 (install-file "doc/Robots-HOWTO"
9635 (string-append (assoc-ref outputs "out")
9636 "/share/doc/gnurobots-"
9637 ,version))
9638 #t)))))
9639 (home-page "https://www.gnu.org/software/gnurobots/")
9640 (synopsis "Program a little robot and watch it explore a world")
9641 (description
9642 "GNU Robots is a game in which you program a robot to explore a world
9643 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9644 the game is to stay alive and collect prizes. The robot program conveniently
9645 may be written in a plain text file in the Scheme programming language.")
9646 (license license:gpl3+)))
9647
9648 (define-public ri-li
9649 (package
9650 (name "ri-li")
9651 (version "2.0.1")
9652 (source (origin
9653 (method url-fetch)
9654 (uri (string-append "mirror://sourceforge/ri-li/"
9655 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9656 "Ri-li-" version ".tar.bz2"))
9657 (sha256
9658 (base32
9659 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9660 ;; Taken from
9661 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9662 ;; It doesn't build otherwise.
9663 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9664 (build-system gnu-build-system)
9665 (arguments
9666 `(#:phases
9667 (modify-phases %standard-phases
9668 ;; Remove "gentoo" subdirectory from Makefile, as it is
9669 ;; missing a make file and generates a build failure.
9670 (add-after 'configure 'fix-build
9671 (lambda _
9672 (substitute* "Makefile"
9673 ((" gentoo") ""))
9674 #t))
9675 (add-after 'install 'install-desktop-file
9676 (lambda* (#:key outputs #:allow-other-keys)
9677 (let* ((out (assoc-ref outputs "out"))
9678 (apps (string-append out "/share/applications"))
9679 (pixmaps (string-append out "/share/pixmaps")))
9680 (for-each (lambda (f) (install-file f pixmaps))
9681 (find-files "data" "\\.(png|ico)$"))
9682 (mkdir-p apps)
9683 (with-output-to-file (string-append apps "/ri-li.desktop")
9684 (lambda _
9685 (format #t
9686 "[Desktop Entry]~@
9687 Name=Ri-li~@
9688 Exec=~a/bin/Ri_li~@
9689 Icon=~a/Ri-li-icon-32x32.png~@
9690 Categories=Game;ArcadeGame;~@
9691 Keywords=toy;train;wooden;snake-like;engine;~@
9692 Comment=a toy simulator game~@
9693 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9694 Comment[fr]=un jeu de petit train~@
9695 Comment[ro_RO]=un joc cu un tren de jucărie~@
9696 Terminal=false~@
9697 Type=Application~%"
9698 out pixmaps))))
9699 #t))
9700 (add-after 'install-desktop-file 'remove-spurious-files
9701 ;; Delete redundant files already installed somewhere else.
9702 (lambda* (#:key outputs #:allow-other-keys)
9703 (let ((out (assoc-ref outputs "out")))
9704 (for-each delete-file
9705 (find-files (string-append out "/share/Ri-li")
9706 "\\.(png|ico)|COPYING"))
9707 #t))))))
9708 (inputs
9709 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9710 (home-page "http://www.ri-li.org")
9711 (synopsis "Toy train simulation game")
9712 (description "Ri-li is a game in which you drive a wooden toy
9713 steam locomotive across many levels and collect all the coaches to
9714 win.")
9715 ;; The project is dual-licensed GPL2+ and GPL3+.
9716 (license (list license:gpl2+ license:gpl3+))))
9717
9718 (define-public freeorion
9719 (package
9720 (name "freeorion")
9721 (version "0.4.10")
9722 (source
9723 (origin
9724 (method url-fetch)
9725 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9726 "download/v" version "/FreeOrion_v" version
9727 "_2020-07-10.f3d403e_Source.tar.gz"))
9728 (sha256
9729 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9730 (modules '((guix build utils)))
9731 (snippet
9732 '(begin
9733 ;; There are some bundled fonts.
9734 (for-each delete-file-recursively '("default/data/fonts"))
9735 #t))))
9736 (build-system cmake-build-system)
9737 (arguments
9738 '(#:tests? #f ;no test
9739 #:phases
9740 (modify-phases %standard-phases
9741 (add-after 'unpack 'unbundle-fonts
9742 (lambda* (#:key inputs #:allow-other-keys)
9743 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9744 "/share/fonts/truetype/")))
9745 (substitute* "UI/ClientUI.cpp"
9746 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9747 all type)
9748 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9749 #t))))))
9750 (inputs
9751 `(("boost" ,boost)
9752 ("boost_signals" ,boost-signals2)
9753 ("font-dejavu" ,font-dejavu)
9754 ("font-roboto" ,font-google-roboto)
9755 ("freetype2" ,freetype)
9756 ("glew" ,glew)
9757 ("glu" ,glu)
9758 ("libogg" ,libogg)
9759 ("libpng" ,libpng)
9760 ("libvorbis" ,libvorbis)
9761 ("openal" ,openal)
9762 ("python" ,python)
9763 ("sdl2" ,sdl2)
9764 ("zlib" ,zlib)))
9765 (home-page "https://www.freeorion.org/index.php/Main_Page")
9766 (synopsis "Turn-based space empire and galactic conquest computer game")
9767 (description
9768 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9769 computer game being designed and built by the FreeOrion project. Control an
9770 empire with the goal of exploring the galaxy, expanding your territory,
9771 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9772 inspired by the tradition of the Master of Orion games, but is not a clone or
9773 remake of that series or any other game.")
9774 ;; Source code is released under gpl2. Artwork, music and sounds, and
9775 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9776 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9777 ;; released under lgpl2.1+.
9778 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9779
9780 (define-public leela-zero
9781 (package
9782 (name "leela-zero")
9783 (version "0.17")
9784 (source
9785 (origin
9786 (method git-fetch)
9787 (uri (git-reference
9788 (url "https://github.com/leela-zero/leela-zero")
9789 (commit (string-append "v" version))))
9790 (file-name (git-file-name name version))
9791 (sha256
9792 (base32
9793 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
9794 (patches (search-patches "leela-zero-gtest.patch"))))
9795 (build-system cmake-build-system)
9796 (native-inputs
9797 `(("googletest" ,googletest)))
9798 (inputs
9799 `(("boost" ,boost)
9800 ("ocl-icd" ,ocl-icd)
9801 ("openblas" ,openblas)
9802 ("opencl-headers" ,opencl-headers)
9803 ("qtbase" ,qtbase)
9804 ("zlib" ,zlib)))
9805 (arguments
9806 '(#:configure-flags '("-DUSE_BLAS=YES")
9807 #:phases (modify-phases %standard-phases
9808 (add-before 'configure 'fix-tests
9809 (lambda* (#:key outputs #:allow-other-keys)
9810 (let ((home (getcwd)))
9811 (setenv "HOME" home)
9812 (substitute* "src/tests/gtests.cpp"
9813 (("\\.\\./src/tests/0k\\.txt")
9814 (string-append home "/src/tests/0k.txt"))
9815 (("cfg_gtp_mode = true;")
9816 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
9817 #t))
9818 (replace 'check
9819 (lambda _
9820 (invoke "./tests"))))))
9821 (home-page "https://github.com/leela-zero/leela-zero")
9822 (synopsis "Program playing the game of Go")
9823 (description
9824 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
9825 the AlphaGo Zero paper. The current best network weights file for the engine
9826 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
9827 (license license:gpl3+)))
9828
9829 (define-public q5go
9830 (package
9831 (name "q5go")
9832 (version "1.0")
9833 (source (origin
9834 (method git-fetch)
9835 (uri (git-reference
9836 (url "https://github.com/bernds/q5Go")
9837 (commit (string-append "q5go-" version))))
9838 (file-name (git-file-name name version))
9839 (sha256
9840 (base32
9841 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
9842 (build-system gnu-build-system)
9843 (native-inputs
9844 `(("pkg-config" ,pkg-config)))
9845 (inputs
9846 `(("qtbase" ,qtbase)
9847 ("qtmultimedia" ,qtmultimedia)
9848 ("qtsvg" ,qtsvg)))
9849 (arguments
9850 '(#:phases
9851 (modify-phases %standard-phases
9852 (add-after 'unpack 'fix-configure-script
9853 (lambda _
9854 ;; Bypass the unavailable qtchooser program.
9855 (substitute* "configure"
9856 (("test -z \"QTCHOOSER\"")
9857 "false")
9858 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
9859 command))
9860 #t))
9861 (add-after 'unpack 'fix-paths
9862 (lambda _
9863 (substitute* '("src/pics/Makefile.in"
9864 "src/translations/Makefile.in")
9865 (("\\$\\(datadir\\)/qGo/")
9866 "$(datadir)/q5go/"))
9867 #t))
9868 (add-after 'install 'install-desktop-file
9869 (lambda* (#:key outputs #:allow-other-keys)
9870 (let* ((out (assoc-ref outputs "out"))
9871 (apps (string-append out "/share/applications"))
9872 (pics (string-append out "/share/q5go/pics")))
9873 (delete-file-recursively (string-append out "/share/applnk"))
9874 (delete-file-recursively (string-append out "/share/mimelnk"))
9875 (install-file "../source/src/pics/Bowl.ico" pics)
9876 (mkdir-p apps)
9877 (with-output-to-file (string-append apps "/q5go.desktop")
9878 (lambda _
9879 (format #t
9880 "[Desktop Entry]~@
9881 Name=q5go~@
9882 Exec=~a/bin/q5go~@
9883 Icon=~a/Bowl.ico~@
9884 Categories=Game;~@
9885 Comment=Game of Go~@
9886 Comment[de]=Spiel des Go~@
9887 Comment[eo]=Goo~@
9888 Comment[es]=Juego de Go~@
9889 Comment[fr]=Jeu de Go~@
9890 Comment[ja]=囲碁~@
9891 Comment[ko]=바둑~@
9892 Comment[zh]=围棋~@
9893 Terminal=false~@
9894 Type=Application~%"
9895 out pics))))
9896 #t)))))
9897 (synopsis "Qt GUI to play the game of Go")
9898 (description
9899 "This a tool for Go players which performs the following functions:
9900 @itemize
9901 @item SGF editor,
9902 @item Analysis frontend for Leela Zero (or compatible engines),
9903 @item GTP interface (to play against an engine),
9904 @item IGS client (to play on the internet),
9905 @item Export games to a variety of formats.
9906 @end itemize")
9907 (home-page "https://github.com/bernds/q5Go")
9908 (license license:gpl2+)))
9909
9910 (define-public ktuberling
9911 (package
9912 (name "ktuberling")
9913 (version "20.12.0")
9914 (source
9915 (origin
9916 (method url-fetch)
9917 (uri (string-append "mirror://kde/stable/release-service/" version
9918 "/src/ktuberling-" version ".tar.xz"))
9919 (sha256
9920 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
9921 (build-system qt-build-system)
9922 (native-inputs
9923 `(("extra-cmake-modules" ,extra-cmake-modules)
9924 ("kdoctools" ,kdoctools)
9925 ("perl" ,perl)))
9926 (inputs
9927 `(("kcompletion" ,kcompletion)
9928 ("kconfigwidgets" ,kconfigwidgets)
9929 ("kcoreaddons" ,kcoreaddons)
9930 ("kcrash" ,kcrash)
9931 ("kdbusaddons" ,kdbusaddons)
9932 ("ki18n" ,ki18n)
9933 ("kio" ,kio)
9934 ("kwidgetsaddons" ,kwidgetsaddons)
9935 ("kxmlgui" ,kxmlgui)
9936 ("libkdegames" ,libkdegames)
9937 ("python" ,python-wrapper)
9938 ("qtbase" ,qtbase)
9939 ("qtmultimedia" ,qtmultimedia)
9940 ("qtdeclarative" ,qtdeclarative)
9941 ("qtsvg" ,qtsvg)))
9942 (home-page "https://games.kde.org/")
9943 (synopsis "Stamp drawing toy")
9944 (description "KTuberling is a drawing toy intended for small children and
9945 adults who remain young at heart. The game has no winner; the only purpose is
9946 to make the funniest faces you can. Several activities are possible, e.g.:
9947
9948 @itemize
9949 @item Give the potato a funny face, clothes, and other goodies
9950 @item Build a small town, complete with school, zoo, and fire department
9951 @item Create a fantastic moonscape with spaceships and aliens
9952 @item Top a pizza
9953 @end itemize
9954
9955 KTuberling can speak the name of each the object in several languages,
9956 to assist in learning basic vocabulary.
9957
9958 This package is part of the KDE games module.")
9959 (license (list license:gpl2+ license:fdl1.2+))))
9960
9961 (define-public picmi
9962 (package
9963 (name "picmi")
9964 (version "20.12.0")
9965 (source
9966 (origin
9967 (method url-fetch)
9968 (uri (string-append "mirror://kde/stable/release-service/" version
9969 "/src/picmi-" version ".tar.xz"))
9970 (sha256
9971 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
9972 (build-system qt-build-system)
9973 (native-inputs
9974 `(("extra-cmake-modules" ,extra-cmake-modules)
9975 ("kdoctools" ,kdoctools)))
9976 (inputs
9977 `(("kcoreaddons" ,kcoreaddons)
9978 ("kcrash" ,kcrash)
9979 ("kdbusaddons" ,kdbusaddons)
9980 ("kdeclarative" ,kdeclarative)
9981 ("ki18n" ,ki18n)
9982 ("kio" ,kio)
9983 ("knewstuff" ,knewstuff)
9984 ("kxmlgui" ,kxmlgui)
9985 ("libkdegames" ,libkdegames)
9986 ("qtbase" ,qtbase)
9987 ("qtdeclarative" ,qtdeclarative)
9988 ("qtsvg" ,qtsvg)))
9989 (home-page "https://games.kde.org/")
9990 (synopsis "Number logic game")
9991 (description "Picmi is a number logic game in which cells in a grid have
9992 to be colored or left blank according to numbers given at the side of the
9993 grid. The aim is to reveal a hidden picture.
9994
9995 This package is part of the KDE games module.")
9996 (license (list license:gpl2+ license:fdl1.2+))))
9997
9998 (define-public kolf
9999 (package
10000 (name "kolf")
10001 (version "20.12.0")
10002 (source
10003 (origin
10004 (method url-fetch)
10005 (uri (string-append "mirror://kde/stable/release-service/" version
10006 "/src/kolf-" version ".tar.xz"))
10007 (sha256
10008 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10009 (build-system qt-build-system)
10010 (native-inputs
10011 `(("extra-cmake-modules" ,extra-cmake-modules)
10012 ("kdoctools" ,kdoctools)))
10013 (inputs
10014 `(("kcompletion" ,kcompletion)
10015 ("kconfigwidgets" ,kconfigwidgets)
10016 ("kcoreaddons" ,kcoreaddons)
10017 ("kcrash" ,kcrash)
10018 ("kdbusaddons" ,kdbusaddons)
10019 ("ki18n" ,ki18n)
10020 ("kio" ,kio)
10021 ("kwidgetsaddons" ,kwidgetsaddons)
10022 ("kxmlgui" ,kxmlgui)
10023 ("ktextwidgets" ,ktextwidgets)
10024 ("libkdegames" ,libkdegames)
10025 ("qtbase" ,qtbase)
10026 ("qtdeclarative" ,qtdeclarative)))
10027 (home-page "https://games.kde.org/")
10028 (synopsis "Miniature golf game")
10029 (description "Kolf is a miniature golf game for one to ten players. The
10030 game is played from an overhead view, with a short bar representing the golf
10031 club. Kolf features many different types of objects, such as water hazards,
10032 slopes, sand traps, and black holes (warps), among others.
10033
10034 Features are:
10035 @itemize
10036 @item Single and Multi-player (up to ten players) modes
10037 @item High scores table
10038 @item Dynamic courses
10039 @item Third-party courses
10040 @item Course editor
10041 @end itemize
10042
10043 This package is part of the KDE games module.")
10044 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10045
10046 (define-public libkmahjongg
10047 (package
10048 (name "libkmahjongg")
10049 (version "20.12.0")
10050 (source
10051 (origin
10052 (method url-fetch)
10053 (uri (string-append "mirror://kde/stable/release-service/"
10054 version "/src/libkmahjongg-" version ".tar.xz"))
10055 (sha256
10056 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10057 (build-system qt-build-system)
10058 (native-inputs
10059 `(("extra-cmake-modules" ,extra-cmake-modules)))
10060 (inputs
10061 `(("kauth" ,kauth)
10062 ("kcompletion" ,kcompletion)
10063 ;("kconfig" ,kconfig)
10064 ("kcodecs" ,kcodecs)
10065 ("kconfigwidgets" ,kconfigwidgets)
10066 ("kcoreaddons" ,kcoreaddons)
10067 ("ki18n" ,ki18n)
10068 ("kwidgetsaddons" ,kwidgetsaddons)
10069 ("qtbase" ,qtbase)
10070 ("qtsvg" ,qtsvg)))
10071 (home-page "https://games.kde.org/")
10072 (synopsis "Shared library for kmahjongg and kshisen")
10073 (description "Shared library and common files for kmahjongg, kshisen and
10074 other Mah Jongg like games.")
10075 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10076
10077 (define-public kmahjongg
10078 (package
10079 (name "kmahjongg")
10080 (version "20.12.0")
10081 (source
10082 (origin
10083 (method url-fetch)
10084 (uri (string-append "mirror://kde/stable/release-service/"
10085 version "/src/kmahjongg-" version ".tar.xz"))
10086 (sha256
10087 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10088 (build-system qt-build-system)
10089 (native-inputs
10090 `(("extra-cmake-modules" ,extra-cmake-modules)
10091 ("kdoctools" ,kdoctools)))
10092 (inputs
10093 `(("kcompletion" ,kcompletion)
10094 ("kcrash" ,kcrash)
10095 ("kdbusaddons" ,kdbusaddons)
10096 ("kdeclarative" ,kdeclarative)
10097 ("ki18n" ,ki18n)
10098 ("knewstuff" ,knewstuff)
10099 ("kxmlgui" ,kxmlgui)
10100 ("libkdegames" ,libkdegames)
10101 ("libkmahjongg" ,libkmahjongg)
10102 ("qtbase" ,qtbase)
10103 ("qtdeclarative" ,qtdeclarative)
10104 ("qtsvg" ,qtsvg)))
10105 (home-page "https://games.kde.org/")
10106 (synopsis "Tile laying patience")
10107 (description "In KMahjongg the tiles are scrambled and staked on top of
10108 each other to resemble a certain shape. The player is then expected to remove
10109 all the tiles off the game board by locating each tile's matching pair.
10110
10111 A variety of tile layouts are included, as well as an editor to create new
10112 layouts.
10113
10114 This package is part of the KDE games module.")
10115 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10116
10117 (define-public kshisen
10118 (package
10119 (name "kshisen")
10120 (version "20.12.0")
10121 (source
10122 (origin
10123 (method url-fetch)
10124 (uri (string-append "mirror://kde/stable/release-service/"
10125 version "/src/kshisen-" version ".tar.xz"))
10126 (sha256
10127 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10128 (build-system qt-build-system)
10129 (native-inputs
10130 `(("extra-cmake-modules" ,extra-cmake-modules)
10131 ;("perl" ,perl)
10132 ;("pkg-config" ,pkg-config)
10133 ("kdoctools" ,kdoctools)))
10134 (inputs
10135 `(("kauth" ,kauth)
10136 ("kcompletion" ,kcompletion)
10137 ("kconfigwidgets" ,kconfigwidgets)
10138 ("kcoreaddons" ,kcoreaddons)
10139 ("kcrash" ,kcrash)
10140 ("kdbusaddons" ,kdbusaddons)
10141 ("ki18n" ,ki18n)
10142 ("kxmlgui" ,kxmlgui)
10143 ("libkdegames" ,libkdegames)
10144 ("libkmahjongg" ,libkmahjongg)
10145 ("qtbase" ,qtbase)
10146 ("qtdeclarative" ,qtdeclarative)))
10147 (home-page "https://games.kde.org/")
10148 (synopsis "Shisen-Sho solitaire game")
10149 (description "KShisen is a solitaire-like game played using the standard
10150 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10151 scrambled tiles
10152
10153 This package is part of the KDE games module.")
10154 (license license:gpl2+)))
10155
10156 (define-public kajongg
10157 (package
10158 (name "kajongg")
10159 (version "20.12.0")
10160 (source
10161 (origin
10162 (method url-fetch)
10163 (uri (string-append "mirror://kde/stable/release-service/"
10164 version "/src/kajongg-" version ".tar.xz"))
10165 (sha256
10166 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10167 (build-system qt-build-system)
10168 (arguments
10169 `(#:phases
10170 (modify-phases %standard-phases
10171 (add-after 'install 'wrap
10172 (lambda* (#:key outputs #:allow-other-keys)
10173 (let ((out (assoc-ref outputs "out")))
10174 (wrap-program (string-append out "/bin/kajongg")
10175 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
10176 #t))))))
10177 (native-inputs
10178 `(("extra-cmake-modules" ,extra-cmake-modules)
10179 ;("perl" ,perl)
10180 ("kdoctools" ,kdoctools)))
10181 (inputs
10182 `(("kconfig" ,kconfig)
10183 ("kconfigwidgets" ,kconfigwidgets)
10184 ("kcoreaddons" ,kcoreaddons)
10185 ("ki18n" ,ki18n)
10186 ("libkmahjongg" ,libkmahjongg)
10187 ("python" ,python)
10188 ("python-twisted" ,python-twisted)
10189 ("python-pyqt" ,python-pyqt)
10190 ("qtbase" ,qtbase)
10191 ("qtsvg" ,qtsvg)))
10192 (home-page "https://games.kde.org/")
10193 (synopsis "Classical Mah Jongg game for 4 players")
10194 (description "Kajongg is the ancient Chinese board game for 4 players.
10195
10196 If you are looking for the Mah Jongg solitaire please use the application
10197 kmahjongg.
10198
10199 Kajongg can be used in two different ways: Scoring a manual game where you
10200 play as always and use Kajongg for the computation of scores and for
10201 bookkeeping. Or you can use Kajongg to play against any combination of other
10202 human players or computer players.
10203
10204 This package is part of the KDE games module.")
10205 (license (list license:gpl2+ license:fdl1.2+))))
10206
10207 (define-public kbreakout
10208 (package
10209 (name "kbreakout")
10210 (version "20.12.0")
10211 (source
10212 (origin
10213 (method url-fetch)
10214 (uri (string-append "mirror://kde/stable/release-service/" version
10215 "/src/kbreakout-" version ".tar.xz"))
10216 (sha256
10217 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10218 (build-system qt-build-system)
10219 (native-inputs
10220 `(("extra-cmake-modules" ,extra-cmake-modules)
10221 ("kdoctools" ,kdoctools)))
10222 (inputs
10223 `(("kcompletion" ,kcompletion)
10224 ("kconfig" ,kconfig)
10225 ("kconfigwidgets" ,kconfigwidgets)
10226 ("kcoreaddons" ,kcoreaddons)
10227 ("kcrash" ,kcrash)
10228 ("kdbusaddons" ,kdbusaddons)
10229 ("ki18n" ,ki18n)
10230 ("kwidgetsaddons" ,kwidgetsaddons)
10231 ("kxmlgui" ,kxmlgui)
10232 ("libkdegames" ,libkdegames)
10233 ("qtbase" ,qtbase)
10234 ("qtdeclarative" ,qtdeclarative)))
10235 (home-page "https://games.kde.org/")
10236 (synopsis "Breakout like game")
10237 (description "KBreakout is similar to the classics breakout and xboing,
10238 featuring a number of added graphical enhancements and effects. You control a
10239 paddle at the bottom of the playing-field, and must destroy bricks at the top
10240 by bouncing balls against them.
10241
10242 This package is part of the KDE games module.")
10243 (license (list license:gpl2+ license:fdl1.2+))))
10244
10245 (define-public kmines
10246 (package
10247 (name "kmines")
10248 (version "20.12.0")
10249 (source
10250 (origin
10251 (method url-fetch)
10252 (uri (string-append "mirror://kde/stable/release-service/" version
10253 "/src/kmines-" version ".tar.xz"))
10254 (sha256
10255 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10256 (build-system qt-build-system)
10257 (native-inputs
10258 `(("extra-cmake-modules" ,extra-cmake-modules)
10259 ("kdoctools" ,kdoctools)))
10260 (inputs
10261 `(("kcompletion" ,kcompletion)
10262 ("kconfig" ,kconfig)
10263 ("kconfigwidgets" ,kconfigwidgets)
10264 ("kcoreaddons" ,kcoreaddons)
10265 ("kcrash" ,kcrash)
10266 ("kdbusaddons" ,kdbusaddons)
10267 ("ki18n" ,ki18n)
10268 ("ktextwidgets" ,ktextwidgets)
10269 ("kwidgetsaddons" ,kwidgetsaddons)
10270 ("kxmlgui" ,kxmlgui)
10271 ("libkdegames" ,libkdegames)
10272 ("qtbase" ,qtbase)
10273 ("qtdeclarative" ,qtdeclarative)))
10274 (home-page "https://games.kde.org/")
10275 (synopsis "Classical mine sweeper game")
10276 (description "KMines is a classic Minesweeper game. The idea is to
10277 uncover all the squares without blowing up any mines. When a mine is blown
10278 up, the game is over.
10279
10280 This package is part of the KDE games module.")
10281 (license (list license:gpl2+ license:fdl1.2+))))
10282
10283 (define-public konquest
10284 (package
10285 (name "konquest")
10286 (version "20.12.0")
10287 (source
10288 (origin
10289 (method url-fetch)
10290 (uri (string-append "mirror://kde/stable/release-service/"
10291 version "/src/konquest-" version ".tar.xz"))
10292 (sha256
10293 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10294 (build-system qt-build-system)
10295 (native-inputs
10296 `(("extra-cmake-modules" ,extra-cmake-modules)
10297 ("kdoctools" ,kdoctools)))
10298 (inputs
10299 `(("kcompletion" ,kcompletion)
10300 ("kconfig" ,kconfig)
10301 ("kcoreaddons" ,kcoreaddons)
10302 ("kcrash" ,kcrash)
10303 ("kdbusaddons" ,kdbusaddons)
10304 ("kguiaddons" ,kguiaddons)
10305 ("ki18n" ,ki18n)
10306 ("kwidgetsaddons" ,kwidgetsaddons)
10307 ("kxmlgui" ,kxmlgui)
10308 ("libkdegames" ,libkdegames)
10309 ("qtbase" ,qtbase)
10310 ("qtdeclarative" ,qtdeclarative)
10311 ("qtsvg" ,qtsvg)))
10312 (home-page "https://games.kde.org/")
10313 (synopsis "Simple turn-based strategy game")
10314 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10315 conquer other planets by sending ships to them. The goal is to build an
10316 interstellar empire and ultimately conquer all other player's planets. The
10317 game can be played with up to nine empires, commanded either by the computer
10318 or by puny earthlings.
10319
10320 This package is part of the KDE games module.")
10321 (license (list license:gpl2+ license:fdl1.2+))))
10322
10323 (define-public kbounce
10324 (package
10325 (name "kbounce")
10326 (version "20.12.0")
10327 (source
10328 (origin
10329 (method url-fetch)
10330 (uri (string-append "mirror://kde/stable/release-service/"
10331 version "/src/kbounce-" version ".tar.xz"))
10332 (sha256
10333 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10334 (build-system qt-build-system)
10335 (native-inputs
10336 `(("extra-cmake-modules" ,extra-cmake-modules)
10337 ("kdoctools" ,kdoctools)))
10338 (inputs
10339 `(("kcompletion" ,kcompletion)
10340 ("kconfigwidgets" ,kconfigwidgets)
10341 ("kcoreaddons" ,kcoreaddons)
10342 ("kcrash" ,kcrash)
10343 ("kdbusaddons" ,kdbusaddons)
10344 ("ki18n" ,ki18n)
10345 ("kio" ,kio)
10346 ("kwidgetsaddons" ,kwidgetsaddons)
10347 ("kxmlgui" ,kxmlgui)
10348 ("libkdegames" ,libkdegames)
10349 ("qtbase" ,qtbase)
10350 ("qtdeclarative" ,qtdeclarative)
10351 ("qtsvg" ,qtsvg)))
10352 (home-page "https://games.kde.org/")
10353 (synopsis "Jezzball arcade game")
10354 (description "KBounce is a single player arcade game with the elements of
10355 puzzle. It is played on a field, surrounded by wall, with two or more balls
10356 bouncing around within the walls. The object of the game is to build new
10357 walls to decrease the size of the active field.
10358
10359 This package is part of the KDE games module.")
10360 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10361
10362 (define-public kblocks
10363 (package
10364 (name "kblocks")
10365 (version "20.12.0")
10366 (source
10367 (origin
10368 (method url-fetch)
10369 (uri (string-append "mirror://kde/stable/release-service/"
10370 version "/src/kblocks-" version ".tar.xz"))
10371 (sha256
10372 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10373 (build-system qt-build-system)
10374 (native-inputs
10375 `(("extra-cmake-modules" ,extra-cmake-modules)
10376 ("kdoctools" ,kdoctools)))
10377 (inputs
10378 `(("kcompletion" ,kcompletion)
10379 ("kconfig" ,kconfig)
10380 ("kconfigwidgets" ,kconfigwidgets)
10381 ("kcoreaddons" ,kcoreaddons)
10382 ("kcrash" ,kcrash)
10383 ("kdbusaddons" ,kdbusaddons)
10384 ("ki18n" ,ki18n)
10385 ("kwidgetsaddons" ,kwidgetsaddons)
10386 ("kxmlgui" ,kxmlgui)
10387 ("libkdegames" ,libkdegames)
10388 ("qtbase" ,qtbase)
10389 ("qtdeclarative" ,qtdeclarative)
10390 ("qtsvg" ,qtsvg)))
10391 (home-page "https://games.kde.org/")
10392 (synopsis "Single player falling blocks puzzle game")
10393 (description "KBlocks is the classic Tetris-like falling blocks game.
10394
10395 The idea is to stack the falling blocks to create horizontal lines without any
10396 gaps. When a line is completed it is removed, and more space is available in
10397 the play area. When there is not enough space for blocks to fall, the game is
10398 over.
10399
10400 This package is part of the KDE games module.")
10401 (license (list license:gpl2+ license:fdl1.2+))))
10402
10403 (define-public ksudoku
10404 (package
10405 (name "ksudoku")
10406 (version "20.12.0")
10407 (source
10408 (origin
10409 (method url-fetch)
10410 (uri (string-append "mirror://kde/stable/release-service/"
10411 version "/src/ksudoku-" version ".tar.xz"))
10412 (sha256
10413 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10414 (build-system qt-build-system)
10415 (native-inputs
10416 `(("extra-cmake-modules" ,extra-cmake-modules)
10417 ("kdoctools" ,kdoctools)))
10418 (inputs
10419 `(("karchive" ,karchive)
10420 ("kconfig" ,kconfig)
10421 ("kconfigwidgets" ,kconfigwidgets)
10422 ("kcoreaddons" ,kcoreaddons)
10423 ("kcrash" ,kcrash)
10424 ("kguiaddons" ,kguiaddons)
10425 ("ki18n" ,ki18n)
10426 ("kiconthemes" ,kiconthemes)
10427 ("kio" ,kio)
10428 ("kwidgetsaddons" ,kwidgetsaddons)
10429 ("kxmlgui" ,kxmlgui)
10430 ("libkdegames" ,libkdegames)
10431 ("glu" ,glu)
10432 ("qtbase" ,qtbase)
10433 ("qtdeclarative" ,qtdeclarative)
10434 ("qtsvg" ,qtsvg)))
10435 (home-page "https://games.kde.org/")
10436 (synopsis "Sudoku puzzle game and solver")
10437 (description "KSudoku is a Sudoku game and solver, supporting a range of
10438 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10439 puzzle sheets and find the solution to any Sudoku puzzle.
10440
10441 The word Sudoku means \"single number in an allotted place\" in Japanese.
10442 These are the basic rules: Every Sudoku is a square divided into 3x3
10443 subsquares with 3x3 cells each.
10444
10445 Some cells are filled with a number at the beginning. The remaining ones are
10446 to be filled by the player using numbers from 1 to 9, without repeating a
10447 number twice on each column, row or subsquare (each of them must contain only
10448 one 1, one 2, one 3, and so on). The game requires logic and patience.
10449 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10450 and experience.
10451
10452 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10453 board we use letters): arithmetic relationships between numbers are
10454 irrelevant.
10455
10456 This program supports also 16x16 games with numbers from 1 to 16 and 256
10457 cells with 16 cols, rows and subsquares!
10458
10459 More information at http://en.wikipedia.org/wiki/Sudoku
10460
10461 This package is part of the KDE games module.")
10462 (license (list license:gpl2+ license:fdl1.2+))))
10463
10464 (define-public klines
10465 (package
10466 (name "klines")
10467 (version "20.12.0")
10468 (source
10469 (origin
10470 (method url-fetch)
10471 (uri (string-append "mirror://kde/stable/release-service/" version
10472 "/src/klines-" version ".tar.xz"))
10473 (sha256
10474 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10475 (build-system qt-build-system)
10476 (native-inputs
10477 `(("extra-cmake-modules" ,extra-cmake-modules)
10478 ("kdoctools" ,kdoctools)))
10479 (inputs
10480 `(("kcompletion" ,kcompletion)
10481 ("kconfigwidgets" ,kconfigwidgets)
10482 ("kcoreaddons" ,kcoreaddons)
10483 ("kcrash" ,kcrash)
10484 ("kdbusaddons" ,kdbusaddons)
10485 ("ki18n" ,ki18n)
10486 ("kwidgetsaddons" ,kwidgetsaddons)
10487 ("kxmlgui" ,kxmlgui)
10488 ("libkdegames" ,libkdegames)
10489 ("qtbase" ,qtbase)
10490 ("qtdeclarative" ,qtdeclarative)))
10491 (home-page "https://games.kde.org/")
10492 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10493 (description "KLines is a simple but highly addictive one player game.
10494
10495 The player has to move the colored balls around the game board, gathering them
10496 into the lines of the same color by five. Once the line is complete it is
10497 removed from the board, therefore freeing precious space. In the same time
10498 the new balls keep arriving by three after each move, filling up the game
10499 board.
10500
10501 KLines is a single-player game where the player removes colored balls from the
10502 board by arranging them into lines of five or more. However, every time the
10503 player moves a ball, three more balls are added to the board.
10504
10505 This package is part of the KDE games module.")
10506 (license (list license:gpl2+ license:fdl1.2+))))
10507
10508 (define-public kgoldrunner
10509 (package
10510 (name "kgoldrunner")
10511 (version "20.12.0")
10512 (source
10513 (origin
10514 (method url-fetch)
10515 (uri (string-append "mirror://kde/stable/release-service/" version
10516 "/src/kgoldrunner-" version ".tar.xz"))
10517 (sha256
10518 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
10519 (build-system qt-build-system)
10520 (native-inputs
10521 `(("extra-cmake-modules" ,extra-cmake-modules)
10522 ("kdoctools" ,kdoctools)))
10523 (inputs
10524 `(("kcompletion" ,kcompletion)
10525 ("kcoreaddons" ,kcoreaddons)
10526 ("kcrash" ,kcrash)
10527 ("kdbusaddons" ,kdbusaddons)
10528 ("ki18n" ,ki18n)
10529 ("kio" ,kio)
10530 ("kwidgetsaddons" ,kwidgetsaddons)
10531 ("kxmlgui" ,kxmlgui)
10532 ("libkdegames" ,libkdegames)
10533 ("qtbase" ,qtbase)
10534 ("qtdeclarative" ,qtdeclarative)))
10535 (home-page "https://games.kde.org/")
10536 (synopsis "Action and puzzle solving game")
10537 (description "KGoldrunner is an action game where the hero runs through a
10538 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10539 gold nuggets and escape to the next level. Your enemies are also after the
10540 gold. Worse still, they are after you!.
10541
10542 KGoldrunner is a fast-paced platform game where the player must navigate a
10543 maze while collecting gold nuggets and avoiding enemies. A variety of level
10544 packs are included, as well as an editor to create new levels.
10545
10546 This package is part of the KDE games module.")
10547 (license (list license:gpl2+ license:fdl1.2+))))
10548
10549 (define-public kdiamond
10550 (package
10551 (name "kdiamond")
10552 (version "20.12.0")
10553 (source
10554 (origin
10555 (method url-fetch)
10556 (uri (string-append "mirror://kde/stable/release-service/" version
10557 "/src/kdiamond-" version ".tar.xz"))
10558 (sha256
10559 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
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 ("kconfigwidgets" ,kconfigwidgets)
10568 ("kcoreaddons" ,kcoreaddons)
10569 ("kcrash" ,kcrash)
10570 ("kdbusaddons" ,kdbusaddons)
10571 ("ki18n" ,ki18n)
10572 ("knotifications" ,knotifications)
10573 ("knotifyconfig" ,knotifyconfig)
10574 ("kwidgetsaddons" ,kwidgetsaddons)
10575 ("kxmlgui" ,kxmlgui)
10576 ("libkdegames" ,libkdegames)
10577 ("qtbase" ,qtbase)
10578 ("qtdeclarative" ,qtdeclarative)))
10579 (home-page "https://games.kde.org/")
10580 (synopsis "Three-in-a-row game")
10581 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10582 features unlimited fun with randomly generated games and five difficulty
10583 levels with varying number of diamond colors and board sizes.
10584
10585 This package is part of the KDE games module.")
10586 (license (list license:gpl2+ license:fdl1.2+))))
10587
10588 (define-public kfourinline
10589 (package
10590 (name "kfourinline")
10591 (version "20.12.0")
10592 (source
10593 (origin
10594 (method url-fetch)
10595 (uri (string-append "mirror://kde/stable/release-service/" version
10596 "/src/kfourinline-" version ".tar.xz"))
10597 (sha256
10598 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10599 (build-system qt-build-system)
10600 (native-inputs
10601 `(("extra-cmake-modules" ,extra-cmake-modules)
10602 ("kdoctools" ,kdoctools)))
10603 (inputs
10604 `(("kcompletion" ,kcompletion)
10605 ("kconfig" ,kconfig)
10606 ("kconfigwidgets" ,kconfigwidgets)
10607 ("kcoreaddons" ,kcoreaddons)
10608 ("kcrash" ,kcrash)
10609 ("kdnssd" ,kdnssd)
10610 ("ki18n" ,ki18n)
10611 ("kxmlgui" ,kxmlgui)
10612 ("libkdegames" ,libkdegames)
10613 ("qtbase" ,qtbase)
10614 ("qtdeclarative" ,qtdeclarative)
10615 ("qtsvg" ,qtsvg)))
10616 (home-page "https://games.kde.org/")
10617 (synopsis "Place 4 pieces in a row")
10618 (description "KFourInLine is a board game for two players based on the
10619 Connect-Four game.
10620
10621 KFourInLine is a game where two players take turns dropping pieces into a
10622 grid, the winner being the first to place four pieces in a line.
10623
10624 This package is part of the KDE games module.")
10625 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10626
10627 (define-public kblackbox
10628 (package
10629 (name "kblackbox")
10630 (version "20.12.0")
10631 (source
10632 (origin
10633 (method url-fetch)
10634 (uri (string-append "mirror://kde/stable/release-service/" version
10635 "/src/kblackbox-" version ".tar.xz"))
10636 (sha256
10637 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10638 (build-system qt-build-system)
10639 (native-inputs
10640 `(("extra-cmake-modules" ,extra-cmake-modules)
10641 ("kdoctools" ,kdoctools)))
10642 (inputs
10643 `(("karchive" ,karchive)
10644 ("kcompletion" ,kcompletion)
10645 ("kconfig" ,kconfig)
10646 ("kcoreaddons" ,kcoreaddons)
10647 ("kcrash" ,kcrash)
10648 ("kdbusaddons" ,kdbusaddons)
10649 ("ki18n" ,ki18n)
10650 ("ktextwidgets" ,ktextwidgets)
10651 ("kxmlgui" ,kxmlgui)
10652 ("libkdegames" ,libkdegames)
10653 ("qtbase" ,qtbase)
10654 ("qtdeclarative" ,qtdeclarative)
10655 ("qtsvg" ,qtsvg)))
10656 (home-page "https://games.kde.org/")
10657 (synopsis "Find atoms in a grid by shooting electrons")
10658 (description "KBlackbox is a game of hide and seek played on a grid of
10659 boxes where the computer has hidden several balls. The position of the hidden
10660 balls can be deduced by shooting beams into the box
10661
10662 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10663 player shoots rays into the grid to deduce the positions of hidden objects.
10664
10665 This package is part of the KDE games module.")
10666 (license (list license:gpl2+ license:fdl1.2+))))
10667
10668 (define-public knetwalk
10669 (package
10670 (name "knetwalk")
10671 (version "20.12.0")
10672 (source
10673 (origin
10674 (method url-fetch)
10675 (uri (string-append "mirror://kde/stable/release-service/" version
10676 "/src/knetwalk-" version ".tar.xz"))
10677 (sha256
10678 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
10679 (build-system qt-build-system)
10680 (native-inputs
10681 `(("extra-cmake-modules" ,extra-cmake-modules)
10682 ("kdoctools" ,kdoctools)))
10683 (inputs
10684 `(("kcompletion" ,kcompletion)
10685 ("kconfig" ,kconfig)
10686 ("kconfigwidgets" ,kconfigwidgets)
10687 ("kcoreaddons" ,kcoreaddons)
10688 ("kcrash" ,kcrash)
10689 ("kdbusaddons" ,kdbusaddons)
10690 ("ki18n" ,ki18n)
10691 ("ktextwidgets" ,ktextwidgets)
10692 ("kwidgetsaddons" ,kwidgetsaddons)
10693 ("kxmlgui" ,kxmlgui)
10694 ("libkdegames" ,libkdegames)
10695 ("qtbase" ,qtbase)
10696 ("qtdeclarative" ,qtdeclarative)))
10697 (home-page "https://games.kde.org/")
10698 (synopsis "Turn the board pieces to get all computers connected")
10699 (description "KNetWalk is a small game where you have to build up a
10700 computer network by rotating the wires to connect the terminals to the server.
10701 When the network is build, a highscore-list comes up where competitions can be
10702 fought out.
10703
10704 KNetwalk is a puzzle game where the player arranges sections of wire to
10705 connect all the computers on the board.
10706
10707 This package is part of the KDE games module.")
10708 (license (list license:gpl2+ license:fdl1.2+))))
10709
10710 (define-public bomber
10711 (package
10712 (name "bomber")
10713 (version "20.12.0")
10714 (source
10715 (origin
10716 (method url-fetch)
10717 (uri (string-append "mirror://kde/stable/release-service/" version
10718 "/src/bomber-" version ".tar.xz"))
10719 (sha256
10720 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
10721 (build-system qt-build-system)
10722 (native-inputs
10723 `(("extra-cmake-modules" ,extra-cmake-modules)
10724 ("kdoctools" ,kdoctools)))
10725 (inputs
10726 `(("kcompletiom" ,kcompletion)
10727 ("kconfig" ,kconfig)
10728 ("kcoreaddons" ,kcoreaddons)
10729 ("kcrash" ,kcrash)
10730 ("kdbusaddons" ,kdbusaddons)
10731 ("ki18n" ,ki18n)
10732 ("kxmlgui" ,kxmlgui)
10733 ("libkdegames" ,libkdegames)
10734 ("qtbase" ,qtbase)
10735 ("qtdeclarative" ,qtdeclarative)))
10736 (home-page "https://games.kde.org/")
10737 (synopsis "Arcade bombing game")
10738 (description "Bomber is a single player arcade game.
10739
10740 The player is invading various cities in a plane that is decreasing in height.
10741 The goal of the game is to destroy all the buildings and advance to the next
10742 level. Each level gets a bit harder by increasing the speed of the plane and
10743 the height of the buildings.
10744
10745 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10746 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10747 not destroyed a building in your path, you will crash into it.
10748
10749 This package is part of the KDE games module.")
10750 (license (list license:gpl2+ license:fdl1.2+))))
10751
10752 (define-public granatier
10753 (package
10754 (name "granatier")
10755 (version "20.12.0")
10756 (source
10757 (origin
10758 (method url-fetch)
10759 (uri (string-append "mirror://kde/stable/release-service/" version
10760 "/src/granatier-" version ".tar.xz"))
10761 (sha256
10762 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
10763 (build-system qt-build-system)
10764 (native-inputs
10765 `(("extra-cmake-modules" ,extra-cmake-modules)
10766 ("kdoctools" ,kdoctools)))
10767 (inputs
10768 `(("kcompletion" ,kcompletion)
10769 ("kconfig" ,kconfig)
10770 ("kconfigwidgets" ,kconfigwidgets)
10771 ("kcoreaddons" ,kcoreaddons)
10772 ("kcrash" ,kcrash)
10773 ("kdbusaddons" ,kdbusaddons)
10774 ("ki18n" ,ki18n)
10775 ("knewstuff" ,knewstuff)
10776 ("kwidgetsaddons" ,kwidgetsaddons)
10777 ("kxmlgui" ,kxmlgui)
10778 ("libkdegames" ,libkdegames)
10779 ("qtbase" ,qtbase)
10780 ("qtdeclarative" ,qtdeclarative)
10781 ("qtsvg" ,qtsvg)))
10782 (home-page "https://games.kde.org/")
10783 (synopsis "Bomberman clone")
10784 (description "Granatier is a clone of the classic Bomberman game,
10785 inspired by the work of the Clanbomber clone.
10786
10787 This package is part of the KDE games module.")
10788 (license (list license:gpl2+ license:fdl1.2+))))
10789
10790 (define-public ksirk
10791 (package
10792 (name "ksirk")
10793 (version "20.12.0")
10794 (source
10795 (origin
10796 (method url-fetch)
10797 (uri (string-append "mirror://kde/stable/release-service/" version
10798 "/src/ksirk-" version ".tar.xz"))
10799 (sha256
10800 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
10801 (build-system qt-build-system)
10802 (native-inputs
10803 `(("extra-cmake-modules" ,extra-cmake-modules)
10804 ("kdoctools" ,kdoctools)))
10805 (inputs
10806 `(("kcrash" ,kcrash)
10807 ("ki18n" ,ki18n)
10808 ("kiconthemes" ,kiconthemes)
10809 ("kio" ,kio)
10810 ("knewstuff" ,knewstuff)
10811 ("kwallet" ,kwallet)
10812 ("kxmlgui" ,kxmlgui)
10813 ("libkdegames" ,libkdegames)
10814 ("phonon" ,phonon)
10815 ("qca" ,qca)
10816 ("qtbase" ,qtbase)
10817 ("qtdeclarative" ,qtdeclarative)
10818 ("qtsvg" ,qtsvg)
10819 ("zlib" ,zlib)))
10820 (home-page "https://games.kde.org/")
10821 (synopsis "Computerized version of the well known strategy board game
10822 'Risk'")
10823 (description "KsirK is a multi-player network-enabled game. The goal of
10824 the game is simply to conquer the world by attacking your neighbors with your
10825 armies.
10826
10827 At the beginning of the game, countries are distributed to all the players.
10828 Each country contains one army represented by an infantryman. Each player has
10829 some armies to distribute to his countries. On each turn, each player can
10830 attack his neighbours, eventually conquering one or more countries. At the
10831 end of each turn, some bonus armies are distributed to the players in function
10832 of the number of countries they own. The winner is the player that conquered
10833 all the world.
10834
10835 Features:
10836 @itemize
10837 @item Support for 1-6 human or computer players
10838 @item Multi-player gaming over a network
10839 @item You can easily create new skins with SVG graphics and the skin editor
10840 @item Hot New Stuff support. You can easily download and install new skins
10841 @end itemize
10842
10843 This package is part of the KDE games module.")
10844 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10845
10846 (define-public palapeli
10847 (package
10848 (name "palapeli")
10849 (version "20.12.0")
10850 (source
10851 (origin
10852 (method url-fetch)
10853 (uri (string-append "mirror://kde/stable/release-service/" version
10854 "/src/palapeli-" version ".tar.xz"))
10855 (sha256
10856 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
10857 (build-system qt-build-system)
10858 (native-inputs
10859 `(("extra-cmake-modules" ,extra-cmake-modules)
10860 ("kdoctools" ,kdoctools)))
10861 (inputs
10862 `(("karchive" ,karchive)
10863 ("kcompletion" ,kcompletion)
10864 ("kconfig" ,kconfig)
10865 ("kconfigwidgets" ,kconfigwidgets)
10866 ("kcoreaddons" ,kcoreaddons)
10867 ("kcrash" ,kcrash)
10868 ("kcrash" ,kcrash)
10869 ("ki18n" ,ki18n)
10870 ("ki18n" ,ki18n)
10871 ("kio" ,kio)
10872 ("kitemviews" ,kitemviews)
10873 ("knotifications" ,knotifications)
10874 ("kservice" ,kservice)
10875 ("kwidgetsaddons" ,kwidgetsaddons)
10876 ("kxmlgui" ,kxmlgui)
10877 ("libkdegames" ,libkdegames)
10878 ("qtbase" ,qtbase)
10879 ("qtdeclarative" ,qtdeclarative)
10880 ("qtsvg" ,qtsvg)
10881 ("shared-mime-info" ,shared-mime-info)))
10882 (home-page "https://games.kde.org/")
10883 (synopsis "Jigsaw puzzle game")
10884 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
10885 that genre, you are not limited to aligning pieces on imaginary grids. The
10886 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
10887 everything you do is saved on your disk immediately.
10888
10889 Palapeli is the Finnish word for jigsaw puzzle.
10890
10891 This package is part of the KDE games module.")
10892 (license license:gpl2+)))
10893
10894 (define-public kiriki
10895 (package
10896 (name "kiriki")
10897 (version "20.12.0")
10898 (source
10899 (origin
10900 (method url-fetch)
10901 (uri (string-append "mirror://kde/stable/release-service/" version
10902 "/src/kiriki-" version ".tar.xz"))
10903 (sha256
10904 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
10905 (build-system qt-build-system)
10906 (native-inputs
10907 `(("extra-cmake-modules" ,extra-cmake-modules)
10908 ("kdoctools" ,kdoctools)))
10909 (inputs
10910 `(("kcompletion" ,kcompletion)
10911 ("kconfig" ,kconfig)
10912 ("kconfigwidgets" ,kconfigwidgets)
10913 ("kcoreaddons" ,kcoreaddons)
10914 ("kcrash" ,kcrash)
10915 ("kdbusaddons" ,kdbusaddons)
10916 ("ki18n" ,ki18n)
10917 ("kiconthemes" ,kiconthemes)
10918 ("kxmlgui" ,kxmlgui)
10919 ("libkdegames" ,libkdegames)
10920 ("qtbase" ,qtbase)
10921 ("qtdeclarative" ,qtdeclarative)))
10922 (home-page "https://games.kde.org/")
10923 (synopsis "Yahtzee dice game")
10924 (description "Kiriki is an addictive and fun dice game, designed to be
10925 played by as many as six players.
10926
10927 Participants have to collect points by rolling five dice for up to three times
10928 per single turn to make combinations with the highest score.
10929
10930 This package is part of the KDE games module.")
10931 (license (list license:gpl2+ license:fdl1.2+))))
10932
10933 (define-public kigo
10934 (package
10935 (name "kigo")
10936 (version "20.12.0")
10937 (source
10938 (origin
10939 (method url-fetch)
10940 (uri (string-append "mirror://kde/stable/release-service/" version
10941 "/src/kigo-" version ".tar.xz"))
10942 (sha256
10943 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
10944 (build-system qt-build-system)
10945 (native-inputs
10946 `(("extra-cmake-modules" ,extra-cmake-modules)
10947 ("kdoctools" ,kdoctools)))
10948 (inputs
10949 `(("kconfig" ,kconfig)
10950 ("kconfigwidgets" ,kconfigwidgets)
10951 ("kcoreaddons" ,kcoreaddons)
10952 ("kcrash" ,kcrash)
10953 ("kdbusaddons" ,kdbusaddons)
10954 ("ki18n" ,ki18n)
10955 ("kio" ,kio)
10956 ("knewstuff" ,knewstuff)
10957 ("ktextwidgets" ,ktextwidgets)
10958 ("kxmlgui" ,kxmlgui)
10959 ("libkdegames" ,libkdegames)
10960 ("qtbase" ,qtbase)
10961 ("qtdeclarative" ,qtdeclarative)
10962 ("qtsvg" ,qtsvg)))
10963 (home-page "https://games.kde.org/")
10964 (synopsis "Go board game")
10965 (description "Kigo is an open-source implementation of the popular Go
10966 game.
10967
10968 Go is a strategic board game for two players. It is also known as
10969 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
10970 for being rich in strategic complexity despite its simple rules. The game is
10971 played by two players who alternately place black and white stones (playing
10972 pieces, now usually made of glass or plastic) on the vacant intersections of a
10973 grid of 19x19 lines (9x9 or 13x13 for easier games).
10974
10975 You also need to install a go engine, e.g. @code{gnugo}.
10976
10977 This package is part of the KDE games module.")
10978 (license license:gpl3+)))
10979
10980 (define-public kubrick
10981 (package
10982 (name "kubrick")
10983 (version "20.12.0")
10984 (source
10985 (origin
10986 (method url-fetch)
10987 (uri (string-append "mirror://kde/stable/release-service/" version
10988 "/src/kubrick-" version ".tar.xz"))
10989 (sha256
10990 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
10991 (build-system qt-build-system)
10992 (native-inputs
10993 `(("extra-cmake-modules" ,extra-cmake-modules)
10994 ("kdoctools" ,kdoctools)))
10995 (inputs
10996 `(("glu" ,glu)
10997 ("kconfig" ,kconfig)
10998 ("kconfigwidgets" ,kconfigwidgets)
10999 ("kcoreaddons" ,kcoreaddons)
11000 ("kcrash" ,kcrash)
11001 ("ki18n" ,ki18n)
11002 ("kio" ,kio)
11003 ("kwidgetsaddons" ,kwidgetsaddons)
11004 ("kxmlgui" ,kxmlgui)
11005 ("libkdegames" ,libkdegames)
11006 ("qtbase" ,qtbase)
11007 ("qtdeclarative" ,qtdeclarative)
11008 ("qtsvg" ,qtsvg)))
11009 (home-page "https://games.kde.org/")
11010 (synopsis "Game based on Rubik's Cube")
11011 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11012
11013 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11014 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11015 selection of puzzles at several levels of difficulty, as well as demos of
11016 pretty patterns and solution moves, or you can make up your own puzzles. The
11017 game has unlimited undo, redo, save and reload capabilities.
11018
11019 This package is part of the KDE games module.")
11020 (license (list license:gpl2+ license:fdl1.2+))))
11021
11022 (define-public lskat
11023 (package
11024 (name "lskat")
11025 (version "20.12.0")
11026 (source
11027 (origin
11028 (method url-fetch)
11029 (uri (string-append "mirror://kde/stable/release-service/" version
11030 "/src/lskat-" version ".tar.xz"))
11031 (sha256
11032 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11033 (build-system qt-build-system)
11034 (native-inputs
11035 `(("extra-cmake-modules" ,extra-cmake-modules)
11036 ("kdoctools" ,kdoctools)))
11037 (inputs
11038 `(("kcompletion" ,kcompletion)
11039 ("kconfig" ,kconfig)
11040 ("kcoreaddons" ,kcoreaddons)
11041 ("kcrash" ,kcrash)
11042 ("kguiaddons" ,kguiaddons)
11043 ("ki18n" ,ki18n)
11044 ("kwidgetsaddons" ,kwidgetsaddons)
11045 ("kxmlgui" ,kxmlgui)
11046 ("libkdegames" ,libkdegames)
11047 ("qtbase" ,qtbase)
11048 ("qtdeclarative" ,qtdeclarative)
11049 ("qtsvg" ,qtsvg)))
11050 (home-page "https://games.kde.org/")
11051 (synopsis "Lieutnant Skat card game")
11052 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11053 engaging card game for two players, where the second player is either live
11054 opponent, or a built in artificial intelligence.
11055
11056 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11057
11058 This package is part of the KDE games module.")
11059 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11060
11061 (define-public kapman
11062 (package
11063 (name "kapman")
11064 (version "20.12.0")
11065 (source
11066 (origin
11067 (method url-fetch)
11068 (uri (string-append "mirror://kde/stable/release-service/" version
11069 "/src/kapman-" version ".tar.xz"))
11070 (sha256
11071 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11072 (build-system qt-build-system)
11073 (native-inputs
11074 `(("extra-cmake-modules" ,extra-cmake-modules)
11075 ("kdoctools" ,kdoctools)))
11076 (inputs
11077 `(("kcompletion" ,kcompletion)
11078 ("kconfig" ,kconfig)
11079 ("kconfigwidgets" ,kconfigwidgets)
11080 ("kcoreaddons" ,kcoreaddons)
11081 ("kcrash" ,kcrash)
11082 ("kdbusaddons" ,kdbusaddons)
11083 ("ki18n" ,ki18n)
11084 ("kxmlgui" ,kxmlgui)
11085 ("libkdegames" ,libkdegames)
11086 ("qtbase" ,qtbase)
11087 ("qtdeclarative" ,qtdeclarative)
11088 ("qtsvg" ,qtsvg)))
11089 (home-page "https://games.kde.org/")
11090 (synopsis "Pac-Man clone")
11091 (description "Kapman is a clone of the well known game Pac-Man.
11092
11093 You must run through the maze to eat all pills without being captured by a
11094 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11095 few seconds. When a stage is cleared of pills and energizer the player is
11096 taken to the next stage with slightly increased game speed
11097
11098 This package is part of the KDE games module.")
11099 (license (list license:gpl2+ license:fdl1.2+))))
11100
11101 (define-public kspaceduel
11102 (package
11103 (name "kspaceduel")
11104 (version "20.12.0")
11105 (source
11106 (origin
11107 (method url-fetch)
11108 (uri (string-append "mirror://kde/stable/release-service/" version
11109 "/src/kspaceduel-" version ".tar.xz"))
11110 (sha256
11111 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11112 (build-system qt-build-system)
11113 (native-inputs
11114 `(("extra-cmake-modules" ,extra-cmake-modules)
11115 ("kdoctools" ,kdoctools)))
11116 (inputs
11117 `(("kcompletion" ,kcompletion)
11118 ("kconfig" ,kconfig)
11119 ("kconfigwidgets" ,kconfigwidgets)
11120 ("kcoreaddons" ,kcoreaddons)
11121 ("kcrash" ,kcrash)
11122 ("kdbusaddons" ,kdbusaddons)
11123 ("ki18n" ,ki18n)
11124 ("kxmlgui" ,kxmlgui)
11125 ("libkdegames" ,libkdegames)
11126 ("qtbase" ,qtbase)
11127 ("qtdeclarative" ,qtdeclarative)
11128 ("qtsvg" ,qtsvg)))
11129 (home-page "https://games.kde.org/")
11130 (synopsis "Two player game with shooting spaceships flying around a sun")
11131 (description "KSpaceduel is a space battle game for one or two players,
11132 where two ships fly around a star in a struggle to be the only survivor.
11133
11134 This package is part of the KDE games module.")
11135 (license (list license:gpl2+ license:fdl1.2+))))
11136
11137 (define-public bovo
11138 (package
11139 (name "bovo")
11140 (version "20.12.0")
11141 (source
11142 (origin
11143 (method url-fetch)
11144 (uri (string-append "mirror://kde/stable/release-service/" version
11145 "/src/bovo-" version ".tar.xz"))
11146 (sha256
11147 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11148 (build-system qt-build-system)
11149 (native-inputs
11150 `(("extra-cmake-modules" ,extra-cmake-modules)
11151 ("kdoctools" ,kdoctools)))
11152 (inputs
11153 `(("kcompletion" ,kcompletion)
11154 ("kcoreaddons" ,kcoreaddons)
11155 ("kcrash" ,kcrash)
11156 ("kdbusaddons" ,kdbusaddons)
11157 ("ki18n" ,ki18n)
11158 ("kxmlgui" ,kxmlgui)
11159 ("libkdegames" ,libkdegames)
11160 ("qtbase" ,qtbase)
11161 ("qtdeclarative" ,qtdeclarative)
11162 ("qtsvg" ,qtsvg)))
11163 (home-page "https://games.kde.org/")
11164 (synopsis "Classic pen and paper game: five in a line")
11165 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11166 points\") like game for two players, where the opponents alternate in placing
11167 their respective pictogram on the game board. The winner is the first to
11168 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11169 X and O, Naughts and Crosses)
11170
11171 This package is part of the KDE games module.")
11172 (license (list license:gpl2+ license:fdl1.2+))))
11173
11174 (define-public killbots
11175 (package
11176 (name "killbots")
11177 (version "20.12.0")
11178 (source
11179 (origin
11180 (method url-fetch)
11181 (uri (string-append "mirror://kde/stable/release-service/" version
11182 "/src/killbots-" version ".tar.xz"))
11183 (sha256
11184 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11185 (build-system qt-build-system)
11186 (native-inputs
11187 `(("extra-cmake-modules" ,extra-cmake-modules)
11188 ("kdoctools" ,kdoctools)))
11189 (inputs
11190 `(("kcompletion" ,kcompletion)
11191 ("kconfig" ,kconfig)
11192 ("kconfigwidgets" ,kconfigwidgets)
11193 ("kcoreaddons" ,kcoreaddons)
11194 ("kcrash" ,kcrash)
11195 ("kdbusaddons" ,kdbusaddons)
11196 ("ki18n" ,ki18n)
11197 ("kwidgetsaddons" ,kwidgetsaddons)
11198 ("kxmlgui" ,kxmlgui)
11199 ("libkdegames" ,libkdegames)
11200 ("qtbase" ,qtbase)
11201 ("qtdeclarative" ,qtdeclarative)))
11202 (home-page "https://games.kde.org/")
11203 (synopsis "Port of the classic BSD console game robots")
11204 (description "Killbots is a simple game of evading killer robots.
11205
11206 Who created the robots and why they have been programmed to destroy, no one
11207 knows. All that is known is that the robots are numerous and their sole
11208 objective is to destroy you. Fortunately for you, their creator has focused
11209 on quantity rather than quality and as a result the robots are severely
11210 lacking in intelligence. Your superior wit and a fancy teleportation device
11211 are your only weapons against the never-ending stream of mindless automatons.
11212
11213 This package is part of the KDE games module.")
11214 (license (list license:gpl2+ license:fdl1.2+))))
11215
11216 (define-public ksnakeduel
11217 (package
11218 (name "ksnakeduel")
11219 (version "20.12.0")
11220 (source
11221 (origin
11222 (method url-fetch)
11223 (uri (string-append "mirror://kde/stable/release-service/" version
11224 "/src/ksnakeduel-" version ".tar.xz"))
11225 (sha256
11226 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11227 (build-system qt-build-system)
11228 (native-inputs
11229 `(("extra-cmake-modules" ,extra-cmake-modules)
11230 ("kdoctools" ,kdoctools)))
11231 (inputs
11232 `(("kcompletion" ,kcompletion)
11233 ("kconfig" ,kconfig)
11234 ("kconfigwidgets" ,kconfigwidgets)
11235 ("kcoreaddons" ,kcoreaddons)
11236 ("kcrash" ,kcrash)
11237 ("kdbusaddons" ,kdbusaddons)
11238 ("kguiaddons" ,kguiaddons)
11239 ("ki18n" ,ki18n)
11240 ("kxmlgui" ,kxmlgui)
11241 ("libkdegames" ,libkdegames)
11242 ("qtbase" ,qtbase)
11243 ("qtdeclarative" ,qtdeclarative)
11244 ("qtsvg" ,qtsvg)))
11245 (home-page "https://games.kde.org/")
11246 (synopsis "Snake race played against the computer")
11247 (description "KSnakeDuel is a fast action game where you steer a snake
11248 which has to eat food. While eating the snake grows. But once a player
11249 collides with the other snake or the wall the game is lost. This becomes of
11250 course more and more difficult the longer the snakes grow.
11251
11252 This package is part of the KDE games module.")
11253 (license (list license:gpl2+ license:fdl1.2+))))
11254
11255 (define-public kollision
11256 (package
11257 (name "kollision")
11258 (version "20.12.0")
11259 (source
11260 (origin
11261 (method url-fetch)
11262 (uri (string-append "mirror://kde/stable/release-service/" version
11263 "/src/kollision-" version ".tar.xz"))
11264 (sha256
11265 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11266 (build-system qt-build-system)
11267 (native-inputs
11268 `(("extra-cmake-modules" ,extra-cmake-modules)
11269 ("kdoctools" ,kdoctools)))
11270 (inputs
11271 `(("kcompletion" ,kcompletion)
11272 ("kconfig" ,kconfig)
11273 ("kcoreaddons" ,kcoreaddons)
11274 ("kcrash" ,kcrash)
11275 ("kdbusaddons" ,kdbusaddons)
11276 ("ki18n" ,ki18n)
11277 ("kwidgetsaddons" ,kwidgetsaddons)
11278 ("kxmlgui" ,kxmlgui)
11279 ("libkdegames" ,libkdegames)
11280 ("qtbase" ,qtbase)
11281 ("qtdeclarative" ,qtdeclarative)))
11282 (home-page "https://games.kde.org/")
11283 (synopsis "Simple ball dodging game")
11284 (description "In Kollision you use mouse to control a small blue ball in a
11285 closed space environment filled with small red balls, which move about
11286 chaotically. Your goal is to avoid touching any of those red balls with your
11287 blue one, because the moment you do the game will be over. The longer you can
11288 stay in game the higher will your score be.
11289
11290 This package is part of the KDE games module.")
11291 (license (list license:gpl2+ license:fdl1.2+))))
11292
11293 (define-public knavalbattle
11294 (package
11295 (name "knavalbattle")
11296 (version "20.12.0")
11297 (source
11298 (origin
11299 (method url-fetch)
11300 (uri (string-append "mirror://kde/stable/release-service/" version
11301 "/src/knavalbattle-" version ".tar.xz"))
11302 (sha256
11303 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11304 (build-system qt-build-system)
11305 (native-inputs
11306 `(("extra-cmake-modules" ,extra-cmake-modules)
11307 ("kdoctools" ,kdoctools)))
11308 (inputs
11309 `(("kauth" ,kauth)
11310 ("kcompletion" ,kcompletion)
11311 ("kconfig" ,kconfig)
11312 ("kconfigwidgets" ,kconfigwidgets)
11313 ("kcoreaddons" ,kcoreaddons)
11314 ("kcrash" ,kcrash)
11315 ("kdbusaddons" ,kdbusaddons)
11316 ("kdnssd" ,kdnssd)
11317 ("ki18n" ,ki18n)
11318 ("ktextwidgets" ,ktextwidgets)
11319 ("kxmlgui" ,kxmlgui)
11320 ("libkdegames" ,libkdegames)
11321 ("qtbase" ,qtbase)
11322 ("qtdeclarative" ,qtdeclarative)))
11323 (home-page "https://games.kde.org/")
11324 (synopsis "Battleship board game with built-in game server")
11325 (description "KBattleship is a Battle Ship game for KDE.
11326
11327 Ships are placed on a board which represents the sea. Players try to hit each
11328 others ships in turns without knowing where they are placed. The first player
11329 to destroy all ships wins the game.
11330
11331 This package is part of the KDE games module.")
11332 (license (list license:gpl2+ license:fdl1.2+))))
11333
11334 (define-public kreversi
11335 (package
11336 (name "kreversi")
11337 (version "20.08.3")
11338 (source
11339 (origin
11340 (method url-fetch)
11341 (uri (string-append "mirror://kde/stable/release-service/" version
11342 "/src/kreversi-" version ".tar.xz"))
11343 (sha256
11344 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11345 (build-system qt-build-system)
11346 (native-inputs
11347 `(("extra-cmake-modules" ,extra-cmake-modules)
11348 ("kdoctools" ,kdoctools)))
11349 (inputs
11350 `(("kconfig" ,kconfig)
11351 ("kconfigwidgets" ,kconfigwidgets)
11352 ("kcoreaddons" ,kcoreaddons)
11353 ("kcrash" ,kcrash)
11354 ("kdbusaddons" ,kdbusaddons)
11355 ("kdeclarative" ,kdeclarative)
11356 ("ki18n" ,ki18n)
11357 ("kiconthemes" ,kiconthemes)
11358 ("kio" ,kio)
11359 ("kxmlgui" ,kxmlgui)
11360 ("libkdegames" ,libkdegames)
11361 ("qtbase" ,qtbase)
11362 ("qtdeclarative" ,qtdeclarative)
11363 ("qtsvg" ,qtsvg)))
11364 (home-page "https://games.kde.org/")
11365 (synopsis "Old reversi board game, also known as othello")
11366 (description "KReversi is a simple one player strategy game played
11367 against the computer.
11368
11369 If a player's piece is captured by an opposing player, that piece is turned
11370 over to reveal the color of that player. A winner is declared when one player
11371 has more pieces of his own color on the board and there are no more possible
11372 moves.
11373
11374 This package is part of the KDE games module.")
11375 (license (list license:gpl2+ license:fdl1.2+))))
11376
11377 (define-public ksquares
11378 (package
11379 (name "ksquares")
11380 (version "20.12.0")
11381 (source
11382 (origin
11383 (method url-fetch)
11384 (uri (string-append "mirror://kde/stable/release-service/" version
11385 "/src/ksquares-" version ".tar.xz"))
11386 (sha256
11387 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11388 (build-system qt-build-system)
11389 (native-inputs
11390 `(("extra-cmake-modules" ,extra-cmake-modules)
11391 ("kdoctools" ,kdoctools)))
11392 (inputs
11393 `(("kcompletion" ,kcompletion)
11394 ("kconfig" ,kconfig)
11395 ("kconfigwidgets" ,kconfigwidgets)
11396 ("kcoreaddons" ,kcoreaddons)
11397 ("kcrash" ,kcrash)
11398 ("kdbusaddons" ,kdbusaddons)
11399 ("ki18n" ,ki18n)
11400 ("kwidgetsaddons" ,kwidgetsaddons)
11401 ("kxmlgui" ,kxmlgui)
11402 ("libkdegames" ,libkdegames)
11403 ("qtbase" ,qtbase)
11404 ("qtdeclarative" ,qtdeclarative)))
11405 (home-page "https://games.kde.org/")
11406 (synopsis "Dots and Boxes game")
11407 (description "KSquares is an implementation of the popular paper based
11408 game Squares. Two players take turns connecting dots on a grid to complete
11409 squares, the player with the most squares wins.
11410
11411 This package is part of the KDE games module.")
11412 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11413
11414 (define-public kjumpingcube
11415 (package
11416 (name "kjumpingcube")
11417 (version "20.12.0")
11418 (source
11419 (origin
11420 (method url-fetch)
11421 (uri (string-append "mirror://kde/stable/release-service/" version
11422 "/src/kjumpingcube-" version ".tar.xz"))
11423 (sha256
11424 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11425 (build-system qt-build-system)
11426 (native-inputs
11427 `(("extra-cmake-modules" ,extra-cmake-modules)
11428 ("kdoctools" ,kdoctools)))
11429 (inputs
11430 `(("kconfig" ,kconfig)
11431 ("kconfigwidgets" ,kconfigwidgets)
11432 ("kcoreaddons" ,kcoreaddons)
11433 ("kcrash" ,kcrash)
11434 ("kdbusaddons" ,kdbusaddons)
11435 ("ki18n" ,ki18n)
11436 ("kio" ,kio)
11437 ("kwidgetsaddons" ,kwidgetsaddons)
11438 ("kxmlgui" ,kxmlgui)
11439 ("libkdegames" ,libkdegames)
11440 ("qtbase" ,qtbase)
11441 ("qtdeclarative" ,qtdeclarative)
11442 ("qtsvg" ,qtsvg)))
11443 (home-page "https://games.kde.org/")
11444 (synopsis "Simple tactical game for number-crunchers")
11445 (description "KJumpingcube is a simple tactical game for one or two
11446 players, played on a grid of numbered squares. Each turn, players compete for
11447 control of the board by capturing or adding to one square.
11448
11449 This package is part of the KDE games module.")
11450 (license (list license:gpl2+ license:fdl1.2+))))
11451
11452 (define-public xmoto
11453 (package
11454 (name "xmoto")
11455 (version "0.6.1")
11456 (source
11457 (origin
11458 (method git-fetch)
11459 (uri (git-reference
11460 (url "https://github.com/xmoto/xmoto")
11461 (commit version)))
11462 (file-name (git-file-name name version))
11463 (sha256
11464 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11465 (modules '((guix build utils)
11466 (ice-9 ftw)
11467 (srfi srfi-1)))
11468 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11469 ;; it appears to be incompatible with the (older) one bundled.
11470 (snippet
11471 `(begin
11472 (let ((keep '("chipmunk" "glad" "md5sum")))
11473 (with-directory-excursion "vendor"
11474 (for-each delete-file-recursively
11475 (lset-difference string=?
11476 (scandir ".")
11477 (cons* "." ".." keep))))
11478 (substitute* "src/CMakeLists.txt"
11479 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11480 (if (member library keep) line ""))))
11481 #t))))
11482 (build-system cmake-build-system)
11483 (arguments
11484 `(#:tests? #f ;no test
11485 #:phases
11486 (modify-phases %standard-phases
11487 (add-after 'unpack 'fix-hard-coded-directory
11488 (lambda* (#:key outputs #:allow-other-keys)
11489 (substitute* "src/common/VFileIO.cpp"
11490 (("/usr/share")
11491 (string-append (assoc-ref outputs "out") "/share")))
11492 #t))
11493 (add-before 'build 'set-SDL
11494 ;; Set correct environment for SDL.
11495 (lambda* (#:key inputs #:allow-other-keys)
11496 (setenv "CPATH"
11497 (string-append
11498 (assoc-ref inputs "sdl") "/include/SDL:"
11499 (or (getenv "CPATH") "")))
11500 #t))
11501 (add-after 'install 'unbundle-fonts
11502 ;; Unbundle DejaVuSans TTF files.
11503 (lambda* (#:key outputs inputs #:allow-other-keys)
11504 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11505 "/share/fonts/truetype/"))
11506 (target-dir (string-append (assoc-ref outputs "out")
11507 "/share/xmoto/Textures/Fonts/")))
11508 (for-each (lambda (f)
11509 (let ((font (string-append font-dir f))
11510 (target (string-append target-dir f)))
11511 (delete-file target)
11512 (symlink font target)))
11513 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11514 #t))))))
11515 (native-inputs
11516 `(("gettext" ,gettext-minimal)
11517 ("pkg-config" ,pkg-config)))
11518 (inputs
11519 `(("bzip2" ,bzip2)
11520 ("curl" ,curl)
11521 ("font-dejavu" ,font-dejavu)
11522 ("glu" ,glu)
11523 ("libjpeg" ,libjpeg-turbo)
11524 ("libpng" ,libpng)
11525 ("libxdg-basedir" ,libxdg-basedir)
11526 ("libxml2" ,libxml2)
11527 ("lua" ,lua-5.1)
11528 ("ode" ,ode)
11529 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11530 ("sqlite" ,sqlite)
11531 ("zlib" ,zlib)))
11532 (home-page "https://xmoto.tuxfamily.org/")
11533 (synopsis "2D motocross platform game")
11534 (description
11535 "X-Moto is a challenging 2D motocross platform game, where
11536 physics play an all important role in the gameplay. You need to
11537 control your bike to its limit, if you want to have a chance finishing
11538 the more difficult challenges.")
11539 (license (list license:gpl2+ ;whole project
11540 license:bsd-3 ;vendor/md5sum
11541 license:lgpl2.1+
11542 license:expat))))
11543
11544 (define-public eboard
11545 (package
11546 (name "eboard")
11547 (version "1.1.3")
11548 (source
11549 (origin
11550 (method git-fetch)
11551 (uri (git-reference
11552 (url "https://github.com/fbergo/eboard")
11553 (commit (string-append "v" version))))
11554 (file-name (git-file-name name version))
11555 (sha256
11556 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11557 (build-system gnu-build-system)
11558 (native-inputs
11559 `(("perl" ,perl)
11560 ("pkg-config" ,pkg-config)))
11561 (inputs
11562 `(("gtk+" ,gtk+-2)
11563 ("libpng" ,libpng)
11564 ("gstreamer" ,gstreamer)))
11565 (arguments
11566 `(#:tests? #f
11567 #:phases
11568 (modify-phases %standard-phases
11569 (replace 'configure
11570 (lambda* (#:key outputs #:allow-other-keys)
11571 (make-file-writable "eboard-config")
11572 (setenv "CC" "gcc")
11573 (invoke "./configure"
11574 (string-append "--prefix=" (assoc-ref outputs "out")))
11575 #t))
11576 (add-before 'install 'make-required-directories
11577 (lambda* (#:key outputs #:allow-other-keys)
11578 (mkdir-p (string-append (assoc-ref outputs "out")
11579 "/share/eboard"))
11580 #t)))))
11581 (synopsis "Graphical user interface to play chess")
11582 (description
11583 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11584 and chess engines.")
11585 (home-page "https://www.bergo.eng.br/eboard/")
11586 (license license:gpl2+)))
11587
11588 (define-public chessx
11589 (package
11590 (name "chessx")
11591 (version "1.5.4")
11592 (source
11593 (origin
11594 (method url-fetch)
11595 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11596 version "/chessx-" version ".tgz"))
11597 (sha256
11598 (base32 "1a3541vl5hp6jllgx998w9kjh9kp3wrl80yfwkxmq1bc5bzsrnz2"))))
11599 (build-system qt-build-system)
11600 (native-inputs
11601 `(("qttools" ,qttools)))
11602 (inputs
11603 `(("qtbase" ,qtbase)
11604 ("qtmultimedia" ,qtmultimedia)
11605 ("qtspeech" ,qtspeech)
11606 ("qtsvg" ,qtsvg)
11607 ("zlib" ,zlib)))
11608 (arguments
11609 `(#:tests? #f
11610 #:phases
11611 (modify-phases %standard-phases
11612 (add-after 'unpack 'fix-paths
11613 (lambda* (#:key inputs #:allow-other-keys)
11614 (substitute* "chessx.pro"
11615 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11616 (string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
11617 ;; Fix missing translations.
11618 (("TRANSLATIONS = i18n/chessx_de.ts")
11619 "TRANSLATIONS = i18n/chessx_de.ts i18n/chessx_da.ts \\
11620 i18n/chessx_fr.ts i18n/chessx_it.ts i18n/chessx_cz.ts i18n/chessx_ru.ts \\
11621 i18n/chessx_es.ts"))
11622 #t))
11623 (add-after 'fix-paths 'make-qt-deterministic
11624 (lambda _
11625 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11626 #t))
11627 (replace 'configure
11628 (lambda _
11629 (invoke "qmake")
11630 #t))
11631 (replace 'install
11632 (lambda* (#:key outputs #:allow-other-keys)
11633 (let ((out (assoc-ref outputs "out")))
11634 (install-file "release/chessx" (string-append out "/bin"))
11635 (install-file "unix/chessx.desktop"
11636 (string-append out "/share/applications")))
11637 #t)))))
11638 (synopsis "Chess game database")
11639 (description
11640 "ChessX is a chess database. With ChessX you can operate on your
11641 collection of chess games in many ways: browse, edit, add, organize, analyze,
11642 etc. You can also play games on FICS or against an engine.")
11643 (home-page "http://chessx.sourceforge.net/")
11644 (license license:gpl2+)))
11645
11646 (define-public stockfish
11647 (package
11648 (name "stockfish")
11649 (version "12")
11650 (source
11651 (origin
11652 (method git-fetch)
11653 (uri (git-reference
11654 (url "https://github.com/official-stockfish/Stockfish")
11655 (commit (string-append "sf_" version))))
11656 (file-name (git-file-name name version))
11657 (sha256
11658 (base32 "0vcymbwp5nf114pp3ax40s21ki5dckda15vmhr77d1mnq3fn0l32"))))
11659 (build-system gnu-build-system)
11660 (inputs
11661 `(("neural-network"
11662 ,(origin
11663 (method url-fetch)
11664 (uri "https://tests.stockfishchess.org/api/nn/nn-82215d0fd0df.nnue")
11665 (sha256
11666 (base32 "1r4yqrh4di05syyhl84hqcz84djpbd605b27zhbxwg6zs07ms8c2"))))))
11667 (arguments
11668 `(#:tests? #f
11669 #:make-flags (list "-C" "src"
11670 "build"
11671 (string-append "PREFIX="
11672 (assoc-ref %outputs "out"))
11673 (string-append "ARCH="
11674 ,(match (%current-system)
11675 ("x86_64-linux" "x86-64")
11676 ("i686-linux" "x86-32")
11677 ("aarch64-linux" "general-64")
11678 ("armhf-linux" "armv7")
11679 ("mips64el-linux" "general-64")
11680 (_ "general-32"))))
11681 #:phases (modify-phases %standard-phases
11682 (delete 'configure)
11683 ;; The official neural network file is needed for building
11684 ;; and is embedded in the resulting binary.
11685 (add-after 'unpack 'copy-net
11686 (lambda* (#:key inputs #:allow-other-keys)
11687 (copy-file (assoc-ref inputs "neural-network")
11688 "src/nn-82215d0fd0df.nnue")
11689 #t)))))
11690 (synopsis "Strong chess engine")
11691 (description
11692 "Stockfish is a very strong chess engine. It is much stronger than the
11693 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11694 ChessX.")
11695 (home-page "https://stockfishchess.org/")
11696 (license license:gpl3+)))
11697
11698 (define-public barrage
11699 (package
11700 (name "barrage")
11701 (version "1.0.5")
11702 (source
11703 (origin
11704 (method url-fetch)
11705 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11706 "barrage-" version ".tar.gz"))
11707 (sha256
11708 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11709 (build-system gnu-build-system)
11710 (inputs
11711 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11712 ("sdl" ,sdl)
11713 ("sdl-mixer" ,sdl-mixer)))
11714 (arguments
11715 `(#:configure-flags
11716 (list
11717 (string-append "CFLAGS="
11718 "-I" (assoc-ref %build-inputs "sdl-mixer")
11719 "/include/SDL"))))
11720 (home-page "http://lgames.sourceforge.net/Barrage/")
11721 (synopsis "Violent point-and-click shooting game with nice effects")
11722 (description
11723 "Barrage is a rather destructive action game that puts you on a shooting
11724 range with the objective to hit as many dummy targets as possible within
11725 3 minutes. You control a gun that may either fire small or large grenades at
11726 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11727 get high scores.")
11728 (license license:gpl2+)))
11729
11730 (define-public burgerspace
11731 (package
11732 (name "burgerspace")
11733 (version "1.9.3")
11734 (source
11735 (origin
11736 (method url-fetch)
11737 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11738 "burgerspace-" version ".tar.gz"))
11739 (sha256
11740 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11741 (build-system gnu-build-system)
11742 (native-inputs
11743 `(("pkg-config" ,pkg-config)))
11744 (inputs
11745 `(("flatzebra" ,flatzebra)))
11746 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11747 (synopsis "Avoid evil foodstuffs and make burgers")
11748 (description
11749 "This is a clone of the classic game BurgerTime. In it, you play
11750 the part of a chef who must create burgers by stepping repeatedly on
11751 the ingredients until they fall into place. And to make things more
11752 complicated, you also must avoid evil animate food items while
11753 performing this task, with nothing but your trusty pepper shaker to
11754 protect you.")
11755 (license license:gpl2+)))
11756
11757 (define-public 7kaa
11758 (package
11759 (name "7kaa")
11760 (version "2.15.4p1")
11761 (source
11762 (origin
11763 (method url-fetch)
11764 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11765 "releases/download/v" version "/"
11766 "7kaa-" version ".tar.xz"))
11767 (sha256
11768 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
11769 (build-system gnu-build-system)
11770 (native-inputs
11771 `(("gettext" ,gettext-minimal)
11772 ("pkg-config" ,pkg-config)))
11773 (inputs
11774 `(("curl" ,curl)
11775 ("enet" ,enet)
11776 ("openal" ,openal)
11777 ("sdl2" ,sdl2)))
11778 (home-page "https://7kfans.com/")
11779 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11780 (description
11781 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11782 Strategy with the addition of trade, diplomacy, and espionage. The game
11783 enables players to compete against up to six other kingdoms allowing players
11784 to conquer opponents by defeating them in war (with troops or machines),
11785 capturing their buildings with spies, or offering opponents money for their
11786 kingdom.")
11787 (license license:gpl2+)))
11788
11789 (define-public neverball
11790 ;; Git version is 6-years younger than latest release.
11791 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
11792 (revision "1"))
11793 (package
11794 (name "neverball")
11795 (version (git-version "1.6.0" revision commit))
11796 (source
11797 (origin
11798 (method git-fetch)
11799 (uri (git-reference
11800 (url "https://github.com/Neverball/neverball")
11801 (commit commit)))
11802 (sha256
11803 (base32
11804 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
11805 (file-name (git-file-name name version))
11806 (modules '((guix build utils)))
11807 (snippet
11808 '(begin
11809 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
11810 (delete-file-recursively "data/ball/octocat")
11811 #t))))
11812 (build-system copy-build-system)
11813 (arguments
11814 `(#:install-plan
11815 '(("neverball" "bin/")
11816 ("neverputt" "bin/")
11817 ("mapc" "bin/")
11818 ("data" "share/games/neverball/")
11819 ("locale" "share/")
11820 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
11821 "neverlogos.svg"
11822 "svg readme.txt"))
11823 ("dist/" "share/applications" #:include ("neverball.desktop"
11824 "neverputt.desktop"))
11825 ("dist/neverball_16.png"
11826 "/share/icons/hicolor/16x16/apps/neverball.png")
11827 ("dist/neverball_24.png"
11828 "/share/icons/hicolor/24x24/apps/neverball.png")
11829 ("dist/neverball_32.png"
11830 "/share/icons/hicolor/32x32/apps/neverball.png")
11831 ("dist/neverball_48.png"
11832 "/share/icons/hicolor/48x48/apps/neverball.png")
11833 ("dist/neverball_64.png"
11834 "/share/icons/hicolor/64x64/apps/neverball.png")
11835 ("dist/neverball_128.png"
11836 "/share/icons/hicolor/128x128/apps/neverball.png")
11837 ("dist/neverball_256.png"
11838 "/share/icons/hicolor/256x256/apps/neverball.png")
11839 ("dist/neverball_512.png"
11840 "/share/icons/hicolor/512x512/apps/neverball.png")
11841 ("dist/neverputt_16.png"
11842 "/share/icons/hicolor/16x16/apps/neverputt.png")
11843 ("dist/neverputt_24.png"
11844 "/share/icons/hicolor/24x24/apps/neverputt.png")
11845 ("dist/neverputt_32.png"
11846 "/share/icons/hicolor/32x32/apps/neverputt.png")
11847 ("dist/neverputt_48.png"
11848 "/share/icons/hicolor/48x48/apps/neverputt.png")
11849 ("dist/neverputt_64.png"
11850 "/share/icons/hicolor/64x64/apps/neverputt.png")
11851 ("dist/neverputt_128.png"
11852 "/share/icons/hicolor/128x128/apps/neverputt.png")
11853 ("dist/neverputt_256.png"
11854 "/share/icons/hicolor/256x256/apps/neverputt.png")
11855 ("dist/neverputt_512.png"
11856 "/share/icons/hicolor/512x512/apps/neverputt.png")
11857 ("dist/" "share/man/man1" #:include ("mapc.1"))
11858 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
11859 ("doc/" "share/doc/neverball")
11860 ("README.md" "share/doc/neverball/"))
11861 #:phases
11862 (modify-phases %standard-phases
11863 (add-before 'install 'build
11864 (lambda* (#:key inputs outputs #:allow-other-keys)
11865 (let* ((out (assoc-ref outputs "out"))
11866 (sdl (assoc-ref inputs "sdl")))
11867 (invoke "make" "-j" (number->string (parallel-job-count))
11868 "--environment-overrides"
11869 "CC=gcc" "BUILD=release"
11870 (string-append "DATADIR="
11871 out
11872 "/share/games/neverball/data")
11873 (string-append "LOCALEDIR=" out "/share/locale")
11874 (string-append "SDL_CPPFLAGS=-I"
11875 sdl
11876 "/include/SDL2/")))
11877 #t))
11878 (add-after 'install 'fix-some-broken-fonts
11879 (lambda* (#:key outputs #:allow-other-keys)
11880 (let* ((out (assoc-ref outputs "out")))
11881 (wrap-program (string-append out "/bin/neverball")
11882 `("LANG" = ("en_US.utf8")))
11883 (wrap-program (string-append out "/bin/neverputt")
11884 `("LANG" = ("en_US.utf8"))))
11885 #t)))))
11886 (native-inputs
11887 `(("gettext" ,gettext-minimal))) ;for msgfmt
11888 (inputs
11889 `(("libjpeg" ,libjpeg-turbo)
11890 ("libpng" ,libpng)
11891 ("libvorbis" ,libvorbis)
11892 ("physfs" ,physfs)
11893 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
11894 (home-page "https://neverball.org/")
11895 (synopsis "3D floor-tilting game")
11896 (description
11897 "In the grand tradition of Marble Madness and Super Monkey Ball,
11898 Neverball has you guide a rolling ball through dangerous territory. Balance
11899 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
11900 and shovers to get to the goal. Race against the clock to collect coins to
11901 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
11902 game.") ;thanks to Debian for description
11903 (license license:gpl2+))))
11904
11905 (define-public pokerth
11906 (package
11907 (name "pokerth")
11908 (version "1.1.2")
11909 (source
11910 (origin
11911 (method url-fetch)
11912 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
11913 version "/pokerth-" version ".tar.gz"))
11914 (sha256
11915 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
11916 (modules '((guix build utils)))
11917 (snippet
11918 '(begin
11919 ;; Remove bundled websocketpp.
11920 (delete-file-recursively "src/third_party/websocketpp")
11921 (substitute* "pokerth_lib.pro"
11922 (("src/third_party/websocketpp")
11923 ""))
11924 #t))))
11925 (build-system qt-build-system)
11926 (inputs
11927 `(("boost" ,boost)
11928 ("curl" ,curl)
11929 ("gsasl" ,gsasl)
11930 ("libgcrypt" ,libgcrypt)
11931 ("libircclient" ,libircclient)
11932 ("protobuf" ,protobuf-2) ; remove package when no longer needed
11933 ("qtbase" ,qtbase)
11934 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
11935 ("sqlite" ,sqlite)
11936 ("tinyxml" ,tinyxml)
11937 ("websocketpp" ,websocketpp)
11938 ("zlib" ,zlib)))
11939 (arguments
11940 `(#:tests? #f ; No test suite
11941 #:phases
11942 (modify-phases %standard-phases
11943 (add-after 'unpack 'fix-paths
11944 (lambda* (#:key inputs #:allow-other-keys)
11945 (substitute* (find-files "." "\\.pro$")
11946 (("/opt/gsasl")
11947 (assoc-ref inputs "gsasl"))
11948 (("\\$\\$\\{PREFIX\\}/include/libircclient")
11949 (string-append (assoc-ref inputs "libircclient")
11950 "/include/libircclient"))
11951 (("LIB_DIRS =")
11952 (string-append "LIB_DIRS = "
11953 (assoc-ref inputs "boost") "/lib")))
11954 #t))
11955 (add-after 'unpack 'fix-build
11956 (lambda _
11957 ;; Fixes for Boost versions >= 1.66.
11958 (substitute* '("src/net/common/clientthread.cpp"
11959 "src/net/serveraccepthelper.h")
11960 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
11961 "")
11962 (("newSock->io_control\\(command\\);")
11963 "newSock->non_blocking(true);")
11964 (("acceptedSocket->io_control\\(command\\);")
11965 "acceptedSocket->non_blocking(true);"))
11966 #t))
11967 (replace 'configure
11968 (lambda* (#:key outputs #:allow-other-keys)
11969 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
11970 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
11971 (home-page "https://www.pokerth.net")
11972 (synopsis "Texas holdem poker game")
11973 (description
11974 "With PokerTH you can play the Texas holdem poker game, either against
11975 computer opponents or against real players online.")
11976 (license license:agpl3+)))
11977
11978 (define-public azimuth
11979 (package
11980 (name "azimuth")
11981 ;; Not marked as latest release, but it fixes a compiling issue
11982 ;; and adds the install target.
11983 (version "1.0.3")
11984 (source
11985 (origin
11986 (method git-fetch)
11987 (uri (git-reference
11988 (url "https://github.com/mdsteele/azimuth")
11989 (commit (string-append "v" version))))
11990 (file-name (git-file-name name version))
11991 (sha256
11992 (base32
11993 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
11994 (build-system gnu-build-system)
11995 (arguments
11996 `(#:test-target "test"
11997 #:phases
11998 (modify-phases %standard-phases
11999 (delete 'configure) ; no configure script
12000 ;; Build release version instead of debug version.
12001 (add-after 'unpack 'set-release
12002 (lambda _
12003 (setenv "BUILDTYPE" "release") #t))
12004 (add-after 'unpack 'fix-install ; set install directory
12005 (lambda* (#:key outputs #:allow-other-keys)
12006 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12007 (inputs `(("sdl" ,sdl)))
12008 (home-page "https://mdsteele.games/azimuth/")
12009 (synopsis "Metroidvania game with vector graphics")
12010 (description
12011 "Pilot your ship inside a planet to find and rescue the colonists trapped
12012 inside the Zenith Colony.")
12013 (license license:gpl3+)))
12014
12015 (define-public cgoban
12016 (package
12017 (name "cgoban")
12018 (version "1.9.14")
12019 (source
12020 (origin
12021 (method url-fetch)
12022 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12023 version "/cgoban-" version ".tar.gz"))
12024 (sha256
12025 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12026 (build-system gnu-build-system)
12027 (inputs
12028 `(("libx11" ,libx11)
12029 ("libxt" ,libxt)
12030 ("xorgproto" ,xorgproto)))
12031 (home-page "http://cgoban1.sourceforge.net/")
12032 (synopsis "Go client for X11")
12033 (description "Provides a large set of Go-related services for X11:
12034 @itemize
12035 @item Local games with precise implementation of the Chinese and Japanese rulesets
12036 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12037 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12038 such as GnuGo.
12039 @end itemize")
12040 (license license:gpl2+)))
12041
12042 (define-public paperview
12043 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12044 (revision "1"))
12045 (package
12046 (name "paperview")
12047 (version (git-version "0.0.1" revision commit)) ;no upstream release
12048 (source (origin
12049 (method git-fetch)
12050 (uri (git-reference
12051 (url "https://github.com/glouw/paperview")
12052 (commit commit)))
12053 (file-name (git-file-name name version))
12054 (sha256
12055 (base32
12056 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12057 (build-system gnu-build-system)
12058 (inputs
12059 `(("sdl2" ,sdl2)))
12060 (arguments
12061 '(#:tests? #f ;no tests
12062 #:make-flags
12063 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12064 #:phases
12065 (modify-phases %standard-phases
12066 (delete 'configure))))
12067 (home-page "https://github.com/glouw/paperview/")
12068 (synopsis "High performance X11 animated wallpaper setter")
12069 (description "High performance animated desktop background setter for
12070 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12071 game FPS.")
12072 (license license:unlicense))))
12073
12074 (define-public curseofwar
12075 (package
12076 (name "curseofwar")
12077 (version "1.3.0")
12078 (source
12079 (origin
12080 (method git-fetch)
12081 (uri (git-reference
12082 (url "https://github.com/a-nikolaev/curseofwar")
12083 (commit (string-append "v" version))))
12084 (file-name (git-file-name name version))
12085 (sha256
12086 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12087 (build-system gnu-build-system)
12088 (arguments
12089 `(#:tests? #f ; no tests
12090 #:make-flags
12091 (list (string-append "CC=" ,(cc-for-target))
12092 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12093 #:phases
12094 (modify-phases %standard-phases
12095 (delete 'configure))))
12096 (inputs `(("ncurses" ,ncurses)))
12097 (home-page "https://a-nikolaev.github.io/curseofwar/")
12098 (synopsis "Fast-paced action strategy game")
12099 (description "Curse of War is a fast-paced action strategy game originally
12100 implemented using ncurses user interface. An SDL graphical version is also
12101 available.")
12102 (license license:gpl3+)))