gnu: Remove ".git" from "https://github/…/….git".
[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 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017, 2019 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018, 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
35 ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
36 ;;; Copyright © 2018 Madalin Ionel-Patrascu <madalinionel.patrascu@mdc-berlin.de>
37 ;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
38 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
39 ;;; Copyright © 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
40 ;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
41 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
42 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
43 ;;; Copyright © 2019 Jesse Gibbons <jgibbons2357+guix@gmail.com>
44 ;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
45 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
46 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
47 ;;; Copyright © 2019 Josh Holland <josh@inv.alid.pw>
48 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
49 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
50 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
51 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
52 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
53 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
54 ;;;
55 ;;; This file is part of GNU Guix.
56 ;;;
57 ;;; GNU Guix is free software; you can redistribute it and/or modify it
58 ;;; under the terms of the GNU General Public License as published by
59 ;;; the Free Software Foundation; either version 3 of the License, or (at
60 ;;; your option) any later version.
61 ;;;
62 ;;; GNU Guix is distributed in the hope that it will be useful, but
63 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
64 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
65 ;;; GNU General Public License for more details.
66 ;;;
67 ;;; You should have received a copy of the GNU General Public License
68 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
69
70 (define-module (gnu packages games)
71 #:use-module (ice-9 match)
72 #:use-module ((guix licenses) #:prefix license:)
73 #:use-module (guix utils)
74 #:use-module (guix packages)
75 #:use-module (guix download)
76 #:use-module (guix git-download)
77 #:use-module (guix svn-download)
78 #:use-module (guix gexp)
79 #:use-module (gnu packages)
80 #:use-module (gnu packages adns)
81 #:use-module (gnu packages algebra)
82 #:use-module (gnu packages autotools)
83 #:use-module (gnu packages backup)
84 #:use-module (gnu packages base)
85 #:use-module (gnu packages build-tools)
86 #:use-module (gnu packages admin)
87 #:use-module (gnu packages audio)
88 #:use-module (gnu packages avahi)
89 #:use-module (gnu packages assembly)
90 #:use-module (gnu packages bash)
91 #:use-module (gnu packages bison)
92 #:use-module (gnu packages boost)
93 #:use-module (gnu packages check)
94 #:use-module (gnu packages cmake)
95 #:use-module (gnu packages compression)
96 #:use-module (gnu packages curl)
97 #:use-module (gnu packages crypto)
98 #:use-module (gnu packages cyrus-sasl)
99 #:use-module (gnu packages documentation)
100 #:use-module (gnu packages docbook)
101 #:use-module (gnu packages emulators)
102 #:use-module (gnu packages flex)
103 #:use-module (gnu packages fltk)
104 #:use-module (gnu packages fonts)
105 #:use-module (gnu packages fontutils)
106 #:use-module (gnu packages freedesktop)
107 #:use-module (gnu packages fribidi)
108 #:use-module (gnu packages game-development)
109 #:use-module (gnu packages gcc)
110 #:use-module (gnu packages gettext)
111 #:use-module (gnu packages ghostscript)
112 #:use-module (gnu packages gimp)
113 #:use-module (gnu packages gl)
114 #:use-module (gnu packages glib)
115 #:use-module (gnu packages gnome)
116 #:use-module (gnu packages gnupg)
117 #:use-module (gnu packages gnuzilla)
118 #:use-module (gnu packages gperf)
119 #:use-module (gnu packages graphics)
120 #:use-module (gnu packages gsasl)
121 #:use-module (gnu packages gstreamer)
122 #:use-module (gnu packages gtk)
123 #:use-module (gnu packages guile)
124 #:use-module (gnu packages haskell)
125 #:use-module (gnu packages haskell-crypto)
126 #:use-module (gnu packages haskell-xyz)
127 #:use-module (gnu packages icu4c)
128 #:use-module (gnu packages image)
129 #:use-module (gnu packages imagemagick)
130 #:use-module (gnu packages kde)
131 #:use-module (gnu packages kde-frameworks)
132 #:use-module (gnu packages less)
133 #:use-module (gnu packages libcanberra)
134 #:use-module (gnu packages libedit)
135 #:use-module (gnu packages libunwind)
136 #:use-module (gnu packages linux)
137 #:use-module (gnu packages llvm)
138 #:use-module (gnu packages lua)
139 #:use-module (gnu packages man)
140 #:use-module (gnu packages maths)
141 #:use-module (gnu packages messaging)
142 #:use-module (gnu packages mp3)
143 #:use-module (gnu packages music)
144 #:use-module (gnu packages multiprecision)
145 #:use-module (gnu packages ncurses)
146 #:use-module (gnu packages netpbm)
147 #:use-module (gnu packages networking)
148 #:use-module (gnu packages ocaml)
149 #:use-module (gnu packages opencl)
150 #:use-module (gnu packages pcre)
151 #:use-module (gnu packages perl)
152 #:use-module (gnu packages perl-check)
153 #:use-module (gnu packages perl-compression)
154 #:use-module (gnu packages pkg-config)
155 #:use-module (gnu packages protobuf)
156 #:use-module (gnu packages pulseaudio)
157 #:use-module (gnu packages python)
158 #:use-module (gnu packages python-xyz)
159 #:use-module (gnu packages qt)
160 #:use-module (gnu packages readline)
161 #:use-module (gnu packages ruby)
162 #:use-module (gnu packages shells)
163 #:use-module (gnu packages sdl)
164 #:use-module (gnu packages serialization)
165 #:use-module (gnu packages sqlite)
166 #:use-module (gnu packages squirrel)
167 #:use-module (gnu packages swig)
168 #:use-module (gnu packages tcl)
169 #:use-module (gnu packages terminals)
170 #:use-module (gnu packages texinfo)
171 #:use-module (gnu packages textutils)
172 #:use-module (gnu packages tls)
173 #:use-module (gnu packages upnp)
174 #:use-module (gnu packages video)
175 #:use-module (gnu packages vulkan)
176 #:use-module (gnu packages web)
177 #:use-module (gnu packages wget)
178 #:use-module (gnu packages wxwidgets)
179 #:use-module (gnu packages xdisorg)
180 #:use-module (gnu packages xorg)
181 #:use-module (gnu packages xiph)
182 #:use-module (gnu packages xml)
183 #:use-module (guix build-system copy)
184 #:use-module (guix build-system cmake)
185 #:use-module (guix build-system glib-or-gtk)
186 #:use-module (guix build-system gnu)
187 #:use-module (guix build-system go)
188 #:use-module (guix build-system meson)
189 #:use-module (guix build-system perl)
190 #:use-module (guix build-system python)
191 #:use-module (guix build-system qt)
192 #:use-module (guix build-system scons)
193 #:use-module (guix build-system trivial)
194 #:use-module ((srfi srfi-1) #:hide (zip))
195 #:use-module (srfi srfi-26))
196
197 (define-public abe
198 (package
199 (name "abe")
200 (version "1.1")
201 (source
202 (origin
203 (method url-fetch)
204 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
205 "/abe-" version ".tar.gz"))
206 (sha256
207 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
208 (build-system gnu-build-system)
209 (arguments
210 `(#:configure-flags
211 (list (string-append "--with-data-dir="
212 (assoc-ref %outputs "out")
213 "/share/abe"))
214 #:phases
215 (modify-phases %standard-phases
216 (replace 'bootstrap
217 (lambda _ (invoke "sh" "autogen.sh")))
218 (add-before 'build 'set-SDL
219 ;; Set correct environment for SDL.
220 (lambda* (#:key inputs #:allow-other-keys)
221 (setenv "CPATH"
222 (string-append
223 (assoc-ref inputs "sdl") "/include/SDL:"
224 (or (getenv "CPATH") "")))
225 #t))
226 (add-after 'install 'finalize-install
227 (lambda* (#:key outputs #:allow-other-keys)
228 (let ((share (string-append (assoc-ref outputs "out") "/share")))
229 ;; Installation script does not copy game data files.
230 (let ((data (string-append share "/abe")))
231 (for-each (lambda (dir)
232 (let ((target (string-append data "/" dir)))
233 (mkdir-p target)
234 (copy-recursively dir target)))
235 '("images" "maps" "sounds")))
236 ;; Create desktop file.
237 (let ((apps (string-append share "/applications")))
238 (mkdir-p apps)
239 (make-desktop-entry-file
240 (string-append apps "/abe.desktop")
241 #:name "Abe's Amazing Adventure"
242 #:exec ,name
243 #:categories '("AdventureGame" "Game")
244 #:keywords
245 '("side-scrolling" "adventure" "pyramid" "singleplayer")
246 #:comment
247 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
248 (#f "Side-scrolling game")))))
249 #t)))))
250 (native-inputs
251 `(("autoconf" ,autoconf)
252 ("automake" ,automake)))
253 (inputs
254 `(("libxi" ,libxi)
255 ("libxmu" ,libxmu)
256 ("libxt" ,libxt)
257 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
258 (home-page "http://abe.sourceforge.net")
259 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
260 (description
261 "Abe's Amazing Adventure is a scrolling,
262 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
263 the style of similar games for the Commodore+4.")
264 (license license:gpl2+)))
265
266 ;; Data package for adanaxisgpl.
267 (define adanaxis-mush
268 (let ((version "1.1.0"))
269 (origin
270 (method url-fetch)
271 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
272 version ".tar.gz"))
273 (sha256
274 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
275
276 (define-public adanaxisgpl
277 (package
278 (name "adanaxisgpl")
279 (version "1.2.5")
280 (source
281 (origin
282 (method url-fetch)
283 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
284 version ".tar.gz"))
285 (sha256
286 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
287 (modules '((guix build utils)))
288 (snippet
289 '(begin
290 ;; Necessary for building with gcc >=4.7.
291 (substitute* "src/Mushcore/MushcoreSingleton.h"
292 (("SingletonPtrSet\\(new SingletonType\\);")
293 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
294 ;; Avoid an "invalid conversion from const char* to char*" error.
295 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
296 (("char \\*end, \\*result;")
297 (string-append "const char *end;"
298 "\n"
299 "char *result;")))
300 #t))))
301 (build-system gnu-build-system)
302 (arguments
303 `(#:tests? #f ; no check target
304 #:phases
305 (modify-phases %standard-phases
306 (add-after 'install 'install-data
307 (lambda* (#:key inputs outputs #:allow-other-keys)
308 (let ((data (assoc-ref inputs "adanaxis-mush"))
309 (share (string-append (assoc-ref outputs "out")
310 "/share/" ,name "-" ,version)))
311 (mkdir-p share)
312 (invoke "tar" "xvf" data "-C" share)))))))
313 (native-inputs
314 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
315 (inputs
316 `(("expat" ,expat)
317 ("freeglut" ,freeglut)
318 ("glu" ,glu)
319 ("libjpeg" ,libjpeg-turbo)
320 ("libogg" ,libogg)
321 ("libtiff" ,libtiff)
322 ("libvorbis" ,libvorbis)
323 ("libx11" ,libx11)
324 ("libxext" ,libxext)
325 ("pcre" ,pcre)
326 ("sdl" ,sdl)
327 ("sdl-mixer" ,sdl-mixer)))
328 (home-page "https://www.mushware.com")
329 (synopsis "Action game in four spatial dimensions")
330 (description
331 "Adanaxis is a fast-moving first person shooter set in deep space, where
332 the fundamentals of space itself are changed. By adding another dimension to
333 space this game provides an environment with movement in four directions and
334 six planes of rotation. Initially the game explains the 4D control system via
335 a graphical sequence, before moving on to 30 levels of gameplay with numerous
336 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
337 mouse and joystick control, and original music.")
338 (license license:gpl2)))
339
340 (define-public alex4
341 (package
342 (name "alex4")
343 (version "1.2.1")
344 (source
345 (origin
346 (method git-fetch)
347 (uri (git-reference
348 (url "https://github.com/carstene1ns/alex4")
349 (commit version)))
350 (file-name (git-file-name name version))
351 (sha256
352 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
353 (build-system gnu-build-system)
354 (arguments
355 `(#:tests? #f ; no check target
356 #:make-flags
357 (list "CC=gcc"
358 "CFLAGS=-D_FILE_OFFSET_BITS=64"
359 (string-append "PREFIX=" (assoc-ref %outputs "out")))
360 #:phases
361 (modify-phases %standard-phases
362 (delete 'configure) ; no configure script
363 (add-after 'install 'install-data
364 (lambda* (#:key outputs #:allow-other-keys)
365 (let ((share (string-append (assoc-ref outputs "out")
366 "/share/" ,name)))
367 (install-file "alex4.ini" share)
368 #t))))))
369 (inputs
370 `(("allegro" ,allegro-4)
371 ("dumb" ,dumb-allegro4)))
372 (home-page "http://allegator.sourceforge.net/")
373 (synopsis "Retro platform game")
374 (description
375 "Guide Alex the Allegator through the jungle in order to save his
376 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
377 Plenty of classic platforming in four nice colors guaranteed!
378
379 The game includes a built-in editor so you can design and share your own maps.")
380 (license license:gpl2+)))
381
382 (define-public armagetronad
383 (package
384 (name "armagetronad")
385 (version "0.2.8.3.5")
386 (source (origin
387 (method url-fetch)
388 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
389 version "/armagetronad-" version ".src.tar.gz"))
390 (sha256
391 (base32
392 "1z266haq22n5b0733h7qsg1rpzhz8lvm82f7wd06r008iiar7jdl"))))
393 (build-system gnu-build-system)
394 (inputs
395 `(("libxml2" ,libxml2)
396 ("sdl" ,sdl)
397 ("sdl-image" ,sdl-image)
398 ("freeglut" ,freeglut)
399 ("libpng" ,libpng)
400 ("libjpeg-turbo" ,libjpeg-turbo)))
401 (home-page "http://www.armagetronad.org")
402 (synopsis "Tron clone in 3D")
403 (description "Armagetron Advanced is a multiplayer game in 3d that
404 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
405 It's an old school arcade game slung into the 21st century. Highlights
406 include a customizable playing arena, HUD, unique graphics, and AI bots. For
407 the more advanced player there are new game modes and a wide variety of
408 physics settings to tweak as well.")
409 (license license:gpl2+)))
410
411 (define-public astromenace
412 (package
413 (name "astromenace")
414 (version "1.4.1")
415 (source
416 (origin
417 (method git-fetch)
418 (uri (git-reference
419 (url "https://github.com/viewizard/astromenace")
420 (commit (string-append "v" version))))
421 (file-name (git-file-name name version))
422 (sha256
423 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
424 (build-system cmake-build-system)
425 (arguments
426 `(#:tests? #f ;no test
427 #:configure-flags '("-DDATADIR=share/astromenace")
428 #:phases
429 (modify-phases %standard-phases
430 (replace 'install
431 ;; Upstream provides no install phase.
432 (lambda* (#:key inputs outputs #:allow-other-keys)
433 (let* ((out (assoc-ref outputs "out"))
434 (bin (string-append out "/bin"))
435 (share (string-append out "/share"))
436 (apps (string-append share "/applications"))
437 (data (string-append share "/astromenace"))
438 (icons (string-append share "/icons/hicolor/64x64/apps")))
439 (install-file "astromenace" bin)
440 (install-file "gamedata.vfs" data)
441 (let ((source (assoc-ref inputs "source")))
442 (with-directory-excursion (string-append source "/share")
443 (install-file "astromenace.desktop" apps)
444 (mkdir-p icons)
445 (copy-file "astromenace_64.png"
446 (string-append icons "/astromenace.png")))))
447 #t)))))
448 (inputs
449 `(("freealut" ,freealut)
450 ("freetype" ,freetype)
451 ("glu" ,glu)
452 ("libogg" ,libogg)
453 ("libvorbis" ,libvorbis)
454 ("openal" ,openal)
455 ("sdl2" ,sdl2)))
456 (home-page "https://www.viewizard.com/")
457 (synopsis "3D space shooter with spaceship upgrade possibilities")
458 (description
459 "Space is a vast area, an unbounded territory where it seems there is
460 a room for everybody, but reversal of fortune put things differently. The
461 hordes of hostile creatures crawled out from the dark corners of the universe,
462 craving to conquer your homeland. Their force is compelling, their legions
463 are interminable. However, humans didn't give up without a final showdown and
464 put their best pilot to fight back. These malicious invaders chose the wrong
465 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
466 regret their insolence.")
467 ;; Game is released under GPL3+ terms. Artwork is subject to CC
468 ;; BY-SA 4.0, and fonts to OFL1.1.
469 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
470
471 (define-public bastet
472 (package
473 (name "bastet")
474 (version "0.43.2")
475 (source
476 (origin
477 (method git-fetch)
478 (uri (git-reference
479 (url "https://github.com/fph/bastet")
480 (commit version)))
481 (file-name (git-file-name name version))
482 (sha256
483 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
484 (patches
485 (search-patches "bastet-change-source-of-unordered_set.patch"))))
486 (build-system gnu-build-system)
487 (arguments
488 `(#:make-flags
489 (list (string-append "CXXFLAGS=-I"
490 (assoc-ref %build-inputs "boost") "/include"))
491 #:phases
492 (modify-phases %standard-phases
493 (delete 'configure) ; no configure script
494 (replace 'check
495 ;; The 'Test' target builds the tests, but doesn't actually run them.
496 (lambda* (#:key make-flags #:allow-other-keys)
497 (apply invoke "make" "Test" make-flags)
498 (setenv "HOME" ".")
499 (invoke "./Test")))
500 (replace 'install
501 (lambda* (#:key outputs #:allow-other-keys)
502 (let* ((out (assoc-ref outputs "out"))
503 (share (string-append out "/share"))
504 (hicolor (string-append share "/icons/hicolor")))
505 (install-file "bastet"
506 (string-append out "/bin"))
507
508 (install-file "bastet.desktop"
509 (string-append share "/applications"))
510 (install-file "bastet.svg"
511 (string-append hicolor "/scalable/apps"))
512
513 (install-file "bastet.appdata.xml"
514 (string-append share "/appdata"))
515
516 (install-file "bastet.6"
517 (string-append out "/share/man/man6"))
518 #t))))))
519 (native-inputs
520 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
521 (inputs
522 `(("boost" ,boost)
523 ("ncurses" ,ncurses)))
524 (home-page "https://fph.altervista.org/prog/bastet.html")
525 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
526 (description
527 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
528 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
529 Instead, it uses a special algorithm to choose the worst brick possible.
530
531 Playing bastet can be a painful experience, especially if you usually make
532 canyons and wait for the long I-shaped block to clear four rows at a time.")
533 (license license:gpl3+)))
534
535 (define-public blobwars
536 (package
537 (name "blobwars")
538 (version "2.00")
539 (source
540 (origin
541 (method url-fetch)
542 (uri (string-append "mirror://sourceforge/blobwars/"
543 "blobwars-" version ".tar.gz"))
544 (sha256
545 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
546 (build-system gnu-build-system)
547 (arguments
548 `(#:tests? #f ;no test
549 #:make-flags
550 (let ((out (assoc-ref %outputs "out")))
551 (list (string-append "PREFIX=" out)
552 (string-append "BINDIR=" out "/bin/")
553 "USEPAK=1"
554 "RELEASE=1"))
555 #:phases
556 (modify-phases %standard-phases
557 (add-after 'unpack 'werror-begone
558 (lambda _
559 (substitute* "Makefile" (("-Werror") ""))
560 #t))
561 (delete 'configure)))) ;no configure script
562 (native-inputs
563 `(("gettext" ,gettext-minimal)
564 ("pkg-config" ,pkg-config)))
565 (inputs
566 `(("hicolor-icon-theme" ,hicolor-icon-theme)
567 ("sdl" ,(sdl-union (list sdl2
568 sdl2-image
569 sdl2-mixer
570 sdl2-ttf
571 sdl2-net)))))
572 (home-page "https://sourceforge.net/projects/blobwars/")
573 (synopsis "Platform action game featuring a blob with a lot of weapons")
574 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
575 in the Blobwars series. You take on the role of a fearless Blob agent. Your
576 mission is to infiltrate various enemy bases and rescue as many MIAs as
577 possible, while battling many vicious aliens.")
578 (license (list license:gpl2 ; For code and graphics
579 license:cc0 ; Music and sounds have specific licenses
580 license:cc-by3.0 ; see /doc/readme
581 license:cc-by-sa3.0
582 license:lgpl2.1+
583 license:bsd-2))))
584
585 (define-public bzflag
586 (package
587 (name "bzflag")
588 (version "2.4.20")
589 (source
590 (origin
591 (method url-fetch)
592 (uri (string-append "https://download.bzflag.org/bzflag/source/"
593 version "/bzflag-" version ".tar.bz2"))
594 (sha256
595 (base32 "16brxqmfiyz4j4lb8ihzjcbwqmpsms6vm3ijbp34lnw0blbwdjb2"))))
596 (build-system gnu-build-system)
597 (arguments
598 `(#:phases
599 (modify-phases %standard-phases
600 (add-after 'install 'install-desktop-file-and-icons
601 (lambda* (#:key outputs #:allow-other-keys)
602 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
603 (data (string-append share "/bzflag"))
604 (hicolor (string-append share "/icons/hicolor"))
605 (applications (string-append share "/applications")))
606 ;; Move desktop file.
607 (install-file (string-append data "/bzflag.desktop")
608 applications)
609 ;; Install icons.
610 (for-each (lambda (size)
611 (let* ((dim (string-append size "x" size))
612 (dir (string-append hicolor "/" dim "/apps")))
613 (mkdir-p dir)
614 (copy-file
615 (string-append data "/bzflag-" dim ".png")
616 (string-append dir "/bzflag.png"))))
617 '("48" "256")))
618 #t)))))
619 (native-inputs
620 `(("pkg-config" ,pkg-config)))
621 (inputs
622 `(("c-ares" ,c-ares)
623 ("curl" ,curl)
624 ("glew" ,glew)
625 ("glu" ,glu)
626 ("sdl2" ,sdl2)
627 ("zlib" ,zlib)))
628 (home-page "https://www.bzflag.org/")
629 (synopsis "3D first person tank battle game")
630 (description
631 "BZFlag is a 3D multi-player multiplatform tank battle game that
632 allows users to play against each other in a network environment.
633 There are five teams: red, green, blue, purple and rogue (rogue tanks
634 are black). Destroying a player on another team scores a win, while
635 being destroyed or destroying a teammate scores a loss. Rogues have
636 no teammates (not even other rogues), so they cannot shoot teammates
637 and they do not have a team score.
638
639 There are two main styles of play: capture-the-flag and free-for-all.
640 In capture-the-flag, each team (except rogues) has a team base and
641 each team with at least one player has a team flag. The object is to
642 capture an enemy team's flag by bringing it to your team's base. This
643 destroys every player on the captured team, subtracts one from that
644 team's score, and adds one to your team's score. In free-for-all,
645 there are no team flags or team bases. The object is simply to get as
646 high a score as possible.")
647 ;; The game is dual-licensed.
648 (license (list license:lgpl2.1 license:mpl2.0))))
649
650 (define-public cataclysm-dda
651 (package
652 (name "cataclysm-dda")
653 (version "0.E-2")
654 (source
655 (origin
656 (method git-fetch)
657 (uri (git-reference
658 (url "https://github.com/CleverRaven/Cataclysm-DDA")
659 (commit version)))
660 (sha256
661 (base32 "15l6w6lxays7qmsv0ci2ry53asb9an9dh7l7fc13256k085qcg68"))
662 (file-name (git-file-name name version))))
663 (build-system gnu-build-system)
664 (arguments
665 '(#:make-flags
666 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
667 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
668 "LOCALIZE=1" "LANGUAGES=all")
669 #:phases
670 (modify-phases %standard-phases
671 (delete 'configure)
672 (add-after 'build 'build-tiles
673 (lambda* (#:key make-flags outputs #:allow-other-keys)
674 ;; Change prefix directory and enable tile graphics and sound.
675 (apply invoke "make" "TILES=1" "SOUND=1"
676 (string-append "PREFIX="
677 (assoc-ref outputs "tiles"))
678 (cdr make-flags))))
679 (add-after 'install 'install-tiles
680 (lambda* (#:key make-flags outputs #:allow-other-keys)
681 (apply invoke "make" "install" "TILES=1" "SOUND=1"
682 (string-append "PREFIX="
683 (assoc-ref outputs "tiles"))
684 (cdr make-flags)))))
685 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
686 ;; input in order to support tests.
687 #:tests? #f))
688 (outputs '("out"
689 "tiles")) ;for tile graphics and sound support
690 (native-inputs
691 `(("gettext" ,gettext-minimal)
692 ("pkg-config" ,pkg-config)))
693 (inputs
694 `(("freetype" ,freetype)
695 ("libogg" ,libogg)
696 ("libvorbis" ,libvorbis)
697 ("ncurses" ,ncurses)
698 ("sdl2" ,sdl2)
699 ("sdl2-image" ,sdl2-image)
700 ("sdl2-ttf" ,sdl2-ttf)
701 ("sdl2-mixer" ,sdl2-mixer)))
702 (home-page "https://cataclysmdda.org/")
703 (synopsis "Survival horror roguelike video game")
704 (description
705 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
706 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
707 procedurally generated world. Scavenge the remnants of a dead civilization
708 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
709 to get you out of Dodge. Fight to defeat or escape from a wide variety of
710 powerful monstrosities, from zombies to giant insects to killer robots and
711 things far stranger and deadlier, and against the others like yourself, that
712 want what you have.")
713 (license license:cc-by-sa3.0)))
714
715 (define-public corsix-th
716 (package
717 (name "corsix-th")
718 (version "0.64")
719 (source
720 (origin
721 (method git-fetch)
722 (uri (git-reference
723 (url "https://github.com/CorsixTH/CorsixTH")
724 (commit (string-append "v" version))))
725 (file-name (git-file-name name version))
726 (sha256
727 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
728 (build-system cmake-build-system)
729 (arguments
730 `(#:phases
731 (modify-phases %standard-phases
732 (add-after 'install 'wrap-binary
733 (lambda _
734 ;; Set Lua module paths and default MIDI soundfont on startup.
735 (let* ((out (assoc-ref %outputs "out"))
736 (fluid (assoc-ref %build-inputs "fluid-3"))
737 (lua-version ,(version-major+minor (package-version lua)))
738 (lua-cpath
739 (map (lambda (lib)
740 (string-append
741 (assoc-ref %build-inputs (string-append "lua-" lib))
742 "/lib/lua/" lua-version "/?.so"))
743 '("filesystem" "lpeg"))))
744 (wrap-program (string-append out "/bin/corsix-th")
745 `("LUA_CPATH" ";" = ,lua-cpath)
746 `("SDL_SOUNDFONTS" ":" suffix
747 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
748 #t)))
749 #:tests? #f)) ; TODO need busted package to run tests
750 ;; Omit Lua-Socket dependency to disable automatic updates.
751 (inputs
752 `(("ffmpeg" ,ffmpeg)
753 ("fluid-3" ,fluid-3)
754 ("freetype" ,freetype)
755 ("lua" ,lua)
756 ("lua-filesystem" ,lua-filesystem)
757 ("lua-lpeg" ,lua-lpeg)
758 ("sdl2" ,sdl2)
759 ("sdl2-mixer" ,sdl2-mixer)))
760 (home-page "https://corsixth.com")
761 (synopsis "Implementation of the @i{Theme Hospital} game engine")
762 (description
763 "This package provides a reimplementation of the 1997 Bullfrog business
764 simulation game @i{Theme Hospital}. As well as faithfully recreating the
765 original engine, CorsixTH adds support for high resolutions, custom levels and
766 more. This package does @emph{not} provide the game assets.")
767 (license (list
768 license:expat ; main license
769 license:bsd-3)))) ; CorsixTH/Src/random.c
770
771 (define-public cowsay
772 (package
773 (name "cowsay")
774 (version "3.04")
775 (source (origin
776 (method git-fetch)
777 (uri (git-reference
778 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
779 (commit (string-append name "-" version))))
780 (file-name (git-file-name name version))
781 (sha256
782 (base32
783 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
784 (build-system gnu-build-system)
785 (arguments
786 `(#:phases
787 (modify-phases %standard-phases
788 (delete 'configure) ; no configure script
789 (delete 'build) ; nothing to be built
790 (replace 'install
791 (lambda* (#:key outputs #:allow-other-keys)
792 (invoke "sh" "install.sh"
793 (assoc-ref outputs "out"))))
794 (delete 'check)
795 (add-after 'install 'check
796 (lambda* (#:key outputs #:allow-other-keys)
797 (invoke (string-append (assoc-ref outputs "out")
798 "/bin/cowsay")
799 "We're done!"))))))
800 (inputs
801 `(("perl" ,perl)))
802 (home-page (string-append "https://web.archive.org/web/20071026043648/"
803 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
804 (synopsis "Speaking cow text filter")
805 (description "Cowsay is basically a text filter. Send some text into it,
806 and you get a cow saying your text. If you think a talking cow isn't enough,
807 cows can think too: all you have to do is run @command{cowthink}. If you're
808 tired of cows, a variety of other ASCII-art messengers are available.")
809 (license license:gpl3+)))
810
811 (define-public lolcat
812 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
813 (revision "0"))
814 (package
815 (name "lolcat")
816 (version (git-version "1.0" revision commit))
817 (source
818 (origin
819 (method git-fetch)
820 (uri (git-reference
821 (url "https://github.com/jaseg/lolcat")
822 (commit commit)))
823 (sha256
824 (base32
825 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
826 (file-name (git-file-name name version))))
827 (build-system gnu-build-system)
828 (arguments
829 `(#:tests? #f ; no check target
830 #:make-flags
831 (list ,(string-append "CC=" (cc-for-target)))
832 #:phases
833 (modify-phases %standard-phases
834 (delete 'bootstrap)
835 (delete 'configure)
836 (replace 'install
837 (lambda* (#:key outputs #:allow-other-keys)
838 (let* ((out (assoc-ref outputs "out"))
839 (dest (string-append out "/bin")))
840 (mkdir-p dest)
841 (install-file "lolcat" dest)
842 (install-file "censor" dest)
843 #t))))))
844 (home-page "https://github.com/jaseg/lolcat")
845 (synopsis "Rainbow coloring effect for text console display")
846 (description "@command{lolcat} concatenates files and streams like
847 regular @command{cat}, but it also adds terminal escape codes between
848 characters and lines resulting in a rainbow effect.")
849 (license license:wtfpl2))))
850
851 (define-public foobillard++
852 ;; Even though this latest revision is old already, stable release is
853 ;; lagging way behind it, and has issues with textures rendering.
854 (let ((svn-revision 170))
855 (package
856 (name "foobillard++")
857 (version (string-append "3.43-r" (number->string svn-revision)))
858 (source
859 (origin
860 (method svn-fetch)
861 (uri (svn-reference
862 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
863 (revision svn-revision)))
864 (file-name (git-file-name name version))
865 (sha256
866 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
867 (patches
868 (search-patches "foobillard++-pkg-config.patch"))
869 (modules '((guix build utils)))
870 (snippet
871 '(begin
872 ;; Unfortunately, the game includes background music with
873 ;; a non-commercial clause. Delete it.
874 (for-each delete-file (find-files "data/music" "\\.ogg$"))
875 #t))))
876 (build-system gnu-build-system)
877 (arguments
878 `(#:configure-flags
879 (list
880 ;; Install data in a less exotic location.
881 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
882 ;; Prevent a build error about undefined trigonometric functions.
883 "--enable-fastmath=no")
884 #:phases
885 (modify-phases %standard-phases
886 (add-after 'unpack 'fix-makefile
887 ;; Remove hard-coded directories. Also fix installation
888 ;; rule: it tries to move around non-existent files or
889 ;; files already moved.
890 (lambda* (#:key outputs #:allow-other-keys)
891 (substitute* "Makefile.am"
892 (("/usr") (assoc-ref outputs "out"))
893 (("cp .*?/foobillardplus\\.desktop.*") "")
894 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
895 ""))
896 #t))
897 (add-after 'unpack 'unbundle-font
898 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
899 ;; LinBiolinum_aS.ttf, which are not provided by
900 ;; `font-linuxlibertine' package. Therefore, we cannot replace
901 ;; them yet.
902 (lambda* (#:key inputs #:allow-other-keys)
903 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
904 "/share/fonts/truetype/")))
905 (with-directory-excursion "data"
906 (for-each (lambda (f)
907 (delete-file f)
908 (symlink (string-append dejavu f) f))
909 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
910 #t))
911 (replace 'bootstrap
912 (lambda _
913 (invoke "aclocal" "--force")
914 (invoke "autoconf" "-f")
915 (invoke "autoheader" "-f")
916 (invoke "automake" "-a" "-c" "-f")))
917 (add-before 'build 'prepare-build
918 ;; Set correct environment for SDL.
919 (lambda* (#:key inputs #:allow-other-keys)
920 (setenv "CPATH"
921 (string-append (assoc-ref inputs "sdl")
922 "/include/SDL:"
923 (or (getenv "CPATH") "")))
924 #t))
925 (add-before 'build 'fix-settings-directory
926 ;; Hide foobillardplus settings directory in $HOME.
927 (lambda _
928 (substitute* "src/history.c"
929 (("/foobillardplus-data") "/.foobillardplus"))
930 #t))
931 (add-before 'install 'create-directories
932 ;; Install process does not create directories before
933 ;; trying to move file in it.
934 (lambda* (#:key outputs #:allow-other-keys)
935 (let ((out (assoc-ref outputs "out")))
936 (mkdir-p (string-append out "/share/icons"))
937 (mkdir-p (string-append out "/share/applications")))
938 #t))
939 (add-after 'install 'symlink-executable
940 ;; Symlink executable to $out/bin.
941 (lambda* (#:key outputs #:allow-other-keys)
942 (let* ((out (assoc-ref outputs "out"))
943 (bin (string-append out "/bin")))
944 (mkdir-p bin)
945 (with-directory-excursion bin
946 (symlink "../share/foobillardplus/bin/foobillardplus"
947 "foobillardplus"))
948 #t))))))
949 (native-inputs
950 `(("autoconf" ,autoconf)
951 ("automake" ,automake)
952 ("pkg-config" ,pkg-config)))
953 (inputs
954 `(("font-dejavu" ,font-dejavu)
955 ("freetype" ,freetype)
956 ("glu" ,glu)
957 ("libpng" ,libpng)
958 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
959 (home-page "http://foobillardplus.sourceforge.net/")
960 (synopsis "3D billiard game")
961 (description "FooBillard++ is an advanced 3D OpenGL billiard game
962 based on the original foobillard 3.0a sources from Florian Berger.
963 You can play it with one or two players or against the computer.
964
965 The game features:
966
967 @itemize
968 @item Wood paneled table with gold covers and gold diamonds.
969 @item Reflections on balls.
970 @item Zoom in and out, rotation, different angles and bird's eye view.
971 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
972 @item Tournaments. Compete against other players.
973 @item Animated cue with strength and eccentric hit adjustment.
974 @item Jump shots and snipping.
975 @item Realistic gameplay and billiard sounds.
976 @item Red-Green stereo.
977 @item And much more.
978 @end itemize")
979 (license (list license:gpl2 license:silofl1.1)))))
980
981 (define-public freedoom
982 (package
983 (name "freedoom")
984 (version "0.12.1")
985 (source
986 (origin
987 (method git-fetch)
988 (uri (git-reference
989 (url "https://github.com/freedoom/freedoom")
990 (commit (string-append "v" version))))
991 (file-name (git-file-name name version))
992 (sha256
993 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
994 (build-system gnu-build-system)
995 (arguments
996 '(#:make-flags
997 (list (string-append "prefix=" (assoc-ref %outputs "out")))
998 #:tests? #f ; no check target
999 #:phases
1000 (modify-phases %standard-phases
1001 (delete 'bootstrap)
1002 (replace 'configure
1003 (lambda* (#:key inputs outputs #:allow-other-keys)
1004 (let* ((freedoom (assoc-ref outputs "out"))
1005 (wad-dir (string-append freedoom "/share/games/doom")))
1006 ;; Make sure that the install scripts know where to find
1007 ;; the appropriate WAD files.
1008 (substitute* "dist/freedoom"
1009 (("IWAD=freedm.wad")
1010 (string-append "IWAD=" wad-dir "/freedm.wad"))
1011 (("IWAD=freedoom1.wad")
1012 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1013 (("IWAD=freedoom2.wad")
1014 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1015 #t))))))
1016 (native-inputs
1017 `(("asciidoc" ,asciidoc)
1018 ("deutex" ,deutex)
1019 ("python" ,python)
1020 ("python-pillow" ,python-pillow)))
1021 (home-page "https://freedoom.github.io/")
1022 (synopsis "Free content game based on the Doom engine")
1023 (native-search-paths
1024 (list (search-path-specification
1025 (variable "DOOMWADDIR")
1026 (files '("share/games/doom")))
1027 (search-path-specification
1028 (variable "DOOMWADPATH")
1029 (files '("share/games/doom")))))
1030 (description
1031 "The Freedoom project aims to create a complete free content first person
1032 shooter game. Freedoom by itself is just the raw material for a game: it must
1033 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1034 played. Freedoom complements the Doom engine with free levels, artwork, sound
1035 effects and music to make a completely free game.")
1036 (license license:bsd-3)))
1037
1038 (define-public freedroidrpg
1039 (package
1040 (name "freedroidrpg")
1041 (version "0.16.1")
1042 (source
1043 (origin
1044 (method url-fetch)
1045 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1046 "freedroidRPG-" (version-major+minor version) "/"
1047 "freedroidRPG-" version ".tar.gz"))
1048 (sha256
1049 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1050 (build-system gnu-build-system)
1051 (arguments
1052 `(#:configure-flags
1053 (list
1054 (string-append "CFLAGS="
1055 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1056 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1057 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1058 "--enable-opengl")
1059 ;; FIXME: the test suite fails with the following error output:
1060 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1061 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1062 #:tests? #f))
1063 (native-inputs
1064 `(("pkg-config" ,pkg-config)))
1065 (inputs
1066 `(("glu" ,glu)
1067 ("libjpeg" ,libjpeg-turbo)
1068 ("libogg" ,libogg)
1069 ("libpng" ,libpng)
1070 ("libvorbis" ,libvorbis)
1071 ("mesa" ,mesa)
1072 ("python" ,python-wrapper)
1073 ("sdl" ,sdl)
1074 ("sdl-gfx" ,sdl-gfx)
1075 ("sdl-image" ,sdl-image)
1076 ("sdl-mixer" ,sdl-mixer)
1077 ("zlib" ,zlib)))
1078 (home-page "http://www.freedroid.org/")
1079 (synopsis "Isometric role-playing game against killer robots")
1080 (description
1081 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1082 The game tells the story of a world destroyed by a conflict between robots and
1083 their human masters. To restore peace to humankind, the player must complete
1084 numerous quests while fighting off rebelling robots---either by taking control
1085 of them, or by simply blasting them to pieces with melee and ranged weapons in
1086 real-time combat.")
1087 (license (list license:expat ; lua/
1088 license:gpl3 ; src/gen_savestruct.py
1089 license:gpl2+)))) ; the rest
1090
1091 (define-public golly
1092 (package
1093 (name "golly")
1094 (version "3.3")
1095 (source (origin
1096 (method url-fetch)
1097 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1098 version "/golly-" version
1099 "-src.tar.gz"))
1100 (sha256
1101 (base32
1102 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1103 (build-system gnu-build-system)
1104 (arguments
1105 '(#:make-flags (list "CC=gcc"
1106 (string-append "GOLLYDIR="
1107 (assoc-ref %outputs "out")
1108 "/share/golly"))
1109 #:tests? #f ; no check target
1110 #:phases
1111 (modify-phases %standard-phases
1112 (replace 'configure
1113 (lambda* (#:key inputs #:allow-other-keys)
1114 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1115 ;; properly set the path to the Python shared library. This
1116 ;; substitution acheives the same end by different means.
1117 (substitute* "gui-wx/wxprefs.cpp"
1118 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1119 (string-append "pythonlib = \""
1120 (assoc-ref inputs "python")
1121 "/lib/libpython-2.7.so\"")))
1122 #t))
1123 (replace 'build
1124 (lambda* (#:key make-flags outputs #:allow-other-keys)
1125 (with-directory-excursion "gui-wx"
1126 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1127 (replace 'install
1128 (lambda* (#:key outputs #:allow-other-keys)
1129 (let* ((out (assoc-ref outputs "out"))
1130 (bin (string-append out "/bin"))
1131 (doc (string-append out "/share/doc/golly"))
1132 (pixmaps (string-append out "/share/pixmaps"))
1133 (share (string-append out "/share/golly")))
1134 (for-each (lambda (binary)
1135 (install-file binary bin))
1136 '("bgolly" "golly"))
1137 (for-each (lambda (document)
1138 (install-file
1139 (string-append "docs/" document ".html")
1140 doc))
1141 '("License" "ReadMe" "ToDo"))
1142 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1143 (for-each (lambda (folder)
1144 (copy-recursively
1145 folder
1146 (string-append share "/" folder)))
1147 '("Help" "Patterns" "Rules" "Scripts")))
1148 #t)))))
1149 (native-inputs
1150 `(("lua" ,lua)))
1151 (inputs
1152 `(("glu" ,glu)
1153 ("mesa" ,mesa)
1154 ("python" ,python-2)
1155 ("wxwidgets" ,wxwidgets-gtk2)
1156 ("zlib" ,zlib)))
1157 (home-page "http://golly.sourceforge.net/")
1158 (synopsis "Software for exploring cellular automata")
1159 (description
1160 "Golly simulates Conway's Game of Life and many other types of cellular
1161 automata. The following features are available:
1162 @enumerate
1163 @item Support for bounded and unbounded universes, with cells of up to 256
1164 states.
1165 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1166 algorithm.
1167 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1168 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1169 @item Scriptable via Lua or Python.
1170 @item Extracting patterns, rules and scripts from zip files.
1171 @item Downloading patterns, rules and scripts from online archives.
1172 @item Pasting patterns from the clipboard.
1173 @item Unlimited undo/redo.
1174 @item Configurable keyboard shortcuts.
1175 @item Auto fit option to keep patterns within the view.
1176 @end enumerate")
1177 (license license:gpl2+)))
1178
1179 (define-public julius
1180 (package
1181 (name "julius")
1182 (version "1.4.1")
1183 (source
1184 (origin
1185 (method git-fetch)
1186 (uri (git-reference
1187 (url "https://github.com/bvschaik/julius")
1188 (commit (string-append "v" version))))
1189 (file-name (git-file-name name version))
1190 (sha256
1191 (base32 "12hhnhdwgz7hd3hlndbnk15pxggm1375qs0764ija4nl1gbpb110"))
1192 ;; Remove unused bundled libraries.
1193 (modules '((guix build utils)))
1194 (snippet
1195 '(begin
1196 (with-directory-excursion "ext"
1197 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1198 #t))))
1199 (build-system cmake-build-system)
1200 (inputs
1201 `(("libpng" ,libpng)
1202 ("sdl2" ,sdl2)
1203 ("sdl2-mixer" ,sdl2-mixer)))
1204 (home-page "https://github.com/bvschaik/julius")
1205 (synopsis "Re-implementation of Caesar III game engine")
1206 (description
1207 "Engine for Caesar III, a city-building real-time strategy game.
1208 Julius includes some UI enhancements while preserving the logic (including
1209 bugs) of the original game, so that saved games are compatible. This package
1210 does not include game data.")
1211 (license (list license:agpl3
1212 license:zlib)))) ; ext/tinyfiledialogs
1213
1214 (define-public augustus
1215 (package
1216 (inherit julius)
1217 (name "augustus")
1218 (version (package-version julius))
1219 (source
1220 (origin
1221 (method git-fetch)
1222 (uri (git-reference
1223 (url "https://github.com/Keriew/augustus")
1224 (commit (string-append "v" version))))
1225 (file-name (git-file-name name version))
1226 (sha256
1227 (base32 "0ii0w0iwa9zv5bbqfcps5mxifd796m6fw4gvjf09pkm3yjgqc0ag"))
1228 ;; Remove unused bundled libraries.
1229 (modules '((guix build utils)))
1230 (snippet
1231 '(begin
1232 (with-directory-excursion "ext"
1233 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1234 #t))))
1235 (arguments
1236 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1237 `(#:tests? #f))
1238 (home-page "https://github.com/Keriew/augustus")
1239 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1240 (description
1241 "Fork of Julius, an engine for the a city-building real-time strategy
1242 game Caesar III. Gameplay enhancements include:
1243
1244 @itemize
1245 @item roadblocks;
1246 @item market special orders;
1247 @item global labour pool;
1248 @item partial warehouse storage;
1249 @item increased game limits;
1250 @item zoom controls.
1251 @end itemize\n")))
1252
1253 (define-public meandmyshadow
1254 (package
1255 (name "meandmyshadow")
1256 (version "0.5a")
1257 (source (origin
1258 (method url-fetch)
1259 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1260 version "/meandmyshadow-" version
1261 "-src.tar.gz"))
1262 (sha256
1263 (base32
1264 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1265 (build-system cmake-build-system)
1266 (arguments
1267 `(#:tests? #f)) ; there are no tests
1268 (native-inputs
1269 `(("pkg-config" ,pkg-config)))
1270 (inputs
1271 `(("curl" ,curl)
1272 ("libarchive" ,libarchive)
1273 ("lua" ,lua)
1274 ("sdl" ,(sdl-union (list sdl2
1275 sdl2-image
1276 sdl2-mixer
1277 sdl2-ttf)))))
1278 (home-page "https://acmepjz.github.io/meandmyshadow/")
1279 (synopsis "Puzzle/platform game")
1280 (description "Me and My Shadow is a puzzle/platform game in which you try
1281 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1282 and much more stand between you and the exit. Record your moves and let your
1283 shadow mimic them to reach blocks you couldn't reach alone.")
1284 (license license:gpl3+)))
1285
1286 (define-public opensurge
1287 (package
1288 (name "opensurge")
1289 (version "0.5.1.2")
1290 (source
1291 (origin
1292 (method git-fetch)
1293 (uri (git-reference
1294 (url "https://github.com/alemart/opensurge")
1295 (commit (string-append "v" version))))
1296 (file-name (git-file-name name version))
1297 (sha256
1298 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1299 (build-system cmake-build-system)
1300 (arguments
1301 `(#:tests? #f ;there are no tests
1302 #:configure-flags
1303 (let* ((out (assoc-ref %outputs "out"))
1304 (share (string-append out "/share")))
1305 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1306 (string-append "-DGAME_DATADIR=" share "/" ,name)
1307 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1308 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1309 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1310 #:phases
1311 (modify-phases %standard-phases
1312 (add-after 'unpack 'fix-xdg-open-path
1313 (lambda* (#:key inputs #:allow-other-keys)
1314 ;; Look for xdg-open in the store.
1315 (substitute* "src/core/web.c"
1316 (("/usr(/bin/xdg-open)" _ bin)
1317 (string-append (assoc-ref inputs "xdg-utils") bin)))
1318 #t))
1319 (add-after 'unpack 'unbundle-fonts
1320 (lambda* (#:key inputs #:allow-other-keys)
1321 ;; Replace bundled Roboto fonts with links to the store.
1322 (with-directory-excursion "fonts"
1323 (let ((roboto-dir (string-append
1324 (assoc-ref inputs "font-google-roboto")
1325 "/share/fonts/truetype/")))
1326 (for-each
1327 (lambda (font)
1328 (delete-file font)
1329 (symlink (string-append roboto-dir font) font))
1330 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1331 #t))))))
1332 (inputs
1333 `(("allegro" ,allegro)
1334 ("font-google-roboto" ,font-google-roboto)
1335 ("surgescript" ,surgescript)
1336 ("xdg-utils" ,xdg-utils)))
1337 (home-page "https://opensurge2d.org")
1338 (synopsis "2D retro side-scrolling game")
1339 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1340 inspired by the Sonic games. The player runs at high speeds through each
1341 level while collecting items and avoiding obstacles. The game includes a
1342 built-in level editor.")
1343 (license
1344 ;; Code is under GPL 3+, assets are under various licenses.
1345 ;; See src/misc/credits.c for details.
1346 (list license:gpl3+
1347 license:cc0
1348 license:cc-by3.0
1349 license:cc-by-sa3.0
1350 license:expat
1351 license:public-domain
1352 license:silofl1.1))))
1353
1354 (define-public knights
1355 (package
1356 (name "knights")
1357 (version "025")
1358 (source (origin
1359 (method url-fetch)
1360 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1361 version "_src.tar.gz"))
1362 (sha256
1363 (base32
1364 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1365 (build-system gnu-build-system)
1366 (arguments
1367 '(#:make-flags
1368 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1369 #:phases
1370 (modify-phases %standard-phases
1371 ;; No configure script.
1372 (delete 'configure))
1373 #:tests? #f)) ;; No check target.
1374 (inputs
1375 `(("boost" ,boost)
1376 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1377 ("freetype" ,freetype)
1378 ("fontconfig" ,fontconfig)
1379 ("curl" ,curl)))
1380 (native-inputs
1381 `(("pkg-config" ,pkg-config)))
1382 (home-page "http://www.knightsgame.org.uk/")
1383 (synopsis "Multiplayer dungeon game involving knights and quests")
1384 (description "Knights is a multiplayer game involving several knights who
1385 must run around a dungeon and complete various quests. Each game revolves
1386 around a quest – for example, you might have to find some items and carry them
1387 back to your starting point. This may sound easy, but as there are only
1388 enough items in the dungeon for one player to win, you may end up having to
1389 kill your opponents to get their stuff! Other quests involve escaping from
1390 the dungeon, fighting a duel to the death against the enemy knights, or
1391 destroying an ancient book using a special wand.")
1392 ;; This package includes modified sources of lua (X11), enet (Expat), and
1393 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1394 ;; license. The whole package is released under GPLv3+.
1395 (license license:gpl3+)))
1396
1397 (define-public gnome-chess
1398 (package
1399 (name "gnome-chess")
1400 (version "3.36.1")
1401 (source (origin
1402 (method url-fetch)
1403 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1404 (version-major+minor version) "/"
1405 "gnome-chess-" version ".tar.xz"))
1406 (sha256
1407 (base32
1408 "165bk8s3nngyqbikggspj4rff5nxxfkfcmgzjb4grmsrgbqwk5di"))))
1409 (build-system meson-build-system)
1410 (arguments
1411 '(#:glib-or-gtk? #t
1412 #:phases
1413 (modify-phases %standard-phases
1414 (add-after 'unpack 'skip-gtk-update-icon-cache
1415 ;; Don't create 'icon-theme.cache'.
1416 (lambda _
1417 (substitute* "meson_post_install.py"
1418 (("gtk-update-icon-cache") "true"))
1419 #t)))))
1420 (inputs
1421 `(("gtk+" ,gtk+)
1422 ("librsvg" ,librsvg)))
1423 (native-inputs
1424 `(("gettext" ,gettext-minimal)
1425 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1426 ("itstool" ,itstool)
1427 ("pkg-config" ,pkg-config)
1428 ("vala" ,vala)))
1429 (home-page "https://wiki.gnome.org/Apps/Chess")
1430 (synopsis "Chess board for GNOME")
1431 (description "GNOME Chess provides a 2D board for playing chess games
1432 against human or computer players. It supports loading and saving games in
1433 Portable Game Notation. To play against a computer, install a chess engine
1434 such as chess or stockfish.")
1435 (license license:gpl3+)))
1436
1437 (define-public gnubg
1438 (package
1439 (name "gnubg")
1440 (version "1.06.002")
1441 (source
1442 (origin
1443 (method url-fetch)
1444 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1445 version "-sources.tar.gz"))
1446 (sha256
1447 (base32
1448 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1449 (build-system gnu-build-system)
1450 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1451 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1452 ("pango" ,pango-1.42)
1453
1454 ("glib" ,glib)
1455 ("readline" ,readline)
1456 ("gtk+" ,gtk+-2)
1457 ("mesa" ,mesa)
1458 ("glu" ,glu)
1459 ("gtkglext" ,gtkglext)
1460 ("sqlite" ,sqlite)
1461 ("libcanberra" ,libcanberra)))
1462 (native-inputs `(("python-2" ,python-2)
1463 ("pkg-config" ,pkg-config)))
1464 (arguments
1465 `(#:phases
1466 (modify-phases %standard-phases
1467 (add-after 'install 'install-desktop-file
1468 (lambda* (#:key outputs #:allow-other-keys)
1469 (let* ((out (assoc-ref outputs "out"))
1470 (apps (string-append out "/share/applications")))
1471 (mkdir-p apps)
1472 (with-output-to-file (string-append apps "/gnubg.desktop")
1473 (lambda _
1474 (format #t
1475 "[Desktop Entry]~@
1476 Name=GNU Backgammon~@
1477 Exec=~a/bin/gnubg -w~@
1478 Icon=gnubg~@
1479 Categories=Game;~@
1480 Terminal=false~@
1481 Type=Application~%"
1482 out))))
1483 #t)))))
1484 (home-page "https://www.gnu.org/software/gnubg/")
1485 (synopsis "Backgammon game")
1486 (description "The GNU backgammon application (also known as \"gnubg\") can
1487 be used for playing, analyzing and teaching the game. It has an advanced
1488 evaluation engine based on artificial neural networks suitable for both
1489 beginners and advanced players. In addition to a command-line interface, it
1490 also features an attractive, 3D representation of the playing board.")
1491 (license license:gpl3+)))
1492
1493 (define-public gnubik
1494 (package
1495 (name "gnubik")
1496 (version "2.4.3")
1497 (source
1498 (origin
1499 (method url-fetch)
1500 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1501 version ".tar.gz"))
1502 (sha256
1503 (base32
1504 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1505 (build-system gnu-build-system)
1506 (arguments
1507 '(#:phases (modify-phases %standard-phases
1508 (add-after 'unpack 'skip-gtk-update-icon-cache
1509 (lambda _
1510 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1511 ;; unnecessary and causes a needless dependency on glib.
1512 (substitute* "Makefile.in"
1513 (("gtk-update-icon-cache")
1514 "true"))
1515 #t)))))
1516 (inputs `(("gtk+" ,gtk+-2)
1517 ("mesa" ,mesa)
1518 ("glu" ,glu)
1519 ("libx11" ,libx11)
1520 ("guile" ,guile-2.0)
1521 ("gtkglext" ,gtkglext)))
1522 (native-inputs `(("gettext" ,gettext-minimal)
1523 ("pkg-config" ,pkg-config)))
1524 (home-page "https://www.gnu.org/software/gnubik/")
1525 (synopsis "3d Rubik's cube game")
1526 (description
1527 "GNUbik is a puzzle game in which you must manipulate a cube to make
1528 each of its faces have a uniform color. The game is customizable, allowing
1529 you to set the size of the cube (the default is 3x3) or to change the colors.
1530 You may even apply photos to the faces instead of colors. The game is
1531 scriptable with Guile.")
1532 (license license:gpl3+)))
1533
1534 (define-public gnushogi
1535 (package
1536 (name "gnushogi")
1537 (version "1.4.2")
1538 (source
1539 (origin
1540 (method url-fetch)
1541 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1542 version ".tar.gz"))
1543 (sha256
1544 (base32
1545 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1546 (arguments `(#:tests? #f)) ;; No check target.
1547 (build-system gnu-build-system)
1548 (home-page "https://www.gnu.org/software/gnushogi/")
1549 (synopsis "The game of Shogi (Japanese chess)")
1550 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1551 Chess). It is similar to standard chess but this variant is far more complicated.")
1552 (license license:gpl3+)))
1553
1554 (define-public ltris
1555 (package
1556 (name "ltris")
1557 (version "1.0.20")
1558 (source
1559 (origin
1560 (method url-fetch)
1561 (uri (string-append "http://prdownloads.sourceforge.net/lgames/"
1562 "ltris-" version ".tar.gz"))
1563 (sha256
1564 (base32 "16zbqsc4amx9g3yjv6054nh4ia09dgfp8k6q4qxpjicl3dw3z0in"))))
1565 (build-system gnu-build-system)
1566 (arguments
1567 '(;; The code in LTris uses traditional GNU semantics for inline functions
1568 #:configure-flags '("CFLAGS=-fgnu89-inline")
1569 #:phases
1570 (modify-phases %standard-phases
1571 (add-after 'set-paths 'set-sdl-paths
1572 (lambda* (#:key inputs #:allow-other-keys)
1573 (setenv "CPATH"
1574 (string-append (assoc-ref inputs "sdl-union")
1575 "/include/SDL:"
1576 (or (getenv "CPATH") "")))
1577 #t)))))
1578 (inputs
1579 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1580 (home-page "http://lgames.sourceforge.net/LTris/")
1581 (synopsis "Tetris clone based on the SDL library")
1582 (description
1583 "LTris is a tetris clone: differently shaped blocks are falling down the
1584 rectangular playing field and can be moved sideways or rotated by 90 degree
1585 units with the aim of building lines without gaps which then disappear (causing
1586 any block above the deleted line to fall down). LTris has three game modes: In
1587 Classic you play until the stack of blocks reaches the top of the playing field
1588 and no new blocks can enter. In Figures the playing field is reset to a new
1589 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1590 up to three players (either human or CPU) compete with each other sending
1591 removed lines to all opponents. There is also a Demo mode in which you can
1592 watch your CPU playing while enjoying a cup of tea!")
1593 (license license:gpl2+)))
1594
1595 (define-public nethack
1596 (package
1597 (name "nethack")
1598 (version "3.6.6")
1599 (source
1600 (origin
1601 (method url-fetch)
1602 (uri
1603 (string-append "https://www.nethack.org/download/" version "/nethack-"
1604 (string-join (string-split version #\.) "") "-src.tgz"))
1605 (sha256
1606 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1607 (native-inputs
1608 `(("bison" ,bison)
1609 ("flex" ,flex)))
1610 (inputs
1611 `(("ncurses" ,ncurses)
1612 ("less" ,less)))
1613 (build-system gnu-build-system)
1614 (arguments
1615 '(#:make-flags
1616 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1617 #:phases
1618 (modify-phases %standard-phases
1619 (add-before 'configure 'patch-paths
1620 (lambda _
1621 (substitute* "sys/unix/nethack.sh"
1622 (("^ *cd .*$") ""))
1623 (substitute* "sys/unix/Makefile.utl"
1624 (("^YACC *=.*$") "YACC = bison -y\n")
1625 (("^LEX *=.*$") "LEX = flex\n")
1626 (("^# CC = gcc") "CC = gcc"))
1627 (substitute* "sys/unix/hints/linux"
1628 (("/bin/gzip") (string-append
1629 (assoc-ref %build-inputs "gzip")
1630 "/bin/gzip"))
1631 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1632 (substitute* "include/config.h"
1633 (("^.*define CHDIR.*$") "")
1634 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1635 ;; Honor SOURCE_DATE_EPOCH.
1636 "#define REPRODUCIBLE_BUILD"))
1637
1638 ;; Note: 'makedefs' rejects and ignores dates that are too old
1639 ;; or too new, so we must choose something reasonable here.
1640 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1641
1642 (substitute* "sys/unix/Makefile.src"
1643 (("^# CC = gcc") "CC = gcc"))
1644 #t))
1645 (replace 'configure
1646 (lambda _
1647 (let ((bash (string-append
1648 (assoc-ref %build-inputs "bash")
1649 "/bin/bash")))
1650 (with-directory-excursion "sys/unix"
1651 (substitute* "setup.sh" (("/bin/sh") bash))
1652 (invoke bash "setup.sh" "hints/linux"))
1653 #t)))
1654 (add-after 'install 'fixup-paths
1655 (lambda _
1656 (let* ((output (assoc-ref %outputs "out"))
1657 (nethack-script (string-append output "/bin/nethack")))
1658 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1659 (for-each
1660 (lambda (file)
1661 (rename-file
1662 (string-append output "/games/lib/nethackdir/" file)
1663 (string-append output "/games/lib/nethackuserdir/"
1664 file)))
1665 '("xlogfile" "logfile" "perm" "record" "save"))
1666 (mkdir-p (string-append output "/bin"))
1667 (call-with-output-file nethack-script
1668 (lambda (port)
1669 (format port "#!~a/bin/sh
1670 PATH=~a:$PATH
1671 if [ ! -d ~~/.config/nethack ]; then
1672 mkdir -p ~~/.config/nethack
1673 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1674 chmod -R +w ~~/.config/nethack
1675 fi
1676
1677 RUNDIR=$(mktemp -d)
1678
1679 cleanup() {
1680 rm -rf $RUNDIR
1681 }
1682 trap cleanup EXIT
1683
1684 cd $RUNDIR
1685 for i in ~~/.config/nethack/*; do
1686 ln -s $i $(basename $i)
1687 done
1688 for i in ~a/games/lib/nethackdir/*; do
1689 ln -s $i $(basename $i)
1690 done
1691 ~a/games/nethack"
1692 (assoc-ref %build-inputs "bash")
1693 (list->search-path-as-string
1694 (list
1695 (string-append
1696 (assoc-ref %build-inputs "coreutils") "/bin")
1697 (string-append
1698 (assoc-ref %build-inputs "less") "/bin"))
1699 ":")
1700 output
1701 output
1702 output)))
1703 (chmod nethack-script #o555)
1704 #t)))
1705 (delete 'check))))
1706 (home-page "https://nethack.org")
1707 (synopsis "Classic dungeon crawl game")
1708 (description "NetHack is a single player dungeon exploration game that runs
1709 on a wide variety of computer systems, with a variety of graphical and text
1710 interfaces all using the same game engine. Unlike many other Dungeons &
1711 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1712 the dungeon and not simply killing everything in sight - in fact, killing
1713 everything in sight is a good way to die quickly. Each game presents a
1714 different landscape - the random number generator provides an essentially
1715 unlimited number of variations of the dungeon and its denizens to be discovered
1716 by the player in one of a number of characters: you can pick your race, your
1717 role, and your gender.")
1718 (license
1719 (license:fsdg-compatible
1720 "https://nethack.org/common/license.html"))))
1721
1722 (define-public pipewalker
1723 (package
1724 (name "pipewalker")
1725 (version "0.9.4")
1726 (source
1727 (origin
1728 (method url-fetch)
1729 (uri (string-append "http://downloads.sourceforge.net/pipewalker/"
1730 "pipewalker-" version ".tar.gz"))
1731 (sha256
1732 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1733 (build-system gnu-build-system)
1734 (arguments
1735 `(#:configure-flags
1736 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1737 "/share/doc/" ,name "-" ,version))
1738 #:phases
1739 (modify-phases %standard-phases
1740 (add-after 'configure 'patch-docdir
1741 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1742 (lambda _
1743 (substitute* "Makefile"
1744 (("(pkgdocdatadir = ).*" _ assignment)
1745 (string-append assignment "$(docdir)\n")))
1746 #t)))))
1747 (inputs
1748 `(("libpng" ,libpng)
1749 ("mesa" ,mesa)
1750 ("sdl" ,sdl)))
1751 (home-page "http://pipewalker.sourceforge.net/")
1752 (synopsis "Logical tile puzzle")
1753 (description
1754 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1755 computers to one network server, bring water from a source to the taps, etc.
1756 The underlying mechanism is always the same: you must turn each tile in the
1757 grid in the right direction to combine all components into a single circuit.
1758 Every puzzle has a complete solution, although there may be more than one.")
1759 (license license:gpl3+)))
1760
1761 (define-public prboom-plus
1762 (package
1763 (name "prboom-plus")
1764 (version "2.5.1.4")
1765 (source (origin
1766 (method url-fetch)
1767 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
1768 version "/prboom-plus-" version ".tar.gz"))
1769 (sha256
1770 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
1771 (modules '((guix build utils)))
1772 (snippet
1773 '(begin
1774 (substitute* "src/version.c"
1775 (("__DATE__") "")
1776 (("__TIME__") ""))
1777 #t))))
1778 (build-system gnu-build-system)
1779 (arguments
1780 '(#:configure-flags '("--disable-cpu-opt")
1781 #:make-flags `(,(string-append "gamesdir="
1782 (assoc-ref %outputs "out") "/bin"))
1783 #:phases
1784 (modify-phases %standard-phases
1785 (add-after 'set-paths 'set-sdl'paths
1786 (lambda* (#:key inputs #:allow-other-keys)
1787 (setenv "CPATH"
1788 (string-append (assoc-ref inputs "sdl-union")
1789 "/include/SDL:"
1790 (or (getenv "CPATH") "")))
1791 #t)))))
1792 (inputs
1793 `(("fluidsynth" ,fluidsynth)
1794 ("glu" ,glu)
1795 ("libmad" ,libmad)
1796 ("libpng" ,libpng)
1797 ("libvorbis" ,libvorbis)
1798 ("pcre" ,pcre)
1799 ("portmidi" ,portmidi)
1800 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
1801 (home-page "http://prboom-plus.sourceforge.net/")
1802 (synopsis "Version of the classic 3D shoot'em'up game Doom")
1803 (description
1804 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
1805 (license license:gpl2+)))
1806
1807 (define-public retux
1808 (package
1809 (name "retux")
1810 (version "1.3.6")
1811 (source (origin
1812 (method url-fetch)
1813 (uri (string-append "mirror://savannah/retux/"
1814 (version-major+minor version) "/retux-"
1815 version "-src.tar.gz"))
1816 (sha256
1817 (base32
1818 "01bidh4zisjp3nc436x0g85v60dvwb3ig37i7y01sa71j8fm4fmb"))))
1819 (build-system python-build-system)
1820 (arguments
1821 `(#:tests? #f ; no check target
1822 #:phases
1823 (modify-phases %standard-phases
1824 ;; no setup.py script
1825 (delete 'build)
1826 (replace 'install
1827 (lambda* (#:key outputs #:allow-other-keys)
1828 (let* ((out (assoc-ref outputs "out"))
1829 (bin (string-append out "/bin"))
1830 (data (string-append out "/share/retux"))
1831 (doc (string-append out "/share/doc/retux")))
1832 (mkdir-p bin)
1833
1834 (substitute* "retux.py"
1835 ;; Use the correct data directory.
1836 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
1837 (string-append "\"" data "\","))
1838 ;; Use Python 3 so the patch-shebangs phase works properly.
1839 ((".*python2.*") "#!/usr/bin/python3"))
1840
1841 (copy-file "retux.py" (string-append bin "/retux"))
1842
1843 (copy-recursively "data" data)
1844
1845 (install-file "COPYING" doc)
1846 #t))))))
1847 (inputs
1848 `(("python-sge-pygame" ,python-sge-pygame)
1849 ("python-six" ,python-six)
1850 ("python-xsge" ,python-xsge)))
1851 (home-page "http://retux.nongnu.org")
1852 (synopsis "Action platformer game")
1853 (description
1854 "ReTux is an action platformer loosely inspired by the Mario games,
1855 utilizing the art assets from the @code{SuperTux} project.")
1856 ;; GPL version 3 or later is the license for the code and some art.
1857 ;; The rest of the licenses are for the art exclusively, as listed in
1858 ;; data/LICENSES.
1859 (license (list license:cc0
1860 license:cc-by3.0
1861 license:cc-by-sa3.0
1862 license:cc-by-sa4.0
1863 license:gpl2+
1864 license:gpl3+))))
1865
1866 (define-public roguebox-adventures
1867 (package
1868 (name "roguebox-adventures")
1869 (version "3.0.1")
1870 (source
1871 (origin
1872 (method url-fetch)
1873 (uri (string-append
1874 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
1875 (string-join (string-split version #\.) "_") "_Source.zip"))
1876 (file-name (string-append name "-" version ".zip"))
1877 (sha256
1878 (base32
1879 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
1880 (build-system python-build-system)
1881 (arguments
1882 `(#:tests? #f ; no check target
1883 #:phases
1884 (modify-phases %standard-phases
1885 (replace 'unpack
1886 (lambda* (#:key source #:allow-other-keys)
1887 (and (invoke "unzip" source)
1888 ;; The actual source is buried a few directories deep.
1889 (chdir (string-append "RogueBoxAdventures_v"
1890 (string-join
1891 (string-split ,version #\.) "_")
1892 "_Source")))))
1893 ;; no setup.py script
1894 (replace 'build
1895 (lambda* (#:key outputs #:allow-other-keys)
1896 (let* ((out (assoc-ref outputs "out"))
1897 (data (string-append
1898 out "/share/games/roguebox-adventures")))
1899 ;; Use the correct data directory.
1900 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
1901 (("basic_path + os\\.sep + 'DATA'")
1902 (string-append "'" data "'"))
1903 (("^basic_path.*$")
1904 (string-append "basic_path ='" data "'\n")))
1905 (substitute* "LIB/dialog.py"
1906 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
1907 (string-append "d_path = '" data "'")))
1908 (substitute* "LIB/gra_files.py"
1909 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
1910 (string-append "basic_path ='" data "'\n")))
1911
1912 ;; The game must save in the user's home directory because
1913 ;; the store is read-only.
1914 (substitute* "main.py"
1915 (("home_save = False") "home_save = True")
1916 (("'icon_small.png'")
1917 (string-append "'" data "/icon_small.png'"))))
1918 #t))
1919 (replace 'install
1920 (lambda* (#:key outputs #:allow-other-keys)
1921 (let* ((out (assoc-ref outputs "out"))
1922 (bin (string-append out "/bin"))
1923 (roguebox-adventures
1924 (string-append bin "/roguebox-adventures"))
1925 (data (string-append
1926 out "/share/games/roguebox-adventures"))
1927 (lib (string-append data "/LIB"))
1928 (doc (string-append
1929 out "/share/doc/roguebox-adventures")))
1930 (mkdir-p bin)
1931 (mkdir-p doc)
1932
1933 (for-each (lambda (file)
1934 (copy-recursively file
1935 (string-append data "/" file)))
1936 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
1937 "icon_big.png" "icon_small.png"))
1938 (for-each (lambda (file)
1939 (chmod file #o555)
1940 (install-file file lib))
1941 '("main.py" "run.py"))
1942
1943 (copy-recursively "DOC" doc)
1944
1945 (call-with-output-file
1946 roguebox-adventures
1947 (lambda (p)
1948 (format p "\
1949 #!~a
1950 export PYTHONPATH=~a/LIB:~a
1951 exec -a \"~a\" ~a \"$@\"\n"
1952 (which "bash") data (getenv "PYTHONPATH")
1953 (which "python3")
1954 (string-append lib "/main.py"))))
1955 (chmod roguebox-adventures #o555))
1956 #t)))))
1957 (native-inputs
1958 `(("unzip" ,unzip)))
1959 (inputs
1960 `(("python-pygame" ,python-pygame)
1961 ("python-tmx" ,python-tmx)))
1962 (home-page "https://rogueboxadventures.tuxfamily.org")
1963 (synopsis "A classical roguelike/sandbox game")
1964 (description
1965 "RogueBox Adventures is a graphical roguelike with strong influences
1966 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
1967 Adventures is to offer the player a kind of roguelike toy-world. This world
1968 can be explored and changed freely.")
1969 ;; The GPL3+ is for code, the rest are for art.
1970 (license (list license:cc0
1971 license:cc-by3.0
1972 license:gpl3+
1973 license:silofl1.1))))
1974
1975 (define-public seahorse-adventures
1976 (package
1977 (name "seahorse-adventures")
1978 (version "1.2")
1979 (source
1980 (origin
1981 (method git-fetch)
1982 (uri (git-reference
1983 (url "https://github.com/dulsi/seahorse-adventures")
1984 (commit (string-append "release-" version))))
1985 (file-name (git-file-name name version))
1986 (sha256
1987 (base32 "1rnvk06npaqcpjz5z6xcmssz61i32s422lydp49vrnf3j2g4yimd"))
1988 (modules '((guix build utils)
1989 (ice-9 ftw)
1990 (srfi srfi-1)))
1991 ;; Remove non-free (non-commercial) font.
1992 (snippet
1993 `(begin
1994 (for-each delete-file (find-files "data/fonts" "."))
1995 #t))))
1996 (build-system python-build-system)
1997 (arguments
1998 `(#:tests? #f ;no test
1999 #:phases
2000 (modify-phases %standard-phases
2001 (delete 'build) ;pure Python
2002 (replace 'install ;no install script
2003 (lambda* (#:key outputs #:allow-other-keys)
2004 (let* ((out (assoc-ref outputs "out"))
2005 (bin (string-append out "/bin"))
2006 (share (string-append out "/share"))
2007 (applications (string-append share "/applications"))
2008 (data (string-append share "/seahorse-adventures")))
2009 ;; Install data.
2010 (for-each (lambda (f)
2011 (chmod f #o555)
2012 (install-file f data))
2013 '("leveledit.py" "run_game.py" "tileedit.py"))
2014 (for-each (lambda (dir)
2015 (let ((target (string-append data "/" dir)))
2016 (mkdir-p target)
2017 (copy-recursively dir target)))
2018 '("data" "lib"))
2019 ;; Create executable.
2020 (mkdir-p bin)
2021 (let ((executable (string-append bin "/seahorse-adventures")))
2022 (call-with-output-file executable
2023 (lambda (p)
2024 (format p
2025 "#!~a~@
2026 export PYTHONPATH=~a:~a~@
2027 exec -a \"~a\" ~a \"$@\"~%"
2028 (which "bash") data (getenv "PYTHONPATH")
2029 (which "python3")
2030 (string-append data "/run_game.py"))))
2031 (chmod executable #o555))
2032 ;; Add desktop file.
2033 (mkdir-p applications)
2034 (make-desktop-entry-file
2035 (string-append applications "/seahorse-adventures.desktop")
2036 #:name "Seahorse Adventures"
2037 #:comment
2038 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2039 #:exec ,name
2040 #:icon ,name
2041 #:categories '("Game" "ActionGame")
2042 #:keywords '("game" "retro" "platform"))
2043 ;; Add icons.
2044 (for-each
2045 (lambda (size)
2046 (let ((dir (string-append share "/icons/hicolor/"
2047 size "x" size "/apps")))
2048 (mkdir-p dir)
2049 (copy-file
2050 (string-append "icon" size ".png")
2051 (string-append dir "/searhorse-adventures.png"))))
2052 '("32" "64" "128")))
2053 #t))
2054 (add-after 'install 'unbundle-fonts
2055 ;; Unbundle Bitstream Vera font and replace deleted one.
2056 (lambda* (#:key outputs inputs #:allow-other-keys)
2057 (let* ((out (assoc-ref outputs "out"))
2058 (data (string-append out "/share/seahorse-adventures"))
2059 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2060 "/share/fonts/truetype/Vera.ttf")))
2061 (let ((themes-dir (string-append data "/data/themes/")))
2062 (for-each
2063 (lambda (theme)
2064 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2065 (delete-file target)
2066 (symlink vera target)))
2067 '("default" "gray")))
2068 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2069 (substitute* (string-append data "/lib/main.py")
2070 (("f_scale = 0.35") "f_scale = 0.47")))
2071 #t)))))
2072 (inputs
2073 `(("font-bitstream-vera" ,font-bitstream-vera)
2074 ("python-pygame" ,python-pygame)))
2075 (home-page "http://www.imitationpickles.org/barbie/")
2076 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2077 (description
2078 "Barbie Seahorse Adventures is a retro style platform arcade game.
2079 You are Barbie the seahorse who travels through the jungle, up to the
2080 volcano until you float on bubbles to the moon. On the way to your
2081 final destination you will encounter various enemies, servants of the
2082 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2083 and defeat them with your bubbles!")
2084 ;; GPL2+ is for code, CC0 is for art.
2085 (license (list license:gpl2+ license:cc0))))
2086
2087 (define-public superstarfighter
2088 (package
2089 (name "superstarfighter")
2090 (version "0.6.4")
2091 (source
2092 (origin
2093 (method git-fetch)
2094 (uri (git-reference
2095 (url "https://github.com/notapixelstudio/superstarfighter")
2096 (commit (string-append "v" version))))
2097 (file-name (git-file-name name version))
2098 (sha256
2099 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2100 (build-system gnu-build-system)
2101 (arguments
2102 `(#:tests? #f ;there are no tests
2103 #:phases
2104 (modify-phases %standard-phases
2105 (replace 'configure
2106 (lambda _
2107 (chdir "godot")
2108 (setenv "HOME" (getcwd))
2109 (with-output-to-file "export_presets.cfg"
2110 (lambda ()
2111 (display
2112 "[preset.0]
2113 name=\"Guix\"
2114 platform=\"Linux/X11\"
2115 runnable=true
2116 [preset.0.options]")))
2117 #t))
2118 (replace 'build
2119 (lambda _
2120 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2121 (invoke (string-append godot "/bin/godot_server")
2122 "--export-pack" "Guix"
2123 "superstarfighter.pck" "project.godot"))
2124 #t))
2125 (replace 'install
2126 (lambda* (#:key inputs outputs #:allow-other-keys)
2127 (let* ((out (assoc-ref outputs "out"))
2128 (bin (string-append out "/bin"))
2129 (share (string-append out "/share"))
2130 (data (string-append share "/superstarfighter"))
2131 (icons (string-append share "/icons/hicolor/256x256/apps")))
2132 (install-file "superstarfighter.pck" data)
2133 (mkdir-p bin)
2134 (call-with-output-file (string-append bin "/superstarfighter")
2135 (lambda (port)
2136 (format port
2137 "#!/bin/sh~@
2138 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2139 (assoc-ref inputs "godot")
2140 data)
2141 (chmod port #o755)))
2142 (mkdir-p icons)
2143 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2144 (make-desktop-entry-file
2145 (string-append share "/applications/" ,name ".desktop")
2146 #:name "SuperStarfighter"
2147 #:comment "Fast-paced arcade combat game"
2148 #:exec ,name
2149 #:icon ,name
2150 #:categories '("Game" "ArcadeGame")))
2151 #t)))))
2152 (native-inputs
2153 `(("godot-headless" ,godot "headless")))
2154 (inputs
2155 `(("godot" ,godot)))
2156 (home-page "https://notapixel.itch.io/superstarfighter")
2157 (synopsis "Fast-paced local multiplayer arcade game")
2158 (description "In SuperStarfighter, up to four local players compete in a
2159 2D arena with fast-moving ships and missiles. Different game types are
2160 available, as well as a single-player mode with AI-controlled ships.")
2161 (license (list license:expat ; game
2162 license:silofl1.1)))) ; fonts
2163
2164 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2165 (define %ufoai-revision "0")
2166 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2167 (define ufoai-source
2168 (origin
2169 (method git-fetch)
2170 (uri (git-reference
2171 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2172 (commit %ufoai-commit)))
2173 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2174 (sha256
2175 (base32
2176 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2177 (modules '((guix build utils)
2178 (srfi srfi-1)
2179 (ice-9 ftw)))
2180 (snippet
2181 '(begin
2182 ;; Delete ~32MiB of bundled dependencies.
2183 (with-directory-excursion "src/libs"
2184 (for-each delete-file-recursively
2185 (lset-difference equal? (scandir ".")
2186 '("." ".." "gtest" "mumble"))))
2187
2188 ;; Use relative path to Lua headers.
2189 (substitute* "src/common/scripts_lua.h"
2190 (("\\.\\./libs/lua/") ""))
2191
2192 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2193 ;; it as a separate package. This way we don't need to make the same
2194 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2195 (substitute* "build/maps.mk"
2196 (("\\./ufo2map") "ufo2map")
2197 (("maps: ufo2map") "maps:"))
2198 (substitute* "build/modules/testall.mk"
2199 (("testall: ufo2map") "testall:"))
2200
2201 ;; If no cURL headers are found, the build system will try to include
2202 ;; the bundled version, even when not required. Prevent that.
2203 (substitute* "build/default.mk"
2204 (("^include src/libs/curl/lib/Makefile\\.inc")
2205 ""))
2206
2207 ;; While here, improve reproducibility by adding the '-X' flag to the
2208 ;; zip command used to create the map files, in order to prevent time
2209 ;; stamps from making it into the generated archives.
2210 (substitute* "build/data.mk"
2211 (("\\$\\(call ZIP\\)")
2212 "$(call ZIP) -X"))
2213 #t))))
2214
2215 (define-public ufo2map
2216 (package
2217 (name "ufo2map")
2218 (version %ufoai-version)
2219 (home-page "https://ufoai.org/")
2220 (source ufoai-source)
2221 (build-system gnu-build-system)
2222 (arguments
2223 '(#:configure-flags '("CC=gcc" "CXX=g++"
2224 "--enable-release"
2225 "--enable-ufo2map"
2226 "--disable-uforadiant"
2227 "--disable-cgame-campaign"
2228 "--disable-cgame-multiplayer"
2229 "--disable-cgame-skirmish"
2230 "--disable-game"
2231 "--disable-memory"
2232 "--disable-testall"
2233 "--disable-ufoded"
2234 "--disable-ufo"
2235 "--disable-ufomodel"
2236 "--disable-ufoslicer")
2237 #:tests? #f ;no tests
2238 #:phases (modify-phases %standard-phases
2239 (replace 'configure
2240 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2241 ;; The home-made configure script does not understand
2242 ;; some of the default flags of gnu-build-system.
2243 (apply invoke "./configure" configure-flags)))
2244 (replace 'install
2245 (lambda* (#:key outputs #:allow-other-keys)
2246 (let ((out (assoc-ref outputs "out")))
2247 (install-file "ufo2map" (string-append out "/bin"))
2248 (install-file "debian/ufo2map.6"
2249 (string-append out "/share/man/man6"))
2250 #t))))))
2251 (native-inputs
2252 `(("pkg-config" ,pkg-config)))
2253 (inputs
2254 `(("libjpeg" ,libjpeg-turbo)
2255 ("libpng" ,libpng)
2256 ("lua" ,lua-5.1)
2257 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2258 (synopsis "UFO: AI map generator")
2259 (description
2260 "This package provides @command{ufo2map}, a program used to generate
2261 maps for the UFO: Alien Invasion strategy game.")
2262 (license license:gpl2+)))
2263
2264 (define ufoai-data
2265 (package
2266 (name "ufoai-data")
2267 (version %ufoai-version)
2268 (home-page "https://ufoai.org/")
2269 (source ufoai-source)
2270 (build-system gnu-build-system)
2271 (arguments
2272 '(#:tests? #f
2273 #:configure-flags '("CC=gcc" "CXX=g++")
2274 #:phases (modify-phases %standard-phases
2275 (replace 'configure
2276 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2277 (apply invoke "./configure" configure-flags)))
2278 (replace 'build
2279 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2280 (invoke "make"
2281 "-j" (if parallel-build?
2282 (number->string (parallel-job-count))
2283 "1")
2284 "maps")))
2285 (add-after 'build 'pack
2286 (lambda _
2287 (invoke "make" "pk3")))
2288 (replace 'install
2289 (lambda* (#:key outputs #:allow-other-keys)
2290 (let ((out (assoc-ref outputs "out")))
2291 (for-each (lambda (file)
2292 (install-file file out))
2293 (find-files "base" "\\.pk3$"))
2294 #t))))))
2295 (native-inputs
2296 `(("python" ,python-2)
2297 ("ufo2map" ,ufo2map)
2298 ("which" ,which)
2299 ("zip" ,zip)))
2300 (synopsis "UFO: AI data files")
2301 (description
2302 "This package contains maps and other assets for UFO: Alien Invasion.")
2303 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2304 ;; licenses, see LICENSES for details.
2305 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2306 license:cc-by-sa3.0 license:public-domain))))
2307
2308 (define-public ufoai
2309 (package
2310 (name "ufoai")
2311 (version %ufoai-version)
2312 (home-page "https://ufoai.org/")
2313 (source ufoai-source)
2314 (build-system gnu-build-system)
2315 (arguments
2316 `(#:configure-flags
2317 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2318 (string-append "--datadir=" (assoc-ref %outputs "out")
2319 "/share/games/ufo")
2320 "CC=gcc" "CXX=g++"
2321 "--enable-release"
2322 "--enable-game"
2323 "--disable-ufo2map"
2324 "--disable-dependency-tracking"
2325
2326 ;; Disable hard links to prevent huge NARs.
2327 "--disable-hardlinkedgame"
2328 "--disable-hardlinkedcgame")
2329 #:phases (modify-phases %standard-phases
2330 (add-after 'unpack 'symlink-data-files
2331 (lambda* (#:key inputs #:allow-other-keys)
2332 (let ((data (assoc-ref inputs "ufoai-data")))
2333 ;; Symlink the data files to where the build system
2334 ;; expects to find them. Ultimately these files are
2335 ;; copied to $out/share/games/ufoai/base, losing the
2336 ;; symlinks; we could fix that after install, but it
2337 ;; does not make a big difference in practice due to
2338 ;; deduplication.
2339 (with-directory-excursion "base"
2340 (for-each (lambda (file)
2341 (symlink file (basename file)))
2342 (find-files data "\\.pk3$")))
2343 #t)))
2344 (add-before 'configure 'create-language-files
2345 (lambda _
2346 (invoke "make" "lang")))
2347 (replace 'configure
2348 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2349 (apply invoke "./configure" configure-flags)))
2350 (replace 'check
2351 (lambda* (#:key tests? #:allow-other-keys)
2352 (if tests?
2353 (invoke "./testall")
2354 (format #t "test suite not run~%"))
2355 #t))
2356 (add-after 'install 'install-man-pages
2357 (lambda* (#:key outputs #:allow-other-keys)
2358 (let* ((out (assoc-ref outputs "out"))
2359 (man6 (string-append out "/share/man/man6")))
2360 (install-file "debian/ufo.6" man6)
2361 (install-file "debian/ufoded.6" man6)
2362 #t))))
2363
2364 ;; TODO: Some map tests occasionally fail because of randomness issues,
2365 ;; e.g. not enough generated aliens. The test runner also fails early
2366 ;; in the build container with 'failed to shutdown server'?
2367 #:tests? #f))
2368 (native-inputs
2369 `(("gettext" ,gettext-minimal)
2370 ("pkg-config" ,pkg-config)
2371 ("python" ,python-2)
2372 ("ufo2map" ,ufo2map)
2373 ("ufoai-data" ,ufoai-data)))
2374 (inputs
2375 `(("curl" ,curl)
2376 ("libjpeg" ,libjpeg-turbo)
2377 ("libogg" ,libogg)
2378 ("libpng" ,libpng)
2379 ("libtheora" ,libtheora)
2380 ("libvorbis" ,libvorbis)
2381 ("libxml2" ,libxml2)
2382 ("lua" ,lua-5.1)
2383 ("mesa" ,mesa)
2384 ("minixml" ,minixml)
2385 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2386 ("zlib" ,zlib)))
2387 (synopsis "Turn-based tactical strategy game")
2388 (description
2389 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2390 You control a secret organisation charged with defending Earth from a brutal
2391 alien enemy. Build up your bases, prepare your team, and dive head-first into
2392 the fast and flowing turn-based combat.
2393
2394 Over the long term you will need to conduct research into the alien threat to
2395 figure out their mysterious goals and use their powerful weapons for your own
2396 ends. You will produce unique items and use them in combat against your
2397 enemies.
2398
2399 You can also use them against your friends with the multiplayer functionality.
2400
2401 Warning: This is a pre-release version of UFO: AI! Some things may not work
2402 properly.")
2403
2404 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2405 ;; because some assets do not use the "or later" clause. Many individual
2406 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2407 (license (delete license:gpl2+ (package-license ufoai-data)))))
2408
2409 (define-public xshogi
2410 (package
2411 (name "xshogi")
2412 (version "1.4.2")
2413 (source
2414 (origin
2415 (method url-fetch)
2416 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2417 version ".tar.gz"))
2418 (sha256
2419 (base32
2420 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2421 (build-system gnu-build-system)
2422 (inputs
2423 `(("libxaw" ,libxaw)
2424 ("libxt" ,libxt)))
2425 (home-page "https://www.gnu.org/software/gnushogi/")
2426 (synopsis "User interface for gnushogi")
2427 (description "A graphical user interface for the package @code{gnushogi}.")
2428 ;; Contains a copy of GPLv3 but the licence notices simply
2429 ;; state "GNU General Public Licence" without specifying a version.
2430 (license license:gpl1+)))
2431
2432 (define-public abbaye
2433 (package
2434 (name "abbaye")
2435 (version "2.0.1")
2436 (source
2437 (origin
2438 (method git-fetch)
2439 (uri (git-reference
2440 (url "https://github.com/nevat/abbayedesmorts-gpl")
2441 (commit (string-append "v" version))))
2442 (file-name (git-file-name name version))
2443 (sha256
2444 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2445 (modules '((guix build utils)))
2446 (snippet
2447 ;; Unbundle fonts.
2448 '(begin
2449 (delete-file-recursively "fonts")
2450 #t))))
2451 (build-system gnu-build-system)
2452 (arguments
2453 '(#:make-flags '("CC=gcc")
2454 #:phases (modify-phases %standard-phases
2455 (add-after 'set-paths 'set-sdl-paths
2456 (lambda* (#:key inputs #:allow-other-keys)
2457 (setenv "CPATH"
2458 (string-append (assoc-ref inputs "sdl-union")
2459 "/include/SDL:"
2460 (or (getenv "CPATH") "")))))
2461 (add-after 'patch-source-shebangs 'patch-makefile
2462 (lambda* (#:key outputs #:allow-other-keys)
2463 ;; Replace /usr with package output directory.
2464 (substitute* "Makefile"
2465 (("/usr") (assoc-ref outputs "out")))))
2466 (add-before 'install 'make-install-dirs
2467 (lambda* (#:key outputs #:allow-other-keys)
2468 (let ((prefix (assoc-ref outputs "out")))
2469 ;; Create directories that the makefile assumes exist.
2470 (mkdir-p (string-append prefix "/bin"))
2471 (mkdir-p (string-append prefix "/share/applications"))
2472 (mkdir-p (string-append prefix "/share/pixmaps")))))
2473 ;; No configure script.
2474 (delete 'configure))
2475 #:tests? #f)) ;; No check target.
2476 (native-inputs `(("pkg-config" ,pkg-config)))
2477 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2478 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2479 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2480 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2481 France. The Cathars, who preach about good Christian beliefs, were being
2482 expelled by the Catholic Church out of the Languedoc region in France. One of
2483 them, called Jean Raymond, found an old church in which to hide, not knowing
2484 that beneath its ruins lay buried an ancient evil.")
2485 (license license:gpl3)))
2486
2487 (define-public angband
2488 (package
2489 (name "angband")
2490 (version "4.2.1")
2491 (source
2492 (origin
2493 (method url-fetch)
2494 (uri (string-append "https://rephial.org/downloads/"
2495 (version-major+minor version)
2496 "/angband-" version ".tar.gz"))
2497 (sha256
2498 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2499 (modules '((guix build utils)))
2500 (snippet
2501 ;; So, some of the sounds/graphics/tilesets are under different
2502 ;; licenses... some of them even nonfree! This is a console-only
2503 ;; version of this package so we just remove them.
2504 ;; In the future, if someone tries to make a graphical variant of
2505 ;; this package, they can deal with that mess themselves. :)
2506 '(begin
2507 (for-each (lambda (subdir)
2508 (let ((lib-subdir (string-append "lib/" subdir)))
2509 (delete-file-recursively lib-subdir)))
2510 '("fonts" "icons" "sounds" "tiles"))
2511 (substitute* "lib/Makefile"
2512 ;; And don't try to invoke makefiles in the directories we removed.
2513 (("gamedata customize help screens fonts tiles sounds icons user")
2514 "gamedata customize help screens user"))
2515 #t))))
2516 (build-system gnu-build-system)
2517 (arguments
2518 `(#:tests? #f ; no check target
2519 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2520 #:phases
2521 (modify-phases %standard-phases
2522 (replace 'bootstrap
2523 (lambda _
2524 (substitute* "acinclude.m4"
2525 (("ncursesw5-config") "ncursesw6-config"))
2526 (invoke "sh" "autogen.sh"))))))
2527 (native-inputs
2528 `(("autoconf" ,autoconf)
2529 ("automake" ,automake)))
2530 (inputs `(("ncurses" ,ncurses)))
2531 (home-page "https://rephial.org/")
2532 (synopsis "Dungeon exploration roguelike")
2533 (description "Angband is a Classic dungeon exploration roguelike. Explore
2534 the depths below Angband, seeking riches, fighting monsters, and preparing to
2535 fight Morgoth, the Lord of Darkness.")
2536 (license license:gpl2)))
2537
2538 (define-public pingus
2539 (package
2540 (name "pingus")
2541 (version "0.7.6")
2542 (source
2543 (origin
2544 (method git-fetch)
2545 (uri (git-reference
2546 (url "https://gitlab.com/pingus/pingus.git")
2547 (commit (string-append "v" version))))
2548 (file-name (git-file-name name version))
2549 (sha256
2550 (base32
2551 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2552 (patches (search-patches "pingus-boost-headers.patch"
2553 "pingus-sdl-libs-config.patch"))
2554 (modules '((guix build utils)))
2555 (snippet
2556 '(begin
2557 (substitute* "src/pingus/screens/demo_session.cpp"
2558 (("#include <iostream>")
2559 ;; std::function moved to <functional> with C++ 11.
2560 ;; Remove this for versions newer than 0.7.6.
2561 "#include <iostream>\n#include <functional>"))
2562 #t))))
2563 (build-system gnu-build-system)
2564 (native-inputs `(("pkg-config" ,pkg-config)
2565 ("scons-python2" ,scons-python2)))
2566 (inputs `(("sdl" ,sdl)
2567 ("sdl-image" ,sdl-image)
2568 ("sdl-mixer" ,sdl-mixer)
2569 ("mesa" ,mesa)
2570 ("glu" ,glu)
2571 ("libpng" ,libpng)
2572 ("boost" ,boost)))
2573 (arguments
2574 '(#:make-flags (list (string-append "PREFIX=" %output))
2575 #:tests? #f ; no check target
2576 #:phases
2577 (modify-phases %standard-phases
2578 (delete 'configure)))) ; no configure script
2579 (home-page "https://pingus.seul.org/")
2580 (synopsis "Lemmings clone")
2581 (description
2582 "Pingus is a free Lemmings-like puzzle game in which the player takes
2583 command of a bunch of small animals and has to guide them through levels.
2584 Since the animals walk on their own, the player can only influence them by
2585 giving them commands, like build a bridge, dig a hole, or redirect all animals
2586 in the other direction. Multiple such commands are necessary to reach the
2587 level's exit. The game is presented in a 2D side view.")
2588 ;; Some source files are under bsd-3 and gpl2+ licenses.
2589 (license license:gpl3+)))
2590
2591 (define-public talkfilters
2592 (package
2593 (name "talkfilters")
2594 (version "2.3.8")
2595 (source
2596 (origin
2597 (method url-fetch)
2598 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
2599 "talkfilters-" version ".tar.gz"))
2600 (sha256
2601 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
2602 (build-system gnu-build-system)
2603 (home-page "https://www.gnu.org/software/talkfilters/")
2604 (synopsis "Convert English text to humorous dialects")
2605 (description "The GNU Talk Filters are programs that convert English text
2606 into stereotyped or otherwise humorous dialects. The filters are provided as
2607 a C library, so they can easily be integrated into other programs.")
2608 (license license:gpl2+)))
2609
2610 (define-public taisei
2611 (package
2612 (name "taisei")
2613 (version "1.3.1")
2614 (source
2615 (origin
2616 (method url-fetch)
2617 (uri (string-append "https://github.com/taisei-project/"
2618 "taisei/releases/download/v" version
2619 "/taisei-v" version ".tar.xz"))
2620 (sha256
2621 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
2622 (build-system meson-build-system)
2623 (arguments
2624 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
2625 #:configure-flags
2626 (list "-Dr_default=gles30"
2627 "-Dr_gles20=true"
2628 "-Dr_gles30=true"
2629 "-Dshader_transpiler=true")))
2630 (native-inputs
2631 `(("pkg-config" ,pkg-config)
2632 ("python" ,python)
2633 ("python-docutils" ,python-docutils)
2634 ("python-pygments" ,python-pygments)))
2635 (inputs
2636 `(("freetype" ,freetype)
2637 ("libpng" ,libpng)
2638 ("libwebp" ,libwebp)
2639 ("libzip" ,libzip)
2640 ("mesa" ,mesa)
2641 ("openssl" ,openssl)
2642 ("opusfile" ,opusfile)
2643 ("sdl2" ,sdl2)
2644 ("sdl2-mixer" ,sdl2-mixer)
2645 ("shaderc" ,shaderc)
2646 ("spirv-cross" ,spirv-cross)
2647 ("zlib" ,zlib)))
2648 (home-page "https://taisei-project.org/")
2649 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
2650 (description
2651 "The player controls a character (one of three: Good, Bad, and Dead),
2652 dodges the missiles (lots of it cover the screen, but the character's hitbox
2653 is very small), and shoot at the adversaries that keep appear on the screen.")
2654 (license (list ;;game
2655 license:expat
2656 ;;resources/00-taisei.pkgdir/bgm/
2657 ;;atlas/portraits/
2658 license:cc-by4.0
2659 ;;miscellaneous
2660 license:cc0
2661 license:public-domain))))
2662
2663 (define-public cmatrix
2664 (package
2665 (name "cmatrix")
2666 (version "2.0")
2667 (source
2668 (origin
2669 (method git-fetch)
2670 (uri (git-reference
2671 (url "https://github.com/abishekvashok/cmatrix")
2672 (commit (string-append "v" version))))
2673 (file-name (git-file-name name version))
2674 (sha256
2675 (base32
2676 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
2677 (build-system gnu-build-system)
2678 (native-inputs
2679 `(("autoconf" ,autoconf)
2680 ("automake" ,automake)))
2681 (arguments
2682 '(#:phases
2683 (modify-phases %standard-phases
2684 (replace 'configure
2685 (lambda* (#:key outputs #:allow-other-keys)
2686 ;; This old ‘configure’ script doesn't support
2687 ;; variables passed as arguments.
2688 (let ((out (assoc-ref outputs "out")))
2689 (setenv "CONFIG_SHELL" (which "bash"))
2690 (invoke "./configure"
2691 (string-append "--prefix=" out))))))))
2692 (inputs `(("ncurses" ,ncurses)))
2693 (home-page "http://www.asty.org/cmatrix")
2694 (synopsis "Simulate the display from \"The Matrix\"")
2695 (description "CMatrix simulates the display from \"The Matrix\" and is
2696 based on the screensaver from the movie's website. It works with terminal
2697 settings up to 132x300 and can scroll lines all at the same rate or
2698 asynchronously and at a user-defined speed.")
2699 (license license:gpl2+)))
2700
2701 (define-public chess
2702 (package
2703 (name "chess")
2704 (version "6.2.7")
2705 (source
2706 (origin
2707 (method url-fetch)
2708 (uri (string-append "mirror://gnu/chess/gnuchess-" version
2709 ".tar.gz"))
2710 (sha256
2711 (base32
2712 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
2713 (build-system gnu-build-system)
2714 (home-page "https://www.gnu.org/software/chess/")
2715 (synopsis "Full chess implementation")
2716 (description "GNU Chess is a chess engine. It allows you to compete
2717 against the computer in a game of chess, either through the default terminal
2718 interface or via an external visual interface such as GNU XBoard.")
2719 (properties '((upstream-name . "gnuchess")
2720 (ftp-directory . "/chess")))
2721 (license license:gpl3+)))
2722
2723 (define freedink-engine
2724 (package
2725 (name "freedink-engine")
2726 (version "109.6")
2727 (source (origin
2728 (method url-fetch)
2729 (uri (string-append "mirror://gnu/freedink/freedink-" version
2730 ".tar.gz"))
2731 (sha256
2732 (base32
2733 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
2734 (build-system gnu-build-system)
2735 (arguments
2736 `(#:configure-flags '("--disable-embedded-resources")
2737 #:phases
2738 (modify-phases %standard-phases
2739 (add-after 'unpack 'disable-graphical-tests
2740 (lambda _
2741 ;; These tests require a graphical interface.
2742 (substitute* "src/Makefile.am"
2743 (("test_gfx_fonts TestIOGfxDisplay") ""))
2744 #t)))))
2745 (native-inputs `(("autoconf" ,autoconf)
2746 ("automake" ,automake)
2747 ("cxxtest" ,cxxtest)
2748 ("gettext" ,gettext-minimal)
2749 ("help2man" ,help2man)
2750 ("pkg-config" ,pkg-config)))
2751 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
2752 sdl2-ttf sdl2-gfx)))
2753 ("fontconfig" ,fontconfig)
2754 ("glm" ,glm)))
2755 (properties '((ftp-directory . "/freedink")
2756 (upstream-name . "freedink")))
2757 (home-page "https://www.gnu.org/software/freedink/")
2758 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
2759 (description
2760 "GNU FreeDink is a free and portable re-implementation of the engine
2761 for the role-playing game Dink Smallwood. It supports not only the original
2762 game data files but it also supports user-produced game mods or \"D-Mods\".
2763 To that extent, it also includes a front-end for managing all of your D-Mods.")
2764 (license license:gpl3+)))
2765
2766 (define freedink-data
2767 (package
2768 (name "freedink-data")
2769 (version "1.08.20190120")
2770 (source (origin
2771 (method url-fetch)
2772 (uri (string-append "mirror://gnu/freedink/freedink-data-"
2773 version ".tar.gz"))
2774 (sha256
2775 (base32
2776 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
2777 (build-system gnu-build-system)
2778 (arguments
2779 `(#:phases
2780 (modify-phases %standard-phases
2781 (delete 'configure) ; no configure script
2782 (delete 'check)) ; no tests
2783 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
2784 (properties '((ftp-directory . "/freedink")))
2785 (home-page "https://www.gnu.org/software/freedink/")
2786 (synopsis "Game data for GNU Freedink")
2787 (description
2788 "This package contains the game data of GNU Freedink.")
2789 (license license:gpl3+)))
2790
2791 (define-public freedink-dfarc
2792 (package
2793 (name "freedink-dfarc")
2794 (version "3.14")
2795 (source (origin
2796 (method url-fetch)
2797 (uri (string-append "mirror://gnu/freedink/dfarc-"
2798 version ".tar.gz"))
2799 (sha256
2800 (base32
2801 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
2802 (build-system gnu-build-system)
2803 (native-inputs
2804 `(("intltool" ,intltool)))
2805 (inputs
2806 `(("bzip2" ,bzip2)
2807 ("wxwidgets" ,wxwidgets)))
2808 (properties '((ftp-directory . "/freedink")
2809 (upstream-name . "dfarc")))
2810 (home-page "https://www.gnu.org/software/freedink/")
2811 (synopsis "Front-end for managing and playing Dink Modules")
2812 (description "DFArc makes it easy to play and manage the GNU FreeDink game
2813 and its numerous D-Mods.")
2814 (license license:gpl3+)))
2815
2816 (define-public freedink
2817 ;; This is a wrapper that tells the engine where to find the data.
2818 (package (inherit freedink-engine)
2819 (name "freedink")
2820 (build-system trivial-build-system)
2821 (arguments
2822 '(#:builder (begin
2823 (use-modules (guix build utils))
2824
2825 (let* ((output (assoc-ref %outputs "out"))
2826 (bin (string-append output "/bin"))
2827 (executable (string-append bin "/freedink")))
2828 (mkdir-p bin)
2829 (call-with-output-file executable
2830 (lambda (port)
2831 (format port "#!~a/bin/sh
2832 exec ~a/bin/freedink -refdir ~a/share/dink\n"
2833 (assoc-ref %build-inputs "bash")
2834 (assoc-ref %build-inputs "engine")
2835 (assoc-ref %build-inputs "data"))
2836 (chmod port #o777)))
2837 #t))
2838 #:modules ((guix build utils))))
2839 (inputs `(("engine" ,freedink-engine)
2840 ("data" ,freedink-data)
2841 ("bash" ,bash)))
2842 (native-inputs '())))
2843
2844 (define-public xboard
2845 (package
2846 (name "xboard")
2847 (version "4.9.1")
2848 (source
2849 (origin
2850 (method url-fetch)
2851 (uri (string-append "mirror://gnu/xboard/xboard-" version
2852 ".tar.gz"))
2853 (sha256
2854 (base32
2855 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
2856 (build-system gnu-build-system)
2857 (inputs
2858 `(("gtk+" ,gtk+-2)
2859 ("librsvg" ,librsvg)))
2860 (native-inputs
2861 `(("texinfo" ,texinfo)
2862 ("pkg-config" ,pkg-config)))
2863 (home-page "https://www.gnu.org/software/xboard/")
2864 (synopsis "Graphical user interface for chess programs")
2865 (description "GNU XBoard is a graphical board for all varieties of chess,
2866 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
2867 and Makruk. Several lesser-known variants are also supported. It presents a
2868 fully interactive graphical interface and it can load and save games in the
2869 Portable Game Notation.")
2870 (license license:gpl3+)))
2871
2872 (define-public gtypist
2873 (package
2874 (name "gtypist")
2875 (version "2.9.5")
2876 (source (origin
2877 (method url-fetch)
2878 (uri (string-append "mirror://gnu/gtypist/gtypist-"
2879 version ".tar.xz"))
2880 (sha256
2881 (base32
2882 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
2883 (modules '((guix build utils)))
2884 (snippet
2885 ;; We do not provide `ncurses.h' within an `ncursesw'
2886 ;; sub-directory, so patch the source accordingly. See
2887 ;; <http://bugs.gnu.org/19018>.
2888 '(begin
2889 (for-each (lambda (file)
2890 (substitute* file
2891 (("ncursesw/ncurses.h")
2892 "ncurses.h")))
2893 (find-files "." "configure$|\\.c$"))
2894 #t))))
2895 (build-system gnu-build-system)
2896 (inputs `(("ncurses" ,ncurses)
2897 ("perl" ,perl)))
2898 (home-page "https://www.gnu.org/software/gtypist/")
2899 (synopsis "Typing tutor")
2900 (description
2901 "GNU Typist is a universal typing tutor. It can be used to learn and
2902 practice touch-typing. Several tutorials are included; in addition to
2903 tutorials for the standard QWERTY layout, there are also tutorials for the
2904 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
2905 are primarily in English, however some in other languages are provided.")
2906 (license license:gpl3+)))
2907
2908 (define-public irrlicht
2909 (package
2910 (name "irrlicht")
2911 (version "1.8.4")
2912 (source (origin
2913 (method url-fetch)
2914 (uri (string-append
2915 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
2916 (version-major+minor version)
2917 "/" version "/irrlicht-" version ".zip"))
2918 (sha256
2919 (base32
2920 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
2921 (patches (search-patches "irrlicht-use-system-libs.patch"))
2922 (modules '((guix build utils)))
2923 (snippet
2924 '(begin
2925 (for-each delete-file-recursively
2926 '("bin" ; bundled compiled Windows binaries"
2927 "source/Irrlicht/MacOSX"
2928 "source/Irrlicht/bzip2"
2929 "source/Irrlicht/jpeglib"
2930 "source/Irrlicht/libpng"
2931 "source/Irrlicht/lzma"
2932 "source/Irrlicht/zlib"))
2933 (delete-file "source/Irrlicht/glext.h")
2934 (delete-file "source/Irrlicht/glxext.h")
2935 (delete-file "source/Irrlicht/wglext.h")
2936 #t))))
2937 (build-system gnu-build-system)
2938 (arguments
2939 `(#:phases
2940 (modify-phases %standard-phases
2941 (add-after 'unpack 'chdir-to-source
2942 (lambda _
2943 ;; The actual source is buried a few directories deep.
2944 (chdir "source/Irrlicht/")
2945 #t))
2946 (add-after 'chdir-to-source 'fix-build-env
2947 (lambda* (#:key outputs #:allow-other-keys)
2948 (let ((out (assoc-ref outputs "out")))
2949 (substitute* "Makefile"
2950 (("INSTALL_DIR = /usr/local/lib")
2951 (string-append "INSTALL_DIR = " out "/lib"))
2952 ;; Add '-fpermissive' to the CXXFLAGS
2953 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
2954 ;; The Makefile assumes these directories exist.
2955 (mkdir-p (string-append out "/lib"))
2956 (mkdir-p (string-append out "/include")))))
2957 (delete 'configure)) ; no configure script
2958 #:tests? #f ; no check target
2959 #:make-flags '("CC=gcc" "sharedlib")))
2960 (inputs
2961 `(("bzip2" ,bzip2)
2962 ("libjpeg" ,libjpeg-turbo)
2963 ("libpng" ,libpng)
2964 ("libx11" ,libx11)
2965 ("libxxf86vm" ,libxxf86vm)
2966 ("mesa" ,mesa)))
2967 (synopsis "3D game engine written in C++")
2968 (description
2969 "The Irrlicht Engine is a high performance realtime 3D engine written in
2970 C++. Features include an OpenGL renderer, extensible materials, scene graph
2971 management, character animation, particle and other special effects, support
2972 for common mesh file formats, and collision detection.")
2973 (home-page "http://irrlicht.sourceforge.net/")
2974 (license license:zlib)))
2975
2976 (define-public mars
2977 ;; The latest release on SourceForge relies on an unreleased version of SFML
2978 ;; with a different API, so we take the latest version from the official
2979 ;; repository on Github.
2980 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
2981 (revision "1"))
2982 (package
2983 (name "mars")
2984 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
2985 (source (origin
2986 (method git-fetch)
2987 (uri (git-reference
2988 (url "https://github.com/thelaui/M.A.R.S.")
2989 (commit commit)))
2990 (file-name (git-file-name name version))
2991 (sha256
2992 (base32
2993 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
2994 (patches (search-patches "mars-sfml-2.3.patch"
2995 "mars-install.patch"))))
2996 (build-system cmake-build-system)
2997 (arguments
2998 `(#:tests? #f ; There are no tests
2999 #:phases
3000 (modify-phases %standard-phases
3001 (add-after 'unpack 'fix-install-path
3002 (lambda _
3003 (substitute* "src/CMakeLists.txt"
3004 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3005 "${CMAKE_INSTALL_PREFIX}/bin"))
3006 #t))
3007 (add-after 'unpack 'fix-data-path
3008 (lambda* (#:key outputs #:allow-other-keys)
3009 (substitute* "src/System/settings.cpp"
3010 (("C_dataPath = \"./data/\";")
3011 (string-append "C_dataPath = \""
3012 (assoc-ref outputs "out")
3013 "/share/games/marsshooter/\";")))
3014 #t)))))
3015 (inputs
3016 `(("mesa" ,mesa)
3017 ("fribidi" ,fribidi)
3018 ("taglib" ,taglib)
3019 ("sfml" ,sfml)))
3020 (home-page "http://mars-game.sourceforge.net/")
3021 (synopsis "2D space shooter")
3022 (description
3023 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3024 attractive physics. Players can battle each other or computer controlled
3025 enemies in different game modes such as space ball, death match, team death
3026 match, cannon keep, and grave-itation pit.")
3027 (license license:gpl3+))))
3028
3029 (define-public minetest
3030 (package
3031 (name "minetest")
3032 (version "5.3.0")
3033 (source (origin
3034 (method git-fetch)
3035 (uri (git-reference
3036 (url "https://github.com/minetest/minetest")
3037 (commit version)))
3038 (file-name (git-file-name name version))
3039 (sha256
3040 (base32
3041 "03ga3j3cg38w4lg4d4qxasmnjdl8n3lbizidrinanvyfdyvznyh6"))
3042 (modules '((guix build utils)))
3043 (snippet
3044 '(begin
3045 ;; Delete bundled libraries.
3046 (delete-file-recursively "lib")
3047 #t))))
3048 (build-system cmake-build-system)
3049 (arguments
3050 '(#:configure-flags
3051 (list "-DRUN_IN_PLACE=0"
3052 "-DENABLE_FREETYPE=1"
3053 "-DENABLE_GETTEXT=1"
3054 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3055 (string-append "-DIRRLICHT_INCLUDE_DIR="
3056 (assoc-ref %build-inputs "irrlicht")
3057 "/include/irrlicht")
3058 (string-append "-DCURL_INCLUDE_DIR="
3059 (assoc-ref %build-inputs "curl")
3060 "/include/curl"))
3061 #:tests? #f)) ;no check target
3062 (native-search-paths
3063 (list (search-path-specification
3064 (variable "MINETEST_SUBGAME_PATH")
3065 (files '("share/minetest/games")))))
3066 (native-inputs
3067 `(("pkg-config" ,pkg-config)))
3068 (inputs
3069 `(("curl" ,curl)
3070 ("freetype" ,freetype)
3071 ("gettext" ,gettext-minimal)
3072 ("gmp" ,gmp)
3073 ("irrlicht" ,irrlicht)
3074 ("jsoncpp" ,jsoncpp)
3075 ("libjpeg" ,libjpeg-turbo)
3076 ("libpng" ,libpng)
3077 ("libogg" ,libogg)
3078 ("libvorbis" ,libvorbis)
3079 ("libxxf86vm" ,libxxf86vm)
3080 ("luajit" ,luajit)
3081 ("mesa" ,mesa)
3082 ("ncurses" ,ncurses)
3083 ("openal" ,openal)
3084 ("sqlite" ,sqlite)))
3085 (propagated-inputs
3086 `(("minetest-data" ,minetest-data)))
3087 (synopsis "Infinite-world block sandbox game")
3088 (description
3089 "Minetest is a sandbox construction game. Players can create and destroy
3090 various types of blocks in a three-dimensional open world. This allows
3091 forming structures in every possible creation, on multiplayer servers or as a
3092 single player. Mods and texture packs allow players to personalize the game
3093 in different ways.")
3094 (home-page "https://www.minetest.net/")
3095 (license license:lgpl2.1+)))
3096
3097 (define minetest-data
3098 (package
3099 (name "minetest-data")
3100 (version (package-version minetest))
3101 (source (origin
3102 (method git-fetch)
3103 (uri (git-reference
3104 (url "https://github.com/minetest/minetest_game")
3105 (commit version)))
3106 (file-name (git-file-name name version))
3107 (sha256
3108 (base32
3109 "1liciwlh013z5h08ib0psjbwn5wkvlr937ir7kslfk4vly984cjx"))))
3110 (build-system trivial-build-system)
3111 (native-inputs
3112 `(("source" ,source)))
3113 (arguments
3114 `(#:modules ((guix build utils))
3115 #:builder (begin
3116 (use-modules (guix build utils))
3117 (let ((install-dir (string-append
3118 %output
3119 "/share/minetest/games/minetest_game")))
3120 (mkdir-p install-dir)
3121 (copy-recursively
3122 (assoc-ref %build-inputs "source")
3123 install-dir)
3124 #t))))
3125 (synopsis "Main game data for the Minetest game engine")
3126 (description
3127 "Game data for the Minetest infinite-world block sandbox game.")
3128 (home-page "https://www.minetest.net/")
3129 (license license:lgpl2.1+)))
3130
3131 (define glkterm
3132 (package
3133 (name "glkterm")
3134 (version "1.0.4")
3135 (source
3136 (origin
3137 (method url-fetch)
3138 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3139 "glk/implementations/glkterm-104.tar.gz"))
3140 (sha256
3141 (base32
3142 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3143 (build-system gnu-build-system)
3144 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3145 (arguments
3146 '(#:tests? #f ; no check target
3147 #:phases
3148 (modify-phases %standard-phases
3149 (replace 'install
3150 (lambda* (#:key outputs #:allow-other-keys)
3151 (let* ((out (assoc-ref outputs "out"))
3152 (inc (string-append out "/include"))
3153 (lib (string-append out "/lib")))
3154 (for-each
3155 (lambda (file)
3156 (install-file file inc))
3157 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3158 (install-file "libglkterm.a" lib))
3159 #t))
3160 (delete 'configure)))) ; no configure script
3161 (home-page "http://www.eblong.com/zarf/glk/")
3162 (synopsis "Curses Implementation of the Glk API")
3163 (description
3164 "Glk defines a portable API for applications with text UIs. It was
3165 primarily designed for interactive fiction, but it should be suitable for many
3166 interactive text utilities, particularly those based on a command line.
3167 This is an implementation of the Glk library which runs in a terminal window,
3168 using the @code{curses.h} library for screen control.")
3169 (license (license:fsf-free "file://README"))))
3170
3171 (define-public glulxe
3172 (package
3173 (name "glulxe")
3174 (version "0.5.4")
3175 (source
3176 (origin
3177 (method url-fetch)
3178 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3179 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3180 (sha256
3181 (base32
3182 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3183 (build-system gnu-build-system)
3184 (inputs `(("glk" ,glkterm)))
3185 (arguments
3186 '(#:tests? #f ; no check target
3187 #:make-flags
3188 (let* ((glk (assoc-ref %build-inputs "glk")))
3189 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3190 (string-append "GLKLIBDIR=" glk "/lib")
3191 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3192 #:phases
3193 (modify-phases %standard-phases
3194 (replace 'install
3195 (lambda* (#:key outputs #:allow-other-keys)
3196 (let* ((out (assoc-ref outputs "out"))
3197 (bin (string-append out "/bin")))
3198 (install-file "glulxe" bin))
3199 #t))
3200 (delete 'configure)))) ; no configure script
3201 (home-page "https://www.eblong.com/zarf/glulx/")
3202 (synopsis "Interpreter for Glulx VM")
3203 (description
3204 "Glulx is a 32-bit portable virtual machine intended for writing and
3205 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3206 some of the restrictions in the venerable Z-machine format. This is the
3207 reference interpreter, using the Glk API.")
3208 (license license:expat)))
3209
3210 (define-public fifechan
3211 (package
3212 (name "fifechan")
3213 (version "0.1.5")
3214 (source (origin
3215 (method url-fetch)
3216 (uri (string-append "https://codeload.github.com/fifengine/"
3217 "fifechan/tar.gz/" version))
3218 (file-name (string-append name "-" version ".tar.gz"))
3219 (sha256
3220 (base32
3221 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3222 (build-system cmake-build-system)
3223 (inputs
3224 `(("sdl2" ,sdl2)
3225 ("sdl2-image" ,sdl2-image)
3226 ("mesa" ,mesa)))
3227 (arguments
3228 '(#:tests? #f)) ; No included tests
3229 (home-page "https://fifengine.github.io/fifechan/")
3230 (synopsis "Cross platform GUI library specifically for games")
3231 (description
3232 "Fifechan is a lightweight cross platform GUI library written in C++
3233 specifically designed for games. It has a built in set of extendable GUI
3234 Widgets, and allows users to create more.")
3235 (license license:lgpl2.1+)))
3236
3237 (define-public fifengine
3238 (package
3239 (name "fifengine")
3240 (version "0.4.2")
3241 (source (origin
3242 (method url-fetch)
3243 (uri (string-append "https://codeload.github.com/fifengine/"
3244 "fifengine/tar.gz/" version))
3245 (file-name (string-append name "-" version ".tar.gz"))
3246 (patches (search-patches "fifengine-swig-compat.patch"))
3247 (sha256
3248 (base32
3249 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3250 (build-system cmake-build-system)
3251 (arguments
3252 `(#:tests? #f ; TODO The test running fails to run some tests.
3253 #:modules ((srfi srfi-1)
3254 (guix build cmake-build-system)
3255 (guix build utils))
3256 #:configure-flags
3257 (list
3258 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3259 (assoc-ref %build-inputs "openal")
3260 "/include/AL")
3261 (string-append "-DPYTHON_SITE_PACKAGES="
3262 (assoc-ref %outputs "out")
3263 "/lib/python"
3264 ,(version-major+minor (package-version python))
3265 "/site-packages"))
3266 #:phases
3267 (modify-phases %standard-phases
3268 (add-after 'unpack 'patch-run_tests.py
3269 (lambda _
3270 ;; Patch the test runner to exit with a status of 1 if any test
3271 ;; fails, to allow detecting failures.
3272 (substitute* "run_tests.py"
3273 (("ERROR\\. One or more tests failed!'\\)")
3274 "ERROR. One or more tests failed!')
3275 \t\texit(1)"))
3276 #t))
3277 ;; Run tests after installation so that we can make use of the built
3278 ;; python modules.
3279 (delete 'check)
3280 (add-after 'install 'check
3281 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3282 (define python-version
3283 (let* ((version (last (string-split
3284 (assoc-ref inputs "python")
3285 #\-)))
3286 (components (string-split version #\.))
3287 (major+minor (take components 2)))
3288 (string-join major+minor ".")))
3289
3290 (when tests?
3291 ;; Set PYTHONPATH so that python finds the installed modules.
3292 (setenv "PYTHONPATH"
3293 (string-append (getenv "PYTHONPATH") ":"
3294 (assoc-ref outputs "out")
3295 "/lib/python"
3296 python-version
3297 "/site-packages"))
3298 ;; The tests require an X server.
3299 (system "Xvfb :1 &")
3300 (setenv "DISPLAY" ":1")
3301 (setenv "XDG_RUNTIME_DIR" "/tmp")
3302 ;; Run tests
3303 (chdir ,(string-append "../" name "-" version))
3304 (invoke "python3" "run_tests.py" "-a"))
3305 #t)))))
3306 (inputs
3307 `(("sdl2" ,sdl2)
3308 ("sdl2-image" ,sdl2-image)
3309 ("sdl2-ttf" ,sdl2-ttf)
3310 ("tinyxml" ,tinyxml)
3311 ("openal" ,openal)
3312 ("libogg" ,libogg)
3313 ("glew" ,glew)
3314 ("libvorbis" ,libvorbis)
3315 ("boost" ,boost)
3316 ("fifechan" ,fifechan)
3317 ("swig" ,swig)
3318 ("python" ,python)))
3319 (native-inputs
3320 `(("python" ,python)
3321 ("swig" ,swig)
3322 ("xvfb" ,xorg-server)))
3323 (propagated-inputs
3324 `(("python-future" ,python-future)))
3325 (home-page "https://www.fifengine.net/")
3326 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3327 (description
3328 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3329 isometric game engine. Python bindings are included allowing users to create
3330 games using Python as well as C++.")
3331 (license license:lgpl2.1+)))
3332
3333 (define-public fizmo
3334 (package
3335 (name "fizmo")
3336 (version "0.8.5")
3337 (source (origin
3338 (method url-fetch)
3339 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3340 "fizmo-" version ".tar.gz"))
3341 (sha256
3342 (base32
3343 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3344 (build-system gnu-build-system)
3345 (arguments
3346 '(#:configure-flags
3347 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3348 (ncurses (assoc-ref %build-inputs "ncurses")))
3349 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3350 (native-inputs
3351 `(("pkg-config" ,pkg-config)))
3352 (inputs
3353 `(("freetype" ,freetype)
3354 ("libjpeg" ,libjpeg-turbo)
3355 ("libpng" ,libpng)
3356 ("libsndfile" ,libsndfile)
3357 ("libxml2" ,libxml2)
3358 ("ncurses" ,ncurses)
3359 ("sdl2" ,sdl2)))
3360 (home-page "https://fizmo.spellbreaker.org/")
3361 (synopsis "Z-machine interpreter")
3362 (description
3363 "Fizmo is a console-based Z-machine interpreter. It is used to play
3364 interactive fiction, also known as text adventures, which were implemented
3365 either by Infocom or created using the Inform compiler.")
3366 (license license:bsd-3)))
3367
3368 (define-public gnugo
3369 (package
3370 (name "gnugo")
3371 (version "3.8")
3372 (source (origin
3373 (method url-fetch)
3374 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3375 ".tar.gz"))
3376 (sha256
3377 (base32
3378 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3379 (build-system gnu-build-system)
3380 (inputs `(("readline" ,readline)))
3381 (synopsis "Play the game of Go")
3382 (description
3383 "GNU Go is a program that plays the game of Go, in which players
3384 place stones on a grid to form territory or capture other stones. While
3385 it can be played directly from the terminal, rendered in ASCII characters,
3386 it is also possible to play GNU Go with 3rd party graphical interfaces or
3387 even in Emacs. It supports the standard game storage format (SGF, Smart
3388 Game Format) and inter-process communication format (GMP, Go Modem
3389 Protocol).")
3390 (home-page "https://www.gnu.org/software/gnugo/")
3391 (license license:gpl3+)))
3392
3393 (define-public extremetuxracer
3394 (package
3395 (name "extremetuxracer")
3396 (version "0.8.0")
3397 (source (origin
3398 (method url-fetch)
3399 (uri (string-append
3400 "mirror://sourceforge/extremetuxracer/releases/"
3401 version "/etr-" version ".tar.xz"))
3402 (sha256
3403 (base32
3404 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3405 (build-system gnu-build-system)
3406 (native-inputs
3407 `(("pkg-config" ,pkg-config)))
3408 (inputs
3409 `(("glu" ,glu)
3410 ("sfml" ,sfml)))
3411 (synopsis "High-speed arctic racing game based on Tux Racer")
3412 ;; Snarfed straight from Debian.
3413 (description "Extreme Tux Racer, or etracer as it is called for short, is
3414 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3415 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3416 avoiding the trees and rocks that will slow you down.
3417
3418 Collect herrings and other goodies while sliding down the hill, but avoid fish
3419 bones.
3420
3421 This game is based on the GPL version of the famous game TuxRacer.")
3422 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3423 (license license:gpl2+)))
3424
3425 (define-public supertuxkart
3426 (package
3427 (name "supertuxkart")
3428 (version "1.1")
3429 (source
3430 (origin
3431 (method url-fetch)
3432 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3433 version "/supertuxkart-" version "-src.tar.xz"))
3434 (sha256
3435 (base32
3436 "1s0ai07g3sswck9mr0142989mrgzzq1njc1qxk5als5b245jpc79"))
3437 (modules '((guix build utils)))
3438 (snippet
3439 ;; Delete bundled library sources
3440 '(begin
3441 ;; Supertuxkart uses modified versions of the Irrlicht engine
3442 ;; and the bullet library. The developers gave an explanation
3443 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3444 ;; FIXME: try to unbundle angelscript and libraqm
3445 (for-each delete-file-recursively
3446 '("lib/zlib"
3447 "lib/libpng"
3448 "lib/jpeglib"
3449 "lib/glew"
3450 "lib/wiiuse"
3451 "lib/enet"))
3452 #t))))
3453 (build-system cmake-build-system)
3454 (arguments
3455 `(#:tests? #f ; no check target
3456 #:configure-flags
3457 (list "-DUSE_WIIUSE=0"
3458 ;; Do not use the bundled zlib, glew and enet.
3459 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
3460 "-DUSE_SYSTEM_GLEW=TRUE"
3461 "-DUSE_SYSTEM_ENET=TRUE"
3462 ;; In order to use the system ENet library, IPv6 support (added in
3463 ;; SuperTuxKart version 1.1) must be disabled.
3464 "-DUSE_IPV6=FALSE"
3465 ;; FIXME: needs libopenglrecorder
3466 "-DBUILD_RECORDER=0"
3467 ;; Irrlicht returns an integer instead of a boolean
3468 "-DCMAKE_C_FLAGS=-fpermissive")))
3469 (inputs
3470 `(("glew" ,glew)
3471 ("zlib" ,zlib)
3472 ("openal" ,openal)
3473 ("libvorbis" ,libvorbis)
3474 ("freetype" ,freetype)
3475 ("fribidi" ,fribidi)
3476 ("harfbuzz" ,harfbuzz)
3477 ("mesa" ,mesa)
3478 ("libx11" ,libx11)
3479 ("libxrandr" ,libxrandr)
3480 ("curl" ,curl)
3481 ;; The following input is needed to build the bundled and modified
3482 ;; version of irrlicht.
3483 ("libjpeg" ,libjpeg-turbo)
3484 ("openssl" ,openssl)
3485 ("enet" ,enet)))
3486 (native-inputs
3487 `(("pkg-config" ,pkg-config)))
3488 (home-page "https://supertuxkart.net/Main_Page")
3489 (synopsis "3D kart racing game")
3490 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3491 having fun over realism. You can play with up to 4 friends on one PC, racing
3492 against each other or just trying to beat the computer; single-player mode is
3493 also available.")
3494 (license license:gpl3+)))
3495
3496 (define-public unknown-horizons
3497 (package
3498 (name "unknown-horizons")
3499 (version "2019.1")
3500 (source (origin
3501 (method url-fetch)
3502 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3503 "unknown-horizons/tar.gz/" version))
3504 (file-name (string-append name "-" version ".tar.gz"))
3505 (sha256
3506 (base32
3507 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))))
3508 (build-system python-build-system)
3509 (arguments
3510 '(#:phases
3511 (modify-phases %standard-phases
3512 (add-before 'build 'set-HOME
3513 (lambda _
3514 (setenv "HOME" "/tmp")))
3515 (add-after 'build 'build-extra
3516 (lambda _
3517 (invoke "python3" "./setup.py" "build_i18n")
3518 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3519 #t))
3520 (add-after 'install 'patch
3521 (lambda* (#:key outputs #:allow-other-keys)
3522 (let ((out (assoc-ref outputs "out")))
3523 (substitute* (string-append out "/bin/unknown-horizons")
3524 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3525 (string-append "os.chdir(\""
3526 (assoc-ref outputs "out")
3527 "/share/unknown-horizons\")"))))
3528 #t))
3529 ;; TODO: Run GUI tests as well
3530 (replace 'check
3531 (lambda _
3532 (substitute* "horizons/constants.py"
3533 (("IS_DEV_VERSION = False")
3534 "IS_DEV_VERSION = True"))
3535 (invoke "pytest" "tests")
3536 (substitute* "horizons/constants.py"
3537 (("IS_DEV_VERSION = True")
3538 "IS_DEV_VERSION = False"))
3539 #t)))))
3540 (inputs
3541 `(("fifengine" ,fifengine)
3542 ("python:tk" ,python "tk")
3543 ("python-pillow" ,python-pillow)
3544 ("python-pyyaml" ,python-pyyaml)))
3545 (native-inputs
3546 `(("intltool" ,intltool)
3547
3548 ;; Required for tests
3549 ("python-greenlet" ,python-greenlet)
3550 ("python-polib" ,python-polib)
3551 ("python-pytest" ,python-pytest)
3552 ("python-pytest-mock" ,python-pytest-mock)))
3553 (home-page "http://unknown-horizons.org/")
3554 (synopsis "Isometric realtime strategy, economy and city building simulation")
3555 (description
3556 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
3557 on economy and city building. Expand your small settlement to a strong and
3558 wealthy colony, collect taxes and supply your inhabitants with valuable
3559 goods. Increase your power with a well balanced economy and with strategic
3560 trade and diplomacy.")
3561 (license (list
3562 license:gpl2+ ; Covers code
3563 license:expat ; tests/dummy.py, ext/polib.py
3564 license:cc-by-sa3.0 ; Covers some media content
3565 license:cc-by3.0 ; Covers some media content
3566 license:bsd-3)))) ; horizons/ext/speaklater.py
3567
3568 (define-public gnujump
3569 (package
3570 (name "gnujump")
3571 (version "1.0.8")
3572 (source (origin
3573 (method url-fetch)
3574 (uri (string-append "mirror://gnu/gnujump/gnujump-"
3575 version ".tar.gz"))
3576 (sha256
3577 (base32
3578 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
3579 (build-system gnu-build-system)
3580 (arguments
3581 '(#:phases
3582 (modify-phases %standard-phases
3583 (add-before
3584 'configure 'link-libm
3585 (lambda _ (setenv "LIBS" "-lm")))
3586 (add-after 'install 'create-desktop-entry
3587 (lambda* (#:key outputs #:allow-other-keys)
3588 (let* ((out (assoc-ref outputs "out"))
3589 (apps (string-append out "/share/applications")))
3590 (mkdir-p apps)
3591 (with-output-to-file
3592 (string-append apps "/gnujump.desktop")
3593 (lambda _
3594 (format #t
3595 "[Desktop Entry]~@
3596 Name=GNUjump~@
3597 Comment=Jump up the tower to survive~@
3598 Exec=~a/bin/gnujump~@
3599 Terminal=false~@
3600 Type=Application~@
3601 Categories=Game;ArcadeGame~%"
3602 out)))))))))
3603 (inputs
3604 `(("glu" ,glu)
3605 ("mesa" ,mesa)
3606 ("sdl" ,sdl)
3607 ("sdl-image" ,sdl-image)
3608 ("sdl-mixer" ,sdl-mixer)))
3609 (home-page "http://gnujump.es.gnu.org/")
3610 (synopsis
3611 "Game of jumping to the next floor, trying not to fall")
3612 (description
3613 "GNUjump is a simple, yet addictive game in which you must jump from
3614 platform to platform to avoid falling, while the platforms drop at faster rates
3615 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
3616 falling, themeable graphics and sounds, and replays.")
3617 (license license:gpl3+)))
3618
3619 (define-public wesnoth
3620 (package
3621 (name "wesnoth")
3622 (version "1.14.13")
3623 (source (origin
3624 (method url-fetch)
3625 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
3626 (version-major+minor version)
3627 "/wesnoth-" version "/"
3628 "wesnoth-" version ".tar.bz2"))
3629 (sha256
3630 (base32
3631 "1pmqj4rah0256qi9w394ksb9apid723i5f5agkg6x1lahb1ac91q"))))
3632 (build-system cmake-build-system)
3633 (arguments
3634 `(#:tests? #f)) ;no check target
3635 (native-inputs
3636 `(("gettext" ,gettext-minimal)
3637 ("pkg-config" ,pkg-config)))
3638 (inputs
3639 `(("boost" ,boost)
3640 ("dbus" ,dbus)
3641 ("fribidi" ,fribidi)
3642 ("libvorbis" ,libvorbis)
3643 ("openssl" ,openssl)
3644 ("pango" ,pango)
3645 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
3646 (home-page "https://www.wesnoth.org/")
3647 (synopsis "Turn-based strategy game")
3648 (description
3649 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
3650 with several single player campaigns, and multiplayer games (both networked and
3651 local).
3652
3653 Battle for control on a range of maps, using variety of units which have
3654 advantages and disadvantages against different types of attacks. Units gain
3655 experience and advance levels, and are carried over from one scenario to the
3656 next campaign.")
3657 (license license:gpl2+)))
3658
3659 (define-public wesnoth-server
3660 (package
3661 (inherit wesnoth)
3662 (name "wesnoth-server")
3663 (inputs
3664 `(("boost" ,boost)
3665 ("icu4c" ,icu4c)
3666 ("openssl" ,openssl)
3667 ("sdl2" ,sdl2)))
3668 (arguments
3669 `(#:configure-flags '("-DENABLE_GAME=OFF")
3670 ,@(package-arguments wesnoth)))
3671 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
3672 (description "This package contains a dedicated server for @emph{The
3673 Battle for Wesnoth}.")))
3674
3675 (define-public gamine
3676 (package
3677 (name "gamine")
3678 (version "1.6")
3679 (source (origin
3680 (method url-fetch)
3681 (uri (string-append "mirror://sourceforge/gamine-game/"
3682 "gamine-" version ".tar.gz"))
3683 (sha256
3684 (base32
3685 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
3686 (build-system gnu-build-system)
3687 (native-inputs
3688 `(("pkg-config" ,pkg-config)
3689 ("intltool" ,intltool)))
3690 (inputs
3691 `(("gstreamer" ,gstreamer)
3692 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
3693 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
3694 ("gtk+" ,gtk+)))
3695 (arguments
3696 `(#:tests? #f
3697 #:make-flags
3698 (let ((out (assoc-ref %outputs "out")))
3699 (list (string-append "PREFIX=" out)
3700 (string-append "SYSCONFDIR=" out "/etc")))
3701 #:phases
3702 (modify-phases %standard-phases
3703 (delete 'configure)
3704 (add-after
3705 'install 'wrap-gamine
3706 (lambda* (#:key outputs #:allow-other-keys)
3707 (let ((out (assoc-ref outputs "out"))
3708 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
3709 (wrap-program (string-append out "/bin/gamine")
3710 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
3711 #t)))))
3712 (home-page "http://gamine-game.sourceforge.net/")
3713 (synopsis "Mouse and keyboard discovery for children")
3714 (description
3715 "Gamine is a game designed for young children who are learning to use the
3716 mouse and keyboard. The child uses the mouse to draw colored dots and lines
3717 on the screen and keyboard to display letters.")
3718 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
3719 (license license:gpl3)))
3720
3721 (define-public manaplus
3722 (package
3723 (name "manaplus")
3724 (version "1.9.3.23")
3725 (source (origin
3726 (method url-fetch)
3727 (uri (string-append
3728 "https://repo.manaplus.org/manaplus/download/"
3729 version "/manaplus-" version ".tar.xz"))
3730 (sha256
3731 (base32
3732 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
3733 (build-system gnu-build-system)
3734 (arguments
3735 '(#:configure-flags
3736 (list (string-append "CPPFLAGS=-I"
3737 (assoc-ref %build-inputs "sdl-union")
3738 "/include/SDL"))))
3739 (native-inputs
3740 `(("pkg-config" ,pkg-config)))
3741 (inputs
3742 `(("glu" ,glu)
3743 ("curl" ,curl)
3744 ("libxml2" ,libxml2)
3745 ("mesa" ,mesa)
3746 ("sdl-union" ,(sdl-union))))
3747 (home-page "https://manaplus.org")
3748 (synopsis "Client for 'The Mana World' and similar games")
3749 (description
3750 "ManaPlus is a 2D MMORPG client for game servers. It is the only
3751 fully supported client for @uref{http://www.themanaworld.org, The mana
3752 world}, @uref{http://evolonline.org, Evol Online} and
3753 @uref{http://landoffire.org, Land of fire}.")
3754 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
3755 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
3756 ;; The rest is under GPL2+.
3757 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
3758
3759 (define openttd-engine
3760 (package
3761 (name "openttd-engine")
3762 (version "1.10.0")
3763 (source
3764 (origin (method url-fetch)
3765 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
3766 version "/openttd-" version "-source.tar.xz"))
3767 (sha256
3768 (base32
3769 "0lz2y2rjc23k0d97y65cqhy2splw9cmrbvhgz0iqps8xkan1m8hv"))))
3770 (build-system gnu-build-system)
3771 (arguments
3772 `(#:tests? #f ; no "check" target
3773 #:phases
3774 (modify-phases %standard-phases
3775 ;; The build process fails if the configure script is passed the
3776 ;; option "--enable-fast-install".
3777 (replace 'configure
3778 (lambda* (#:key inputs outputs (configure-flags '())
3779 #:allow-other-keys)
3780 (let ((out (assoc-ref outputs "out"))
3781 (lzo (assoc-ref inputs "lzo")))
3782 (apply invoke "./configure"
3783 (string-append "--prefix=" out)
3784 ;; Provide the "lzo" path.
3785 (string-append "--with-liblzo2="
3786 lzo "/lib/liblzo2.a")
3787 ;; Put the binary in 'bin' instead of 'games'.
3788 "--binary-dir=bin"
3789 configure-flags)))))))
3790 (native-inputs `(("pkg-config" ,pkg-config)))
3791 (inputs
3792 `(("allegro" ,allegro)
3793 ("fontconfig" ,fontconfig)
3794 ("freetype" ,freetype)
3795 ("icu4c" ,icu4c)
3796 ("libpng" ,libpng)
3797 ("lzo" ,lzo)
3798 ("sdl" ,sdl)
3799 ("xz" ,xz)
3800 ("zlib" ,zlib)))
3801 (synopsis "Transportation economics simulator game")
3802 (description "OpenTTD is a game in which you transport goods and
3803 passengers by land, water and air. It is a re-implementation of Transport
3804 Tycoon Deluxe with many enhancements including multiplayer mode,
3805 internationalization support, conditional orders and the ability to clone,
3806 autoreplace and autoupdate vehicles. This package only includes the game
3807 engine. When you start it you will be prompted to download a graphics set.")
3808 (home-page "https://www.openttd.org/")
3809 ;; This package is GPLv2, except for a few files located in
3810 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
3811 ;; licenses. In addition, this software contains an in-game downloader
3812 ;; from which the user may find non-functional data licensed under
3813 ;; different terms.
3814 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
3815
3816 (define openttd-opengfx
3817 (package
3818 (name "openttd-opengfx")
3819 (version "0.6.0")
3820 (source
3821 (origin
3822 (method url-fetch)
3823 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
3824 version "/opengfx-" version "-source.tar.xz"))
3825 (sha256
3826 (base32
3827 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
3828 (build-system gnu-build-system)
3829 (arguments
3830 '(#:make-flags (list "CC=gcc"
3831 (string-append "INSTALL_DIR="
3832 (assoc-ref %outputs "out")
3833 "/share/games/openttd/baseset/opengfx"))
3834 #:phases
3835 (modify-phases %standard-phases
3836 (replace 'configure
3837 (lambda _
3838 ;; Make sure HOME is writable for GIMP.
3839 (setenv "HOME" (getcwd))
3840
3841 ;; Redirect stdout, not stderr, to /dev/null. This prevents
3842 ;; dos2unix from receiving its version information as a flag.
3843 (substitute* "Makefile"
3844 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
3845 "$(UNIX2DOS) -q --version 1>/dev/null")))))
3846 ;; The check phase for this package only checks the md5sums of the built
3847 ;; GRF files against the md5sums of the release versions. Because we use
3848 ;; different software versions than upstream does, some of the md5sums
3849 ;; are different. However, the package is still reproducible, it's safe
3850 ;; to disable this test.
3851 #:tests? #f
3852 #:parallel-build? #f))
3853 (native-inputs `(("dos2unix" ,dos2unix)
3854 ("gimp" ,gimp)
3855 ("grfcodec" ,grfcodec)
3856 ("nml" ,nml)
3857 ("which" ,which)
3858 ("python" ,python-2)))
3859 (home-page "http://dev.openttdcoop.org/projects/opengfx")
3860 (synopsis "Base graphics set for OpenTTD")
3861 (description
3862 "The OpenGFX projects is an implementation of the OpenTTD base grahics
3863 set that aims to ensure the best possible out-of-the-box experience.
3864
3865 OpenGFX provides you with...
3866 @enumerate
3867 @item All graphics you need to enjoy OpenTTD.
3868 @item Uniquely drawn rail vehicles for every climate.
3869 @item Completely snow-aware rivers.
3870 @item Different river and sea water.
3871 @item Snow-aware buoys.
3872 @end enumerate")
3873 (license license:gpl2)))
3874
3875 (define openttd-opensfx
3876 (package
3877 (name "openttd-opensfx")
3878 (version "0.2.3")
3879 (source
3880 (origin
3881 (method url-fetch)
3882 (uri (string-append
3883 "https://binaries.openttd.org/extra/opensfx/"
3884 version "/opensfx-" version "-source.tar.gz"))
3885 (sha256
3886 (base32
3887 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
3888 (build-system gnu-build-system)
3889 (native-inputs
3890 `(("catcodec" ,catcodec)
3891 ("python" ,python-2)))
3892 (arguments
3893 `(#:make-flags
3894 (list (string-append "INSTALL_DIR=" %output
3895 "/share/games/openttd/baseset/opensfx"))
3896 #:phases
3897 (modify-phases %standard-phases
3898 (add-after 'unpack 'make-reproducible
3899 (lambda _
3900 ;; Remove the time dependency of the installed tarball by setting
3901 ;; the modification times if its members to 0.
3902 (substitute* "scripts/Makefile.def"
3903 (("-cf") " --mtime=@0 -cf"))
3904 #t))
3905 (delete 'configure))))
3906 (home-page "http://dev.openttdcoop.org/projects/opensfx")
3907 (synopsis "Base sounds for OpenTTD")
3908 (description "OpenSFX is a set of free base sounds for OpenTTD which make
3909 it possible to play OpenTTD without requiring the proprietary sound files from
3910 the original Transport Tycoon Deluxe.")
3911 (license license:cc-sampling-plus-1.0)))
3912
3913 (define openttd-openmsx
3914 (package
3915 (name "openttd-openmsx")
3916 (version "0.3.1")
3917 (source
3918 (origin
3919 (method url-fetch)
3920 (uri (string-append
3921 "https://binaries.openttd.org/extra/openmsx/"
3922 version "/openmsx-" version "-source.tar.gz"))
3923 (sha256
3924 (base32
3925 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
3926 (build-system gnu-build-system)
3927 (native-inputs
3928 `(("python" ,python-2)))
3929 (arguments
3930 `(#:make-flags
3931 (list (string-append "INSTALL_DIR=" %output
3932 "/share/games/openttd/baseset"))
3933 #:phases
3934 (modify-phases %standard-phases
3935 (delete 'configure)
3936 (add-after 'install 'post-install
3937 ;; Rename openmsx-version to openmsx
3938 (lambda* (#:key outputs #:allow-other-keys)
3939 (let ((install-directory (string-append (assoc-ref outputs "out")
3940 "/share/games/openttd/baseset")))
3941 (rename-file (string-append install-directory "/openmsx-" ,version)
3942 (string-append install-directory "/openmsx"))
3943 #t))))))
3944 (home-page "http://dev.openttdcoop.org/projects/openmsx")
3945 (synopsis "Music set for OpenTTD")
3946 (description "OpenMSX is a music set for OpenTTD which makes it possible
3947 to play OpenTTD without requiring the proprietary music from the original
3948 Transport Tycoon Deluxe.")
3949 (license license:gpl2)))
3950
3951 (define-public openttd
3952 (package
3953 (inherit openttd-engine)
3954 (name "openttd")
3955 (arguments
3956 `(#:configure-flags
3957 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
3958 "/bin/timidity"))
3959 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
3960 ((#:phases phases)
3961 `(modify-phases ,phases
3962 (add-after 'install 'install-data
3963 (lambda* (#:key inputs outputs #:allow-other-keys)
3964 (for-each
3965 (lambda (input)
3966 (copy-recursively (assoc-ref inputs input)
3967 (assoc-ref outputs "out")))
3968 (list "opengfx" "openmsx" "opensfx"))
3969 #t)))))))
3970 (inputs
3971 `(("timidity++" ,timidity++)
3972 ,@(package-inputs openttd-engine)))
3973 (native-inputs
3974 `(("opengfx" ,openttd-opengfx)
3975 ("openmsx" ,openttd-openmsx)
3976 ("opensfx" ,openttd-opensfx)
3977 ,@(package-native-inputs openttd-engine)))))
3978
3979 (define openrct2-title-sequences
3980 (package
3981 (name "openrct2-title-sequences")
3982 (version "0.1.2")
3983 (source
3984 (origin
3985 (method url-fetch)
3986 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
3987 version "/title-sequence-v" version ".zip"))
3988 (file-name (string-append name "-" version ".zip"))
3989 (sha256
3990 (base32
3991 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
3992 (build-system trivial-build-system)
3993 (native-inputs
3994 `(("bash" ,bash)
3995 ("coreutils" ,coreutils)
3996 ("unzip" ,unzip)))
3997 (arguments
3998 `(#:modules ((guix build utils))
3999 #:builder
4000 (begin
4001 (use-modules (guix build utils))
4002 (let* ((out (assoc-ref %outputs "out"))
4003 (openrct2-title-sequences (string-append out
4004 "/share/openrct2/title-sequences"))
4005 (source (assoc-ref %build-inputs "source"))
4006 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4007 (copy-file source (string-append ,name "-" ,version ".zip"))
4008 (invoke unzip (string-append ,name "-" ,version ".zip"))
4009 (delete-file (string-append ,name "-" ,version ".zip"))
4010 (mkdir-p openrct2-title-sequences)
4011 (copy-recursively "."
4012 openrct2-title-sequences)
4013 #t))))
4014 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4015 (synopsis "Title sequences for OpenRCT2")
4016 (description
4017 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4018 (license license:gpl3+)))
4019
4020 (define openrct2-objects
4021 (package
4022 (name "openrct2-objects")
4023 (version "1.0.9")
4024 (source
4025 (origin
4026 (method url-fetch)
4027 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4028 version "/objects.zip"))
4029 (file-name (string-append name "-" version ".zip"))
4030 (sha256
4031 (base32 "02apb8h553m7d6jvysgb1zahvxc1yzyygfca2iclb21b3fhpsas4"))))
4032 (build-system trivial-build-system)
4033 (native-inputs
4034 `(("bash" ,bash)
4035 ("coreutils" ,coreutils)
4036 ("unzip" ,unzip)))
4037 (arguments
4038 `(#:modules ((guix build utils))
4039 #:builder
4040 (begin
4041 (use-modules (guix build utils))
4042 (let* ((out (assoc-ref %outputs "out"))
4043 (openrct2-objects (string-append out
4044 "/share/openrct2/objects"))
4045 (source (assoc-ref %build-inputs "source"))
4046 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4047 (copy-file source (string-append ,name "-" ,version ".zip"))
4048 (invoke unzip (string-append ,name "-" ,version ".zip"))
4049 (delete-file (string-append ,name "-" ,version ".zip"))
4050 (mkdir-p openrct2-objects)
4051 (copy-recursively "."
4052 openrct2-objects)
4053 #t))))
4054 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4055 (synopsis "Objects for OpenRCT2")
4056 (description
4057 "openrct2-objects is a set of objects for OpenRCT2.")
4058 (license license:gpl3+)))
4059
4060 (define-public openrct2
4061 (package
4062 (name "openrct2")
4063 (version "0.2.6")
4064 (source
4065 (origin
4066 (method git-fetch)
4067 (uri (git-reference
4068 (url "https://github.com/OpenRCT2/OpenRCT2")
4069 (commit (string-append "v" version))))
4070 (file-name (git-file-name name version))
4071 (sha256
4072 (base32 "1vikbkg3wh5ngzdfilb6irbh6nqinf138qpdz8wz9izlvl8s36k4"))))
4073 (build-system cmake-build-system)
4074 (arguments
4075 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4076 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4077 #:tests? #f ; tests require network access
4078 #:phases
4079 (modify-phases %standard-phases
4080 (add-after 'unpack 'fix-usr-share-paths&add-data
4081 (lambda* (#:key inputs outputs #:allow-other-keys)
4082 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4083 (objects (assoc-ref inputs "openrct2-objects")))
4084 ;; Fix some references to /usr/share.
4085 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4086 (("/usr/share")
4087 (string-append (assoc-ref %outputs "out") "/share")))
4088 (copy-recursively
4089 (string-append titles "/share/openrct2/title-sequences")
4090 "data/title")
4091 (copy-recursively
4092 (string-append objects "/share/openrct2/objects")
4093 "data/object"))))
4094 (add-before 'configure 'get-rid-of-errors
4095 (lambda _
4096 ;; Don't treat warnings as errors.
4097 (substitute* "CMakeLists.txt"
4098 (("-Werror") ""))
4099 #t)))))
4100 (inputs `(("curl" ,curl)
4101 ("fontconfig" ,fontconfig)
4102 ("freetype" ,freetype)
4103 ("icu4c" ,icu4c)
4104 ("jansson" ,jansson)
4105 ("libpng" ,libpng)
4106 ("libzip" ,libzip)
4107 ("mesa" ,mesa)
4108 ("openrct2-objects" ,openrct2-objects)
4109 ("openrct2-title-sequences" ,openrct2-title-sequences)
4110 ("openssl" ,openssl)
4111 ("sdl2" ,sdl2)
4112 ("speexdsp" ,speexdsp)
4113 ("zlib" ,zlib)))
4114 (native-inputs
4115 `(("pkg-config" ,pkg-config)))
4116 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4117 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4118 (description "OpenRCT2 is a free software re-implementation of
4119 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4120 maintaining an amusement park containing attractions, shops and facilities.
4121
4122 Note that this package does @emph{not} provide the game assets (sounds,
4123 images, etc.)")
4124 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4125 ;; regarding assets.
4126 (license license:gpl3+)))
4127
4128 (define-public pinball
4129 (package
4130 (name "pinball")
4131 (version "0.3.1")
4132 (source
4133 (origin (method url-fetch)
4134 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4135 "pinball-" version "/"
4136 "pinball-" version ".tar.gz"))
4137 (sha256
4138 (base32
4139 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4140 (patches (search-patches "pinball-const-fix.patch"
4141 "pinball-cstddef.patch"
4142 "pinball-missing-separators.patch"
4143 "pinball-src-deps.patch"
4144 "pinball-system-ltdl.patch"))))
4145 (build-system gnu-build-system)
4146 (inputs
4147 `(("glu" ,glu)
4148 ("mesa" ,mesa)
4149 ("sdl" ,sdl)
4150 ("sdl-image" ,sdl-image)
4151 ("sdl-mixer" ,sdl-mixer)))
4152 (arguments
4153 '(#:configure-flags
4154 (list (string-append "CPPFLAGS=-I"
4155 (assoc-ref %build-inputs "sdl-image")
4156 "/include/SDL -I"
4157 (assoc-ref %build-inputs "sdl-mixer")
4158 "/include/SDL"))))
4159 (home-page "http://pinball.sourceforge.net")
4160 (synopsis "Pinball simulator")
4161 (description "The Emilia Pinball Project is a pinball simulator. There
4162 are only two levels to play with, but they are very addictive.")
4163 (license license:gpl2)))
4164
4165 (define-public pioneers
4166 (package
4167 (name "pioneers")
4168 (version "15.5")
4169 (source (origin
4170 (method url-fetch)
4171 (uri (string-append "http://downloads.sourceforge.net/pio/"
4172 "pioneers-" version ".tar.gz"))
4173 (sha256
4174 (base32
4175 "037gdiiw690jw3wd1s9lxmkqx0caxyk0b4drpm7i9p28gig43q9y"))))
4176 (build-system gnu-build-system)
4177 (inputs `(("avahi" ,avahi)
4178 ("gtk+" ,gtk+)
4179 ("librsvg" ,librsvg)))
4180 (native-inputs `(("intltool" ,intltool)
4181 ("itstool" ,itstool)
4182 ("libxml2" ,libxml2)
4183 ("pkg-config" ,pkg-config)))
4184 (synopsis "Board game inspired by The Settlers of Catan")
4185 (description "Pioneers is an emulation of the board game The Settlers of
4186 Catan. It can be played on a local network, on the internet, and with AI
4187 players.")
4188 (home-page "http://pio.sourceforge.net/")
4189 (license license:gpl2+)))
4190
4191 (define-public einstein
4192 (package
4193 (name "einstein")
4194 (version "2.0")
4195 (source (origin
4196 (method url-fetch)
4197 (uri (string-append "mirror://debian/pool/main/e/"
4198 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4199 (sha256
4200 (base32
4201 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4202 (patches (search-patches "einstein-build.patch"))))
4203 (build-system gnu-build-system)
4204 (inputs
4205 `(("freetype" ,freetype)
4206 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4207 ("zlib" ,zlib)))
4208 (native-inputs
4209 `(("font-dejavu" ,font-dejavu)))
4210 (arguments
4211 `(#:tests? #f ; no check target
4212 #:phases
4213 (modify-phases %standard-phases
4214 (replace 'configure
4215 (lambda* (#:key outputs inputs #:allow-other-keys)
4216 (let ((out (assoc-ref outputs "out"))
4217 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4218 "/share/fonts/truetype/DejaVuSans.ttf")))
4219 (substitute* "Makefile"
4220 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4221 ;; The patch above registers a free font for use by the binary,
4222 ;; but the font is copied during the compile phase into a
4223 ;; resources file, so we need to make the ttf file available.
4224 (symlink dejavu "res/DejaVuSans.ttf")
4225 #t))))))
4226 (synopsis "Logic puzzle game")
4227 (description "The goal of this logic game is to open all cards in a 6x6
4228 grid, using a number of hints as to their relative position. The game idea
4229 is attributed to Albert Einstein.")
4230 ;; The original home page has disappeared.
4231 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4232 "http://games.flowix.com/en/index.html"))
4233 ;; License according to
4234 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4235 ;; The source code is a DFSG-sanitized tarball and does not contain any
4236 ;; license information.
4237 (license license:gpl3+)))
4238
4239 (define-public powwow
4240 (package
4241 (name "powwow")
4242 (version "1.2.19")
4243 (source (origin
4244 (method url-fetch)
4245 (uri (string-append
4246 "https://www.hoopajoo.net/static/projects/powwow-"
4247 version ".tar.gz"))
4248 (sha256
4249 (base32
4250 "10rjl63hmf62qslyhzqrbw3i2zf09dgxv65avhj0iiz0m4pbc9wy"))))
4251 (inputs
4252 `(("ncurses" ,ncurses)))
4253 (build-system gnu-build-system)
4254 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4255 (synopsis "MUD and telnet client")
4256 (description
4257 "POWWOW is a client software which can be used for telnet as well as for
4258 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4259 the chat server psyced with the specific config located at
4260 http://lavachat.symlynx.com/unix/")
4261 (license license:gpl2+)))
4262
4263 (define-public red-eclipse
4264 (let ((release "2.0.0")
4265 (revision 0))
4266 (package
4267 (name "red-eclipse")
4268 (version (if (zero? revision)
4269 release
4270 (string-append release "-"
4271 (number->string revision))))
4272 (source
4273 (origin
4274 (method git-fetch)
4275 (uri (git-reference
4276 (url "https://github.com/redeclipse/base")
4277 (commit (string-append "v" release))
4278 (recursive? #t))) ; for game data
4279 (file-name (git-file-name name version))
4280 (sha256
4281 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4282 (modules '((guix build utils)))
4283 (snippet
4284 ;; Remove proprietary libraries and other pre-compiled binaries.
4285 '(begin
4286 (delete-file-recursively "bin")
4287 #t))))
4288 (build-system gnu-build-system)
4289 (arguments
4290 `(#:tests? #f ; no check target
4291 #:make-flags (list "CC=gcc" "-Csrc"
4292 (string-append "INSTDIR="
4293 (assoc-ref %outputs "out") "/bin")
4294 (string-append "prefix="
4295 (assoc-ref %outputs "out")))
4296 #:phases
4297 (modify-phases %standard-phases
4298 (add-after 'unpack 'add-store-data-package-path-as-default
4299 (lambda* (#:key outputs #:allow-other-keys)
4300 (substitute* "src/engine/server.cpp"
4301 (("data = \"data\"")
4302 (string-append "data = \""
4303 (assoc-ref outputs "out")
4304 "/share/redeclipse/data\"")))
4305 #t))
4306 (delete 'configure) ; no configure script
4307 (add-after 'set-paths 'set-sdl-paths
4308 (lambda* (#:key inputs #:allow-other-keys)
4309 (setenv "CPATH"
4310 (string-append (assoc-ref inputs "sdl-union")
4311 "/include/SDL2:"
4312 (or (getenv "CPATH") "")))
4313 #t))
4314 (add-after 'install 'copy-data
4315 (lambda* (#:key outputs #:allow-other-keys)
4316 (let ((out (assoc-ref outputs "out")))
4317 (copy-recursively "config"
4318 (string-append out "/config"))
4319 (copy-file "doc/examples/servinit.cfg"
4320 (string-append out "/config/servinit.cfg"))
4321 (copy-recursively "data"
4322 (string-append out "/share/redeclipse/data"))
4323 (mkdir-p (string-append out "/lib/redeclipse"))
4324 (symlink (string-append out "/share/redeclipse/data")
4325 (string-append out "/lib/redeclipse/data")))
4326 #t))
4327 (add-after 'copy-data 'wrap-program
4328 (lambda* (#:key inputs outputs #:allow-other-keys)
4329 (let* ((out (assoc-ref outputs "out"))
4330 (bin (string-append out "/bin")))
4331 (with-directory-excursion bin
4332 (rename-file "redeclipse_linux"
4333 ".redeclipse_linux-real")
4334 (rename-file "redeclipse_server_linux"
4335 ".redeclipse_server_linux-real")
4336 (call-with-output-file "redeclipse_linux"
4337 (lambda (port)
4338 (format port "#!~a/bin/sh
4339 # Run the thing from its home, otherwise it just bails out.
4340 cd \"~a\"
4341 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4342 (assoc-ref inputs "bash") ;implicit input
4343 (string-append out)
4344 (string-append bin))))
4345 (call-with-output-file "redeclipse_server_linux"
4346 (lambda (port)
4347 (format port "#!~a/bin/sh
4348 # Run the thing from its home, otherwise it just bails out.
4349 cd \"~a\"
4350 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4351 (assoc-ref inputs "bash") ;implicit input
4352 (string-append out)
4353 (string-append bin))))
4354 (chmod "redeclipse_linux" #o555)
4355 (chmod "redeclipse_server_linux" #o555)))
4356 #t)))))
4357 (native-inputs
4358 `(("pkg-config" ,pkg-config)))
4359 (inputs
4360 `(("curl" ,curl)
4361 ("freetype" ,freetype)
4362 ("glu" ,glu)
4363 ("sdl-union" ,(sdl-union (list sdl2
4364 sdl2-image
4365 sdl2-mixer)))))
4366 (home-page "https://redeclipse.net/")
4367 (synopsis "Arena shooter derived from the Cube 2 engine")
4368 (description
4369 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4370 Offering an innovative parkour system and distinct but all potent weapons,
4371 Red Eclipse provides fast paced and accessible gameplay.")
4372 ;; The engine is under Zlib; data files are covered by the other
4373 ;; licenses. More details at file:///doc/all-licenses.txt.
4374 (license (list license:expat
4375 license:zlib
4376 license:cc-by-sa4.0
4377 license:cc-by-sa3.0
4378 license:cc-by3.0
4379 license:cc0
4380 license:public-domain
4381 license:silofl1.1)))))
4382
4383 (define-public grue-hunter
4384 (package
4385 (name "grue-hunter")
4386 (version "1.0")
4387 (source (origin
4388 (method url-fetch)
4389 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4390 (sha256
4391 (base32
4392 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4393 (build-system trivial-build-system) ; no Makefile.PL
4394 (arguments `(#:modules ((guix build utils))
4395 #:builder
4396 (begin
4397 (use-modules (guix build utils))
4398 (use-modules (srfi srfi-1))
4399
4400 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4401 (perl (string-append (assoc-ref %build-inputs
4402 "perl")
4403 "/bin"))
4404 (gzip (string-append (assoc-ref %build-inputs
4405 "gzip")
4406 "/bin/gzip"))
4407 (tar (string-append (assoc-ref %build-inputs
4408 "tar")
4409 "/bin/tar"))
4410 (out (assoc-ref %outputs "out"))
4411 (bin (string-append out "/bin"))
4412 (doc (string-append out
4413 "/share/doc/grue-hunter")))
4414 (copy-file tarball "grue-hunter.tar.gz")
4415 (invoke gzip "-d" "grue-hunter.tar.gz")
4416 (invoke tar "xvf" "grue-hunter.tar")
4417
4418 (mkdir-p bin)
4419 (copy-file "grue-hunter/gh.pl"
4420 (string-append bin "/grue-hunter"))
4421 (patch-shebang (string-append bin "/grue-hunter")
4422 (list perl))
4423
4424 (install-file "grue-hunter/AGPLv3.txt" doc)
4425
4426 #t))))
4427 (inputs `(("perl" ,perl)
4428 ("tar" ,tar)
4429 ("gzip" ,gzip)
4430 ("tarball" ,source)))
4431 (home-page "https://jxself.org/grue-hunter.shtml")
4432 (synopsis "Text adventure game")
4433 (description
4434 "Grue Hunter is a text adventure game written in Perl. You must make
4435 your way through an underground cave system in search of the Grue. Can you
4436 capture it and get out alive?")
4437 (license license:agpl3+)))
4438
4439 (define-public lierolibre
4440 (package
4441 (name "lierolibre")
4442 (version "0.5")
4443 (source (origin
4444 (method url-fetch)
4445 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4446 version "/+download/lierolibre-"
4447 version ".tar.xz"))
4448 (sha256
4449 (base32
4450 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4451 (patches
4452 (search-patches "lierolibre-check-unaligned-access.patch"
4453 "lierolibre-try-building-other-arch.patch"
4454 "lierolibre-remove-arch-warning.patch"
4455 "lierolibre-newer-libconfig.patch"
4456 "lierolibre-is-free-software.patch"))
4457 (modules '((guix build utils)))
4458 (snippet
4459 '(begin
4460 ;; Delete pre-compiled files.
4461 (delete-file "data/LIERO.CHR")
4462 (delete-file "data/LIERO.SND")
4463 #t))))
4464 (build-system gnu-build-system)
4465 (native-inputs
4466 `(("imagemagick" ,imagemagick)
4467 ("pkg-config" ,pkg-config)
4468 ("util-linux" ,util-linux)
4469 ("sox" ,sox)))
4470 (inputs
4471 `(("boost" ,boost)
4472 ("libconfig" ,libconfig)
4473 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4474 ("zlib" ,zlib)))
4475 (home-page "https://gitlab.com/lierolibre/lierolibre")
4476 (synopsis "Old-school earthworm action game")
4477 (description
4478 "lierolibre is an earthworm action game where you fight another player
4479 (or the computer) underground using a wide array of weapons.
4480
4481 Features:
4482 @itemize
4483 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4484 and Game of Tag, plus AI-players without true intelligence!
4485 @item Dat nostalgia.
4486 @item Extensions via a hidden F1 menu:
4487 @itemize
4488 @item Replays
4489 @item Game controller support
4490 @item Powerlevel palettes
4491 @end itemize
4492 @item Ability to write game variables to plain text files.
4493 @item Ability to load game variables from both EXE and plain text files.
4494 @item Scripts to extract and repack graphics, sounds and levels.
4495 @end itemize
4496
4497 To switch between different window sizes, use F6, F7 and F8, to switch to
4498 fullscreen, use F5 or Alt+Enter.")
4499 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4500 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4501
4502 (define-public tennix
4503 (package
4504 (name "tennix")
4505 (version "1.3.1")
4506 (source
4507 (origin
4508 (method git-fetch)
4509 (uri (git-reference
4510 (url "https://repo.or.cz/tennix.git")
4511 (commit (string-append "tennix-" version))))
4512 (file-name (git-file-name name version))
4513 (sha256
4514 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4515 ;; Remove non-free images.
4516 (modules '((guix build utils)))
4517 (snippet
4518 '(begin
4519 (for-each delete-file
4520 '("data/loc_training_camp.png"
4521 "data/loc_austrian_open.png"
4522 "data/loc_olympic_green_tennis.png"))
4523 #t))))
4524 (build-system gnu-build-system)
4525 (arguments
4526 `(#:tests? #f ;no test
4527 #:phases
4528 (modify-phases %standard-phases
4529 (add-after 'unpack 'fix-include
4530 (lambda _
4531 (substitute* '("src/graphics.h" "src/sound.h")
4532 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
4533 (string-append "#include \"SDL/" header "\"")))
4534 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
4535 (("#include <SDL.h>") "#include <SDL/SDL.h>")
4536 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
4537 #t))
4538 (add-after 'unpack 'locate-install
4539 ;; Build process cannot expand "$(INSTALL)" in Makefile.
4540 (lambda _
4541 (substitute* "makefile"
4542 (("^CONFIGURE_OUTPUT :=.*" all)
4543 (string-append "INSTALL := install -c\n" all)))
4544 #t))
4545 (replace 'configure
4546 ;; The "configure" script is picky about the arguments it
4547 ;; gets. Call it ourselves.
4548 (lambda _
4549 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
4550 (native-inputs
4551 `(("which" ,which)))
4552 (inputs
4553 `(("python" ,python-wrapper)
4554 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
4555 (home-page "http://icculus.org/tennix/")
4556 (synopsis "Play tennis against the computer or a friend")
4557 (description "Tennix is a 2D tennis game. You can play against the
4558 computer or against another player using the keyboard. The game runs
4559 in-window at 640x480 resolution or fullscreen.")
4560 ;; Project is licensed under GPL2+ terms. It includes images
4561 ;; released under Public Domain terms, and SDL_rotozoom, released
4562 ;; under LGPL2.1 terms.
4563 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
4564
4565 (define-public warzone2100
4566 (package
4567 (name "warzone2100")
4568 (version "3.4.0")
4569 (source
4570 (origin
4571 (method url-fetch)
4572 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
4573 version
4574 "/warzone2100_src.tar.xz"))
4575 (sha256
4576 (base32 "0g4qwi9zw0s4pfgrz3fxhargsj3405rbrh9zy3b2j3arzss2h0gy"))
4577 (modules '((guix build utils)))
4578 (snippet
4579 '(begin
4580 (with-directory-excursion "3rdparty"
4581 (for-each
4582 delete-file-recursively
4583 '("discord-rpc"
4584 "miniupnp"
4585 "utfcpp")))
4586 #t))))
4587 (build-system cmake-build-system)
4588 (arguments
4589 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
4590 "-DENABLE_DISCORD=off")
4591 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
4592 #:phases
4593 (modify-phases %standard-phases
4594 (add-after 'unpack 'fix-utfcpp-include
4595 (lambda _
4596 (substitute* "lib/framework/wzstring.cpp"
4597 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
4598 #t))
4599 (add-after 'unpack 'link-tests-with-qt
4600 (lambda _
4601 (substitute* "tests/Makefile.am"
4602 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
4603 (string-append prefix "$(QT5_LIBS) ")))
4604 #t))
4605 (add-after 'unpack 'fix-ivis-linktest
4606 (lambda _
4607 (substitute* "tests/ivis_linktest.cpp"
4608 (("iV_DrawTextRotated.*;")
4609 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
4610 "100, 100, 0.0f, font_regular);")))
4611 #t)))))
4612 (native-inputs `(("asciidoc" ,asciidoc)
4613 ("asciidoctor" ,ruby-asciidoctor)
4614 ("gettext" ,gettext-minimal)
4615 ("pkg-config" ,pkg-config)
4616 ("unzip" ,unzip)
4617 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
4618 ("p7zip" ,p7zip)))
4619 (inputs `(("curl" ,curl)
4620 ("fontconfig" ,fontconfig)
4621 ("freetype" ,freetype)
4622 ("glew" ,glew)
4623 ("harfbuzz" ,harfbuzz)
4624 ("libtheora" ,libtheora)
4625 ("libvorbis" ,libvorbis)
4626 ("libxrandr" ,libxrandr)
4627 ("libsodium" ,libsodium)
4628 ("miniupnpc" ,miniupnpc)
4629 ("openal" ,openal)
4630 ("physfs" ,physfs)
4631 ("qtbase" ,qtbase)
4632 ("qtscript" ,qtscript)
4633 ("openssl" ,openssl)
4634 ("sdl2" ,sdl2)
4635 ("utfcpp" ,utfcpp)))
4636 (home-page "https://wz2100.net")
4637 (synopsis "3D Real-time strategy and real-time tactics game")
4638 (description
4639 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
4640 modes. An extensive tech tree with over 400 different technologies, combined
4641 with the unit design system, allows for a wide variety of possible units and
4642 tactics.")
4643 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
4644 (license (list license:bsd-3
4645 license:cc0
4646 license:cc-by-sa3.0
4647 license:expat
4648 license:gpl2+
4649 license:lgpl2.1+))))
4650
4651 (define-public widelands
4652 (package
4653 (name "widelands")
4654 (version "20")
4655 (source
4656 (origin
4657 (method url-fetch)
4658 (uri (string-append "https://launchpad.net/widelands/"
4659 "build" version "/build" version "/+download/"
4660 "widelands-build" version ".tar.bz2"))
4661 (sha256
4662 (base32 "1cmwfwk7j6yi2pwmm4rm57s23sdzasqf53nx6567sdagqyc4sn9q"))
4663 (modules '((guix build utils)))
4664 (snippet
4665 '(begin
4666 (delete-file-recursively "src/third_party/minizip")
4667 #t))
4668 (patches
4669 ;; Use system Minizip. Patch is provided by Debian, and discussed
4670 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
4671 (search-patches "widelands-system-wide_minizip.patch"))))
4672 (build-system cmake-build-system)
4673 (arguments
4674 `(#:configure-flags
4675 (let* ((out (assoc-ref %outputs "out"))
4676 (share (string-append out "/share")))
4677 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
4678 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
4679 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
4680 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
4681 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
4682 ;; type. When used, no game data is installed!
4683 "-DCMAKE_BUILD_TYPE=Release"))
4684 #:phases
4685 (modify-phases %standard-phases
4686 (add-after 'unpack 'install-desktop-file-and-icons
4687 (lambda* (#:key inputs outputs #:allow-other-keys)
4688 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
4689 (applications (string-append share "/applications"))
4690 (icons (string-append share "/icons/hicolor")))
4691 ;; Move desktop entry.
4692 (mkdir-p applications)
4693 (copy-file "debian/org.widelands.widelands.desktop"
4694 (string-append applications "/widelands.desktop"))
4695 ;; Install icons.
4696 (for-each (lambda (size)
4697 (let* ((dim (string-append size "x" size))
4698 (apps (string-append icons "/" dim "/apps")))
4699 (mkdir-p apps)
4700 (copy-file (string-append "data/images/logos"
4701 "/wl-ico-" size ".png")
4702 (string-append apps "/widelands.png"))))
4703 '("16" "32" "48" "64" "128"))
4704 #t)))
4705 (add-after 'unpack 'unbundle-fonts
4706 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
4707 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
4708 (lambda* (#:key inputs #:allow-other-keys)
4709 (with-directory-excursion "data/i18n/fonts"
4710 (for-each (lambda (font)
4711 (delete-file-recursively font)
4712 (symlink (string-append (assoc-ref inputs font)
4713 "/share/fonts/truetype")
4714 font))
4715 '("DejaVu" "MicroHei")))
4716 #t)))))
4717 (native-inputs
4718 `(("gettext" ,gettext-minimal)
4719 ("python" ,python-wrapper)))
4720 (inputs
4721 `(("boost" ,boost)
4722 ("glew" ,glew)
4723 ("icu4c" ,icu4c)
4724 ("libpng" ,libpng)
4725 ("minizip" ,minizip)
4726 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
4727 ("zlib" ,zlib)
4728 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
4729 ("DejaVu" ,font-dejavu)
4730 ("MicroHei" ,font-wqy-microhei)))
4731 (home-page "https://www.widelands.org/")
4732 (synopsis "Fantasy real-time strategy game")
4733 (description
4734 "In Widelands, you are the regent of a small clan. You start out with
4735 nothing but your headquarters, where all your resources are stored.
4736
4737 In the course of the game, you will build an ever growing settlement. Every
4738 member of your clan will do his or her part to produce more resources---wood,
4739 food, iron, gold and more---to further this growth. The economic network is
4740 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
4741 Frisians).
4742
4743 As you are not alone in the world, you will meet other clans sooner or later.
4744 Some of them may be friendly and you may eventually trade with them. However,
4745 if you want to rule the world, you will have to train soldiers and fight.
4746
4747 Widelands offers single-player mode with different campaigns; the campaigns
4748 all tell stories of tribes and their struggle in the Widelands universe!
4749 However, settling really starts when you unite with friends over the Internet
4750 or LAN to build up new empires together---or to crush each other in the dusts
4751 of war. Widelands also offers an Artificial Intelligence to challenge you.")
4752 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
4753 ;; different licenses.
4754 (license (list license:gpl2+
4755 license:expat ;src/third_party/eris
4756 license:silofl1.1 ;Widelands.ttf
4757 license:cc-by-sa3.0)))) ;some music files
4758
4759 (define-public starfighter
4760 (package
4761 (name "starfighter")
4762 (version "2.2.1")
4763 (source (origin
4764 (method url-fetch)
4765 (uri (string-append
4766 "https://github.com/pr-starfighter/starfighter/releases"
4767 "/download/v" version "/starfighter-"
4768 version "-src.tar.gz"))
4769 (sha256
4770 (base32
4771 "0bmrid26z7il42lczfs3j3cv671az9fxi2wkf0s22smmzkhcnnrz"))))
4772 (build-system gnu-build-system)
4773 (native-inputs
4774 `(("pkg-config" ,pkg-config)))
4775 (inputs
4776 `(("pango" ,pango)
4777 ("sdl2" ,sdl2)
4778 ("sdl2-image" ,sdl2-image)
4779 ("sdl2-mixer" ,sdl2-mixer)
4780 ("sdl2-ttf" ,sdl2-ttf)))
4781 (home-page "https://pr-starfighter.github.io/")
4782 (synopsis "2D scrolling shooter game")
4783 (description
4784 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
4785 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
4786 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
4787 way, you will encounter new foes, make new allies, and assist local rebels
4788 in strikes against the evil corporation.")
4789 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
4790 (license (list license:gpl3+
4791 license:cc-by3.0
4792 license:cc-by-sa3.0
4793 license:cc0
4794 license:public-domain))))
4795
4796 (define-public chromium-bsu
4797 (package
4798 (name "chromium-bsu")
4799 (version "0.9.16.1")
4800 (source (origin
4801 (method url-fetch)
4802 (uri (string-append "mirror://sourceforge/chromium-bsu"
4803 "/Chromium B.S.U. source code/"
4804 "chromium-bsu-" version ".tar.gz"))
4805 (sha256
4806 (base32
4807 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
4808 (build-system gnu-build-system)
4809 (native-inputs `(("pkg-config" ,pkg-config)))
4810 (inputs `(("gettext" ,gettext-minimal)
4811 ("glu" ,glu)
4812 ("quesoglc" ,quesoglc)
4813 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
4814 (home-page "http://chromium-bsu.sourceforge.net/")
4815 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
4816 (description
4817 "In this game you are the captain of the cargo ship Chromium B.S.U. and
4818 are responsible for delivering supplies to the troops on the front line. Your
4819 ship has a small fleet of robotic fighters which you control from the relative
4820 safety of the Chromium vessel.")
4821 ;; Clarified Artistic License for everything but sound, which is covered
4822 ;; by the Expat License.
4823 (license (list license:clarified-artistic license:expat))))
4824
4825 (define-public tuxpaint
4826 (package
4827 (name "tuxpaint")
4828 (version "0.9.23") ;keep VER_DATE below in sync
4829 (source
4830 (origin
4831 (method url-fetch)
4832 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
4833 version "/tuxpaint-" version ".tar.gz"))
4834 (sha256
4835 (base32
4836 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
4837 (modules '((guix build utils)))
4838 (snippet
4839 '(begin
4840 ;; Remove win32 directory which contains binary dll's and the
4841 ;; deprecated visualc directory.
4842 (for-each delete-file-recursively '("win32" "visualc"))
4843 (substitute* "Makefile"
4844 ;; Do not rely on $(GPERF) being an absolute file name
4845 (("\\[ -x \\$\\(GPERF\\) \\]")
4846 "$(GPERF) --version >/dev/null 2>&1"))
4847 #t))
4848 (patches (search-patches "tuxpaint-stamps-path.patch"))))
4849 (build-system gnu-build-system)
4850 (native-inputs
4851 `(("gperf" ,gperf)
4852 ("pkg-config" ,pkg-config)))
4853 (inputs
4854 `(("cairo" ,cairo)
4855 ("fribidi" ,fribidi)
4856 ("gettext" ,gettext-minimal)
4857 ("libpng" ,libpng)
4858 ("librsvg" ,librsvg)
4859 ("libpaper" ,libpaper)
4860 ("netpbm" ,netpbm)
4861 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
4862 ;; TODO: Use system fonts rather than those in data/fonts
4863 (arguments
4864 `(#:make-flags `("VER_DATE=2018-09-02"
4865 "GPERF=gperf" "CC=gcc"
4866 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
4867 ,(string-append "PREFIX=" %output)
4868 "KDE_PREFIX=$(PREFIX)/share/applications"
4869 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
4870 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
4871 #:parallel-build? #f ;fails on some systems
4872 #:tests? #f ;No tests
4873 #:phases (modify-phases %standard-phases
4874 (delete 'configure) ;no configure phase
4875 (add-before 'install 'no-sys-cache
4876 (lambda _ ;do not rebuild system conf cache
4877 (substitute* "Makefile"
4878 (("kbuildsycoca4") ""))
4879 #t))
4880 (add-after 'install 'fix-import
4881 (lambda* (#:key inputs outputs #:allow-other-keys)
4882 (let* ((out (assoc-ref outputs "out"))
4883 (net (assoc-ref inputs "netpbm"))
4884 (tpi (string-append out "/bin/tuxpaint-import")))
4885 (substitute* tpi
4886 ;; Point to installation prefix so that the default
4887 ;; configure file is found.
4888 (("/usr/local") out))
4889 ;; tuxpaint-import uses a bunch of programs from
4890 ;; netpbm, so make sure it knows where those are
4891 (wrap-program tpi
4892 `("PATH" ":" prefix
4893 (,(string-append net "/bin"))))))))))
4894 (native-search-paths
4895 (list (search-path-specification
4896 (variable "TUXPAINT_STAMPS_PATH")
4897 (files '("share/tuxpaint/stamps")))))
4898 (home-page "http://www.tuxpaint.org")
4899 (synopsis "Drawing software for children")
4900 (description
4901 "Tux Paint is a free drawing program designed for young children (kids
4902 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
4903 and an encouraging cartoon mascot who helps guide children as they use the
4904 program. It provides a blank canvas and a variety of drawing tools to help
4905 your child be creative.")
4906 (license license:gpl2+)))
4907
4908 (define-public tuxpaint-stamps
4909 (package
4910 (name "tuxpaint-stamps")
4911 (version "2018.09.01")
4912 (source
4913 (origin
4914 (method url-fetch)
4915 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
4916 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
4917 "/tuxpaint-stamps-" version ".tar.gz"))
4918 (sha256
4919 (base32
4920 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
4921 (build-system trivial-build-system)
4922 (native-inputs
4923 `(("tar" ,tar)
4924 ("gzip" ,gzip)))
4925 (arguments
4926 `(#:modules ((guix build utils))
4927 #:builder (begin
4928 (use-modules (guix build utils))
4929 (setenv "PATH"
4930 (string-append
4931 (assoc-ref %build-inputs "tar") "/bin" ":"
4932 (assoc-ref %build-inputs "gzip") "/bin"))
4933 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
4934 (chdir (string-append ,name "-" ,version))
4935 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
4936 (mkdir-p dir)
4937 (copy-recursively "stamps" dir))
4938 #t)))
4939 (home-page (package-home-page tuxpaint))
4940 (synopsis "Stamp images for Tux Paint")
4941 (description
4942 "This package contains a set of \"Rubber Stamp\" images which can be used
4943 with the \"Stamp\" tool within Tux Paint.")
4944 (license license:gpl2+)))
4945
4946 (define-public tuxpaint-config
4947 (package
4948 (name "tuxpaint-config")
4949 (version "0.0.14") ;keep VER_DATE below in sync
4950 (source
4951 (origin
4952 (method url-fetch)
4953 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
4954 version "/tuxpaint-config-" version ".tar.gz"))
4955 (sha256
4956 (base32
4957 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
4958 (build-system gnu-build-system)
4959 (native-inputs
4960 `(("gettext" ,gettext-minimal)))
4961 (inputs
4962 `(("fltk" ,fltk)
4963 ("libpaper" ,libpaper)
4964 ;; TODO: Should the following be propagated by fltk?
4965 ("libx11" ,libx11)
4966 ("libxft" ,libxft)
4967 ("mesa" ,mesa)))
4968 (arguments
4969 `(#:make-flags `("VER_DATE=2018-09-01"
4970 "CONFDIR=/etc/tuxpaint" ;don't write to store
4971 ,(string-append "PREFIX=" %output)
4972 "GNOME_PREFIX=$(PREFIX)")
4973 #:parallel-build? #f ;race conditions
4974 #:tests? #f ;no tests
4975 #:phases (modify-phases %standard-phases
4976 (delete 'configure) ;no configure phase
4977 (add-before 'install 'gzip-no-name
4978 (lambda* _
4979 (substitute* "Makefile"
4980 ;; tuxpaint-config compresses its own documentation;
4981 ;; make sure it uses flags for reproducibility.
4982 (("gzip") "gzip --no-name"))))
4983 (add-before 'install 'make-install-dirs
4984 (lambda* (#:key outputs #:allow-other-keys)
4985 (let ((out (assoc-ref outputs "out")))
4986 (mkdir-p (string-append out "/bin"))
4987 #t))))))
4988 (home-page (package-home-page tuxpaint))
4989 (synopsis "Configure Tux Paint")
4990 (description
4991 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
4992 (license license:gpl2))) ;no "or later" present
4993
4994 (define-public supertux
4995 (package
4996 (name "supertux")
4997 (version "0.6.2")
4998 (source (origin
4999 (method url-fetch)
5000 (uri (string-append "https://github.com/SuperTux/supertux/"
5001 "releases/download/v" version "/SuperTux-v"
5002 version "-Source.tar.gz"))
5003 (file-name (string-append name "-" version ".tar.gz"))
5004 (sha256
5005 (base32
5006 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5007 (patches
5008 (search-patches "supertux-unbundle-squirrel.patch"))))
5009 (arguments
5010 '(#:tests? #f
5011 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5012 "-DUSE_SYSTEM_PHYSFS=ON")
5013 #:phases
5014 (modify-phases %standard-phases
5015 (add-after 'unpack 'patch-squirrel-path
5016 (lambda* (#:key inputs #:allow-other-keys)
5017 (let ((squirrel (assoc-ref inputs "squirrel")))
5018 (substitute* "CMakeLists.txt"
5019 (("set\\(SQUIRREL_PREFIX.*")
5020 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5021 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5022 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5023 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5024 #t)))))
5025 (build-system cmake-build-system)
5026 (inputs `(("sdl2" ,sdl2)
5027 ("sdl2-image" ,sdl2-image)
5028 ("sdl2-mixer" ,sdl2-mixer)
5029 ("openal" ,openal)
5030 ("mesa" ,mesa)
5031 ("glew" ,glew)
5032 ("libvorbis" ,libvorbis)
5033 ("libogg" ,libogg)
5034 ("physfs" ,physfs)
5035 ("curl" ,curl)
5036 ("boost" ,boost)
5037 ("freetype" ,freetype)
5038 ("squirrel" ,squirrel)))
5039 (native-inputs
5040 `(("pkg-config" ,pkg-config)))
5041 (synopsis "2D platformer game")
5042 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5043 a style similar to the original Super Mario games.")
5044 (home-page "https://supertux.org/")
5045 (license license:gpl3+)))
5046
5047 (define-public tintin++
5048 (package
5049 (name "tintin++")
5050 (version "2.02.02")
5051 (source
5052 (origin
5053 (method url-fetch)
5054 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5055 (string-drop-right version 1)
5056 "/tintin-" version ".tar.gz"))
5057 (sha256
5058 (base32 "11ylbp8ip7dwmh4gzb53z147pcfxkl3lwhyy8ngyn2zc634vdn65"))))
5059 (inputs
5060 `(("gnutls" ,gnutls)
5061 ("pcre" ,pcre)
5062 ("readline" ,readline)
5063 ("zlib" ,zlib)))
5064 (arguments
5065 '(#:tests? #f ; no test suite
5066 #:phases
5067 (modify-phases %standard-phases
5068 ;; The source is in tt/src.
5069 (add-before 'configure 'chdir
5070 (lambda _
5071 (chdir "src")
5072 #t)))))
5073 (build-system gnu-build-system)
5074 (home-page "https://tintin.mudhalla.net/")
5075 (synopsis "MUD client")
5076 (description
5077 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5078 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5079 options used by MUDs, as well as those required to login via telnet on
5080 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5081 (license license:gpl3+)))
5082
5083 (define-public laby
5084 (package
5085 (name "laby")
5086 (version "0.6.4")
5087 (source
5088 (origin (method git-fetch)
5089 (uri (git-reference
5090 (url "https://github.com/sgimenez/laby")
5091 (commit (string-append name "-" version))))
5092 (file-name (git-file-name name version))
5093 (sha256
5094 (base32
5095 "12fq9hhrxpzgfinmj9ra9ckss9yficwdlrmgjvvsq7agvh3sgyl1"))
5096 (patches (search-patches "laby-make-install.patch"))))
5097 (build-system gnu-build-system)
5098 (inputs
5099 `(("lablgtk" ,lablgtk)
5100 ("ocaml" ,ocaml)
5101 ("ocaml-findlib" ,ocaml-findlib)
5102 ("ocamlbuild" ,ocamlbuild)))
5103 (arguments
5104 '(#:phases
5105 (modify-phases %standard-phases
5106 (delete 'configure)
5107 (add-before 'build 'allow-unsafe-strings
5108 ;; Fix a build failure with ocaml >=4.06.0.
5109 ;; See <https://github.com/sgimenez/laby/issues/53>.
5110 (lambda _
5111 (setenv "OCAMLPARAM" "safe-string=0,_")
5112 #t))
5113 (add-before 'build 'set-library-path
5114 (lambda* (#:key inputs #:allow-other-keys)
5115 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5116 (setenv "LD_LIBRARY_PATH"
5117 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5118 #:tests? #f ; no 'check' target
5119 #:make-flags
5120 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5121 (home-page "https://sgimenez.github.io/laby/")
5122 (synopsis "Programming game")
5123 (description "Learn programming, playing with ants and spider webs ;-)
5124 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5125 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5126 programmers may also add their own favorite language.")
5127 (license license:gpl3+)))
5128
5129 (define-public bambam
5130 (package
5131 (name "bambam")
5132 (version "1.0.0")
5133 (source
5134 (origin
5135 (method git-fetch)
5136 (uri (git-reference
5137 (url "https://github.com/porridge/bambam")
5138 (commit (string-append "v" version))))
5139 (file-name (git-file-name name version))
5140 (sha256
5141 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5142 (build-system python-build-system)
5143 (arguments
5144 `(#:tests? #f ; no tests
5145 #:phases
5146 (modify-phases %standard-phases
5147 (delete 'build) ; nothing to build
5148 (replace 'install
5149 (lambda* (#:key outputs #:allow-other-keys)
5150 (let* ((out (assoc-ref outputs "out"))
5151 (bin (string-append out "/bin"))
5152 (share (string-append out "/share")))
5153 (mkdir-p bin)
5154 (copy-file "bambam.py" (string-append bin "/bambam"))
5155 (install-file "bambam.6" (string-append share "/man/man6"))
5156 (copy-recursively "data" (string-append share "/bambam/data")))
5157 #t)))))
5158 (inputs
5159 `(("python-pygame" ,python-pygame)))
5160 (home-page "https://github.com/porridge/bambam")
5161 (synopsis "Keyboard mashing and doodling game for babies")
5162 (description "Bambam is a simple baby keyboard (and gamepad) masher
5163 application that locks the keyboard and mouse and instead displays bright
5164 colors, pictures, and sounds.")
5165 (license license:gpl3+)))
5166
5167 (define-public mrrescue
5168 (package
5169 (name "mrrescue")
5170 (version "1.02e")
5171 (source (origin
5172 (method url-fetch)
5173 (uri (string-append
5174 "https://github.com/SimonLarsen/mrrescue/releases/"
5175 "download/" version "/mrrescue" version ".love"))
5176 (file-name (string-append name "-" version ".love"))
5177 (sha256
5178 (base32
5179 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5180 (build-system trivial-build-system)
5181 (arguments
5182 `(#:modules ((guix build utils))
5183 #:builder
5184 (begin
5185 (use-modules (guix build utils))
5186 (let* ((out (assoc-ref %outputs "out"))
5187 (script (string-append out "/bin/" ,name))
5188 (data (string-append out "/share/" ,name))
5189 (source (assoc-ref %build-inputs "source"))
5190 (unzip (string-append (assoc-ref %build-inputs "unzip")
5191 "/bin/unzip"))
5192 (patch (string-append (assoc-ref %build-inputs "patch")
5193 "/bin/patch"))
5194 (bash (string-append (assoc-ref %build-inputs "bash")
5195 "/bin/bash"))
5196 (love (string-append (assoc-ref %build-inputs "love")
5197 "/bin/love")))
5198
5199 (mkdir-p (dirname script))
5200 (with-output-to-file script
5201 (lambda ()
5202 (format #t "#!~a~%" bash)
5203 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5204 (chmod script #o755)
5205
5206 ;; The better way to package this game would be to install *only* the
5207 ;; script above, pointing to the unextracted .love file in the store.
5208 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5209 ;; Instead of extracting the .love file, patching it, and re-zipping
5210 ;; it to the store, simply point the script to the extracted patched
5211 ;; data directory directly.
5212 (mkdir-p data)
5213 (with-directory-excursion data
5214 (invoke unzip source)
5215 (invoke patch "-p1" "-i"
5216 (assoc-ref %build-inputs "love-11.patch")))
5217 #t))))
5218 (native-inputs
5219 `(("unzip" ,unzip)
5220 ("patch" ,patch)
5221 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5222 (inputs
5223 `(("bash" ,bash)
5224 ("love" ,love)))
5225 (home-page "https://tangramgames.dk/games/mrrescue")
5226 (synopsis "Arcade-style fire fighting game")
5227 (description
5228 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5229 civilians from burning buildings. The game features fast-paced fire
5230 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5231 throwing people around in pseudo-randomly generated buildings.")
5232 (license (list license:zlib ; for source code
5233 license:cc-by-sa3.0)))) ; for graphics and music assets
5234
5235 (define-public hyperrogue
5236 (package
5237 (name "hyperrogue")
5238 (version "11.3a")
5239 ;; When updating this package, be sure to update the "hyperrogue-data"
5240 ;; origin in native-inputs.
5241 (source (origin
5242 (method url-fetch)
5243 (uri (string-append
5244 "https://www.roguetemple.com/z/hyper/hyperrogue"
5245 (string-join (string-split version #\.) "")
5246 "-src.tgz"))
5247 (sha256
5248 (base32
5249 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5250 (build-system gnu-build-system)
5251 (arguments
5252 `(#:tests? #f ; no check target
5253 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5254 "HYPERROGUE_USE_PNG=1")
5255 #:phases
5256 (modify-phases %standard-phases
5257 (add-after 'set-paths 'set-sdl-paths
5258 (lambda* (#:key inputs #:allow-other-keys)
5259 (setenv "CPATH"
5260 (string-append (or (getenv "CPATH") "") ":"
5261 (assoc-ref inputs "sdl-union")
5262 "/include/SDL"))))
5263 (replace 'configure
5264 (lambda* (#:key inputs outputs #:allow-other-keys)
5265 (let* ((out (assoc-ref outputs "out"))
5266 (share-dir (string-append out "/share/hyperrogue"))
5267 (dejavu-dir (string-append
5268 (assoc-ref inputs "font-dejavu")
5269 "/share/fonts/truetype"))
5270 (dejavu-font "DejaVuSans-Bold.ttf")
5271 (music-file "hyperrogue-music.txt"))
5272 ;; Fix font and music paths.
5273 (substitute* "basegraph.cpp"
5274 ((dejavu-font)
5275 (string-append dejavu-dir "/" dejavu-font)))
5276 (substitute* music-file
5277 (("\\*/")
5278 (string-append share-dir "/sounds/")))
5279 (substitute* "sound.cpp"
5280 (("musicfile = \"\"")
5281 (string-append "musicfile = \""
5282 share-dir "/" music-file "\"")))
5283 ;; Disable build machine CPU optimizations and warnings treated
5284 ;; as errors.
5285 (substitute* "Makefile"
5286 (("-march=native") "")
5287 (("-Werror") "")))
5288 #t))
5289 (replace 'install
5290 (lambda* (#:key inputs outputs #:allow-other-keys)
5291 (let* ((out (assoc-ref outputs "out"))
5292 (bin (string-append out "/bin"))
5293 (share-dir (string-append out "/share/hyperrogue")))
5294 (mkdir-p bin)
5295 (install-file "hyperrogue" bin)
5296 (install-file "hyperrogue-music.txt" share-dir))
5297 #t))
5298 (add-after 'install 'install-data
5299 (lambda* (#:key inputs outputs #:allow-other-keys)
5300 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5301 (out (assoc-ref outputs "out"))
5302 (sounds (string-append out "/share/hyperrogue/sounds"))
5303 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5304 ;; Extract media license information into sounds directory.
5305 (invoke unzip "-j" data
5306 (string-append
5307 "hyperrogue"
5308 (string-join (string-split ,version #\.) "")
5309 "/sounds/credits.txt") "-d" sounds)
5310 ;; Extract sounds and music into sounds directory.
5311 (invoke "unzip" "-j" data
5312 (string-append
5313 "hyperrogue"
5314 (string-join (string-split ,version #\.) "")
5315 "/*.ogg") "-d" sounds)))))))
5316 (native-inputs
5317 `(("hyperrogue-data"
5318 ,(origin
5319 (method url-fetch)
5320 (uri
5321 (string-append
5322 "https://www.roguetemple.com/z/hyper/hyperrogue"
5323 (string-join (string-split version #\.) "")
5324 "-win.zip"))
5325 (sha256
5326 (base32
5327 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5328 ("unzip" ,unzip)))
5329 (inputs
5330 `(("font-dejavu" ,font-dejavu)
5331 ("glew" ,glew)
5332 ("libpng" ,libpng)
5333 ("sdl-union" ,(sdl-union (list sdl
5334 sdl-gfx
5335 sdl-mixer
5336 sdl-ttf)))))
5337 (home-page "https://www.roguetemple.com/z/hyper/")
5338 (synopsis "Non-euclidean graphical rogue-like game")
5339 (description
5340 "HyperRogue is a game in which the player collects treasures and fights
5341 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5342 plane and not in euclidean space.
5343
5344 In HyperRogue, the player can move through different parts of the world, which
5345 are home to particular creatures and may be subject to their own rules of
5346 \"physics\".
5347
5348 While the game can use ASCII characters to display the the classical rogue
5349 symbols, it still needs graphics to render the non-euclidean world.")
5350 (license (list license:bsd-3 ; glew.c, mtrand.*
5351 license:cc-by-sa3.0 ; music
5352 license:cc-by-sa4.0 ; sounds
5353 license:cc0
5354 license:public-domain ; direntx.*, some sounds
5355 license:zlib ; savepng.*
5356 license:gpl2+)))) ; remaining files
5357
5358 (define-public kobodeluxe
5359 (package
5360 (name "kobodeluxe")
5361 (version "0.5.1")
5362 (source (origin
5363 (method url-fetch)
5364 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5365 version ".tar.bz2"))
5366 (sha256
5367 (base32
5368 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5369 (patches (search-patches
5370 "kobodeluxe-const-charp-conversion.patch"
5371 "kobodeluxe-enemies-pipe-decl.patch"
5372 "kobodeluxe-graphics-window-signed-char.patch"
5373 "kobodeluxe-manpage-minus-not-hyphen.patch"
5374 "kobodeluxe-midicon-segmentation-fault.patch"
5375 "kobodeluxe-paths.patch"))))
5376 (build-system gnu-build-system)
5377 (arguments
5378 '(#:configure-flags
5379 (list (string-append "CPPFLAGS=-I"
5380 (assoc-ref %build-inputs "sdl-union")
5381 "/include/SDL"))))
5382 (inputs
5383 `(("glu" ,glu)
5384 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5385 (synopsis "Shooter with space station destruction")
5386 (description
5387 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5388 for Un*x systems with X11.")
5389 (home-page "http://olofson.net/kobodl/")
5390 (license license:gpl2+)))
5391
5392 (define-public freeciv
5393 (package
5394 (name "freeciv")
5395 (version "2.6.2")
5396 (source
5397 (origin
5398 (method url-fetch)
5399 (uri (list (string-append
5400 "http://files.freeciv.org/stable/freeciv-"
5401 version ".tar.bz2")
5402 (string-append
5403 "mirror://sourceforge/freeciv/Freeciv%20"
5404 (version-major+minor version) "/" version
5405 "/freeciv-" version ".tar.bz2")))
5406 (sha256
5407 (base32 "13vc2xg1cf19rhbnr7k38b56b2hdapqymq5vma1l69kn7hyyz0b1"))))
5408 (build-system gnu-build-system)
5409 (inputs
5410 `(("curl" ,curl)
5411 ("cyrus-sasl" ,cyrus-sasl)
5412 ("gtk+" ,gtk+)
5413 ("sdl-mixer" ,sdl-mixer)
5414 ("zlib" ,zlib)))
5415 (native-inputs
5416 `(("pkg-config" ,pkg-config)))
5417 (home-page "http://www.freeciv.org/")
5418 (synopsis "Turn-based empire building strategy game")
5419 (description "Freeciv is a turn-based empire building strategy game
5420 inspired by the history of human civilization. The game commences in
5421 prehistory and your mission is to lead your tribe from the Stone Age
5422 into the Space Age.")
5423 (license license:gpl2+)))
5424
5425 (define-public no-more-secrets
5426 (package
5427 (name "no-more-secrets")
5428 (version "0.3.3")
5429 (source
5430 (origin
5431 (method git-fetch)
5432 (uri (git-reference
5433 (url "https://github.com/bartobri/no-more-secrets")
5434 (commit (string-append "v" version))))
5435 (file-name (git-file-name name version))
5436 (sha256
5437 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5438 (build-system gnu-build-system)
5439 (arguments
5440 `(#:tests? #f
5441 #:make-flags (list "CC=gcc" "all-ncurses"
5442 (string-append "prefix="
5443 (assoc-ref %outputs "out")))
5444 #:phases
5445 (modify-phases %standard-phases
5446 (delete 'configure))))
5447 (inputs
5448 `(("ncurses" ,ncurses)))
5449 (home-page "https://github.com/bartobri/no-more-secrets")
5450 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5451 (description
5452 "@code{No More Secrets} provides a command line tool called \"nms\"
5453 that recreates the famous data decryption effect seen on screen in the 1992
5454 movie \"Sneakers\".
5455
5456 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5457 it will apply the hollywood effect, initially showing encrypted data, then
5458 starting a decryption sequence to reveal the original plaintext characters.")
5459 (license license:expat)))
5460
5461 (define-public megaglest-data
5462 (package
5463 (name "megaglest-data")
5464 (version "3.13.0")
5465 (source
5466 (origin
5467 (method url-fetch)
5468 (uri (string-append
5469 "https://github.com/MegaGlest/megaglest-data"
5470 "/releases/download/" version "/megaglest-data-"
5471 version ".tar.xz"))
5472 (sha256
5473 (base32
5474 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5475 (build-system cmake-build-system)
5476 (arguments
5477 `(#:tests? #f))
5478 (home-page "https://megaglest.org/")
5479 (synopsis "Data files for MegaGlest")
5480 (description "This package contains the data files required for MegaGlest.")
5481 (license license:cc-by-sa3.0)))
5482
5483 (define-public megaglest
5484 (package
5485 (name "megaglest")
5486 (version "3.13.0")
5487 (source
5488 (origin
5489 (method url-fetch)
5490 (uri (string-append
5491 "https://github.com/MegaGlest/megaglest-source"
5492 "/releases/download/" version "/megaglest-source-"
5493 version ".tar.xz"))
5494 (sha256
5495 (base32
5496 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5497 (build-system cmake-build-system)
5498 (inputs
5499 `(("curl" ,curl)
5500 ("fontconfig" ,fontconfig)
5501 ("ftgl" ,ftgl)
5502 ("glew" ,glew)
5503 ("libjpeg-turbo" ,libjpeg-turbo)
5504 ("megaglest-data" ,megaglest-data)
5505 ("mesa" ,mesa)
5506 ("miniupnpc" ,miniupnpc)
5507 ("openal" ,openal)
5508 ("libircclient" ,libircclient)
5509 ("libpng" ,libpng)
5510 ("libvorbis" ,libvorbis)
5511 ("lua" ,lua)
5512 ("sdl2" ,sdl2)
5513 ("wxwidgets" ,wxwidgets)))
5514 (native-inputs
5515 `(("cppunit" ,cppunit)
5516 ("pkg-config" ,pkg-config)))
5517 (arguments
5518 `(#:configure-flags
5519 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5520 (assoc-ref %build-inputs "megaglest-data")
5521 "/share/megaglest")
5522 "-DBUILD_MEGAGLEST_TESTS=ON")
5523 #:phases
5524 (modify-phases %standard-phases
5525 (add-after 'unpack 'fix-ini-search-path
5526 (lambda* (#:key outputs #:allow-other-keys)
5527 (substitute* "source/glest_game/global/config.cpp"
5528 (("/usr/share/megaglest/")
5529 (string-append (assoc-ref outputs "out")
5530 "/share/megaglest/"))))))
5531 #:test-target "megaglest_tests"))
5532 (home-page "https://megaglest.org/")
5533 (synopsis "3D real-time strategy (RTS) game")
5534 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5535 game, where you control the armies of one of seven different factions: Tech,
5536 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5537 (license license:gpl2+)))
5538
5539 (define-public freegish
5540 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5541 (revision "1"))
5542 (package
5543 (name "freegish")
5544 (version (string-append "0-" revision "." (string-take commit 9)))
5545 (source (origin
5546 (method git-fetch)
5547 (uri (git-reference
5548 (url "https://github.com/freegish/freegish")
5549 (commit commit)))
5550 (file-name (git-file-name name version))
5551 (sha256
5552 (base32
5553 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
5554 (modules '((guix build utils)))
5555 ;; The audio files in the "music" directory are licensed under
5556 ;; CC-BY-NC, so we delete them.
5557 (snippet
5558 '(begin
5559 (delete-file-recursively "music")
5560 #t))))
5561 (build-system cmake-build-system)
5562 (arguments
5563 `(#:tests? #f ; no tests included
5564 #:configure-flags
5565 (list "-DCMAKE_INSTALL_FHS=ON")
5566 #:phases
5567 (modify-phases %standard-phases
5568 (add-after 'unpack 'set-DATAPATH
5569 (lambda* (#:key outputs #:allow-other-keys)
5570 (substitute* "CMakeLists.txt"
5571 (("^option\\(INSTALL_FHS" line)
5572 (string-append "add_definitions(-DDATAPATH=\""
5573 (assoc-ref outputs "out") "/share/freegish\")\n"
5574 line)))
5575 #t)))))
5576 (inputs
5577 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
5578 ("openal" ,openal)
5579 ("libvorbis" ,libvorbis)
5580 ("libogg" ,libogg)
5581 ("mesa" ,mesa)
5582 ("libpng" ,libpng)
5583 ("zlib" ,zlib)))
5584 (home-page "https://github.com/freegish/freegish")
5585 (synopsis "Side-scrolling physics platformer with a ball of tar")
5586 (description "In FreeGish you control Gish, a ball of tar who lives
5587 happily with his girlfriend Brea, until one day a mysterious dark creature
5588 emerges from a sewer hole and pulls her below ground.")
5589 ;; The textures are available under the Expat license. All other assets
5590 ;; (including levels) are covered under CC-BY-SA or public domain. The
5591 ;; source code is under GPLv2+.
5592 (license (list license:gpl2+
5593 license:expat
5594 license:public-domain
5595 license:cc-by-sa3.0)))))
5596
5597 (define-public cdogs-sdl
5598 (package
5599 (name "cdogs-sdl")
5600 (version "0.8.0")
5601 (source
5602 (origin
5603 (method git-fetch)
5604 (uri (git-reference
5605 (url "https://github.com/cxong/cdogs-sdl")
5606 (commit version)))
5607 (file-name (git-file-name name version))
5608 (sha256
5609 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
5610 (build-system cmake-build-system)
5611 (arguments
5612 `(#:configure-flags
5613 (list (string-append "-DCDOGS_DATA_DIR="
5614 (assoc-ref %outputs "out")
5615 "/share/cdogs-sdl/"))))
5616 (native-inputs
5617 `(("pkg-config" ,pkg-config)))
5618 (inputs
5619 `(("gtk+" ,gtk+)
5620 ("mesa" ,mesa)
5621 ("sdl2" ,sdl2)
5622 ("sdl2-image" ,sdl2-image)
5623 ("sdl2-mixer" ,sdl2-mixer)))
5624 (home-page "https://cxong.github.io/cdogs-sdl/")
5625 (synopsis "Classic overhead run-and-gun game")
5626 (description "C-Dogs SDL is a classic overhead run-and-gun game,
5627 supporting up to 4 players in co-op and deathmatch modes. Customize your
5628 player, choose from many weapons, and blast, slide and slash your way through
5629 over 100 user-created campaigns.")
5630 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
5631 ;; CC0/CC-BY/CC-BY-SA for assets.
5632 (license (list license:gpl2+
5633 license:bsd-2
5634 license:bsd-3
5635 license:cc0
5636 license:cc-by3.0
5637 license:cc-by-sa3.0))))
5638
5639 (define-public kiki
5640 (package
5641 (name "kiki")
5642 (version "1.0.2")
5643 (source (origin
5644 (method url-fetch)
5645 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
5646 version "/kiki-" version "-src.tgz"))
5647 (sha256
5648 (base32
5649 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
5650 (modules '((guix build utils)))
5651 (snippet
5652 '(begin
5653 (for-each delete-file (find-files "." "\\.dll$"))
5654 #t))
5655 (patches
5656 (search-patches "kiki-level-selection-crash.patch"
5657 "kiki-makefile.patch"
5658 "kiki-missing-includes.patch"
5659 "kiki-portability-64bit.patch"))))
5660 (build-system gnu-build-system)
5661 (arguments
5662 `(#:tests? #f ; there are no tests
5663 #:make-flags '("CXX=g++")
5664 #:phases
5665 (modify-phases %standard-phases
5666 (replace 'configure
5667 (lambda* (#:key inputs outputs #:allow-other-keys)
5668 (setenv "CPLUS_INCLUDE_PATH"
5669 (string-append (assoc-ref inputs "sdl-union")
5670 "/include/SDL:"
5671 (assoc-ref inputs "python")
5672 "/include/python2.7:"
5673 (or (getenv "CPLUS_INCLUDE_PATH") "")))
5674 (substitute* "src/main/main.cpp"
5675 (("#include <SDL.h>" line)
5676 (string-append line "
5677 #define K_INCLUDE_GLUT
5678 #include \"KIncludeTools.h\""))
5679 (("// initialize SDL" line)
5680 (string-append "glutInit(&argc,argv);\n" line)))
5681 (substitute* "src/main/KikiController.cpp"
5682 (("getenv\\(\"KIKI_HOME\"\\)")
5683 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
5684 (substitute* "linux/Makefile"
5685 (("CXXOPTS =" line)
5686 (string-append line " -fpermissive"))
5687 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
5688 (("PYTHONHOME =.*")
5689 (string-append "PYTHONHOME = "
5690 (assoc-ref inputs "python")
5691 "/lib/python2.7/"))
5692 (("\\$\\(GLLIBS\\)" line)
5693 (string-append line " -lm -lpython2.7")))
5694 (substitute* "src/main/KikiPythonWidget.h"
5695 (("#define __KikiPythonWidget" line)
5696 (string-append line "\n#include \"KikiPython.h\"")))
5697 #t))
5698 (add-before 'build 'build-kodilib
5699 (lambda* (#:key make-flags #:allow-other-keys)
5700 (with-directory-excursion "kodilib/linux"
5701 (apply invoke "make" make-flags))))
5702 (add-after 'build-kodilib 'chdir
5703 (lambda _ (chdir "linux") #t))
5704 (replace 'install
5705 (lambda* (#:key outputs #:allow-other-keys)
5706 (let* ((out (assoc-ref outputs "out"))
5707 (bin (string-append out "/bin"))
5708 (share (string-append out "/share/kiki")))
5709 (mkdir-p bin)
5710 (mkdir-p share)
5711 (install-file "kiki" bin)
5712 (copy-recursively "../py" (string-append share "/py"))
5713 (copy-recursively "../sound" (string-append share "/sound"))
5714 #t))))))
5715 (inputs
5716 `(("glu" ,glu)
5717 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
5718 ("freeglut" ,freeglut-2.8)
5719 ("sdl-union" ,(sdl-union (list sdl
5720 sdl-mixer
5721 sdl-image)))
5722 ("python" ,python-2)))
5723 (native-inputs
5724 `(("swig" ,swig)))
5725 (home-page "http://kiki.sourceforge.net/")
5726 (synopsis "3D puzzle game")
5727 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
5728 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
5729 small robot living in the nano world, repair its maker.")
5730 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
5731 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
5732 ;; for a statement from the author.
5733 (license license:public-domain)))
5734
5735 (define-public teeworlds
5736 (package
5737 (name "teeworlds")
5738 (version "0.7.5")
5739 (source (origin
5740 (method git-fetch)
5741 (uri (git-reference
5742 (url "https://github.com/teeworlds/teeworlds")
5743 (commit version)))
5744 (file-name (git-file-name name version))
5745 (sha256
5746 (base32
5747 "169dl83q08zl4h813az8hjs4rs3dms9yjn6bnsld4fjcj0imvvc6"))
5748 (modules '((guix build utils)
5749 (ice-9 ftw)
5750 (ice-9 regex)
5751 (srfi srfi-1)
5752 (srfi srfi-26)))
5753 (snippet ; remove bundled libraries except md5
5754 '(let ((base-dir "src/engine/external/"))
5755 (for-each (compose (cut delete-file-recursively <>)
5756 (cut string-append base-dir <>))
5757 (remove (cut string-match "(^.)|(^md5$)" <>)
5758 (scandir base-dir)))
5759 #t))))
5760 (build-system gnu-build-system)
5761 (arguments
5762 `(#:tests? #f ; no tests included
5763 #:modules ((guix build gnu-build-system)
5764 (guix build utils)
5765 (srfi srfi-26))
5766 #:phases
5767 (modify-phases %standard-phases
5768 (replace 'configure
5769 (lambda* (#:key outputs #:allow-other-keys)
5770 ;; Embed path to assets.
5771 (substitute* "src/engine/shared/storage.cpp"
5772 (("#define DATA_DIR.*")
5773 (string-append "#define DATA_DIR \""
5774 (assoc-ref outputs "out")
5775 "/share/teeworlds/data"
5776 "\"")))
5777
5778 ;; Bam expects all files to have a recent time stamp.
5779 (for-each (cut utime <> 1 1)
5780 (find-files "."))
5781
5782 ;; Do not use bundled libraries.
5783 (substitute* "bam.lua"
5784 (("local json = Compile.+$")
5785 "local json = nil
5786 settings.link.libs:Add(\"jsonparser\")")
5787 (("local png = Compile.+$")
5788 "local png = nil
5789 settings.link.libs:Add(\"pnglite\")")
5790 (("local wavpack = Compile.+$")
5791 "local wavpack = nil
5792 settings.link.libs:Add(\"wavpack\")")
5793 (("if config\\.zlib\\.value == 1")
5794 "if config.zlib.value"))
5795 (substitute* "src/engine/client/graphics_threaded.cpp"
5796 (("engine/external/pnglite/pnglite\\.h")
5797 "pnglite.h"))
5798 (substitute* "src/engine/client/sound.cpp"
5799 (("engine/external/wavpack/wavpack\\.h")
5800 "wavpack/wavpack.h"))
5801 #t))
5802 (replace 'build
5803 (lambda _
5804 (invoke "bam" "-a" "-v" "conf=release")))
5805 (replace 'install
5806 (lambda* (#:key outputs #:allow-other-keys)
5807 (let* ((arch ,(system->linux-architecture
5808 (or (%current-target-system)
5809 (%current-system))))
5810 (build (string-append "build/" (if (string=? arch "i386")
5811 "x86" arch)
5812 "/release/"))
5813 (data-built (string-append build "data/"))
5814 (out (assoc-ref outputs "out"))
5815 (bin (string-append out "/bin/"))
5816 (data (string-append out "/share/teeworlds/data/")))
5817 (for-each (cut install-file <> bin)
5818 (map (cut string-append build <>)
5819 '("teeworlds" "teeworlds_srv")))
5820 (copy-recursively data-built data)
5821 #t))))))
5822 (inputs
5823 `(("freetype" ,freetype)
5824 ("glu" ,glu)
5825 ("json-parser" ,json-parser)
5826 ("mesa" ,mesa)
5827 ("pnglite" ,pnglite)
5828 ("sdl2" ,sdl2)
5829 ("sdl2-image" ,sdl2-image)
5830 ("sdl2-mixer" ,sdl2-mixer)
5831 ("wavpack" ,wavpack)
5832 ("zlib" ,zlib)))
5833 (native-inputs
5834 `(("bam" ,bam)
5835 ("python" ,python-wrapper)
5836 ("pkg-config" ,pkg-config)))
5837 (home-page "https://www.teeworlds.com")
5838 (synopsis "2D retro multiplayer shooter game")
5839 (description "Teeworlds is an online multiplayer game. Battle with up to
5840 16 players in a variety of game modes, including Team Deathmatch and Capture
5841 The Flag. You can even design your own maps!")
5842 (license license:bsd-3)))
5843
5844 (define-public enigma
5845 (package
5846 (name "enigma")
5847 (version "1.21")
5848 (source (origin
5849 (method url-fetch)
5850 (uri (string-append "mirror://sourceforge/enigma-game/"
5851 "Release%20" version "/enigma-"
5852 version ".tar.gz"))
5853 (sha256
5854 (base32
5855 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
5856 (build-system gnu-build-system)
5857 (arguments
5858 `(#:configure-flags
5859 (list "--with-system-enet")
5860 #:phases
5861 (modify-phases %standard-phases
5862 (add-after 'unpack 'find-sdl
5863 (lambda _
5864 (substitute* "configure"
5865 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
5866 (substitute* '("tools/ttf2bmf.cc"
5867 "lib-src/enigma-core/ecl_font.cc"
5868 "lib-src/enigma-core/ecl_video.cc"
5869 "lib-src/enigma-core/ecl_buffer.hh"
5870 "src/SoundEngine.cc"
5871 "src/SoundEngine.hh"
5872 "src/MusicManager.cc"
5873 "src/MusicManager.hh"
5874 "src/d_models.cc"
5875 "src/main.cc"
5876 "src/network.cc")
5877 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
5878 (string-append "#include \"SDL/SDL_" header ".h\"")))
5879 (substitute* "src/main.cc"
5880 (("#include <SDL_(image|ttf|mixer).h>" line header)
5881 (string-append "#include \"SDL/SDL_" header ".h\"")))
5882 #t)))))
5883 (inputs
5884 `(("xerces-c" ,xerces-c)
5885 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
5886 ("curl" ,curl)
5887 ("enet" ,enet)))
5888 (native-inputs
5889 `(("pkg-config" ,pkg-config)
5890 ("imagemagick" ,imagemagick)))
5891 (home-page "https://www.nongnu.org/enigma")
5892 (synopsis "Puzzle game with a dexterity component")
5893 (description "Enigma is a puzzle game with 550 unique levels. The object
5894 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
5895 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
5896 and most of all, countless hairy puzzles usually block your direct way to the
5897 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
5898 get bored) interact in many unexpected ways, and since many of them follow the
5899 laws of physics (Enigma’s special laws of physics, that is), controlling them
5900 with the mouse isn’t always trivial.")
5901 (license license:gpl2+)))
5902
5903 (define-public chroma
5904 (package
5905 (name "chroma")
5906 (version "1.17")
5907 (source (origin
5908 (method url-fetch)
5909 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
5910 version ".tar.bz2"))
5911 (sha256
5912 (base32
5913 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
5914 (build-system gnu-build-system)
5915 (arguments
5916 `(#:tests? #f)) ; no tests included
5917 (inputs
5918 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
5919 ("freetype" ,freetype)
5920 ("ncurses" ,ncurses)
5921 ("fontconfig" ,fontconfig)
5922 ("libxft" ,libxft)))
5923 (native-inputs
5924 `(("pkg-config" ,pkg-config)))
5925 (home-page "http://level7.org.uk/chroma/")
5926 (synopsis "Abstract puzzle game")
5927 (description "Chroma is an abstract puzzle game. A variety of colourful
5928 shapes are arranged in a series of increasingly complex patterns, forming
5929 fiendish traps that must be disarmed and mysterious puzzles that must be
5930 manipulated in order to give up their subtle secrets. Initially so
5931 straightforward that anyone can pick it up and begin to play, yet gradually
5932 becoming difficult enough to tax even the brightest of minds.")
5933 (license license:gpl2+)))
5934
5935 (define-public fillets-ng
5936 (package
5937 (name "fillets-ng")
5938 (version "1.0.1")
5939 (source (origin
5940 (method url-fetch)
5941 (uri (string-append "mirror://sourceforge/fillets/"
5942 "Fish%20Fillets%20-%20Next%20Generation/"
5943 version "/fillets-ng-" version ".tar.gz"))
5944 (sha256
5945 (base32
5946 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
5947 (build-system gnu-build-system)
5948 (arguments
5949 `(#:configure-flags
5950 (list (string-append "--with-lua="
5951 (assoc-ref %build-inputs "lua")))
5952 #:make-flags
5953 (list (string-append "CFLAGS=-I"
5954 (assoc-ref %build-inputs "sdl-union")
5955 "/include/SDL")
5956 (string-append "CXXFLAGS=-I"
5957 (assoc-ref %build-inputs "sdl-union")
5958 "/include/SDL"))
5959 #:phases
5960 (modify-phases %standard-phases
5961 ;; Lua 5.1 does not provide it.
5962 (add-after 'unpack 'do-not-link-with-lualib
5963 (lambda _
5964 (substitute* "configure"
5965 (("-llualib") ""))
5966 #t))
5967 (add-after 'install 'install-data
5968 (lambda* (#:key inputs outputs #:allow-other-keys)
5969 (let ((data (string-append (assoc-ref outputs "out")
5970 "/share/games/fillets-ng")))
5971 (mkdir-p data)
5972 (invoke "tar" "-xvf"
5973 (assoc-ref inputs "fillets-ng-data")
5974 "--strip-components=1"
5975 "-C" data)))))))
5976 (inputs
5977 `(("sdl-union" ,(sdl-union (list sdl
5978 sdl-mixer
5979 sdl-image
5980 sdl-ttf)))
5981 ("fribidi" ,fribidi)
5982 ("libx11" ,libx11)
5983 ("lua" ,lua-5.1)))
5984 (native-inputs
5985 `(("pkg-config" ,pkg-config)
5986 ("fillets-ng-data"
5987 ,(origin
5988 (method url-fetch)
5989 (uri (string-append "mirror://sourceforge/fillets/"
5990 "Fish%20Fillets%20-%20Next%20Generation/"
5991 version "/fillets-ng-data-" version ".tar.gz"))
5992 (sha256
5993 (base32
5994 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
5995 (home-page "http://fillets.sourceforge.net/")
5996 (synopsis "Puzzle game")
5997 (description "Fish Fillets NG is strictly a puzzle game. The goal in
5998 every of the seventy levels is always the same: find a safe way out. The fish
5999 utter witty remarks about their surroundings, the various inhabitants of their
6000 underwater realm quarrel among themselves or comment on the efforts of your
6001 fish. The whole game is accompanied by quiet, comforting music.")
6002 (license license:gpl2+)))
6003
6004 (define-public crawl
6005 (package
6006 (name "crawl")
6007 (version "0.25.0")
6008 (source
6009 (origin
6010 (method url-fetch)
6011 (uri (list
6012 ;; Older releases get moved into a versioned directory
6013 (string-append "http://crawl.develz.org/release/"
6014 (version-major+minor version) "/stone_soup-"
6015 version "-nodeps.tar.xz")
6016 ;; Only the latest release is in this directory
6017 (string-append "http://crawl.develz.org/release/stone_soup-"
6018 version "-nodeps.tar.xz")))
6019 (sha256
6020 (base32 "0rn1wjxdqw33caiwisfypm1j8cid3c9pz01ahicl17144zs29z3d"))
6021 (patches (search-patches "crawl-upgrade-saves.patch"))
6022 ;; The 0.25.0 -nodeps.tar.xz was built from an OSX machine; normally
6023 ;; apparently it's built from a Debian machine before the Debian
6024 ;; packages are made. These ._* files are binary and have the string
6025 ;; "Mac OS X" in them... removing these seems to result in compilation
6026 ;; again.
6027 (modules '((guix build utils)))
6028 (snippet
6029 '(begin
6030 (for-each delete-file (find-files "." "^\\._"))
6031 #t))))
6032 (build-system gnu-build-system)
6033 (inputs
6034 `(("lua51" ,lua-5.1)
6035 ("ncurses" ,ncurses)
6036 ("sqlite" ,sqlite)
6037 ("zlib" ,zlib)))
6038 (native-inputs
6039 `(("bison" ,bison)
6040 ("flex" ,flex)
6041 ("perl" ,perl)
6042 ("python" ,python-wrapper)
6043 ("python-pyyaml" ,python-pyyaml)
6044 ("pkg-config" ,pkg-config)))
6045 (arguments
6046 `(#:make-flags
6047 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6048 (out (assoc-ref %outputs "out")))
6049 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6050 (string-append "prefix=" out)
6051 "SAVEDIR=~/.crawl"
6052 ;; Don't compile with SSE on systems which don't have it.
6053 ,@(match (%current-system)
6054 ((or "i686-linux" "x86_64-linux")
6055 '())
6056 (_ '("NOSSE=TRUE")))
6057 ;; don't build any bundled dependencies
6058 "BUILD_LUA="
6059 "BUILD_SQLITE="
6060 "BUILD_ZLIB="
6061 "-Csource"))
6062 #:phases
6063 (modify-phases %standard-phases
6064 (add-after 'unpack 'find-SDL-image
6065 (lambda _
6066 (substitute* "source/windowmanager-sdl.cc"
6067 (("SDL_image.h") "SDL2/SDL_image.h"))
6068 #t))
6069 (delete 'configure)
6070 (replace 'check
6071 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6072 (setenv "HOME" (getcwd))
6073 ;; Fake a terminal for the test cases.
6074 (setenv "TERM" "xterm-256color")
6075 ;; Run the tests that don't require a debug build.
6076 (apply invoke "make" "nondebugtest"
6077 (format #f "-j~d" (parallel-job-count))
6078 ;; Force command line build for test cases.
6079 (append make-flags '("GAME=crawl" "TILES="))))))))
6080 (synopsis "Roguelike dungeon crawler game")
6081 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6082 for short) is a roguelike adventure through dungeons filled with dangerous
6083 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6084 (home-page "https://crawl.develz.org")
6085 (license (list license:gpl2+
6086 license:bsd-2
6087 license:bsd-3
6088 license:cc0
6089 license:expat
6090 license:zlib
6091 license:asl2.0))))
6092
6093 ;; The linter here claims that patch file names should start with the package
6094 ;; name. But, in this case, the patches are inherited from crawl with the
6095 ;; "crawl-" prefix instead of "crawl-tiles-".
6096 (define-public crawl-tiles
6097 (package
6098 (inherit crawl)
6099 (name "crawl-tiles")
6100 (arguments
6101 (substitute-keyword-arguments
6102 (package-arguments crawl)
6103 ((#:make-flags flags)
6104 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6105 (cons*
6106 (string-append "PROPORTIONAL_FONT=" dejavu
6107 "/share/fonts/truetype/DejaVuSans.ttf")
6108 (string-append "MONOSPACED_FONT=" dejavu
6109 "/share/fonts/truetype/DejaVuSansMono.ttf")
6110 "TILES=y"
6111 ;; Rename the executable to allow parallel installation with crawl.
6112 "GAME=crawl-tiles"
6113 ,flags)))))
6114 (inputs
6115 `(,@(package-inputs crawl)
6116 ("font-dejavu" ,font-dejavu)
6117 ("freetype6" ,freetype)
6118 ("glu" ,glu)
6119 ("libpng" ,libpng)
6120 ("sdl2" ,sdl2)
6121 ("sdl2-image" ,sdl2-image)
6122 ("sdl2-mixer" ,sdl2-mixer)))
6123 (native-inputs
6124 `(,@(package-native-inputs crawl)
6125 ("pngcrush" ,pngcrush)
6126 ("which" ,which)))
6127 (synopsis "Graphical roguelike dungeon crawler game")))
6128
6129 (define-public lugaru
6130 (package
6131 (name "lugaru")
6132 (version "1.2")
6133 (source (origin
6134 (method url-fetch)
6135 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6136 "lugaru-" version ".tar.xz"))
6137 (sha256
6138 (base32
6139 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6140 (build-system cmake-build-system)
6141 (arguments
6142 `(#:configure-flags
6143 (list "-DSYSTEM_INSTALL=ON")
6144 ;; no test target
6145 #:tests? #f))
6146 (native-inputs
6147 `(("pkg-config" ,pkg-config)))
6148 (inputs
6149 `(("sdl2" ,sdl2)
6150 ("glu" ,glu)
6151 ("libjpeg" ,libjpeg-turbo)
6152 ("libpng" ,libpng)
6153 ("openal" ,openal)
6154 ("vorbis" ,libvorbis)
6155 ("zlib" ,zlib)))
6156 (home-page "https://osslugaru.gitlab.io")
6157 (synopsis "Cross-platform third-person action game")
6158 (description "Lugaru is a third-person action game. The main character,
6159 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6160 In his quest to find those responsible for slaughtering his village, he uncovers
6161 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6162 and the starving wolves from a nearby den. Turner takes it upon himself to
6163 fight against their plot and save his fellow rabbits from slavery.")
6164 (license (list license:gpl2+ ; code
6165 ;; assets:
6166 license:cc-by-sa3.0
6167 license:cc-by-sa4.0))))
6168
6169 (define-public 0ad-data
6170 (package
6171 (name "0ad-data")
6172 (version "0.0.23b-alpha")
6173 (source
6174 (origin
6175 (method url-fetch)
6176 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6177 version "-unix-data.tar.xz"))
6178 (file-name (string-append name "-" version ".tar.xz"))
6179 (sha256
6180 (base32
6181 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6182 (modules '((guix build utils)))
6183 (snippet
6184 #~(begin
6185 (for-each (lambda (name)
6186 (let* ((dir (string-append "binaries/data/mods/" name))
6187 (file (string-append dir "/" name ".zip"))
6188 (unzip #$(file-append unzip "/bin/unzip")))
6189 (invoke unzip "-d" dir file)
6190 (delete-file file)))
6191 '("mod" "public"))
6192 #t))))
6193 (build-system trivial-build-system)
6194 (native-inputs `(("tar" ,tar)
6195 ("xz" ,xz)))
6196 (arguments
6197 `(#:modules ((guix build utils))
6198 #:builder
6199 (begin
6200 (use-modules (guix build utils))
6201 (let ((out (assoc-ref %outputs "out"))
6202 (source (assoc-ref %build-inputs "source"))
6203 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6204 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6205 (setenv "PATH" xz-path)
6206 (mkdir out)
6207 (invoke tar "xvf" source "-C" out "--strip=3")))))
6208 (synopsis "Data files for 0ad")
6209 (description "0ad-data provides the data files required by the game 0ad.")
6210 (home-page "https://play0ad.com")
6211 (license (list (license:fsdg-compatible
6212 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6213 "Similar to the license of the Bitstream Vera fonts.")
6214 (license:fsdg-compatible
6215 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6216 license:cc-by-sa3.0
6217 license:expat
6218 license:gfl1.0
6219 license:gpl2+
6220 license:gpl3+))))
6221
6222 (define-public 0ad
6223 (package
6224 (name "0ad")
6225 (version "0.0.23b-alpha")
6226 (source
6227 (origin
6228 (method url-fetch)
6229 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6230 version "-unix-build.tar.xz"))
6231 (file-name (string-append name "-" version ".tar.xz"))
6232 (sha256
6233 (base32
6234 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6235 ;; A snippet here would cause a build failure because of timestamps
6236 ;; reset. See https://bugs.gnu.org/26734.
6237 (inputs
6238 `(("0ad-data" ,0ad-data)
6239 ("curl" ,curl)
6240 ("enet" ,enet)
6241 ("gloox" ,gloox)
6242 ("icu4c" ,icu4c)
6243 ("libpng" ,libpng)
6244 ("libsodium" ,libsodium)
6245 ("libvorbis" ,libvorbis)
6246 ("libxcursor" ,libxcursor)
6247 ("libxml2" ,libxml2)
6248 ("miniupnpc" ,miniupnpc)
6249 ("mozjs-38" ,mozjs-38)
6250 ("openal" ,openal)
6251 ("sdl2" ,sdl2)
6252 ("wxwidgets" ,wxwidgets)
6253 ("zlib" ,zlib)))
6254 (native-inputs
6255 `(("boost" ,boost)
6256 ("cmake" ,cmake-minimal)
6257 ("mesa" ,mesa)
6258 ("pkg-config" ,pkg-config)
6259 ("python-2" ,python-2)))
6260 (build-system gnu-build-system)
6261 (arguments
6262 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6263 #:phases
6264 (modify-phases %standard-phases
6265 (add-after 'unpack 'delete-bundles
6266 (lambda _
6267 (delete-file-recursively "libraries/source/spidermonkey")
6268 #t))
6269 (add-after 'unpack 'fix-x11-includes
6270 (lambda _
6271 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6272 (("<Xlib.h>") "<X11/Xlib.h>"))
6273 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6274 (("<Xatom.h>") "<X11/Xatom.h>"))
6275 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6276 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6277 #t))
6278 (replace 'configure
6279 (lambda* (#:key inputs outputs #:allow-other-keys)
6280 (let* ((jobs (number->string (parallel-job-count)))
6281 (out (assoc-ref outputs "out"))
6282 (lib (string-append out "/lib"))
6283 (data (string-append out "/share/0ad")))
6284 (setenv "JOBS" (string-append "-j" jobs))
6285 (setenv "CC" "gcc")
6286 (with-directory-excursion "build/workspaces"
6287 (invoke "./update-workspaces.sh"
6288 (string-append "--libdir=" lib)
6289 (string-append "--datadir=" data)
6290 ;; TODO: "--with-system-nvtt"
6291 "--with-system-mozjs38")))))
6292 (delete 'check)
6293 (replace 'install
6294 (lambda* (#:key inputs outputs #:allow-other-keys)
6295 (chdir "binaries")
6296 (let* ((out (assoc-ref outputs "out"))
6297 (bin (string-append out "/bin"))
6298 (lib (string-append out "/lib"))
6299 (data (string-append out "/share/0ad"))
6300 (applications (string-append out "/share/applications"))
6301 (pixmaps (string-append out "/share/pixmaps"))
6302 (0ad-data (assoc-ref inputs "0ad-data")))
6303 ;; data
6304 (copy-recursively "data" data)
6305 (for-each (lambda (file)
6306 (symlink (string-append 0ad-data "/" file)
6307 (string-append data "/" file)))
6308 '("config" "mods/mod" "mods/public" "tools"))
6309 ;; libraries
6310 (for-each (lambda (file)
6311 (install-file file lib))
6312 (find-files "system" "\\.so$"))
6313 ;; binaries
6314 (install-file "system/pyrogenesis" bin)
6315 (with-directory-excursion bin
6316 (symlink "pyrogenesis" "0ad"))
6317 ;; resources
6318 (with-directory-excursion "../build/resources"
6319 (install-file "0ad.desktop" applications)
6320 (install-file "0ad.png" pixmaps))
6321 #t)))
6322 (add-after 'install 'check
6323 (lambda _
6324 (with-directory-excursion "system"
6325 (invoke "./test")))))))
6326 (home-page "https://play0ad.com")
6327 (synopsis "3D real-time strategy game of ancient warfare")
6328 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6329 warfare. It's a historically-based war/economy game that allows players to
6330 relive or rewrite the history of twelve ancient civilizations, each depicted
6331 at their peak of economic growth and military prowess.
6332
6333 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6334 (license (list license:bsd-2
6335 license:bsd-3
6336 license:expat
6337 license:gpl2+
6338 license:ibmpl1.0
6339 license:isc
6340 license:lgpl2.1
6341 license:lgpl3
6342 license:mpl2.0
6343 license:zlib))))
6344
6345 ;; There have been no official releases.
6346 (define-public open-adventure
6347 (let* ((commit "d43854f0f6bb8e9eea7fbce80348150e7e7fc34d")
6348 (revision "2"))
6349 (package
6350 (name "open-adventure")
6351 (version (string-append "2.5-" revision "." (string-take commit 7)))
6352 (source (origin
6353 (method git-fetch)
6354 (uri (git-reference
6355 (url "https://gitlab.com/esr/open-adventure")
6356 (commit commit)))
6357 (file-name (string-append name "-" version "-checkout"))
6358 (sha256
6359 (base32
6360 "08bwrvf4axb1rsfd6ia1fddsky9pc1p350vjskhaakg2czc6dsk0"))))
6361 (build-system gnu-build-system)
6362 (arguments
6363 `(#:make-flags (list "CC=gcc")
6364 #:parallel-build? #f ; not supported
6365 #:phases
6366 (modify-phases %standard-phases
6367 (replace 'configure
6368 (lambda* (#:key inputs outputs #:allow-other-keys)
6369 ;; Linenoise is meant to be included, so we have to
6370 ;; copy it into the working directory.
6371 (let* ((linenoise (assoc-ref inputs "linenoise"))
6372 (noisepath (string-append linenoise "/include/linenoise"))
6373 (out (assoc-ref outputs "out")))
6374 (copy-recursively noisepath "linenoise"))
6375 #t))
6376 (add-before 'build 'use-echo
6377 (lambda _
6378 (substitute* "tests/Makefile"
6379 (("/bin/echo") (which "echo")))
6380 #t))
6381 (add-after 'build 'build-manpage
6382 (lambda _
6383 ;; This target is missing a dependency
6384 (substitute* "Makefile"
6385 ((".adoc.6:" line)
6386 (string-append line " advent.adoc")))
6387 (invoke "make" ".adoc.6")))
6388 ;; There is no install target
6389 (replace 'install
6390 (lambda* (#:key outputs #:allow-other-keys)
6391 (let* ((out (assoc-ref outputs "out"))
6392 (bin (string-append out "/bin"))
6393 (man (string-append out "/share/man/man6")))
6394 (install-file "advent" bin)
6395 (install-file "advent.6" man))
6396 #t)))))
6397 (native-inputs
6398 `(("asciidoc" ,asciidoc)
6399 ("linenoise" ,linenoise)
6400 ("python" ,python)
6401 ("python-pyyaml" ,python-pyyaml)))
6402 (home-page "https://gitlab.com/esr/open-adventure")
6403 (synopsis "Colossal Cave Adventure")
6404 (description "The original Colossal Cave Adventure from 1976 was the
6405 origin of all text adventures, dungeon-crawl (computer) games, and
6406 computer-hosted roleplaying games. This is the last version released by
6407 Crowther & Woods, its original authors, in 1995. It has been known as
6408 \"adventure 2.5\" and \"430-point adventure\".")
6409 (license license:bsd-2))))
6410
6411 (define-public tome4
6412 (package
6413 (name "tome4")
6414 (version "1.6.7")
6415 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6416 (source
6417 (origin
6418 (method url-fetch)
6419 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6420 version ".tar.bz2"))
6421 (sha256
6422 (base32 "0283hvms5hr29zr0grd6gq059k0hg8hcz3fsmwjmysiih8790i68"))
6423 (modules '((guix build utils)))
6424 (snippet
6425 '(begin
6426 (substitute* '("src/music.h" "src/tSDL.h")
6427 (("#elif defined(__FreeBSD__)" line)
6428 (string-append
6429 line " || defined(__GNUC__)")))
6430 (substitute* '("src/tgl.h")
6431 (("#include <GL/glext.h>") ""))
6432 #t))))
6433 (build-system gnu-build-system)
6434 (native-inputs
6435 `(("unzip" ,unzip)))
6436 (inputs
6437 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6438 ("glu" ,glu)
6439 ("premake4" ,premake4)
6440 ("openal" ,openal)
6441 ("vorbis" ,libvorbis)
6442 ("luajit" ,luajit)))
6443 (arguments
6444 `(#:make-flags '("CC=gcc" "config=release")
6445 ;; XXX: Building in parallel occasionally causes this build failure:
6446 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6447 ;; No such file or directory
6448 #:parallel-build? #f
6449 #:phases (modify-phases %standard-phases
6450 (delete 'bootstrap)
6451 (replace 'configure
6452 (lambda _
6453 (invoke "premake4" "gmake")
6454 #t))
6455 (add-after 'set-paths 'set-sdl-paths
6456 (lambda* (#:key inputs #:allow-other-keys)
6457 (setenv "CPATH"
6458 (string-append (assoc-ref inputs "sdl-union")
6459 "/include/SDL2:"
6460 (or (getenv "CPATH") "")))
6461 #t))
6462 (delete 'check)
6463 ;; premake doesn't provide install target
6464 (replace 'install
6465 (lambda* (#:key inputs outputs #:allow-other-keys)
6466 (let* ((out (assoc-ref outputs "out"))
6467 (usr (string-append out "/usr"))
6468 (bin (string-append out "/bin"))
6469 (licenses (string-append out "/share/licenses"))
6470 (documents (string-append out "/share/doc"))
6471 (pixmaps (string-append out "/share/pixmaps"))
6472 (icon "te4-icon.png")
6473 (data (string-append out "/share/" ,name))
6474 (applications (string-append
6475 out "/share/applications"))
6476 (unzip (string-append
6477 (assoc-ref inputs "unzip") "/bin/unzip"))
6478 (wrapper (string-append bin "/" ,name)))
6479 ;; icon
6480 (mkdir-p pixmaps)
6481 (invoke unzip "-j"
6482 (string-append
6483 "game/engines/te4-" ,version ".teae")
6484 (string-append
6485 "data/gfx/" icon) "-d" pixmaps)
6486 ;; game executable
6487 (install-file "t-engine" data)
6488 (mkdir-p bin)
6489 (with-output-to-file wrapper
6490 (lambda ()
6491 (display
6492 (string-append
6493 "#!/bin/sh\n"
6494 ;; No bootstrap code found,
6495 ;; defaulting to working directory
6496 ;; for engine code!
6497 "cd " data "\n"
6498 "exec -a tome4 ./t-engine \"$@\"\n"))))
6499 (chmod wrapper #o555)
6500 ;; licenses
6501 (for-each (lambda (file)
6502 (install-file file licenses))
6503 '("COPYING" "COPYING-MEDIA"))
6504 ;; documents
6505 (for-each (lambda (file)
6506 (install-file file documents))
6507 '("CONTRIBUTING" "CREDITS"))
6508 ;; data
6509 (copy-recursively "bootstrap" (string-append
6510 data "/bootstrap"))
6511 (copy-recursively "game" (string-append data "/game"))
6512 ;; launcher
6513 (mkdir-p applications)
6514 (make-desktop-entry-file
6515 (string-append applications "/" ,name ".desktop")
6516 #:name "ToME4"
6517 #:comment ,synopsis
6518 #:exec ,name
6519 #:icon icon
6520 #:categories '("Game" "RolePlaying")))
6521 #t)))))
6522 (home-page "https://te4.org")
6523 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6524 combat and advanced character building. Play as one of many unique races and
6525 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6526 challenging battles, and developing characters with your own tailored mix of
6527 abilities and powers. With a modern graphical and customisable interface,
6528 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6529 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6530 (license license:gpl3+)))
6531
6532 (define-public quakespasm
6533 (package
6534 (name "quakespasm")
6535 (version "0.93.2")
6536 (source
6537 (origin
6538 (method url-fetch)
6539 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6540 version ".tgz"))
6541 (sha256
6542 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6543 (arguments
6544 `(#:tests? #f
6545 #:make-flags '("CC=gcc"
6546 "MP3LIB=mpg123"
6547 "USE_CODEC_FLAC=1"
6548 "USE_CODEC_MIKMOD=1"
6549 "USE_SDL2=1"
6550 "-CQuake")
6551 #:phases (modify-phases %standard-phases
6552 (delete 'configure)
6553 (add-after 'unpack 'fix-makefile-paths
6554 (lambda* (#:key outputs #:allow-other-keys)
6555 (let ((out (assoc-ref outputs "out")))
6556 (mkdir-p (string-append out "/bin"))
6557 (substitute* "Quake/Makefile"
6558 (("/usr/local/games")
6559 (string-append out "/bin")))
6560 #t))))))
6561 (build-system gnu-build-system)
6562 (inputs `(("libmikmod" ,libmikmod)
6563 ("libvorbis" ,libvorbis)
6564 ("flac" ,flac)
6565 ("mesa" ,mesa)
6566 ("mpg123" ,mpg123)
6567 ("sdl2" ,sdl2)))
6568 (synopsis "First person shooter engine for Quake 1")
6569 (description "Quakespasm is a modern engine for id software's Quake 1.
6570 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6571 some graphical niceities, and numerous bug-fixes and other improvements.")
6572 (home-page "http://quakespasm.sourceforge.net/")
6573 (license license:gpl2+)))
6574
6575 (define-public vkquake
6576 (package
6577 (inherit quakespasm)
6578 (name "vkquake")
6579 (version "1.01.0")
6580 (source
6581 (origin
6582 (method git-fetch)
6583 (uri (git-reference
6584 (url "https://github.com/Novum/vkQuake")
6585 (commit version)))
6586 (file-name (git-file-name name version))
6587 (sha256
6588 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6589 (arguments
6590 `(#:make-flags
6591 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6592 "vulkan-loader") "/lib")))
6593 (list "CC=gcc"
6594 "MP3LIB=mpg123"
6595 "USE_CODEC_FLAC=1"
6596 "USE_CODEC_MIKMOD=1"
6597 "USE_SDL2=1"
6598 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
6599 "-CQuake"))
6600 #:phases (modify-phases %standard-phases
6601 (add-after 'unpack 'patch-for-new-vulkan
6602 (lambda _
6603 ;; Mimic upstream commit a869a22d9b51c68e for
6604 ;; compatibility with newer vulkan-headers.
6605 (substitute* "Quake/gl_rmisc.c"
6606 (("VK_DYNAMIC_STATE_RANGE_SIZE")
6607 "3"))
6608 #t))
6609 (delete 'configure)
6610 (add-after 'unpack 'fix-makefile-paths
6611 (lambda* (#:key outputs #:allow-other-keys)
6612 (let ((vulkan (assoc-ref %build-inputs
6613 "vulkan-loader"))
6614 (out (assoc-ref outputs "out")))
6615 (mkdir-p (string-append out "/bin"))
6616 (substitute* "Quake/Makefile" ((" /usr")
6617 (string-append " " out)))
6618 (substitute* "Quake/Makefile" (("/games")
6619 (string-append "/bin")))
6620 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
6621 #t))))
6622 ,@(strip-keyword-arguments '(#:make-flags #:phases)
6623 (package-arguments quakespasm))))
6624 (inputs `(("vulkan-headers" ,vulkan-headers)
6625 ("vulkan-loader" ,vulkan-loader)
6626 ,@(package-inputs quakespasm)))
6627 (description "vkquake is a modern engine for id software's Quake 1.
6628 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6629 some graphical niceities, and numerous bug-fixes and other improvements.")
6630 (home-page "https://github.com/Novum/vkQuake")))
6631
6632 (define-public yamagi-quake2
6633 (package
6634 (name "yamagi-quake2")
6635 (version "7.10")
6636 (source
6637 (origin
6638 (method url-fetch)
6639 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
6640 version ".tar.xz"))
6641 (sha256
6642 (base32
6643 "0psinbg25mysd58k99s1n34w31w5hj1vppb39gdjb0zqi6sl6cps"))))
6644 (build-system gnu-build-system)
6645 (arguments
6646 `(#:tests? #f
6647 #:make-flags
6648 (list "CC=gcc"
6649 ;; link openAL instead of using dlopen at runtime
6650 "DLOPEN_OPENAL=\"no\""
6651 ;; an optional directory where it will look for quake2 data files
6652 ;; in addition to the current working directory
6653 "WITH_SYSTEMWIDE=yes"
6654 "WITH_SYSTEMDIR=\"/opt/quake2\"")
6655 #:phases
6656 (modify-phases %standard-phases
6657 (delete 'configure)
6658 (replace 'install
6659 (lambda* (#:key outputs #:allow-other-keys)
6660 (let ((out (assoc-ref outputs "out")))
6661 (mkdir-p (string-append out "/lib"))
6662 (mkdir-p (string-append out "/bin"))
6663 ;; The yamagi-quake2 binary must be in the same directory
6664 ;; as it's engine libraries, but symlinking it to /bin is okay
6665 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
6666 (copy-recursively "release"
6667 (string-append out "/lib/yamagi-quake2"))
6668 (symlink (string-append out "/lib/yamagi-quake2/quake2")
6669 (string-append out "/bin/yamagi-quake2"))
6670 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
6671 (string-append out "/bin/yamagi-q2ded"))))))))
6672 (inputs `(("sdl2" ,sdl2)
6673 ("mesa" ,mesa)
6674 ("libvorbis" ,libvorbis)
6675 ("zlib" ,zlib)
6676 ("openal" ,openal)))
6677 (native-inputs `(("pkg-config" ,pkg-config)))
6678 (synopsis "First person shooter engine based on quake2")
6679 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
6680 The main focus is an unchanged single player experience like back in 1997,
6681 thus the gameplay and the graphics are unaltered. However the user may use one
6682 of the unofficial retexturing packs. In comparison with the official client,
6683 over 1000 bugs were fixed and an extensive code audit done,
6684 making Yamagi Quake II one of the most solid Quake II implementations available.")
6685 (home-page "https://www.yamagi.org/quake2/")
6686 (license (list license:gpl2+ ; game and server
6687 (license:non-copyleft ; info-zip
6688 "file://LICENSE"
6689 "See Info-Zip section.")
6690 license:public-domain)))) ; stb
6691
6692 (define-public nudoku
6693 (package
6694 (name "nudoku")
6695 (version "1.0.0")
6696 (source (origin
6697 (method url-fetch)
6698 (uri (string-append "https://github.com/jubalh/nudoku/"
6699 "releases/download/" version
6700 "/nudoku-" version ".tar.xz"))
6701 (sha256
6702 (base32
6703 "0nr2j2z07nxk70s8xnmmpzccxicf7kn5mbwby2kg6aq8paarjm8k"))))
6704 (build-system gnu-build-system)
6705 (inputs `(("ncurses" ,ncurses)))
6706 (home-page "https://jubalh.github.io/nudoku/")
6707 (synopsis "Sudoku for your terminal")
6708 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
6709 (license license:gpl3+)))
6710
6711 (define-public the-butterfly-effect
6712 (package
6713 (name "the-butterfly-effect")
6714 (version "0.9.3.1")
6715 (source
6716 (origin
6717 (method git-fetch)
6718 (uri (git-reference
6719 (url "https://github.com/the-butterfly-effect/tbe")
6720 (commit (string-append "v" version))))
6721 (file-name (git-file-name name version))
6722 (sha256
6723 (base32
6724 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
6725 (build-system gnu-build-system)
6726 (arguments
6727 `(#:phases
6728 (modify-phases %standard-phases
6729 (delete 'configure)
6730 ;; There is no "install" phase. By default, tbe is installed
6731 ;; in the build directory. Provide our own installation.
6732 (replace 'install
6733 (lambda* (#:key outputs #:allow-other-keys)
6734 (let* ((out (assoc-ref outputs "out"))
6735 (bin (string-append out "/bin"))
6736 (share (string-append out "/share")))
6737 (install-file "usr/games/tbe" bin)
6738 (mkdir-p share)
6739 (copy-recursively "usr/share" share)
6740 #t))))
6741 ;; Test suite requires a running Xorg server. Even when
6742 ;; provided, it fails with "D-Bus library appears to be
6743 ;; incorrectly set up; failed to read machine uuid: Failed to
6744 ;; open "/etc/machine-id": No such file or directory" along
6745 ;; with multiple "QPainter:: ... Painter not active" warnings.
6746 #:tests? #f))
6747 (inputs
6748 `(("qtbase" ,qtbase)
6749 ("qtsvg" ,qtsvg)))
6750 (native-inputs
6751 `(("cmake" ,cmake-minimal)
6752 ("gettext-minimal" ,gettext-minimal)
6753 ("qttools" ,qttools)))
6754 (synopsis "Realistic physics puzzle game")
6755 (description "The Butterfly Effect (tbe) is a game that uses
6756 realistic physics simulations to combine lots of simple mechanical
6757 elements to achieve a simple goal in the most complex way possible.")
6758 (home-page "http://the-butterfly-effect.org/")
6759 ;; Main license is GPL2-only. However, artwork is distributed
6760 ;; under various licenses, listed here.
6761 (license (list license:gpl2 license:public-domain license:expat
6762 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
6763
6764 (define-public pioneer
6765 (package
6766 (name "pioneer")
6767 (version "20200203")
6768 (source (origin
6769 (method git-fetch)
6770 (uri (git-reference
6771 (url "https://github.com/pioneerspacesim/pioneer")
6772 (commit version)))
6773 (file-name (git-file-name name version))
6774 (sha256
6775 (base32
6776 "1011xsi94jhw98mhm8kryq8ajig0qfbrdx5xdasi92bd4nk7lcp8"))))
6777 (build-system cmake-build-system)
6778 (native-inputs
6779 `(("pkg-config" ,pkg-config)))
6780 (inputs
6781 `(("assimp" ,assimp)
6782 ("curl" ,curl)
6783 ("freetype" ,freetype)
6784 ("glew" ,glew)
6785 ("glu" ,glu)
6786 ("libpng" ,libpng)
6787 ("libsigc++" ,libsigc++)
6788 ("libvorbis" ,libvorbis)
6789 ("lua" ,lua-5.2) ;not compatible with 5.3
6790 ("mesa" ,mesa)
6791 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
6792 (arguments
6793 `(#:tests? #f ;tests are broken
6794 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
6795 (string-append "-DPIONEER_DATA_DIR="
6796 %output "/share/games/pioneer"))))
6797 (home-page "https://pioneerspacesim.net")
6798 (synopsis "Game of lonely space adventure")
6799 (description
6800 "Pioneer is a space adventure game set in our galaxy at the turn of the
6801 31st century. The game is open-ended, and you are free to eke out whatever
6802 kind of space-faring existence you can think of. Look for fame or fortune by
6803 exploring the millions of star systems. Turn to a life of crime as a pirate,
6804 smuggler or bounty hunter. Forge and break alliances with the various
6805 factions fighting for power, freedom or self-determination. The universe is
6806 whatever you make of it.")
6807 (license license:gpl3)))
6808
6809 (define-public badass
6810 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
6811 (revision "0"))
6812 (package
6813 (name "badass")
6814 (version (git-version "0.0" revision commit))
6815 (source (origin
6816 (method git-fetch)
6817 (uri (git-reference
6818 (url "https://github.com/umayr/badass")
6819 (commit commit)))
6820 (file-name (git-file-name name version))
6821 (sha256
6822 (base32
6823 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
6824 (build-system go-build-system)
6825 (arguments
6826 '(#:import-path "github.com/umayr/badass"))
6827 (synopsis "Hacking contribution graphs in git")
6828 (description
6829 "Badass generates false commits for a range of dates, essentially
6830 hacking the gamification of contribution graphs on platforms such as
6831 Github or Gitlab.")
6832 (home-page "https://github.com/umayr/badass")
6833 (license license:expat))))
6834
6835 (define-public colobot
6836 (package
6837 (name "colobot")
6838 (version "0.1.12-alpha")
6839 (source
6840 (origin
6841 (method git-fetch)
6842 (uri (git-reference
6843 (url "https://github.com/colobot/colobot")
6844 (commit (string-append "colobot-gold-" version))
6845 (recursive? #t))) ;for "data/" subdir
6846 (file-name (git-file-name name version))
6847 (sha256
6848 (base32
6849 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
6850 (build-system cmake-build-system)
6851 (arguments
6852 `(#:tests? #f ;no test
6853 #:phases
6854 (modify-phases %standard-phases
6855 (add-after 'unpack 'make-git-checkout-writable
6856 (lambda _
6857 (for-each make-file-writable (find-files "."))
6858 #t))
6859 (add-after 'unpack 'fix-directories
6860 (lambda _
6861 (substitute* "CMakeLists.txt"
6862 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
6863 (string-append prefix "/bin"))
6864 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
6865 (string-append prefix "/colobot")))
6866 #t))
6867 (add-after 'fix-directories 'install-music
6868 ;; Retrieve and install music files.
6869 (lambda* (#:key inputs #:allow-other-keys)
6870 ;; Installation process tries to download music files using
6871 ;; "wget" if not already present. Since we are going another
6872 ;; route, skip "wget" command check.
6873 (substitute* "data/music/CMakeLists.txt"
6874 (("find_program\\(WGET wget\\)") ""))
6875 ;; Populate "music/" directory.
6876 (let ((data (assoc-ref inputs "colobot-music")))
6877 (invoke "tar" "-xvf" data "-Cdata/music"))
6878 #t)))))
6879 (native-inputs
6880 `(("colobot-music"
6881 ,(origin
6882 (method url-fetch)
6883 (uri (string-append "https://colobot.info/files/music/"
6884 "colobot-music_ogg_" version ".tar.gz"))
6885 (sha256
6886 (base32
6887 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
6888 ("gettext" ,gettext-minimal)
6889 ("librsvg" ,librsvg)
6890 ("po4a" ,po4a)
6891 ("python" ,python-wrapper)))
6892 (inputs
6893 `(("boost" ,boost)
6894 ("glew" ,glew)
6895 ("libogg" ,libogg)
6896 ("libpng" ,libpng)
6897 ("libsndfile" ,libsndfile)
6898 ("libvorbis" ,libvorbis)
6899 ("openal" ,openal)
6900 ("physfs" ,physfs)
6901 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
6902 (synopsis "Educational programming strategy game")
6903 (description "Colobot: Gold Edition is a real-time strategy game, where
6904 you can program your units (bots) in a language called CBOT, which is similar
6905 to C++ and Java. Your mission is to find a new planet to live and survive.
6906 You can save humanity and get programming skills!")
6907 (home-page "https://colobot.info")
6908 (license license:gpl3+)))
6909
6910 (define-public gzdoom
6911 (package
6912 (name "gzdoom")
6913 (version "4.3.2")
6914 (source
6915 (origin
6916 (method git-fetch)
6917 (uri (git-reference
6918 (url "https://github.com/coelckers/gzdoom")
6919 (commit (string-append "g" version))))
6920 (file-name (git-file-name name version))
6921 (sha256
6922 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
6923 (patches (search-patches "gzdoom-search-in-installed-share.patch"
6924 "gzdoom-find-system-libgme.patch"))
6925 (modules '((guix build utils)))
6926 (snippet
6927 '(begin
6928 ;; Remove some bundled libraries. XXX There are more, but removing
6929 ;; them would require, at least, patching the build system.
6930 (with-directory-excursion "libraries"
6931 (delete-file-recursively "bzip2")
6932 (delete-file-recursively "game-music-emu")
6933 (delete-file-recursively "jpeg")
6934 (delete-file-recursively "zlib"))
6935 #t))))
6936 (arguments
6937 '(#:tests? #f
6938 #:configure-flags
6939 (let ((out (assoc-ref %outputs "out")))
6940 (list
6941 (string-append
6942 "-DCMAKE_CXX_FLAGS:="
6943 "-DSHARE_DIR=\\\"" out "/share/\\\" "
6944 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
6945
6946 ;; The build requires some extra convincing not to use the bundled
6947 ;; libgme previously deleted in the soure snippet.
6948 "-DFORCE_INTERNAL_GME=OFF"
6949
6950 ;; Link libraries at build time instead of loading them at run time.
6951 "-DDYN_OPENAL=OFF"
6952 "-DDYN_FLUIDSYNTH=OFF"
6953 "-DDYN_GTK=OFF"
6954 "-DDYN_MPG123=OFF"
6955 "-DDYN_SNDFILE=OFF"))
6956 #:phases
6957 (modify-phases %standard-phases
6958 (add-before 'configure 'fix-referenced-paths
6959 (lambda* (#:key inputs outputs #:allow-other-keys)
6960 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
6961 (timidity++ (assoc-ref inputs "timidity++"))
6962 (out (assoc-ref outputs "out")))
6963
6964 (substitute*
6965 "src/CMakeLists.txt"
6966 (("COMMAND /bin/sh")
6967 (string-append "COMMAND " (which "sh"))))
6968
6969 (substitute*
6970 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
6971 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
6972 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
6973
6974 (substitute*
6975 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
6976 (("exename = \"timidity\"")
6977 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
6978 #t))))))
6979 (build-system cmake-build-system)
6980 (inputs `(("bzip2" ,bzip2)
6981 ("fluid-3" ,fluid-3)
6982 ("fluidsynth" ,fluidsynth)
6983 ("gtk+3" ,gtk+)
6984 ("libgme" ,libgme)
6985 ("libjpeg" ,libjpeg-turbo)
6986 ("libsndfile" ,libsndfile)
6987 ("mesa" ,mesa)
6988 ("mpg123" ,mpg123)
6989 ("openal" ,openal)
6990 ("sdl2" ,sdl2)
6991 ("timidity++" ,timidity++)
6992 ("zlib" ,zlib)))
6993 (native-inputs `(("pkg-config" ,pkg-config)
6994 ("unzip" ,unzip)))
6995 (synopsis "Modern Doom 2 source port")
6996 (description "GZdoom is a port of the Doom 2 game engine, with a modern
6997 renderer. It improves modding support with ZDoom's advanced mapping features
6998 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
6999 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7000 (home-page "https://zdoom.org/index")
7001 ;; The source uses x86 assembly
7002 (supported-systems '("x86_64-linux" "i686-linux"))
7003 (license (list license:gpl3+ ; gzdoom game
7004 license:lgpl3+ ; gzdoom renderer
7005 license:expat ; gdtoa
7006 (license:non-copyleft ; modified dumb
7007 "file://dumb/licence.txt"
7008 "Dumb license, explicitly GPL compatible.")))))
7009
7010 (define-public odamex
7011 (package
7012 (name "odamex")
7013 (version "0.8.1")
7014 (source
7015 (origin
7016 (method url-fetch)
7017 (uri (string-append
7018 "mirror://sourceforge/odamex/Odamex/" version "/"
7019 "odamex-src-" version ".tar.gz"))
7020 (sha256
7021 (base32 "1ywbqkfacc9fc5di3dn95y5ah2ys9i241j64q3f37a73x92llw1i"))))
7022 (build-system cmake-build-system)
7023 (arguments `(#:tests? #f)) ; no tests
7024 (inputs
7025 `(("sdl" ,sdl)
7026 ("sdl-mixer" ,sdl-mixer)
7027 ("zlib" ,zlib)
7028 ("libpng" ,libpng)
7029 ("alsa-lib" ,alsa-lib)))
7030 (home-page "https://odamex.net/")
7031 (synopsis "Multiplayer Doom port")
7032 (description "Odamex is a modification of the Doom engine that
7033 allows players to easily join servers dedicated to playing Doom
7034 online.")
7035 (license license:gpl2+)))
7036
7037 (define-public chocolate-doom
7038 (package
7039 (name "chocolate-doom")
7040 (version "3.0.1")
7041 (source (origin
7042 (method url-fetch)
7043 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7044 version
7045 "/chocolate-doom-"
7046 version
7047 ".tar.gz"))
7048 (sha256
7049 (base32
7050 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7051 (build-system gnu-build-system)
7052 (inputs `(("sdl2-net" ,sdl2-net)
7053 ("sdl2-mixer" , sdl2-mixer)
7054 ("sdl2" ,sdl2)))
7055 (native-inputs
7056 `(("pkg-config" ,pkg-config)))
7057 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7058 Doom")
7059 (description
7060 "Chocolate Doom takes a different approach to other source ports. Its
7061 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7062 a conservative, historically accurate Doom source port, which is compatible
7063 with the thousands of mods and levels that were made before the Doom source
7064 code was released. Rather than flashy new graphics, Chocolate Doom's main
7065 features are its accurate reproduction of the game as it was played in the
7066 1990s. The project is developed around a carefully-considered philosophy that
7067 intentionally restricts which features may be added (and rejects any that
7068 affect gameplay).")
7069 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7070 (license license:gpl2)))
7071
7072 (define-public crispy-doom
7073 (package
7074 (inherit chocolate-doom)
7075 (name "crispy-doom")
7076 (version "5.8.0")
7077 (source (origin
7078 (method git-fetch)
7079 (uri (git-reference
7080 (url "https://github.com/fabiangreffrath/crispy-doom")
7081 (commit (string-append "crispy-doom-" version))))
7082 (file-name (git-file-name name version))
7083 (sha256
7084 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7085 (native-inputs
7086 (append
7087 (package-native-inputs chocolate-doom)
7088 `(("automake" ,automake)
7089 ("autoreconf" ,autoconf))))
7090 (arguments
7091 `(#:phases
7092 (modify-phases %standard-phases
7093 (replace 'bootstrap
7094 ;; The bundled autogen.sh script unconditionally runs ./configure.
7095 (lambda _ (invoke "autoreconf" "-vif"))))))
7096 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7097 Chocolate Doom")
7098 (description
7099 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7100 display resolution, removes the static limits of the Doom engine and offers
7101 further optional visual, tactical and physical enhancements while remaining
7102 entirely config file, savegame, netplay and demo compatible with the
7103 original.")
7104 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7105
7106 (define shlomif-cmake-modules
7107 (origin
7108 (method url-fetch)
7109 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7110 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7111 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7112 (sha256
7113 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7114
7115 (define-public rinutils
7116 (package
7117 (name "rinutils")
7118 (version "0.2.0")
7119 (source (origin
7120 (method git-fetch)
7121 (uri (git-reference
7122 (url "https://github.com/shlomif/rinutils")
7123 (commit version)))
7124 (file-name (git-file-name name version))
7125 (sha256
7126 (base32
7127 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7128 (native-inputs
7129 `(("perl" ,perl)
7130 ;; The following is only needed for tests.
7131 ("perl-file-find-object" ,perl-file-find-object)
7132 ("perl-test-differences" ,perl-test-differences)
7133 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7134 ("perl-io-all" ,perl-io-all)
7135 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7136 ("cmake-rules" ,shlomif-cmake-modules)
7137 ("pkg-config" ,pkg-config)))
7138 (inputs
7139 `(("cmocka" ,cmocka)
7140 ("perl-env-path", perl-env-path)
7141 ("perl-inline" ,perl-inline)
7142 ("perl-inline-c" ,perl-inline-c)
7143 ("perl-string-shellquote" ,perl-string-shellquote)
7144 ("perl-test-trailingspace" ,perl-test-trailingspace)
7145 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7146 ("perl-text-glob" ,perl-text-glob)
7147 ("perl-number-compare" ,perl-number-compare)
7148 ("perl-moo" ,perl-moo)))
7149 (arguments
7150 `(#:phases
7151 (modify-phases %standard-phases
7152 (add-after 'unpack 'fix-build-env
7153 (lambda* (#:key inputs #:allow-other-keys)
7154 (use-modules (guix build utils))
7155 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7156 (copy-file cmake-rules
7157 (string-append "cmake/"
7158 (strip-store-file-name cmake-rules)))
7159 #t)))
7160 (replace 'check
7161 (lambda _
7162 (with-directory-excursion "../source"
7163 (setenv "FCS_TEST_BUILD" "1")
7164 (setenv "RINUTILS_TEST_BUILD" "1")
7165 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7166 ;; which requires tidy-all.
7167 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7168 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7169 (build-system cmake-build-system)
7170 (home-page "https://www.shlomifish.org/open-source/projects/")
7171 (synopsis "C11 / gnu11 utilities C library")
7172 (description "This package provides C11 / gnu11 utilities C library")
7173 (license license:expat)))
7174
7175 (define-public fortune-mod
7176 (package
7177 (name "fortune-mod")
7178 (version "2.28.0")
7179 (source
7180 (origin
7181 (method git-fetch)
7182 (uri (git-reference
7183 (url "https://github.com/shlomif/fortune-mod")
7184 (commit (string-append "fortune-mod-" version))))
7185 (file-name (git-file-name name version))
7186 (sha256
7187 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7188 (build-system cmake-build-system)
7189 (arguments
7190 `(#:test-target "check"
7191 #:phases
7192 (modify-phases %standard-phases
7193 (add-after 'unpack 'fix-build-env
7194 (lambda* (#:key inputs #:allow-other-keys)
7195 (use-modules (guix build utils))
7196 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7197 (copy-file cmake-rules
7198 (string-append "fortune-mod/cmake/"
7199 (strip-store-file-name cmake-rules)))
7200 (chdir "fortune-mod")
7201 ;; TODO: Valgrind tests fail for some reason.
7202 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7203 (delete-file "tests/t/valgrind.t")
7204 #t)))
7205 (add-after 'install 'fix-install-directory
7206 (lambda* (#:key outputs #:allow-other-keys)
7207 ;; Move binary from "games/" to "bin/" and remove the latter. This
7208 ;; is easier than patching CMakeLists.txt since the tests hard-code
7209 ;; the location as well.
7210 (let* ((out (assoc-ref outputs "out"))
7211 (bin (string-append out "/bin"))
7212 (games (string-append out "/games")))
7213 (rename-file (string-append games "/fortune")
7214 (string-append bin "/fortune"))
7215 (rmdir games)
7216 #t))))))
7217 (inputs `(("recode" ,recode)))
7218 (native-inputs
7219 `(("perl" ,perl)
7220 ;; The following is only needed for tests.
7221 ("perl-file-find-object" ,perl-file-find-object)
7222 ("perl-test-differences" ,perl-test-differences)
7223 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7224 ("perl-io-all" ,perl-io-all)
7225 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7226 ("cmake-rules" ,shlomif-cmake-modules)
7227 ("rinutils" ,rinutils)))
7228 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7229 (synopsis "The Fortune Cookie program from BSD games")
7230 (description "Fortune is a command-line utility which displays a random
7231 quotation from a collection of quotes.")
7232 (license license:bsd-4)))
7233
7234 (define xonotic-data
7235 (package
7236 (name "xonotic-data")
7237 (version "0.8.2")
7238 (source
7239 (origin
7240 (method url-fetch)
7241 (uri (string-append "http://dl.xonotic.org/xonotic-"
7242 version ".zip"))
7243 (file-name (string-append name "-" version ".zip"))
7244 (sha256
7245 (base32
7246 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7247 (build-system trivial-build-system)
7248 (native-inputs
7249 `(("unzip" ,unzip)))
7250 (arguments
7251 `(#:modules ((guix build utils))
7252 #:builder
7253 (begin
7254 (use-modules (guix build utils))
7255 (let* ((out (assoc-ref %outputs "out"))
7256 (xonotic (string-append out "/share/xonotic"))
7257 (source (assoc-ref %build-inputs "source"))
7258 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7259 (copy-file source (string-append ,name "-" ,version ".zip"))
7260 (invoke unzip (string-append ,name "-" ,version ".zip"))
7261 (mkdir-p out)
7262 (mkdir-p xonotic)
7263 (chdir "Xonotic")
7264 (copy-recursively "data"
7265 (string-append xonotic "/data"))
7266 (copy-recursively "server"
7267 (string-append xonotic "/server"))
7268 (install-file "key_0.d0pk" xonotic)))))
7269 (home-page "http://xonotic.org")
7270 (synopsis "Data files for Xonotic")
7271 (description
7272 "Xonotic-data provides the data files required by the game Xonotic.")
7273 (license (list license:gpl2+
7274 (license:x11-style "file://server/rcon.pl")))))
7275
7276 (define-public xonotic
7277 (package
7278 (name "xonotic")
7279 (version "0.8.2")
7280 (source
7281 (origin
7282 (method url-fetch)
7283 (uri (string-append "http://dl.xonotic.org/xonotic-"
7284 version "-source.zip"))
7285 (file-name (string-append name "-" version ".zip"))
7286 (sha256
7287 (base32
7288 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7289 (build-system gnu-build-system)
7290 (arguments
7291 `(#:configure-flags (list (string-append "--prefix="
7292 (assoc-ref %outputs "out"))
7293 "--disable-rijndael")
7294 #:phases
7295 (modify-phases %standard-phases
7296 (add-before 'configure 'make-darkplaces
7297 (lambda* (#:key outputs #:allow-other-keys)
7298 (let* ((out (assoc-ref outputs "out"))
7299 (sharedir (string-append out "/share/xonotic/")))
7300 (invoke "make" "-C" "source/darkplaces"
7301 (string-append "DP_FS_BASEDIR="
7302 sharedir)
7303 "DP_LINK_TO_LIBJPEG=1"
7304 "DP_SOUND_API=ALSA"
7305 "CC=gcc"
7306 "-f" "makefile"
7307 "cl-release")
7308 (invoke "make" "-C" "source/darkplaces"
7309 (string-append "DP_FS_BASEDIR="
7310 sharedir)
7311 "DP_LINK_TO_LIBJPEG=1"
7312 "DP_SOUND_API=ALSA"
7313 "CC=gcc"
7314 "-f" "makefile"
7315 "sdl-release")
7316 (invoke "make" "-C" "source/darkplaces"
7317 (string-append "DP_FS_BASEDIR="
7318 sharedir)
7319 "DP_LINK_TO_LIBJPEG=1"
7320 "DP_SOUND_API=ALSA"
7321 "CC=gcc"
7322 "-f" "makefile"
7323 "sv-release"))))
7324 (add-before 'configure 'bootstrap
7325 (lambda _
7326 (chdir "source/d0_blind_id")
7327 (invoke "sh" "autogen.sh")))
7328 (add-after 'build 'install-desktop-entry
7329 (lambda* (#:key outputs #:allow-other-keys)
7330 ;; Add .desktop files for the 2 variants and the symlink
7331 (let* ((output (assoc-ref outputs "out"))
7332 (apps (string-append output "/share/applications")))
7333 (mkdir-p apps)
7334 (with-output-to-file
7335 (string-append apps "/xonotic-glx.desktop")
7336 (lambda _
7337 (format #t
7338 "[Desktop Entry]~@
7339 Name=xonotic-glx~@
7340 Comment=Xonotic glx~@
7341 Exec=~a/bin/xonotic-glx~@
7342 TryExec=~@*~a/bin/xonotic-glx~@
7343 Icon=xonotic~@
7344 Categories=Game~@
7345 Type=Application~%"
7346 output)))
7347 (with-output-to-file
7348 (string-append apps "/xonotic-sdl.desktop")
7349 (lambda _
7350 (format #t
7351 "[Desktop Entry]~@
7352 Name=xonotic-sdl~@
7353 Comment=Xonotic sdl~@
7354 Exec=~a/bin/xonotic-sdl~@
7355 TryExec=~@*~a/bin/xonotic-sdl~@
7356 Icon=xonotic~@
7357 Categories=Game~@
7358 Type=Application~%"
7359 output)))
7360 (with-output-to-file
7361 (string-append apps "/xonotic.desktop")
7362 (lambda _
7363 (format #t
7364 "[Desktop Entry]~@
7365 Name=xonotic~@
7366 Comment=Xonotic~@
7367 Exec=~a/bin/xonotic-glx~@
7368 TryExec=~@*~a/bin/xonotic~@
7369 Icon=xonotic~@
7370 Categories=Game~@
7371 Type=Application~%"
7372 output)))
7373 #t)))
7374 (add-after 'install-desktop-entry 'install-icons
7375 (lambda* (#:key outputs #:allow-other-keys)
7376 (let ((out (assoc-ref outputs "out")))
7377 (with-directory-excursion "../../misc/logos/icons_png/"
7378 (for-each
7379 (lambda (file)
7380 (let* ((size (string-filter char-numeric? file))
7381 (icons (string-append out "/share/icons/hicolor/"
7382 size "x" size "/apps")))
7383 (mkdir-p icons)
7384 (copy-file file (string-append icons "/xonotic.png"))))
7385 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7386 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7387 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7388 (add-after 'install-icons 'install-binaries
7389 (lambda* (#:key outputs #:allow-other-keys)
7390 (let ((out (assoc-ref outputs "out")))
7391 (define (install src dst)
7392 (let ((dst (string-append out dst)))
7393 (mkdir-p (dirname dst))
7394 (copy-file src dst)))
7395 (mkdir-p (string-append out "/bin"))
7396 (install "../darkplaces/darkplaces-dedicated"
7397 "/bin/xonotic-dedicated")
7398 (install "../darkplaces/darkplaces-glx"
7399 "/bin/xonotic-glx")
7400 (install "../darkplaces/darkplaces-sdl"
7401 "/bin/xonotic-sdl")
7402 ;; Provide a default xonotic executable, defaulting to SDL.
7403 (symlink (string-append out "/bin/xonotic-sdl")
7404 (string-append out "/bin/xonotic"))
7405 #t)))
7406 (add-after 'install-binaries 'install-data
7407 (lambda* (#:key outputs inputs #:allow-other-keys)
7408 (let* ((out (assoc-ref outputs "out"))
7409 (data (assoc-ref inputs "xonotic-data")))
7410 (symlink (string-append data "/share/xonotic")
7411 (string-append out "/share/xonotic"))
7412 #t)))
7413 (add-after 'install-binaries 'wrap-binaries
7414 (lambda* (#:key outputs inputs #:allow-other-keys)
7415 ;; Curl and libvorbis need to be wrapped so that we get
7416 ;; sound and networking.
7417 (let* ((out (assoc-ref outputs "out"))
7418 (bin (string-append out "/bin/xonotic"))
7419 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7420 (bin-glx (string-append out "/bin/xonotic-glx"))
7421 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7422 (curl (assoc-ref inputs "curl"))
7423 (vorbis (assoc-ref inputs "libvorbis")))
7424 (wrap-program bin
7425 `("LD_LIBRARY_PATH" ":" prefix
7426 (,(string-append curl "/lib:" vorbis "/lib"))))
7427 (wrap-program bin-sdl
7428 `("LD_LIBRARY_PATH" ":" prefix
7429 (,(string-append curl "/lib:" vorbis "/lib"))))
7430 (wrap-program bin-glx
7431 `("LD_LIBRARY_PATH" ":" prefix
7432 (,(string-append curl "/lib:" vorbis "/lib"))))
7433 (wrap-program bin-dedicated
7434 `("LD_LIBRARY_PATH" ":" prefix
7435 (,(string-append curl "/lib:" vorbis "/lib"))))
7436 #t))))))
7437 (inputs
7438 `(("xonotic-data" ,xonotic-data)
7439 ("alsa-lib" ,alsa-lib)
7440 ("curl" ,curl)
7441 ("libjpeg" ,libjpeg-turbo)
7442 ("libmodplug" ,libmodplug)
7443 ("libvorbis" ,libvorbis)
7444 ("libogg" ,libogg)
7445 ("libxpm" ,libxpm)
7446 ("libxxf86dga" ,libxxf86dga)
7447 ("libxxf86vm" ,libxxf86vm)
7448 ("libx11" ,libx11)
7449 ("libxext" ,libxext)
7450 ("libxau" ,libxau)
7451 ("libxdmcp" ,libxdmcp)
7452 ("mesa" ,mesa)
7453 ("glu" ,glu)
7454 ("freetype" ,freetype)
7455 ("sdl2" ,sdl2)
7456 ("libpng" ,libpng)
7457 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7458 (native-inputs
7459 `(("unzip" ,unzip)
7460 ("autoconf" ,autoconf)
7461 ("automake" ,automake)
7462 ("pkg-config" ,pkg-config)
7463 ("libtool" ,libtool)
7464 ("gmp" ,gmp)))
7465 (home-page "https://xonotic.org")
7466 (synopsis "Fast-paced first-person shooter game")
7467 (description
7468 "Xonotic is a free, fast-paced first-person shooter.
7469 The project is geared towards providing addictive arena shooter
7470 gameplay which is all spawned and driven by the community itself.
7471 Xonotic is a direct successor of the Nexuiz project with years of
7472 development between them, and it aims to become the best possible
7473 open-source FPS of its kind.")
7474 (license (list license:gpl2+
7475 license:bsd-3 ; /source/d0_blind_id folder and others
7476 (license:x11-style "" "See file rcon.pl.")))))
7477
7478 (define-public frotz
7479 (package
7480 (name "frotz")
7481 (version "2.44")
7482 (source (origin
7483 (method url-fetch)
7484 (uri (list (string-append
7485 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7486 "frotz/frotz-" version ".tar.gz")
7487 (string-append
7488 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7489 "frotz/frotz-" version ".tar.gz")))
7490 (sha256
7491 (base32
7492 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7493 (build-system gnu-build-system)
7494 (arguments
7495 `(#:tests? #f ; there are no tests
7496 #:phases
7497 (modify-phases %standard-phases
7498 (delete 'configure)
7499 (add-before 'build 'curses
7500 (lambda _
7501 (substitute* "Makefile"
7502 (("lcurses") "lncurses"))
7503 #t))
7504 (replace 'install
7505 (lambda* (#:key outputs #:allow-other-keys)
7506 (let* ((out (assoc-ref outputs "out"))
7507 (bin (string-append out "/bin"))
7508 (man (string-append out "/share/man/man6")))
7509 (install-file "frotz" bin)
7510 (mkdir-p man)
7511 (install-file "doc/frotz.6" man)
7512 #t))))))
7513 (inputs `(("libmodplug" ,libmodplug)
7514 ("libsamplerate" ,libsamplerate)
7515 ("libsndfile" ,libsndfile)
7516 ("libvorbis" ,libvorbis)
7517 ("ncurses" ,ncurses)))
7518 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7519 (description "Frotz is an interpreter for Infocom games and other Z-machine
7520 games in the text adventure/interactive fiction genre. This version of Frotz
7521 complies with standard 1.0 of Graham Nelson's specification. It plays all
7522 Z-code games V1-V8, including V6, with sound support through libao, and uses
7523 ncurses for text display.")
7524 (home-page "http://frotz.sourceforge.net")
7525 (license license:gpl2+)))
7526
7527 (define-public frotz-dumb-terminal
7528 (package
7529 (name "frotz-dumb-terminal")
7530 (version "2.44")
7531 (source (origin
7532 (method url-fetch)
7533 (uri (list (string-append
7534 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7535 "frotz/frotz-" version ".tar.gz")
7536 (string-append
7537 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7538 "frotz/frotz-" version ".tar.gz")))
7539 (sha256
7540 (base32
7541 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7542 (build-system gnu-build-system)
7543 (arguments
7544 `(#:tests? #f ; there are no tests
7545 #:phases
7546 (modify-phases %standard-phases
7547 (delete 'configure)
7548 (replace 'build
7549 (lambda _
7550 (invoke "make" "dumb")))
7551 (replace 'install
7552 (lambda* (#:key outputs #:allow-other-keys)
7553 (let* ((out (assoc-ref outputs "out"))
7554 (bin (string-append out "/bin"))
7555 (man (string-append out "/share/man/man6")))
7556 (install-file "dfrotz" bin)
7557 (mkdir-p man)
7558 (install-file "doc/dfrotz.6" man)
7559 #t))))))
7560 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7561 (description "Frotz is an interpreter for Infocom games and
7562 other Z-machine games in the text adventure/interactive fiction genre.
7563 dfrotz is the dumb interface version. You get no screen control; everything
7564 is just printed to the terminal line by line. The terminal handles all the
7565 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7566 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7567 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7568 to play games on webpages. It can also be made into a chat bot.")
7569 (home-page "http://frotz.sourceforge.net")
7570 (license license:gpl2+)))
7571
7572 (define-public frotz-sdl
7573 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7574 (package
7575 (name "frotz-sdl")
7576 (version "2.45pre")
7577 (source (origin
7578 (method git-fetch)
7579 (uri (git-reference
7580 (url "https://gitlab.com/DavidGriffith/frotz")
7581 (commit commit)))
7582 (sha256
7583 (base32
7584 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7585 (file-name (git-file-name name version))))
7586 (build-system gnu-build-system)
7587 (arguments
7588 `(#:tests? #f ; there are no tests
7589 #:phases
7590 (modify-phases %standard-phases
7591 (delete 'configure)
7592 (add-before 'build 'patch-makefile
7593 (lambda _
7594 (substitute* "Makefile"
7595 (("lcurses") "lncurses")
7596 (("^BUILD_DATE_TIME =.*$")
7597 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
7598 #t))
7599 (replace 'build
7600 (lambda _
7601 (invoke "make" "sdl")))
7602 (replace 'install
7603 (lambda* (#:key outputs #:allow-other-keys)
7604 (let* ((out (assoc-ref outputs "out"))
7605 (bin (string-append out "/bin"))
7606 (man (string-append out "/share/man/man6")))
7607 (install-file "sfrotz" bin)
7608 (mkdir-p man)
7609 (install-file "doc/sfrotz.6" man)
7610 #t))))))
7611 (native-inputs
7612 `(("pkg-config" ,pkg-config)
7613 ("which" ,which)
7614 ("perl" ,perl)))
7615 (inputs `(("sdl2" ,sdl2)
7616 ("sdl2-mixer" ,sdl2-mixer)
7617 ("libmodplug" ,libmodplug)
7618 ("libsamplerate" ,libsamplerate)
7619 ("libsndfile" ,libsndfile)
7620 ("libvorbis" ,libvorbis)
7621 ("ncurses" ,ncurses)
7622 ("freetype" ,freetype)
7623 ("libjpeg-turbo" ,libjpeg-turbo)))
7624 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
7625 (description "Frotz is an interpreter for Infocom games and other Z-machine
7626 games in the text adventure/interactive fiction genre. This version of Frotz
7627 using SDL fully supports all these versions of the Z-Machine including the
7628 graphical version 6. Graphics and sound are created through the use of the SDL
7629 libraries. AIFF sound effects and music in MOD and OGG formats are supported
7630 when packaged in Blorb container files or optionally from individual files.")
7631 (home-page "http://frotz.sourceforge.net")
7632 (license license:gpl2+))))
7633
7634 (define-public frozen-bubble
7635 ;; Last official release is very outdated (2010). Use latest commit (2017).
7636 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
7637 (revision "1"))
7638 (package
7639 (name "frozen-bubble")
7640 (version (git-version "2.2.1" revision commit))
7641 (source
7642 (origin
7643 (method git-fetch)
7644 (uri (git-reference
7645 (url "https://github.com/kthakore/frozen-bubble")
7646 (commit commit)))
7647 (file-name (git-file-name name version))
7648 (sha256
7649 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
7650 (build-system perl-build-system)
7651 (arguments
7652 `(#:phases
7653 (modify-phases %standard-phases
7654 ;; Build process needs to create files in the "server"
7655 ;; directory.
7656 (add-after 'unpack 'fix-permissions
7657 (lambda _
7658 (for-each make-file-writable
7659 (find-files "server" "." #:directories? #t))))
7660 ;; By default, build stops at warnings.
7661 (add-after 'unpack 'prevent-build-error
7662 (lambda _
7663 (substitute* "inc/My/Builder.pm"
7664 (("-Werror") ""))
7665 #t))
7666 (add-after 'install 'install-desktop-file-and-icons
7667 (lambda* (#:key outputs #:allow-other-keys)
7668 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
7669 (hicolor (string-append share "/icons/hicolor")))
7670 ;; Create desktop entry.
7671 (make-desktop-entry-file
7672 (string-append share "/applications/" ,name ".desktop")
7673 #:name "Frozen Bubble"
7674 #:comment "Frozen Bubble arcade game"
7675 #:exec ,name
7676 #:icon ,name
7677 #:categories '("Game" "ArcadeGame"))
7678 ;; Add icons.
7679 (with-directory-excursion "share/icons"
7680 (for-each
7681 (lambda (size)
7682 (let* ((dim (string-append size "x" size))
7683 (dir (string-append hicolor "/" dim "/apps")))
7684 (mkdir-p dir)
7685 (copy-file
7686 (string-append "frozen-bubble-icon-" dim ".png")
7687 (string-append dir "/frozen-bubble.png"))))
7688 '("16" "32" "48" "64"))))
7689 #t))
7690 (add-after 'install 'wrap-perl-libs
7691 (lambda* (#:key outputs #:allow-other-keys)
7692 (let ((out (assoc-ref outputs "out"))
7693 (perl5lib (getenv "PERL5LIB")))
7694 (for-each (lambda (prog)
7695 (wrap-program (string-append out "/" prog)
7696 `("PERL5LIB" ":" prefix
7697 (,(string-append perl5lib ":" out
7698 "/lib/perl5/site_perl")))))
7699 (find-files "bin" ".")))
7700 #t)))))
7701 (native-inputs
7702 `(("perl-alien-sdl" ,perl-alien-sdl)
7703 ("perl-capture-tiny" ,perl-capture-tiny)
7704 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
7705 ("perl-module-build" ,perl-module-build)
7706 ("pkg-config" ,pkg-config)))
7707 (inputs
7708 `(("glib" ,glib)
7709 ("perl-compress-bzip2" ,perl-compress-bzip2)
7710 ("perl-file-sharedir" ,perl-file-sharedir)
7711 ("perl-file-slurp" ,perl-file-slurp)
7712 ("perl-file-which" ,perl-file-which)
7713 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
7714 ("perl-sdl" ,perl-sdl)
7715 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
7716 (home-page "http://frozen-bubble.org/")
7717 (synopsis "Puzzle with bubbles")
7718 (description
7719 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
7720 you attempt to shoot bubbles into groups of the same color to cause them to
7721 pop.
7722
7723 Players compete as penguins and must use the arrow keys to aim a colored
7724 bubble at groups of bubbles. The objective is to clear all the bubbles off
7725 the screen before a bubble passes below a line at the bottom.
7726
7727 It features 100 single-player levels, a two-player mode, music and striking
7728 graphics. A level editor is also included to allow players to create and play
7729 their own levels.")
7730 (license license:gpl2))))
7731
7732 (define-public libmanette
7733 (package
7734 (name "libmanette")
7735 (version "0.2.4")
7736 (source (origin
7737 (method url-fetch)
7738 (uri (string-append "mirror://gnome/sources/libmanette/"
7739 (version-major+minor version) "/"
7740 "libmanette-" version ".tar.xz"))
7741 (sha256
7742 (base32
7743 "1xrc6rh73v5w3kbkflzv1yg8sbxk4wf06hfk95raxhxlssza9q2g"))))
7744 (build-system meson-build-system)
7745 (native-inputs
7746 `(("glib" ,glib "bin") ; for glib-compile-resources
7747 ("gobject-introspection" ,gobject-introspection)
7748 ("pkg-config" ,pkg-config)
7749 ("vala" ,vala)))
7750 (inputs
7751 `(("libevdev" ,libevdev)
7752 ("libgudev" ,libgudev)))
7753 (home-page "https://wiki.gnome.org/Apps/Games")
7754 (synopsis "Game controller library")
7755 (description "Libmanette is a small GObject library giving you simple
7756 access to game controllers. It supports the de-facto standard gamepads as
7757 defined by the W3C standard Gamepad specification or as implemented by the SDL
7758 GameController.")
7759 (license license:lgpl2.1+)))
7760
7761 (define-public quadrapassel
7762 (package
7763 (name "quadrapassel")
7764 (version "3.32.0")
7765 (source (origin
7766 (method url-fetch)
7767 (uri (string-append "mirror://gnome/sources/quadrapassel/"
7768 (version-major+minor version) "/"
7769 "quadrapassel-" version ".tar.xz"))
7770 (sha256
7771 (base32
7772 "1zhi1957knz9dm98drn2dh95mr33sdch590yddh1f8r6bzsfjvpy"))))
7773 (build-system meson-build-system)
7774 (arguments
7775 '(#:glib-or-gtk? #t
7776 #:phases
7777 (modify-phases %standard-phases
7778 (add-after 'unpack 'skip-gtk-update-icon-cache
7779 ;; Don't create 'icon-theme.cache'.
7780 (lambda _
7781 (substitute* "build-aux/meson_post_install.py"
7782 (("gtk-update-icon-cache") (which "true")))
7783 #t)))))
7784 (native-inputs
7785 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
7786 ("gettext" ,gettext-minimal)
7787 ("glib" ,glib "bin") ;for glib-compile-resources
7788 ("itstool" ,itstool)
7789 ("libxml2" ,libxml2) ;for xmllint
7790 ("pkg-config" ,pkg-config)
7791 ("vala" ,vala)))
7792 (inputs
7793 `(("clutter" ,clutter)
7794 ("clutter-gtk" ,clutter-gtk)
7795 ("gtk+" ,gtk+)
7796 ("libcanberra" ,libcanberra)
7797 ("libmanette" ,libmanette)
7798 ("librsvg" ,librsvg)))
7799 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
7800 (synopsis "GNOME version of Tetris")
7801 (description "Quadrapassel comes from the classic falling-block game,
7802 Tetris. The goal of the game is to create complete horizontal lines of
7803 blocks, which will disappear. The blocks come in seven different shapes made
7804 from four blocks each: one straight, two L-shaped, one square, and two
7805 S-shaped. The blocks fall from the top center of the screen in a random
7806 order. You rotate the blocks and move them across the screen to drop them in
7807 complete lines. You score by dropping blocks fast and completing lines. As
7808 your score gets higher, you level up and the blocks fall faster.")
7809 (license license:gpl2+)))
7810
7811 (define-public endless-sky
7812 (package
7813 (name "endless-sky")
7814 (version "0.9.12")
7815 (source
7816 (origin
7817 (method git-fetch)
7818 (uri (git-reference
7819 (url "https://github.com/endless-sky/endless-sky")
7820 (commit (string-append "v" version))))
7821 (file-name (git-file-name name version))
7822 (sha256
7823 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
7824 (build-system scons-build-system)
7825 (arguments
7826 `(#:scons ,scons-python2
7827 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
7828 #:tests? #f ; no tests
7829 #:phases
7830 (modify-phases %standard-phases
7831 (add-after 'unpack 'patch-resource-locations
7832 (lambda* (#:key outputs #:allow-other-keys)
7833 (substitute* "source/Files.cpp"
7834 (("/usr/local/")
7835 (string-append (assoc-ref outputs "out") "/")))
7836 #t))
7837 (add-after 'unpack 'patch-scons
7838 (lambda _
7839 (substitute* "SConstruct"
7840 ;; Keep environmental variables
7841 (("Environment\\(\\)")
7842 "Environment(ENV = os.environ)")
7843 ;; Install into %out/bin
7844 (("games\"") "bin\""))
7845 #t)))))
7846 (inputs
7847 `(("glew" ,glew)
7848 ("libjpeg" ,libjpeg-turbo)
7849 ("libmad" ,libmad)
7850 ("libpng" ,libpng)
7851 ("openal" ,openal)
7852 ("sdl2" ,sdl2)))
7853 (home-page "https://endless-sky.github.io/")
7854 (synopsis "2D space trading and combat game")
7855 (description "Endless Sky is a 2D space trading and combat game. Explore
7856 other star systems. Earn money by trading, carrying passengers, or completing
7857 missions. Use your earnings to buy a better ship or to upgrade the weapons and
7858 engines on your current one. Blow up pirates. Take sides in a civil war. Or
7859 leave human space behind and hope to find friendly aliens whose culture is more
7860 civilized than your own.")
7861 (license (list license:gpl3+
7862 license:cc-by-sa3.0
7863 license:cc-by-sa4.0
7864 license:public-domain))))
7865
7866 (define-public stepmania
7867 (package
7868 (name "stepmania")
7869 (version "5.1.0-b2")
7870 (source
7871 (origin
7872 (method git-fetch)
7873 (uri (git-reference
7874 (url "https://github.com/stepmania/stepmania")
7875 (commit (string-append "v" version))))
7876 (file-name (git-file-name name version))
7877 (sha256
7878 (base32
7879 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
7880 (modules '((guix build utils)))
7881 (snippet
7882 '(begin
7883 ;; Remove song files, which are licensed under a non-commercial
7884 ;; clause, and a course pointing to them.
7885 (for-each delete-file-recursively
7886 '("Songs/StepMania 5/Goin' Under"
7887 "Songs/StepMania 5/MechaTribe Assault"
7888 "Songs/StepMania 5/Springtime"))
7889 (for-each delete-file '("Courses/Default/Jupiter.crs"
7890 "Courses/Default/Jupiter.png"))
7891 ;; Unbundle libpng.
7892 (substitute* "extern/CMakeLists.txt"
7893 (("include\\(CMakeProject-png.cmake\\)") ""))
7894 (delete-file-recursively "extern/libpng")
7895 #t))))
7896 (build-system cmake-build-system)
7897 (arguments
7898 `(#:tests? #f ;FIXME: couldn't find how to run tests
7899 #:build-type "Release"
7900 #:out-of-source? #f ;for the 'install-desktop' phase
7901 #:configure-flags
7902 (list "-DWITH_SYSTEM_FFMPEG=1"
7903 ;; SSE instructions are available on Intel systems only.
7904 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
7905 (%current-system)))
7906 '("x64_64" "i686"))
7907 '()
7908 '("-DWITH_SSE2=NO"))
7909 ;; Configuration cannot find GTK2 without the two following
7910 ;; flags.
7911 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
7912 (assoc-ref %build-inputs "gtk+")
7913 "/lib/gtk-2.0/include")
7914 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
7915 (assoc-ref %build-inputs "glib")
7916 "/lib/glib-2.0/include"))
7917 #:phases
7918 (modify-phases %standard-phases
7919 (add-after 'unpack 'ensure-application-files-can-be-found
7920 (lambda* (#:key outputs #:allow-other-keys)
7921 (let ((out (assoc-ref outputs "out")))
7922 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
7923 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
7924 (string-append "\"" out
7925 "/share/stepmania/GtkModule.so\"")))
7926 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
7927 (("Root = sDirOfExecutable")
7928 (string-append "Root = \"" out "/share/stepmania/\""))
7929 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
7930 (string-append "\"" out "/share/stepmania/" dir "\"")))
7931 (substitute* "src/RageFileManager.cpp"
7932 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
7933 (string-append "\"" out "/share/stepmania/\""))))
7934 #t))
7935 (add-after 'unpack 'fix-install-subdir
7936 ;; Installation would be done in "%out/stepmania-X.Y", but we
7937 ;; prefer the more common layout "%out/share/stepmania".
7938 (lambda _
7939 (substitute* "src/CMakeLists.txt"
7940 (("\"stepmania-.*?\"") "\"share/stepmania\""))
7941 #t))
7942 (add-after 'unpack 'unbundle-libpng
7943 (lambda* (#:key inputs #:allow-other-keys)
7944 (substitute* "src/CMakeLists.txt"
7945 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
7946 (string-append (assoc-ref inputs "libpng") "/include")))
7947 #t))
7948 (add-after 'install 'install-executable
7949 (lambda* (#:key outputs #:allow-other-keys)
7950 (let* ((out (assoc-ref outputs "out"))
7951 (bin (string-append out "/bin"))
7952 (exe (string-append out "/share/stepmania/stepmania")))
7953 (mkdir-p bin)
7954 (symlink exe (string-append bin "/stepmania"))
7955 #t)))
7956 (add-after 'install-executable 'install-desktop
7957 (lambda* (#:key outputs #:allow-other-keys)
7958 (let* ((out (assoc-ref outputs "out"))
7959 (share (string-append out "/share"))
7960 (applications (string-append share "/applications"))
7961 (icons (string-append share "/icons")))
7962 (install-file "stepmania.desktop" applications)
7963 (mkdir-p icons)
7964 (copy-recursively "icons" icons)
7965 #t)))
7966 ;; Move documentation in a more usual place, i.e.,
7967 ;; "%out/share/doc/stepmania/".
7968 (add-after 'install-desktop 'install-doc
7969 (lambda* (#:key outputs #:allow-other-keys)
7970 (let* ((out (assoc-ref outputs "out"))
7971 (share (string-append out "/share")))
7972 (with-directory-excursion share
7973 (mkdir-p "doc")
7974 (symlink "../stepmania/Docs" "doc/stepmania"))
7975 #t))))))
7976 (native-inputs
7977 `(("pkg-config" ,pkg-config)
7978 ("yasm" ,yasm)))
7979 (inputs
7980 `(("alsa-lib" ,alsa-lib)
7981 ;; Per upstream, StepMania is only guaranteed to work with a very
7982 ;; specific FFmpeg version, which is included in the repository as
7983 ;; a Git submodule. This particular version requirement usually
7984 ;; changes every few years.
7985 ("ffmpeg" ,ffmpeg-for-stepmania)
7986 ("glib" ,glib)
7987 ("glew" ,glew)
7988 ("gtk+" ,gtk+-2)
7989 ("jsoncpp" ,jsoncpp)
7990 ("libpng" ,libpng)
7991 ("libjpeg" ,libjpeg-turbo)
7992 ("libmad" ,libmad)
7993 ("libogg" ,libogg)
7994 ("libva" ,libva)
7995 ("libvorbis" ,libvorbis)
7996 ("libxinerama" ,libxinerama)
7997 ("libxrandr" ,libxrandr)
7998 ("mesa" ,mesa)
7999 ("pcre" ,pcre)
8000 ("pulseaudio" ,pulseaudio)
8001 ("sdl" ,sdl2)
8002 ("udev" ,eudev)
8003 ("zlib" ,zlib)))
8004 (synopsis "Advanced rhythm game designed for both home and arcade use")
8005 (description "StepMania is a dance and rhythm game. It features 3D
8006 graphics, keyboard and dance pad support, and an editor for creating your own
8007 steps.
8008
8009 This package provides the core application, but no song is shipped. You need
8010 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8011 (home-page "https://www.stepmania.com")
8012 (license license:expat)))
8013
8014 (define-public btanks
8015 (package
8016 (name "btanks")
8017 (version "0.9.8083")
8018 (source
8019 (origin
8020 (method url-fetch)
8021 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8022 "btanks-" version ".tar.bz2"))
8023 (sha256
8024 (base32
8025 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8026 (build-system scons-build-system)
8027 (arguments
8028 `(#:tests? #f ; there are none
8029 #:scons ,scons-python2
8030 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8031 #:phases
8032 (modify-phases %standard-phases
8033 (add-after 'unpack 'replace-removed-scons-syntax
8034 (lambda _
8035 (substitute* "SConstruct"
8036 (("Options") "Variables")
8037 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8038 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8039 #t))
8040 (add-after 'set-paths 'set-sdl-paths
8041 (lambda* (#:key inputs #:allow-other-keys)
8042 (setenv "CPATH"
8043 (string-append (assoc-ref inputs "sdl")
8044 "/include/SDL:"
8045 (or (getenv "CPATH") "")))
8046 #t))
8047 (add-after 'unpack 'fix-compilation-errors
8048 (lambda _
8049 (substitute* "mrt/base_file.h"
8050 (("#include <string>" m)
8051 (string-append m "\n#include <sys/types.h>")))
8052 (substitute* '("engine/sl08/sl08.h"
8053 "engine/sl08/sl08.py")
8054 (("signal = NULL") "signal = 0")
8055 (("object\\(NULL\\)") "object(0)")
8056 (("func\\(NULL\\)") "func(0)")
8057 ((" connect\\(signal_ref\\)")
8058 " this->connect(signal_ref)"))
8059 (substitute* "math/range_list.h"
8060 ((" lower_bound\\(value\\)")
8061 " this->lower_bound(value)")
8062 ((" erase\\(i\\)")
8063 " this->erase(i)"))
8064 (substitute* "clunk/source.cpp"
8065 (("using namespace clunk" m)
8066 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8067 #t))
8068 (add-after 'unpack 'find-lua
8069 (lambda _
8070 (substitute* "engine/SConscript"
8071 (("lua5.1") "lua-5.1")
8072 (("bt_libs.append\\(lua\\)")
8073 "bt_libs.append(\"lua\")"))
8074 #t)))))
8075 (inputs
8076 `(("expat" ,expat)
8077 ("glu" ,glu)
8078 ("libsmpeg" ,libsmpeg-with-sdl1)
8079 ("libvorbis" ,libvorbis)
8080 ("lua51" ,lua-5.1)
8081 ("sdl" ,(sdl-union (list sdl
8082 sdl-mixer
8083 sdl-image
8084 sdl-ttf)))
8085 ("zlib" ,zlib)))
8086 (native-inputs
8087 `(("pkg-config" ,pkg-config)
8088 ("zip" ,zip)))
8089 (home-page "http://btanks.sourceforge.net")
8090 (synopsis "Multiplayer tank battle game")
8091 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8092 game, where you can choose one of three vehicles and eliminate your enemy
8093 using the whole arsenal of weapons. It has original cartoon-like graphics and
8094 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8095 and cooperative.")
8096 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8097 ;; released under GPLv2 or later. It comes with extra exceptions for the
8098 ;; developers.
8099 (license (list license:gpl2+ license:lgpl2.1+))))
8100
8101 (define-public slingshot
8102 (package
8103 (name "slingshot")
8104 (version "0.9")
8105 (source
8106 (origin
8107 (method git-fetch)
8108 (uri (git-reference
8109 (url "https://github.com/ryanakca/slingshot")
8110 (commit version)))
8111 (file-name (git-file-name name version))
8112 (sha256
8113 (base32
8114 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8115 (build-system python-build-system)
8116 (arguments
8117 `(#:python ,python-2))
8118 (inputs
8119 `(("python-pygame" ,python2-pygame)))
8120 (home-page "https://github.com/ryanakca/slingshot")
8121 (synopsis "Simple 2D shooting strategy game set in space")
8122 (description "Slingshot is a two-dimensional strategy game where two
8123 players attempt to shoot one another through a section of space populated by
8124 planets. The main feature of the game is that the shots, once fired, are
8125 affected by the gravity of the planets.")
8126 (license license:gpl2+)))
8127
8128 (define-public 4dtris
8129 (package
8130 (name "4dtris")
8131 (version "0.4.3")
8132 (source
8133 (origin
8134 (method url-fetch)
8135 (uri (string-append "https://launchpad.net/4dtris/"
8136 (version-major+minor version)
8137 "/" version "/+download/4dtris_"
8138 version ".orig.tar.gz"))
8139 (sha256
8140 (base32
8141 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8142 (build-system gnu-build-system)
8143 (arguments
8144 `(#:phases
8145 (modify-phases %standard-phases
8146 (add-after 'unpack 'fix-install-directories
8147 (lambda* (#:key outputs #:allow-other-keys)
8148 (let ((out (assoc-ref outputs "out")))
8149 (substitute* "Makefile.in"
8150 (("bindir = /usr/games")
8151 (string-append "bindir = " out "/bin"))
8152 (("/usr/share/applications")
8153 (string-append out "/share/applications"))
8154 (("/usr/share/games/4dtris")
8155 (string-append out "/share/4dtris"))))
8156 #t))
8157 (add-after 'set-paths 'set-sdl-paths
8158 (lambda* (#:key inputs #:allow-other-keys)
8159 (setenv "CPATH"
8160 (string-append (assoc-ref inputs "sdl")
8161 "/include/SDL:"
8162 (or (getenv "CPATH") "")))
8163 #t)))))
8164 (inputs
8165 `(("fontconfig" ,fontconfig)
8166 ("freeglut" ,freeglut)
8167 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8168 (home-page "https://launchpad.net/4dtris/")
8169 (synopsis "4D Tetris")
8170 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8171 game field is extended to 4D space, which has to filled up by the gamer with
8172 4D hyper cubes.")
8173 (license license:gpl3)))
8174
8175 (define-public arx-libertatis
8176 (package
8177 (name "arx-libertatis")
8178 (version "1.1.2")
8179 (source
8180 (origin
8181 (method url-fetch)
8182 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8183 version ".tar.xz"))
8184 (sha256
8185 (base32
8186 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8187 (build-system cmake-build-system)
8188 (outputs '("out" "installer"))
8189 (arguments
8190 '(#:tests? #f ; No tests.
8191 #:phases
8192 (modify-phases %standard-phases
8193 (add-after 'unpack 'fix-install-helper-paths
8194 (lambda* (#:key inputs #:allow-other-keys)
8195 (let ((p7zip (assoc-ref inputs "p7zip"))
8196 (innoextract (assoc-ref inputs "innoextract"))
8197 (wget (assoc-ref inputs "wget"))
8198 (zenity (assoc-ref inputs "zenity")))
8199 (substitute* "scripts/arx-install-data"
8200 (("have innoextract")
8201 (string-append "have " innoextract "/bin/innoextract"))
8202 (("then innoextract")
8203 (string-append "then " innoextract "/bin/innoextract"))
8204 (("else innoextract")
8205 (string-append "else " innoextract "/bin/innoextract"))
8206 (("for _extract_zip_sz in 7za 7z")
8207 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8208 (("else if have 7z")
8209 (string-append "else if have " p7zip "/bin/7za"))
8210 (("7z x -tiso")
8211 (string-append p7zip "/bin/7z x -tiso"))
8212 (("if have wget")
8213 (string-append "if have " wget "/bin/wget"))
8214 (("wget -O")
8215 (string-append wget "/bin/wget -O"))
8216 (("for backend in \\$preferred zenity")
8217 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8218 (("zenity +--title")
8219 (string-append zenity "/bin/zenity --title"))
8220 (("^zenity\\)")
8221 (string-append zenity "/bin/zenity)"))))
8222 #t))
8223 (add-after 'install 'move-installer
8224 (lambda* (#:key outputs #:allow-other-keys)
8225 (let ((out (assoc-ref outputs "out"))
8226 (installer (assoc-ref outputs "installer")))
8227 (mkdir-p (string-append installer "/bin"))
8228 (rename-file (string-append out "/bin/arx-install-data")
8229 (string-append installer "/bin/arx-install-data"))))))))
8230 (inputs
8231 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8232 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8233 ("glew" ,glew)
8234 ("openal" ,openal)
8235 ("zlib" ,zlib)
8236 ("boost" ,boost)
8237 ("glm" ,glm)
8238 ("freetype" ,freetype)
8239 ;; The following are only needed by the arx-install-data script.
8240 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8241 ("zenity" ,zenity) ; GUI for install-helper.
8242 ("wget" ,wget) ; Used by the install-helper to download the patch.
8243 ;; The install-helper needs it to extract the patch.
8244 ("innoextract" ,innoextract)))
8245 (home-page "https://arx-libertatis.org/")
8246 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8247 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8248 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8249 This port however does not include the game data, so you need to obtain a copy
8250 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8251 features crafting, melee and ranged combat, as well as a unique casting system
8252 where the player draws runes in real time to effect the desired spell.")
8253 (license license:gpl3+)))
8254
8255 (define-public edgar
8256 (package
8257 (name "edgar")
8258 (version "1.33")
8259 (source
8260 (origin
8261 (method url-fetch)
8262 (uri
8263 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8264 version "/edgar-" version "-1.tar.gz"))
8265 (sha256
8266 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8267 (build-system gnu-build-system)
8268 (arguments '(#:tests? #f ; there are no tests
8269 #:make-flags
8270 (list "CC=gcc"
8271 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8272 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8273 #:phases
8274 (modify-phases %standard-phases
8275 (delete 'configure)
8276 (add-before 'build 'fix-env
8277 (lambda* (#:key inputs #:allow-other-keys)
8278 (setenv "CPATH"
8279 (string-append (assoc-ref inputs "sdl2-union")
8280 "/include/SDL2:"
8281 (or (getenv "CPATH") "")))
8282 #t)))))
8283 (inputs
8284 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8285 ("zlib" ,zlib)))
8286 (native-inputs
8287 `(("pkg-config" ,pkg-config)
8288 ("autoconf" ,autoconf)
8289 ("automake" ,automake)
8290 ("gnu-gettext" ,gettext-minimal)
8291 ("libtool" ,libtool)
8292 ("which" ,which)))
8293 (synopsis "2d action platformer game")
8294 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8295 When Edgar's father fails to return home after venturing out one dark and stormy night,
8296 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8297 a fortress beyond the forbidden swamp.")
8298 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8299 (license license:gpl2+)))
8300
8301 (define-public openclonk
8302 (package
8303 (name "openclonk")
8304 (version "8.1")
8305 (source (origin
8306 (method url-fetch)
8307 (uri (string-append
8308 "https://www.openclonk.org/builds/release/" version "/"
8309 "openclonk-" version "-src.tar.bz2"))
8310 (sha256
8311 (base32
8312 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8313 (build-system cmake-build-system)
8314 (arguments
8315 `(#:configure-flags '("-DAudio_TK=OpenAL")
8316 #:test-target "tests"
8317 #:phases
8318 (modify-phases %standard-phases
8319 (add-after 'unpack 'prepare-gmock
8320 (lambda* (#:key inputs #:allow-other-keys)
8321 (mkdir "gmock")
8322 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8323 (substitute* "tests/CMakeLists.txt"
8324 (("/usr/src/gmock")
8325 (string-append (getcwd) "/gmock/googlemock"))
8326 (("/usr/src/gtest")
8327 (string-append (getcwd) "/gmock/googletest"))
8328 (("PATH_SUFFIXES \"src\" \"gtest\"")
8329 "PATH_SUFFIXES \"src\""))
8330 #t))
8331 (add-after 'unpack 'adjust-backward-cpp-includes
8332 (lambda _
8333 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8334 ;; that includes external libraries such as libdl from glibc.
8335 ;; By default, CMake interface includes are treated as "system
8336 ;; headers", and GCC behaves poorly when glibc is passed as a
8337 ;; system header (causing #include_next failures).
8338
8339 ;; Here we prevent targets that consume the Backward::Backward
8340 ;; interface from treating it as "system includes".
8341 (substitute* "CMakeLists.txt"
8342 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8343 (string-append "set_property(TARGET " target " PROPERTY "
8344 "NO_SYSTEM_FROM_IMPORTED true)\n"
8345 all)))
8346 #t))
8347 (add-after 'unpack 'add-libiberty
8348 ;; Build fails upon linking executables without this.
8349 (lambda _
8350 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8351 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8352 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8353 #t))
8354 (add-after 'add-libiberty 'lax-freealut-requirement
8355 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8356 ;; it as 1.0.1. Force minimal version.
8357 (lambda _
8358 (substitute* "cmake/FindAudio.cmake"
8359 (("freealut>=1.1.0") "freealut>=1.0.1"))
8360 #t))
8361 (add-after 'lax-freealut-requirement 'fix-directories
8362 ;; Prefer "$out/share/openclonk" over
8363 ;; "$out/share/games/openclonk". Also install "openclonk"
8364 ;; binary in "bin/", not "games/".
8365 (lambda _
8366 (substitute* "CMakeLists.txt"
8367 (("share/games/openclonk") "share/openclonk")
8368 (("TARGETS openclonk DESTINATION games")
8369 "TARGETS openclonk DESTINATION bin"))
8370 #t)))))
8371 (native-inputs
8372 `(("googlemock" ,(package-source googletest))
8373 ("googletest" ,googletest)
8374 ("pkg-config" ,pkg-config)))
8375 (inputs
8376 `(("freealut" ,freealut)
8377 ("freetype" ,freetype)
8378 ("glew" ,glew)
8379 ("libiberty" ,libiberty)
8380 ("libjpeg" ,libjpeg-turbo)
8381 ("libogg" ,libogg)
8382 ("libpng" ,libpng)
8383 ("libvorbis" ,libvorbis)
8384 ("libxrandr" ,libxrandr)
8385 ("mesa" ,mesa)
8386 ("miniupnpc" ,miniupnpc)
8387 ("openal" ,openal)
8388 ("qtbase" ,qtbase)
8389 ("readline" ,readline)
8390 ("sdl" ,sdl2)
8391 ("tinyxml" ,tinyxml)
8392 ("zlib" ,zlib)))
8393 (home-page "https://www.openclonk.org/")
8394 (synopsis
8395 "Multiplayer action game where you control small and nimble humanoids")
8396 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8397 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8398 antfarm-style landscape, the player controls a crew of Clonks, small but
8399 robust humanoid beings. The game encourages free play but the normal goal is
8400 to either exploit valuable resources from the earth by building a mine or
8401 fight each other on an arena-like map.")
8402 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8403 (license (list license:isc license:cc-by3.0))))
8404
8405 (define-public flare-engine
8406 (package
8407 (name "flare-engine")
8408 (version "1.11")
8409 (source (origin
8410 (method git-fetch)
8411 (uri (git-reference
8412 (url "https://github.com/flareteam/flare-engine")
8413 (commit (string-append "v" version))))
8414 (file-name (git-file-name name version))
8415 (sha256
8416 (base32
8417 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8418 (build-system cmake-build-system)
8419 (arguments
8420 `(#:tests? #f ;no test
8421 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8422 (inputs
8423 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8424 ("python" ,python-wrapper)
8425 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8426 (home-page "http://www.flarerpg.org/")
8427 (synopsis "Action Roleplaying Engine")
8428 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8429 game engine built to handle a very specific kind of game: single-player 2D
8430 action RPGs.")
8431 (license license:gpl3+)))
8432
8433 (define-public flare-game
8434 (package
8435 (name "flare-game")
8436 (version "1.11")
8437 (source (origin
8438 (method git-fetch)
8439 (uri (git-reference
8440 (url "https://github.com/flareteam/flare-game")
8441 (commit (string-append "v" version))))
8442 (file-name (git-file-name name version))
8443 (sha256
8444 (base32
8445 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8446 (build-system cmake-build-system)
8447 (arguments
8448 `(#:tests? #f ;no test
8449 #:configure-flags '("-DDATADIR=share/flare")
8450 #:phases
8451 (modify-phases %standard-phases
8452 ;; Flare expects the mods to be located in the same folder.
8453 ;; Yet, "default" mod is in the engine, whereas the others
8454 ;; are in the current package. Merge everything here with
8455 ;; a symlink.
8456 (add-after 'install 'add-default-mod
8457 (lambda* (#:key inputs outputs #:allow-other-keys)
8458 (let* ((out (assoc-ref outputs "out"))
8459 (mods (string-append out "/share/flare/mods")))
8460 (with-directory-excursion mods
8461 (symlink (string-append (assoc-ref inputs "flare-engine")
8462 "/share/flare/mods/default")
8463 "default")))
8464 #t))
8465 (add-after 'install 'install-executable
8466 ;; The package only provides assets for the game, the
8467 ;; executable coming from "flare-engine". Since more than
8468 ;; one game may use the engine, we create a new executable,
8469 ;; "flare-game", which launches the engine with appropriate
8470 ;; parameters.
8471 (lambda* (#:key inputs outputs #:allow-other-keys)
8472 (let* ((out (assoc-ref outputs "out"))
8473 (bash (string-append (assoc-ref inputs "bash")
8474 "/bin/bash"))
8475 (flare (string-append (assoc-ref inputs "flare-engine")
8476 "/bin/flare"))
8477 (script (string-append out "/bin/flare-game")))
8478 (mkdir-p (dirname script))
8479 (call-with-output-file script
8480 (lambda (port)
8481 (format port
8482 "#!~a
8483 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8484 bash
8485 flare
8486 out)))
8487 (chmod script #o755))
8488 #t)))))
8489 (inputs
8490 `(("flare-engine" ,flare-engine)))
8491 (home-page "http://www.flarerpg.org/")
8492 (synopsis "Fantasy action RPG using the FLARE engine")
8493 (description "Flare is a single-player 2D action RPG with
8494 fast-paced action and a dark fantasy style.")
8495 (license license:cc-by-sa3.0)))
8496
8497 (define-public meritous
8498 (package
8499 (name "meritous")
8500 (version "1.5")
8501 (source (origin
8502 (method git-fetch)
8503 (uri (git-reference
8504 (url "https://gitlab.com/meritous/meritous.git")
8505 (commit (string-append "v" version))))
8506 (file-name (git-file-name name version))
8507 (sha256
8508 (base32
8509 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8510 (build-system gnu-build-system)
8511 (arguments
8512 `(#:tests? #f ;no test
8513 #:make-flags
8514 (list "CC=gcc"
8515 (string-append "prefix=" (assoc-ref %outputs "out")))
8516 #:phases
8517 (modify-phases %standard-phases
8518 (delete 'configure)
8519 (add-after 'unpack 'fix-sdl-path
8520 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
8521 ;; directory, not SDL-union provided as an input to the package.
8522 ;; We force the latter with "--prefix=" option.
8523 (lambda* (#:key inputs #:allow-other-keys)
8524 (substitute* "Makefile"
8525 (("sdl-config" command)
8526 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8527 #t))
8528 (add-after 'unpack 'fix-crash
8529 ;; XXX: Songs are not present in the repository, due to licensing
8530 ;; issues. Yet, the game tries to load them, and, since it cannot
8531 ;; find them, crashes. Users cannot add them back, the store being
8532 ;; read-only, so we turn off background music altogether.
8533 (lambda _
8534 (substitute* "src/audio.c"
8535 (("PlayBackgroundMusic\\(new_track\\);" all)
8536 (string-append "// " all)))
8537 #t)))))
8538 (native-inputs
8539 `(("intltool" ,intltool)))
8540 (inputs
8541 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
8542 ("zlib" ,zlib)))
8543 (home-page "https://gitlab.com/meritous/meritous")
8544 (synopsis "Action-adventure dungeon crawl game")
8545 (description "Far below the surface of the planet is a place of limitless
8546 power. Those that seek to control such a utopia will soon bring an end to
8547 themselves. Seeking an end to the troubles that plague him, PSI user Merit
8548 journeys into the hallowed Orcus Dome in search of answers.
8549
8550 Meritous is a action-adventure game with simple controls but a challenge to
8551 find a balance of power versus recovery time during real-time battles. Set in
8552 a procedurally generated world, the player can explore thousands of rooms in
8553 search of powerful artifacts, tools to help them, and to eventually free the
8554 Orcus Dome from evil.")
8555 (license license:gpl3+)))
8556
8557 (define-public marble-marcher
8558 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
8559 (revision "1"))
8560 (package
8561 (name "marble-marcher")
8562 (version (git-version "0" revision commit))
8563 (source (origin
8564 (method git-fetch)
8565 (uri (git-reference
8566 (url "https://github.com/HackerPoet/MarbleMarcher")
8567 (commit commit)))
8568 (file-name (git-file-name name version))
8569 (sha256
8570 (base32
8571 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
8572 (build-system cmake-build-system)
8573 (arguments
8574 `(#:tests? #f ; there are none
8575 #:phases
8576 (modify-phases %standard-phases
8577 (add-after 'unpack 'embed-asset-directory
8578 (lambda* (#:key outputs #:allow-other-keys)
8579 (let ((assets (string-append (assoc-ref outputs "out")
8580 "/share/marble-marcher/assets/")))
8581 ;; Some of the files we're patching are
8582 ;; ISO-8859-1-encoded, so choose it as the default
8583 ;; encoding so the byte encoding is preserved.
8584 (with-fluids ((%default-port-encoding #f))
8585 (substitute* "src/Resource.rc"
8586 (("../assets/icon.ico")
8587 (string-append assets "icon.ico")))
8588 (substitute* "src/Res.h"
8589 (("assets/") assets))))
8590 #t))
8591 (replace 'install
8592 (lambda* (#:key outputs #:allow-other-keys)
8593 (let* ((out (assoc-ref outputs "out"))
8594 (assets (string-append out "/share/marble-marcher/assets"))
8595 (bin (string-append out "/bin/")))
8596 (mkdir-p bin)
8597 (mkdir-p assets)
8598 (copy-recursively "../source/assets" assets)
8599 (install-file "MarbleMarcher" bin))
8600 #t)))))
8601 (inputs
8602 `(("eigen" ,eigen)
8603 ("mesa" ,mesa)
8604 ("sfml" ,sfml)))
8605 (native-inputs
8606 `(("pkg-config" ,pkg-config)))
8607 (home-page "https://codeparade.itch.io/marblemarcher")
8608 (synopsis "Guide a marble across fractal landscapes")
8609 (description "Marble Marcher is a video game that uses a fractal physics
8610 engine and fully procedural rendering to produce beautiful and unique
8611 gameplay. The game is played on the surface of evolving fractals. The goal
8612 of the game is to get your marble to the flag as quickly as possible. But be
8613 careful not to fall off the level or get crushed by the fractal! There are 24
8614 levels to unlock.")
8615 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
8616 (license (list license:gpl2+
8617 license:silofl1.1
8618 license:cc-by-sa3.0)))))
8619
8620 ;; This must be updated together with flightgear.
8621 (define simgear
8622 (package
8623 (name "simgear")
8624 (version "2018.3.2")
8625 (source (origin
8626 (method url-fetch)
8627 (uri (string-append "mirror://sourceforge/flightgear/release-"
8628 (version-major+minor version) "/"
8629 "simgear-" version ".tar.bz2"))
8630 (sha256
8631 (base32
8632 "1941ay8rngz4vwsx37bbpxr48hpcvcbj3xw1hy264lq4qnl99c68"))))
8633 (build-system cmake-build-system)
8634 (arguments
8635 `(#:phases
8636 (modify-phases %standard-phases
8637 (replace 'check
8638 (lambda _
8639 ;; Skip tests that require internet access.
8640 (invoke "ctest" "-E" "(http|dns)"))))))
8641 (inputs
8642 `(("boost" ,boost-for-mysql) ; fails with 1.69
8643 ("curl" ,curl)
8644 ("expat" ,expat)
8645 ("mesa" ,mesa)
8646 ("openal" ,openal)
8647 ("openscenegraph" ,openscenegraph-3.4)
8648 ("zlib" ,zlib)))
8649 (home-page "https://home.flightgear.org/")
8650 (synopsis "Libraries for 3D simulations and games")
8651 (description "SimGear is a set of libraries designed to be used as
8652 building blocks for quickly assembling 3D simulations, games, and
8653 visualization applications. SimGear is developed by the FlightGear project
8654 and also provides the base for the FlightGear Flight Simulator.")
8655 (license license:lgpl2.0+)))
8656
8657 (define-public flightgear
8658 (package
8659 (name "flightgear")
8660 (version (package-version simgear))
8661 (source (origin
8662 (method url-fetch)
8663 (uri (string-append "mirror://sourceforge/flightgear/release-"
8664 (version-major+minor version) "/"
8665 "flightgear-" version ".tar.bz2"))
8666 (sha256
8667 (base32
8668 "0lzy524cjzs8vldcjcc750bgg5c4mq9fkymxxxzqf68ilc4d1jss"))
8669 (modules '((guix build utils)))
8670 (snippet
8671 '(begin
8672 ;; There are some bundled libraries.
8673 (for-each delete-file-recursively
8674 '("3rdparty/sqlite3/"))
8675 #t))))
8676 (build-system cmake-build-system)
8677 (arguments
8678 `(#:configure-flags
8679 (list "-DSYSTEM_SQLITE=ON"
8680 (string-append "-DFG_DATA_DIR="
8681 (assoc-ref %outputs "out")
8682 "/share/flightgear"))
8683 ;; TODO: test cannot be run because the "run_test_suite" executable
8684 ;; does not seem to be built.
8685 #:tests? #f
8686 #:phases
8687 (modify-phases %standard-phases
8688 (add-after 'install 'wrap-executable
8689 (lambda* (#:key inputs outputs #:allow-other-keys)
8690 (let ((out (assoc-ref outputs "out")))
8691 (wrap-program (string-append out "/bin/fgfs")
8692 `("QT_PLUGIN_PATH" ":" prefix
8693 ,(map (lambda (label)
8694 (string-append (assoc-ref inputs label)
8695 "/lib/qt5/plugins"))
8696 '("qtbase" "qtdeclarative" "qtsvg")))
8697 `("QML2_IMPORT_PATH" ":" prefix
8698 ,(map (lambda (label)
8699 (string-append (assoc-ref inputs label)
8700 "/lib/qt5/qml"))
8701 '("qtdeclarative" "qtsvg"))))
8702 #t)))
8703 (add-after 'install 'install-data
8704 (lambda* (#:key inputs outputs #:allow-other-keys)
8705 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
8706 (mkdir-p share)
8707 (with-directory-excursion share
8708 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
8709 "--strip-components=1")))
8710 #t)))))
8711 (inputs
8712 `(("boost" ,boost-for-mysql) ; same as simgear
8713 ("dbus" ,dbus)
8714 ("eudev" ,eudev)
8715 ("freeglut" ,freeglut)
8716 ("freetype" ,freetype)
8717 ("glew" ,glew)
8718 ("libpng" ,libpng)
8719 ("openal" ,openal)
8720 ("openscenegraph" ,openscenegraph-3.4)
8721 ("plib" ,plib)
8722 ("qtbase" ,qtbase)
8723 ("qtdeclarative" ,qtdeclarative)
8724 ("qtsvg" ,qtsvg)
8725 ("simgear" ,simgear)
8726 ("speexdsp" ,speexdsp)
8727 ("sqlite" ,sqlite)
8728 ("zlib" ,zlib)))
8729 (native-inputs
8730 `(("cppunit" ,cppunit)
8731 ("pkg-config" ,pkg-config)
8732 ("qttools" ,qttools)
8733 ("flightgear-data"
8734 ,(origin
8735 (method url-fetch)
8736 (uri (string-append "mirror://sourceforge/flightgear/release-"
8737 (version-major+minor version) "/"
8738 "FlightGear-" version "-data.tar.bz2"))
8739 (sha256
8740 (base32
8741 "0h4npa7gqpf5fw6pv2bpw0wbwr7fa2vhia21cjbigfgd75x82zi7"))))))
8742 (home-page "https://home.flightgear.org/")
8743 (synopsis "Flight simulator")
8744 (description "The goal of the FlightGear project is to create a
8745 sophisticated flight simulator framework for use in research or academic
8746 environments, pilot training, as an industry engineering tool, for DIY-ers to
8747 pursue their favorite interesting flight simulation idea, and last but
8748 certainly not least as a fun, realistic, and challenging desktop flight
8749 simulator.")
8750 (license license:gpl2+)))
8751
8752 (define-public jumpnbump
8753 (package
8754 (name "jumpnbump")
8755 (version "1.61")
8756 (source (origin
8757 (method git-fetch)
8758 (uri (git-reference
8759 (url "https://gitlab.com/LibreGames/jumpnbump.git")
8760 (commit version)))
8761 (file-name (git-file-name name version))
8762 (sha256
8763 (base32
8764 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
8765 (build-system gnu-build-system)
8766 (arguments
8767 `(#:make-flags
8768 (list "CC=gcc"
8769 (string-append "PREFIX=" (assoc-ref %outputs "out")))
8770 #:tests? #f ;no test
8771 #:phases
8772 (modify-phases %standard-phases
8773 (delete 'configure) ;no configure script
8774 (add-after 'unpack 'fix-sdl-path
8775 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
8776 ;; directory, not SDL-union provided as an input to the package.
8777 ;; We force the latter with "--prefix=" option.
8778 (lambda* (#:key inputs #:allow-other-keys)
8779 (substitute* "Makefile"
8780 (("sdl2-config" command)
8781 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8782 #t)))))
8783 (inputs
8784 `(("bzip2" ,bzip2)
8785 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
8786 ("zlib" ,zlib)))
8787 (native-inputs
8788 `(("gettext" ,gettext-minimal))) ;for msgfmt
8789 (home-page "https://gitlab.com/LibreGames/jumpnbump")
8790 (synopsis "Multiplayer platform game with bunnies")
8791 (description "You, as a bunny, have to jump on your opponents to make them
8792 explode. It is a true multiplayer game; you cannot play this alone. You can
8793 play with up to four players simultaneously. It has network support.")
8794 (license license:gpl2+)))
8795
8796 (define-public hedgewars
8797 (package
8798 (name "hedgewars")
8799 (version "1.0.0")
8800 (source (origin
8801 (method url-fetch)
8802 (uri (string-append "https://www.hedgewars.org/download/releases/"
8803 "hedgewars-src-" version ".tar.bz2"))
8804 (sha256
8805 (base32
8806 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
8807 (build-system cmake-build-system)
8808 (arguments
8809 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
8810 ;; Compiler, which we haven't packaged yet. With the flag below, we use
8811 ;; a Pascal to C translator and Clang instead.
8812 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON")
8813 #:phases
8814 (modify-phases %standard-phases
8815 (replace 'check
8816 (lambda _ (invoke "ctest"))))))
8817 (inputs
8818 `(("ffmpeg" ,ffmpeg)
8819 ("freeglut" ,freeglut)
8820 ("ghc-entropy" ,ghc-entropy)
8821 ("ghc-hslogger" ,ghc-hslogger)
8822 ("ghc-network" ,ghc-network)
8823 ("ghc-random" ,ghc-random)
8824 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
8825 ("ghc-sandi" ,ghc-sandi)
8826 ("ghc-sha" ,ghc-sha)
8827 ("ghc-utf8-string" ,ghc-utf8-string)
8828 ("ghc-vector" ,ghc-vector)
8829 ("ghc-zlib" ,ghc-zlib)
8830 ("glew" ,glew)
8831 ("libpng" ,libpng)
8832 ("lua" ,lua-5.1)
8833 ("physfs" ,physfs)
8834 ("qtbase" ,qtbase)
8835 ("sdl" ,(sdl-union
8836 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
8837 (native-inputs
8838 `(("clang" ,clang)
8839 ("ghc" ,ghc)
8840 ("pkg-config" ,pkg-config)
8841 ("qttools" ,qttools)))
8842 (home-page "https://hedgewars.org/")
8843 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
8844 (description
8845 "Hedgewars is a turn based strategy, artillery, action and comedy game,
8846 featuring the antics of pink hedgehogs with attitude as they battle from the
8847 depths of hell to the depths of space.
8848
8849 As commander, it's your job to assemble your crack team of hedgehog soldiers
8850 and bring the war to your enemy.")
8851 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
8852 ;; scripts are distributed under various terms.
8853 (license (list license:gpl2
8854 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
8855 license:expat license:fdl1.3+ license:public-domain
8856 license:zlib))))
8857
8858 (define-public harmonist
8859 (package
8860 (name "harmonist")
8861 (version "0.3.0")
8862 (source (origin
8863 (method git-fetch)
8864 (uri (git-reference
8865 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
8866 (commit (string-append "v" version))))
8867 (file-name (git-file-name name version))
8868 (sha256
8869 (base32
8870 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
8871 (build-system go-build-system)
8872 (arguments
8873 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
8874 (inputs
8875 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
8876 (home-page "https://harmonist.tuxfamily.org/")
8877 (synopsis "Stealth coffee-break roguelike game")
8878 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
8879 coffee-break roguelike game. The game has a heavy focus on tactical
8880 positioning, light and noise mechanisms, making use of various terrain types
8881 and cones of view for monsters. Aiming for a replayable streamlined experience,
8882 the game avoids complex inventory management and character building, relying
8883 on items and player adaptability for character progression.")
8884 (license license:isc)))
8885
8886 (define-public harmonist-tk
8887 (package
8888 (inherit harmonist)
8889 (name "harmonist-tk")
8890 (arguments
8891 (append
8892 (package-arguments harmonist)
8893 `(#:phases
8894 (modify-phases %standard-phases
8895 (replace 'build
8896 (lambda _
8897 (invoke "go" "install" "-v" "-x" "--tags" "tk"
8898 "git.tuxfamily.org/harmonist/harmonist")))
8899 (replace 'check
8900 (lambda _
8901 (invoke "go" "test" "--tags" "tk"
8902 "git.tuxfamily.org/harmonist/harmonist")))))))
8903 (inputs
8904 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
8905
8906 (define-public drascula
8907 (package
8908 (name "drascula")
8909 (version "1.0")
8910 (source (origin
8911 (method url-fetch)
8912 (uri (string-append "mirror://sourceforge/scummvm/extras/"
8913 "Drascula_%20The%20Vampire%20Strikes%20Back/"
8914 "drascula-" version ".zip"))
8915 (sha256
8916 (base32
8917 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
8918 (build-system trivial-build-system)
8919 (arguments
8920 `(#:modules ((guix build utils))
8921 #:builder
8922 (begin
8923 (use-modules (guix build utils)
8924 (ice-9 match))
8925 (let* ((out (assoc-ref %outputs "out"))
8926 (share (string-append out "/share/drascula"))
8927 (scummvm (assoc-ref %build-inputs "scummvm")))
8928 ;; Install data.
8929 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
8930 "/bin/unzip"))
8931 (doc (string-append out "/share/doc/" ,name "-" ,version)))
8932 (for-each
8933 (lambda (input)
8934 (invoke unzip
8935 "-j"
8936 (assoc-ref %build-inputs input)
8937 "-x" "__MACOSX")
8938 ;; Every input provides "readme.txt", and we want to
8939 ;; preserve them all. Therefore we rename them first.
8940 (match input
8941 ("drascula-int"
8942 (rename-file "readme.txt" "readme-international.txt"))
8943 ("drascula-audio"
8944 (rename-file "readme.txt" "readme-audio.txt"))
8945 (_ #f))
8946 ;; Install documentation.
8947 (for-each (lambda (f) (install-file f doc))
8948 (find-files "." "\\.(txt|doc)$"))
8949 ;; Install data.
8950 (for-each (lambda (f) (install-file f share))
8951 (find-files "." "\\.(ogg|00[0-9])$")))
8952 '("drascula-audio" "drascula-int" "source")))
8953 ;; Create standalone executable.
8954 (let* ((bin (string-append out "/bin"))
8955 (executable (string-append bin "/drascula"))
8956 (bash (string-append (assoc-ref %build-inputs "bash")
8957 "/bin/bash")))
8958 (mkdir-p bin)
8959 (with-output-to-file executable
8960 (lambda ()
8961 (format #t "#!~a~%" bash)
8962 (format #t
8963 "exec ~a/bin/scummvm --path=~a drascula~%"
8964 scummvm share)))
8965 (chmod executable #o755))
8966 ;; Create desktop file. There is no dedicated icon for the
8967 ;; game, so we borrow SCUMMVM's.
8968 (let ((apps (string-append out "/share/applications")))
8969 (mkdir-p apps)
8970 (make-desktop-entry-file
8971 (string-append apps "/drascula.desktop")
8972 #:name "Drascula: The Vampire Strikes Back"
8973 #:generic-name "Drascula"
8974 #:exec (string-append out "/bin/drascula")
8975 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
8976 #:categories '("AdventureGame" "Game" "RolePlaying")
8977 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
8978 #:comment '((#f "Classic 2D point and click adventure game")
8979 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
8980 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
8981 ("it" "Gioco classico di avventura punta e clicca 2D"))))
8982 #t))))
8983 (native-inputs
8984 `(("bash" ,bash)
8985 ("unzip" ,unzip)))
8986 (inputs
8987 `(("scummvm" ,scummvm)
8988 ("drascula-int"
8989 ,(let ((version "1.1"))
8990 (origin
8991 (method url-fetch)
8992 (uri (string-append "mirror://sourceforge/scummvm/extras/"
8993 "Drascula_%20The%20Vampire%20Strikes%20Back/"
8994 "drascula-int-" version ".zip"))
8995 (sha256
8996 (base32
8997 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
8998 ("drascula-audio"
8999 ,(let ((version "2.0"))
9000 (origin
9001 (method url-fetch)
9002 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9003 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9004 "drascula-audio-" version ".zip"))
9005 (sha256
9006 (base32
9007 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9008 (home-page "https://www.scummvm.org")
9009 (synopsis "Classic 2D point and click adventure game")
9010 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9011 point and click adventure game.
9012
9013 In Drascula you play the role of John Hacker, a British estate agent, that
9014 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9015 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9016 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9017 the World and demonstrating that he is even more evil than his brother Vlad.")
9018 ;; Drascula uses a BSD-like license.
9019 (license (license:non-copyleft "file:///readme.txt"))))
9020
9021 (define (make-lure-package name language hash)
9022 (package
9023 (name name)
9024 (version "1.1")
9025 (source
9026 (origin
9027 (method url-fetch)
9028 (uri (string-append
9029 "mirror://sourceforge/scummvm/extras/"
9030 "Lure%20of%20the%20Temptress/"
9031 name "-" version ".zip"))
9032 (sha256
9033 (base32 hash))))
9034 (build-system trivial-build-system)
9035 (arguments
9036 `(#:modules ((guix build utils))
9037 #:builder
9038 (begin
9039 (use-modules (guix build utils))
9040 (let* ((out (assoc-ref %outputs "out"))
9041 (share (string-append out "/share"))
9042 (data (string-append share "/" ,name "/" ,language))
9043 (apps (string-append share "/applications"))
9044 (bin (string-append out "/bin"))
9045 (executable (string-append bin "/" ,name))
9046 (scummvm (assoc-ref %build-inputs "scummvm")))
9047 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9048 "/bin/unzip")))
9049 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9050 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9051 (for-each (lambda (f) (install-file f doc))
9052 (find-files "." "\\.(txt|PDF|pdf)$")))
9053 (for-each (lambda (f) (install-file f data))
9054 (find-files "." "\\.(vga|VGA)$"))
9055 ;; Build the executable.
9056 (mkdir-p bin)
9057 (let ((bash (assoc-ref %build-inputs "bash")))
9058 (with-output-to-file executable
9059 (lambda ()
9060 (format #t "#!~a/bin/bash~%" bash)
9061 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9062 scummvm ,language data))))
9063 (chmod executable #o755)
9064 ;; Create desktop file. There is no dedicated
9065 ;; icon for the game, so we borrow SCUMMVM's.
9066 (mkdir-p apps)
9067 (with-output-to-file (string-append apps "/" ,name ".desktop")
9068 (lambda _
9069 (format #t
9070 "[Desktop Entry]~@
9071 Name=Lure of the Temptress~@
9072 GenericName=Lure~@
9073 Exec=~a~@
9074 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9075 Categories=AdventureGame;Game;RolePlaying;~@
9076 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9077 Comment=Classic 2D point and click adventure game~@
9078 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9079 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9080 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9081 Type=Application~%"
9082 executable scummvm)))
9083 #t))))
9084 (native-inputs
9085 `(("unzip" ,unzip)))
9086 (inputs
9087 `(("bash" ,bash)
9088 ("scummvm" ,scummvm)))
9089 (home-page "https://www.scummvm.org")
9090 (synopsis "2D point and click fantasy adventure game")
9091 (description
9092 "Lure of the Temptress is a classic 2D point and click adventure game.
9093
9094 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9095 intents and purposes, a good man. After decades of unrest the King has united
9096 the warring factions in his kingdom and all his lands are at peace, except
9097 a remote region around a town called Turnvale. A revolt has recently taken
9098 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9099 Selena, the titular temptress. The king calls together his finest horsemen
9100 and heads off (with you in tow) to Turnvale just to witness how hellish
9101 mercenary monsters called Skorl are invading the town.
9102
9103 The king's men are defeated, the king is killed and you fall of your horse and
9104 bang your head heavily on the ground. You have been *unconscious for a while
9105 when you realize that you are in a dingy cell guarded by a not so friendly
9106 Skorl. Maybe it would be an idea to try and escape...")
9107 (license (license:non-copyleft "file:///README"))))
9108
9109 (define-public lure
9110 (make-lure-package
9111 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9112
9113 (define-public lure-de
9114 (make-lure-package
9115 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9116
9117 (define-public lure-es
9118 (make-lure-package
9119 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9120
9121 (define-public lure-fr
9122 (make-lure-package
9123 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9124
9125 (define-public lure-it
9126 (make-lure-package
9127 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9128
9129 (define (make-queen-package name file-prefix release language hash)
9130 (package
9131 (name name)
9132 (version release)
9133 (source
9134 (origin
9135 (method url-fetch)
9136 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9137 "Flight%20of%20the%20Amazon%20Queen/"
9138 file-prefix release ".zip"))
9139 (sha256
9140 (base32 hash))))
9141 (build-system trivial-build-system)
9142 (arguments
9143 `(#:modules ((guix build utils))
9144 #:builder
9145 (begin
9146 (use-modules (guix build utils))
9147 (let* ((out (assoc-ref %outputs "out"))
9148 (share (string-append out "/share"))
9149 (data (string-append share "/" ,name))
9150 (apps (string-append share "/applications"))
9151 (bin (string-append out "/bin"))
9152 (executable (string-append bin "/" ,name))
9153 (scummvm (assoc-ref %build-inputs "scummvm")))
9154 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9155 "/bin/unzip")))
9156 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9157 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9158 (install-file "readme.txt" doc))
9159 (install-file "queen.1c" data)
9160 (mkdir-p bin)
9161 (let ((bash (assoc-ref %build-inputs "bash")))
9162 (with-output-to-file executable
9163 (lambda ()
9164 (format #t "#!~a/bin/bash~%" bash)
9165 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9166 scummvm data))))
9167 (chmod executable #o755)
9168 ;; Create desktop file. There is no dedicated
9169 ;; icon for the game, so we borrow SCUMMVM's.
9170 (mkdir-p apps)
9171 (with-output-to-file (string-append apps "/" ,name ".desktop")
9172 (lambda _
9173 (format #t
9174 "[Desktop Entry]~@
9175 Name=Flight of the Amazon Queen~@
9176 GenericName=Queen~@
9177 Comment=Embark on a quest to rescue a kidnapped princess and in the process, discover the true sinister intentions of a suspiciously located Lederhosen company~@
9178 Comment[de]=Begib dich auf ein Abenteuer, um eine entführte Prinzessin zu retten und entdecke die wahren, finsteren Absichten eines verdächtig erscheinenden Lederhosen-Unternehmens~@
9179 Type=Application~@
9180 Exec=~a~@
9181 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9182 Categories=AdventureGame;Game;RolePlaying;~@
9183 Keywords=adventure;game;roleplaying;fantasy;~%"
9184 executable scummvm))))
9185 #t)))
9186 (native-inputs
9187 `(("unzip" ,unzip)))
9188 (inputs
9189 `(("bash" ,bash)
9190 ("scummvm" ,scummvm)))
9191 (home-page "https://www.scummvm.org/")
9192 (synopsis "Classic 2D point and click adventure game")
9193 (description "Flight of the Amazon Queen is a 2D point-and-click
9194 adventure game set in the 1940s.
9195
9196 You assume the role of Joe King, a pilot for hire who is given the job
9197 of flying Faye Russell (a famous movie star) into the Amazon jungle
9198 for a photo shoot. Of course, things never go according to plans.
9199 After an unfortunate turn of events they find themselves stranded in
9200 the heart of the Amazon jungle, where Joe will embark on a quest to
9201 rescue a kidnapped princess and in the process, discover the true
9202 sinister intentions of a suspiciously located Lederhosen company. In
9203 a rich 2D environment, Joe will cross paths with a variety of unlikely
9204 jungle inhabitants including, but not limited to, a tribe of Amazon
9205 women and 6-foot-tall pygmies.")
9206 (license (license:non-copyleft "file:///readme.txt"))))
9207
9208 (define-public queen
9209 (make-queen-package
9210 "queen" "FOTAQ_Talkie-" "1.1" "en"
9211 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9212
9213 (define-public queen-de
9214 (make-queen-package
9215 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9216 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9217
9218 (define-public queen-fr
9219 (make-queen-package
9220 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9221 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9222
9223 (define-public queen-it
9224 (make-queen-package
9225 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9226 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9227
9228 (define-public sky
9229 (package
9230 (name "sky")
9231 (version "1.2") ;1.3 is floppy version
9232 (source
9233 (origin
9234 (method url-fetch)
9235 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9236 "Beneath%20a%20Steel%20Sky/"
9237 "bass-cd-" version ".zip"))
9238 (sha256
9239 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9240 (build-system trivial-build-system)
9241 (arguments
9242 `(#:modules ((guix build utils))
9243 #:builder
9244 (begin
9245 (use-modules (guix build utils))
9246 (let* ((out (assoc-ref %outputs "out"))
9247 (share (string-append out "/share"))
9248 (data (string-append share "/" ,name))
9249 (apps (string-append share "/applications"))
9250 (bin (string-append out "/bin"))
9251 (executable (string-append bin "/" ,name))
9252 (scummvm (assoc-ref %build-inputs "scummvm")))
9253 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9254 "/bin/unzip")))
9255 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9256 (let ((doc (string-append share "/doc/bass-" ,version)))
9257 (install-file "readme.txt" doc))
9258 (for-each (lambda (f) (install-file f data))
9259 (find-files "." "^sky\\."))
9260 ;; Build the executable.
9261 (mkdir-p bin)
9262 (let ((bash (assoc-ref %build-inputs "bash")))
9263 (with-output-to-file executable
9264 (lambda ()
9265 (format #t "#!~a/bin/bash~%" bash)
9266 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9267 (chmod executable #o755)
9268 ;; Create desktop file. There is no dedicated
9269 ;; icon for the game, so we borrow SCUMMVM's.
9270 (mkdir-p apps)
9271 (with-output-to-file (string-append apps "/" ,name ".desktop")
9272 (lambda _
9273 (format #t
9274 "[Desktop Entry]~@
9275 Name=Beneath a Steel Sky~@
9276 GenericName=Bass~@
9277 Exec=~a~@
9278 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9279 Categories=AdventureGame;Game;RolePlaying;~@
9280 Keywords=adventure;game;roleplaying;cyberpunk;~@
9281 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9282 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9283 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9284 Type=Application~%"
9285 executable scummvm)))
9286 #t))))
9287 (native-inputs
9288 `(("unzip" ,unzip)))
9289 (inputs
9290 `(("bash" ,bash)
9291 ("scummvm" ,scummvm)))
9292 (home-page "https://www.scummvm.org/")
9293 (synopsis "Classic 2D point an click science-fiction adventure game")
9294 (description
9295 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9296 post-apocalyptic vision of the future. It revolves around Union City,
9297 where selfishness, rivalry, and corruption by its citizens seems to be
9298 all too common, those who can afford it live underground, away from
9299 the pollution and social problems which are plaguing the city.
9300
9301 You take on the role of Robert Foster, an outcast of sorts from the
9302 city since a boy who was raised in a remote environment outside of
9303 Union City simply termed ``the gap''. Robert's mother took him away
9304 from Union City as a child on their way to ``Hobart'' but the
9305 helicopter crashed on its way. Unfortunately, Robert's mother died,
9306 but he survived and was left to be raised by a local tribe from the
9307 gap.
9308
9309 Years later, Union City security drops by and abducts Robert, killing
9310 his tribe in the process; upon reaching the city the helicopter taking
9311 him there crashes with him escaping, high upon a tower block in the
9312 middle of the city. He sets out to discover the truth about his past,
9313 and to seek vengeance for the killing of his tribe.")
9314 (license (license:non-copyleft "file:///readme.txt"))))
9315
9316 (define-public gnurobots
9317 (package
9318 (name "gnurobots")
9319 (version "1.2.0")
9320 (source
9321 (origin
9322 (method url-fetch)
9323 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9324 version ".tar.gz"))
9325 (sha256
9326 (base32
9327 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9328 (build-system gnu-build-system)
9329 (inputs
9330 `(("glib" ,glib)
9331 ("gtk+" ,gtk+-2)
9332 ("vte" ,vte/gtk+-2)
9333 ("readline" ,readline)
9334 ("guile" ,guile-1.8)))
9335 (native-inputs
9336 `(("pkg-config" ,pkg-config)))
9337 (arguments
9338 `(#:make-flags
9339 (list
9340 ;; Do not abort build on "deprecated-declarations" warnings.
9341 "CFLAGS=-Wno-error=deprecated-declarations"
9342 ;; Find readline headers in sub-directory.
9343 (string-append "READLINE_CFLAGS=-I"
9344 (assoc-ref %build-inputs "readline")
9345 "/include/readline/"))
9346 #:phases
9347 (modify-phases %standard-phases
9348 (add-after 'install 'install-doc
9349 (lambda* (#:key outputs #:allow-other-keys)
9350 (install-file "doc/Robots-HOWTO"
9351 (string-append (assoc-ref outputs "out")
9352 "/share/doc/gnurobots-"
9353 ,version))
9354 #t)))))
9355 (home-page "https://www.gnu.org/software/gnurobots/")
9356 (synopsis "Program a little robot and watch it explore a world")
9357 (description
9358 "GNU Robots is a game in which you program a robot to explore a world
9359 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9360 the game is to stay alive and collect prizes. The robot program conveniently
9361 may be written in a plain text file in the Scheme programming language.")
9362 (license license:gpl3+)))
9363
9364 (define-public ri-li
9365 (package
9366 (name "ri-li")
9367 (version "2.0.1")
9368 (source (origin
9369 (method url-fetch)
9370 (uri (string-append "mirror://sourceforge/ri-li/"
9371 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9372 "Ri-li-" version ".tar.bz2"))
9373 (sha256
9374 (base32
9375 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9376 ;; Taken from
9377 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9378 ;; It doesn't build otherwise.
9379 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9380 (build-system gnu-build-system)
9381 (arguments
9382 `(#:phases
9383 (modify-phases %standard-phases
9384 ;; Remove "gentoo" subdirectory from Makefile, as it is
9385 ;; missing a make file and generates a build failure.
9386 (add-after 'configure 'fix-build
9387 (lambda _
9388 (substitute* "Makefile"
9389 ((" gentoo") ""))
9390 #t))
9391 (add-after 'install 'install-desktop-file
9392 (lambda* (#:key outputs #:allow-other-keys)
9393 (let* ((out (assoc-ref outputs "out"))
9394 (apps (string-append out "/share/applications"))
9395 (pixmaps (string-append out "/share/pixmaps")))
9396 (for-each (lambda (f) (install-file f pixmaps))
9397 (find-files "data" "\\.(png|ico)$"))
9398 (mkdir-p apps)
9399 (with-output-to-file (string-append apps "/ri-li.desktop")
9400 (lambda _
9401 (format #t
9402 "[Desktop Entry]~@
9403 Name=Ri-li~@
9404 Exec=~a/bin/Ri_li~@
9405 Icon=~a/Ri-li-icon-32x32.png~@
9406 Categories=Game;ArcadeGame;~@
9407 Keywords=toy;train;wooden;snake-like;engine;~@
9408 Comment=a toy simulator game~@
9409 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9410 Comment[fr]=un jeu de petit train~@
9411 Comment[ro_RO]=un joc cu un tren de jucărie~@
9412 Terminal=false~@
9413 Type=Application~%"
9414 out pixmaps))))
9415 #t))
9416 (add-after 'install-desktop-file 'remove-spurious-files
9417 ;; Delete redundant files already installed somewhere else.
9418 (lambda* (#:key outputs #:allow-other-keys)
9419 (let ((out (assoc-ref outputs "out")))
9420 (for-each delete-file
9421 (find-files (string-append out "/share/Ri-li")
9422 "\\.(png|ico)|COPYING"))
9423 #t))))))
9424 (inputs
9425 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9426 (home-page "http://www.ri-li.org")
9427 (synopsis "Toy train simulation game")
9428 (description "Ri-li is a game in which you drive a wooden toy
9429 steam locomotive across many levels and collect all the coaches to
9430 win.")
9431 ;; The project is dual-licensed GPL2+ and GPL3+.
9432 (license (list license:gpl2+ license:gpl3+))))
9433
9434 (define-public freeorion
9435 (package
9436 (name "freeorion")
9437 (version "0.4.9")
9438 (source
9439 (origin
9440 (method url-fetch)
9441 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9442 "download/v" version "/FreeOrion_v" version
9443 "_2020-02-02.db53471_Source.tar.gz"))
9444 (sha256
9445 (base32 "1qfnqkysagh8dw26plk229qh17mv4prjxs6qhfyczrmrrakb72an"))
9446 (modules '((guix build utils)))
9447 (snippet
9448 '(begin
9449 ;; There are some bundled fonts.
9450 (for-each delete-file-recursively '("default/data/fonts"))
9451 #t))))
9452 (build-system cmake-build-system)
9453 (arguments
9454 '(#:tests? #f ;no test
9455 #:phases
9456 (modify-phases %standard-phases
9457 (add-after 'unpack 'unbundle-fonts
9458 (lambda* (#:key inputs #:allow-other-keys)
9459 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9460 "/share/fonts/truetype/")))
9461 (substitute* "UI/ClientUI.cpp"
9462 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9463 all type)
9464 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9465 #t))))))
9466 (inputs
9467 `(("boost" ,boost)
9468 ("boost_signals" ,boost-signals2)
9469 ("font-dejavu" ,font-dejavu)
9470 ("font-roboto" ,font-google-roboto)
9471 ("freetype2" ,freetype)
9472 ("glew" ,glew)
9473 ("glu" ,glu)
9474 ("libogg" ,libogg)
9475 ("libpng" ,libpng)
9476 ("libvorbis" ,libvorbis)
9477 ("openal" ,openal)
9478 ("python2" ,python-2.7)
9479 ("sdl2" ,sdl2)
9480 ("zlib" ,zlib)))
9481 (home-page "https://www.freeorion.org/index.php/Main_Page")
9482 (synopsis "Turn-based space empire and galactic conquest computer game")
9483 (description
9484 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9485 computer game being designed and built by the FreeOrion project. Control an
9486 empire with the goal of exploring the galaxy, expanding your territory,
9487 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9488 inspired by the tradition of the Master of Orion games, but is not a clone or
9489 remake of that series or any other game.")
9490 ;; Source code is released under gpl2. Artwork, music and sounds, and
9491 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9492 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9493 ;; released under lgpl2.1+.
9494 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9495
9496 (define-public leela-zero
9497 (package
9498 (name "leela-zero")
9499 (version "0.17")
9500 (source
9501 (origin
9502 (method git-fetch)
9503 (uri (git-reference
9504 (url "https://github.com/leela-zero/leela-zero")
9505 (commit (string-append "v" version))))
9506 (file-name (git-file-name name version))
9507 (sha256
9508 (base32
9509 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
9510 (patches (search-patches "leela-zero-gtest.patch"))))
9511 (build-system cmake-build-system)
9512 (native-inputs
9513 `(("googletest" ,googletest)))
9514 (inputs
9515 `(("boost" ,boost)
9516 ("ocl-icd" ,ocl-icd)
9517 ("openblas" ,openblas)
9518 ("opencl-headers" ,opencl-headers)
9519 ("qtbase" ,qtbase)
9520 ("zlib" ,zlib)))
9521 (arguments
9522 '(#:configure-flags '("-DUSE_BLAS=YES")
9523 #:phases (modify-phases %standard-phases
9524 (add-before 'configure 'fix-tests
9525 (lambda* (#:key outputs #:allow-other-keys)
9526 (let ((home (getcwd)))
9527 (setenv "HOME" home)
9528 (substitute* "src/tests/gtests.cpp"
9529 (("\\.\\./src/tests/0k\\.txt")
9530 (string-append home "/src/tests/0k.txt"))
9531 (("cfg_gtp_mode = true;")
9532 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
9533 #t))
9534 (replace 'check
9535 (lambda _
9536 (invoke "./tests"))))))
9537 (home-page "https://github.com/leela-zero/leela-zero")
9538 (synopsis "Program playing the game of Go")
9539 (description
9540 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
9541 the AlphaGo Zero paper. The current best network weights file for the engine
9542 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
9543 (license license:gpl3+)))
9544
9545 (define-public q5go
9546 (package
9547 (name "q5go")
9548 (version "1.0")
9549 (source (origin
9550 (method git-fetch)
9551 (uri (git-reference
9552 (url "https://github.com/bernds/q5Go")
9553 (commit (string-append "q5go-" version))))
9554 (file-name (git-file-name name version))
9555 (sha256
9556 (base32
9557 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
9558 (build-system gnu-build-system)
9559 (native-inputs
9560 `(("pkg-config" ,pkg-config)))
9561 (inputs
9562 `(("qtbase" ,qtbase)
9563 ("qtmultimedia" ,qtmultimedia)
9564 ("qtsvg" ,qtsvg)))
9565 (arguments
9566 '(#:phases
9567 (modify-phases %standard-phases
9568 (add-after 'unpack 'fix-configure-script
9569 (lambda _
9570 ;; Bypass the unavailable qtchooser program.
9571 (substitute* "configure"
9572 (("test -z \"QTCHOOSER\"")
9573 "false")
9574 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
9575 command))
9576 #t))
9577 (add-after 'unpack 'fix-paths
9578 (lambda _
9579 (substitute* '("src/pics/Makefile.in"
9580 "src/translations/Makefile.in")
9581 (("\\$\\(datadir\\)/qGo/")
9582 "$(datadir)/q5go/"))
9583 #t))
9584 (add-after 'install 'install-desktop-file
9585 (lambda* (#:key outputs #:allow-other-keys)
9586 (let* ((out (assoc-ref outputs "out"))
9587 (apps (string-append out "/share/applications"))
9588 (pics (string-append out "/share/q5go/pics")))
9589 (delete-file-recursively (string-append out "/share/applnk"))
9590 (delete-file-recursively (string-append out "/share/mimelnk"))
9591 (install-file "../source/src/pics/Bowl.ico" pics)
9592 (mkdir-p apps)
9593 (with-output-to-file (string-append apps "/q5go.desktop")
9594 (lambda _
9595 (format #t
9596 "[Desktop Entry]~@
9597 Name=q5go~@
9598 Exec=~a/bin/q5go~@
9599 Icon=~a/Bowl.ico~@
9600 Categories=Game;~@
9601 Comment=Game of Go~@
9602 Comment[de]=Spiel des Go~@
9603 Comment[eo]=Goo~@
9604 Comment[es]=Juego de Go~@
9605 Comment[fr]=Jeu de Go~@
9606 Comment[ja]=囲碁~@
9607 Comment[ko]=바둑~@
9608 Comment[zh]=围棋~@
9609 Terminal=false~@
9610 Type=Application~%"
9611 out pics))))
9612 #t)))))
9613 (synopsis "Qt GUI to play the game of Go")
9614 (description
9615 "This a tool for Go players which performs the following functions:
9616 @itemize
9617 @item SGF editor,
9618 @item Analysis frontend for Leela Zero (or compatible engines),
9619 @item GTP interface (to play against an engine),
9620 @item IGS client (to play on the internet),
9621 @item Export games to a variety of formats.
9622 @end itemize")
9623 (home-page "https://github.com/bernds/q5Go")
9624 (license license:gpl2+)))
9625
9626 (define-public ktuberling
9627 (package
9628 (name "ktuberling")
9629 (version "19.08.3")
9630 (source
9631 (origin
9632 (method url-fetch)
9633 (uri (string-append "mirror://kde/stable/applications/" version
9634 "/src/ktuberling-" version ".tar.xz"))
9635 (sha256
9636 (base32 "1qdf4q6wjh1lnlqw5c8z4rpj9w5vbyjfri1dah6yjm3mwppbc12j"))))
9637 (build-system qt-build-system)
9638 (native-inputs
9639 `(("extra-cmake-modules" ,extra-cmake-modules)
9640 ("perl" ,perl)))
9641 (inputs
9642 `(("kcompletion" ,kcompletion)
9643 ("kconfigwidgets" ,kconfigwidgets)
9644 ("kcoreaddons" ,kcoreaddons)
9645 ("kcrash" ,kcrash)
9646 ("kdbusaddons" ,kdbusaddons)
9647 ("kdelibs4support" ,kdelibs4support)
9648 ("ki18n" ,ki18n)
9649 ("kwidgetsaddons" ,kwidgetsaddons)
9650 ("kxmlgui" ,kxmlgui)
9651 ("libkdegames" ,libkdegames)
9652 ("qtbase" ,qtbase)
9653 ("qtmultimedia" ,qtmultimedia)
9654 ("qtdeclarative" ,qtdeclarative)
9655 ("qtsvg" ,qtsvg)))
9656 (home-page "https://games.kde.org/")
9657 (synopsis "Stamp drawing toy")
9658 (description "KTuberling is a drawing toy intended for small children and
9659 adults who remain young at heart. The game has no winner; the only purpose is
9660 to make the funniest faces you can. Several activities are possible, e.g.:
9661
9662 @itemize
9663 @item Give the potato a funny face, clothes, and other goodies
9664 @item Build a small town, complete with school, zoo, and fire department
9665 @item Create a fantastic moonscape with spaceships and aliens
9666 @item Top a pizza
9667 @end itemize
9668
9669 KTuberling can speak the name of each the object in several languages,
9670 to assist in learning basic vocabulary.
9671
9672 This package is part of the KDE games module.")
9673 (license (list license:gpl2+ license:fdl1.2+))))
9674
9675 (define-public picmi
9676 (package
9677 (name "picmi")
9678 (version "19.08.3")
9679 (source
9680 (origin
9681 (method url-fetch)
9682 (uri (string-append "mirror://kde/stable/applications/" version
9683 "/src/picmi-" version ".tar.xz"))
9684 (sha256
9685 (base32 "0z9mpmv49w914gqdx274brdzl6d1bz9j9nkvbwgmr3iq1ba49m3f"))))
9686 (build-system qt-build-system)
9687 (native-inputs
9688 `(("extra-cmake-modules" ,extra-cmake-modules)
9689 ("kdoctools" ,kdoctools)))
9690 (inputs
9691 `(("kcoreaddons" ,kcoreaddons)
9692 ("kcrash" ,kcrash)
9693 ("kdbusaddons" ,kdbusaddons)
9694 ("kdeclarative" ,kdeclarative)
9695 ("ki18n" ,ki18n)
9696 ("kio" ,kio)
9697 ("knewstuff" ,knewstuff)
9698 ("kxmlgui" ,kxmlgui)
9699 ("libkdegames" ,libkdegames)
9700 ("qtbase" ,qtbase)
9701 ("qtdeclarative" ,qtdeclarative)
9702 ("qtsvg" ,qtsvg)))
9703 (home-page "https://games.kde.org/")
9704 (synopsis "Number logic game")
9705 (description "Picmi is a number logic game in which cells in a grid have
9706 to be colored or left blank according to numbers given at the side of the
9707 grid. The aim is to reveal a hidden picture.
9708
9709 This package is part of the KDE games module.")
9710 (license (list license:gpl2+ license:fdl1.2+))))
9711
9712 (define-public kolf
9713 (package
9714 (name "kolf")
9715 (version "19.08.3")
9716 (source
9717 (origin
9718 (method url-fetch)
9719 (uri (string-append "mirror://kde/stable/applications/" version
9720 "/src/kolf-" version ".tar.xz"))
9721 (sha256
9722 (base32 "06sfd0llr5cc3zf1vrpcxgw9bm009ky7y8822kynic9ipcd4z1hw"))))
9723 (build-system qt-build-system)
9724 (native-inputs
9725 `(("extra-cmake-modules" ,extra-cmake-modules)
9726 ("kdoctools" ,kdoctools)))
9727 (inputs
9728 `(("kcompletion" ,kcompletion)
9729 ("kconfigwidgets" ,kconfigwidgets)
9730 ("kcoreaddons" ,kcoreaddons)
9731 ("kcrash" ,kcrash)
9732 ("kdbusaddons" ,kdbusaddons)
9733 ("ki18n" ,ki18n)
9734 ("kio" ,kio)
9735 ("kwidgetsaddons" ,kwidgetsaddons)
9736 ("kxmlgui" ,kxmlgui)
9737 ("ktextwidgets" ,ktextwidgets)
9738 ("libkdegames" ,libkdegames)
9739 ("qtbase" ,qtbase)
9740 ("qtdeclarative" ,qtdeclarative)))
9741 (home-page "https://games.kde.org/")
9742 (synopsis "Miniature golf game")
9743 (description "Kolf is a miniature golf game for one to ten players. The
9744 game is played from an overhead view, with a short bar representing the golf
9745 club. Kolf features many different types of objects, such as water hazards,
9746 slopes, sand traps, and black holes (warps), among others.
9747
9748 Features are:
9749 @itemize
9750 @item Single and Multi-player (up to ten players) modes
9751 @item High scores table
9752 @item Dynamic courses
9753 @item Third-party courses
9754 @item Course editor
9755 @end itemize
9756
9757 This package is part of the KDE games module.")
9758 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9759
9760 (define-public libkmahjongg
9761 (package
9762 (name "libkmahjongg")
9763 (version "19.08.3")
9764 (source
9765 (origin
9766 (method url-fetch)
9767 (uri (string-append "mirror://kde/stable/applications/"
9768 version "/src/libkmahjongg-" version ".tar.xz"))
9769 (sha256
9770 (base32 "0rdimk11hrc8qrmiv26z0ddjzi1k6806c0rfskx4cwmildmh6zgx"))))
9771 (build-system qt-build-system)
9772 (native-inputs
9773 `(("extra-cmake-modules" ,extra-cmake-modules)))
9774 (inputs
9775 `(("kauth" ,kauth)
9776 ("kcompletion" ,kcompletion)
9777 ;("kconfig" ,kconfig)
9778 ("kcodecs" ,kcodecs)
9779 ("kconfigwidgets" ,kconfigwidgets)
9780 ("kcoreaddons" ,kcoreaddons)
9781 ("ki18n" ,ki18n)
9782 ("kwidgetsaddons" ,kwidgetsaddons)
9783 ("qtbase" ,qtbase)
9784 ("qtsvg" ,qtsvg)))
9785 (home-page "https://games.kde.org/")
9786 (synopsis "Shared library for kmahjongg and kshisen")
9787 (description "Shared library and common files for kmahjongg, kshisen and
9788 other Mah Jongg like games.")
9789 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9790
9791 (define-public kmahjongg
9792 (package
9793 (name "kmahjongg")
9794 (version "19.08.3")
9795 (source
9796 (origin
9797 (method url-fetch)
9798 (uri (string-append "mirror://kde/stable/applications/"
9799 version "/src/kmahjongg-" version ".tar.xz"))
9800 (sha256
9801 (base32 "08na845h0nhmfrszdmvfq5y1dy7kgbrlzjp0f5snvbbf7w44ci6p"))))
9802 (build-system qt-build-system)
9803 (native-inputs
9804 `(("extra-cmake-modules" ,extra-cmake-modules)
9805 ("kdoctools" ,kdoctools)))
9806 (inputs
9807 `(("kcompletion" ,kcompletion)
9808 ("kcrash" ,kcrash)
9809 ("kdbusaddons" ,kdbusaddons)
9810 ("kdeclarative" ,kdeclarative)
9811 ("ki18n" ,ki18n)
9812 ("knewstuff" ,knewstuff)
9813 ("kxmlgui" ,kxmlgui)
9814 ("libkdegames" ,libkdegames)
9815 ("libkmahjongg" ,libkmahjongg)
9816 ("qtbase" ,qtbase)
9817 ("qtdeclarative" ,qtdeclarative)
9818 ("qtsvg" ,qtsvg)))
9819 (home-page "https://games.kde.org/")
9820 (synopsis "Tile laying patience")
9821 (description "In KMahjongg the tiles are scrambled and staked on top of
9822 each other to resemble a certain shape. The player is then expected to remove
9823 all the tiles off the game board by locating each tile's matching pair.
9824
9825 A variety of tile layouts are included, as well as an editor to create new
9826 layouts.
9827
9828 This package is part of the KDE games module.")
9829 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9830
9831 (define-public kshisen
9832 (package
9833 (name "kshisen")
9834 (version "19.08.3")
9835 (source
9836 (origin
9837 (method url-fetch)
9838 (uri (string-append "mirror://kde/stable/applications/"
9839 version "/src/kshisen-" version ".tar.xz"))
9840 (sha256
9841 (base32 "1bq5m48af4h5apfp3bfsp76nlpv6h5sc0gd544zv7cgpfznz1sds"))))
9842 (build-system qt-build-system)
9843 (native-inputs
9844 `(("extra-cmake-modules" ,extra-cmake-modules)
9845 ;("perl" ,perl)
9846 ;("pkg-config" ,pkg-config)
9847 ("kdoctools" ,kdoctools)))
9848 (inputs
9849 `(("kauth" ,kauth)
9850 ("kcompletion" ,kcompletion)
9851 ("kconfigwidgets" ,kconfigwidgets)
9852 ("kcoreaddons" ,kcoreaddons)
9853 ("kcrash" ,kcrash)
9854 ("kdbusaddons" ,kdbusaddons)
9855 ("ki18n" ,ki18n)
9856 ("kxmlgui" ,kxmlgui)
9857 ("libkdegames" ,libkdegames)
9858 ("libkmahjongg" ,libkmahjongg)
9859 ("qtbase" ,qtbase)
9860 ("qtdeclarative" ,qtdeclarative)))
9861 (home-page "https://games.kde.org/")
9862 (synopsis "Shisen-Sho solitaire game")
9863 (description "KShisen is a solitaire-like game played using the standard
9864 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
9865 scrambled tiles
9866
9867 This package is part of the KDE games module.")
9868 (license license:gpl2+)))
9869
9870 (define-public kajongg
9871 (package
9872 (name "kajongg")
9873 (version "19.08.3")
9874 (source
9875 (origin
9876 (method url-fetch)
9877 (uri (string-append "mirror://kde/stable/applications/"
9878 version "/src/kajongg-" version ".tar.xz"))
9879 (sha256
9880 (base32 "0ql6p5zifdpdf65r7ki9ml123azpwwk9x3x8r9ij6xhjnf7p7x6w"))))
9881 (build-system qt-build-system)
9882 (native-inputs
9883 `(("extra-cmake-modules" ,extra-cmake-modules)
9884 ;("perl" ,perl)
9885 ("kdoctools" ,kdoctools)))
9886 (inputs
9887 `(("kconfig" ,kconfig)
9888 ("kconfigwidgets" ,kconfigwidgets)
9889 ("kcoreaddons" ,kcoreaddons)
9890 ("ki18n" ,ki18n)
9891 ("libkmahjongg" ,libkmahjongg)
9892 ("python" ,python)
9893 ("qtbase" ,qtbase)
9894 ("qtsvg" ,qtsvg)))
9895 (propagated-inputs
9896 `(("python-twisted" ,python-twisted)
9897 ("python-pyqt" ,python-pyqt)))
9898 ;; FIXME: Need to wrap PYTHONPATH
9899 (home-page "https://games.kde.org/")
9900 (synopsis "Classical Mah Jongg game for 4 players")
9901 (description "Kajongg is the ancient Chinese board game for 4 players.
9902
9903 If you are looking for the Mah Jongg solitaire please use the application
9904 kmahjongg.
9905
9906 Kajongg can be used in two different ways: Scoring a manual game where you
9907 play as always and use Kajongg for the computation of scores and for
9908 bookkeeping. Or you can use Kajongg to play against any combination of other
9909 human players or computer players.
9910
9911 This package is part of the KDE games module.")
9912 (license (list license:gpl2+ license:fdl1.2+))))
9913
9914 (define-public kbreakout
9915 (package
9916 (name "kbreakout")
9917 (version "19.08.3")
9918 (source
9919 (origin
9920 (method url-fetch)
9921 (uri (string-append "mirror://kde/stable/applications/" version
9922 "/src/kbreakout-" version ".tar.xz"))
9923 (sha256
9924 (base32 "0gwzx1z9mxrjlcjzglg8cxkyd6900whcar3b5j9laxxarc6xhj8w"))))
9925 (build-system qt-build-system)
9926 (native-inputs
9927 `(("extra-cmake-modules" ,extra-cmake-modules)
9928 ("kdoctools" ,kdoctools)))
9929 (inputs
9930 `(("kcompletion" ,kcompletion)
9931 ("kconfig" ,kconfig)
9932 ("kconfigwidgets" ,kconfigwidgets)
9933 ("kcoreaddons" ,kcoreaddons)
9934 ("kcrash" ,kcrash)
9935 ("kdbusaddons" ,kdbusaddons)
9936 ("ki18n" ,ki18n)
9937 ("kwidgetsaddons" ,kwidgetsaddons)
9938 ("kxmlgui" ,kxmlgui)
9939 ("libkdegames" ,libkdegames)
9940 ("qtbase" ,qtbase)
9941 ("qtdeclarative" ,qtdeclarative)))
9942 (home-page "https://games.kde.org/")
9943 (synopsis "Breakout like game")
9944 (description "KBreakout is similar to the classics breakout and xboing,
9945 featuring a number of added graphical enhancements and effects. You control a
9946 paddle at the bottom of the playing-field, and must destroy bricks at the top
9947 by bouncing balls against them.
9948
9949 This package is part of the KDE games module.")
9950 (license (list license:gpl2+ license:fdl1.2+))))
9951
9952 (define-public kmines
9953 (package
9954 (name "kmines")
9955 (version "19.08.3")
9956 (source
9957 (origin
9958 (method url-fetch)
9959 (uri (string-append "mirror://kde/stable/applications/" version
9960 "/src/kmines-" version ".tar.xz"))
9961 (sha256
9962 (base32 "0ac3za36lh8hpx6mqfic9amwmzhzhzplm9hg3pw12gxl5a9mvfsf"))))
9963 (build-system qt-build-system)
9964 (native-inputs
9965 `(("extra-cmake-modules" ,extra-cmake-modules)
9966 ("kdoctools" ,kdoctools)))
9967 (inputs
9968 `(("kcompletion" ,kcompletion)
9969 ("kconfig" ,kconfig)
9970 ("kconfigwidgets" ,kconfigwidgets)
9971 ("kcoreaddons" ,kcoreaddons)
9972 ("kcrash" ,kcrash)
9973 ("kdbusaddons" ,kdbusaddons)
9974 ("ki18n" ,ki18n)
9975 ("ktextwidgets" ,ktextwidgets)
9976 ("kwidgetsaddons" ,kwidgetsaddons)
9977 ("kxmlgui" ,kxmlgui)
9978 ("libkdegames" ,libkdegames)
9979 ("qtbase" ,qtbase)
9980 ("qtdeclarative" ,qtdeclarative)))
9981 (home-page "https://games.kde.org/")
9982 (synopsis "Classical mine sweeper game")
9983 (description "KMines is a classic Minesweeper game. The idea is to
9984 uncover all the squares without blowing up any mines. When a mine is blown
9985 up, the game is over.
9986
9987 This package is part of the KDE games module.")
9988 (license (list license:gpl2+ license:fdl1.2+))))
9989
9990 (define-public konquest
9991 (package
9992 (name "konquest")
9993 (version "19.08.3")
9994 (source
9995 (origin
9996 (method url-fetch)
9997 (uri (string-append "mirror://kde/stable/applications/"
9998 version "/src/konquest-" version ".tar.xz"))
9999 (sha256
10000 (base32 "02gjxskhi10a1sqh3skcild8zria7wncz1a4sbz7ax1p851q76k1"))))
10001 (build-system qt-build-system)
10002 (native-inputs
10003 `(("extra-cmake-modules" ,extra-cmake-modules)
10004 ("kdoctools" ,kdoctools)))
10005 (inputs
10006 `(("kcompletion" ,kcompletion)
10007 ("kconfig" ,kconfig)
10008 ("kcoreaddons" ,kcoreaddons)
10009 ("kcrash" ,kcrash)
10010 ("kdbusaddons" ,kdbusaddons)
10011 ("kguiaddons" ,kguiaddons)
10012 ("ki18n" ,ki18n)
10013 ("kwidgetsaddons" ,kwidgetsaddons)
10014 ("kxmlgui" ,kxmlgui)
10015 ("libkdegames" ,libkdegames)
10016 ("qtbase" ,qtbase)
10017 ("qtdeclarative" ,qtdeclarative)
10018 ("qtsvg" ,qtsvg)))
10019 (home-page "https://games.kde.org/")
10020 (synopsis "Simple turn-based strategy game")
10021 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10022 conquer other planets by sending ships to them. The goal is to build an
10023 interstellar empire and ultimately conquer all other player's planets. The
10024 game can be played with up to nine empires, commanded either by the computer
10025 or by puny earthlings.
10026
10027 This package is part of the KDE games module.")
10028 (license (list license:gpl2+ license:fdl1.2+))))
10029
10030 (define-public kbounce
10031 (package
10032 (name "kbounce")
10033 (version "19.08.3")
10034 (source
10035 (origin
10036 (method url-fetch)
10037 (uri (string-append "mirror://kde/stable/applications/"
10038 version "/src/kbounce-" version ".tar.xz"))
10039 (sha256
10040 (base32 "02rfv0qzz5cmyfx8f56a45hbm9gsp6m3dcy8ajwx88rw5wpbrr11"))))
10041 (build-system qt-build-system)
10042 (native-inputs
10043 `(("extra-cmake-modules" ,extra-cmake-modules)
10044 ("kdoctools" ,kdoctools)))
10045 (inputs
10046 `(("kcompletion" ,kcompletion)
10047 ("kconfigwidgets" ,kconfigwidgets)
10048 ("kcoreaddons" ,kcoreaddons)
10049 ("kcrash" ,kcrash)
10050 ("kdbusaddons" ,kdbusaddons)
10051 ("ki18n" ,ki18n)
10052 ("kio" ,kio)
10053 ("kwidgetsaddons" ,kwidgetsaddons)
10054 ("kxmlgui" ,kxmlgui)
10055 ("libkdegames" ,libkdegames)
10056 ("qtbase" ,qtbase)
10057 ("qtdeclarative" ,qtdeclarative)
10058 ("qtsvg" ,qtsvg)))
10059 (home-page "https://games.kde.org/")
10060 (synopsis "Jezzball arcade game")
10061 (description "KBounce is a single player arcade game with the elements of
10062 puzzle. It is played on a field, surrounded by wall, with two or more balls
10063 bouncing around within the walls. The object of the game is to build new
10064 walls to decrease the size of the active field.
10065
10066 This package is part of the KDE games module.")
10067 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10068
10069 (define-public kblocks
10070 (package
10071 (name "kblocks")
10072 (version "19.08.3")
10073 (source
10074 (origin
10075 (method url-fetch)
10076 (uri (string-append "mirror://kde/stable/applications/"
10077 version "/src/kblocks-" version ".tar.xz"))
10078 (sha256
10079 (base32 "0qrm0dihzhkxsq9l49ndzms802x6jn92vvabb2zf2q9z593m69cx"))))
10080 (build-system qt-build-system)
10081 (native-inputs
10082 `(("extra-cmake-modules" ,extra-cmake-modules)
10083 ("kdoctools" ,kdoctools)))
10084 (inputs
10085 `(("kcompletion" ,kcompletion)
10086 ("kconfig" ,kconfig)
10087 ("kconfigwidgets" ,kconfigwidgets)
10088 ("kcoreaddons" ,kcoreaddons)
10089 ("kcrash" ,kcrash)
10090 ("kdbusaddons" ,kdbusaddons)
10091 ("ki18n" ,ki18n)
10092 ("kwidgetsaddons" ,kwidgetsaddons)
10093 ("kxmlgui" ,kxmlgui)
10094 ("libkdegames" ,libkdegames)
10095 ("qtbase" ,qtbase)
10096 ("qtdeclarative" ,qtdeclarative)
10097 ("qtsvg" ,qtsvg)))
10098 (home-page "https://games.kde.org/")
10099 (synopsis "Single player falling blocks puzzle game")
10100 (description "KBlocks is the classic Tetris-like falling blocks game.
10101
10102 The idea is to stack the falling blocks to create horizontal lines without any
10103 gaps. When a line is completed it is removed, and more space is available in
10104 the play area. When there is not enough space for blocks to fall, the game is
10105 over.
10106
10107 This package is part of the KDE games module.")
10108 (license (list license:gpl2+ license:fdl1.2+))))
10109
10110 (define-public ksudoku
10111 (package
10112 (name "ksudoku")
10113 (version "19.08.3")
10114 (source
10115 (origin
10116 (method url-fetch)
10117 (uri (string-append "mirror://kde/stable/applications/"
10118 version "/src/ksudoku-" version ".tar.xz"))
10119 (sha256
10120 (base32 "0rcscz91hilm7l3am5w02n0n8l7xhi4l0n4sskznh68kblw0ggw2"))))
10121 (build-system qt-build-system)
10122 (native-inputs
10123 `(("extra-cmake-modules" ,extra-cmake-modules)
10124 ("kdoctools" ,kdoctools)))
10125 (inputs
10126 `(("karchive", karchive)
10127 ("kconfig" ,kconfig)
10128 ("kconfigwidgets" ,kconfigwidgets)
10129 ("kcoreaddons" ,kcoreaddons)
10130 ("kcrash" ,kcrash)
10131 ("kguiaddons" ,kguiaddons)
10132 ("ki18n" ,ki18n)
10133 ("kiconthemes" ,kiconthemes)
10134 ("kio" ,kio)
10135 ("kwidgetsaddons" ,kwidgetsaddons)
10136 ("kxmlgui" ,kxmlgui)
10137 ("libkdegames" ,libkdegames)
10138 ("glu" ,glu)
10139 ("qtbase" ,qtbase)
10140 ("qtdeclarative" ,qtdeclarative)
10141 ("qtsvg" ,qtsvg)))
10142 (home-page "https://games.kde.org/")
10143 (synopsis "Sudoku puzzle game and solver")
10144 (description "KSudoku is a Sudoku game and solver, supporting a range of
10145 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10146 puzzle sheets and find the solution to any Sudoku puzzle.
10147
10148 The word Sudoku means \"single number in an allotted place\" in Japanese.
10149 These are the basic rules: Every Sudoku is a square divided into 3x3
10150 subsquares with 3x3 cells each.
10151
10152 Some cells are filled with a number at the beginning. The remaining ones are
10153 to be filled by the player using numbers from 1 to 9, without repeating a
10154 number twice on each column, row or subsquare (each of them must contain only
10155 one 1, one 2, one 3, and so on). The game requires logic and patience.
10156 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10157 and experience.
10158
10159 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10160 board we use letters): arithmetic relationships between numbers are
10161 irrelevant.
10162
10163 This program supports also 16x16 games with numbers from 1 to 16 and 256
10164 cells with 16 cols, rows and subsquares!
10165
10166 More information at http://en.wikipedia.org/wiki/Sudoku
10167
10168 This package is part of the KDE games module.")
10169 (license (list license:gpl2+ license:fdl1.2+))))
10170
10171 (define-public klines
10172 (package
10173 (name "klines")
10174 (version "19.08.3")
10175 (source
10176 (origin
10177 (method url-fetch)
10178 (uri (string-append "mirror://kde/stable/applications/" version
10179 "/src/klines-" version ".tar.xz"))
10180 (sha256
10181 (base32 "1g1f46jp0rb8gpqkgcf915ydpsscn1sxk3gjvm8bcqgx9ddq59xa"))))
10182 (build-system qt-build-system)
10183 (native-inputs
10184 `(("extra-cmake-modules" ,extra-cmake-modules)
10185 ("kdoctools" ,kdoctools)))
10186 (inputs
10187 `(("kcompletion" ,kcompletion)
10188 ("kconfigwidgets" ,kconfigwidgets)
10189 ("kcoreaddons" ,kcoreaddons)
10190 ("kcrash" ,kcrash)
10191 ("kdbusaddons" ,kdbusaddons)
10192 ("ki18n" ,ki18n)
10193 ("kwidgetsaddons" ,kwidgetsaddons)
10194 ("kxmlgui" ,kxmlgui)
10195 ("libkdegames" ,libkdegames)
10196 ("qtbase" ,qtbase)
10197 ("qtdeclarative" ,qtdeclarative)))
10198 (home-page "https://games.kde.org/")
10199 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10200 (description "KLines is a simple but highly addictive one player game.
10201
10202 The player has to move the colored balls around the game board, gathering them
10203 into the lines of the same color by five. Once the line is complete it is
10204 removed from the board, therefore freeing precious space. In the same time
10205 the new balls keep arriving by three after each move, filling up the game
10206 board.
10207
10208 KLines is a single-player game where the player removes colored balls from the
10209 board by arranging them into lines of five or more. However, every time the
10210 player moves a ball, three more balls are added to the board.
10211
10212 This package is part of the KDE games module.")
10213 (license (list license:gpl2+ license:fdl1.2+))))
10214
10215 (define-public kgoldrunner
10216 (package
10217 (name "kgoldrunner")
10218 (version "19.08.3")
10219 (source
10220 (origin
10221 (method url-fetch)
10222 (uri (string-append "mirror://kde/stable/applications/" version "/src/kgoldrunner-"
10223 version ".tar.xz"))
10224 (sha256
10225 (base32 "16rcvq796r3asz4v4ap75xvwnxd3dd2nsq5r9vxvzl6rrf1w9bj4"))))
10226 (build-system qt-build-system)
10227 (native-inputs
10228 `(("extra-cmake-modules" ,extra-cmake-modules)
10229 ("kdoctools" ,kdoctools)))
10230 (inputs
10231 `(("kcompletion" ,kcompletion)
10232 ("kcoreaddons" ,kcoreaddons)
10233 ("kcrash" ,kcrash)
10234 ("kdbusaddons" ,kdbusaddons)
10235 ("ki18n" ,ki18n)
10236 ("kio" ,kio)
10237 ("kwidgetsaddons" ,kwidgetsaddons)
10238 ("kxmlgui" ,kxmlgui)
10239 ("libkdegames" ,libkdegames)
10240 ("qtbase" ,qtbase)
10241 ("qtdeclarative" ,qtdeclarative)))
10242 (home-page "https://games.kde.org/")
10243 (synopsis "Action and puzzle solving game")
10244 (description "KGoldrunner is an action game where the hero runs through a
10245 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10246 gold nuggets and escape to the next level. Your enemies are also after the
10247 gold. Worse still, they are after you!.
10248
10249 KGoldrunner is a fast-paced platform game where the player must navigate a
10250 maze while collecting gold nuggets and avoiding enemies. A variety of level
10251 packs are included, as well as an editor to create new levels.
10252
10253 This package is part of the KDE games module.")
10254 (license (list license:gpl2+ license:fdl1.2+))))
10255
10256 (define-public kdiamond
10257 (package
10258 (name "kdiamond")
10259 (version "19.08.3")
10260 (source
10261 (origin
10262 (method url-fetch)
10263 (uri (string-append "mirror://kde/stable/applications/" version
10264 "/src/kdiamond-" version ".tar.xz"))
10265 (sha256
10266 (base32 "1v5yb9hb26lk277zhw8d37ks829yfqr5anzx1qhms44gca5kqhva"))))
10267 (build-system qt-build-system)
10268 (native-inputs
10269 `(("extra-cmake-modules" ,extra-cmake-modules)
10270 ("kdoctools" ,kdoctools)))
10271 (inputs
10272 `(("kcompletion", kcompletion)
10273 ("kconfig" ,kconfig)
10274 ("kconfigwidgets" ,kconfigwidgets)
10275 ("kcoreaddons" ,kcoreaddons)
10276 ("kcrash" ,kcrash)
10277 ("kdbusaddons" ,kdbusaddons)
10278 ("ki18n" ,ki18n)
10279 ("knotifications" ,knotifications)
10280 ("knotifyconfig" ,knotifyconfig)
10281 ("kwidgetsaddons" ,kwidgetsaddons)
10282 ("kxmlgui" ,kxmlgui)
10283 ("libkdegames" ,libkdegames)
10284 ("qtbase" ,qtbase)
10285 ("qtdeclarative" ,qtdeclarative)))
10286 (home-page "https://games.kde.org/")
10287 (synopsis "Three-in-a-row game")
10288 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10289 features unlimited fun with randomly generated games and five difficulty
10290 levels with varying number of diamond colors and board sizes.
10291
10292 This package is part of the KDE games module.")
10293 (license (list license:gpl2+ license:fdl1.2+))))
10294
10295 (define-public kfourinline
10296 (package
10297 (name "kfourinline")
10298 (version "19.08.3")
10299 (source
10300 (origin
10301 (method url-fetch)
10302 (uri (string-append "mirror://kde/stable/applications/" version
10303 "/src/kfourinline-" version ".tar.xz"))
10304 (sha256
10305 (base32 "1vprs6dc1ccn3g6k594i9s94xy4b91vzlqjysyc6fqcq2fs54ny3"))))
10306 (build-system qt-build-system)
10307 (native-inputs
10308 `(("extra-cmake-modules" ,extra-cmake-modules)
10309 ("kdoctools" ,kdoctools)))
10310 (inputs
10311 `(("kcompletion" ,kcompletion)
10312 ("kconfig" ,kconfig)
10313 ("kconfigwidgets" ,kconfigwidgets)
10314 ("kcoreaddons" ,kcoreaddons)
10315 ("kcrash" ,kcrash)
10316 ("kdelibs4support" ,kdelibs4support)
10317 ("kdnssd" ,kdnssd)
10318 ("ki18n" ,ki18n)
10319 ("kxmlgui" ,kxmlgui)
10320 ("libkdegames" ,libkdegames)
10321 ("qtbase" ,qtbase)
10322 ("qtdeclarative" ,qtdeclarative)
10323 ("qtsvg" ,qtsvg)))
10324 (home-page "https://games.kde.org/")
10325 (synopsis "Place 4 pieces in a row")
10326 (description "KFourInLine is a board game for two players based on the
10327 Connect-Four game.
10328
10329 KFourInLine is a game where two players take turns dropping pieces into a
10330 grid, the winner being the first to place four pieces in a line.
10331
10332 This package is part of the KDE games module.")
10333 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10334
10335 (define-public kblackbox
10336 (package
10337 (name "kblackbox")
10338 (version "19.08.3")
10339 (source
10340 (origin
10341 (method url-fetch)
10342 (uri (string-append "mirror://kde/stable/applications/" version
10343 "/src/kblackbox-" version ".tar.xz"))
10344 (sha256
10345 (base32 "1x42sfpf75c6mavwkc7g7dm11y9s5dpj8igphly5kvm0pajqby0n"))))
10346 (build-system qt-build-system)
10347 (native-inputs
10348 `(("extra-cmake-modules" ,extra-cmake-modules)
10349 ("kdoctools" ,kdoctools)))
10350 (inputs
10351 `(("karchive" ,karchive)
10352 ("kcompletion" ,kcompletion)
10353 ("kconfig" ,kconfig)
10354 ("kcoreaddons" ,kcoreaddons)
10355 ("kcrash" ,kcrash)
10356 ("kdbusaddons" ,kdbusaddons)
10357 ("ki18n" ,ki18n)
10358 ("ktextwidgets" ,ktextwidgets)
10359 ("kxmlgui" ,kxmlgui)
10360 ("libkdegames" ,libkdegames)
10361 ("qtbase" ,qtbase)
10362 ("qtdeclarative" ,qtdeclarative)
10363 ("qtsvg" ,qtsvg)))
10364 (home-page "https://games.kde.org/")
10365 (synopsis "Find atoms in a grid by shooting electrons")
10366 (description "KBlackbox is a game of hide and seek played on a grid of
10367 boxes where the computer has hidden several balls. The position of the hidden
10368 balls can be deduced by shooting beams into the box
10369
10370 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10371 player shoots rays into the grid to deduce the positions of hidden objects.
10372
10373 This package is part of the KDE games module.")
10374 (license (list license:gpl2+ license:fdl1.2+))))
10375
10376 (define-public knetwalk
10377 (package
10378 (name "knetwalk")
10379 (version "19.08.3")
10380 (source
10381 (origin
10382 (method url-fetch)
10383 (uri (string-append "mirror://kde/stable/applications/" version
10384 "/src/knetwalk-" version ".tar.xz"))
10385 (sha256
10386 (base32 "1i340salzgqdw8y33wrrydmpgx3pvwf5wrbljlh67cjf6s4csx7d"))))
10387 (build-system qt-build-system)
10388 (native-inputs
10389 `(("extra-cmake-modules" ,extra-cmake-modules)
10390 ("kdoctools" ,kdoctools)))
10391 (inputs
10392 `(("kcompletion" ,kcompletion)
10393 ("kconfig" ,kconfig)
10394 ("kconfigwidgets" ,kconfigwidgets)
10395 ("kcoreaddons" ,kcoreaddons)
10396 ("kcrash" ,kcrash)
10397 ("kdbusaddons" ,kdbusaddons)
10398 ("ki18n" ,ki18n)
10399 ("ktextwidgets" ,ktextwidgets)
10400 ("kwidgetsaddons" ,kwidgetsaddons)
10401 ("kxmlgui" ,kxmlgui)
10402 ("libkdegames" ,libkdegames)
10403 ("qtbase" ,qtbase)
10404 ("qtdeclarative" ,qtdeclarative)))
10405 (home-page "https://games.kde.org/")
10406 (synopsis "Turn the board pieces to get all computers connected")
10407 (description "KNetWalk is a small game where you have to build up a
10408 computer network by rotating the wires to connect the terminals to the server.
10409 When the network is build, a highscore-list comes up where competitions can be
10410 fought out.
10411
10412 KNetwalk is a puzzle game where the player arranges sections of wire to
10413 connect all the computers on the board.
10414
10415 This package is part of the KDE games module.")
10416 (license (list license:gpl2+ license:fdl1.2+))))
10417
10418 (define-public bomber
10419 (package
10420 (name "bomber")
10421 (version "19.08.3")
10422 (source
10423 (origin
10424 (method url-fetch)
10425 (uri (string-append "mirror://kde/stable/applications/" version
10426 "/src/bomber-" version ".tar.xz"))
10427 (sha256
10428 (base32 "1lvzd0mzgq25akvwvkm57l3plm65k731v2i1ahakn985bb5gc3is"))))
10429 (build-system qt-build-system)
10430 (native-inputs
10431 `(("extra-cmake-modules" ,extra-cmake-modules)
10432 ("kdoctools" ,kdoctools)))
10433 (inputs
10434 `(("kcompletiom" ,kcompletion)
10435 ("kconfig" ,kconfig)
10436 ("kcoreaddons" ,kcoreaddons)
10437 ("kcrash" ,kcrash)
10438 ("kdbusaddons" ,kdbusaddons)
10439 ("ki18n" ,ki18n)
10440 ("kxmlgui" ,kxmlgui)
10441 ("libkdegames" ,libkdegames)
10442 ("qtbase" ,qtbase)
10443 ("qtdeclarative" ,qtdeclarative)))
10444 (home-page "https://games.kde.org/")
10445 (synopsis "Arcade bombing game")
10446 (description "Bomber is a single player arcade game.
10447
10448 The player is invading various cities in a plane that is decreasing in height.
10449 The goal of the game is to destroy all the buildings and advance to the next
10450 level. Each level gets a bit harder by increasing the speed of the plane and
10451 the height of the buildings.
10452
10453 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10454 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10455 not destroyed a building in your path, you will crash into it.
10456
10457 This package is part of the KDE games module.")
10458 (license (list license:gpl2+ license:fdl1.2+))))
10459
10460 (define-public granatier
10461 (package
10462 (name "granatier")
10463 (version "19.08.3")
10464 (source
10465 (origin
10466 (method url-fetch)
10467 (uri (string-append "mirror://kde/stable/applications/" version
10468 "/src/granatier-" version ".tar.xz"))
10469 (sha256
10470 (base32 "141qmdinz7ikbbrs8dq6cap3nl22sl7pw62r80pf3xxwn2q4phpa"))))
10471 (build-system qt-build-system)
10472 (native-inputs
10473 `(("extra-cmake-modules" ,extra-cmake-modules)
10474 ("kdoctools" ,kdoctools)))
10475 (inputs
10476 `(("kcompletion" ,kcompletion)
10477 ("kconfig" ,kconfig)
10478 ("kconfigwidgets" ,kconfigwidgets)
10479 ("kcoreaddons" ,kcoreaddons)
10480 ("kcrash" ,kcrash)
10481 ("kdbusaddons" ,kdbusaddons)
10482 ("ki18n" ,ki18n)
10483 ("knewstuff" ,knewstuff)
10484 ("kwidgetsaddons" ,kwidgetsaddons)
10485 ("kxmlgui" ,kxmlgui)
10486 ("libkdegames" ,libkdegames)
10487 ("qtbase" ,qtbase)
10488 ("qtdeclarative" ,qtdeclarative)
10489 ("qtsvg" ,qtsvg)))
10490 (home-page "https://games.kde.org/")
10491 (synopsis "Bomberman clone")
10492 (description "Granatier is a clone of the classic Bomberman game,
10493 inspired by the work of the Clanbomber clone.
10494
10495 This package is part of the KDE games module.")
10496 (license (list license:gpl2+ license:fdl1.2+))))
10497
10498 (define-public ksirk
10499 (package
10500 (name "ksirk")
10501 (version "19.08.3")
10502 (source
10503 (origin
10504 (method url-fetch)
10505 (uri (string-append "mirror://kde/stable/applications/" version
10506 "/src/ksirk-" version ".tar.xz"))
10507 (sha256
10508 (base32 "1b1wixs2hp5qnvdygfwa3kvy0kn94ysa4ifmx90q6r3yfr2lpfca"))))
10509 (build-system qt-build-system)
10510 (native-inputs
10511 `(("extra-cmake-modules" ,extra-cmake-modules)
10512 ("kdoctools" ,kdoctools)))
10513 (inputs
10514 `(("kcrash" ,kcrash)
10515 ("ki18n" ,ki18n)
10516 ("kiconthemes" ,kiconthemes)
10517 ("kio" ,kio)
10518 ("knewstuff" ,knewstuff)
10519 ("kwallet" ,kwallet)
10520 ("kxmlgui" ,kxmlgui)
10521 ("libkdegames" ,libkdegames)
10522 ("phonon" ,phonon)
10523 ("qca" ,qca)
10524 ("qtbase" ,qtbase)
10525 ("qtdeclarative" ,qtdeclarative)
10526 ("qtsvg" ,qtsvg)
10527 ("zlib" ,zlib)))
10528 (home-page "https://games.kde.org/")
10529 (synopsis "Computerized version of the well known strategy board game
10530 'Risk'")
10531 (description "KsirK is a multi-player network-enabled game. The goal of
10532 the game is simply to conquer the world by attacking your neighbors with your
10533 armies.
10534
10535 At the beginning of the game, countries are distributed to all the players.
10536 Each country contains one army represented by an infantryman. Each player has
10537 some armies to distribute to his countries. On each turn, each player can
10538 attack his neighbours, eventually conquering one or more countries. At the
10539 end of each turn, some bonus armies are distributed to the players in function
10540 of the number of countries they own. The winner is the player that conquered
10541 all the world.
10542
10543 Features:
10544 @itemize
10545 @item Support for 1-6 human or computer players
10546 @item Multi-player gaming over a network
10547 @item You can easily create new skins with SVG graphics and the skin editor
10548 @item Hot New Stuff support. You can easily download and install new skins
10549 @end itemize
10550
10551 This package is part of the KDE games module.")
10552 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10553
10554 (define-public palapeli
10555 (package
10556 (name "palapeli")
10557 (version "19.08.3")
10558 (source
10559 (origin
10560 (method url-fetch)
10561 (uri (string-append "mirror://kde/stable/applications/" version
10562 "/src/palapeli-" version ".tar.xz"))
10563 (sha256
10564 (base32 "1g91ydbc0x2y2gn3lcb5w03mn7k78l5bq4cb1s59kx6yjbflv3pw"))))
10565 (build-system qt-build-system)
10566 (native-inputs
10567 `(("extra-cmake-modules" ,extra-cmake-modules)
10568 ("kdoctools" ,kdoctools)))
10569 (inputs
10570 `(("karchive" ,karchive)
10571 ("kcompletion" ,kcompletion)
10572 ("kconfig" ,kconfig)
10573 ("kconfigwidgets" ,kconfigwidgets)
10574 ("kcoreaddons" ,kcoreaddons)
10575 ("kcrash" ,kcrash)
10576 ("kcrash" ,kcrash)
10577 ("ki18n" ,ki18n)
10578 ("ki18n" ,ki18n)
10579 ("kio" ,kio)
10580 ("kitemviews" ,kitemviews)
10581 ("knotifications" ,knotifications)
10582 ("kservice" ,kservice)
10583 ("kwidgetsaddons" ,kwidgetsaddons)
10584 ("kxmlgui" ,kxmlgui)
10585 ("libkdegames" ,libkdegames)
10586 ("qtbase" ,qtbase)
10587 ("qtdeclarative" ,qtdeclarative)
10588 ("qtsvg" ,qtsvg)
10589 ("shared-mime-info" ,shared-mime-info)))
10590 (home-page "https://games.kde.org/")
10591 (synopsis "Jigsaw puzzle game")
10592 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
10593 that genre, you are not limited to aligning pieces on imaginary grids. The
10594 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
10595 everything you do is saved on your disk immediately.
10596
10597 Palapeli is the Finnish word for jigsaw puzzle.
10598
10599 This package is part of the KDE games module.")
10600 (license license:gpl2+)))
10601
10602 (define-public kiriki
10603 (package
10604 (name "kiriki")
10605 (version "19.08.3")
10606 (source
10607 (origin
10608 (method url-fetch)
10609 (uri (string-append "mirror://kde/stable/applications/" version
10610 "/src/kiriki-" version ".tar.xz"))
10611 (sha256
10612 (base32 "1xg25dj95g81dc5l7k47am4j52abrwwfx4h73lvsbn4lc8lfmshw"))))
10613 (build-system qt-build-system)
10614 (native-inputs
10615 `(("extra-cmake-modules" ,extra-cmake-modules)
10616 ("kdoctools" ,kdoctools)))
10617 (inputs
10618 `(("kcompletion" ,kcompletion)
10619 ("kconfig" ,kconfig)
10620 ("kconfigwidgets" ,kconfigwidgets)
10621 ("kcoreaddons" ,kcoreaddons)
10622 ("kcrash" ,kcrash)
10623 ("kdbusaddons" ,kdbusaddons)
10624 ("ki18n" ,ki18n)
10625 ("kiconthemes" ,kiconthemes)
10626 ("kxmlgui" ,kxmlgui)
10627 ("libkdegames" ,libkdegames)
10628 ("qtbase" ,qtbase)
10629 ("qtdeclarative" ,qtdeclarative)))
10630 (home-page "https://games.kde.org/")
10631 (synopsis "Yahtzee dice game")
10632 (description "Kiriki is an addictive and fun dice game, designed to be
10633 played by as many as six players.
10634
10635 Participants have to collect points by rolling five dice for up to three times
10636 per single turn to make combinations with the highest score.
10637
10638 This package is part of the KDE games module.")
10639 (license (list license:gpl2+ license:fdl1.2+))))
10640
10641 (define-public kigo
10642 (package
10643 (name "kigo")
10644 (version "19.08.3")
10645 (source
10646 (origin
10647 (method url-fetch)
10648 (uri (string-append "mirror://kde/stable/applications/" version
10649 "/src/kigo-" version ".tar.xz"))
10650 (sha256
10651 (base32 "00l5gcbi8xyj9c1lngkrddka3a4m4cd78prfplrpq32ma9xq681f"))))
10652 (build-system qt-build-system)
10653 (native-inputs
10654 `(("extra-cmake-modules" ,extra-cmake-modules)
10655 ("kdoctools" ,kdoctools)))
10656 (inputs
10657 `(("kconfig" ,kconfig)
10658 ("kconfigwidgets" ,kconfigwidgets)
10659 ("kcoreaddons" ,kcoreaddons)
10660 ("kcrash" ,kcrash)
10661 ("kdbusaddons" ,kdbusaddons)
10662 ("ki18n" ,ki18n)
10663 ("kio" ,kio)
10664 ("knewstuff", knewstuff)
10665 ("ktextwidgets" ,ktextwidgets)
10666 ("kxmlgui" ,kxmlgui)
10667 ("libkdegames" ,libkdegames)
10668 ("qtbase" ,qtbase)
10669 ("qtdeclarative" ,qtdeclarative)
10670 ("qtsvg" ,qtsvg)))
10671 (home-page "https://games.kde.org/")
10672 (synopsis "Go board game")
10673 (description "Kigo is an open-source implementation of the popular Go
10674 game.
10675
10676 Go is a strategic board game for two players. It is also known as
10677 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
10678 for being rich in strategic complexity despite its simple rules. The game is
10679 played by two players who alternately place black and white stones (playing
10680 pieces, now usually made of glass or plastic) on the vacant intersections of a
10681 grid of 19x19 lines (9x9 or 13x13 for easier games).
10682
10683 You also need to install a go engine, e.g. @code{gnugo}.
10684
10685 This package is part of the KDE games module.")
10686 (license license:gpl3+)))
10687
10688 (define-public kubrick
10689 (package
10690 (name "kubrick")
10691 (version "19.08.3")
10692 (source
10693 (origin
10694 (method url-fetch)
10695 (uri (string-append "mirror://kde/stable/applications/" version
10696 "/src/kubrick-" version ".tar.xz"))
10697 (sha256
10698 (base32 "0ma8wja4rqlsmsr8cyicfpkwlgqva4450ls4c0ql53p0kabf04gx"))))
10699 (build-system qt-build-system)
10700 (native-inputs
10701 `(("extra-cmake-modules" ,extra-cmake-modules)
10702 ("kdoctools" ,kdoctools)))
10703 (inputs
10704 `(("glu" ,glu)
10705 ("kconfig" ,kconfig)
10706 ("kconfigwidgets" ,kconfigwidgets)
10707 ("kcoreaddons" ,kcoreaddons)
10708 ("kcrash" ,kcrash)
10709 ("ki18n" ,ki18n)
10710 ("kio" ,kio)
10711 ("kwidgetsaddons" ,kwidgetsaddons)
10712 ("kxmlgui" ,kxmlgui)
10713 ("libkdegames" ,libkdegames)
10714 ("qtbase" ,qtbase)
10715 ("qtdeclarative" ,qtdeclarative)
10716 ("qtsvg" ,qtsvg)))
10717 (home-page "https://games.kde.org/")
10718 (synopsis "Game based on Rubik's Cube")
10719 (description "Kubrick is a game based on the Rubik's Cube puzzle.
10720
10721 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
10722 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
10723 selection of puzzles at several levels of difficulty, as well as demos of
10724 pretty patterns and solution moves, or you can make up your own puzzles. The
10725 game has unlimited undo, redo, save and reload capabilities.
10726
10727 This package is part of the KDE games module.")
10728 (license (list license:gpl2+ license:fdl1.2+))))
10729
10730 (define-public lskat
10731 (package
10732 (name "lskat")
10733 (version "19.08.3")
10734 (source
10735 (origin
10736 (method url-fetch)
10737 (uri (string-append "mirror://kde/stable/applications/" version
10738 "/src/lskat-" version ".tar.xz"))
10739 (sha256
10740 (base32 "1qk5hd27zb42pbcxq5wyzz62nj5f0qdmgy54r9rnk92pzzzk94s9"))))
10741 (build-system qt-build-system)
10742 (native-inputs
10743 `(("extra-cmake-modules" ,extra-cmake-modules)
10744 ("kdoctools" ,kdoctools)))
10745 (inputs
10746 `(("kcompletion" ,kcompletion)
10747 ("kconfig" ,kconfig)
10748 ("kcoreaddons" ,kcoreaddons)
10749 ("kcrash" ,kcrash)
10750 ("kguiaddons" ,kguiaddons)
10751 ("ki18n" ,ki18n)
10752 ("kwidgetsaddons" ,kwidgetsaddons)
10753 ("kxmlgui" ,kxmlgui)
10754 ("libkdegames" ,libkdegames)
10755 ("qtbase" ,qtbase)
10756 ("qtdeclarative" ,qtdeclarative)
10757 ("qtsvg" ,qtsvg)))
10758 (home-page "https://games.kde.org/")
10759 (synopsis "Lieutnant Skat card game")
10760 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
10761 engaging card game for two players, where the second player is either live
10762 opponent, or a built in artificial intelligence.
10763
10764 Lieutnant Skat is a simplified variant of the Skat card game for two players.
10765
10766 This package is part of the KDE games module.")
10767 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10768
10769 (define-public kapman
10770 (package
10771 (name "kapman")
10772 (version "19.08.3")
10773 (source
10774 (origin
10775 (method url-fetch)
10776 (uri (string-append "mirror://kde/stable/applications/" version
10777 "/src/kapman-" version ".tar.xz"))
10778 (sha256
10779 (base32 "03pq38caam30q4bw14c045kayw2d87xq1yaa3s2jkrylylfq3p0f"))))
10780 (build-system qt-build-system)
10781 (native-inputs
10782 `(("extra-cmake-modules" ,extra-cmake-modules)
10783 ("kdoctools" ,kdoctools)))
10784 (inputs
10785 `(("kcompletion" ,kcompletion)
10786 ("kconfig" ,kconfig)
10787 ("kconfigwidgets" ,kconfigwidgets)
10788 ("kcoreaddons" ,kcoreaddons)
10789 ("kcrash" ,kcrash)
10790 ("kdbusaddons" ,kdbusaddons)
10791 ("ki18n" ,ki18n)
10792 ("kxmlgui" ,kxmlgui)
10793 ("libkdegames" ,libkdegames)
10794 ("qtbase" ,qtbase)
10795 ("qtdeclarative" ,qtdeclarative)
10796 ("qtsvg" ,qtsvg)))
10797 (home-page "https://games.kde.org/")
10798 (synopsis "Pac-Man clone")
10799 (description "Kapman is a clone of the well known game Pac-Man.
10800
10801 You must run through the maze to eat all pills without being captured by a
10802 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
10803 few seconds. When a stage is cleared of pills and energizer the player is
10804 taken to the next stage with slightly increased game speed
10805
10806 This package is part of the KDE games module.")
10807 (license (list license:gpl2+ license:fdl1.2+))))
10808
10809 (define-public kspaceduel
10810 (package
10811 (name "kspaceduel")
10812 (version "19.08.3")
10813 (source
10814 (origin
10815 (method url-fetch)
10816 (uri (string-append "mirror://kde/stable/applications/" version
10817 "/src/kspaceduel-" version ".tar.xz"))
10818 (sha256
10819 (base32 "1hppni0ihs7psc0dly5rxyy2a38nzhlig9yfyhi3lkh36z05pql8"))))
10820 (build-system qt-build-system)
10821 (native-inputs
10822 `(("extra-cmake-modules" ,extra-cmake-modules)
10823 ("kdoctools" ,kdoctools)))
10824 (inputs
10825 `(("kcompletion" ,kcompletion)
10826 ("kconfig" ,kconfig)
10827 ("kconfigwidgets" ,kconfigwidgets)
10828 ("kcoreaddons" ,kcoreaddons)
10829 ("kcrash" ,kcrash)
10830 ("kdbusaddons" ,kdbusaddons)
10831 ("ki18n" ,ki18n)
10832 ("kxmlgui" ,kxmlgui)
10833 ("libkdegames" ,libkdegames)
10834 ("qtbase" ,qtbase)
10835 ("qtdeclarative" ,qtdeclarative)
10836 ("qtsvg" ,qtsvg)))
10837 (home-page "https://games.kde.org/")
10838 (synopsis "Two player game with shooting spaceships flying around a sun")
10839 (description "KSpaceduel is a space battle game for one or two players,
10840 where two ships fly around a star in a struggle to be the only survivor.
10841
10842 This package is part of the KDE games module.")
10843 (license (list license:gpl2+ license:fdl1.2+))))
10844
10845 (define-public bovo
10846 (package
10847 (name "bovo")
10848 (version "19.08.3")
10849 (source
10850 (origin
10851 (method url-fetch)
10852 (uri (string-append "mirror://kde/stable/applications/" version
10853 "/src/bovo-" version ".tar.xz"))
10854 (sha256
10855 (base32 "0dbpng0w52nahmx7brsll66zw23ql1g6pcvn2k4g2lnvxch0i59g"))))
10856 (build-system qt-build-system)
10857 (native-inputs
10858 `(("extra-cmake-modules" ,extra-cmake-modules)
10859 ("kdoctools" ,kdoctools)))
10860 (inputs
10861 `(("kcompletion" ,kcompletion)
10862 ("kcoreaddons" ,kcoreaddons)
10863 ("kcrash" ,kcrash)
10864 ("kdbusaddons" ,kdbusaddons)
10865 ("ki18n" ,ki18n)
10866 ("kxmlgui" ,kxmlgui)
10867 ("libkdegames" ,libkdegames)
10868 ("qtbase" ,qtbase)
10869 ("qtdeclarative" ,qtdeclarative)
10870 ("qtsvg" ,qtsvg)))
10871 (home-page "https://games.kde.org/")
10872 (synopsis "Classic pen and paper game: five in a line")
10873 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
10874 points\") like game for two players, where the opponents alternate in placing
10875 their respective pictogram on the game board. The winner is the first to
10876 complete a line of five markers. (Also known as: Connect Five, Five in a row,
10877 X and O, Naughts and Crosses)
10878
10879 This package is part of the KDE games module.")
10880 (license (list license:gpl2+ license:fdl1.2+))))
10881
10882 (define-public killbots
10883 (package
10884 (name "killbots")
10885 (version "19.08.3")
10886 (source
10887 (origin
10888 (method url-fetch)
10889 (uri (string-append "mirror://kde/stable/applications/" version
10890 "/src/killbots-" version ".tar.xz"))
10891 (sha256
10892 (base32 "1qi86q7diw7glkp9v33yim9nhz2da4balbxa1hjrdgjdv8zdbxbm"))))
10893 (build-system qt-build-system)
10894 (native-inputs
10895 `(("extra-cmake-modules" ,extra-cmake-modules)
10896 ("kdoctools" ,kdoctools)))
10897 (inputs
10898 `(("kcompletion" ,kcompletion)
10899 ("kconfig" ,kconfig)
10900 ("kconfigwidgets" ,kconfigwidgets)
10901 ("kcoreaddons" ,kcoreaddons)
10902 ("kcrash" ,kcrash)
10903 ("kdbusaddons" ,kdbusaddons)
10904 ("ki18n" ,ki18n)
10905 ("kwidgetsaddons" ,kwidgetsaddons)
10906 ("kxmlgui" ,kxmlgui)
10907 ("libkdegames" ,libkdegames)
10908 ("qtbase" ,qtbase)
10909 ("qtdeclarative" ,qtdeclarative)))
10910 (home-page "https://games.kde.org/")
10911 (synopsis "Port of the classic BSD console game robots")
10912 (description "Killbots is a simple game of evading killer robots.
10913
10914 Who created the robots and why they have been programmed to destroy, no one
10915 knows. All that is known is that the robots are numerous and their sole
10916 objective is to destroy you. Fortunately for you, their creator has focused
10917 on quantity rather than quality and as a result the robots are severely
10918 lacking in intelligence. Your superior wit and a fancy teleportation device
10919 are your only weapons against the never-ending stream of mindless automatons.
10920
10921 This package is part of the KDE games module.")
10922 (license (list license:gpl2+ license:fdl1.2+))))
10923
10924 (define-public ksnakeduel
10925 (package
10926 (name "ksnakeduel")
10927 (version "19.08.3")
10928 (source
10929 (origin
10930 (method url-fetch)
10931 (uri (string-append "mirror://kde/stable/applications/" version
10932 "/src/ksnakeduel-" version ".tar.xz"))
10933 (sha256
10934 (base32 "0mprrnpax8pv7ab36zwhvdfj8id52w8g6x76nnj8qvkdlkjiqdnn"))))
10935 (build-system qt-build-system)
10936 (native-inputs
10937 `(("extra-cmake-modules" ,extra-cmake-modules)
10938 ("kdoctools" ,kdoctools)))
10939 (inputs
10940 `(("kcompletion" ,kcompletion)
10941 ("kconfig" ,kconfig)
10942 ("kconfigwidgets" ,kconfigwidgets)
10943 ("kcoreaddons" ,kcoreaddons)
10944 ("kcrash" ,kcrash)
10945 ("kdbusaddons" ,kdbusaddons)
10946 ("kguiaddons" ,kguiaddons)
10947 ("ki18n" ,ki18n)
10948 ("kxmlgui" ,kxmlgui)
10949 ("libkdegames" ,libkdegames)
10950 ("qtbase" ,qtbase)
10951 ("qtdeclarative" ,qtdeclarative)
10952 ("qtsvg" ,qtsvg)))
10953 (home-page "https://games.kde.org/")
10954 (synopsis "Snake race played against the computer")
10955 (description "KSnakeDuel is a fast action game where you steer a snake
10956 which has to eat food. While eating the snake grows. But once a player
10957 collides with the other snake or the wall the game is lost. This becomes of
10958 course more and more difficult the longer the snakes grow.
10959
10960 This package is part of the KDE games module.")
10961 (license (list license:gpl2+ license:fdl1.2+))))
10962
10963 (define-public kollision
10964 (package
10965 (name "kollision")
10966 (version "19.08.3")
10967 (source
10968 (origin
10969 (method url-fetch)
10970 (uri (string-append "mirror://kde/stable/applications/" version
10971 "/src/kollision-" version ".tar.xz"))
10972 (sha256
10973 (base32 "1p7qrn3d0ybpvc9k6k5wzj54dsrp1rqh39844maz0ay2fhvmch12"))))
10974 (build-system qt-build-system)
10975 (native-inputs
10976 `(("extra-cmake-modules" ,extra-cmake-modules)
10977 ("kdoctools" ,kdoctools)))
10978 (inputs
10979 `(("kcompletion" ,kcompletion)
10980 ("kconfig" ,kconfig)
10981 ("kcoreaddons" ,kcoreaddons)
10982 ("kcrash" ,kcrash)
10983 ("kdbusaddons" ,kdbusaddons)
10984 ("ki18n" ,ki18n)
10985 ("kwidgetsaddons" ,kwidgetsaddons)
10986 ("kxmlgui" ,kxmlgui)
10987 ("libkdegames" ,libkdegames)
10988 ("qtbase" ,qtbase)
10989 ("qtdeclarative" ,qtdeclarative)))
10990 (home-page "https://games.kde.org/")
10991 (synopsis "Simple ball dodging game")
10992 (description "In Kollision you use mouse to control a small blue ball in a
10993 closed space environment filled with small red balls, which move about
10994 chaotically. Your goal is to avoid touching any of those red balls with your
10995 blue one, because the moment you do the game will be over. The longer you can
10996 stay in game the higher will your score be.
10997
10998 This package is part of the KDE games module.")
10999 (license (list license:gpl2+ license:fdl1.2+))))
11000
11001 (define-public knavalbattle
11002 (package
11003 (name "knavalbattle")
11004 (version "19.08.3")
11005 (source
11006 (origin
11007 (method url-fetch)
11008 (uri (string-append "mirror://kde/stable/applications/" version
11009 "/src/knavalbattle-" version ".tar.xz"))
11010 (sha256
11011 (base32 "0sdfjplqkb30x2mvh66pkzay6vn5px87779sh2s8lpl6fcw0v9g4"))))
11012 (build-system qt-build-system)
11013 (native-inputs
11014 `(("extra-cmake-modules" ,extra-cmake-modules)
11015 ("kdoctools" ,kdoctools)))
11016 (inputs
11017 `(("kauth" ,kauth)
11018 ("kcompletion" ,kcompletion)
11019 ("kconfig" ,kconfig)
11020 ("kconfigwidgets" ,kconfigwidgets)
11021 ("kcoreaddons" ,kcoreaddons)
11022 ("kcrash" ,kcrash)
11023 ("kdbusaddons" ,kdbusaddons)
11024 ("kdnssd" ,kdnssd)
11025 ("ki18n" ,ki18n)
11026 ("ktextwidgets" ,ktextwidgets)
11027 ("kxmlgui" ,kxmlgui)
11028 ("libkdegames" ,libkdegames)
11029 ("qtbase" ,qtbase)
11030 ("qtdeclarative" ,qtdeclarative)))
11031 (home-page "https://games.kde.org/")
11032 (synopsis "Battleship board game with built-in game server")
11033 (description "KBattleship is a Battle Ship game for KDE.
11034
11035 Ships are placed on a board which represents the sea. Players try to hit each
11036 others ships in turns without knowing where they are placed. The first player
11037 to destroy all ships wins the game.
11038
11039 This package is part of the KDE games module.")
11040 (license (list license:gpl2+ license:fdl1.2+))))
11041
11042 (define-public kreversi
11043 (package
11044 (name "kreversi")
11045 (version "19.08.3")
11046 (source
11047 (origin
11048 (method url-fetch)
11049 (uri (string-append "mirror://kde/stable/applications/" version
11050 "/src/kreversi-" version ".tar.xz"))
11051 (sha256
11052 (base32 "0b6q8df2bawgnrswhq59z37axad0q3zpvvzxdds7sz1lw505xw9h"))))
11053 (build-system qt-build-system)
11054 (native-inputs
11055 `(("extra-cmake-modules" ,extra-cmake-modules)
11056 ("kdoctools" ,kdoctools)))
11057 (inputs
11058 `(("kconfig" ,kconfig)
11059 ("kconfigwidgets" ,kconfigwidgets)
11060 ("kcoreaddons" ,kcoreaddons)
11061 ("kcrash" ,kcrash)
11062 ("kdbusaddons" ,kdbusaddons)
11063 ("kdeclarative" ,kdeclarative)
11064 ("ki18n" ,ki18n)
11065 ("kiconthemes" ,kiconthemes)
11066 ("kio" ,kio)
11067 ("kxmlgui" ,kxmlgui)
11068 ("libkdegames" ,libkdegames)
11069 ("qtbase" ,qtbase)
11070 ("qtdeclarative" ,qtdeclarative)
11071 ("qtsvg" ,qtsvg)))
11072 (home-page "https://games.kde.org/")
11073 (synopsis "Old reversi board game, also known as othello")
11074 (description "KReversi is a simple one player strategy game played
11075 against the computer.
11076
11077 If a player's piece is captured by an opposing player, that piece is turned
11078 over to reveal the color of that player. A winner is declared when one player
11079 has more pieces of his own color on the board and there are no more possible
11080 moves.
11081
11082 This package is part of the KDE games module.")
11083 (license (list license:gpl2+ license:fdl1.2+))))
11084
11085 (define-public ksquares
11086 (package
11087 (name "ksquares")
11088 (version "19.08.3")
11089 (source
11090 (origin
11091 (method url-fetch)
11092 (uri (string-append "mirror://kde/stable/applications/" version
11093 "/src/ksquares-" version ".tar.xz"))
11094 (sha256
11095 (base32 "0hv8hls5s627lys08nnw72rfzsafj3dmp49mh2afzmh6lgk9h5vy"))))
11096 (build-system qt-build-system)
11097 (native-inputs
11098 `(("extra-cmake-modules" ,extra-cmake-modules)
11099 ("kdoctools" ,kdoctools)))
11100 (inputs
11101 `(("kcompletion" ,kcompletion)
11102 ("kconfig" ,kconfig)
11103 ("kconfigwidgets" ,kconfigwidgets)
11104 ("kcoreaddons" ,kcoreaddons)
11105 ("kcrash" ,kcrash)
11106 ("kdbusaddons" ,kdbusaddons)
11107 ("ki18n" ,ki18n)
11108 ("kwidgetsaddons" ,kwidgetsaddons)
11109 ("kxmlgui" ,kxmlgui)
11110 ("libkdegames" ,libkdegames)
11111 ("qtbase" ,qtbase)
11112 ("qtdeclarative" ,qtdeclarative)))
11113 (home-page "https://games.kde.org/")
11114 (synopsis "Dots and Boxes game")
11115 (description "KSquares is an implementation of the popular paper based
11116 game Squares. Two players take turns connecting dots on a grid to complete
11117 squares, the player with the most squares wins.
11118
11119 This package is part of the KDE games module.")
11120 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11121
11122 (define-public kjumpingcube
11123 (package
11124 (name "kjumpingcube")
11125 (version "19.08.3")
11126 (source
11127 (origin
11128 (method url-fetch)
11129 (uri (string-append "mirror://kde/stable/applications/" version
11130 "/src/kjumpingcube-" version ".tar.xz"))
11131 (sha256
11132 (base32 "0d67zqkf2xffjkj671gl2n6nj6jajyn6rgqqj5i6gm500mqi9rm1"))))
11133 (build-system qt-build-system)
11134 (native-inputs
11135 `(("extra-cmake-modules" ,extra-cmake-modules)
11136 ("kdoctools" ,kdoctools)))
11137 (inputs
11138 `(("kconfig" ,kconfig)
11139 ("kconfigwidgets" ,kconfigwidgets)
11140 ("kcoreaddons" ,kcoreaddons)
11141 ("kcrash" ,kcrash)
11142 ("kdbusaddons" ,kdbusaddons)
11143 ("ki18n" ,ki18n)
11144 ("kio" ,kio)
11145 ("kwidgetsaddons" ,kwidgetsaddons)
11146 ("kxmlgui" ,kxmlgui)
11147 ("libkdegames" ,libkdegames)
11148 ("qtbase" ,qtbase)
11149 ("qtdeclarative" ,qtdeclarative)
11150 ("qtsvg" ,qtsvg)))
11151 (home-page "https://games.kde.org/")
11152 (synopsis "Simple tactical game for number-crunchers")
11153 (description "KJumpingcube is a simple tactical game for one or two
11154 players, played on a grid of numbered squares. Each turn, players compete for
11155 control of the board by capturing or adding to one square.
11156
11157 This package is part of the KDE games module.")
11158 (license (list license:gpl2+ license:fdl1.2+))))
11159
11160 (define-public xmoto
11161 (package
11162 (name "xmoto")
11163 (version "0.6.1")
11164 (source
11165 (origin
11166 (method git-fetch)
11167 (uri (git-reference
11168 (url "https://github.com/xmoto/xmoto")
11169 (commit version)))
11170 (file-name (git-file-name name version))
11171 (sha256
11172 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11173 (modules '((guix build utils)
11174 (ice-9 ftw)
11175 (srfi srfi-1)))
11176 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11177 ;; it appears to be incompatible with the (older) one bundled.
11178 (snippet
11179 `(begin
11180 (let ((keep '("chipmunk" "glad" "md5sum")))
11181 (with-directory-excursion "vendor"
11182 (for-each delete-file-recursively
11183 (lset-difference string=?
11184 (scandir ".")
11185 (cons* "." ".." keep))))
11186 (substitute* "src/CMakeLists.txt"
11187 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11188 (if (member library keep) line ""))))
11189 #t))))
11190 (build-system cmake-build-system)
11191 (arguments
11192 `(#:tests? #f ;no test
11193 #:phases
11194 (modify-phases %standard-phases
11195 (add-after 'unpack 'fix-hard-coded-directory
11196 (lambda* (#:key outputs #:allow-other-keys)
11197 (substitute* "src/common/VFileIO.cpp"
11198 (("/usr/share")
11199 (string-append (assoc-ref outputs "out") "/share")))
11200 #t))
11201 (add-before 'build 'set-SDL
11202 ;; Set correct environment for SDL.
11203 (lambda* (#:key inputs #:allow-other-keys)
11204 (setenv "CPATH"
11205 (string-append
11206 (assoc-ref inputs "sdl") "/include/SDL:"
11207 (or (getenv "CPATH") "")))
11208 #t))
11209 (add-after 'install 'unbundle-fonts
11210 ;; Unbundle DejaVuSans TTF files.
11211 (lambda* (#:key outputs inputs #:allow-other-keys)
11212 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11213 "/share/fonts/truetype/"))
11214 (target-dir (string-append (assoc-ref outputs "out")
11215 "/share/xmoto/Textures/Fonts/")))
11216 (for-each (lambda (f)
11217 (let ((font (string-append font-dir f))
11218 (target (string-append target-dir f)))
11219 (delete-file target)
11220 (symlink font target)))
11221 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11222 #t))))))
11223 (native-inputs
11224 `(("gettext" ,gettext-minimal)
11225 ("pkg-config" ,pkg-config)))
11226 (inputs
11227 `(("bzip2" ,bzip2)
11228 ("curl" ,curl)
11229 ("font-dejavu" ,font-dejavu)
11230 ("glu" ,glu)
11231 ("libjpeg" ,libjpeg-turbo)
11232 ("libpng" ,libpng)
11233 ("libxdg-basedir" ,libxdg-basedir)
11234 ("libxml2" ,libxml2)
11235 ("lua" ,lua-5.1)
11236 ("ode" ,ode)
11237 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11238 ("sqlite" ,sqlite)
11239 ("zlib" ,zlib)))
11240 (home-page "https://xmoto.tuxfamily.org/")
11241 (synopsis "2D motocross platform game")
11242 (description
11243 "X-Moto is a challenging 2D motocross platform game, where
11244 physics play an all important role in the gameplay. You need to
11245 control your bike to its limit, if you want to have a chance finishing
11246 the more difficult challenges.")
11247 (license (list license:gpl2+ ;whole project
11248 license:bsd-3 ;vendor/md5sum
11249 license:lgpl2.1+
11250 license:expat))))
11251
11252 (define-public eboard
11253 (package
11254 (name "eboard")
11255 (version "1.1.3")
11256 (source
11257 (origin
11258 (method git-fetch)
11259 (uri (git-reference
11260 (url "https://github.com/fbergo/eboard")
11261 (commit (string-append "v" version))))
11262 (file-name (git-file-name name version))
11263 (sha256
11264 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11265 (build-system gnu-build-system)
11266 (native-inputs
11267 `(("perl" ,perl)
11268 ("pkg-config" ,pkg-config)))
11269 (inputs
11270 `(("gtk+" ,gtk+-2)
11271 ("libpng" ,libpng)
11272 ("gstreamer" ,gstreamer)))
11273 (arguments
11274 `(#:tests? #f
11275 #:phases
11276 (modify-phases %standard-phases
11277 (replace 'configure
11278 (lambda* (#:key outputs #:allow-other-keys)
11279 (make-file-writable "eboard-config")
11280 (setenv "CC" "gcc")
11281 (invoke "./configure"
11282 (string-append "--prefix=" (assoc-ref outputs "out")))
11283 #t))
11284 (add-before 'install 'make-required-directories
11285 (lambda* (#:key outputs #:allow-other-keys)
11286 (mkdir-p (string-append (assoc-ref outputs "out")
11287 "/share/eboard"))
11288 #t)))))
11289 (synopsis "Graphical user interface to play chess")
11290 (description
11291 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11292 and chess engines.")
11293 (home-page "https://www.bergo.eng.br/eboard/")
11294 (license license:gpl2+)))
11295
11296 (define-public chessx
11297 (package
11298 (name "chessx")
11299 (version "1.5.4")
11300 (source
11301 (origin
11302 (method url-fetch)
11303 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11304 version "/chessx-" version ".tgz"))
11305 (sha256
11306 (base32 "1a3541vl5hp6jllgx998w9kjh9kp3wrl80yfwkxmq1bc5bzsrnz2"))))
11307 (build-system qt-build-system)
11308 (native-inputs
11309 `(("qttools" ,qttools)))
11310 (inputs
11311 `(("qtbase" ,qtbase)
11312 ("qtmultimedia" ,qtmultimedia)
11313 ("qtspeech" ,qtspeech)
11314 ("qtsvg" ,qtsvg)
11315 ("zlib" ,zlib)))
11316 (arguments
11317 `(#:tests? #f
11318 #:phases
11319 (modify-phases %standard-phases
11320 (add-after 'unpack 'fix-paths
11321 (lambda* (#:key inputs #:allow-other-keys)
11322 (substitute* "chessx.pro"
11323 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11324 (string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
11325 ;; Fix missing translations.
11326 (("TRANSLATIONS = i18n/chessx_de.ts")
11327 "TRANSLATIONS = i18n/chessx_de.ts i18n/chessx_da.ts \\
11328 i18n/chessx_fr.ts i18n/chessx_it.ts i18n/chessx_cz.ts i18n/chessx_ru.ts \\
11329 i18n/chessx_es.ts"))
11330 #t))
11331 (add-after 'fix-paths 'make-qt-deterministic
11332 (lambda _
11333 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11334 #t))
11335 (replace 'configure
11336 (lambda _
11337 (invoke "qmake")
11338 #t))
11339 (replace 'install
11340 (lambda* (#:key outputs #:allow-other-keys)
11341 (let ((out (assoc-ref outputs "out")))
11342 (install-file "release/chessx" (string-append out "/bin"))
11343 (install-file "unix/chessx.desktop"
11344 (string-append out "/share/applications")))
11345 #t)))))
11346 (synopsis "Chess game database")
11347 (description
11348 "ChessX is a chess database. With ChessX you can operate on your
11349 collection of chess games in many ways: browse, edit, add, organize, analyze,
11350 etc. You can also play games on FICS or against an engine.")
11351 (home-page "http://chessx.sourceforge.net/")
11352 (license license:gpl2+)))
11353
11354 (define-public stockfish
11355 (package
11356 (name "stockfish")
11357 (version "11")
11358 (source
11359 (origin
11360 (method git-fetch)
11361 (uri (git-reference
11362 (url "https://github.com/official-stockfish/Stockfish")
11363 (commit (string-append "sf_" version))))
11364 (file-name (git-file-name name version))
11365 (sha256
11366 (base32 "12mppipinymj8s1ipq9a7is453vncly49c32ym9wvyklsgyxfzlk"))))
11367 (build-system gnu-build-system)
11368 (arguments
11369 `(#:tests? #f
11370 #:make-flags (list "-C" "src"
11371 "build"
11372 (string-append "PREFIX="
11373 (assoc-ref %outputs "out"))
11374 (string-append "ARCH="
11375 ,(match (%current-system)
11376 ("x86_64-linux" "x86-64")
11377 ("i686-linux" "x86-32")
11378 ("aarch64-linux" "general-64")
11379 ("armhf-linux" "armv7")
11380 ("mips64el-linux" "general-64")
11381 (_ "general-32"))))
11382 #:phases (modify-phases %standard-phases
11383 (delete 'configure))))
11384 (synopsis "Strong chess engine")
11385 (description
11386 "Stockfish is a very strong chess engines. It is much stronger than the
11387 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11388 ChessX.")
11389 (home-page "https://stockfishchess.org/")
11390 (license license:gpl3+)))
11391
11392 (define-public barrage
11393 (package
11394 (name "barrage")
11395 (version "1.0.5")
11396 (source
11397 (origin
11398 (method url-fetch)
11399 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11400 "barrage-" version ".tar.gz"))
11401 (sha256
11402 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11403 (build-system gnu-build-system)
11404 (inputs
11405 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11406 ("sdl" ,sdl)
11407 ("sdl-mixer" ,sdl-mixer)))
11408 (arguments
11409 `(#:configure-flags
11410 (list
11411 (string-append "CFLAGS="
11412 "-I" (assoc-ref %build-inputs "sdl-mixer")
11413 "/include/SDL"))))
11414 (home-page "http://lgames.sourceforge.net/Barrage/")
11415 (synopsis "Violent point-and-click shooting game with nice effects")
11416 (description
11417 "Barrage is a rather destructive action game that puts you on a shooting
11418 range with the objective to hit as many dummy targets as possible within
11419 3 minutes. You control a gun that may either fire small or large grenades at
11420 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11421 get high scores.")
11422 (license license:gpl2+)))
11423
11424 (define-public burgerspace
11425 (package
11426 (name "burgerspace")
11427 (version "1.9.3")
11428 (source
11429 (origin
11430 (method url-fetch)
11431 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11432 "burgerspace-" version ".tar.gz"))
11433 (sha256
11434 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11435 (build-system gnu-build-system)
11436 (native-inputs
11437 `(("pkg-config" ,pkg-config)))
11438 (inputs
11439 `(("flatzebra" ,flatzebra)))
11440 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11441 (synopsis "Avoid evil foodstuffs and make burgers")
11442 (description
11443 "This is a clone of the classic game BurgerTime. In it, you play
11444 the part of a chef who must create burgers by stepping repeatedly on
11445 the ingredients until they fall into place. And to make things more
11446 complicated, you also must avoid evil animate food items while
11447 performing this task, with nothing but your trusty pepper shaker to
11448 protect you.")
11449 (license license:gpl2+)))
11450
11451 (define-public 7kaa
11452 (package
11453 (name "7kaa")
11454 (version "2.15.4")
11455 (source
11456 (origin
11457 (method url-fetch)
11458 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11459 "releases/download/v" version "/"
11460 "7kaa-" version ".tar.xz"))
11461 (sha256
11462 (base32 "0n0bn6xshv3cwk8j0lkl65a1vqd1xkkzlhvwxm32va80nc16d5ds"))))
11463 (build-system gnu-build-system)
11464 (native-inputs
11465 `(("gettext" ,gettext-minimal)
11466 ("pkg-config" ,pkg-config)))
11467 (inputs
11468 `(("curl" ,curl)
11469 ("enet" ,enet)
11470 ("openal" ,openal)
11471 ("sdl2" ,sdl2)))
11472 (home-page "https://7kfans.com/")
11473 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11474 (description
11475 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11476 Strategy with the addition of trade, diplomacy, and espionage. The game
11477 enables players to compete against up to six other kingdoms allowing players
11478 to conquer opponents by defeating them in war (with troops or machines),
11479 capturing their buildings with spies, or offering opponents money for their
11480 kingdom.")
11481 (license license:gpl2+)))
11482
11483 (define-public neverball
11484 ;; Git version is 6-years younger than latest release.
11485 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
11486 (revision "1"))
11487 (package
11488 (name "neverball")
11489 (version (git-version "1.6.0" revision commit))
11490 (source
11491 (origin
11492 (method git-fetch)
11493 (uri (git-reference
11494 (url "https://github.com/Neverball/neverball")
11495 (commit commit)))
11496 (sha256
11497 (base32
11498 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
11499 (file-name (git-file-name name version))
11500 (modules '((guix build utils)))
11501 (snippet
11502 '(begin
11503 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
11504 (delete-file-recursively "data/ball/octocat")
11505 #t))))
11506 (build-system copy-build-system)
11507 (arguments
11508 `(#:install-plan
11509 '(("neverball" "bin/")
11510 ("neverputt" "bin/")
11511 ("mapc" "bin/")
11512 ("data" "share/games/neverball/")
11513 ("locale" "share/")
11514 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
11515 "neverlogos.svg"
11516 "svg readme.txt"))
11517 ("dist/" "share/applications" #:include ("neverball.desktop"
11518 "neverputt.desktop"))
11519 ("dist/neverball_16.png"
11520 "/share/icons/hicolor/16x16/apps/neverball.png")
11521 ("dist/neverball_24.png"
11522 "/share/icons/hicolor/24x24/apps/neverball.png")
11523 ("dist/neverball_32.png"
11524 "/share/icons/hicolor/32x32/apps/neverball.png")
11525 ("dist/neverball_48.png"
11526 "/share/icons/hicolor/48x48/apps/neverball.png")
11527 ("dist/neverball_64.png"
11528 "/share/icons/hicolor/64x64/apps/neverball.png")
11529 ("dist/neverball_128.png"
11530 "/share/icons/hicolor/128x128/apps/neverball.png")
11531 ("dist/neverball_256.png"
11532 "/share/icons/hicolor/256x256/apps/neverball.png")
11533 ("dist/neverball_512.png"
11534 "/share/icons/hicolor/512x512/apps/neverball.png")
11535 ("dist/neverputt_16.png"
11536 "/share/icons/hicolor/16x16/apps/neverputt.png")
11537 ("dist/neverputt_24.png"
11538 "/share/icons/hicolor/24x24/apps/neverputt.png")
11539 ("dist/neverputt_32.png"
11540 "/share/icons/hicolor/32x32/apps/neverputt.png")
11541 ("dist/neverputt_48.png"
11542 "/share/icons/hicolor/48x48/apps/neverputt.png")
11543 ("dist/neverputt_64.png"
11544 "/share/icons/hicolor/64x64/apps/neverputt.png")
11545 ("dist/neverputt_128.png"
11546 "/share/icons/hicolor/128x128/apps/neverputt.png")
11547 ("dist/neverputt_256.png"
11548 "/share/icons/hicolor/256x256/apps/neverputt.png")
11549 ("dist/neverputt_512.png"
11550 "/share/icons/hicolor/512x512/apps/neverputt.png")
11551 ("dist/" "share/man/man1" #:include ("mapc.1"))
11552 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
11553 ("doc/" "share/doc/neverball")
11554 ("README.md" "share/doc/neverball/"))
11555 #:phases
11556 (modify-phases %standard-phases
11557 (add-before 'install 'build
11558 (lambda* (#:key inputs outputs #:allow-other-keys)
11559 (let* ((out (assoc-ref outputs "out"))
11560 (sdl (assoc-ref inputs "sdl")))
11561 (invoke "make" "-j" (number->string (parallel-job-count))
11562 "--environment-overrides"
11563 "CC=gcc" "BUILD=release"
11564 (string-append "DATADIR="
11565 out
11566 "/share/games/neverball/data")
11567 (string-append "LOCALEDIR=" out "/share/locale")
11568 (string-append "SDL_CPPFLAGS=-I"
11569 sdl
11570 "/include/SDL2/")))
11571 #t))
11572 (add-after 'install 'fix-some-broken-fonts
11573 (lambda* (#:key outputs #:allow-other-keys)
11574 (let* ((out (assoc-ref outputs "out")))
11575 (wrap-program (string-append out "/bin/neverball")
11576 `("LANG" = ("en_US.utf8")))
11577 (wrap-program (string-append out "/bin/neverputt")
11578 `("LANG" = ("en_US.utf8"))))
11579 #t)))))
11580 (native-inputs
11581 `(("gettext" ,gettext-minimal))) ;for msgfmt
11582 (inputs
11583 `(("libjpeg" ,libjpeg-turbo)
11584 ("libpng" ,libpng)
11585 ("libvorbis" ,libvorbis)
11586 ("physfs" ,physfs)
11587 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
11588 (home-page "https://neverball.org/")
11589 (synopsis "3D floor-tilting game")
11590 (description
11591 "In the grand tradition of Marble Madness and Super Monkey Ball,
11592 Neverball has you guide a rolling ball through dangerous territory. Balance
11593 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
11594 and shovers to get to the goal. Race against the clock to collect coins to
11595 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
11596 game.") ;thanks to Debian for description
11597 (license license:gpl2+))))
11598
11599 (define-public pokerth
11600 (package
11601 (name "pokerth")
11602 (version "1.1.2")
11603 (source
11604 (origin
11605 (method url-fetch)
11606 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
11607 version "/pokerth-" version ".tar.gz"))
11608 (sha256
11609 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
11610 (modules '((guix build utils)))
11611 (snippet
11612 '(begin
11613 ;; Remove bundled websocketpp.
11614 (delete-file-recursively "src/third_party/websocketpp")
11615 (substitute* "pokerth_lib.pro"
11616 (("src/third_party/websocketpp")
11617 ""))
11618 #t))))
11619 (build-system qt-build-system)
11620 (inputs
11621 `(("boost" ,boost)
11622 ("curl" ,curl)
11623 ("gsasl" ,gsasl)
11624 ("libgcrypt" ,libgcrypt)
11625 ("libircclient" ,libircclient)
11626 ("protobuf" ,protobuf-2)
11627 ("qtbase" ,qtbase)
11628 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
11629 ("sqlite" ,sqlite)
11630 ("tinyxml" ,tinyxml)
11631 ("websocketpp" ,websocketpp)
11632 ("zlib" ,zlib)))
11633 (arguments
11634 `(#:tests? #f ; No test suite
11635 #:phases
11636 (modify-phases %standard-phases
11637 (add-after 'unpack 'fix-paths
11638 (lambda* (#:key inputs #:allow-other-keys)
11639 (substitute* (find-files "." "\\.pro$")
11640 (("/opt/gsasl")
11641 (assoc-ref inputs "gsasl"))
11642 (("\\$\\$\\{PREFIX\\}/include/libircclient")
11643 (string-append (assoc-ref inputs "libircclient")
11644 "/include/libircclient"))
11645 (("LIB_DIRS =")
11646 (string-append "LIB_DIRS = "
11647 (assoc-ref inputs "boost") "/lib")))
11648 #t))
11649 (add-after 'unpack 'fix-build
11650 (lambda _
11651 ;; Fixes for Boost versions >= 1.66.
11652 (substitute* '("src/net/common/clientthread.cpp"
11653 "src/net/serveraccepthelper.h")
11654 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
11655 "")
11656 (("newSock->io_control\\(command\\);")
11657 "newSock->non_blocking(true);")
11658 (("acceptedSocket->io_control\\(command\\);")
11659 "acceptedSocket->non_blocking(true);"))
11660 #t))
11661 (replace 'configure
11662 (lambda* (#:key outputs #:allow-other-keys)
11663 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
11664 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
11665 (home-page "https://www.pokerth.net")
11666 (synopsis "Texas holdem poker game")
11667 (description
11668 "With PokerTH you can play the Texas holdem poker game, either against
11669 computer opponents or against real players online.")
11670 (license license:agpl3+)))