gnu: minetest: Fix absolute path to 'rm' command.
[jackhill/guix/guix.git] / gnu / packages / games.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Eric Bavier <bavier@posteo.net>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015, 2019 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015, 2017, 2018 Christopher Lemmer Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2021 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017, 2019 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
35 ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
36 ;;; Copyright © 2018 Madalin Ionel-Patrascu <madalinionel.patrascu@mdc-berlin.de>
37 ;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
38 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
39 ;;; Copyright © 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
40 ;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
41 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
42 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
43 ;;; Copyright © 2019, 2020 Jesse Gibbons <jgibbons2357+guix@gmail.com>
44 ;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
45 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
46 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
47 ;;; Copyright © 2019 Josh Holland <josh@inv.alid.pw>
48 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
49 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
50 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
51 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
52 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
53 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
54 ;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020, 2021 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020, 2021 Leo Prikler <leo.prikler@student.tugraz.at>
57 ;;; Copyright © 2020 Lu hux <luhux@outlook.com>
58 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
59 ;;; Copyright © 2021 Olivier Rojon <o.rojon@posteo.net>
60 ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
61 ;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
62 ;;;
63 ;;; This file is part of GNU Guix.
64 ;;;
65 ;;; GNU Guix is free software; you can redistribute it and/or modify it
66 ;;; under the terms of the GNU General Public License as published by
67 ;;; the Free Software Foundation; either version 3 of the License, or (at
68 ;;; your option) any later version.
69 ;;;
70 ;;; GNU Guix is distributed in the hope that it will be useful, but
71 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
72 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
73 ;;; GNU General Public License for more details.
74 ;;;
75 ;;; You should have received a copy of the GNU General Public License
76 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
77
78 (define-module (gnu packages games)
79 #:use-module (ice-9 match)
80 #:use-module ((guix licenses) #:prefix license:)
81 #:use-module (guix utils)
82 #:use-module (guix packages)
83 #:use-module (guix download)
84 #:use-module (guix git-download)
85 #:use-module (guix svn-download)
86 #:use-module (guix gexp)
87 #:use-module (gnu packages)
88 #:use-module (gnu packages adns)
89 #:use-module (gnu packages algebra)
90 #:use-module (gnu packages autotools)
91 #:use-module (gnu packages backup)
92 #:use-module (gnu packages base)
93 #:use-module (gnu packages build-tools)
94 #:use-module (gnu packages admin)
95 #:use-module (gnu packages audio)
96 #:use-module (gnu packages avahi)
97 #:use-module (gnu packages assembly)
98 #:use-module (gnu packages bash)
99 #:use-module (gnu packages bison)
100 #:use-module (gnu packages boost)
101 #:use-module (gnu packages check)
102 #:use-module (gnu packages cmake)
103 #:use-module (gnu packages compression)
104 #:use-module (gnu packages cpp)
105 #:use-module (gnu packages curl)
106 #:use-module (gnu packages crypto)
107 #:use-module (gnu packages cyrus-sasl)
108 #:use-module (gnu packages documentation)
109 #:use-module (gnu packages docbook)
110 #:use-module (gnu packages emulators)
111 #:use-module (gnu packages flex)
112 #:use-module (gnu packages fltk)
113 #:use-module (gnu packages fonts)
114 #:use-module (gnu packages fontutils)
115 #:use-module (gnu packages freedesktop)
116 #:use-module (gnu packages fribidi)
117 #:use-module (gnu packages game-development)
118 #:use-module (gnu packages gcc)
119 #:use-module (gnu packages gettext)
120 #:use-module (gnu packages ghostscript)
121 #:use-module (gnu packages gimp)
122 #:use-module (gnu packages gl)
123 #:use-module (gnu packages glib)
124 #:use-module (gnu packages gnome)
125 #:use-module (gnu packages gnu-doc)
126 #:use-module (gnu packages gnupg)
127 #:use-module (gnu packages gnuzilla)
128 #:use-module (gnu packages gperf)
129 #:use-module (gnu packages graphics)
130 #:use-module (gnu packages gsasl)
131 #:use-module (gnu packages gstreamer)
132 #:use-module (gnu packages gtk)
133 #:use-module (gnu packages guile)
134 #:use-module (gnu packages haskell)
135 #:use-module (gnu packages haskell-crypto)
136 #:use-module (gnu packages haskell-xyz)
137 #:use-module (gnu packages icu4c)
138 #:use-module (gnu packages image)
139 #:use-module (gnu packages imagemagick)
140 #:use-module (gnu packages javascript)
141 #:use-module (gnu packages kde)
142 #:use-module (gnu packages kde-frameworks)
143 #:use-module (gnu packages less)
144 #:use-module (gnu packages libcanberra)
145 #:use-module (gnu packages libedit)
146 #:use-module (gnu packages libunwind)
147 #:use-module (gnu packages linux)
148 #:use-module (gnu packages llvm)
149 #:use-module (gnu packages lua)
150 #:use-module (gnu packages man)
151 #:use-module (gnu packages maths)
152 #:use-module (gnu packages messaging)
153 #:use-module (gnu packages mp3)
154 #:use-module (gnu packages music)
155 #:use-module (gnu packages multiprecision)
156 #:use-module (gnu packages ncurses)
157 #:use-module (gnu packages netpbm)
158 #:use-module (gnu packages networking)
159 #:use-module (gnu packages ocaml)
160 #:use-module (gnu packages opencl)
161 #:use-module (gnu packages pcre)
162 #:use-module (gnu packages perl)
163 #:use-module (gnu packages perl-check)
164 #:use-module (gnu packages perl-compression)
165 #:use-module (gnu packages pkg-config)
166 #:use-module (gnu packages protobuf)
167 #:use-module (gnu packages pulseaudio)
168 #:use-module (gnu packages python)
169 #:use-module (gnu packages python-xyz)
170 #:use-module (gnu packages qt)
171 #:use-module (gnu packages readline)
172 #:use-module (gnu packages ruby)
173 #:use-module (gnu packages shells)
174 #:use-module (gnu packages sdl)
175 #:use-module (gnu packages serialization)
176 #:use-module (gnu packages sqlite)
177 #:use-module (gnu packages squirrel)
178 #:use-module (gnu packages swig)
179 #:use-module (gnu packages tcl)
180 #:use-module (gnu packages terminals)
181 #:use-module (gnu packages texinfo)
182 #:use-module (gnu packages textutils)
183 #:use-module (gnu packages tls)
184 #:use-module (gnu packages upnp)
185 #:use-module (gnu packages video)
186 #:use-module (gnu packages vulkan)
187 #:use-module (gnu packages web)
188 #:use-module (gnu packages wget)
189 #:use-module (gnu packages wxwidgets)
190 #:use-module (gnu packages xdisorg)
191 #:use-module (gnu packages xorg)
192 #:use-module (gnu packages xiph)
193 #:use-module (gnu packages xml)
194 #:use-module (guix build-system copy)
195 #:use-module (guix build-system cmake)
196 #:use-module (guix build-system glib-or-gtk)
197 #:use-module (guix build-system gnu)
198 #:use-module (guix build-system go)
199 #:use-module (guix build-system meson)
200 #:use-module (guix build-system perl)
201 #:use-module (guix build-system python)
202 #:use-module (guix build-system qt)
203 #:use-module (guix build-system scons)
204 #:use-module (guix build-system trivial)
205 #:use-module ((srfi srfi-1) #:hide (zip))
206 #:use-module (srfi srfi-26))
207
208 (define-public abe
209 (package
210 (name "abe")
211 (version "1.1")
212 (source
213 (origin
214 (method url-fetch)
215 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
216 "/abe-" version ".tar.gz"))
217 (sha256
218 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
219 (build-system gnu-build-system)
220 (arguments
221 `(#:configure-flags
222 (list (string-append "--with-data-dir="
223 (assoc-ref %outputs "out")
224 "/share/abe"))
225 #:phases
226 (modify-phases %standard-phases
227 (replace 'bootstrap
228 (lambda _ (invoke "sh" "autogen.sh")))
229 (add-before 'build 'set-SDL
230 ;; Set correct environment for SDL.
231 (lambda* (#:key inputs #:allow-other-keys)
232 (setenv "CPATH"
233 (string-append
234 (assoc-ref inputs "sdl") "/include/SDL:"
235 (or (getenv "CPATH") "")))
236 #t))
237 (add-after 'install 'finalize-install
238 (lambda* (#:key outputs #:allow-other-keys)
239 (let ((share (string-append (assoc-ref outputs "out") "/share")))
240 ;; Installation script does not copy game data files.
241 (let ((data (string-append share "/abe")))
242 (for-each (lambda (dir)
243 (let ((target (string-append data "/" dir)))
244 (mkdir-p target)
245 (copy-recursively dir target)))
246 '("images" "maps" "sounds")))
247 ;; Create desktop file.
248 (let ((apps (string-append share "/applications")))
249 (mkdir-p apps)
250 (make-desktop-entry-file
251 (string-append apps "/abe.desktop")
252 #:name "Abe's Amazing Adventure"
253 #:exec ,name
254 #:categories '("AdventureGame" "Game")
255 #:keywords
256 '("side-scrolling" "adventure" "pyramid" "singleplayer")
257 #:comment
258 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
259 (#f "Side-scrolling game")))))
260 #t)))))
261 (native-inputs
262 `(("autoconf" ,autoconf)
263 ("automake" ,automake)))
264 (inputs
265 `(("libxi" ,libxi)
266 ("libxmu" ,libxmu)
267 ("libxt" ,libxt)
268 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
269 (home-page "http://abe.sourceforge.net")
270 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
271 (description
272 "Abe's Amazing Adventure is a scrolling,
273 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
274 the style of similar games for the Commodore+4.")
275 (license license:gpl2+)))
276
277 ;; Data package for adanaxisgpl.
278 (define adanaxis-mush
279 (let ((version "1.1.0"))
280 (origin
281 (method url-fetch)
282 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
283 version ".tar.gz"))
284 (sha256
285 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
286
287 (define-public adanaxisgpl
288 (package
289 (name "adanaxisgpl")
290 (version "1.2.5")
291 (source
292 (origin
293 (method url-fetch)
294 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
295 version ".tar.gz"))
296 (sha256
297 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
298 (modules '((guix build utils)))
299 (snippet
300 '(begin
301 ;; Necessary for building with gcc >=4.7.
302 (substitute* "src/Mushcore/MushcoreSingleton.h"
303 (("SingletonPtrSet\\(new SingletonType\\);")
304 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
305 ;; Avoid an "invalid conversion from const char* to char*" error.
306 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
307 (("char \\*end, \\*result;")
308 (string-append "const char *end;"
309 "\n"
310 "char *result;")))
311 #t))))
312 (build-system gnu-build-system)
313 (arguments
314 `(#:tests? #f ; no check target
315 #:phases
316 (modify-phases %standard-phases
317 (add-after 'install 'install-data
318 (lambda* (#:key inputs outputs #:allow-other-keys)
319 (let ((data (assoc-ref inputs "adanaxis-mush"))
320 (share (string-append (assoc-ref outputs "out")
321 "/share/" ,name "-" ,version)))
322 (mkdir-p share)
323 (invoke "tar" "xvf" data "-C" share)))))))
324 (native-inputs
325 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
326 (inputs
327 `(("expat" ,expat)
328 ("freeglut" ,freeglut)
329 ("glu" ,glu)
330 ("libjpeg" ,libjpeg-turbo)
331 ("libogg" ,libogg)
332 ("libtiff" ,libtiff)
333 ("libvorbis" ,libvorbis)
334 ("libx11" ,libx11)
335 ("libxext" ,libxext)
336 ("pcre" ,pcre)
337 ("sdl" ,sdl)
338 ("sdl-mixer" ,sdl-mixer)))
339 (home-page "https://www.mushware.com")
340 (synopsis "Action game in four spatial dimensions")
341 (description
342 "Adanaxis is a fast-moving first person shooter set in deep space, where
343 the fundamentals of space itself are changed. By adding another dimension to
344 space this game provides an environment with movement in four directions and
345 six planes of rotation. Initially the game explains the 4D control system via
346 a graphical sequence, before moving on to 30 levels of gameplay with numerous
347 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
348 mouse and joystick control, and original music.")
349 (license license:gpl2)))
350
351 (define-public alex4
352 (package
353 (name "alex4")
354 (version "1.2.1")
355 (source
356 (origin
357 (method git-fetch)
358 (uri (git-reference
359 (url "https://github.com/carstene1ns/alex4")
360 (commit version)))
361 (file-name (git-file-name name version))
362 (sha256
363 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
364 (build-system gnu-build-system)
365 (arguments
366 `(#:tests? #f ; no check target
367 #:make-flags
368 (list "CC=gcc"
369 "CFLAGS=-D_FILE_OFFSET_BITS=64"
370 (string-append "PREFIX=" (assoc-ref %outputs "out")))
371 #:phases
372 (modify-phases %standard-phases
373 (delete 'configure) ; no configure script
374 (add-after 'install 'install-data
375 (lambda* (#:key outputs #:allow-other-keys)
376 (let ((share (string-append (assoc-ref outputs "out")
377 "/share/" ,name)))
378 (install-file "alex4.ini" share)
379 #t))))))
380 (inputs
381 `(("allegro" ,allegro-4)
382 ("dumb" ,dumb-allegro4)))
383 (home-page "http://allegator.sourceforge.net/")
384 (synopsis "Retro platform game")
385 (description
386 "Guide Alex the Allegator through the jungle in order to save his
387 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
388 Plenty of classic platforming in four nice colors guaranteed!
389
390 The game includes a built-in editor so you can design and share your own maps.")
391 (license license:gpl2+)))
392
393 (define-public armagetronad
394 (package
395 (name "armagetronad")
396 (version "0.2.9.0.1")
397 (source (origin
398 (method url-fetch)
399 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
400 version "/armagetronad-" version ".tbz"))
401 (sha256
402 (base32
403 "19rfhlg4gp0r7k1j8v4iw20325ciy156nmzax4xikmw22c6nmxcz"))))
404 (build-system gnu-build-system)
405 (native-inputs
406 `(("pkg-config" ,pkg-config)))
407 (inputs
408 `(("libxml2" ,libxml2)
409 ("sdl" ,sdl)
410 ("sdl-image" ,sdl-image)
411 ("freeglut" ,freeglut)
412 ("libpng" ,libpng)
413 ("libjpeg-turbo" ,libjpeg-turbo)))
414 (home-page "http://www.armagetronad.org")
415 (synopsis "Tron clone in 3D")
416 (description "Armagetron Advanced is a multiplayer game in 3d that
417 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
418 It's an old school arcade game slung into the 21st century. Highlights
419 include a customizable playing arena, HUD, unique graphics, and AI bots. For
420 the more advanced player there are new game modes and a wide variety of
421 physics settings to tweak as well.")
422 (license license:gpl2+)))
423
424 (define-public astromenace
425 (package
426 (name "astromenace")
427 (version "1.4.1")
428 (source
429 (origin
430 (method git-fetch)
431 (uri (git-reference
432 (url "https://github.com/viewizard/astromenace")
433 (commit (string-append "v" version))))
434 (file-name (git-file-name name version))
435 (sha256
436 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
437 (build-system cmake-build-system)
438 (arguments
439 `(#:tests? #f ;no test
440 #:configure-flags (list (string-append "-DDATADIR="
441 (assoc-ref %outputs "out")
442 "/share/astromenace"))
443 #:phases
444 (modify-phases %standard-phases
445 (replace 'install
446 ;; Upstream provides no install phase.
447 (lambda* (#:key inputs outputs #:allow-other-keys)
448 (let* ((out (assoc-ref outputs "out"))
449 (bin (string-append out "/bin"))
450 (share (string-append out "/share"))
451 (apps (string-append share "/applications"))
452 (data (string-append share "/astromenace"))
453 (icons (string-append share "/icons/hicolor/64x64/apps")))
454 (install-file "astromenace" bin)
455 (install-file "gamedata.vfs" data)
456 (let ((source (assoc-ref inputs "source")))
457 (with-directory-excursion (string-append source "/share")
458 (install-file "astromenace.desktop" apps)
459 (mkdir-p icons)
460 (copy-file "astromenace_64.png"
461 (string-append icons "/astromenace.png")))))
462 #t)))))
463 (inputs
464 `(("freealut" ,freealut)
465 ("freetype" ,freetype)
466 ("glu" ,glu)
467 ("libogg" ,libogg)
468 ("libvorbis" ,libvorbis)
469 ("openal" ,openal)
470 ("sdl2" ,sdl2)))
471 (home-page "https://www.viewizard.com/")
472 (synopsis "3D space shooter with spaceship upgrade possibilities")
473 (description
474 "Space is a vast area, an unbounded territory where it seems there is
475 a room for everybody, but reversal of fortune put things differently. The
476 hordes of hostile creatures crawled out from the dark corners of the universe,
477 craving to conquer your homeland. Their force is compelling, their legions
478 are interminable. However, humans didn't give up without a final showdown and
479 put their best pilot to fight back. These malicious invaders chose the wrong
480 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
481 regret their insolence.")
482 ;; Game is released under GPL3+ terms. Artwork is subject to CC
483 ;; BY-SA 4.0, and fonts to OFL1.1.
484 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
485
486 (define-public bastet
487 (package
488 (name "bastet")
489 (version "0.43.2")
490 (source
491 (origin
492 (method git-fetch)
493 (uri (git-reference
494 (url "https://github.com/fph/bastet")
495 (commit version)))
496 (file-name (git-file-name name version))
497 (sha256
498 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
499 (patches
500 (search-patches "bastet-change-source-of-unordered_set.patch"))))
501 (build-system gnu-build-system)
502 (arguments
503 `(#:make-flags
504 (list (string-append "CXXFLAGS=-I"
505 (assoc-ref %build-inputs "boost") "/include"))
506 #:phases
507 (modify-phases %standard-phases
508 (delete 'configure) ; no configure script
509 (replace 'check
510 ;; The 'Test' target builds the tests, but doesn't actually run them.
511 (lambda* (#:key make-flags #:allow-other-keys)
512 (apply invoke "make" "Test" make-flags)
513 (setenv "HOME" ".")
514 (invoke "./Test")))
515 (replace 'install
516 (lambda* (#:key outputs #:allow-other-keys)
517 (let* ((out (assoc-ref outputs "out"))
518 (share (string-append out "/share"))
519 (hicolor (string-append share "/icons/hicolor")))
520 (install-file "bastet"
521 (string-append out "/bin"))
522
523 (install-file "bastet.desktop"
524 (string-append share "/applications"))
525 (install-file "bastet.svg"
526 (string-append hicolor "/scalable/apps"))
527
528 (install-file "bastet.appdata.xml"
529 (string-append share "/appdata"))
530
531 (install-file "bastet.6"
532 (string-append out "/share/man/man6"))
533 #t))))))
534 (native-inputs
535 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
536 (inputs
537 `(("boost" ,boost)
538 ("ncurses" ,ncurses)))
539 (home-page "https://fph.altervista.org/prog/bastet.html")
540 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
541 (description
542 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
543 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
544 Instead, it uses a special algorithm to choose the worst brick possible.
545
546 Playing bastet can be a painful experience, especially if you usually make
547 canyons and wait for the long I-shaped block to clear four rows at a time.")
548 (license license:gpl3+)))
549
550 (define-public vitetris
551 (package
552 (name "vitetris")
553 (version "0.59.1")
554 (source
555 (origin
556 (method git-fetch)
557 (uri (git-reference
558 (url "https://github.com/vicgeralds/vitetris")
559 (commit (string-append "v" version))))
560 (sha256
561 (base32 "1ah1c5g7abksif0n8v5rb7r4pn2az20c3mkp4ak13vgs23ddmds5"))
562 (file-name (git-file-name name version))))
563 (build-system gnu-build-system)
564 (arguments
565 `(#:tests? #f ;no test
566 #:make-flags
567 (list ,(string-append "CC=" (cc-for-target))
568 (string-append "DESTDIR=" (assoc-ref %outputs "out")))
569 #:phases
570 (modify-phases %standard-phases
571 (replace 'configure
572 (lambda _
573 ;; the non standard configure script does not accept
574 ;; standard parameters -> invoke configure by hand
575 (invoke "./configure" "prefix=")
576 ;; src/src-conf.mk must be writable for the build step
577 (make-file-writable "src/src-conf.mk"))))))
578 (home-page "http://victornils.net/tetris/")
579 (synopsis "Terminal-based Tetris clone")
580 (description "Vitetris is a classic multiplayer Tetris clone for the
581 terminal.")
582 (license license:bsd-2)))
583
584 (define-public blobwars
585 (package
586 (name "blobwars")
587 (version "2.00")
588 (source
589 (origin
590 (method url-fetch)
591 (uri (string-append "mirror://sourceforge/blobwars/"
592 "blobwars-" version ".tar.gz"))
593 (sha256
594 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
595 (build-system gnu-build-system)
596 (arguments
597 `(#:tests? #f ;no test
598 #:make-flags
599 (let ((out (assoc-ref %outputs "out")))
600 (list (string-append "PREFIX=" out)
601 (string-append "BINDIR=" out "/bin/")
602 "USEPAK=1"
603 "RELEASE=1"))
604 #:phases
605 (modify-phases %standard-phases
606 (add-after 'unpack 'werror-begone
607 (lambda _
608 (substitute* "Makefile" (("-Werror") ""))
609 #t))
610 (delete 'configure)))) ;no configure script
611 (native-inputs
612 `(("gettext" ,gettext-minimal)
613 ("pkg-config" ,pkg-config)))
614 (inputs
615 `(("hicolor-icon-theme" ,hicolor-icon-theme)
616 ("sdl" ,(sdl-union (list sdl2
617 sdl2-image
618 sdl2-mixer
619 sdl2-ttf
620 sdl2-net)))))
621 (home-page "https://sourceforge.net/projects/blobwars/")
622 (synopsis "Platform action game featuring a blob with a lot of weapons")
623 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
624 in the Blobwars series. You take on the role of a fearless Blob agent. Your
625 mission is to infiltrate various enemy bases and rescue as many MIAs as
626 possible, while battling many vicious aliens.")
627 (license (list license:gpl2 ; For code and graphics
628 license:cc0 ; Music and sounds have specific licenses
629 license:cc-by3.0 ; see /doc/readme
630 license:cc-by-sa3.0
631 license:lgpl2.1+
632 license:bsd-2))))
633
634 (define-public bsd-games
635 (package
636 (name "bsd-games")
637 (version "2.17.0")
638 (source
639 (origin
640 (method url-fetch)
641 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
642 (sha256
643 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
644 (patches
645 (search-patches
646 ;; thanks Arch, and Debian
647 "bsd-games-2.17-64bit.patch"
648 "bsd-games-bad-ntohl-cast.patch"
649 "bsd-games-gamescreen.h.patch"
650 "bsd-games-getline.patch"
651 "bsd-games-null-check.patch"
652 "bsd-games-number.c-and-test.patch"
653 "bsd-games-stdio.h.patch"
654 "bsd-games-prevent-name-collisions.patch"
655 ;; Guix customizations
656 "bsd-games-add-configure-config.patch"
657 "bsd-games-dont-install-empty-files.patch"
658 "bsd-games-add-wrapper.patch"))))
659 (build-system gnu-build-system)
660 (native-inputs
661 `(("flex" ,flex)
662 ("bison" ,bison)))
663 (inputs
664 `(("curses" ,ncurses)
665 ("pager" ,less)
666 ("miscfiles" ,miscfiles)
667 ("openssl" ,openssl))) ;used only by 'factor'
668 (arguments
669 `(#:phases
670 (modify-phases %standard-phases
671 (replace 'configure
672 (lambda* (#:key outputs inputs #:allow-other-keys)
673 (let* ((out (assoc-ref outputs "out"))
674 (bin (string-append out "/bin"))
675 (doc (string-append out "/share/doc/bsd-games-" ,version))
676 (man (string-append out "/share/man"))
677 (word-list (string-append (assoc-ref inputs "miscfiles")
678 "/share/web2"))
679 (static-data (string-append out "/share/games/bsd-games"))
680 ;; Not a "./" because of substitute* in 'patch-install
681 ;; below. The .// allow us not to mess with the games'
682 ;; code any further: we just use a wrapper script that
683 ;; cd's to a BSD_GAMES_DIR. :]
684 (save-files ".//"))
685 (substitute* "configure"
686 (("/usr/share/man") man)
687 (("/usr/share/doc/bsd-games") doc)
688 (("/usr/share/[^\n/]*") static-data)
689 (("/var/games") save-files)
690 (("/usr/bin/less") (which "less"))
691 (("(/usr/bin|/usr/games)") bin))
692 (substitute* "config.params" (("WORD_LIST") word-list))
693 (substitute* "wrapper" (("STATIC_DATA") static-data))
694 (invoke "./configure"))
695 #t))
696 (add-before 'install 'patch-install
697 ;; Some games need a writable directory containing pre-maded files.
698 ;; The files get installed to the Store. Then the wrapper kicks in.
699 (lambda* (#:key outputs #:allow-other-keys)
700 (let* ((out (assoc-ref outputs "out"))
701 (static-data (string-append out "/share/games/bsd-games"))
702 (save-files ".//"))
703 (substitute* "Makeconfig" ((save-files) static-data)))
704 #t))
705 (add-after 'install 'install-documents
706 (lambda* (#:key outputs #:allow-other-keys)
707 (let* ((out (assoc-ref outputs "out"))
708 (doc (string-append out "/share/doc/bsd-games-" ,version)))
709 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
710 (for-each
711 (lambda(file) (install-file file doc))
712 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
713 "phantasia-COPYRIGHT")))
714 #t)))))
715 (home-page "https://github.com/vattam/BSDGames")
716 (synopsis "Collection of the old text-based games and amusements")
717 (description
718 "These are the BSD games. See the fortune-mod package for fortunes.
719
720 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
721 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
722 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
723 the $$ from the cave, anger the snake, and get out alive), tetris (game of
724 lining up the falling bricks of different shapes), and worm (eat, grow big,
725 and neither bite your tail, nor ram the wall).
726
727 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
728 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
729 the input), factor (factorizes a number), number (translates numbers into
730 text), pig (translates from English to Pig Latin), pom (should print the
731 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
732 in terminal), random (prints randomly chosen lines from files, or returns a
733 random exit-code), and wtf (explains what do some acronyms mean).
734
735 Board: backgammon (lead the men out of board faster than the friend do),
736 boggle (find the words in the square of letters), dab (game of dots and
737 boxes), gomoku (game of five in a row), hangman (guess a word before man is
738 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
739 canfield, cribbage, fish (juniors game), and mille.
740
741 Quests: adventure (search for treasures with the help of wizard),
742 battlestar (explore the world around, starting from dying spaceship),
743 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
744 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
745
746 Quizzes: arithmetic and quiz.")
747 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
748 ;; not bearing copyright notices, probably fall under the terms of the UCB
749 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
750 ;; warning in regard to the fortune databases."
751 (license (list
752 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
753 ;; lib/strlcpy.c, wargames/wargames.6
754 license:bsd-3
755 ;; dab and hunt. Files: adventure/extern.h,
756 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
757 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
758 ;; hack/extern.h, robots/auto.c, sail/display.h,
759 ;; sail/restart.h, wargames/wargames
760 license:bsd-4
761 ;; wtf (the game)
762 license:public-domain
763 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
764 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
765
766
767 (define-public bzflag
768 (package
769 (name "bzflag")
770 (version "2.4.22")
771 (source
772 (origin
773 (method url-fetch)
774 (uri (string-append "https://download.bzflag.org/bzflag/source/"
775 version "/bzflag-" version ".tar.bz2"))
776 (sha256
777 (base32 "0kba0011nswc2csqlzkd7bas307zm5813zlnby5vsmxn08rnar4y"))))
778 (build-system gnu-build-system)
779 (arguments
780 `(#:phases
781 (modify-phases %standard-phases
782 (add-after 'install 'install-desktop-file-and-icons
783 (lambda* (#:key outputs #:allow-other-keys)
784 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
785 (data (string-append share "/bzflag"))
786 (hicolor (string-append share "/icons/hicolor"))
787 (applications (string-append share "/applications")))
788 ;; Move desktop file.
789 (install-file (string-append data "/bzflag.desktop")
790 applications)
791 ;; Install icons.
792 (for-each (lambda (size)
793 (let* ((dim (string-append size "x" size))
794 (dir (string-append hicolor "/" dim "/apps")))
795 (mkdir-p dir)
796 (copy-file
797 (string-append data "/bzflag-" dim ".png")
798 (string-append dir "/bzflag.png"))))
799 '("48" "256")))
800 #t)))))
801 (native-inputs
802 `(("pkg-config" ,pkg-config)))
803 (inputs
804 `(("c-ares" ,c-ares)
805 ("curl" ,curl)
806 ("glew" ,glew)
807 ("glu" ,glu)
808 ("sdl2" ,sdl2)
809 ("zlib" ,zlib)))
810 (home-page "https://www.bzflag.org/")
811 (synopsis "3D first person tank battle game")
812 (description
813 "BZFlag is a 3D multi-player multiplatform tank battle game that
814 allows users to play against each other in a network environment.
815 There are five teams: red, green, blue, purple and rogue (rogue tanks
816 are black). Destroying a player on another team scores a win, while
817 being destroyed or destroying a teammate scores a loss. Rogues have
818 no teammates (not even other rogues), so they cannot shoot teammates
819 and they do not have a team score.
820
821 There are two main styles of play: capture-the-flag and free-for-all.
822 In capture-the-flag, each team (except rogues) has a team base and
823 each team with at least one player has a team flag. The object is to
824 capture an enemy team's flag by bringing it to your team's base. This
825 destroys every player on the captured team, subtracts one from that
826 team's score, and adds one to your team's score. In free-for-all,
827 there are no team flags or team bases. The object is simply to get as
828 high a score as possible.")
829 ;; The game is dual-licensed.
830 (license (list license:lgpl2.1 license:mpl2.0))))
831
832 (define-public cataclysm-dda
833 (package
834 (name "cataclysm-dda")
835 (version "0.E-3")
836 (source
837 (origin
838 (method git-fetch)
839 (uri (git-reference
840 (url "https://github.com/CleverRaven/Cataclysm-DDA")
841 (commit version)))
842 (sha256
843 (base32 "108cs6vp99qmqqfnmczad0xjgcl82bypm5xszwnlfcswdsrfs4da"))
844 (file-name (git-file-name name version))))
845 (build-system gnu-build-system)
846 (arguments
847 '(#:make-flags
848 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
849 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
850 "LOCALIZE=1" "LANGUAGES=all")
851 #:phases
852 (modify-phases %standard-phases
853 (delete 'configure)
854 (add-after 'build 'build-tiles
855 (lambda* (#:key make-flags outputs #:allow-other-keys)
856 ;; Change prefix directory and enable tile graphics and sound.
857 (apply invoke "make" "TILES=1" "SOUND=1"
858 (string-append "PREFIX="
859 (assoc-ref outputs "tiles"))
860 (cdr make-flags))))
861 (add-after 'install 'install-tiles
862 (lambda* (#:key make-flags outputs #:allow-other-keys)
863 (apply invoke "make" "install" "TILES=1" "SOUND=1"
864 (string-append "PREFIX="
865 (assoc-ref outputs "tiles"))
866 (cdr make-flags)))))
867 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
868 ;; input in order to support tests.
869 #:tests? #f))
870 (outputs '("out"
871 "tiles")) ;for tile graphics and sound support
872 (native-inputs
873 `(("gettext" ,gettext-minimal)
874 ("pkg-config" ,pkg-config)))
875 (inputs
876 `(("freetype" ,freetype)
877 ("libogg" ,libogg)
878 ("libvorbis" ,libvorbis)
879 ("ncurses" ,ncurses)
880 ("sdl2" ,sdl2)
881 ("sdl2-image" ,sdl2-image)
882 ("sdl2-ttf" ,sdl2-ttf)
883 ("sdl2-mixer" ,sdl2-mixer)))
884 (home-page "https://cataclysmdda.org/")
885 (synopsis "Survival horror roguelike video game")
886 (description
887 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
888 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
889 procedurally generated world. Scavenge the remnants of a dead civilization
890 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
891 to get you out of Dodge. Fight to defeat or escape from a wide variety of
892 powerful monstrosities, from zombies to giant insects to killer robots and
893 things far stranger and deadlier, and against the others like yourself, that
894 want what you have.")
895 (license license:cc-by-sa3.0)))
896
897 (define-public cockatrice
898 (let ((release-date "2021-01-26"))
899 (package
900 (name "cockatrice")
901 (version "2.8.0")
902 (source
903 (origin
904 (method git-fetch)
905 (uri (git-reference
906 (url "https://github.com/Cockatrice/Cockatrice")
907 (commit (string-append release-date "-Release-" version))))
908 (file-name (git-file-name name version))
909 (sha256
910 (base32
911 "0q8ffcklb2b7hcqhy3d2f9kz9aw22pp04pc9y4sslyqmf17pwnz9"))
912 (modules '((guix build utils)))
913 (snippet
914 ;; Strip image URLs as they point towards non-free web services
915 '(substitute* "cockatrice/src/settings/downloadsettings.cpp"
916 (("downloadURLs.append\\(\".*\"\\);") "")))))
917 (build-system cmake-build-system)
918 (arguments
919 `(#:configure-flags '("-DWITH_SERVER=1"
920 "-DWITH_CLIENT=1"
921 "-DWITH_ORACLE=1"
922 "-DTEST=1")))
923 (native-inputs
924 `(("googletest" ,googletest)
925 ("pkg-config" ,pkg-config)))
926 (inputs
927 `(("protobuf" ,protobuf)
928 ("qtbase" ,qtbase)
929 ("qtmultimedia" ,qtmultimedia)
930 ("qtsvg" ,qtsvg)
931 ("qttools" ,qttools)
932 ("qtwebsockets" ,qtwebsockets)
933 ("xz" ,xz)
934 ("zlib" ,zlib)))
935 (home-page "https://cockatrice.github.io")
936 (synopsis "Tabletop card game simulator")
937 (description "Cockatrice is a program for playing tabletop card games
938 over a network. Its server design prevents users from manipulating the game
939 for unfair advantage. The client also provides a single-player mode, which
940 allows users to brew while offline.")
941 (license license:gpl2))))
942
943 (define-public corsix-th
944 (package
945 (name "corsix-th")
946 (version "0.64")
947 (source
948 (origin
949 (method git-fetch)
950 (uri (git-reference
951 (url "https://github.com/CorsixTH/CorsixTH")
952 (commit (string-append "v" version))))
953 (file-name (git-file-name name version))
954 (sha256
955 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
956 (build-system cmake-build-system)
957 (arguments
958 `(#:phases
959 (modify-phases %standard-phases
960 (add-after 'install 'wrap-binary
961 (lambda _
962 ;; Set Lua module paths and default MIDI soundfont on startup.
963 (let* ((out (assoc-ref %outputs "out"))
964 (fluid (assoc-ref %build-inputs "fluid-3"))
965 (lua-version ,(version-major+minor (package-version lua)))
966 (lua-cpath
967 (map (lambda (lib)
968 (string-append
969 (assoc-ref %build-inputs (string-append "lua-" lib))
970 "/lib/lua/" lua-version "/?.so"))
971 '("filesystem" "lpeg"))))
972 (wrap-program (string-append out "/bin/corsix-th")
973 `("LUA_CPATH" ";" = ,lua-cpath)
974 `("SDL_SOUNDFONTS" ":" suffix
975 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
976 #t)))
977 #:tests? #f)) ; TODO need busted package to run tests
978 ;; Omit Lua-Socket dependency to disable automatic updates.
979 (inputs
980 `(("ffmpeg" ,ffmpeg)
981 ("fluid-3" ,fluid-3)
982 ("freetype" ,freetype)
983 ("lua" ,lua)
984 ("lua-filesystem" ,lua-filesystem)
985 ("lua-lpeg" ,lua-lpeg)
986 ("sdl2" ,sdl2)
987 ("sdl2-mixer" ,sdl2-mixer)))
988 (home-page "https://corsixth.com")
989 (synopsis "Implementation of the @i{Theme Hospital} game engine")
990 (description
991 "This package provides a reimplementation of the 1997 Bullfrog business
992 simulation game @i{Theme Hospital}. As well as faithfully recreating the
993 original engine, CorsixTH adds support for high resolutions, custom levels and
994 more. This package does @emph{not} provide the game assets.")
995 (license (list
996 license:expat ; main license
997 license:bsd-3)))) ; CorsixTH/Src/random.c
998
999 (define-public cowsay
1000 (package
1001 (name "cowsay")
1002 (version "3.04")
1003 (source (origin
1004 (method git-fetch)
1005 (uri (git-reference
1006 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
1007 (commit (string-append name "-" version))))
1008 (file-name (git-file-name name version))
1009 (sha256
1010 (base32
1011 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
1012 (build-system gnu-build-system)
1013 (arguments
1014 `(#:phases
1015 (modify-phases %standard-phases
1016 (delete 'configure) ; no configure script
1017 (delete 'build) ; nothing to be built
1018 (replace 'install
1019 (lambda* (#:key outputs #:allow-other-keys)
1020 (invoke "sh" "install.sh"
1021 (assoc-ref outputs "out"))))
1022 (delete 'check)
1023 (add-after 'install 'check
1024 (lambda* (#:key outputs #:allow-other-keys)
1025 (invoke (string-append (assoc-ref outputs "out")
1026 "/bin/cowsay")
1027 "We're done!"))))))
1028 (inputs
1029 `(("perl" ,perl)))
1030 (home-page (string-append "https://web.archive.org/web/20071026043648/"
1031 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
1032 (synopsis "Speaking cow text filter")
1033 (description "Cowsay is basically a text filter. Send some text into it,
1034 and you get a cow saying your text. If you think a talking cow isn't enough,
1035 cows can think too: all you have to do is run @command{cowthink}. If you're
1036 tired of cows, a variety of other ASCII-art messengers are available.")
1037 (license license:gpl3+)))
1038
1039 (define-public lolcat
1040 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
1041 (revision "0"))
1042 (package
1043 (name "lolcat")
1044 (version (git-version "1.0" revision commit))
1045 (source
1046 (origin
1047 (method git-fetch)
1048 (uri (git-reference
1049 (url "https://github.com/jaseg/lolcat")
1050 (commit commit)))
1051 (sha256
1052 (base32
1053 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
1054 (file-name (git-file-name name version))))
1055 (build-system gnu-build-system)
1056 (arguments
1057 `(#:tests? #f ; no check target
1058 #:make-flags
1059 (list ,(string-append "CC=" (cc-for-target)))
1060 #:phases
1061 (modify-phases %standard-phases
1062 (delete 'bootstrap)
1063 (delete 'configure)
1064 (replace 'install
1065 (lambda* (#:key outputs #:allow-other-keys)
1066 (let* ((out (assoc-ref outputs "out"))
1067 (dest (string-append out "/bin")))
1068 (mkdir-p dest)
1069 (install-file "lolcat" dest)
1070 (install-file "censor" dest)
1071 #t))))))
1072 (home-page "https://github.com/jaseg/lolcat")
1073 (synopsis "Rainbow coloring effect for text console display")
1074 (description "@command{lolcat} concatenates files and streams like
1075 regular @command{cat}, but it also adds terminal escape codes between
1076 characters and lines resulting in a rainbow effect.")
1077 (license license:wtfpl2))))
1078
1079 (define-public foobillard++
1080 ;; Even though this latest revision is old already, stable release is
1081 ;; lagging way behind it, and has issues with textures rendering.
1082 (let ((svn-revision 170))
1083 (package
1084 (name "foobillard++")
1085 (version (string-append "3.43-r" (number->string svn-revision)))
1086 (source
1087 (origin
1088 (method svn-fetch)
1089 (uri (svn-reference
1090 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1091 (revision svn-revision)))
1092 (file-name (git-file-name name version))
1093 (sha256
1094 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1095 (patches
1096 (search-patches "foobillard++-pkg-config.patch"))
1097 (modules '((guix build utils)))
1098 (snippet
1099 '(begin
1100 ;; Unfortunately, the game includes background music with
1101 ;; a non-commercial clause. Delete it.
1102 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1103 #t))))
1104 (build-system gnu-build-system)
1105 (arguments
1106 `(#:configure-flags
1107 (list
1108 ;; Install data in a less exotic location.
1109 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1110 ;; Prevent a build error about undefined trigonometric functions.
1111 "--enable-fastmath=no")
1112 #:phases
1113 (modify-phases %standard-phases
1114 (add-after 'unpack 'fix-makefile
1115 ;; Remove hard-coded directories. Also fix installation
1116 ;; rule: it tries to move around non-existent files or
1117 ;; files already moved.
1118 (lambda* (#:key outputs #:allow-other-keys)
1119 (substitute* "Makefile.am"
1120 (("/usr") (assoc-ref outputs "out"))
1121 (("cp .*?/foobillardplus\\.desktop.*") "")
1122 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1123 ""))
1124 #t))
1125 (add-after 'unpack 'unbundle-font
1126 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1127 ;; LinBiolinum_aS.ttf, which are not provided by
1128 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1129 ;; them yet.
1130 (lambda* (#:key inputs #:allow-other-keys)
1131 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1132 "/share/fonts/truetype/")))
1133 (with-directory-excursion "data"
1134 (for-each (lambda (f)
1135 (delete-file f)
1136 (symlink (string-append dejavu f) f))
1137 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1138 #t))
1139 (replace 'bootstrap
1140 (lambda _
1141 (invoke "aclocal" "--force")
1142 (invoke "autoconf" "-f")
1143 (invoke "autoheader" "-f")
1144 (invoke "automake" "-a" "-c" "-f")))
1145 (add-before 'build 'prepare-build
1146 ;; Set correct environment for SDL.
1147 (lambda* (#:key inputs #:allow-other-keys)
1148 (setenv "CPATH"
1149 (string-append (assoc-ref inputs "sdl")
1150 "/include/SDL:"
1151 (or (getenv "CPATH") "")))
1152 #t))
1153 (add-before 'build 'fix-settings-directory
1154 ;; Hide foobillardplus settings directory in $HOME.
1155 (lambda _
1156 (substitute* "src/history.c"
1157 (("/foobillardplus-data") "/.foobillardplus"))
1158 #t))
1159 (add-before 'install 'create-directories
1160 ;; Install process does not create directories before
1161 ;; trying to move file in it.
1162 (lambda* (#:key outputs #:allow-other-keys)
1163 (let ((out (assoc-ref outputs "out")))
1164 (mkdir-p (string-append out "/share/icons"))
1165 (mkdir-p (string-append out "/share/applications")))
1166 #t))
1167 (add-after 'install 'symlink-executable
1168 ;; Symlink executable to $out/bin.
1169 (lambda* (#:key outputs #:allow-other-keys)
1170 (let* ((out (assoc-ref outputs "out"))
1171 (bin (string-append out "/bin")))
1172 (mkdir-p bin)
1173 (with-directory-excursion bin
1174 (symlink "../share/foobillardplus/bin/foobillardplus"
1175 "foobillardplus"))
1176 #t))))))
1177 (native-inputs
1178 `(("autoconf" ,autoconf)
1179 ("automake" ,automake)
1180 ("pkg-config" ,pkg-config)))
1181 (inputs
1182 `(("font-dejavu" ,font-dejavu)
1183 ("freetype" ,freetype)
1184 ("glu" ,glu)
1185 ("libpng" ,libpng)
1186 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1187 (home-page "http://foobillardplus.sourceforge.net/")
1188 (synopsis "3D billiard game")
1189 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1190 based on the original foobillard 3.0a sources from Florian Berger.
1191 You can play it with one or two players or against the computer.
1192
1193 The game features:
1194
1195 @itemize
1196 @item Wood paneled table with gold covers and gold diamonds.
1197 @item Reflections on balls.
1198 @item Zoom in and out, rotation, different angles and bird's eye view.
1199 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1200 @item Tournaments. Compete against other players.
1201 @item Animated cue with strength and eccentric hit adjustment.
1202 @item Jump shots and snipping.
1203 @item Realistic gameplay and billiard sounds.
1204 @item Red-Green stereo.
1205 @item And much more.
1206 @end itemize")
1207 (license (list license:gpl2 license:silofl1.1)))))
1208
1209 (define-public freedoom
1210 (package
1211 (name "freedoom")
1212 (version "0.12.1")
1213 (source
1214 (origin
1215 (method git-fetch)
1216 (uri (git-reference
1217 (url "https://github.com/freedoom/freedoom")
1218 (commit (string-append "v" version))))
1219 (file-name (git-file-name name version))
1220 (sha256
1221 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1222 (build-system gnu-build-system)
1223 (arguments
1224 '(#:make-flags
1225 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1226 #:tests? #f ; no check target
1227 #:phases
1228 (modify-phases %standard-phases
1229 (delete 'bootstrap)
1230 (replace 'configure
1231 (lambda* (#:key inputs outputs #:allow-other-keys)
1232 (let* ((freedoom (assoc-ref outputs "out"))
1233 (wad-dir (string-append freedoom "/share/games/doom")))
1234 ;; Make sure that the install scripts know where to find
1235 ;; the appropriate WAD files.
1236 (substitute* "dist/freedoom"
1237 (("IWAD=freedm.wad")
1238 (string-append "IWAD=" wad-dir "/freedm.wad"))
1239 (("IWAD=freedoom1.wad")
1240 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1241 (("IWAD=freedoom2.wad")
1242 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1243 #t))))))
1244 (native-inputs
1245 `(("asciidoc" ,asciidoc)
1246 ("deutex" ,deutex)
1247 ("python" ,python)
1248 ("python-pillow" ,python-pillow)))
1249 (home-page "https://freedoom.github.io/")
1250 (synopsis "Free content game based on the Doom engine")
1251 (native-search-paths
1252 (list (search-path-specification
1253 (variable "DOOMWADDIR")
1254 (files '("share/games/doom")))
1255 (search-path-specification
1256 (variable "DOOMWADPATH")
1257 (files '("share/games/doom")))))
1258 (description
1259 "The Freedoom project aims to create a complete free content first person
1260 shooter game. Freedoom by itself is just the raw material for a game: it must
1261 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1262 played. Freedoom complements the Doom engine with free levels, artwork, sound
1263 effects and music to make a completely free game.")
1264 (license license:bsd-3)))
1265
1266 (define-public freedroidrpg
1267 (package
1268 (name "freedroidrpg")
1269 (version "0.16.1")
1270 (source
1271 (origin
1272 (method url-fetch)
1273 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1274 "freedroidRPG-" (version-major+minor version) "/"
1275 "freedroidRPG-" version ".tar.gz"))
1276 (sha256
1277 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1278 (build-system gnu-build-system)
1279 (arguments
1280 `(#:configure-flags
1281 (list
1282 (string-append "CFLAGS="
1283 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1284 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1285 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1286 "--enable-opengl")
1287 ;; FIXME: the test suite fails with the following error output:
1288 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1289 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1290 #:tests? #f))
1291 (native-inputs
1292 `(("pkg-config" ,pkg-config)))
1293 (inputs
1294 `(("glu" ,glu)
1295 ("libjpeg" ,libjpeg-turbo)
1296 ("libogg" ,libogg)
1297 ("libpng" ,libpng)
1298 ("libvorbis" ,libvorbis)
1299 ("mesa" ,mesa)
1300 ("python" ,python-wrapper)
1301 ("sdl" ,sdl)
1302 ("sdl-gfx" ,sdl-gfx)
1303 ("sdl-image" ,sdl-image)
1304 ("sdl-mixer" ,sdl-mixer)
1305 ("zlib" ,zlib)))
1306 (home-page "https://www.freedroid.org/")
1307 (synopsis "Isometric role-playing game against killer robots")
1308 (description
1309 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1310 The game tells the story of a world destroyed by a conflict between robots and
1311 their human masters. To restore peace to humankind, the player must complete
1312 numerous quests while fighting off rebelling robots---either by taking control
1313 of them, or by simply blasting them to pieces with melee and ranged weapons in
1314 real-time combat.")
1315 (license (list license:expat ; lua/
1316 license:gpl3 ; src/gen_savestruct.py
1317 license:gpl2+)))) ; the rest
1318
1319 (define-public golly
1320 (package
1321 (name "golly")
1322 (version "3.3")
1323 (source (origin
1324 (method url-fetch)
1325 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1326 version "/golly-" version
1327 "-src.tar.gz"))
1328 (sha256
1329 (base32
1330 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1331 (build-system gnu-build-system)
1332 (arguments
1333 '(#:make-flags (list "CC=gcc"
1334 (string-append "GOLLYDIR="
1335 (assoc-ref %outputs "out")
1336 "/share/golly"))
1337 #:tests? #f ; no check target
1338 #:phases
1339 (modify-phases %standard-phases
1340 (replace 'configure
1341 (lambda* (#:key inputs #:allow-other-keys)
1342 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1343 ;; properly set the path to the Python shared library. This
1344 ;; substitution acheives the same end by different means.
1345 (substitute* "gui-wx/wxprefs.cpp"
1346 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1347 (string-append "pythonlib = \""
1348 (assoc-ref inputs "python")
1349 "/lib/libpython-2.7.so\"")))
1350 #t))
1351 (replace 'build
1352 (lambda* (#:key make-flags outputs #:allow-other-keys)
1353 (with-directory-excursion "gui-wx"
1354 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1355 (replace 'install
1356 (lambda* (#:key outputs #:allow-other-keys)
1357 (let* ((out (assoc-ref outputs "out"))
1358 (bin (string-append out "/bin"))
1359 (doc (string-append out "/share/doc/golly"))
1360 (pixmaps (string-append out "/share/pixmaps"))
1361 (share (string-append out "/share/golly")))
1362 (for-each (lambda (binary)
1363 (install-file binary bin))
1364 '("bgolly" "golly"))
1365 (for-each (lambda (document)
1366 (install-file
1367 (string-append "docs/" document ".html")
1368 doc))
1369 '("License" "ReadMe" "ToDo"))
1370 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1371 (for-each (lambda (folder)
1372 (copy-recursively
1373 folder
1374 (string-append share "/" folder)))
1375 '("Help" "Patterns" "Rules" "Scripts")))
1376 #t)))))
1377 (native-inputs
1378 `(("lua" ,lua)))
1379 (inputs
1380 `(("glu" ,glu)
1381 ("mesa" ,mesa)
1382 ("python" ,python-2)
1383 ("wxwidgets" ,wxwidgets-gtk2)
1384 ("zlib" ,zlib)))
1385 (home-page "http://golly.sourceforge.net/")
1386 (synopsis "Software for exploring cellular automata")
1387 (description
1388 "Golly simulates Conway's Game of Life and many other types of cellular
1389 automata. The following features are available:
1390 @enumerate
1391 @item Support for bounded and unbounded universes, with cells of up to 256
1392 states.
1393 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1394 algorithm.
1395 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1396 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1397 @item Scriptable via Lua or Python.
1398 @item Extracting patterns, rules and scripts from zip files.
1399 @item Downloading patterns, rules and scripts from online archives.
1400 @item Pasting patterns from the clipboard.
1401 @item Unlimited undo/redo.
1402 @item Configurable keyboard shortcuts.
1403 @item Auto fit option to keep patterns within the view.
1404 @end enumerate")
1405 (license license:gpl2+)))
1406
1407 (define-public julius
1408 (package
1409 (name "julius")
1410 (version "1.6.0")
1411 (source
1412 (origin
1413 (method git-fetch)
1414 (uri (git-reference
1415 (url "https://github.com/bvschaik/julius")
1416 (commit (string-append "v" version))))
1417 (file-name (git-file-name name version))
1418 (sha256
1419 (base32 "0nfdn8n6ywhm69ckz9a1chl5xxiqyaj3l337wadsbppnpscjihrc"))
1420 ;; Remove unused bundled libraries.
1421 (modules '((guix build utils)))
1422 (snippet
1423 '(begin
1424 (with-directory-excursion "ext"
1425 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1426 #t))))
1427 (build-system cmake-build-system)
1428 (inputs
1429 `(("libpng" ,libpng)
1430 ("sdl2" ,sdl2)
1431 ("sdl2-mixer" ,sdl2-mixer)))
1432 (home-page "https://github.com/bvschaik/julius")
1433 (synopsis "Re-implementation of Caesar III game engine")
1434 (description
1435 "Engine for Caesar III, a city-building real-time strategy game.
1436 Julius includes some UI enhancements while preserving the logic (including
1437 bugs) of the original game, so that saved games are compatible. This package
1438 does not include game data.")
1439 (license (list license:agpl3
1440 license:zlib)))) ; ext/tinyfiledialogs
1441
1442 (define-public augustus
1443 (package
1444 (inherit julius)
1445 (name "augustus")
1446 (version "2.0.1")
1447 (source
1448 (origin
1449 (method git-fetch)
1450 (uri (git-reference
1451 (url "https://github.com/Keriew/augustus")
1452 (commit (string-append "v" version))))
1453 (file-name (git-file-name name version))
1454 (sha256
1455 (base32 "0czazw8mc3fbvdazs2nzvgxd1dpzjc8z5fwiv89vv4nd7laz3jkj"))
1456 ;; Remove unused bundled libraries.
1457 (modules '((guix build utils)))
1458 (snippet
1459 '(begin
1460 (with-directory-excursion "ext"
1461 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1462 #t))))
1463 (arguments
1464 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1465 `(#:tests? #f))
1466 (home-page "https://github.com/Keriew/augustus")
1467 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1468 (description
1469 "Fork of Julius, an engine for the a city-building real-time strategy
1470 game Caesar III. Gameplay enhancements include:
1471
1472 @itemize
1473 @item roadblocks;
1474 @item market special orders;
1475 @item global labour pool;
1476 @item partial warehouse storage;
1477 @item increased game limits;
1478 @item zoom controls.
1479 @end itemize\n")))
1480
1481 (define-public meandmyshadow
1482 (package
1483 (name "meandmyshadow")
1484 (version "0.5a")
1485 (source (origin
1486 (method url-fetch)
1487 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1488 version "/meandmyshadow-" version
1489 "-src.tar.gz"))
1490 (sha256
1491 (base32
1492 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1493 (build-system cmake-build-system)
1494 (arguments
1495 `(#:tests? #f)) ; there are no tests
1496 (native-inputs
1497 `(("pkg-config" ,pkg-config)))
1498 (inputs
1499 `(("curl" ,curl)
1500 ("libarchive" ,libarchive)
1501 ("lua" ,lua)
1502 ("sdl" ,(sdl-union (list sdl2
1503 sdl2-image
1504 sdl2-mixer
1505 sdl2-ttf)))))
1506 (home-page "https://acmepjz.github.io/meandmyshadow/")
1507 (synopsis "Puzzle/platform game")
1508 (description "Me and My Shadow is a puzzle/platform game in which you try
1509 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1510 and much more stand between you and the exit. Record your moves and let your
1511 shadow mimic them to reach blocks you couldn't reach alone.")
1512 (license license:gpl3+)))
1513
1514 (define-public opensurge
1515 (package
1516 (name "opensurge")
1517 (version "0.5.1.2")
1518 (source
1519 (origin
1520 (method git-fetch)
1521 (uri (git-reference
1522 (url "https://github.com/alemart/opensurge")
1523 (commit (string-append "v" version))))
1524 (file-name (git-file-name name version))
1525 (sha256
1526 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1527 (build-system cmake-build-system)
1528 (arguments
1529 `(#:tests? #f ;there are no tests
1530 #:configure-flags
1531 (let* ((out (assoc-ref %outputs "out"))
1532 (share (string-append out "/share")))
1533 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1534 (string-append "-DGAME_DATADIR=" share "/" ,name)
1535 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1536 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1537 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1538 #:phases
1539 (modify-phases %standard-phases
1540 (add-after 'unpack 'fix-xdg-open-path
1541 (lambda* (#:key inputs #:allow-other-keys)
1542 ;; Look for xdg-open in the store.
1543 (substitute* "src/core/web.c"
1544 (("/usr(/bin/xdg-open)" _ bin)
1545 (string-append (assoc-ref inputs "xdg-utils") bin)))
1546 #t))
1547 (add-after 'unpack 'unbundle-fonts
1548 (lambda* (#:key inputs #:allow-other-keys)
1549 ;; Replace bundled Roboto fonts with links to the store.
1550 (with-directory-excursion "fonts"
1551 (let ((roboto-dir (string-append
1552 (assoc-ref inputs "font-google-roboto")
1553 "/share/fonts/truetype/")))
1554 (for-each
1555 (lambda (font)
1556 (delete-file font)
1557 (symlink (string-append roboto-dir font) font))
1558 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1559 #t))))))
1560 (inputs
1561 `(("allegro" ,allegro)
1562 ("font-google-roboto" ,font-google-roboto)
1563 ("surgescript" ,surgescript)
1564 ("xdg-utils" ,xdg-utils)))
1565 (home-page "https://opensurge2d.org")
1566 (synopsis "2D retro side-scrolling game")
1567 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1568 inspired by the Sonic games. The player runs at high speeds through each
1569 level while collecting items and avoiding obstacles. The game includes a
1570 built-in level editor.")
1571 (license
1572 ;; Code is under GPL 3+, assets are under various licenses.
1573 ;; See src/misc/credits.c for details.
1574 (list license:gpl3+
1575 license:cc0
1576 license:cc-by3.0
1577 license:cc-by-sa3.0
1578 license:expat
1579 license:public-domain
1580 license:silofl1.1))))
1581
1582 (define-public knights
1583 (package
1584 (name "knights")
1585 (version "025")
1586 (source (origin
1587 (method url-fetch)
1588 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1589 version "_src.tar.gz"))
1590 (sha256
1591 (base32
1592 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1593 (build-system gnu-build-system)
1594 (arguments
1595 '(#:make-flags
1596 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1597 "CXXFLAGS=-lpthread")
1598 #:phases
1599 (modify-phases %standard-phases
1600 ;; No configure script.
1601 (delete 'configure))
1602 #:tests? #f)) ;; No check target.
1603 (inputs
1604 `(("boost" ,boost)
1605 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1606 ("freetype" ,freetype)
1607 ("fontconfig" ,fontconfig)
1608 ("curl" ,curl)))
1609 (native-inputs
1610 `(("pkg-config" ,pkg-config)))
1611 (home-page "http://www.knightsgame.org.uk/")
1612 (synopsis "Multiplayer dungeon game involving knights and quests")
1613 (description "Knights is a multiplayer game involving several knights who
1614 must run around a dungeon and complete various quests. Each game revolves
1615 around a quest – for example, you might have to find some items and carry them
1616 back to your starting point. This may sound easy, but as there are only
1617 enough items in the dungeon for one player to win, you may end up having to
1618 kill your opponents to get their stuff! Other quests involve escaping from
1619 the dungeon, fighting a duel to the death against the enemy knights, or
1620 destroying an ancient book using a special wand.")
1621 ;; This package includes modified sources of lua (X11), enet (Expat), and
1622 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1623 ;; license. The whole package is released under GPLv3+.
1624 (license license:gpl3+)))
1625
1626 (define-public gnome-chess
1627 (package
1628 (name "gnome-chess")
1629 (version "3.37.3")
1630 (source (origin
1631 (method url-fetch)
1632 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1633 (version-major+minor version) "/"
1634 "gnome-chess-" version ".tar.xz"))
1635 (sha256
1636 (base32
1637 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1638 (build-system meson-build-system)
1639 (arguments
1640 '(#:glib-or-gtk? #t
1641 #:phases
1642 (modify-phases %standard-phases
1643 (add-after 'unpack 'skip-gtk-update-icon-cache
1644 ;; Don't create 'icon-theme.cache'.
1645 (lambda _
1646 (substitute* "meson_post_install.py"
1647 (("gtk-update-icon-cache") "true"))
1648 #t)))))
1649 (inputs
1650 `(("gtk+" ,gtk+)
1651 ("librsvg" ,librsvg)))
1652 (native-inputs
1653 `(("gettext" ,gettext-minimal)
1654 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1655 ("itstool" ,itstool)
1656 ("pkg-config" ,pkg-config)
1657 ("vala" ,vala)))
1658 (home-page "https://wiki.gnome.org/Apps/Chess")
1659 (synopsis "Chess board for GNOME")
1660 (description "GNOME Chess provides a 2D board for playing chess games
1661 against human or computer players. It supports loading and saving games in
1662 Portable Game Notation. To play against a computer, install a chess engine
1663 such as chess or stockfish.")
1664 (license license:gpl3+)))
1665
1666 (define-public gnubg
1667 (package
1668 (name "gnubg")
1669 (version "1.06.002")
1670 (source
1671 (origin
1672 (method url-fetch)
1673 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1674 version "-sources.tar.gz"))
1675 (sha256
1676 (base32
1677 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1678 (build-system gnu-build-system)
1679 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1680 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1681 ("pango" ,pango-1.42)
1682
1683 ("glib" ,glib)
1684 ("readline" ,readline)
1685 ("gtk+" ,gtk+-2)
1686 ("mesa" ,mesa)
1687 ("glu" ,glu)
1688 ("gtkglext" ,gtkglext)
1689 ("sqlite" ,sqlite)
1690 ("libcanberra" ,libcanberra)))
1691 (native-inputs `(("python-2" ,python-2)
1692 ("pkg-config" ,pkg-config)))
1693 (arguments
1694 `(#:configure-flags
1695 ;; SSE instructions are available on Intel systems only.
1696 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1697 (%current-system)))
1698 '("x86_64" "i686"))
1699 '("--enable-simd=sse2") ; prevent avx instructions
1700 '()))
1701 #:phases
1702 (modify-phases %standard-phases
1703 (add-after 'install 'install-desktop-file
1704 (lambda* (#:key outputs #:allow-other-keys)
1705 (let* ((out (assoc-ref outputs "out"))
1706 (apps (string-append out "/share/applications")))
1707 (mkdir-p apps)
1708 (with-output-to-file (string-append apps "/gnubg.desktop")
1709 (lambda _
1710 (format #t
1711 "[Desktop Entry]~@
1712 Name=GNU Backgammon~@
1713 Exec=~a/bin/gnubg -w~@
1714 Icon=gnubg~@
1715 Categories=Game;~@
1716 Terminal=false~@
1717 Type=Application~%"
1718 out))))
1719 #t)))))
1720 (home-page "https://www.gnu.org/software/gnubg/")
1721 (synopsis "Backgammon game")
1722 (description "The GNU backgammon application (also known as \"gnubg\") can
1723 be used for playing, analyzing and teaching the game. It has an advanced
1724 evaluation engine based on artificial neural networks suitable for both
1725 beginners and advanced players. In addition to a command-line interface, it
1726 also features an attractive, 3D representation of the playing board.")
1727 (license license:gpl3+)))
1728
1729 (define-public gnubik
1730 (package
1731 (name "gnubik")
1732 (version "2.4.3")
1733 (source
1734 (origin
1735 (method url-fetch)
1736 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1737 version ".tar.gz"))
1738 (sha256
1739 (base32
1740 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1741 (build-system gnu-build-system)
1742 (arguments
1743 '(#:phases (modify-phases %standard-phases
1744 (add-after 'unpack 'skip-gtk-update-icon-cache
1745 (lambda _
1746 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1747 ;; unnecessary and causes a needless dependency on glib.
1748 (substitute* "Makefile.in"
1749 (("gtk-update-icon-cache")
1750 "true"))
1751 #t)))))
1752 (inputs `(("gtk+" ,gtk+-2)
1753 ("mesa" ,mesa)
1754 ("glu" ,glu)
1755 ("libx11" ,libx11)
1756 ("guile" ,guile-2.0)
1757 ("gtkglext" ,gtkglext)))
1758 (native-inputs `(("gettext" ,gettext-minimal)
1759 ("pkg-config" ,pkg-config)))
1760 (home-page "https://www.gnu.org/software/gnubik/")
1761 (synopsis "3d Rubik's cube game")
1762 (description
1763 "GNUbik is a puzzle game in which you must manipulate a cube to make
1764 each of its faces have a uniform color. The game is customizable, allowing
1765 you to set the size of the cube (the default is 3x3) or to change the colors.
1766 You may even apply photos to the faces instead of colors. The game is
1767 scriptable with Guile.")
1768 (license license:gpl3+)))
1769
1770 (define-public gnushogi
1771 (package
1772 (name "gnushogi")
1773 (version "1.4.2")
1774 (source
1775 (origin
1776 (method url-fetch)
1777 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1778 version ".tar.gz"))
1779 (sha256
1780 (base32
1781 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1782 (arguments `(#:tests? #f)) ;; No check target.
1783 (build-system gnu-build-system)
1784 (home-page "https://www.gnu.org/software/gnushogi/")
1785 (synopsis "The game of Shogi (Japanese chess)")
1786 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1787 Chess). It is similar to standard chess but this variant is far more complicated.")
1788 (license license:gpl3+)))
1789
1790 (define-public ltris
1791 (package
1792 (name "ltris")
1793 (version "1.2.1")
1794 (source
1795 (origin
1796 (method url-fetch)
1797 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1798 "ltris-" version ".tar.gz"))
1799 (sha256
1800 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1801 (build-system gnu-build-system)
1802 (arguments
1803 '(;; The code in LTris uses traditional GNU semantics for inline functions
1804 #:configure-flags '("CFLAGS=-fgnu89-inline")
1805 #:phases
1806 (modify-phases %standard-phases
1807 (add-after 'set-paths 'set-sdl-paths
1808 (lambda* (#:key inputs #:allow-other-keys)
1809 (setenv "CPATH"
1810 (string-append (assoc-ref inputs "sdl-union")
1811 "/include/SDL:"
1812 (or (getenv "CPATH") "")))
1813 #t)))))
1814 (inputs
1815 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1816 (home-page "http://lgames.sourceforge.net/LTris/")
1817 (synopsis "Tetris clone based on the SDL library")
1818 (description
1819 "LTris is a tetris clone: differently shaped blocks are falling down the
1820 rectangular playing field and can be moved sideways or rotated by 90 degree
1821 units with the aim of building lines without gaps which then disappear (causing
1822 any block above the deleted line to fall down). LTris has three game modes: In
1823 Classic you play until the stack of blocks reaches the top of the playing field
1824 and no new blocks can enter. In Figures the playing field is reset to a new
1825 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1826 up to three players (either human or CPU) compete with each other sending
1827 removed lines to all opponents. There is also a Demo mode in which you can
1828 watch your CPU playing while enjoying a cup of tea!")
1829 (license license:gpl2+)))
1830
1831 (define-public nethack
1832 (package
1833 (name "nethack")
1834 (version "3.6.6")
1835 (source
1836 (origin
1837 (method url-fetch)
1838 (uri
1839 (string-append "https://www.nethack.org/download/" version "/nethack-"
1840 (string-join (string-split version #\.) "") "-src.tgz"))
1841 (sha256
1842 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1843 (native-inputs
1844 `(("bison" ,bison)
1845 ("flex" ,flex)))
1846 (inputs
1847 `(("ncurses" ,ncurses)
1848 ("less" ,less)))
1849 (build-system gnu-build-system)
1850 (arguments
1851 '(#:make-flags
1852 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1853 #:phases
1854 (modify-phases %standard-phases
1855 (add-before 'configure 'patch-paths
1856 (lambda _
1857 (substitute* "sys/unix/nethack.sh"
1858 (("^ *cd .*$") ""))
1859 (substitute* "sys/unix/Makefile.utl"
1860 (("^YACC *=.*$") "YACC = bison -y\n")
1861 (("^LEX *=.*$") "LEX = flex\n")
1862 (("^# CC = gcc") "CC = gcc"))
1863 (substitute* "sys/unix/hints/linux"
1864 (("/bin/gzip") (string-append
1865 (assoc-ref %build-inputs "gzip")
1866 "/bin/gzip"))
1867 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1868 (substitute* "include/config.h"
1869 (("^.*define CHDIR.*$") "")
1870 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1871 ;; Honor SOURCE_DATE_EPOCH.
1872 "#define REPRODUCIBLE_BUILD"))
1873
1874 ;; Note: 'makedefs' rejects and ignores dates that are too old
1875 ;; or too new, so we must choose something reasonable here.
1876 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1877
1878 (substitute* "sys/unix/Makefile.src"
1879 (("^# CC = gcc") "CC = gcc"))
1880 #t))
1881 (replace 'configure
1882 (lambda _
1883 (let ((bash (string-append
1884 (assoc-ref %build-inputs "bash")
1885 "/bin/bash")))
1886 (with-directory-excursion "sys/unix"
1887 (substitute* "setup.sh" (("/bin/sh") bash))
1888 (invoke bash "setup.sh" "hints/linux"))
1889 #t)))
1890 (add-after 'install 'fixup-paths
1891 (lambda _
1892 (let* ((output (assoc-ref %outputs "out"))
1893 (nethack-script (string-append output "/bin/nethack")))
1894 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1895 (for-each
1896 (lambda (file)
1897 (rename-file
1898 (string-append output "/games/lib/nethackdir/" file)
1899 (string-append output "/games/lib/nethackuserdir/"
1900 file)))
1901 '("xlogfile" "logfile" "perm" "record" "save"))
1902 (mkdir-p (string-append output "/bin"))
1903 (call-with-output-file nethack-script
1904 (lambda (port)
1905 (format port "#!~a/bin/sh
1906 PATH=~a:$PATH
1907 if [ ! -d ~~/.config/nethack ]; then
1908 mkdir -p ~~/.config/nethack
1909 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1910 chmod -R +w ~~/.config/nethack
1911 fi
1912
1913 RUNDIR=$(mktemp -d)
1914
1915 cleanup() {
1916 rm -rf $RUNDIR
1917 }
1918 trap cleanup EXIT
1919
1920 cd $RUNDIR
1921 for i in ~~/.config/nethack/*; do
1922 ln -s $i $(basename $i)
1923 done
1924 for i in ~a/games/lib/nethackdir/*; do
1925 ln -s $i $(basename $i)
1926 done
1927 ~a/games/nethack"
1928 (assoc-ref %build-inputs "bash")
1929 (list->search-path-as-string
1930 (list
1931 (string-append
1932 (assoc-ref %build-inputs "coreutils") "/bin")
1933 (string-append
1934 (assoc-ref %build-inputs "less") "/bin"))
1935 ":")
1936 output
1937 output
1938 output)))
1939 (chmod nethack-script #o555)
1940 #t)))
1941 (delete 'check))))
1942 (home-page "https://nethack.org")
1943 (synopsis "Classic dungeon crawl game")
1944 (description "NetHack is a single player dungeon exploration game that runs
1945 on a wide variety of computer systems, with a variety of graphical and text
1946 interfaces all using the same game engine. Unlike many other Dungeons &
1947 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1948 the dungeon and not simply killing everything in sight - in fact, killing
1949 everything in sight is a good way to die quickly. Each game presents a
1950 different landscape - the random number generator provides an essentially
1951 unlimited number of variations of the dungeon and its denizens to be discovered
1952 by the player in one of a number of characters: you can pick your race, your
1953 role, and your gender.")
1954 (license
1955 (license:fsdg-compatible
1956 "https://nethack.org/common/license.html"))))
1957
1958 (define-public pipewalker
1959 (package
1960 (name "pipewalker")
1961 (version "0.9.4")
1962 (source
1963 (origin
1964 (method url-fetch)
1965 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
1966 version "/pipewalker-" version ".tar.gz"))
1967 (sha256
1968 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1969 (build-system gnu-build-system)
1970 (arguments
1971 `(#:configure-flags
1972 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1973 "/share/doc/" ,name "-" ,version))
1974 #:phases
1975 (modify-phases %standard-phases
1976 (add-after 'configure 'patch-docdir
1977 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1978 (lambda _
1979 (substitute* "Makefile"
1980 (("(pkgdocdatadir = ).*" _ assignment)
1981 (string-append assignment "$(docdir)\n")))
1982 #t)))))
1983 (inputs
1984 `(("libpng" ,libpng)
1985 ("mesa" ,mesa)
1986 ("sdl" ,sdl)))
1987 (home-page "http://pipewalker.sourceforge.net/")
1988 (synopsis "Logical tile puzzle")
1989 (description
1990 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1991 computers to one network server, bring water from a source to the taps, etc.
1992 The underlying mechanism is always the same: you must turn each tile in the
1993 grid in the right direction to combine all components into a single circuit.
1994 Every puzzle has a complete solution, although there may be more than one.")
1995 (license license:gpl3+)))
1996
1997 (define-public prboom-plus
1998 (package
1999 (name "prboom-plus")
2000 (version "2.5.1.4")
2001 (source (origin
2002 (method url-fetch)
2003 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
2004 version "/prboom-plus-" version ".tar.gz"))
2005 (sha256
2006 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
2007 (modules '((guix build utils)))
2008 (snippet
2009 '(begin
2010 (substitute* "src/version.c"
2011 (("__DATE__") "")
2012 (("__TIME__") ""))
2013 #t))))
2014 (build-system gnu-build-system)
2015 (arguments
2016 '(#:configure-flags '("--disable-cpu-opt")
2017 #:make-flags `(,(string-append "gamesdir="
2018 (assoc-ref %outputs "out") "/bin"))
2019 #:phases
2020 (modify-phases %standard-phases
2021 (add-after 'set-paths 'set-sdl'paths
2022 (lambda* (#:key inputs #:allow-other-keys)
2023 (setenv "CPATH"
2024 (string-append (assoc-ref inputs "sdl-union")
2025 "/include/SDL:"
2026 (or (getenv "CPATH") "")))
2027 #t)))))
2028 (inputs
2029 `(("fluidsynth" ,fluidsynth)
2030 ("glu" ,glu)
2031 ("libmad" ,libmad)
2032 ("libpng" ,libpng)
2033 ("libvorbis" ,libvorbis)
2034 ("pcre" ,pcre)
2035 ("portmidi" ,portmidi)
2036 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
2037 (home-page "http://prboom-plus.sourceforge.net/")
2038 (synopsis "Version of the classic 3D shoot'em'up game Doom")
2039 (description
2040 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
2041 (license license:gpl2+)))
2042
2043 (define-public retux
2044 (let ((release "1.4.1")
2045 (revision 1))
2046 (package
2047 (name "retux")
2048 (version (if (zero? revision)
2049 release
2050 (string-append release "-"
2051 (number->string revision))))
2052 (source (origin
2053 (method url-fetch)
2054 (uri (string-append "https://github.com/retux-game/retux/"
2055 "releases/download/v"
2056 version "/retux-"
2057 release "-src.tar.gz"))
2058 (sha256
2059 (base32
2060 "1vrldg2qh2gqfswj7vkpc589ldrrjd903j6cnfdik9zh0jhlq4h2"))))
2061 (build-system python-build-system)
2062 (arguments
2063 `(#:tests? #f ; no check target
2064 #:phases
2065 (modify-phases %standard-phases
2066 ;; no setup.py script
2067 (delete 'build)
2068 (replace 'install
2069 (lambda* (#:key outputs #:allow-other-keys)
2070 (let* ((out (assoc-ref outputs "out"))
2071 (bin (string-append out "/bin"))
2072 (data (string-append out "/share/retux")))
2073 (mkdir-p bin)
2074
2075 (substitute* "retux.py"
2076 ;; Use the correct data directory.
2077 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
2078 (string-append "\"" data "\",")))
2079
2080 (copy-file "retux.py" (string-append bin "/retux"))
2081 (copy-recursively "data" data)
2082 #t))))))
2083 (inputs
2084 `(("python-sge-pygame" ,python-sge-pygame)
2085 ("python-six" ,python-six)
2086 ("python-xsge" ,python-xsge)))
2087 (home-page "https://retux-game.github.io/")
2088 (synopsis "Action platformer game")
2089 (description
2090 "ReTux is an action platformer loosely inspired by the Mario games,
2091 utilizing the art assets from the @code{SuperTux} project.")
2092 ;; GPL version 3 or later is the license for the code and some art.
2093 ;; The rest of the licenses are for the art exclusively, as listed in
2094 ;; data/LICENSES.
2095 (license (list license:cc0
2096 license:cc-by3.0
2097 license:cc-by-sa3.0
2098 license:cc-by-sa4.0
2099 license:gpl2+
2100 license:gpl3+)))))
2101
2102 (define-public roguebox-adventures
2103 (package
2104 (name "roguebox-adventures")
2105 (version "3.0.1")
2106 (source
2107 (origin
2108 (method url-fetch)
2109 (uri (string-append
2110 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2111 (string-join (string-split version #\.) "_") "_Source.zip"))
2112 (file-name (string-append name "-" version ".zip"))
2113 (sha256
2114 (base32
2115 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2116 (build-system python-build-system)
2117 (arguments
2118 `(#:tests? #f ; no check target
2119 #:phases
2120 (modify-phases %standard-phases
2121 (replace 'unpack
2122 (lambda* (#:key source #:allow-other-keys)
2123 (and (invoke "unzip" source)
2124 ;; The actual source is buried a few directories deep.
2125 (chdir (string-append "RogueBoxAdventures_v"
2126 (string-join
2127 (string-split ,version #\.) "_")
2128 "_Source")))))
2129 ;; no setup.py script
2130 (replace 'build
2131 (lambda* (#:key outputs #:allow-other-keys)
2132 (let* ((out (assoc-ref outputs "out"))
2133 (data (string-append
2134 out "/share/games/roguebox-adventures")))
2135 ;; Use the correct data directory.
2136 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2137 (("basic_path + os\\.sep + 'DATA'")
2138 (string-append "'" data "'"))
2139 (("^basic_path.*$")
2140 (string-append "basic_path ='" data "'\n")))
2141 (substitute* "LIB/dialog.py"
2142 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2143 (string-append "d_path = '" data "'")))
2144 (substitute* "LIB/gra_files.py"
2145 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2146 (string-append "basic_path ='" data "'\n")))
2147
2148 ;; The game must save in the user's home directory because
2149 ;; the store is read-only.
2150 (substitute* "main.py"
2151 (("home_save = False") "home_save = True")
2152 (("'icon_small.png'")
2153 (string-append "'" data "/icon_small.png'"))))
2154 #t))
2155 (replace 'install
2156 (lambda* (#:key outputs #:allow-other-keys)
2157 (let* ((out (assoc-ref outputs "out"))
2158 (bin (string-append out "/bin"))
2159 (roguebox-adventures
2160 (string-append bin "/roguebox-adventures"))
2161 (data (string-append
2162 out "/share/games/roguebox-adventures"))
2163 (lib (string-append data "/LIB"))
2164 (doc (string-append
2165 out "/share/doc/roguebox-adventures")))
2166 (mkdir-p bin)
2167 (mkdir-p doc)
2168
2169 (for-each (lambda (file)
2170 (copy-recursively file
2171 (string-append data "/" file)))
2172 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2173 "icon_big.png" "icon_small.png"))
2174 (for-each (lambda (file)
2175 (chmod file #o555)
2176 (install-file file lib))
2177 '("main.py" "run.py"))
2178
2179 (copy-recursively "DOC" doc)
2180
2181 (call-with-output-file
2182 roguebox-adventures
2183 (lambda (p)
2184 (format p "\
2185 #!~a
2186 export PYTHONPATH=~a/LIB:~a
2187 exec -a \"~a\" ~a \"$@\"\n"
2188 (which "bash") data (getenv "PYTHONPATH")
2189 (which "python3")
2190 (string-append lib "/main.py"))))
2191 (chmod roguebox-adventures #o555))
2192 #t)))))
2193 (native-inputs
2194 `(("unzip" ,unzip)))
2195 (inputs
2196 `(("python-pygame" ,python-pygame)
2197 ("python-tmx" ,python-tmx)))
2198 (home-page "https://rogueboxadventures.tuxfamily.org")
2199 (synopsis "A classical roguelike/sandbox game")
2200 (description
2201 "RogueBox Adventures is a graphical roguelike with strong influences
2202 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2203 Adventures is to offer the player a kind of roguelike toy-world. This world
2204 can be explored and changed freely.")
2205 ;; The GPL3+ is for code, the rest are for art.
2206 (license (list license:cc0
2207 license:cc-by3.0
2208 license:gpl3+
2209 license:silofl1.1))))
2210
2211 (define-public seahorse-adventures
2212 (package
2213 (name "seahorse-adventures")
2214 (version "1.3")
2215 (source
2216 (origin
2217 (method git-fetch)
2218 (uri (git-reference
2219 (url "https://github.com/dulsi/seahorse-adventures")
2220 (commit (string-append "release-" version))))
2221 (file-name (git-file-name name version))
2222 (sha256
2223 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2224 (modules '((guix build utils)
2225 (ice-9 ftw)
2226 (srfi srfi-1)))
2227 ;; Remove non-free (non-commercial) font.
2228 (snippet
2229 `(begin
2230 (for-each delete-file (find-files "data/fonts" "."))
2231 #t))))
2232 (build-system python-build-system)
2233 (arguments
2234 `(#:tests? #f ;no test
2235 #:phases
2236 (modify-phases %standard-phases
2237 (delete 'build) ;pure Python
2238 (replace 'install ;no install script
2239 (lambda* (#:key outputs #:allow-other-keys)
2240 (let* ((out (assoc-ref outputs "out"))
2241 (bin (string-append out "/bin"))
2242 (share (string-append out "/share"))
2243 (applications (string-append share "/applications"))
2244 (data (string-append share "/seahorse-adventures")))
2245 ;; Install data.
2246 (for-each (lambda (f)
2247 (chmod f #o555)
2248 (install-file f data))
2249 '("leveledit.py" "run_game.py" "tileedit.py"))
2250 (for-each (lambda (dir)
2251 (let ((target (string-append data "/" dir)))
2252 (mkdir-p target)
2253 (copy-recursively dir target)))
2254 '("data" "lib"))
2255 ;; Create executable.
2256 (mkdir-p bin)
2257 (let ((executable (string-append bin "/seahorse-adventures")))
2258 (call-with-output-file executable
2259 (lambda (p)
2260 (format p
2261 "#!~a~@
2262 export PYTHONPATH=~a:~a~@
2263 exec -a \"~a\" ~a \"$@\"~%"
2264 (which "bash") data (getenv "PYTHONPATH")
2265 (which "python3")
2266 (string-append data "/run_game.py"))))
2267 (chmod executable #o555))
2268 ;; Add desktop file.
2269 (mkdir-p applications)
2270 (make-desktop-entry-file
2271 (string-append applications "/seahorse-adventures.desktop")
2272 #:name "Seahorse Adventures"
2273 #:comment
2274 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2275 #:exec ,name
2276 #:icon ,name
2277 #:categories '("Game" "ActionGame")
2278 #:keywords '("game" "retro" "platform"))
2279 ;; Add icons.
2280 (for-each
2281 (lambda (size)
2282 (let ((dir (string-append share "/icons/hicolor/"
2283 size "x" size "/apps")))
2284 (mkdir-p dir)
2285 (copy-file
2286 (string-append "icon" size ".png")
2287 (string-append dir "/searhorse-adventures.png"))))
2288 '("32" "64" "128")))
2289 #t))
2290 (add-after 'install 'unbundle-fonts
2291 ;; Unbundle Bitstream Vera font and replace deleted one.
2292 (lambda* (#:key outputs inputs #:allow-other-keys)
2293 (let* ((out (assoc-ref outputs "out"))
2294 (data (string-append out "/share/seahorse-adventures"))
2295 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2296 "/share/fonts/truetype/Vera.ttf")))
2297 (let ((themes-dir (string-append data "/data/themes/")))
2298 (for-each
2299 (lambda (theme)
2300 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2301 (delete-file target)
2302 (symlink vera target)))
2303 '("default" "gray")))
2304 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2305 (substitute* (string-append data "/lib/main.py")
2306 (("f_scale = 0.35") "f_scale = 0.47")))
2307 #t)))))
2308 (inputs
2309 `(("font-bitstream-vera" ,font-bitstream-vera)
2310 ("python-pygame" ,python-pygame)))
2311 (home-page "http://www.imitationpickles.org/barbie/")
2312 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2313 (description
2314 "Barbie Seahorse Adventures is a retro style platform arcade game.
2315 You are Barbie the seahorse who travels through the jungle, up to the
2316 volcano until you float on bubbles to the moon. On the way to your
2317 final destination you will encounter various enemies, servants of the
2318 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2319 and defeat them with your bubbles!")
2320 ;; GPL2+ is for code, CC0 is for art.
2321 (license (list license:gpl2+ license:cc0))))
2322
2323 (define-public solarus
2324 (package
2325 (name "solarus")
2326 ;; XXX: When updating this package, please also update hash in
2327 ;; `solarus-quest-editor' below.
2328 (version "1.6.5")
2329 (source
2330 (origin
2331 (method git-fetch)
2332 (uri (git-reference
2333 (url "https://gitlab.com/solarus-games/solarus")
2334 (commit (string-append "v" version))))
2335 (file-name (git-file-name name version))
2336 (sha256
2337 (base32 "0ny9dgqphjv2l39rff2621hnrzpf8qin8vmnv7jdz20azjk4m8id"))))
2338 (build-system cmake-build-system)
2339 (arguments
2340 `(#:phases
2341 (modify-phases %standard-phases
2342 (add-after 'unpack 'disable-failing-tests
2343 ;; The following tests fail reporting a missing "/dev/dri"
2344 ;; file.
2345 (lambda _
2346 (substitute* "tests/cmake/AddTestMaps.cmake"
2347 ((".*1200_create_shader_from_source.*" all)
2348 (string-append "#" all))
2349 ((".*1210_shader_scaling_factor.*" all)
2350 (string-append "#" all)))
2351 #t))
2352 (add-before 'check 'set-home
2353 ;; Tests fail without setting the following environment
2354 ;; variables.
2355 (lambda _
2356 (setenv "HOME" (getcwd))
2357 (setenv "XDG_RUNTIME_DIR" (getcwd))
2358 #t)))))
2359 (native-inputs
2360 `(("pkg-config" ,pkg-config)
2361 ("qttools" ,qttools)))
2362 (inputs
2363 `(("glm" ,glm)
2364 ("libmodplug" ,libmodplug)
2365 ("libogg" ,libogg)
2366 ("libvorbis" ,libvorbis)
2367 ("luajit" ,luajit)
2368 ("openal" ,openal)
2369 ("physfs" ,physfs)
2370 ("qtbase" ,qtbase)
2371 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2372 (home-page "https://www.solarus-games.org/")
2373 (synopsis "Lightweight game engine for Action-RPGs")
2374 (description
2375 "Solarus is a 2D game engine written in C++, that can run games
2376 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2377 in mind.")
2378 ;; The source code is licensed under the terms of GPL-3.0.
2379 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2380 ;; CC-BY-SA 4.0.
2381 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2382
2383 (define-public solarus-quest-editor
2384 (package
2385 (inherit solarus)
2386 (name "solarus-quest-editor")
2387 (version (package-version solarus))
2388 (source
2389 (origin
2390 (method git-fetch)
2391 (uri (git-reference
2392 (url "https://gitlab.com/solarus-games/solarus-quest-editor")
2393 (commit (string-append "v" version))))
2394 (file-name (git-file-name name version))
2395 (sha256
2396 (base32 "1pvjgd4faxii5sskw1h55lw90hlbazhwni8nxyywzrmkjbq7irm0"))))
2397 (arguments
2398 `(#:tests? #false)) ; no test suite
2399 (inputs
2400 `(("solarus" ,solarus)
2401 ,@(package-inputs solarus)))
2402 (synopsis "Create and modify quests for the Solarus engine")
2403 (description
2404 "Solarus Quest Editor is a graphical user interface to create and
2405 modify quests for the Solarus engine.")))
2406
2407 (define-public superstarfighter
2408 (package
2409 (name "superstarfighter")
2410 (version "0.6.4")
2411 (source
2412 (origin
2413 (method git-fetch)
2414 (uri (git-reference
2415 (url "https://github.com/notapixelstudio/superstarfighter")
2416 (commit (string-append "v" version))))
2417 (file-name (git-file-name name version))
2418 (sha256
2419 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2420 (build-system gnu-build-system)
2421 (arguments
2422 `(#:tests? #f ;there are no tests
2423 #:phases
2424 (modify-phases %standard-phases
2425 (replace 'configure
2426 (lambda _
2427 (chdir "godot")
2428 (setenv "HOME" (getcwd))
2429 (with-output-to-file "export_presets.cfg"
2430 (lambda ()
2431 (display
2432 "[preset.0]
2433 name=\"Guix\"
2434 platform=\"Linux/X11\"
2435 runnable=true
2436 [preset.0.options]")))
2437 #t))
2438 (replace 'build
2439 (lambda _
2440 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2441 (invoke (string-append godot "/bin/godot_server")
2442 "--export-pack" "Guix"
2443 "superstarfighter.pck" "project.godot"))
2444 #t))
2445 (replace 'install
2446 (lambda* (#:key inputs outputs #:allow-other-keys)
2447 (let* ((out (assoc-ref outputs "out"))
2448 (bin (string-append out "/bin"))
2449 (share (string-append out "/share"))
2450 (data (string-append share "/superstarfighter"))
2451 (icons (string-append share "/icons/hicolor/256x256/apps")))
2452 (install-file "superstarfighter.pck" data)
2453 (mkdir-p bin)
2454 (call-with-output-file (string-append bin "/superstarfighter")
2455 (lambda (port)
2456 (format port
2457 "#!/bin/sh~@
2458 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2459 (assoc-ref inputs "godot")
2460 data)
2461 (chmod port #o755)))
2462 (mkdir-p icons)
2463 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2464 (make-desktop-entry-file
2465 (string-append share "/applications/" ,name ".desktop")
2466 #:name "SuperStarfighter"
2467 #:comment "Fast-paced arcade combat game"
2468 #:exec ,name
2469 #:icon ,name
2470 #:categories '("Game" "ArcadeGame")))
2471 #t)))))
2472 (native-inputs
2473 `(("godot-headless" ,godot "headless")))
2474 (inputs
2475 `(("godot" ,godot)))
2476 (home-page "https://notapixel.itch.io/superstarfighter")
2477 (synopsis "Fast-paced local multiplayer arcade game")
2478 (description "In SuperStarfighter, up to four local players compete in a
2479 2D arena with fast-moving ships and missiles. Different game types are
2480 available, as well as a single-player mode with AI-controlled ships.")
2481 (license (list license:expat ; game
2482 license:silofl1.1)))) ; fonts
2483
2484 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2485 (define %ufoai-revision "0")
2486 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2487 (define ufoai-source
2488 (origin
2489 (method git-fetch)
2490 (uri (git-reference
2491 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2492 (commit %ufoai-commit)))
2493 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2494 (sha256
2495 (base32
2496 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2497 (modules '((guix build utils)
2498 (srfi srfi-1)
2499 (ice-9 ftw)))
2500 (snippet
2501 '(begin
2502 ;; Delete ~32MiB of bundled dependencies.
2503 (with-directory-excursion "src/libs"
2504 (for-each delete-file-recursively
2505 (lset-difference equal? (scandir ".")
2506 '("." ".." "gtest" "mumble"))))
2507
2508 ;; Use relative path to Lua headers.
2509 (substitute* "src/common/scripts_lua.h"
2510 (("\\.\\./libs/lua/") ""))
2511
2512 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2513 ;; it as a separate package. This way we don't need to make the same
2514 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2515 (substitute* "build/maps.mk"
2516 (("\\./ufo2map") "ufo2map")
2517 (("maps: ufo2map") "maps:"))
2518 (substitute* "build/modules/testall.mk"
2519 (("testall: ufo2map") "testall:"))
2520
2521 ;; If no cURL headers are found, the build system will try to include
2522 ;; the bundled version, even when not required. Prevent that.
2523 (substitute* "build/default.mk"
2524 (("^include src/libs/curl/lib/Makefile\\.inc")
2525 ""))
2526
2527 ;; While here, improve reproducibility by adding the '-X' flag to the
2528 ;; zip command used to create the map files, in order to prevent time
2529 ;; stamps from making it into the generated archives.
2530 (substitute* "build/data.mk"
2531 (("\\$\\(call ZIP\\)")
2532 "$(call ZIP) -X"))
2533 #t))))
2534
2535 (define-public trigger-rally
2536 (package
2537 (name "trigger-rally")
2538 (version "0.6.6.1")
2539 (source
2540 (origin
2541 (method url-fetch)
2542 (uri (string-append "mirror://sourceforge/trigger-rally/"
2543 "trigger-" version "/"
2544 "trigger-rally-" version ".tar.gz"))
2545 (sha256
2546 (base32
2547 "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z"))))
2548 (build-system gnu-build-system)
2549 (inputs
2550 `(("freealut" ,freealut)
2551 ("glew" ,glew)
2552 ("glu" ,glu)
2553 ("mesa" ,mesa)
2554 ("openal" ,openal)
2555 ("physfs" ,physfs)
2556 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))
2557 ("tinyxml2" ,tinyxml2)))
2558 (arguments
2559 `(#:make-flags (list (string-append "prefix=" %output)
2560 "bindir=$(prefix)/bin"
2561 "datadir=$(datarootdir)"
2562 "OPTIMS=-Ofast")
2563 #:tests? #f ; No tests present
2564 #:phases
2565 (modify-phases %standard-phases
2566 (delete 'configure)
2567 (add-before 'build 'cd-src
2568 (lambda _ (chdir "src")))
2569 (add-before 'build 'remove-timestamps
2570 (lambda _
2571 (substitute* (list "Trigger/menu.cpp"
2572 "PEngine/app.cpp")
2573 ((".*__DATE__.*") ""))))
2574 (add-before 'build 'make-verbose
2575 (lambda _
2576 (substitute* "GNUmakefile"
2577 (("@\\$\\(CXX\\)") "$(CXX)"))))
2578 (add-after 'build 'set-data-path
2579 (lambda* (#:key outputs #:allow-other-keys)
2580 (let ((out (assoc-ref outputs "out")))
2581 (substitute* "../bin/trigger-rally.config.defs"
2582 (("<data path=\"C:[^\"]*\"")
2583 (string-append "<data path=\"" out "/share/trigger-rally\""))))))
2584 (add-after 'install 'create-desktop-entry
2585 (lambda* (#:key outputs #:allow-other-keys)
2586 (let* ((out (assoc-ref outputs "out"))
2587 (apps (string-append out "/share/applications")))
2588 (mkdir-p apps)
2589 (with-output-to-file
2590 (string-append apps "/trigger-rally.desktop")
2591 (lambda ()
2592 (format #t ; Borrowed from Debian package
2593 "[Desktop Entry]~@
2594 Name=Trigger Rally~@
2595 Icon=trigger-rally~@
2596 Comment=3D rally racing car game~@
2597 Comment[de]=3D Rally-Autorennen~@
2598 Comment[fr_FR]=un jeu de rally en 3D~@
2599 Comment[ro_RO]=Un joc în 3D cu curse de raliu~@
2600 Exec=~a/bin/trigger-rally~@
2601 Terminal=false~@
2602 StartupNotify=false~@
2603 Type=Application~@
2604 TryExec=~:*~a/bin/trigger-rally~@
2605 Categories=Game;ArcadeGame;~@
2606 Keywords=racing;tracks;~@
2607 Keywords[de]=Rennstrecke;~%"
2608 out)))))))))
2609 (home-page "http://trigger-rally.sourceforge.net")
2610 (synopsis "Fast-paced single-player racing game")
2611 (description "Trigger-rally is a 3D rally simulation with great physics
2612 for drifting on over 200 maps. Different terrain materials like dirt,
2613 asphalt, sand, ice, etc. and various weather, light, and fog conditions give
2614 this rally simulation the edge over many other games. You need to make it
2615 through the maps in often tight time limits and can further improve by beating
2616 the recorded high scores. All attached single races must be finished in time
2617 in order to win an event, unlocking additional events and cars. Most maps are
2618 equipped with spoken co-driver notes and co-driver icons.")
2619 (license (list license:cc0 ;textures and audio in data.zip
2620 license:gpl2+))))
2621
2622 (define-public ufo2map
2623 (package
2624 (name "ufo2map")
2625 (version %ufoai-version)
2626 (home-page "https://ufoai.org/")
2627 (source ufoai-source)
2628 (build-system gnu-build-system)
2629 (arguments
2630 '(#:configure-flags '("CC=gcc" "CXX=g++"
2631 "--enable-release"
2632 "--enable-ufo2map"
2633 "--disable-uforadiant"
2634 "--disable-cgame-campaign"
2635 "--disable-cgame-multiplayer"
2636 "--disable-cgame-skirmish"
2637 "--disable-game"
2638 "--disable-memory"
2639 "--disable-testall"
2640 "--disable-ufoded"
2641 "--disable-ufo"
2642 "--disable-ufomodel"
2643 "--disable-ufoslicer")
2644 #:tests? #f ;no tests
2645 #:phases (modify-phases %standard-phases
2646 (replace 'configure
2647 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2648 ;; The home-made configure script does not understand
2649 ;; some of the default flags of gnu-build-system.
2650 (apply invoke "./configure" configure-flags)))
2651 (replace 'install
2652 (lambda* (#:key outputs #:allow-other-keys)
2653 (let ((out (assoc-ref outputs "out")))
2654 (install-file "ufo2map" (string-append out "/bin"))
2655 (install-file "debian/ufo2map.6"
2656 (string-append out "/share/man/man6"))
2657 #t))))))
2658 (native-inputs
2659 `(("pkg-config" ,pkg-config)))
2660 (inputs
2661 `(("libjpeg" ,libjpeg-turbo)
2662 ("libpng" ,libpng)
2663 ("lua" ,lua-5.1)
2664 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2665 (synopsis "UFO: AI map generator")
2666 (description
2667 "This package provides @command{ufo2map}, a program used to generate
2668 maps for the UFO: Alien Invasion strategy game.")
2669 (license license:gpl2+)))
2670
2671 (define ufoai-data
2672 (package
2673 (name "ufoai-data")
2674 (version %ufoai-version)
2675 (home-page "https://ufoai.org/")
2676 (source ufoai-source)
2677 (build-system gnu-build-system)
2678 (arguments
2679 '(#:tests? #f
2680 #:configure-flags '("CC=gcc" "CXX=g++")
2681 #:phases (modify-phases %standard-phases
2682 (replace 'configure
2683 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2684 (apply invoke "./configure" configure-flags)))
2685 (replace 'build
2686 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2687 (invoke "make"
2688 "-j" (if parallel-build?
2689 (number->string (parallel-job-count))
2690 "1")
2691 "maps")))
2692 (add-after 'build 'pack
2693 (lambda _
2694 (invoke "make" "pk3")))
2695 (replace 'install
2696 (lambda* (#:key outputs #:allow-other-keys)
2697 (let ((out (assoc-ref outputs "out")))
2698 (for-each (lambda (file)
2699 (install-file file out))
2700 (find-files "base" "\\.pk3$"))
2701 #t))))))
2702 (native-inputs
2703 `(("python" ,python-2)
2704 ("ufo2map" ,ufo2map)
2705 ("which" ,which)
2706 ("zip" ,zip)))
2707 (synopsis "UFO: AI data files")
2708 (description
2709 "This package contains maps and other assets for UFO: Alien Invasion.")
2710 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2711 ;; licenses, see LICENSES for details.
2712 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2713 license:cc-by-sa3.0 license:public-domain))))
2714
2715 (define-public ufoai
2716 (package
2717 (name "ufoai")
2718 (version %ufoai-version)
2719 (home-page "https://ufoai.org/")
2720 (source ufoai-source)
2721 (build-system gnu-build-system)
2722 (arguments
2723 `(#:configure-flags
2724 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2725 (string-append "--datadir=" (assoc-ref %outputs "out")
2726 "/share/games/ufo")
2727 "CC=gcc" "CXX=g++"
2728 "--enable-release"
2729 "--enable-game"
2730 "--disable-ufo2map"
2731 "--disable-dependency-tracking"
2732
2733 ;; Disable hard links to prevent huge NARs.
2734 "--disable-hardlinkedgame"
2735 "--disable-hardlinkedcgame")
2736 #:phases (modify-phases %standard-phases
2737 (add-after 'unpack 'symlink-data-files
2738 (lambda* (#:key inputs #:allow-other-keys)
2739 (let ((data (assoc-ref inputs "ufoai-data")))
2740 ;; Symlink the data files to where the build system
2741 ;; expects to find them. Ultimately these files are
2742 ;; copied to $out/share/games/ufoai/base, losing the
2743 ;; symlinks; we could fix that after install, but it
2744 ;; does not make a big difference in practice due to
2745 ;; deduplication.
2746 (with-directory-excursion "base"
2747 (for-each (lambda (file)
2748 (symlink file (basename file)))
2749 (find-files data "\\.pk3$")))
2750 #t)))
2751 (add-before 'configure 'create-language-files
2752 (lambda _
2753 (invoke "make" "lang")))
2754 (replace 'configure
2755 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2756 (apply invoke "./configure" configure-flags)))
2757 (replace 'check
2758 (lambda* (#:key tests? #:allow-other-keys)
2759 (if tests?
2760 (invoke "./testall")
2761 (format #t "test suite not run~%"))
2762 #t))
2763 (add-after 'install 'install-man-pages
2764 (lambda* (#:key outputs #:allow-other-keys)
2765 (let* ((out (assoc-ref outputs "out"))
2766 (man6 (string-append out "/share/man/man6")))
2767 (install-file "debian/ufo.6" man6)
2768 (install-file "debian/ufoded.6" man6)
2769 #t))))
2770
2771 ;; TODO: Some map tests occasionally fail because of randomness issues,
2772 ;; e.g. not enough generated aliens. The test runner also fails early
2773 ;; in the build container with 'failed to shutdown server'?
2774 #:tests? #f))
2775 (native-inputs
2776 `(("gettext" ,gettext-minimal)
2777 ("pkg-config" ,pkg-config)
2778 ("python" ,python-2)
2779 ("ufo2map" ,ufo2map)
2780 ("ufoai-data" ,ufoai-data)))
2781 (inputs
2782 `(("curl" ,curl)
2783 ("libjpeg" ,libjpeg-turbo)
2784 ("libogg" ,libogg)
2785 ("libpng" ,libpng)
2786 ("libtheora" ,libtheora)
2787 ("libvorbis" ,libvorbis)
2788 ("libxml2" ,libxml2)
2789 ("lua" ,lua-5.1)
2790 ("mesa" ,mesa)
2791 ("minixml" ,minixml)
2792 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2793 ("zlib" ,zlib)))
2794 (synopsis "Turn-based tactical strategy game")
2795 (description
2796 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2797 You control a secret organisation charged with defending Earth from a brutal
2798 alien enemy. Build up your bases, prepare your team, and dive head-first into
2799 the fast and flowing turn-based combat.
2800
2801 Over the long term you will need to conduct research into the alien threat to
2802 figure out their mysterious goals and use their powerful weapons for your own
2803 ends. You will produce unique items and use them in combat against your
2804 enemies.
2805
2806 You can also use them against your friends with the multiplayer functionality.
2807
2808 Warning: This is a pre-release version of UFO: AI! Some things may not work
2809 properly.")
2810
2811 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2812 ;; because some assets do not use the "or later" clause. Many individual
2813 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2814 (license (delete license:gpl2+ (package-license ufoai-data)))))
2815
2816 (define-public xshogi
2817 (package
2818 (name "xshogi")
2819 (version "1.4.2")
2820 (source
2821 (origin
2822 (method url-fetch)
2823 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2824 version ".tar.gz"))
2825 (sha256
2826 (base32
2827 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2828 (build-system gnu-build-system)
2829 (inputs
2830 `(("libxaw" ,libxaw)
2831 ("libxt" ,libxt)))
2832 (home-page "https://www.gnu.org/software/gnushogi/")
2833 (synopsis "User interface for gnushogi")
2834 (description "A graphical user interface for the package @code{gnushogi}.")
2835 ;; Contains a copy of GPLv3 but the licence notices simply
2836 ;; state "GNU General Public Licence" without specifying a version.
2837 (license license:gpl1+)))
2838
2839 (define-public abbaye
2840 (package
2841 (name "abbaye")
2842 (version "2.0.1")
2843 (source
2844 (origin
2845 (method git-fetch)
2846 (uri (git-reference
2847 (url "https://github.com/nevat/abbayedesmorts-gpl")
2848 (commit (string-append "v" version))))
2849 (file-name (git-file-name name version))
2850 (sha256
2851 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2852 (modules '((guix build utils)))
2853 (snippet
2854 ;; Unbundle fonts.
2855 '(begin
2856 (delete-file-recursively "fonts")
2857 #t))))
2858 (build-system gnu-build-system)
2859 (arguments
2860 '(#:make-flags '("CC=gcc")
2861 #:phases (modify-phases %standard-phases
2862 (add-after 'set-paths 'set-sdl-paths
2863 (lambda* (#:key inputs #:allow-other-keys)
2864 (setenv "CPATH"
2865 (string-append (assoc-ref inputs "sdl-union")
2866 "/include/SDL:"
2867 (or (getenv "CPATH") "")))))
2868 (add-after 'patch-source-shebangs 'patch-makefile
2869 (lambda* (#:key outputs #:allow-other-keys)
2870 ;; Replace /usr with package output directory.
2871 (substitute* "Makefile"
2872 (("/usr") (assoc-ref outputs "out")))))
2873 (add-before 'install 'make-install-dirs
2874 (lambda* (#:key outputs #:allow-other-keys)
2875 (let ((prefix (assoc-ref outputs "out")))
2876 ;; Create directories that the makefile assumes exist.
2877 (mkdir-p (string-append prefix "/bin"))
2878 (mkdir-p (string-append prefix "/share/applications"))
2879 (mkdir-p (string-append prefix "/share/pixmaps")))))
2880 ;; No configure script.
2881 (delete 'configure))
2882 #:tests? #f)) ;; No check target.
2883 (native-inputs `(("pkg-config" ,pkg-config)))
2884 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2885 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2886 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2887 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2888 France. The Cathars, who preach about good Christian beliefs, were being
2889 expelled by the Catholic Church out of the Languedoc region in France. One of
2890 them, called Jean Raymond, found an old church in which to hide, not knowing
2891 that beneath its ruins lay buried an ancient evil.")
2892 (license license:gpl3)))
2893
2894 (define-public angband
2895 (package
2896 (name "angband")
2897 (version "4.2.1")
2898 (source
2899 (origin
2900 (method url-fetch)
2901 (uri (string-append "https://rephial.org/downloads/"
2902 (version-major+minor version)
2903 "/angband-" version ".tar.gz"))
2904 (sha256
2905 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2906 (modules '((guix build utils)))
2907 (snippet
2908 ;; So, some of the sounds/graphics/tilesets are under different
2909 ;; licenses... some of them even nonfree! This is a console-only
2910 ;; version of this package so we just remove them.
2911 ;; In the future, if someone tries to make a graphical variant of
2912 ;; this package, they can deal with that mess themselves. :)
2913 '(begin
2914 (for-each (lambda (subdir)
2915 (let ((lib-subdir (string-append "lib/" subdir)))
2916 (delete-file-recursively lib-subdir)))
2917 '("fonts" "icons" "sounds" "tiles"))
2918 (substitute* "lib/Makefile"
2919 ;; And don't try to invoke makefiles in the directories we removed.
2920 (("gamedata customize help screens fonts tiles sounds icons user")
2921 "gamedata customize help screens user"))
2922 #t))))
2923 (build-system gnu-build-system)
2924 (arguments
2925 `(#:tests? #f ; no check target
2926 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2927 #:phases
2928 (modify-phases %standard-phases
2929 (replace 'bootstrap
2930 (lambda _
2931 (substitute* "acinclude.m4"
2932 (("ncursesw5-config") "ncursesw6-config"))
2933 (invoke "sh" "autogen.sh"))))))
2934 (native-inputs
2935 `(("autoconf" ,autoconf)
2936 ("automake" ,automake)))
2937 (inputs `(("ncurses" ,ncurses)))
2938 (home-page "https://rephial.org/")
2939 (synopsis "Dungeon exploration roguelike")
2940 (description "Angband is a Classic dungeon exploration roguelike. Explore
2941 the depths below Angband, seeking riches, fighting monsters, and preparing to
2942 fight Morgoth, the Lord of Darkness.")
2943 (license license:gpl2)))
2944
2945 (define-public pingus
2946 (package
2947 (name "pingus")
2948 (version "0.7.6")
2949 (source
2950 (origin
2951 (method git-fetch)
2952 (uri (git-reference
2953 (url "https://gitlab.com/pingus/pingus.git")
2954 (commit (string-append "v" version))))
2955 (file-name (git-file-name name version))
2956 (sha256
2957 (base32
2958 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2959 (patches (search-patches "pingus-boost-headers.patch"
2960 "pingus-sdl-libs-config.patch"))
2961 (modules '((guix build utils)))
2962 (snippet
2963 '(begin
2964 (substitute* "src/pingus/screens/demo_session.cpp"
2965 (("#include <iostream>")
2966 ;; std::function moved to <functional> with C++ 11.
2967 ;; Remove this for versions newer than 0.7.6.
2968 "#include <iostream>\n#include <functional>"))
2969 #t))))
2970 (build-system gnu-build-system)
2971 (native-inputs `(("pkg-config" ,pkg-config)
2972 ("scons-python2" ,scons-python2)))
2973 (inputs `(("sdl" ,sdl)
2974 ("sdl-image" ,sdl-image)
2975 ("sdl-mixer" ,sdl-mixer)
2976 ("mesa" ,mesa)
2977 ("glu" ,glu)
2978 ("libpng" ,libpng)
2979 ("boost" ,boost)))
2980 (arguments
2981 '(#:make-flags (list (string-append "PREFIX=" %output))
2982 #:tests? #f ; no check target
2983 #:phases
2984 (modify-phases %standard-phases
2985 (delete 'configure)))) ; no configure script
2986 (home-page "https://pingus.seul.org/")
2987 (synopsis "Lemmings clone")
2988 (description
2989 "Pingus is a free Lemmings-like puzzle game in which the player takes
2990 command of a bunch of small animals and has to guide them through levels.
2991 Since the animals walk on their own, the player can only influence them by
2992 giving them commands, like build a bridge, dig a hole, or redirect all animals
2993 in the other direction. Multiple such commands are necessary to reach the
2994 level's exit. The game is presented in a 2D side view.")
2995 ;; Some source files are under bsd-3 and gpl2+ licenses.
2996 (license license:gpl3+)))
2997
2998 (define-public talkfilters
2999 (package
3000 (name "talkfilters")
3001 (version "2.3.8")
3002 (source
3003 (origin
3004 (method url-fetch)
3005 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
3006 "talkfilters-" version ".tar.gz"))
3007 (sha256
3008 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
3009 (build-system gnu-build-system)
3010 (home-page "https://www.gnu.org/software/talkfilters/")
3011 (synopsis "Convert English text to humorous dialects")
3012 (description "The GNU Talk Filters are programs that convert English text
3013 into stereotyped or otherwise humorous dialects. The filters are provided as
3014 a C library, so they can easily be integrated into other programs.")
3015 (license license:gpl2+)))
3016
3017 (define-public taisei
3018 (package
3019 (name "taisei")
3020 (version "1.3.1")
3021 (source
3022 (origin
3023 (method url-fetch)
3024 (uri (string-append "https://github.com/taisei-project/"
3025 "taisei/releases/download/v" version
3026 "/taisei-v" version ".tar.xz"))
3027 (sha256
3028 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
3029 (build-system meson-build-system)
3030 (arguments
3031 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
3032 #:configure-flags
3033 (list "-Dr_default=gles30"
3034 "-Dr_gles20=true"
3035 "-Dr_gles30=true"
3036 "-Dshader_transpiler=true")))
3037 (native-inputs
3038 `(("pkg-config" ,pkg-config)
3039 ("python" ,python)
3040 ("python-docutils" ,python-docutils)
3041 ("python-pygments" ,python-pygments)))
3042 (inputs
3043 `(("freetype" ,freetype)
3044 ("libpng" ,libpng)
3045 ("libwebp" ,libwebp)
3046 ("libzip" ,libzip)
3047 ("mesa" ,mesa)
3048 ("openssl" ,openssl)
3049 ("opusfile" ,opusfile)
3050 ("sdl2" ,sdl2)
3051 ("sdl2-mixer" ,sdl2-mixer)
3052 ("shaderc" ,shaderc)
3053 ("spirv-cross" ,spirv-cross)
3054 ("zlib" ,zlib)))
3055 (home-page "https://taisei-project.org/")
3056 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
3057 (description
3058 "The player controls a character (one of three: Good, Bad, and Dead),
3059 dodges the missiles (lots of it cover the screen, but the character's hitbox
3060 is very small), and shoot at the adversaries that keep appear on the screen.")
3061 (license (list ;;game
3062 license:expat
3063 ;;resources/00-taisei.pkgdir/bgm/
3064 ;;atlas/portraits/
3065 license:cc-by4.0
3066 ;;miscellaneous
3067 license:cc0
3068 license:public-domain))))
3069
3070 (define-public cmatrix
3071 (package
3072 (name "cmatrix")
3073 (version "2.0")
3074 (source
3075 (origin
3076 (method git-fetch)
3077 (uri (git-reference
3078 (url "https://github.com/abishekvashok/cmatrix")
3079 (commit (string-append "v" version))))
3080 (file-name (git-file-name name version))
3081 (sha256
3082 (base32
3083 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
3084 (build-system gnu-build-system)
3085 (native-inputs
3086 `(("autoconf" ,autoconf)
3087 ("automake" ,automake)))
3088 (arguments
3089 '(#:phases
3090 (modify-phases %standard-phases
3091 (replace 'configure
3092 (lambda* (#:key outputs #:allow-other-keys)
3093 ;; This old ‘configure’ script doesn't support
3094 ;; variables passed as arguments.
3095 (let ((out (assoc-ref outputs "out")))
3096 (setenv "CONFIG_SHELL" (which "bash"))
3097 (invoke "./configure"
3098 (string-append "--prefix=" out))))))))
3099 (inputs `(("ncurses" ,ncurses)))
3100 (home-page "http://www.asty.org/cmatrix")
3101 (synopsis "Simulate the display from \"The Matrix\"")
3102 (description "CMatrix simulates the display from \"The Matrix\" and is
3103 based on the screensaver from the movie's website. It works with terminal
3104 settings up to 132x300 and can scroll lines all at the same rate or
3105 asynchronously and at a user-defined speed.")
3106 (license license:gpl2+)))
3107
3108 (define-public chess
3109 (package
3110 (name "chess")
3111 (version "6.2.7")
3112 (source
3113 (origin
3114 (method url-fetch)
3115 (uri (string-append "mirror://gnu/chess/gnuchess-" version
3116 ".tar.gz"))
3117 (sha256
3118 (base32
3119 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
3120 (build-system gnu-build-system)
3121 (home-page "https://www.gnu.org/software/chess/")
3122 (synopsis "Full chess implementation")
3123 (description "GNU Chess is a chess engine. It allows you to compete
3124 against the computer in a game of chess, either through the default terminal
3125 interface or via an external visual interface such as GNU XBoard.")
3126 (properties '((upstream-name . "gnuchess")
3127 (ftp-directory . "/chess")))
3128 (license license:gpl3+)))
3129
3130 (define-public freedink-engine
3131 (package
3132 (name "freedink-engine")
3133 (version "109.6")
3134 (source (origin
3135 (method url-fetch)
3136 (uri (string-append "mirror://gnu/freedink/freedink-" version
3137 ".tar.gz"))
3138 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
3139 (sha256
3140 (base32
3141 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
3142 (build-system gnu-build-system)
3143 (arguments
3144 `(#:configure-flags '("--disable-embedded-resources")
3145 #:phases
3146 (modify-phases %standard-phases
3147 (add-after 'unpack 'disable-graphical-tests
3148 (lambda _
3149 ;; These tests require a graphical interface.
3150 (substitute* "src/Makefile.am"
3151 (("test_gfx_fonts TestIOGfxDisplay") ""))
3152 #t))
3153 (add-before 'bootstrap 'autoreconf
3154 (lambda _
3155 ;; automake is out of date in the source
3156 ;; autoreconf updates the automake scripts
3157 (invoke "autoreconf")
3158 ;; Build fails when autom4te.cache exists.
3159 (delete-file-recursively "autom4te.cache")
3160 #t))
3161 (add-after 'install 'delete-freedinkedit-desktop
3162 (lambda* (#:key outputs #:allow-other-keys)
3163 (let ((out (assoc-ref outputs "out")))
3164 ;; freedinkedit does not know where to find freedink data
3165 ;; freedink data is read-only, so it cannot be edited anyway.
3166 ;; TODO: fix freedink.desktop
3167 (delete-file-recursively (string-append
3168 out "/share/applications"))
3169 #t))))))
3170 (native-inputs `(("autoconf" ,autoconf)
3171 ("automake" ,automake)
3172 ("cxxtest" ,cxxtest)
3173 ("gettext" ,gettext-minimal)
3174 ("help2man" ,help2man)
3175 ("pkg-config" ,pkg-config)))
3176 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
3177 sdl2-ttf sdl2-gfx)))
3178 ("fontconfig" ,fontconfig)
3179 ("glm" ,glm)))
3180 (properties '((ftp-directory . "/freedink")
3181 (upstream-name . "freedink")))
3182 (home-page "https://www.gnu.org/software/freedink/")
3183 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
3184 (description
3185 "GNU FreeDink is a free and portable re-implementation of the engine
3186 for the role-playing game Dink Smallwood. It supports not only the original
3187 game data files but it also supports user-produced game mods or \"D-Mods\".
3188 To that extent, it also includes a front-end for managing all of your D-Mods.")
3189 (license license:gpl3+)))
3190
3191 (define-public freedink-data
3192 (package
3193 (name "freedink-data")
3194 (version "1.08.20190120")
3195 (source (origin
3196 (method url-fetch)
3197 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3198 version ".tar.gz"))
3199 (sha256
3200 (base32
3201 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3202 (build-system gnu-build-system)
3203 (arguments
3204 `(#:phases
3205 (modify-phases %standard-phases
3206 (delete 'configure) ; no configure script
3207 (delete 'check)) ; no tests
3208 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3209 (properties '((ftp-directory . "/freedink")))
3210 (home-page "https://www.gnu.org/software/freedink/")
3211 (synopsis "Game data for GNU Freedink")
3212 (description
3213 "This package contains the game data of GNU Freedink.")
3214 (license license:gpl3+)))
3215
3216 (define-public freedink-dfarc
3217 (package
3218 (name "freedink-dfarc")
3219 (version "3.14")
3220 (source (origin
3221 (method url-fetch)
3222 (uri (string-append "mirror://gnu/freedink/dfarc-"
3223 version ".tar.gz"))
3224 (sha256
3225 (base32
3226 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3227 (build-system gnu-build-system)
3228 (native-inputs
3229 `(("intltool" ,intltool)))
3230 (inputs
3231 `(("bzip2" ,bzip2)
3232 ("wxwidgets" ,wxwidgets)))
3233 (properties '((ftp-directory . "/freedink")
3234 (upstream-name . "dfarc")))
3235 (home-page "https://www.gnu.org/software/freedink/")
3236 (synopsis "Front-end for managing and playing Dink Modules")
3237 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3238 and its numerous D-Mods.")
3239 (license license:gpl3+)))
3240
3241 (define-public freedink
3242 ;; This is a wrapper that tells the engine where to find the data.
3243 (package (inherit freedink-engine)
3244 (name "freedink")
3245 (build-system trivial-build-system)
3246 (arguments
3247 '(#:builder (begin
3248 (use-modules (guix build utils))
3249
3250 (let* ((output (assoc-ref %outputs "out"))
3251 (bin (string-append output "/bin"))
3252 (executable (string-append bin "/freedink")))
3253 (mkdir-p bin)
3254 (call-with-output-file executable
3255 (lambda (port)
3256 (format port "#!~a/bin/sh
3257 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3258 (assoc-ref %build-inputs "bash")
3259 (assoc-ref %build-inputs "engine")
3260 (assoc-ref %build-inputs "data"))
3261 (chmod port #o777)))
3262 #t))
3263 #:modules ((guix build utils))))
3264 (inputs `(("engine" ,freedink-engine)
3265 ("data" ,freedink-data)
3266 ("bash" ,bash)))
3267 (native-inputs '())))
3268
3269 (define-public xboard
3270 (package
3271 (name "xboard")
3272 (version "4.9.1")
3273 (source
3274 (origin
3275 (method url-fetch)
3276 (uri (string-append "mirror://gnu/xboard/xboard-" version
3277 ".tar.gz"))
3278 (sha256
3279 (base32
3280 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3281 (build-system gnu-build-system)
3282 (inputs
3283 `(("gtk+" ,gtk+-2)
3284 ("librsvg" ,librsvg)))
3285 (native-inputs
3286 `(("texinfo" ,texinfo)
3287 ("pkg-config" ,pkg-config)))
3288 (home-page "https://www.gnu.org/software/xboard/")
3289 (synopsis "Graphical user interface for chess programs")
3290 (description "GNU XBoard is a graphical board for all varieties of chess,
3291 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3292 and Makruk. Several lesser-known variants are also supported. It presents a
3293 fully interactive graphical interface and it can load and save games in the
3294 Portable Game Notation.")
3295 (license license:gpl3+)))
3296
3297 (define-public gtypist
3298 (package
3299 (name "gtypist")
3300 (version "2.9.5")
3301 (source (origin
3302 (method url-fetch)
3303 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3304 version ".tar.xz"))
3305 (sha256
3306 (base32
3307 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3308 (modules '((guix build utils)))
3309 (snippet
3310 ;; We do not provide `ncurses.h' within an `ncursesw'
3311 ;; sub-directory, so patch the source accordingly. See
3312 ;; <http://bugs.gnu.org/19018>.
3313 '(begin
3314 (for-each (lambda (file)
3315 (substitute* file
3316 (("ncursesw/ncurses.h")
3317 "ncurses.h")))
3318 (find-files "." "configure$|\\.c$"))
3319 #t))))
3320 (build-system gnu-build-system)
3321 (inputs `(("ncurses" ,ncurses)
3322 ("perl" ,perl)))
3323 (home-page "https://www.gnu.org/software/gtypist/")
3324 (synopsis "Typing tutor")
3325 (description
3326 "GNU Typist is a universal typing tutor. It can be used to learn and
3327 practice touch-typing. Several tutorials are included; in addition to
3328 tutorials for the standard QWERTY layout, there are also tutorials for the
3329 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3330 are primarily in English, however some in other languages are provided.")
3331 (license license:gpl3+)))
3332
3333 (define-public irrlicht
3334 (package
3335 (name "irrlicht")
3336 (version "1.8.4")
3337 (source (origin
3338 (method url-fetch)
3339 (uri (string-append
3340 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3341 (version-major+minor version)
3342 "/" version "/irrlicht-" version ".zip"))
3343 (sha256
3344 (base32
3345 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3346 (patches (search-patches "irrlicht-use-system-libs.patch"))
3347 (modules '((guix build utils)))
3348 (snippet
3349 '(begin
3350 (for-each delete-file-recursively
3351 '("bin" ; bundled compiled Windows binaries"
3352 "source/Irrlicht/MacOSX"
3353 "source/Irrlicht/bzip2"
3354 "source/Irrlicht/jpeglib"
3355 "source/Irrlicht/libpng"
3356 "source/Irrlicht/lzma"
3357 "source/Irrlicht/zlib"))
3358 (delete-file "source/Irrlicht/glext.h")
3359 (delete-file "source/Irrlicht/glxext.h")
3360 (delete-file "source/Irrlicht/wglext.h")
3361 #t))))
3362 (build-system gnu-build-system)
3363 (arguments
3364 `(#:phases
3365 (modify-phases %standard-phases
3366 (add-after 'unpack 'chdir-to-source
3367 (lambda _
3368 ;; The actual source is buried a few directories deep.
3369 (chdir "source/Irrlicht/")
3370 #t))
3371 (add-after 'chdir-to-source 'fix-build-env
3372 (lambda* (#:key outputs #:allow-other-keys)
3373 (let ((out (assoc-ref outputs "out")))
3374 (substitute* "Makefile"
3375 (("INSTALL_DIR = /usr/local/lib")
3376 (string-append "INSTALL_DIR = " out "/lib"))
3377 ;; Add '-fpermissive' to the CXXFLAGS
3378 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3379 ;; The Makefile assumes these directories exist.
3380 (mkdir-p (string-append out "/lib"))
3381 (mkdir-p (string-append out "/include")))))
3382 (delete 'configure)) ; no configure script
3383 #:tests? #f ; no check target
3384 #:make-flags '("CC=gcc" "sharedlib")))
3385 (inputs
3386 `(("bzip2" ,bzip2)
3387 ("libjpeg" ,libjpeg-turbo)
3388 ("libpng" ,libpng)
3389 ("libx11" ,libx11)
3390 ("libxxf86vm" ,libxxf86vm)
3391 ("mesa" ,mesa)))
3392 (synopsis "3D game engine written in C++")
3393 (description
3394 "The Irrlicht Engine is a high performance realtime 3D engine written in
3395 C++. Features include an OpenGL renderer, extensible materials, scene graph
3396 management, character animation, particle and other special effects, support
3397 for common mesh file formats, and collision detection.")
3398 (home-page "http://irrlicht.sourceforge.net/")
3399 (license license:zlib)))
3400
3401 (define-public mars
3402 ;; The latest release on SourceForge relies on an unreleased version of SFML
3403 ;; with a different API, so we take the latest version from the official
3404 ;; repository on Github.
3405 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3406 (revision "1"))
3407 (package
3408 (name "mars")
3409 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3410 (source (origin
3411 (method git-fetch)
3412 (uri (git-reference
3413 (url "https://github.com/thelaui/M.A.R.S.")
3414 (commit commit)))
3415 (file-name (git-file-name name version))
3416 (sha256
3417 (base32
3418 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3419 (patches (search-patches "mars-sfml-2.3.patch"
3420 "mars-install.patch"))))
3421 (build-system cmake-build-system)
3422 (arguments
3423 `(#:tests? #f ; There are no tests
3424 #:phases
3425 (modify-phases %standard-phases
3426 (add-after 'unpack 'fix-install-path
3427 (lambda _
3428 (substitute* "src/CMakeLists.txt"
3429 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3430 "${CMAKE_INSTALL_PREFIX}/bin"))
3431 #t))
3432 (add-after 'unpack 'fix-data-path
3433 (lambda* (#:key outputs #:allow-other-keys)
3434 (substitute* "src/System/settings.cpp"
3435 (("C_dataPath = \"./data/\";")
3436 (string-append "C_dataPath = \""
3437 (assoc-ref outputs "out")
3438 "/share/games/marsshooter/\";")))
3439 #t)))))
3440 (inputs
3441 `(("mesa" ,mesa)
3442 ("fribidi" ,fribidi)
3443 ("taglib" ,taglib)
3444 ("sfml" ,sfml)))
3445 (home-page "http://mars-game.sourceforge.net/")
3446 (synopsis "2D space shooter")
3447 (description
3448 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3449 attractive physics. Players can battle each other or computer controlled
3450 enemies in different game modes such as space ball, death match, team death
3451 match, cannon keep, and grave-itation pit.")
3452 (license license:gpl3+))))
3453
3454 (define-public minetest
3455 (package
3456 (name "minetest")
3457 (version "5.4.1")
3458 (source (origin
3459 (method git-fetch)
3460 (uri (git-reference
3461 (url "https://github.com/minetest/minetest")
3462 (commit version)))
3463 (file-name (git-file-name name version))
3464 (sha256
3465 (base32
3466 "062ilb7s377q3hwfhl8q06vvcw2raydz5ljzlzwy2dmyzmdcndb8"))
3467 (modules '((guix build utils)))
3468 (snippet
3469 '(begin
3470 ;; Delete bundled libraries.
3471 (delete-file-recursively "lib")
3472 #t))))
3473 (build-system cmake-build-system)
3474 (arguments
3475 `(#:configure-flags
3476 (list "-DRUN_IN_PLACE=0"
3477 "-DENABLE_FREETYPE=1"
3478 "-DENABLE_GETTEXT=1"
3479 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3480 (string-append "-DIRRLICHT_INCLUDE_DIR="
3481 (assoc-ref %build-inputs "irrlicht")
3482 "/include/irrlicht")
3483 (string-append "-DCURL_INCLUDE_DIR="
3484 (assoc-ref %build-inputs "curl")
3485 "/include/curl"))
3486 #:phases
3487 (modify-phases %standard-phases
3488 (add-after 'unpack 'patch-sources
3489 (lambda* (#:key inputs #:allow-other-keys)
3490 (substitute* "src/filesys.cpp"
3491 ;; Use store-path for "rm" instead of non-existing FHS path.
3492 (("\"/bin/rm\"")
3493 (string-append "\"" (assoc-ref inputs "coreutils") "/bin/rm\"")))
3494 (substitute* "src/CMakeLists.txt"
3495 ;; Let minetest binary remain in build directory.
3496 (("set\\(EXECUTABLE_OUTPUT_PATH .*\\)") ""))
3497 (substitute* "src/unittest/test_servermodmanager.cpp"
3498 ;; do no override MINETEST_SUBGAME_PATH
3499 (("(un)?setenv\\(\"MINETEST_SUBGAME_PATH\".*\\);")
3500 "(void)0;"))
3501 (setenv "MINETEST_SUBGAME_PATH"
3502 (string-append (getcwd) "/games")) ; for check
3503 #t))
3504 (replace 'check
3505 (lambda _
3506 ;; Thanks to our substitutions, the tests should also run
3507 ;; when invoked on the target outside of `guix build'.
3508 (unless ,(%current-target-system)
3509 (setenv "HOME" "/tmp")
3510 (invoke "src/minetest" "--run-unittests"))
3511 #t)))))
3512 (native-search-paths
3513 (list (search-path-specification
3514 (variable "MINETEST_SUBGAME_PATH")
3515 (files '("share/minetest/games")))))
3516 (native-inputs
3517 `(("pkg-config" ,pkg-config)))
3518 (inputs
3519 `(("coreutils" ,coreutils)
3520 ("curl" ,curl)
3521 ("freetype" ,freetype)
3522 ("gettext" ,gettext-minimal)
3523 ("gmp" ,gmp)
3524 ("irrlicht" ,irrlicht)
3525 ("jsoncpp" ,jsoncpp)
3526 ("libjpeg" ,libjpeg-turbo)
3527 ("libpng" ,libpng)
3528 ("libogg" ,libogg)
3529 ("libvorbis" ,libvorbis)
3530 ("libxxf86vm" ,libxxf86vm)
3531 ("luajit" ,luajit)
3532 ("mesa" ,mesa)
3533 ("ncurses" ,ncurses)
3534 ("openal" ,openal)
3535 ("sqlite" ,sqlite)))
3536 (propagated-inputs
3537 `(("minetest-data" ,minetest-data)))
3538 (synopsis "Infinite-world block sandbox game")
3539 (description
3540 "Minetest is a sandbox construction game. Players can create and destroy
3541 various types of blocks in a three-dimensional open world. This allows
3542 forming structures in every possible creation, on multiplayer servers or as a
3543 single player. Mods and texture packs allow players to personalize the game
3544 in different ways.")
3545 (home-page "https://www.minetest.net/")
3546 (license license:lgpl2.1+)))
3547
3548 (define minetest-data
3549 (package
3550 (name "minetest-data")
3551 (version (package-version minetest))
3552 (source (origin
3553 (method git-fetch)
3554 (uri (git-reference
3555 (url "https://github.com/minetest/minetest_game")
3556 (commit version)))
3557 (file-name (git-file-name name version))
3558 (sha256
3559 (base32
3560 "0i45lbnikvgj9kxdp0yphpjjwjcgp4ibn49xkj78j5ic1s9n8jd4"))))
3561 (build-system trivial-build-system)
3562 (native-inputs
3563 `(("source" ,source)))
3564 (arguments
3565 `(#:modules ((guix build utils))
3566 #:builder (begin
3567 (use-modules (guix build utils))
3568 (let ((install-dir (string-append
3569 %output
3570 "/share/minetest/games/minetest_game")))
3571 (mkdir-p install-dir)
3572 (copy-recursively
3573 (assoc-ref %build-inputs "source")
3574 install-dir)
3575 #t))))
3576 (synopsis "Main game data for the Minetest game engine")
3577 (description
3578 "Game data for the Minetest infinite-world block sandbox game.")
3579 (home-page "https://www.minetest.net/")
3580 (license license:lgpl2.1+)))
3581
3582 (define-public minetest-mineclone
3583 (package
3584 (name "minetest-mineclone")
3585 (version "0.71.0")
3586 (source (origin
3587 (method git-fetch)
3588 (uri (git-reference
3589 (url "https://git.minetest.land/Wuzzy/MineClone2")
3590 (commit version)))
3591 (file-name (git-file-name name version))
3592 (sha256
3593 (base32
3594 "0qm809dqvxc7pa1cr9skmglq9vrbq5hhm4c4m5yi46ldh1v96dgf"))))
3595 (build-system copy-build-system)
3596 (arguments
3597 `(#:install-plan
3598 '(("." "share/minetest/games/mineclone"))))
3599 (synopsis "Minecraft clone based on Minetest engine")
3600 (description
3601 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3602 closely as the engine allows.")
3603 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3604 (license license:gpl3+)))
3605
3606 (define glkterm
3607 (package
3608 (name "glkterm")
3609 (version "1.0.4")
3610 (source
3611 (origin
3612 (method url-fetch)
3613 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3614 "glk/implementations/glkterm-104.tar.gz"))
3615 (sha256
3616 (base32
3617 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3618 (build-system gnu-build-system)
3619 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3620 (arguments
3621 '(#:tests? #f ; no check target
3622 #:phases
3623 (modify-phases %standard-phases
3624 (replace 'install
3625 (lambda* (#:key outputs #:allow-other-keys)
3626 (let* ((out (assoc-ref outputs "out"))
3627 (inc (string-append out "/include"))
3628 (lib (string-append out "/lib")))
3629 (for-each
3630 (lambda (file)
3631 (install-file file inc))
3632 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3633 (install-file "libglkterm.a" lib))
3634 #t))
3635 (delete 'configure)))) ; no configure script
3636 (home-page "http://www.eblong.com/zarf/glk/")
3637 (synopsis "Curses Implementation of the Glk API")
3638 (description
3639 "Glk defines a portable API for applications with text UIs. It was
3640 primarily designed for interactive fiction, but it should be suitable for many
3641 interactive text utilities, particularly those based on a command line.
3642 This is an implementation of the Glk library which runs in a terminal window,
3643 using the @code{curses.h} library for screen control.")
3644 (license (license:fsf-free "file://README"))))
3645
3646 (define-public glulxe
3647 (package
3648 (name "glulxe")
3649 (version "0.5.4")
3650 (source
3651 (origin
3652 (method url-fetch)
3653 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3654 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3655 (sha256
3656 (base32
3657 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3658 (build-system gnu-build-system)
3659 (inputs `(("glk" ,glkterm)))
3660 (arguments
3661 '(#:tests? #f ; no check target
3662 #:make-flags
3663 (let* ((glk (assoc-ref %build-inputs "glk")))
3664 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3665 (string-append "GLKLIBDIR=" glk "/lib")
3666 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3667 #:phases
3668 (modify-phases %standard-phases
3669 (replace 'install
3670 (lambda* (#:key outputs #:allow-other-keys)
3671 (let* ((out (assoc-ref outputs "out"))
3672 (bin (string-append out "/bin")))
3673 (install-file "glulxe" bin))
3674 #t))
3675 (delete 'configure)))) ; no configure script
3676 (home-page "https://www.eblong.com/zarf/glulx/")
3677 (synopsis "Interpreter for Glulx VM")
3678 (description
3679 "Glulx is a 32-bit portable virtual machine intended for writing and
3680 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3681 some of the restrictions in the venerable Z-machine format. This is the
3682 reference interpreter, using the Glk API.")
3683 (license license:expat)))
3684
3685 (define-public fifechan
3686 (package
3687 (name "fifechan")
3688 (version "0.1.5")
3689 (source (origin
3690 (method url-fetch)
3691 (uri (string-append "https://codeload.github.com/fifengine/"
3692 "fifechan/tar.gz/" version))
3693 (file-name (string-append name "-" version ".tar.gz"))
3694 (sha256
3695 (base32
3696 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3697 (build-system cmake-build-system)
3698 (inputs
3699 `(("sdl2" ,sdl2)
3700 ("sdl2-image" ,sdl2-image)
3701 ("mesa" ,mesa)))
3702 (arguments
3703 '(#:tests? #f)) ; No included tests
3704 (home-page "https://fifengine.github.io/fifechan/")
3705 (synopsis "Cross platform GUI library specifically for games")
3706 (description
3707 "Fifechan is a lightweight cross platform GUI library written in C++
3708 specifically designed for games. It has a built in set of extendable GUI
3709 Widgets, and allows users to create more.")
3710 (license license:lgpl2.1+)))
3711
3712 (define-public fifengine
3713 (package
3714 (name "fifengine")
3715 (version "0.4.2")
3716 (source (origin
3717 (method url-fetch)
3718 (uri (string-append "https://codeload.github.com/fifengine/"
3719 "fifengine/tar.gz/" version))
3720 (file-name (string-append name "-" version ".tar.gz"))
3721 (patches (search-patches "fifengine-swig-compat.patch"))
3722 (sha256
3723 (base32
3724 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3725 (build-system cmake-build-system)
3726 (arguments
3727 `(#:tests? #f ; TODO The test running fails to run some tests.
3728 #:modules ((srfi srfi-1)
3729 (guix build cmake-build-system)
3730 (guix build utils))
3731 #:configure-flags
3732 (list
3733 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3734 (assoc-ref %build-inputs "openal")
3735 "/include/AL")
3736 (string-append "-DPYTHON_SITE_PACKAGES="
3737 (assoc-ref %outputs "out")
3738 "/lib/python"
3739 ,(version-major+minor (package-version python))
3740 "/site-packages"))
3741 #:phases
3742 (modify-phases %standard-phases
3743 (add-after 'unpack 'patch-run_tests.py
3744 (lambda _
3745 ;; Patch the test runner to exit with a status of 1 if any test
3746 ;; fails, to allow detecting failures.
3747 (substitute* "run_tests.py"
3748 (("ERROR\\. One or more tests failed!'\\)")
3749 "ERROR. One or more tests failed!')
3750 \t\texit(1)"))
3751 #t))
3752 ;; Run tests after installation so that we can make use of the built
3753 ;; python modules.
3754 (delete 'check)
3755 (add-after 'install 'check
3756 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3757 (define python-version
3758 (let* ((version (last (string-split
3759 (assoc-ref inputs "python")
3760 #\-)))
3761 (components (string-split version #\.))
3762 (major+minor (take components 2)))
3763 (string-join major+minor ".")))
3764
3765 (when tests?
3766 ;; Set PYTHONPATH so that python finds the installed modules.
3767 (setenv "PYTHONPATH"
3768 (string-append (getenv "PYTHONPATH") ":"
3769 (assoc-ref outputs "out")
3770 "/lib/python"
3771 python-version
3772 "/site-packages"))
3773 ;; The tests require an X server.
3774 (system "Xvfb :1 &")
3775 (setenv "DISPLAY" ":1")
3776 (setenv "XDG_RUNTIME_DIR" "/tmp")
3777 ;; Run tests
3778 (chdir ,(string-append "../" name "-" version))
3779 (invoke "python3" "run_tests.py" "-a"))
3780 #t)))))
3781 (inputs
3782 `(("sdl2" ,sdl2)
3783 ("sdl2-image" ,sdl2-image)
3784 ("sdl2-ttf" ,sdl2-ttf)
3785 ("tinyxml" ,tinyxml)
3786 ("openal" ,openal)
3787 ("libogg" ,libogg)
3788 ("glew" ,glew)
3789 ("libvorbis" ,libvorbis)
3790 ("boost" ,boost)
3791 ("fifechan" ,fifechan)
3792 ("swig" ,swig)
3793 ("python" ,python)))
3794 (native-inputs
3795 `(("python" ,python)
3796 ("swig" ,swig)
3797 ("xvfb" ,xorg-server)))
3798 (propagated-inputs
3799 `(("python-future" ,python-future)))
3800 (home-page "https://www.fifengine.net/")
3801 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3802 (description
3803 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3804 isometric game engine. Python bindings are included allowing users to create
3805 games using Python as well as C++.")
3806 (license license:lgpl2.1+)))
3807
3808 (define-public fizmo
3809 (package
3810 (name "fizmo")
3811 (version "0.8.5")
3812 (source (origin
3813 (method url-fetch)
3814 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3815 "fizmo-" version ".tar.gz"))
3816 (sha256
3817 (base32
3818 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3819 (build-system gnu-build-system)
3820 (arguments
3821 '(#:configure-flags
3822 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3823 (ncurses (assoc-ref %build-inputs "ncurses")))
3824 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3825 (native-inputs
3826 `(("pkg-config" ,pkg-config)))
3827 (inputs
3828 `(("freetype" ,freetype)
3829 ("libjpeg" ,libjpeg-turbo)
3830 ("libpng" ,libpng)
3831 ("libsndfile" ,libsndfile)
3832 ("libxml2" ,libxml2)
3833 ("ncurses" ,ncurses)
3834 ("sdl2" ,sdl2)))
3835 (home-page "https://fizmo.spellbreaker.org/")
3836 (synopsis "Z-machine interpreter")
3837 (description
3838 "Fizmo is a console-based Z-machine interpreter. It is used to play
3839 interactive fiction, also known as text adventures, which were implemented
3840 either by Infocom or created using the Inform compiler.")
3841 (license license:bsd-3)))
3842
3843 (define-public gnugo
3844 (package
3845 (name "gnugo")
3846 (version "3.8")
3847 (source (origin
3848 (method url-fetch)
3849 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3850 ".tar.gz"))
3851 (sha256
3852 (base32
3853 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3854 (build-system gnu-build-system)
3855 (inputs `(("readline" ,readline)))
3856 (synopsis "Play the game of Go")
3857 (description
3858 "GNU Go is a program that plays the game of Go, in which players
3859 place stones on a grid to form territory or capture other stones. While
3860 it can be played directly from the terminal, rendered in ASCII characters,
3861 it is also possible to play GNU Go with 3rd party graphical interfaces or
3862 even in Emacs. It supports the standard game storage format (SGF, Smart
3863 Game Format) and inter-process communication format (GMP, Go Modem
3864 Protocol).")
3865 (home-page "https://www.gnu.org/software/gnugo/")
3866 (license license:gpl3+)))
3867
3868 (define-public extremetuxracer
3869 (package
3870 (name "extremetuxracer")
3871 (version "0.8.0")
3872 (source (origin
3873 (method url-fetch)
3874 (uri (string-append
3875 "mirror://sourceforge/extremetuxracer/releases/"
3876 version "/etr-" version ".tar.xz"))
3877 (sha256
3878 (base32
3879 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3880 (build-system gnu-build-system)
3881 (native-inputs
3882 `(("pkg-config" ,pkg-config)))
3883 (inputs
3884 `(("glu" ,glu)
3885 ("sfml" ,sfml)))
3886 (synopsis "High-speed arctic racing game based on Tux Racer")
3887 ;; Snarfed straight from Debian.
3888 (description "Extreme Tux Racer, or etracer as it is called for short, is
3889 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3890 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3891 avoiding the trees and rocks that will slow you down.
3892
3893 Collect herrings and other goodies while sliding down the hill, but avoid fish
3894 bones.
3895
3896 This game is based on the GPL version of the famous game TuxRacer.")
3897 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3898 (license license:gpl2+)))
3899
3900 (define-public supertuxkart
3901 (package
3902 (name "supertuxkart")
3903 (version "1.2")
3904 (source
3905 (origin
3906 (method url-fetch)
3907 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3908 version "/SuperTuxKart-" version "-src.tar.xz"))
3909 (sha256
3910 (base32
3911 "0dvx56hmy6wdhl7m9dw8zc1n3jqfp05gnxl6zs1rbfdyzl5dybh5"))
3912 (modules '((guix build utils)))
3913 (snippet
3914 ;; Delete bundled library sources
3915 '(begin
3916 ;; Supertuxkart uses modified versions of the Irrlicht engine
3917 ;; and the bullet library. The developers gave an explanation
3918 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3919 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3920 (for-each delete-file-recursively
3921 '("lib/glew"
3922 "lib/wiiuse"
3923 "lib/enet"))
3924 #t))))
3925 (build-system cmake-build-system)
3926 (arguments
3927 `(#:tests? #f ; no check target
3928 #:configure-flags
3929 (list "-DUSE_WIIUSE=0"
3930 "-DUSE_SYSTEM_GLEW=TRUE"
3931 "-DUSE_SYSTEM_ENET=TRUE"
3932 ;; In order to use the system ENet library, IPv6 support (added in
3933 ;; SuperTuxKart version 1.1) must be disabled.
3934 "-DUSE_IPV6=FALSE"
3935 ;; FIXME: needs libopenglrecorder
3936 "-DBUILD_RECORDER=0")))
3937 (inputs
3938 `(("curl" ,curl)
3939 ("freetype" ,freetype)
3940 ("fribidi" ,fribidi)
3941 ("glew" ,glew)
3942 ("harfbuzz" ,harfbuzz)
3943 ("libvorbis" ,libvorbis)
3944 ("libx11" ,libx11)
3945 ("libxrandr" ,libxrandr)
3946 ("mesa" ,mesa)
3947 ("openal" ,openal)
3948 ("sdl2" ,sdl2)
3949 ("zlib" ,zlib)
3950 ;; The following input is needed to build the bundled and modified
3951 ;; version of irrlicht.
3952 ("enet" ,enet)
3953 ("libjpeg" ,libjpeg-turbo)
3954 ("openssl" ,openssl)))
3955 (native-inputs
3956 `(("pkg-config" ,pkg-config)))
3957 (home-page "https://supertuxkart.net/Main_Page")
3958 (synopsis "3D kart racing game")
3959 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3960 having fun over realism. You can play with up to 4 friends on one PC, racing
3961 against each other or just trying to beat the computer; single-player mode is
3962 also available.")
3963 (license license:gpl3+)))
3964
3965 (define-public unknown-horizons
3966 (package
3967 (name "unknown-horizons")
3968 (version "2019.1")
3969 (source (origin
3970 (method url-fetch)
3971 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3972 "unknown-horizons/tar.gz/" version))
3973 (file-name (string-append name "-" version ".tar.gz"))
3974 (sha256
3975 (base32
3976 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
3977 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
3978 (build-system python-build-system)
3979 (arguments
3980 '(#:phases
3981 (modify-phases %standard-phases
3982 (add-before 'build 'set-HOME
3983 (lambda _
3984 (setenv "HOME" "/tmp")
3985 #t))
3986 (add-after 'build 'build-extra
3987 (lambda _
3988 (invoke "python3" "./setup.py" "build_i18n")
3989 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3990 #t))
3991 (add-after 'install 'patch
3992 (lambda* (#:key outputs #:allow-other-keys)
3993 (let ((out (assoc-ref outputs "out")))
3994 (substitute* (string-append out "/bin/unknown-horizons")
3995 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3996 (string-append "os.chdir(\""
3997 (assoc-ref outputs "out")
3998 "/share/unknown-horizons\")"))))
3999 #t))
4000 (add-before 'check 'fix-tests-with-pytest>=4
4001 (lambda _
4002 (substitute* "tests/conftest.py"
4003 (("pytest_namespace")
4004 "pytest_configure")
4005 (("get_marker")
4006 "get_closest_marker"))
4007 #t))
4008 ;; TODO: Run GUI tests as well
4009 (replace 'check
4010 (lambda _
4011 (substitute* "horizons/constants.py"
4012 (("IS_DEV_VERSION = False")
4013 "IS_DEV_VERSION = True"))
4014 (invoke "pytest" "tests")
4015 (substitute* "horizons/constants.py"
4016 (("IS_DEV_VERSION = True")
4017 "IS_DEV_VERSION = False"))
4018 #t)))))
4019 (inputs
4020 `(("fifengine" ,fifengine)
4021 ("python:tk" ,python "tk")
4022 ("python-pillow" ,python-pillow)
4023 ("python-pyyaml" ,python-pyyaml)))
4024 (native-inputs
4025 `(("intltool" ,intltool)
4026 ("python-distro" ,python-distro)
4027
4028 ;; Required for tests
4029 ("python-greenlet" ,python-greenlet)
4030 ("python-polib" ,python-polib)
4031 ("python-pytest" ,python-pytest)
4032 ("python-pytest-mock" ,python-pytest-mock)))
4033 (home-page "https://unknown-horizons.org/")
4034 (synopsis "Isometric realtime strategy, economy and city building simulation")
4035 (description
4036 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
4037 on economy and city building. Expand your small settlement to a strong and
4038 wealthy colony, collect taxes and supply your inhabitants with valuable
4039 goods. Increase your power with a well balanced economy and with strategic
4040 trade and diplomacy.")
4041 (license (list
4042 license:gpl2+ ; Covers code
4043 license:expat ; tests/dummy.py, ext/polib.py
4044 license:cc-by-sa3.0 ; Covers some media content
4045 license:cc-by3.0 ; Covers some media content
4046 license:bsd-3)))) ; horizons/ext/speaklater.py
4047
4048 (define-public gnujump
4049 (package
4050 (name "gnujump")
4051 (version "1.0.8")
4052 (source (origin
4053 (method url-fetch)
4054 (uri (string-append "mirror://gnu/gnujump/gnujump-"
4055 version ".tar.gz"))
4056 (sha256
4057 (base32
4058 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
4059 (build-system gnu-build-system)
4060 (arguments
4061 '(#:phases
4062 (modify-phases %standard-phases
4063 (add-before
4064 'configure 'link-libm
4065 (lambda _ (setenv "LIBS" "-lm")))
4066 (add-after 'install 'create-desktop-entry
4067 (lambda* (#:key outputs #:allow-other-keys)
4068 (let* ((out (assoc-ref outputs "out"))
4069 (apps (string-append out "/share/applications")))
4070 (mkdir-p apps)
4071 (with-output-to-file
4072 (string-append apps "/gnujump.desktop")
4073 (lambda _
4074 (format #t
4075 "[Desktop Entry]~@
4076 Name=GNUjump~@
4077 Comment=Jump up the tower to survive~@
4078 Exec=~a/bin/gnujump~@
4079 Terminal=false~@
4080 Type=Application~@
4081 Categories=Game;ArcadeGame~%"
4082 out)))))))))
4083 (inputs
4084 `(("glu" ,glu)
4085 ("mesa" ,mesa)
4086 ("sdl" ,sdl)
4087 ("sdl-image" ,sdl-image)
4088 ("sdl-mixer" ,sdl-mixer)))
4089 (home-page "http://gnujump.es.gnu.org/")
4090 (synopsis
4091 "Game of jumping to the next floor, trying not to fall")
4092 (description
4093 "GNUjump is a simple, yet addictive game in which you must jump from
4094 platform to platform to avoid falling, while the platforms drop at faster rates
4095 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
4096 falling, themeable graphics and sounds, and replays.")
4097 (license license:gpl3+)))
4098
4099 (define-public wesnoth
4100 (package
4101 (name "wesnoth")
4102 (version "1.14.16")
4103 (source (origin
4104 (method url-fetch)
4105 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
4106 (version-major+minor version)
4107 "/wesnoth-" version "/"
4108 "wesnoth-" version ".tar.bz2"))
4109 (sha256
4110 (base32
4111 "1d9hq3dcx0sgs2v4400rg2nw98v46m7bwiqqjv8z8n7vw8kx8lhg"))))
4112 (build-system cmake-build-system)
4113 (arguments
4114 `(#:tests? #f)) ;no check target
4115 (native-inputs
4116 `(("gettext" ,gettext-minimal)
4117 ("pkg-config" ,pkg-config)))
4118 (inputs
4119 `(("boost" ,boost)
4120 ("dbus" ,dbus)
4121 ("fribidi" ,fribidi)
4122 ("libvorbis" ,libvorbis)
4123 ("openssl" ,openssl)
4124 ("pango" ,pango)
4125 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
4126 (home-page "https://www.wesnoth.org/")
4127 (synopsis "Turn-based strategy game")
4128 (description
4129 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
4130 with several single player campaigns, and multiplayer games (both networked and
4131 local).
4132
4133 Battle for control on a range of maps, using variety of units which have
4134 advantages and disadvantages against different types of attacks. Units gain
4135 experience and advance levels, and are carried over from one scenario to the
4136 next campaign.")
4137 (license license:gpl2+)))
4138
4139 (define-public wesnoth-server
4140 (package
4141 (inherit wesnoth)
4142 (name "wesnoth-server")
4143 (inputs
4144 `(("boost" ,boost)
4145 ("icu4c" ,icu4c)
4146 ("openssl" ,openssl)
4147 ("sdl2" ,sdl2)))
4148 (arguments
4149 `(#:configure-flags '("-DENABLE_GAME=OFF")
4150 ,@(package-arguments wesnoth)))
4151 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
4152 (description "This package contains a dedicated server for @emph{The
4153 Battle for Wesnoth}.")))
4154
4155 (define-public gamine
4156 (package
4157 (name "gamine")
4158 (version "1.6")
4159 (source (origin
4160 (method url-fetch)
4161 (uri (string-append "mirror://sourceforge/gamine-game/"
4162 "gamine-" version ".tar.gz"))
4163 (sha256
4164 (base32
4165 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
4166 (build-system gnu-build-system)
4167 (native-inputs
4168 `(("pkg-config" ,pkg-config)
4169 ("intltool" ,intltool)))
4170 (inputs
4171 `(("gstreamer" ,gstreamer)
4172 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
4173 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
4174 ("gtk+" ,gtk+)))
4175 (arguments
4176 `(#:tests? #f
4177 #:make-flags
4178 (let ((out (assoc-ref %outputs "out")))
4179 (list (string-append "PREFIX=" out)
4180 (string-append "SYSCONFDIR=" out "/etc")))
4181 #:phases
4182 (modify-phases %standard-phases
4183 (delete 'configure)
4184 (add-after
4185 'install 'wrap-gamine
4186 (lambda* (#:key outputs #:allow-other-keys)
4187 (let ((out (assoc-ref outputs "out"))
4188 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4189 (wrap-program (string-append out "/bin/gamine")
4190 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4191 #t)))))
4192 (home-page "http://gamine-game.sourceforge.net/")
4193 (synopsis "Mouse and keyboard discovery for children")
4194 (description
4195 "Gamine is a game designed for young children who are learning to use the
4196 mouse and keyboard. The child uses the mouse to draw colored dots and lines
4197 on the screen and keyboard to display letters.")
4198 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
4199 (license license:gpl3)))
4200
4201 (define-public manaplus
4202 (package
4203 (name "manaplus")
4204 (version "1.9.3.23")
4205 (source (origin
4206 (method url-fetch)
4207 (uri (string-append
4208 "https://repo.manaplus.org/manaplus/download/"
4209 version "/manaplus-" version ".tar.xz"))
4210 (sha256
4211 (base32
4212 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
4213 (build-system gnu-build-system)
4214 (arguments
4215 '(#:configure-flags
4216 (list (string-append "CPPFLAGS=-I"
4217 (assoc-ref %build-inputs "sdl-union")
4218 "/include/SDL"))))
4219 (native-inputs
4220 `(("pkg-config" ,pkg-config)))
4221 (inputs
4222 `(("glu" ,glu)
4223 ("curl" ,curl)
4224 ("libxml2" ,libxml2)
4225 ("mesa" ,mesa)
4226 ("sdl-union" ,(sdl-union))))
4227 (home-page "https://manaplus.org")
4228 (synopsis "Client for 'The Mana World' and similar games")
4229 (description
4230 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4231 fully supported client for @uref{http://www.themanaworld.org, The mana
4232 world}, @uref{http://evolonline.org, Evol Online} and
4233 @uref{http://landoffire.org, Land of fire}.")
4234 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4235 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4236 ;; The rest is under GPL2+.
4237 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4238
4239 (define openttd-engine
4240 (package
4241 (name "openttd-engine")
4242 (version "1.10.3")
4243 (source
4244 (origin (method url-fetch)
4245 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4246 version "/openttd-" version "-source.tar.xz"))
4247 (sha256
4248 (base32
4249 "0fxmfz1mm95a2x0rnzfff9wb8q57w0cvsdd0z7agdcbyakph25n1"))))
4250 (build-system gnu-build-system)
4251 (arguments
4252 `(#:tests? #f ; no "check" target
4253 #:phases
4254 (modify-phases %standard-phases
4255 ;; The build process fails if the configure script is passed the
4256 ;; option "--enable-fast-install".
4257 (replace 'configure
4258 (lambda* (#:key inputs outputs (configure-flags '())
4259 #:allow-other-keys)
4260 (let ((out (assoc-ref outputs "out"))
4261 (lzo (assoc-ref inputs "lzo")))
4262 (apply invoke "./configure"
4263 (string-append "--prefix=" out)
4264 ;; Provide the "lzo" path.
4265 (string-append "--with-liblzo2="
4266 lzo "/lib/liblzo2.a")
4267 ;; Put the binary in 'bin' instead of 'games'.
4268 "--binary-dir=bin"
4269 configure-flags)))))))
4270 (native-inputs `(("pkg-config" ,pkg-config)))
4271 (inputs
4272 `(("allegro" ,allegro)
4273 ("fontconfig" ,fontconfig)
4274 ("freetype" ,freetype)
4275 ("icu4c" ,icu4c)
4276 ("libpng" ,libpng)
4277 ("lzo" ,lzo)
4278 ("sdl" ,sdl)
4279 ("xz" ,xz)
4280 ("zlib" ,zlib)))
4281 (synopsis "Transportation economics simulator game")
4282 (description "OpenTTD is a game in which you transport goods and
4283 passengers by land, water and air. It is a re-implementation of Transport
4284 Tycoon Deluxe with many enhancements including multiplayer mode,
4285 internationalization support, conditional orders and the ability to clone,
4286 autoreplace and autoupdate vehicles. This package only includes the game
4287 engine. When you start it you will be prompted to download a graphics set.")
4288 (home-page "https://www.openttd.org/")
4289 ;; This package is GPLv2, except for a few files located in
4290 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4291 ;; licenses. In addition, this software contains an in-game downloader
4292 ;; from which the user may find non-functional data licensed under
4293 ;; different terms.
4294 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4295
4296 (define openttd-opengfx
4297 (package
4298 (name "openttd-opengfx")
4299 (version "0.6.0")
4300 (source
4301 (origin
4302 (method url-fetch)
4303 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4304 version "/opengfx-" version "-source.tar.xz"))
4305 (sha256
4306 (base32
4307 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
4308 (build-system gnu-build-system)
4309 (arguments
4310 '(#:make-flags (list "CC=gcc"
4311 (string-append "INSTALL_DIR="
4312 (assoc-ref %outputs "out")
4313 "/share/games/openttd/baseset/opengfx"))
4314 #:phases
4315 (modify-phases %standard-phases
4316 (replace 'configure
4317 (lambda _
4318 ;; Make sure HOME is writable for GIMP.
4319 (setenv "HOME" (getcwd))
4320
4321 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4322 ;; dos2unix from receiving its version information as a flag.
4323 (substitute* "Makefile"
4324 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4325 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4326 ;; The check phase for this package only checks the md5sums of the built
4327 ;; GRF files against the md5sums of the release versions. Because we use
4328 ;; different software versions than upstream does, some of the md5sums
4329 ;; are different. However, the package is still reproducible, it's safe
4330 ;; to disable this test.
4331 #:tests? #f
4332 #:parallel-build? #f))
4333 (native-inputs `(("dos2unix" ,dos2unix)
4334 ("gimp" ,gimp)
4335 ("grfcodec" ,grfcodec)
4336 ("nml" ,nml)
4337 ("which" ,which)
4338 ("python" ,python-2)))
4339 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4340 (synopsis "Base graphics set for OpenTTD")
4341 (description
4342 "The OpenGFX project is an implementation of the OpenTTD base graphics
4343 set that aims to ensure the best possible out-of-the-box experience.
4344
4345 OpenGFX provides you with...
4346 @enumerate
4347 @item All graphics you need to enjoy OpenTTD.
4348 @item Uniquely drawn rail vehicles for every climate.
4349 @item Completely snow-aware rivers.
4350 @item Different river and sea water.
4351 @item Snow-aware buoys.
4352 @end enumerate")
4353 (license license:gpl2)))
4354
4355 (define openttd-opensfx
4356 (package
4357 (name "openttd-opensfx")
4358 (version "0.2.3")
4359 (source
4360 (origin
4361 (method url-fetch)
4362 (uri (string-append
4363 "https://binaries.openttd.org/extra/opensfx/"
4364 version "/opensfx-" version "-source.tar.gz"))
4365 (sha256
4366 (base32
4367 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
4368 (build-system gnu-build-system)
4369 (native-inputs
4370 `(("catcodec" ,catcodec)
4371 ("python" ,python-2)))
4372 (arguments
4373 `(#:make-flags
4374 (list (string-append "INSTALL_DIR=" %output
4375 "/share/games/openttd/baseset/opensfx"))
4376 #:phases
4377 (modify-phases %standard-phases
4378 (add-after 'unpack 'make-reproducible
4379 (lambda _
4380 ;; Remove the time dependency of the installed tarball by setting
4381 ;; the modification times if its members to 0.
4382 (substitute* "scripts/Makefile.def"
4383 (("-cf") " --mtime=@0 -cf"))
4384 #t))
4385 (delete 'configure))))
4386 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4387 (synopsis "Base sounds for OpenTTD")
4388 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4389 it possible to play OpenTTD without requiring the proprietary sound files from
4390 the original Transport Tycoon Deluxe.")
4391 (license license:cc-sampling-plus-1.0)))
4392
4393 (define openttd-openmsx
4394 (package
4395 (name "openttd-openmsx")
4396 (version "0.3.1")
4397 (source
4398 (origin
4399 (method url-fetch)
4400 (uri (string-append
4401 "https://binaries.openttd.org/extra/openmsx/"
4402 version "/openmsx-" version "-source.tar.gz"))
4403 (sha256
4404 (base32
4405 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
4406 (build-system gnu-build-system)
4407 (native-inputs
4408 `(("python" ,python-2)))
4409 (arguments
4410 `(#:make-flags
4411 (list (string-append "INSTALL_DIR=" %output
4412 "/share/games/openttd/baseset"))
4413 #:phases
4414 (modify-phases %standard-phases
4415 (delete 'configure)
4416 (add-after 'install 'post-install
4417 ;; Rename openmsx-version to openmsx
4418 (lambda* (#:key outputs #:allow-other-keys)
4419 (let ((install-directory (string-append (assoc-ref outputs "out")
4420 "/share/games/openttd/baseset")))
4421 (rename-file (string-append install-directory "/openmsx-" ,version)
4422 (string-append install-directory "/openmsx"))
4423 #t))))))
4424 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4425 (synopsis "Music set for OpenTTD")
4426 (description "OpenMSX is a music set for OpenTTD which makes it possible
4427 to play OpenTTD without requiring the proprietary music from the original
4428 Transport Tycoon Deluxe.")
4429 (license license:gpl2)))
4430
4431 (define-public openttd
4432 (package
4433 (inherit openttd-engine)
4434 (name "openttd")
4435 (arguments
4436 `(#:configure-flags
4437 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4438 "/bin/timidity"))
4439 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4440 ((#:phases phases)
4441 `(modify-phases ,phases
4442 (add-after 'install 'install-data
4443 (lambda* (#:key inputs outputs #:allow-other-keys)
4444 (for-each
4445 (lambda (input)
4446 (copy-recursively (assoc-ref inputs input)
4447 (assoc-ref outputs "out")))
4448 (list "opengfx" "openmsx" "opensfx"))
4449 #t)))))))
4450 (inputs
4451 `(("timidity++" ,timidity++)
4452 ,@(package-inputs openttd-engine)))
4453 (native-inputs
4454 `(("opengfx" ,openttd-opengfx)
4455 ("openmsx" ,openttd-openmsx)
4456 ("opensfx" ,openttd-opensfx)
4457 ,@(package-native-inputs openttd-engine)))))
4458
4459 (define openrct2-title-sequences
4460 (package
4461 (name "openrct2-title-sequences")
4462 (version "0.1.2")
4463 (source
4464 (origin
4465 (method url-fetch)
4466 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4467 version "/title-sequence-v" version ".zip"))
4468 (file-name (string-append name "-" version ".zip"))
4469 (sha256
4470 (base32
4471 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4472 (build-system trivial-build-system)
4473 (native-inputs
4474 `(("bash" ,bash)
4475 ("coreutils" ,coreutils)
4476 ("unzip" ,unzip)))
4477 (arguments
4478 `(#:modules ((guix build utils))
4479 #:builder
4480 (begin
4481 (use-modules (guix build utils))
4482 (let* ((out (assoc-ref %outputs "out"))
4483 (openrct2-title-sequences (string-append out
4484 "/share/openrct2/title-sequences"))
4485 (source (assoc-ref %build-inputs "source"))
4486 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4487 (copy-file source (string-append ,name "-" ,version ".zip"))
4488 (invoke unzip (string-append ,name "-" ,version ".zip"))
4489 (delete-file (string-append ,name "-" ,version ".zip"))
4490 (mkdir-p openrct2-title-sequences)
4491 (copy-recursively "."
4492 openrct2-title-sequences)
4493 #t))))
4494 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4495 (synopsis "Title sequences for OpenRCT2")
4496 (description
4497 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4498 (license license:gpl3+)))
4499
4500 (define openrct2-objects
4501 (package
4502 (name "openrct2-objects")
4503 (version "1.0.20")
4504 (source
4505 (origin
4506 (method url-fetch)
4507 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4508 version "/objects.zip"))
4509 (file-name (string-append name "-" version ".zip"))
4510 (sha256
4511 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4512 (build-system trivial-build-system)
4513 (native-inputs
4514 `(("bash" ,bash)
4515 ("coreutils" ,coreutils)
4516 ("unzip" ,unzip)))
4517 (arguments
4518 `(#:modules ((guix build utils))
4519 #:builder
4520 (begin
4521 (use-modules (guix build utils))
4522 (let* ((out (assoc-ref %outputs "out"))
4523 (openrct2-objects (string-append out
4524 "/share/openrct2/objects"))
4525 (source (assoc-ref %build-inputs "source"))
4526 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4527 (copy-file source (string-append ,name "-" ,version ".zip"))
4528 (invoke unzip (string-append ,name "-" ,version ".zip"))
4529 (delete-file (string-append ,name "-" ,version ".zip"))
4530 (mkdir-p openrct2-objects)
4531 (copy-recursively "."
4532 openrct2-objects)
4533 #t))))
4534 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4535 (synopsis "Objects for OpenRCT2")
4536 (description
4537 "openrct2-objects is a set of objects for OpenRCT2.")
4538 (license license:gpl3+)))
4539
4540 (define-public openrct2
4541 (package
4542 (name "openrct2")
4543 (version "0.3.2")
4544 (source
4545 (origin
4546 (method git-fetch)
4547 (uri (git-reference
4548 (url "https://github.com/OpenRCT2/OpenRCT2")
4549 (commit (string-append "v" version))))
4550 (file-name (git-file-name name version))
4551 (sha256
4552 (base32 "1fd32wniiy6qz2046ppqfj2sb3rf2qf086rf9v1bdhyj254d0b1z"))))
4553 (build-system cmake-build-system)
4554 (arguments
4555 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4556 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4557 #:tests? #f ; tests require network access
4558 #:phases
4559 (modify-phases %standard-phases
4560 (add-after 'unpack 'fix-usr-share-paths&add-data
4561 (lambda* (#:key inputs outputs #:allow-other-keys)
4562 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4563 (objects (assoc-ref inputs "openrct2-objects")))
4564 ;; Fix some references to /usr/share.
4565 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4566 (("/usr/share")
4567 (string-append (assoc-ref %outputs "out") "/share")))
4568 (copy-recursively
4569 (string-append titles "/share/openrct2/title-sequences")
4570 "data/title")
4571 (copy-recursively
4572 (string-append objects "/share/openrct2/objects")
4573 "data/object"))))
4574 (add-before 'configure 'get-rid-of-errors
4575 (lambda _
4576 ;; Don't treat warnings as errors.
4577 (substitute* "CMakeLists.txt"
4578 (("-Werror") ""))
4579 #t)))))
4580 (inputs `(("curl" ,curl)
4581 ("duktape" ,duktape)
4582 ("fontconfig" ,fontconfig)
4583 ("freetype" ,freetype)
4584 ("icu4c" ,icu4c)
4585 ("jansson" ,jansson)
4586 ("libpng" ,libpng)
4587 ("libzip" ,libzip)
4588 ("mesa" ,mesa)
4589 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4590 ("openrct2-objects" ,openrct2-objects)
4591 ("openrct2-title-sequences" ,openrct2-title-sequences)
4592 ("openssl" ,openssl)
4593 ("sdl2" ,sdl2)
4594 ("speexdsp" ,speexdsp)
4595 ("zlib" ,zlib)))
4596 (native-inputs
4597 `(("pkg-config" ,pkg-config)))
4598 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4599 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4600 (description "OpenRCT2 is a free software re-implementation of
4601 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4602 maintaining an amusement park containing attractions, shops and facilities.
4603
4604 Note that this package does @emph{not} provide the game assets (sounds,
4605 images, etc.)")
4606 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4607 ;; regarding assets.
4608 (license license:gpl3+)))
4609
4610 (define-public pinball
4611 (package
4612 (name "pinball")
4613 (version "0.3.1")
4614 (source
4615 (origin (method url-fetch)
4616 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4617 "pinball-" version "/"
4618 "pinball-" version ".tar.gz"))
4619 (sha256
4620 (base32
4621 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4622 (patches (search-patches "pinball-const-fix.patch"
4623 "pinball-cstddef.patch"
4624 "pinball-missing-separators.patch"
4625 "pinball-src-deps.patch"
4626 "pinball-system-ltdl.patch"))))
4627 (build-system gnu-build-system)
4628 (inputs
4629 `(("glu" ,glu)
4630 ("mesa" ,mesa)
4631 ("sdl" ,sdl)
4632 ("sdl-image" ,sdl-image)
4633 ("sdl-mixer" ,sdl-mixer)))
4634 (arguments
4635 '(#:configure-flags
4636 (list (string-append "CPPFLAGS=-I"
4637 (assoc-ref %build-inputs "sdl-image")
4638 "/include/SDL -I"
4639 (assoc-ref %build-inputs "sdl-mixer")
4640 "/include/SDL"))))
4641 (home-page "http://pinball.sourceforge.net")
4642 (synopsis "Pinball simulator")
4643 (description "The Emilia Pinball Project is a pinball simulator. There
4644 are only two levels to play with, but they are very addictive.")
4645 (license license:gpl2)))
4646
4647 (define-public pioneers
4648 (package
4649 (name "pioneers")
4650 (version "15.6")
4651 (source (origin
4652 (method url-fetch)
4653 (uri (string-append "https://downloads.sourceforge.net/pio/"
4654 "pioneers-" version ".tar.gz"))
4655 (sha256
4656 (base32
4657 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4658 (build-system gnu-build-system)
4659 (inputs `(("avahi" ,avahi)
4660 ("gtk+" ,gtk+)
4661 ("librsvg" ,librsvg)))
4662 (native-inputs `(("intltool" ,intltool)
4663 ("itstool" ,itstool)
4664 ("libxml2" ,libxml2)
4665 ("pkg-config" ,pkg-config)))
4666 (synopsis "Board game inspired by The Settlers of Catan")
4667 (description "Pioneers is an emulation of the board game The Settlers of
4668 Catan. It can be played on a local network, on the internet, and with AI
4669 players.")
4670 (home-page "http://pio.sourceforge.net/")
4671 (license license:gpl2+)))
4672
4673 (define-public einstein
4674 (package
4675 (name "einstein")
4676 (version "2.0")
4677 (source (origin
4678 (method url-fetch)
4679 (uri (string-append "mirror://debian/pool/main/e/"
4680 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4681 (sha256
4682 (base32
4683 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4684 (patches (search-patches "einstein-build.patch"))))
4685 (build-system gnu-build-system)
4686 (inputs
4687 `(("freetype" ,freetype)
4688 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4689 ("zlib" ,zlib)))
4690 (native-inputs
4691 `(("font-dejavu" ,font-dejavu)))
4692 (arguments
4693 `(#:tests? #f ; no check target
4694 #:phases
4695 (modify-phases %standard-phases
4696 (replace 'configure
4697 (lambda* (#:key outputs inputs #:allow-other-keys)
4698 (let ((out (assoc-ref outputs "out"))
4699 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4700 "/share/fonts/truetype/DejaVuSans.ttf")))
4701 (substitute* "Makefile"
4702 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4703 ;; The patch above registers a free font for use by the binary,
4704 ;; but the font is copied during the compile phase into a
4705 ;; resources file, so we need to make the ttf file available.
4706 (symlink dejavu "res/DejaVuSans.ttf")
4707 #t))))))
4708 (synopsis "Logic puzzle game")
4709 (description "The goal of this logic game is to open all cards in a 6x6
4710 grid, using a number of hints as to their relative position. The game idea
4711 is attributed to Albert Einstein.")
4712 ;; The original home page has disappeared.
4713 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4714 "http://games.flowix.com/en/index.html"))
4715 ;; License according to
4716 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4717 ;; The source code is a DFSG-sanitized tarball and does not contain any
4718 ;; license information.
4719 (license license:gpl3+)))
4720
4721 (define-public powwow
4722 (package
4723 (name "powwow")
4724 (version "1.2.22")
4725 (source (origin
4726 (method url-fetch)
4727 (uri (string-append
4728 "https://www.hoopajoo.net/static/projects/powwow-"
4729 version ".tar.gz"))
4730 (sha256
4731 (base32
4732 "12i11b8zxg8vdb9d6ims8qy2lmwwr42rcqbwq3vsa1x94s51bcbp"))))
4733 (inputs
4734 `(("ncurses" ,ncurses)))
4735 (build-system gnu-build-system)
4736 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4737 (synopsis "MUD and telnet client")
4738 (description
4739 "POWWOW is a client software which can be used for telnet as well as for
4740 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4741 the chat server psyced with the specific config located at
4742 http://lavachat.symlynx.com/unix/")
4743 (license license:gpl2+)))
4744
4745 (define-public red-eclipse
4746 (let ((release "2.0.0")
4747 (revision 0))
4748 (package
4749 (name "red-eclipse")
4750 (version (if (zero? revision)
4751 release
4752 (string-append release "-"
4753 (number->string revision))))
4754 (source
4755 (origin
4756 (method git-fetch)
4757 (uri (git-reference
4758 (url "https://github.com/redeclipse/base")
4759 (commit (string-append "v" release))
4760 (recursive? #t))) ; for game data
4761 (file-name (git-file-name name version))
4762 (sha256
4763 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4764 (modules '((guix build utils)))
4765 (snippet
4766 ;; Remove proprietary libraries and other pre-compiled binaries.
4767 '(begin
4768 (delete-file-recursively "bin")
4769 #t))))
4770 (build-system gnu-build-system)
4771 (arguments
4772 `(#:tests? #f ; no check target
4773 #:make-flags (list "CC=gcc" "-Csrc"
4774 (string-append "INSTDIR="
4775 (assoc-ref %outputs "out") "/bin")
4776 (string-append "prefix="
4777 (assoc-ref %outputs "out")))
4778 #:phases
4779 (modify-phases %standard-phases
4780 (add-after 'unpack 'add-store-data-package-path-as-default
4781 (lambda* (#:key outputs #:allow-other-keys)
4782 (substitute* "src/engine/server.cpp"
4783 (("data = \"data\"")
4784 (string-append "data = \""
4785 (assoc-ref outputs "out")
4786 "/share/redeclipse/data\"")))
4787 #t))
4788 (delete 'configure) ; no configure script
4789 (add-after 'set-paths 'set-sdl-paths
4790 (lambda* (#:key inputs #:allow-other-keys)
4791 (setenv "CPATH"
4792 (string-append (assoc-ref inputs "sdl-union")
4793 "/include/SDL2:"
4794 (or (getenv "CPATH") "")))
4795 #t))
4796 (add-after 'install 'copy-data
4797 (lambda* (#:key outputs #:allow-other-keys)
4798 (let ((out (assoc-ref outputs "out")))
4799 (copy-recursively "config"
4800 (string-append out "/config"))
4801 (copy-file "doc/examples/servinit.cfg"
4802 (string-append out "/config/servinit.cfg"))
4803 (copy-recursively "data"
4804 (string-append out "/share/redeclipse/data"))
4805 (mkdir-p (string-append out "/lib/redeclipse"))
4806 (symlink (string-append out "/share/redeclipse/data")
4807 (string-append out "/lib/redeclipse/data")))
4808 #t))
4809 (add-after 'copy-data 'wrap-program
4810 (lambda* (#:key inputs outputs #:allow-other-keys)
4811 (let* ((out (assoc-ref outputs "out"))
4812 (bin (string-append out "/bin")))
4813 (with-directory-excursion bin
4814 (rename-file "redeclipse_linux"
4815 ".redeclipse_linux-real")
4816 (rename-file "redeclipse_server_linux"
4817 ".redeclipse_server_linux-real")
4818 (call-with-output-file "redeclipse_linux"
4819 (lambda (port)
4820 (format port "#!~a/bin/sh
4821 # Run the thing from its home, otherwise it just bails out.
4822 cd \"~a\"
4823 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4824 (assoc-ref inputs "bash") ;implicit input
4825 (string-append out)
4826 (string-append bin))))
4827 (call-with-output-file "redeclipse_server_linux"
4828 (lambda (port)
4829 (format port "#!~a/bin/sh
4830 # Run the thing from its home, otherwise it just bails out.
4831 cd \"~a\"
4832 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4833 (assoc-ref inputs "bash") ;implicit input
4834 (string-append out)
4835 (string-append bin))))
4836 (chmod "redeclipse_linux" #o555)
4837 (chmod "redeclipse_server_linux" #o555)))
4838 #t)))))
4839 (native-inputs
4840 `(("pkg-config" ,pkg-config)))
4841 (inputs
4842 `(("curl" ,curl)
4843 ("freetype" ,freetype)
4844 ("glu" ,glu)
4845 ("sdl-union" ,(sdl-union (list sdl2
4846 sdl2-image
4847 sdl2-mixer)))))
4848 (home-page "https://redeclipse.net/")
4849 (synopsis "Arena shooter derived from the Cube 2 engine")
4850 (description
4851 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4852 Offering an innovative parkour system and distinct but all potent weapons,
4853 Red Eclipse provides fast paced and accessible gameplay.")
4854 ;; The engine is under Zlib; data files are covered by the other
4855 ;; licenses. More details at file:///doc/all-licenses.txt.
4856 (license (list license:expat
4857 license:zlib
4858 license:cc-by-sa4.0
4859 license:cc-by-sa3.0
4860 license:cc-by3.0
4861 license:cc0
4862 license:public-domain
4863 license:silofl1.1)))))
4864
4865 (define-public grue-hunter
4866 (package
4867 (name "grue-hunter")
4868 (version "1.0")
4869 (source (origin
4870 (method url-fetch)
4871 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4872 (sha256
4873 (base32
4874 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4875 (build-system trivial-build-system) ; no Makefile.PL
4876 (arguments `(#:modules ((guix build utils))
4877 #:builder
4878 (begin
4879 (use-modules (guix build utils))
4880 (use-modules (srfi srfi-1))
4881
4882 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4883 (perl (string-append (assoc-ref %build-inputs
4884 "perl")
4885 "/bin"))
4886 (gzip (string-append (assoc-ref %build-inputs
4887 "gzip")
4888 "/bin/gzip"))
4889 (tar (string-append (assoc-ref %build-inputs
4890 "tar")
4891 "/bin/tar"))
4892 (out (assoc-ref %outputs "out"))
4893 (bin (string-append out "/bin"))
4894 (doc (string-append out
4895 "/share/doc/grue-hunter")))
4896 (copy-file tarball "grue-hunter.tar.gz")
4897 (invoke gzip "-d" "grue-hunter.tar.gz")
4898 (invoke tar "xvf" "grue-hunter.tar")
4899
4900 (mkdir-p bin)
4901 (copy-file "grue-hunter/gh.pl"
4902 (string-append bin "/grue-hunter"))
4903 (patch-shebang (string-append bin "/grue-hunter")
4904 (list perl))
4905
4906 (install-file "grue-hunter/AGPLv3.txt" doc)
4907
4908 #t))))
4909 (inputs `(("perl" ,perl)
4910 ("tar" ,tar)
4911 ("gzip" ,gzip)
4912 ("tarball" ,source)))
4913 (home-page "https://jxself.org/grue-hunter.shtml")
4914 (synopsis "Text adventure game")
4915 (description
4916 "Grue Hunter is a text adventure game written in Perl. You must make
4917 your way through an underground cave system in search of the Grue. Can you
4918 capture it and get out alive?")
4919 (license license:agpl3+)))
4920
4921 (define-public lierolibre
4922 (package
4923 (name "lierolibre")
4924 (version "0.5")
4925 (source (origin
4926 (method url-fetch)
4927 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4928 version "/+download/lierolibre-"
4929 version ".tar.xz"))
4930 (sha256
4931 (base32
4932 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4933 (patches
4934 (search-patches "lierolibre-check-unaligned-access.patch"
4935 "lierolibre-try-building-other-arch.patch"
4936 "lierolibre-remove-arch-warning.patch"
4937 "lierolibre-newer-libconfig.patch"
4938 "lierolibre-is-free-software.patch"))
4939 (modules '((guix build utils)))
4940 (snippet
4941 '(begin
4942 ;; Delete pre-compiled files.
4943 (delete-file "data/LIERO.CHR")
4944 (delete-file "data/LIERO.SND")
4945 #t))))
4946 (build-system gnu-build-system)
4947 (native-inputs
4948 `(("imagemagick" ,imagemagick)
4949 ("pkg-config" ,pkg-config)
4950 ("util-linux" ,util-linux)
4951 ("sox" ,sox)))
4952 (inputs
4953 `(("boost" ,boost)
4954 ("libconfig" ,libconfig)
4955 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4956 ("zlib" ,zlib)))
4957 (home-page "https://gitlab.com/lierolibre/lierolibre")
4958 (synopsis "Old-school earthworm action game")
4959 (description
4960 "lierolibre is an earthworm action game where you fight another player
4961 (or the computer) underground using a wide array of weapons.
4962
4963 Features:
4964 @itemize
4965 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4966 and Game of Tag, plus AI-players without true intelligence!
4967 @item Dat nostalgia.
4968 @item Extensions via a hidden F1 menu:
4969 @itemize
4970 @item Replays
4971 @item Game controller support
4972 @item Powerlevel palettes
4973 @end itemize
4974 @item Ability to write game variables to plain text files.
4975 @item Ability to load game variables from both EXE and plain text files.
4976 @item Scripts to extract and repack graphics, sounds and levels.
4977 @end itemize
4978
4979 To switch between different window sizes, use F6, F7 and F8, to switch to
4980 fullscreen, use F5 or Alt+Enter.")
4981 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4982 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4983
4984 (define-public tennix
4985 (package
4986 (name "tennix")
4987 (version "1.3.1")
4988 (source
4989 (origin
4990 (method git-fetch)
4991 (uri (git-reference
4992 (url "https://repo.or.cz/tennix.git")
4993 (commit (string-append "tennix-" version))))
4994 (file-name (git-file-name name version))
4995 (sha256
4996 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4997 ;; Remove non-free images.
4998 (modules '((guix build utils)))
4999 (snippet
5000 '(begin
5001 (for-each delete-file
5002 '("data/loc_training_camp.png"
5003 "data/loc_austrian_open.png"
5004 "data/loc_olympic_green_tennis.png"))
5005 #t))))
5006 (build-system gnu-build-system)
5007 (arguments
5008 `(#:tests? #f ;no test
5009 #:phases
5010 (modify-phases %standard-phases
5011 (add-after 'unpack 'fix-include
5012 (lambda _
5013 (substitute* '("src/graphics.h" "src/sound.h")
5014 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
5015 (string-append "#include \"SDL/" header "\"")))
5016 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
5017 (("#include <SDL.h>") "#include <SDL/SDL.h>")
5018 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
5019 #t))
5020 (add-after 'unpack 'locate-install
5021 ;; Build process cannot expand "$(INSTALL)" in Makefile.
5022 (lambda _
5023 (substitute* "makefile"
5024 (("^CONFIGURE_OUTPUT :=.*" all)
5025 (string-append "INSTALL := install -c\n" all)))
5026 #t))
5027 (replace 'configure
5028 ;; The "configure" script is picky about the arguments it
5029 ;; gets. Call it ourselves.
5030 (lambda _
5031 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
5032 (native-inputs
5033 `(("which" ,which)))
5034 (inputs
5035 `(("python" ,python-wrapper)
5036 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
5037 (home-page "http://icculus.org/tennix/")
5038 (synopsis "Play tennis against the computer or a friend")
5039 (description "Tennix is a 2D tennis game. You can play against the
5040 computer or against another player using the keyboard. The game runs
5041 in-window at 640x480 resolution or fullscreen.")
5042 ;; Project is licensed under GPL2+ terms. It includes images
5043 ;; released under Public Domain terms, and SDL_rotozoom, released
5044 ;; under LGPL2.1 terms.
5045 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
5046
5047 (define-public warzone2100
5048 (package
5049 (name "warzone2100")
5050 (version "3.4.1")
5051 (source
5052 (origin
5053 (method url-fetch)
5054 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
5055 version
5056 "/warzone2100_src.tar.xz"))
5057 (sha256
5058 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
5059 (modules '((guix build utils)))
5060 (snippet
5061 '(begin
5062 (with-directory-excursion "3rdparty"
5063 (for-each
5064 delete-file-recursively
5065 '("discord-rpc"
5066 "miniupnp"
5067 "utfcpp")))
5068 #t))))
5069 (build-system cmake-build-system)
5070 (arguments
5071 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
5072 "-DENABLE_DISCORD=off")
5073 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
5074 #:phases
5075 (modify-phases %standard-phases
5076 (add-after 'unpack 'fix-utfcpp-include
5077 (lambda _
5078 (substitute* "lib/framework/wzstring.cpp"
5079 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
5080 #t))
5081 (add-after 'unpack 'link-tests-with-qt
5082 (lambda _
5083 (substitute* "tests/Makefile.am"
5084 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
5085 (string-append prefix "$(QT5_LIBS) ")))
5086 #t))
5087 (add-after 'unpack 'fix-ivis-linktest
5088 (lambda _
5089 (substitute* "tests/ivis_linktest.cpp"
5090 (("iV_DrawTextRotated.*;")
5091 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
5092 "100, 100, 0.0f, font_regular);")))
5093 #t)))))
5094 (native-inputs `(("asciidoc" ,asciidoc)
5095 ("asciidoctor" ,ruby-asciidoctor)
5096 ("gettext" ,gettext-minimal)
5097 ("pkg-config" ,pkg-config)
5098 ("unzip" ,unzip)
5099 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
5100 ("p7zip" ,p7zip)))
5101 (inputs `(("curl" ,curl)
5102 ("fontconfig" ,fontconfig)
5103 ("freetype" ,freetype)
5104 ("glew" ,glew)
5105 ("harfbuzz" ,harfbuzz)
5106 ("libtheora" ,libtheora)
5107 ("libvorbis" ,libvorbis)
5108 ("libxrandr" ,libxrandr)
5109 ("libsodium" ,libsodium)
5110 ("miniupnpc" ,miniupnpc)
5111 ("openal" ,openal)
5112 ("physfs" ,physfs)
5113 ("qtbase" ,qtbase)
5114 ("qtscript" ,qtscript)
5115 ("openssl" ,openssl)
5116 ("sdl2" ,sdl2)
5117 ("utfcpp" ,utfcpp)))
5118 (home-page "https://wz2100.net")
5119 (synopsis "3D Real-time strategy and real-time tactics game")
5120 (description
5121 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
5122 modes. An extensive tech tree with over 400 different technologies, combined
5123 with the unit design system, allows for a wide variety of possible units and
5124 tactics.")
5125 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
5126 (license (list license:bsd-3
5127 license:cc0
5128 license:cc-by-sa3.0
5129 license:expat
5130 license:gpl2+
5131 license:lgpl2.1+))))
5132
5133 (define-public widelands
5134 (package
5135 (name "widelands")
5136 (version "21")
5137 (source
5138 (origin
5139 (method url-fetch)
5140 (uri (string-append "https://launchpad.net/widelands/"
5141 "build" version "/build" version "/+download/"
5142 "widelands-build" version "-source.tar.gz"))
5143 (sha256
5144 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
5145 (modules '((guix build utils)))
5146 (snippet
5147 '(begin
5148 (delete-file-recursively "src/third_party/minizip")
5149 #t))
5150 (patches
5151 ;; Use system Minizip. Patch is provided by Debian, and discussed
5152 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
5153 (search-patches "widelands-system-wide_minizip.patch"))))
5154 (build-system cmake-build-system)
5155 (arguments
5156 `(#:configure-flags
5157 (let* ((out (assoc-ref %outputs "out"))
5158 (share (string-append out "/share")))
5159 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
5160 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
5161 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
5162 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
5163 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
5164 ;; type. When used, no game data is installed!
5165 "-DCMAKE_BUILD_TYPE=Release"))
5166 #:phases
5167 (modify-phases %standard-phases
5168 (add-after 'unpack 'unbundle-fonts
5169 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
5170 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
5171 (lambda* (#:key inputs #:allow-other-keys)
5172 (with-directory-excursion "data/i18n/fonts"
5173 (for-each (lambda (font)
5174 (delete-file-recursively font)
5175 (symlink (string-append (assoc-ref inputs font)
5176 "/share/fonts/truetype")
5177 font))
5178 '("DejaVu" "MicroHei")))
5179 #t)))))
5180 (native-inputs
5181 `(("gettext" ,gettext-minimal)
5182 ("python" ,python-wrapper)))
5183 (inputs
5184 `(("boost" ,boost)
5185 ("glew" ,glew)
5186 ("icu4c" ,icu4c)
5187 ("libpng" ,libpng)
5188 ("minizip" ,minizip)
5189 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5190 ("zlib" ,zlib)
5191 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
5192 ("DejaVu" ,font-dejavu)
5193 ("MicroHei" ,font-wqy-microhei)))
5194 (home-page "https://www.widelands.org/")
5195 (synopsis "Fantasy real-time strategy game")
5196 (description
5197 "In Widelands, you are the regent of a small clan. You start out with
5198 nothing but your headquarters, where all your resources are stored.
5199
5200 In the course of the game, you will build an ever growing settlement. Every
5201 member of your clan will do his or her part to produce more resources---wood,
5202 food, iron, gold and more---to further this growth. The economic network is
5203 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
5204 Frisians).
5205
5206 As you are not alone in the world, you will meet other clans sooner or later.
5207 Some of them may be friendly and you may eventually trade with them. However,
5208 if you want to rule the world, you will have to train soldiers and fight.
5209
5210 Widelands offers single-player mode with different campaigns; the campaigns
5211 all tell stories of tribes and their struggle in the Widelands universe!
5212 However, settling really starts when you unite with friends over the Internet
5213 or LAN to build up new empires together---or to crush each other in the dusts
5214 of war. Widelands also offers an Artificial Intelligence to challenge you.")
5215 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
5216 ;; different licenses.
5217 (license (list license:gpl2+
5218 license:expat ;src/third_party/eris
5219 license:silofl1.1 ;Widelands.ttf
5220 license:cc-by-sa3.0)))) ;some music files
5221
5222 (define-public starfighter
5223 (package
5224 (name "starfighter")
5225 (version "2.4")
5226 (source (origin
5227 (method url-fetch)
5228 (uri (string-append
5229 "https://github.com/pr-starfighter/starfighter/releases"
5230 "/download/v" version "/starfighter-"
5231 version "-src.tar.gz"))
5232 (sha256
5233 (base32
5234 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5235 (build-system gnu-build-system)
5236 (native-inputs
5237 `(("pkg-config" ,pkg-config)))
5238 (inputs
5239 `(("pango" ,pango)
5240 ("sdl2" ,sdl2)
5241 ("sdl2-image" ,sdl2-image)
5242 ("sdl2-mixer" ,sdl2-mixer)
5243 ("sdl2-ttf" ,sdl2-ttf)))
5244 (home-page "https://pr-starfighter.github.io/")
5245 (synopsis "2D scrolling shooter game")
5246 (description
5247 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5248 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5249 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5250 way, you will encounter new foes, make new allies, and assist local rebels
5251 in strikes against the evil corporation.")
5252 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5253 (license (list license:gpl3+
5254 license:cc-by3.0
5255 license:cc-by-sa3.0
5256 license:cc0
5257 license:public-domain))))
5258
5259 (define-public chromium-bsu
5260 (package
5261 (name "chromium-bsu")
5262 (version "0.9.16.1")
5263 (source (origin
5264 (method url-fetch)
5265 (uri (string-append "mirror://sourceforge/chromium-bsu"
5266 "/Chromium B.S.U. source code/"
5267 "chromium-bsu-" version ".tar.gz"))
5268 (sha256
5269 (base32
5270 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5271 (build-system gnu-build-system)
5272 (native-inputs `(("pkg-config" ,pkg-config)))
5273 (inputs `(("gettext" ,gettext-minimal)
5274 ("glu" ,glu)
5275 ("quesoglc" ,quesoglc)
5276 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5277 (home-page "http://chromium-bsu.sourceforge.net/")
5278 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5279 (description
5280 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5281 are responsible for delivering supplies to the troops on the front line. Your
5282 ship has a small fleet of robotic fighters which you control from the relative
5283 safety of the Chromium vessel.")
5284 ;; Clarified Artistic License for everything but sound, which is covered
5285 ;; by the Expat License.
5286 (license (list license:clarified-artistic license:expat))))
5287
5288 (define-public tuxpaint
5289 (package
5290 (name "tuxpaint")
5291 (version "0.9.23") ;keep VER_DATE below in sync
5292 (source
5293 (origin
5294 (method url-fetch)
5295 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5296 version "/tuxpaint-" version ".tar.gz"))
5297 (sha256
5298 (base32
5299 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5300 (modules '((guix build utils)))
5301 (snippet
5302 '(begin
5303 ;; Remove win32 directory which contains binary dll's and the
5304 ;; deprecated visualc directory.
5305 (for-each delete-file-recursively '("win32" "visualc"))
5306 (substitute* "Makefile"
5307 ;; Do not rely on $(GPERF) being an absolute file name
5308 (("\\[ -x \\$\\(GPERF\\) \\]")
5309 "$(GPERF) --version >/dev/null 2>&1"))
5310 #t))
5311 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5312 (build-system gnu-build-system)
5313 (native-inputs
5314 `(("gperf" ,gperf)
5315 ("pkg-config" ,pkg-config)))
5316 (inputs
5317 `(("cairo" ,cairo)
5318 ("fribidi" ,fribidi)
5319 ("gettext" ,gettext-minimal)
5320 ("libpng" ,libpng)
5321 ("librsvg" ,librsvg)
5322 ("libpaper" ,libpaper)
5323 ("netpbm" ,netpbm)
5324 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5325 ;; TODO: Use system fonts rather than those in data/fonts
5326 (arguments
5327 `(#:make-flags `("VER_DATE=2018-09-02"
5328 "GPERF=gperf" "CC=gcc"
5329 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5330 ,(string-append "PREFIX=" %output)
5331 "KDE_PREFIX=$(PREFIX)/share/applications"
5332 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5333 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5334 #:parallel-build? #f ;fails on some systems
5335 #:tests? #f ;No tests
5336 #:phases (modify-phases %standard-phases
5337 (delete 'configure) ;no configure phase
5338 (add-before 'install 'no-sys-cache
5339 (lambda _ ;do not rebuild system conf cache
5340 (substitute* "Makefile"
5341 (("kbuildsycoca4") ""))
5342 #t))
5343 (add-after 'install 'fix-import
5344 (lambda* (#:key inputs outputs #:allow-other-keys)
5345 (let* ((out (assoc-ref outputs "out"))
5346 (net (assoc-ref inputs "netpbm"))
5347 (tpi (string-append out "/bin/tuxpaint-import")))
5348 (substitute* tpi
5349 ;; Point to installation prefix so that the default
5350 ;; configure file is found.
5351 (("/usr/local") out))
5352 ;; tuxpaint-import uses a bunch of programs from
5353 ;; netpbm, so make sure it knows where those are
5354 (wrap-program tpi
5355 `("PATH" ":" prefix
5356 (,(string-append net "/bin"))))))))))
5357 (native-search-paths
5358 (list (search-path-specification
5359 (variable "TUXPAINT_STAMPS_PATH")
5360 (files '("share/tuxpaint/stamps")))))
5361 (home-page "http://www.tuxpaint.org")
5362 (synopsis "Drawing software for children")
5363 (description
5364 "Tux Paint is a free drawing program designed for young children (kids
5365 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5366 and an encouraging cartoon mascot who helps guide children as they use the
5367 program. It provides a blank canvas and a variety of drawing tools to help
5368 your child be creative.")
5369 (license license:gpl2+)))
5370
5371 (define-public tuxpaint-stamps
5372 (package
5373 (name "tuxpaint-stamps")
5374 (version "2018.09.01")
5375 (source
5376 (origin
5377 (method url-fetch)
5378 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5379 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5380 "/tuxpaint-stamps-" version ".tar.gz"))
5381 (sha256
5382 (base32
5383 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5384 (build-system trivial-build-system)
5385 (native-inputs
5386 `(("tar" ,tar)
5387 ("gzip" ,gzip)))
5388 (arguments
5389 `(#:modules ((guix build utils))
5390 #:builder (begin
5391 (use-modules (guix build utils))
5392 (setenv "PATH"
5393 (string-append
5394 (assoc-ref %build-inputs "tar") "/bin" ":"
5395 (assoc-ref %build-inputs "gzip") "/bin"))
5396 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5397 (chdir (string-append ,name "-" ,version))
5398 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5399 (mkdir-p dir)
5400 (copy-recursively "stamps" dir))
5401 #t)))
5402 (home-page (package-home-page tuxpaint))
5403 (synopsis "Stamp images for Tux Paint")
5404 (description
5405 "This package contains a set of \"Rubber Stamp\" images which can be used
5406 with the \"Stamp\" tool within Tux Paint.")
5407 (license license:gpl2+)))
5408
5409 (define-public tuxpaint-config
5410 (package
5411 (name "tuxpaint-config")
5412 (version "0.0.14") ;keep VER_DATE below in sync
5413 (source
5414 (origin
5415 (method url-fetch)
5416 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5417 version "/tuxpaint-config-" version ".tar.gz"))
5418 (sha256
5419 (base32
5420 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5421 (build-system gnu-build-system)
5422 (native-inputs
5423 `(("gettext" ,gettext-minimal)))
5424 (inputs
5425 `(("fltk" ,fltk)
5426 ("libpaper" ,libpaper)
5427 ;; TODO: Should the following be propagated by fltk?
5428 ("libx11" ,libx11)
5429 ("libxft" ,libxft)
5430 ("mesa" ,mesa)))
5431 (arguments
5432 `(#:make-flags `("VER_DATE=2018-09-01"
5433 "CONFDIR=/etc/tuxpaint" ;don't write to store
5434 ,(string-append "PREFIX=" %output)
5435 "GNOME_PREFIX=$(PREFIX)")
5436 #:parallel-build? #f ;race conditions
5437 #:tests? #f ;no tests
5438 #:phases (modify-phases %standard-phases
5439 (delete 'configure) ;no configure phase
5440 (add-before 'install 'gzip-no-name
5441 (lambda* _
5442 (substitute* "Makefile"
5443 ;; tuxpaint-config compresses its own documentation;
5444 ;; make sure it uses flags for reproducibility.
5445 (("gzip") "gzip --no-name"))))
5446 (add-before 'install 'make-install-dirs
5447 (lambda* (#:key outputs #:allow-other-keys)
5448 (let ((out (assoc-ref outputs "out")))
5449 (mkdir-p (string-append out "/bin"))
5450 #t))))))
5451 (home-page (package-home-page tuxpaint))
5452 (synopsis "Configure Tux Paint")
5453 (description
5454 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5455 (license license:gpl2))) ;no "or later" present
5456
5457 (define-public supertux
5458 (package
5459 (name "supertux")
5460 (version "0.6.2")
5461 (source (origin
5462 (method url-fetch)
5463 (uri (string-append "https://github.com/SuperTux/supertux/"
5464 "releases/download/v" version "/SuperTux-v"
5465 version "-Source.tar.gz"))
5466 (file-name (string-append name "-" version ".tar.gz"))
5467 (sha256
5468 (base32
5469 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5470 (patches
5471 (search-patches "supertux-unbundle-squirrel.patch"))))
5472 (arguments
5473 '(#:tests? #f
5474 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5475 "-DUSE_SYSTEM_PHYSFS=ON")
5476 #:phases
5477 (modify-phases %standard-phases
5478 (add-after 'unpack 'patch-squirrel-path
5479 (lambda* (#:key inputs #:allow-other-keys)
5480 (let ((squirrel (assoc-ref inputs "squirrel")))
5481 (substitute* "CMakeLists.txt"
5482 (("set\\(SQUIRREL_PREFIX.*")
5483 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5484 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5485 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5486 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5487 #t)))))
5488 (build-system cmake-build-system)
5489 (inputs `(("sdl2" ,sdl2)
5490 ("sdl2-image" ,sdl2-image)
5491 ("sdl2-mixer" ,sdl2-mixer)
5492 ("openal" ,openal)
5493 ("mesa" ,mesa)
5494 ("glew" ,glew)
5495 ("libvorbis" ,libvorbis)
5496 ("libogg" ,libogg)
5497 ("physfs" ,physfs)
5498 ("curl" ,curl)
5499 ("boost" ,boost)
5500 ("freetype" ,freetype)
5501 ("squirrel" ,squirrel)))
5502 (native-inputs
5503 `(("pkg-config" ,pkg-config)))
5504 (synopsis "2D platformer game")
5505 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5506 a style similar to the original Super Mario games.")
5507 (home-page "https://supertux.org/")
5508 (license license:gpl3+)))
5509
5510 (define-public tintin++
5511 (package
5512 (name "tintin++")
5513 (version "2.02.05")
5514 (source
5515 (origin
5516 (method url-fetch)
5517 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5518 (string-drop-right version 1)
5519 "/tintin-" version ".tar.gz"))
5520 (sha256
5521 (base32 "18fm9ga08mxqmblahmnlzwnl387i8mbkj4n0gffxc91d299019v3"))))
5522 (inputs
5523 `(("gnutls" ,gnutls)
5524 ("pcre" ,pcre)
5525 ("readline" ,readline)
5526 ("zlib" ,zlib)))
5527 (arguments
5528 '(#:tests? #f ; no test suite
5529 #:phases
5530 (modify-phases %standard-phases
5531 ;; The source is in tt/src.
5532 (add-before 'configure 'chdir
5533 (lambda _
5534 (chdir "src")
5535 #t)))))
5536 (build-system gnu-build-system)
5537 (home-page "https://tintin.mudhalla.net/")
5538 (synopsis "MUD client")
5539 (description
5540 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5541 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5542 options used by MUDs, as well as those required to login via telnet on
5543 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5544 (license license:gpl3+)))
5545
5546 (define-public laby
5547 (package
5548 (name "laby")
5549 (version "0.7.0")
5550 (source
5551 (origin (method git-fetch)
5552 (uri (git-reference
5553 (url "https://github.com/sgimenez/laby")
5554 (commit (string-append name "-" version))))
5555 (file-name (git-file-name name version))
5556 (sha256
5557 (base32
5558 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5559 (patches (search-patches "laby-make-install.patch"))))
5560 (build-system gnu-build-system)
5561 (inputs
5562 `(("lablgtk" ,lablgtk)
5563 ("ocaml" ,ocaml)
5564 ("ocaml-findlib" ,ocaml-findlib)
5565 ("ocamlbuild" ,ocamlbuild)))
5566 (arguments
5567 '(#:phases
5568 (modify-phases %standard-phases
5569 (delete 'configure)
5570 (add-before 'build 'allow-unsafe-strings
5571 ;; Fix a build failure with ocaml >=4.06.0.
5572 ;; See <https://github.com/sgimenez/laby/issues/53>.
5573 (lambda _
5574 (setenv "OCAMLPARAM" "safe-string=0,_")
5575 #t))
5576 (add-before 'build 'set-library-path
5577 (lambda* (#:key inputs #:allow-other-keys)
5578 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5579 (setenv "LD_LIBRARY_PATH"
5580 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5581 #:tests? #f ; no 'check' target
5582 #:make-flags
5583 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5584 (home-page "https://sgimenez.github.io/laby/")
5585 (synopsis "Programming game")
5586 (description "Learn programming, playing with ants and spider webs ;-)
5587 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5588 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5589 programmers may also add their own favorite language.")
5590 (license license:gpl3+)))
5591
5592 (define-public bambam
5593 (package
5594 (name "bambam")
5595 (version "1.0.0")
5596 (source
5597 (origin
5598 (method git-fetch)
5599 (uri (git-reference
5600 (url "https://github.com/porridge/bambam")
5601 (commit (string-append "v" version))))
5602 (file-name (git-file-name name version))
5603 (sha256
5604 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5605 (build-system python-build-system)
5606 (arguments
5607 `(#:tests? #f ; no tests
5608 #:phases
5609 (modify-phases %standard-phases
5610 (delete 'build) ; nothing to build
5611 (replace 'install
5612 (lambda* (#:key outputs #:allow-other-keys)
5613 (let* ((out (assoc-ref outputs "out"))
5614 (bin (string-append out "/bin"))
5615 (share (string-append out "/share")))
5616 (mkdir-p bin)
5617 (copy-file "bambam.py" (string-append bin "/bambam"))
5618 (install-file "bambam.6" (string-append share "/man/man6"))
5619 (copy-recursively "data" (string-append share "/bambam/data")))
5620 #t)))))
5621 (inputs
5622 `(("python-pygame" ,python-pygame)))
5623 (home-page "https://github.com/porridge/bambam")
5624 (synopsis "Keyboard mashing and doodling game for babies")
5625 (description "Bambam is a simple baby keyboard (and gamepad) masher
5626 application that locks the keyboard and mouse and instead displays bright
5627 colors, pictures, and sounds.")
5628 (license license:gpl3+)))
5629
5630 (define-public mrrescue
5631 (package
5632 (name "mrrescue")
5633 (version "1.02e")
5634 (source (origin
5635 (method url-fetch)
5636 (uri (string-append
5637 "https://github.com/SimonLarsen/mrrescue/releases/"
5638 "download/" version "/mrrescue" version ".love"))
5639 (file-name (string-append name "-" version ".love"))
5640 (sha256
5641 (base32
5642 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5643 (build-system trivial-build-system)
5644 (arguments
5645 `(#:modules ((guix build utils))
5646 #:builder
5647 (begin
5648 (use-modules (guix build utils))
5649 (let* ((out (assoc-ref %outputs "out"))
5650 (script (string-append out "/bin/" ,name))
5651 (data (string-append out "/share/" ,name))
5652 (source (assoc-ref %build-inputs "source"))
5653 (unzip (string-append (assoc-ref %build-inputs "unzip")
5654 "/bin/unzip"))
5655 (patch (string-append (assoc-ref %build-inputs "patch")
5656 "/bin/patch"))
5657 (bash (string-append (assoc-ref %build-inputs "bash")
5658 "/bin/bash"))
5659 (love (string-append (assoc-ref %build-inputs "love")
5660 "/bin/love")))
5661
5662 (mkdir-p (dirname script))
5663 (with-output-to-file script
5664 (lambda ()
5665 (format #t "#!~a~%" bash)
5666 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5667 (chmod script #o755)
5668
5669 ;; The better way to package this game would be to install *only* the
5670 ;; script above, pointing to the unextracted .love file in the store.
5671 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5672 ;; Instead of extracting the .love file, patching it, and re-zipping
5673 ;; it to the store, simply point the script to the extracted patched
5674 ;; data directory directly.
5675 (mkdir-p data)
5676 (with-directory-excursion data
5677 (invoke unzip source)
5678 (invoke patch "-p1" "-i"
5679 (assoc-ref %build-inputs "love-11.patch")))
5680 #t))))
5681 (native-inputs
5682 `(("unzip" ,unzip)
5683 ("patch" ,patch)
5684 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5685 (inputs
5686 `(("bash" ,bash)
5687 ("love" ,love)))
5688 (home-page "https://tangramgames.dk/games/mrrescue")
5689 (synopsis "Arcade-style fire fighting game")
5690 (description
5691 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5692 civilians from burning buildings. The game features fast-paced fire
5693 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5694 throwing people around in pseudo-randomly generated buildings.")
5695 (license (list license:zlib ; for source code
5696 license:cc-by-sa3.0)))) ; for graphics and music assets
5697
5698 (define-public hyperrogue
5699 (package
5700 (name "hyperrogue")
5701 (version "11.3a")
5702 ;; When updating this package, be sure to update the "hyperrogue-data"
5703 ;; origin in native-inputs.
5704 (source (origin
5705 (method url-fetch)
5706 (uri (string-append
5707 "https://www.roguetemple.com/z/hyper/hyperrogue"
5708 (string-join (string-split version #\.) "")
5709 "-src.tgz"))
5710 (sha256
5711 (base32
5712 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5713 (build-system gnu-build-system)
5714 (arguments
5715 `(#:tests? #f ; no check target
5716 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5717 "HYPERROGUE_USE_PNG=1")
5718 #:phases
5719 (modify-phases %standard-phases
5720 (add-after 'set-paths 'set-sdl-paths
5721 (lambda* (#:key inputs #:allow-other-keys)
5722 (setenv "CPATH"
5723 (string-append (or (getenv "CPATH") "") ":"
5724 (assoc-ref inputs "sdl-union")
5725 "/include/SDL"))))
5726 (replace 'configure
5727 (lambda* (#:key inputs outputs #:allow-other-keys)
5728 (let* ((out (assoc-ref outputs "out"))
5729 (share-dir (string-append out "/share/hyperrogue"))
5730 (dejavu-dir (string-append
5731 (assoc-ref inputs "font-dejavu")
5732 "/share/fonts/truetype"))
5733 (dejavu-font "DejaVuSans-Bold.ttf")
5734 (music-file "hyperrogue-music.txt"))
5735 ;; Fix font and music paths.
5736 (substitute* "basegraph.cpp"
5737 ((dejavu-font)
5738 (string-append dejavu-dir "/" dejavu-font)))
5739 (substitute* music-file
5740 (("\\*/")
5741 (string-append share-dir "/sounds/")))
5742 (substitute* "sound.cpp"
5743 (("musicfile = \"\"")
5744 (string-append "musicfile = \""
5745 share-dir "/" music-file "\"")))
5746 ;; Disable build machine CPU optimizations and warnings treated
5747 ;; as errors.
5748 (substitute* "Makefile"
5749 (("-march=native") "")
5750 (("-Werror") "")))
5751 #t))
5752 (replace 'install
5753 (lambda* (#:key inputs outputs #:allow-other-keys)
5754 (let* ((out (assoc-ref outputs "out"))
5755 (bin (string-append out "/bin"))
5756 (share-dir (string-append out "/share/hyperrogue")))
5757 (mkdir-p bin)
5758 (install-file "hyperrogue" bin)
5759 (install-file "hyperrogue-music.txt" share-dir))
5760 #t))
5761 (add-after 'install 'install-data
5762 (lambda* (#:key inputs outputs #:allow-other-keys)
5763 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5764 (out (assoc-ref outputs "out"))
5765 (sounds (string-append out "/share/hyperrogue/sounds"))
5766 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5767 ;; Extract media license information into sounds directory.
5768 (invoke unzip "-j" data
5769 (string-append
5770 "hyperrogue"
5771 (string-join (string-split ,version #\.) "")
5772 "/sounds/credits.txt") "-d" sounds)
5773 ;; Extract sounds and music into sounds directory.
5774 (invoke "unzip" "-j" data
5775 (string-append
5776 "hyperrogue"
5777 (string-join (string-split ,version #\.) "")
5778 "/*.ogg") "-d" sounds)))))))
5779 (native-inputs
5780 `(("hyperrogue-data"
5781 ,(origin
5782 (method url-fetch)
5783 (uri
5784 (string-append
5785 "https://www.roguetemple.com/z/hyper/hyperrogue"
5786 (string-join (string-split version #\.) "")
5787 "-win.zip"))
5788 (sha256
5789 (base32
5790 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5791 ("unzip" ,unzip)))
5792 (inputs
5793 `(("font-dejavu" ,font-dejavu)
5794 ("glew" ,glew)
5795 ("libpng" ,libpng)
5796 ("sdl-union" ,(sdl-union (list sdl
5797 sdl-gfx
5798 sdl-mixer
5799 sdl-ttf)))))
5800 (home-page "https://www.roguetemple.com/z/hyper/")
5801 (synopsis "Non-euclidean graphical rogue-like game")
5802 (description
5803 "HyperRogue is a game in which the player collects treasures and fights
5804 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5805 plane and not in euclidean space.
5806
5807 In HyperRogue, the player can move through different parts of the world, which
5808 are home to particular creatures and may be subject to their own rules of
5809 \"physics\".
5810
5811 While the game can use ASCII characters to display the the classical rogue
5812 symbols, it still needs graphics to render the non-euclidean world.")
5813 (license (list license:bsd-3 ; glew.c, mtrand.*
5814 license:cc-by-sa3.0 ; music
5815 license:cc-by-sa4.0 ; sounds
5816 license:cc0
5817 license:public-domain ; direntx.*, some sounds
5818 license:zlib ; savepng.*
5819 license:gpl2+)))) ; remaining files
5820
5821 (define-public kobodeluxe
5822 (package
5823 (name "kobodeluxe")
5824 (version "0.5.1")
5825 (source (origin
5826 (method url-fetch)
5827 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5828 version ".tar.bz2"))
5829 (sha256
5830 (base32
5831 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5832 (patches (search-patches
5833 "kobodeluxe-const-charp-conversion.patch"
5834 "kobodeluxe-enemies-pipe-decl.patch"
5835 "kobodeluxe-graphics-window-signed-char.patch"
5836 "kobodeluxe-manpage-minus-not-hyphen.patch"
5837 "kobodeluxe-midicon-segmentation-fault.patch"
5838 "kobodeluxe-paths.patch"))))
5839 (build-system gnu-build-system)
5840 (arguments
5841 '(#:configure-flags
5842 (list (string-append "CPPFLAGS=-I"
5843 (assoc-ref %build-inputs "sdl-union")
5844 "/include/SDL"))))
5845 (inputs
5846 `(("glu" ,glu)
5847 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5848 (synopsis "Shooter with space station destruction")
5849 (description
5850 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5851 for Un*x systems with X11.")
5852 (home-page "http://olofson.net/kobodl/")
5853 (license license:gpl2+)))
5854
5855 (define-public freeciv
5856 (package
5857 (name "freeciv")
5858 (version "2.6.4")
5859 (source
5860 (origin
5861 (method url-fetch)
5862 (uri (list (string-append
5863 "http://files.freeciv.org/stable/freeciv-"
5864 version ".tar.bz2")
5865 (string-append
5866 "mirror://sourceforge/freeciv/Freeciv%20"
5867 (version-major+minor version) "/" version
5868 "/freeciv-" version ".tar.bz2")))
5869 (sha256
5870 (base32 "1kn122f57wn5a8ryxaz73dlbd5m93mqx3bqmmz2lkgdccrvrbns0"))))
5871 (build-system gnu-build-system)
5872 (inputs
5873 `(("curl" ,curl)
5874 ("cyrus-sasl" ,cyrus-sasl)
5875 ("gtk+" ,gtk+)
5876 ("sdl-mixer" ,sdl-mixer)
5877 ("zlib" ,zlib)))
5878 (native-inputs
5879 `(("pkg-config" ,pkg-config)))
5880 (home-page "http://www.freeciv.org/")
5881 (synopsis "Turn-based empire building strategy game")
5882 (description "Freeciv is a turn-based empire building strategy game
5883 inspired by the history of human civilization. The game commences in
5884 prehistory and your mission is to lead your tribe from the Stone Age
5885 into the Space Age.")
5886 (license license:gpl2+)))
5887
5888 (define-public no-more-secrets
5889 (package
5890 (name "no-more-secrets")
5891 (version "0.3.3")
5892 (source
5893 (origin
5894 (method git-fetch)
5895 (uri (git-reference
5896 (url "https://github.com/bartobri/no-more-secrets")
5897 (commit (string-append "v" version))))
5898 (file-name (git-file-name name version))
5899 (sha256
5900 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5901 (build-system gnu-build-system)
5902 (arguments
5903 `(#:tests? #f
5904 #:make-flags (list "CC=gcc" "all-ncurses"
5905 (string-append "prefix="
5906 (assoc-ref %outputs "out")))
5907 #:phases
5908 (modify-phases %standard-phases
5909 (delete 'configure))))
5910 (inputs
5911 `(("ncurses" ,ncurses)))
5912 (home-page "https://github.com/bartobri/no-more-secrets")
5913 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5914 (description
5915 "@code{No More Secrets} provides a command line tool called \"nms\"
5916 that recreates the famous data decryption effect seen on screen in the 1992
5917 movie \"Sneakers\".
5918
5919 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5920 it will apply the hollywood effect, initially showing encrypted data, then
5921 starting a decryption sequence to reveal the original plaintext characters.")
5922 (license license:expat)))
5923
5924 (define-public megaglest-data
5925 (package
5926 (name "megaglest-data")
5927 (version "3.13.0")
5928 (source
5929 (origin
5930 (method url-fetch)
5931 (uri (string-append
5932 "https://github.com/MegaGlest/megaglest-data"
5933 "/releases/download/" version "/megaglest-data-"
5934 version ".tar.xz"))
5935 (sha256
5936 (base32
5937 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5938 (build-system cmake-build-system)
5939 (arguments
5940 `(#:tests? #f))
5941 (home-page "https://megaglest.org/")
5942 (synopsis "Data files for MegaGlest")
5943 (description "This package contains the data files required for MegaGlest.")
5944 (license license:cc-by-sa3.0)))
5945
5946 (define-public megaglest
5947 (package
5948 (name "megaglest")
5949 (version "3.13.0")
5950 (source
5951 (origin
5952 (method url-fetch)
5953 (uri (string-append
5954 "https://github.com/MegaGlest/megaglest-source"
5955 "/releases/download/" version "/megaglest-source-"
5956 version ".tar.xz"))
5957 (sha256
5958 (base32
5959 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5960 (build-system cmake-build-system)
5961 (inputs
5962 `(("curl" ,curl)
5963 ("fontconfig" ,fontconfig)
5964 ("ftgl" ,ftgl)
5965 ("glew" ,glew)
5966 ("libjpeg-turbo" ,libjpeg-turbo)
5967 ("megaglest-data" ,megaglest-data)
5968 ("mesa" ,mesa)
5969 ("miniupnpc" ,miniupnpc)
5970 ("openal" ,openal)
5971 ("libircclient" ,libircclient)
5972 ("libpng" ,libpng)
5973 ("libvorbis" ,libvorbis)
5974 ("lua" ,lua)
5975 ("sdl2" ,sdl2)
5976 ("wxwidgets" ,wxwidgets)))
5977 (native-inputs
5978 `(("cppunit" ,cppunit)
5979 ("pkg-config" ,pkg-config)))
5980 (arguments
5981 `(#:configure-flags
5982 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5983 (assoc-ref %build-inputs "megaglest-data")
5984 "/share/megaglest")
5985 "-DBUILD_MEGAGLEST_TESTS=ON")
5986 #:phases
5987 (modify-phases %standard-phases
5988 (add-after 'unpack 'fix-ini-search-path
5989 (lambda* (#:key outputs #:allow-other-keys)
5990 (substitute* "source/glest_game/global/config.cpp"
5991 (("/usr/share/megaglest/")
5992 (string-append (assoc-ref outputs "out")
5993 "/share/megaglest/"))))))
5994 #:test-target "megaglest_tests"))
5995 (home-page "https://megaglest.org/")
5996 (synopsis "3D real-time strategy (RTS) game")
5997 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5998 game, where you control the armies of one of seven different factions: Tech,
5999 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
6000 (license license:gpl2+)))
6001
6002 (define-public freegish
6003 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
6004 (revision "1"))
6005 (package
6006 (name "freegish")
6007 (version (string-append "0-" revision "." (string-take commit 9)))
6008 (source (origin
6009 (method git-fetch)
6010 (uri (git-reference
6011 (url "https://github.com/freegish/freegish")
6012 (commit commit)))
6013 (file-name (git-file-name name version))
6014 (sha256
6015 (base32
6016 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
6017 (modules '((guix build utils)))
6018 ;; The audio files in the "music" directory are licensed under
6019 ;; CC-BY-NC, so we delete them.
6020 (snippet
6021 '(begin
6022 (delete-file-recursively "music")
6023 #t))))
6024 (build-system cmake-build-system)
6025 (arguments
6026 `(#:tests? #f ; no tests included
6027 #:configure-flags
6028 (list "-DCMAKE_INSTALL_FHS=ON")
6029 #:phases
6030 (modify-phases %standard-phases
6031 (add-after 'unpack 'set-DATAPATH
6032 (lambda* (#:key outputs #:allow-other-keys)
6033 (substitute* "CMakeLists.txt"
6034 (("^option\\(INSTALL_FHS" line)
6035 (string-append "add_definitions(-DDATAPATH=\""
6036 (assoc-ref outputs "out") "/share/freegish\")\n"
6037 line)))
6038 #t)))))
6039 (inputs
6040 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
6041 ("openal" ,openal)
6042 ("libvorbis" ,libvorbis)
6043 ("libogg" ,libogg)
6044 ("mesa" ,mesa)
6045 ("libpng" ,libpng)
6046 ("zlib" ,zlib)))
6047 (home-page "https://github.com/freegish/freegish")
6048 (synopsis "Side-scrolling physics platformer with a ball of tar")
6049 (description "In FreeGish you control Gish, a ball of tar who lives
6050 happily with his girlfriend Brea, until one day a mysterious dark creature
6051 emerges from a sewer hole and pulls her below ground.")
6052 ;; The textures are available under the Expat license. All other assets
6053 ;; (including levels) are covered under CC-BY-SA or public domain. The
6054 ;; source code is under GPLv2+.
6055 (license (list license:gpl2+
6056 license:expat
6057 license:public-domain
6058 license:cc-by-sa3.0)))))
6059
6060 (define-public cdogs-sdl
6061 (package
6062 (name "cdogs-sdl")
6063 (version "0.8.0")
6064 (source
6065 (origin
6066 (method git-fetch)
6067 (uri (git-reference
6068 (url "https://github.com/cxong/cdogs-sdl")
6069 (commit version)))
6070 (file-name (git-file-name name version))
6071 (sha256
6072 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
6073 (build-system cmake-build-system)
6074 (arguments
6075 `(#:configure-flags
6076 (list (string-append "-DCDOGS_DATA_DIR="
6077 (assoc-ref %outputs "out")
6078 "/share/cdogs-sdl/"))))
6079 (native-inputs
6080 `(("pkg-config" ,pkg-config)))
6081 (inputs
6082 `(("gtk+" ,gtk+)
6083 ("mesa" ,mesa)
6084 ("sdl2" ,sdl2)
6085 ("sdl2-image" ,sdl2-image)
6086 ("sdl2-mixer" ,sdl2-mixer)))
6087 (home-page "https://cxong.github.io/cdogs-sdl/")
6088 (synopsis "Classic overhead run-and-gun game")
6089 (description "C-Dogs SDL is a classic overhead run-and-gun game,
6090 supporting up to 4 players in co-op and deathmatch modes. Customize your
6091 player, choose from many weapons, and blast, slide and slash your way through
6092 over 100 user-created campaigns.")
6093 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
6094 ;; CC0/CC-BY/CC-BY-SA for assets.
6095 (license (list license:gpl2+
6096 license:bsd-2
6097 license:bsd-3
6098 license:cc0
6099 license:cc-by3.0
6100 license:cc-by-sa3.0))))
6101
6102 (define-public kiki
6103 (package
6104 (name "kiki")
6105 (version "1.0.2")
6106 (source (origin
6107 (method url-fetch)
6108 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
6109 version "/kiki-" version "-src.tgz"))
6110 (sha256
6111 (base32
6112 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
6113 (modules '((guix build utils)))
6114 (snippet
6115 '(begin
6116 (for-each delete-file (find-files "." "\\.dll$"))
6117 #t))
6118 (patches
6119 (search-patches "kiki-level-selection-crash.patch"
6120 "kiki-makefile.patch"
6121 "kiki-missing-includes.patch"
6122 "kiki-portability-64bit.patch"))))
6123 (build-system gnu-build-system)
6124 (arguments
6125 `(#:tests? #f ; there are no tests
6126 #:make-flags '("CXX=g++")
6127 #:phases
6128 (modify-phases %standard-phases
6129 (replace 'configure
6130 (lambda* (#:key inputs outputs #:allow-other-keys)
6131 (setenv "CPLUS_INCLUDE_PATH"
6132 (string-append (assoc-ref inputs "sdl-union")
6133 "/include/SDL:"
6134 (assoc-ref inputs "python")
6135 "/include/python2.7:"
6136 (or (getenv "CPLUS_INCLUDE_PATH") "")))
6137 (substitute* "src/main/main.cpp"
6138 (("#include <SDL.h>" line)
6139 (string-append line "
6140 #define K_INCLUDE_GLUT
6141 #include \"KIncludeTools.h\""))
6142 (("// initialize SDL" line)
6143 (string-append "glutInit(&argc,argv);\n" line)))
6144 (substitute* "src/main/KikiController.cpp"
6145 (("getenv\\(\"KIKI_HOME\"\\)")
6146 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
6147 (substitute* "linux/Makefile"
6148 (("CXXOPTS =" line)
6149 (string-append line " -fpermissive"))
6150 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
6151 (("PYTHONHOME =.*")
6152 (string-append "PYTHONHOME = "
6153 (assoc-ref inputs "python")
6154 "/lib/python2.7/"))
6155 (("\\$\\(GLLIBS\\)" line)
6156 (string-append line " -lm -lpython2.7")))
6157 (substitute* "src/main/KikiPythonWidget.h"
6158 (("#define __KikiPythonWidget" line)
6159 (string-append line "\n#include \"KikiPython.h\"")))
6160 #t))
6161 (add-before 'build 'build-kodilib
6162 (lambda* (#:key make-flags #:allow-other-keys)
6163 (with-directory-excursion "kodilib/linux"
6164 (apply invoke "make" make-flags))))
6165 (add-after 'build-kodilib 'chdir
6166 (lambda _ (chdir "linux") #t))
6167 (replace 'install
6168 (lambda* (#:key outputs #:allow-other-keys)
6169 (let* ((out (assoc-ref outputs "out"))
6170 (bin (string-append out "/bin"))
6171 (share (string-append out "/share/kiki")))
6172 (mkdir-p bin)
6173 (mkdir-p share)
6174 (install-file "kiki" bin)
6175 (copy-recursively "../py" (string-append share "/py"))
6176 (copy-recursively "../sound" (string-append share "/sound"))
6177 #t))))))
6178 (inputs
6179 `(("glu" ,glu)
6180 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
6181 ("freeglut" ,freeglut-2.8)
6182 ("sdl-union" ,(sdl-union (list sdl
6183 sdl-mixer
6184 sdl-image)))
6185 ("python" ,python-2)))
6186 (native-inputs
6187 `(("swig" ,swig)))
6188 (home-page "http://kiki.sourceforge.net/")
6189 (synopsis "3D puzzle game")
6190 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
6191 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
6192 small robot living in the nano world, repair its maker.")
6193 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
6194 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
6195 ;; for a statement from the author.
6196 (license license:public-domain)))
6197
6198 (define-public teeworlds
6199 (package
6200 (name "teeworlds")
6201 (version "0.7.5")
6202 (source (origin
6203 (method git-fetch)
6204 (uri (git-reference
6205 (url "https://github.com/teeworlds/teeworlds")
6206 (commit version)
6207 ;; There are two submodules in datasrc/{languages,maps}
6208 (recursive? #t)))
6209 (file-name (git-file-name name version))
6210 (sha256
6211 (base32
6212 "1l19ksmimg6b8zzjy0skyhh7z11ql7n5gvilkv7ay5x2b9ndbqwz"))
6213 (modules '((guix build utils)
6214 (ice-9 ftw)
6215 (ice-9 regex)
6216 (srfi srfi-1)
6217 (srfi srfi-26)))
6218 (snippet ; remove bundled libraries except md5
6219 '(let ((base-dir "src/engine/external/"))
6220 (for-each (compose (cut delete-file-recursively <>)
6221 (cut string-append base-dir <>))
6222 (remove (cut string-match "(^.)|(^md5$)" <>)
6223 (scandir base-dir)))
6224 #t))))
6225 (build-system cmake-build-system)
6226 (arguments
6227 `(#:tests? #f ; no tests included
6228 #:phases
6229 (modify-phases %standard-phases
6230 (add-after 'unpack 'patch-paths
6231 (lambda* (#:key outputs #:allow-other-keys)
6232 ;; Embed path to assets.
6233 (substitute* "src/engine/shared/storage.cpp"
6234 (("#define DATA_DIR.*")
6235 (string-append "#define DATA_DIR \""
6236 (assoc-ref outputs "out")
6237 "/share/teeworlds/data"
6238 "\"")))
6239 #t)))))
6240 (inputs
6241 `(("freetype" ,freetype)
6242 ("glu" ,glu)
6243 ("json-parser" ,json-parser)
6244 ("mesa" ,mesa)
6245 ("pnglite" ,pnglite)
6246 ("sdl2" ,sdl2)
6247 ("sdl2-image" ,sdl2-image)
6248 ("sdl2-mixer" ,sdl2-mixer)
6249 ("wavpack" ,wavpack)
6250 ("openssl" ,openssl)
6251 ("zlib" ,zlib)))
6252 (native-inputs
6253 `(("python" ,python-wrapper)
6254 ("pkg-config" ,pkg-config)))
6255 (home-page "https://www.teeworlds.com")
6256 (synopsis "2D retro multiplayer shooter game")
6257 (description "Teeworlds is an online multiplayer game. Battle with up to
6258 16 players in a variety of game modes, including Team Deathmatch and Capture
6259 The Flag. You can even design your own maps!")
6260 (license (list license:bsd-3 license:cc-by-sa3.0)))) ; game+maps&languages
6261
6262 (define-public enigma
6263 (package
6264 (name "enigma")
6265 (version "1.21")
6266 (source (origin
6267 (method url-fetch)
6268 (uri (string-append "mirror://sourceforge/enigma-game/"
6269 "Release%20" version "/enigma-"
6270 version ".tar.gz"))
6271 (sha256
6272 (base32
6273 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6274 (build-system gnu-build-system)
6275 (arguments
6276 `(#:configure-flags
6277 (list "--with-system-enet")
6278 #:phases
6279 (modify-phases %standard-phases
6280 (add-after 'unpack 'fix-build-with-new-gcc
6281 (lambda _
6282 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6283 ;; to NULL. Can be removed for versions > 1.21.
6284 (substitute* "src/lev/Proxy.cc"
6285 (("ifs != NULL")
6286 "ifs"))
6287 #t))
6288 (add-after 'unpack 'find-sdl
6289 (lambda _
6290 (substitute* "configure"
6291 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6292 (substitute* '("tools/ttf2bmf.cc"
6293 "lib-src/enigma-core/ecl_font.cc"
6294 "lib-src/enigma-core/ecl_video.cc"
6295 "lib-src/enigma-core/ecl_buffer.hh"
6296 "src/SoundEngine.cc"
6297 "src/SoundEngine.hh"
6298 "src/MusicManager.cc"
6299 "src/MusicManager.hh"
6300 "src/d_models.cc"
6301 "src/main.cc"
6302 "src/network.cc")
6303 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6304 (string-append "#include \"SDL/SDL_" header ".h\"")))
6305 (substitute* "src/main.cc"
6306 (("#include <SDL_(image|ttf|mixer).h>" line header)
6307 (string-append "#include \"SDL/SDL_" header ".h\"")))
6308 #t)))))
6309 (inputs
6310 `(("xerces-c" ,xerces-c)
6311 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6312 ("curl" ,curl)
6313 ("enet" ,enet)))
6314 (native-inputs
6315 `(("pkg-config" ,pkg-config)
6316 ("imagemagick" ,imagemagick)))
6317 (home-page "https://www.nongnu.org/enigma")
6318 (synopsis "Puzzle game with a dexterity component")
6319 (description "Enigma is a puzzle game with 550 unique levels. The object
6320 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6321 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6322 and most of all, countless hairy puzzles usually block your direct way to the
6323 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6324 get bored) interact in many unexpected ways, and since many of them follow the
6325 laws of physics (Enigma’s special laws of physics, that is), controlling them
6326 with the mouse isn’t always trivial.")
6327 (license license:gpl2+)))
6328
6329 (define-public chroma
6330 (package
6331 (name "chroma")
6332 (version "1.18")
6333 (source (origin
6334 (method url-fetch)
6335 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6336 version ".tar.bz2"))
6337 (sha256
6338 (base32
6339 "12bjisf5nlqinw8n4r223vld52p0p2mw3fca92vi175c46bycbzn"))))
6340 (build-system gnu-build-system)
6341 (arguments
6342 `(#:tests? #f ; no tests included
6343 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6344 (inputs
6345 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6346 ("freetype" ,freetype)
6347 ("ncurses" ,ncurses)
6348 ("fontconfig" ,fontconfig)
6349 ("libxft" ,libxft)))
6350 (native-inputs
6351 `(("pkg-config" ,pkg-config)))
6352 (home-page "http://level7.org.uk/chroma/")
6353 (synopsis "Abstract puzzle game")
6354 (description "Chroma is an abstract puzzle game. A variety of colourful
6355 shapes are arranged in a series of increasingly complex patterns, forming
6356 fiendish traps that must be disarmed and mysterious puzzles that must be
6357 manipulated in order to give up their subtle secrets. Initially so
6358 straightforward that anyone can pick it up and begin to play, yet gradually
6359 becoming difficult enough to tax even the brightest of minds.")
6360 (license license:gpl2+)))
6361
6362 (define-public fillets-ng
6363 (package
6364 (name "fillets-ng")
6365 (version "1.0.1")
6366 (source (origin
6367 (method url-fetch)
6368 (uri (string-append "mirror://sourceforge/fillets/"
6369 "Fish%20Fillets%20-%20Next%20Generation/"
6370 version "/fillets-ng-" version ".tar.gz"))
6371 (sha256
6372 (base32
6373 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6374 (build-system gnu-build-system)
6375 (arguments
6376 `(#:configure-flags
6377 (list (string-append "--with-lua="
6378 (assoc-ref %build-inputs "lua")))
6379 #:make-flags
6380 (list (string-append "CFLAGS=-I"
6381 (assoc-ref %build-inputs "sdl-union")
6382 "/include/SDL")
6383 (string-append "CXXFLAGS=-I"
6384 (assoc-ref %build-inputs "sdl-union")
6385 "/include/SDL"))
6386 #:phases
6387 (modify-phases %standard-phases
6388 ;; Lua 5.1 does not provide it.
6389 (add-after 'unpack 'do-not-link-with-lualib
6390 (lambda _
6391 (substitute* "configure"
6392 (("-llualib") ""))
6393 #t))
6394 (add-after 'install 'install-data
6395 (lambda* (#:key inputs outputs #:allow-other-keys)
6396 (let ((data (string-append (assoc-ref outputs "out")
6397 "/share/games/fillets-ng")))
6398 (mkdir-p data)
6399 (invoke "tar" "-xvf"
6400 (assoc-ref inputs "fillets-ng-data")
6401 "--strip-components=1"
6402 "-C" data)))))))
6403 (inputs
6404 `(("sdl-union" ,(sdl-union (list sdl
6405 sdl-mixer
6406 sdl-image
6407 sdl-ttf)))
6408 ("fribidi" ,fribidi)
6409 ("libx11" ,libx11)
6410 ("lua" ,lua-5.1)))
6411 (native-inputs
6412 `(("pkg-config" ,pkg-config)
6413 ("fillets-ng-data"
6414 ,(origin
6415 (method url-fetch)
6416 (uri (string-append "mirror://sourceforge/fillets/"
6417 "Fish%20Fillets%20-%20Next%20Generation/"
6418 version "/fillets-ng-data-" version ".tar.gz"))
6419 (sha256
6420 (base32
6421 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6422 (home-page "http://fillets.sourceforge.net/")
6423 (synopsis "Puzzle game")
6424 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6425 every of the seventy levels is always the same: find a safe way out. The fish
6426 utter witty remarks about their surroundings, the various inhabitants of their
6427 underwater realm quarrel among themselves or comment on the efforts of your
6428 fish. The whole game is accompanied by quiet, comforting music.")
6429 (license license:gpl2+)))
6430
6431 (define-public crawl
6432 (package
6433 (name "crawl")
6434 (version "0.26.1")
6435 (source
6436 (origin
6437 (method url-fetch)
6438 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6439 version "/stone_soup-" version "-nodeps.tar.xz"))
6440 (sha256
6441 (base32 "1d8p2np2q5951wqphq2f4dyvv976m2lh82b0qp7w9pp1h8zzi1ff"))
6442 (patches (search-patches "crawl-upgrade-saves.patch"))))
6443 (build-system gnu-build-system)
6444 (inputs
6445 `(("lua51" ,lua-5.1)
6446 ("ncurses" ,ncurses)
6447 ("sqlite" ,sqlite)
6448 ("zlib" ,zlib)))
6449 (native-inputs
6450 `(("bison" ,bison)
6451 ("flex" ,flex)
6452 ("perl" ,perl)
6453 ("python" ,python-wrapper)
6454 ("python-pyyaml" ,python-pyyaml)
6455 ("pkg-config" ,pkg-config)))
6456 (arguments
6457 `(#:make-flags
6458 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6459 (out (assoc-ref %outputs "out")))
6460 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6461 (string-append "prefix=" out)
6462 "SAVEDIR=~/.crawl"
6463 ;; Don't compile with SSE on systems which don't have it.
6464 ,@(match (%current-system)
6465 ((or "i686-linux" "x86_64-linux")
6466 '())
6467 (_ '("NOSSE=TRUE")))
6468 ;; don't build any bundled dependencies
6469 "BUILD_LUA="
6470 "BUILD_SQLITE="
6471 "BUILD_ZLIB="
6472 "-Csource"))
6473 #:phases
6474 (modify-phases %standard-phases
6475 (add-after 'unpack 'find-SDL-image
6476 (lambda _
6477 (substitute* "source/windowmanager-sdl.cc"
6478 (("SDL_image.h") "SDL2/SDL_image.h"))
6479 #t))
6480 (delete 'configure)
6481 (replace 'check
6482 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6483 (setenv "HOME" (getcwd))
6484 ;; Fake a terminal for the test cases.
6485 (setenv "TERM" "xterm-256color")
6486 ;; Run the tests that don't require a debug build.
6487 (apply invoke "make" "nondebugtest"
6488 (format #f "-j~d" (parallel-job-count))
6489 ;; Force command line build for test cases.
6490 (append make-flags '("GAME=crawl" "TILES="))))))))
6491 (synopsis "Roguelike dungeon crawler game")
6492 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6493 for short) is a roguelike adventure through dungeons filled with dangerous
6494 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6495 (home-page "https://crawl.develz.org")
6496 (license (list license:gpl2+
6497 license:bsd-2
6498 license:bsd-3
6499 license:cc0
6500 license:expat
6501 license:zlib
6502 license:asl2.0))))
6503
6504 ;; The linter here claims that patch file names should start with the package
6505 ;; name. But, in this case, the patches are inherited from crawl with the
6506 ;; "crawl-" prefix instead of "crawl-tiles-".
6507 (define-public crawl-tiles
6508 (package
6509 (inherit crawl)
6510 (name "crawl-tiles")
6511 (arguments
6512 (substitute-keyword-arguments
6513 (package-arguments crawl)
6514 ((#:make-flags flags)
6515 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6516 (cons*
6517 (string-append "PROPORTIONAL_FONT=" dejavu
6518 "/share/fonts/truetype/DejaVuSans.ttf")
6519 (string-append "MONOSPACED_FONT=" dejavu
6520 "/share/fonts/truetype/DejaVuSansMono.ttf")
6521 "TILES=y"
6522 ;; Rename the executable to allow parallel installation with crawl.
6523 "GAME=crawl-tiles"
6524 ,flags)))))
6525 (inputs
6526 `(,@(package-inputs crawl)
6527 ("font-dejavu" ,font-dejavu)
6528 ("freetype6" ,freetype)
6529 ("glu" ,glu)
6530 ("libpng" ,libpng)
6531 ("sdl2" ,sdl2)
6532 ("sdl2-image" ,sdl2-image)
6533 ("sdl2-mixer" ,sdl2-mixer)))
6534 (native-inputs
6535 `(,@(package-native-inputs crawl)
6536 ("pngcrush" ,pngcrush)
6537 ("which" ,which)))
6538 (synopsis "Graphical roguelike dungeon crawler game")))
6539
6540 (define-public lugaru
6541 (package
6542 (name "lugaru")
6543 (version "1.2")
6544 (source (origin
6545 (method url-fetch)
6546 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6547 "lugaru-" version ".tar.xz"))
6548 (sha256
6549 (base32
6550 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6551 (build-system cmake-build-system)
6552 (arguments
6553 `(#:configure-flags
6554 (list "-DSYSTEM_INSTALL=ON")
6555 ;; no test target
6556 #:tests? #f))
6557 (native-inputs
6558 `(("pkg-config" ,pkg-config)))
6559 (inputs
6560 `(("sdl2" ,sdl2)
6561 ("glu" ,glu)
6562 ("libjpeg" ,libjpeg-turbo)
6563 ("libpng" ,libpng)
6564 ("openal" ,openal)
6565 ("vorbis" ,libvorbis)
6566 ("zlib" ,zlib)))
6567 (home-page "https://osslugaru.gitlab.io")
6568 (synopsis "Cross-platform third-person action game")
6569 (description "Lugaru is a third-person action game. The main character,
6570 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6571 In his quest to find those responsible for slaughtering his village, he uncovers
6572 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6573 and the starving wolves from a nearby den. Turner takes it upon himself to
6574 fight against their plot and save his fellow rabbits from slavery.")
6575 (license (list license:gpl2+ ; code
6576 ;; assets:
6577 license:cc-by-sa3.0
6578 license:cc-by-sa4.0))))
6579
6580 (define-public 0ad-data
6581 (package
6582 (name "0ad-data")
6583 (version "0.0.23b-alpha")
6584 (source
6585 (origin
6586 (method url-fetch)
6587 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6588 version "-unix-data.tar.xz"))
6589 (file-name (string-append name "-" version ".tar.xz"))
6590 (sha256
6591 (base32
6592 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6593 (modules '((guix build utils)))
6594 (snippet
6595 #~(begin
6596 (for-each (lambda (name)
6597 (let* ((dir (string-append "binaries/data/mods/" name))
6598 (file (string-append dir "/" name ".zip"))
6599 (unzip #$(file-append unzip "/bin/unzip")))
6600 (invoke unzip "-d" dir file)
6601 (delete-file file)))
6602 '("mod" "public"))
6603 #t))))
6604 (build-system trivial-build-system)
6605 (native-inputs `(("tar" ,tar)
6606 ("xz" ,xz)))
6607 (arguments
6608 `(#:modules ((guix build utils))
6609 #:builder
6610 (begin
6611 (use-modules (guix build utils))
6612 (let ((out (assoc-ref %outputs "out"))
6613 (source (assoc-ref %build-inputs "source"))
6614 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6615 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6616 (setenv "PATH" xz-path)
6617 (mkdir out)
6618 (invoke tar "xvf" source "-C" out "--strip=3")))))
6619 (synopsis "Data files for 0ad")
6620 (description "0ad-data provides the data files required by the game 0ad.")
6621 (home-page "https://play0ad.com")
6622 (license (list (license:fsdg-compatible
6623 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6624 "Similar to the license of the Bitstream Vera fonts.")
6625 (license:fsdg-compatible
6626 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6627 license:cc-by-sa3.0
6628 license:expat
6629 license:gfl1.0
6630 license:gpl2+
6631 license:gpl3+))))
6632
6633 (define-public 0ad
6634 (package
6635 (name "0ad")
6636 (version "0.0.23b-alpha")
6637 (source
6638 (origin
6639 (method url-fetch)
6640 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6641 version "-unix-build.tar.xz"))
6642 (file-name (string-append name "-" version ".tar.xz"))
6643 (sha256
6644 (base32
6645 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6646 ;; A snippet here would cause a build failure because of timestamps
6647 ;; reset. See https://bugs.gnu.org/26734.
6648 (inputs
6649 `(("0ad-data" ,0ad-data)
6650 ("curl" ,curl)
6651 ("enet" ,enet)
6652 ("gloox" ,gloox)
6653 ("icu4c" ,icu4c)
6654 ("libpng" ,libpng)
6655 ("libsodium" ,libsodium)
6656 ("libvorbis" ,libvorbis)
6657 ("libxcursor" ,libxcursor)
6658 ("libxml2" ,libxml2)
6659 ("miniupnpc" ,miniupnpc)
6660 ("mozjs-38" ,mozjs-38)
6661 ("openal" ,openal)
6662 ("sdl2" ,sdl2)
6663 ("wxwidgets" ,wxwidgets)
6664 ("zlib" ,zlib)))
6665 (native-inputs
6666 `(("boost" ,boost)
6667 ("cmake" ,cmake-minimal)
6668 ("mesa" ,mesa)
6669 ("pkg-config" ,pkg-config)
6670 ("python-2" ,python-2)))
6671 (build-system gnu-build-system)
6672 (arguments
6673 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6674 #:phases
6675 (modify-phases %standard-phases
6676 (add-after 'unpack 'delete-bundles
6677 (lambda _
6678 (delete-file-recursively "libraries/source/spidermonkey")
6679 #t))
6680 (add-after 'unpack 'fix-x11-includes
6681 (lambda _
6682 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6683 (("<Xlib.h>") "<X11/Xlib.h>"))
6684 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6685 (("<Xatom.h>") "<X11/Xatom.h>"))
6686 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6687 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6688 #t))
6689 (replace 'configure
6690 (lambda* (#:key inputs outputs #:allow-other-keys)
6691 (let* ((jobs (number->string (parallel-job-count)))
6692 (out (assoc-ref outputs "out"))
6693 (lib (string-append out "/lib"))
6694 (data (string-append out "/share/0ad")))
6695 (setenv "JOBS" (string-append "-j" jobs))
6696 (setenv "CC" "gcc")
6697 (with-directory-excursion "build/workspaces"
6698 (invoke "./update-workspaces.sh"
6699 (string-append "--libdir=" lib)
6700 (string-append "--datadir=" data)
6701 ;; TODO: "--with-system-nvtt"
6702 "--with-system-mozjs38")))))
6703 (delete 'check)
6704 (replace 'install
6705 (lambda* (#:key inputs outputs #:allow-other-keys)
6706 (chdir "binaries")
6707 (let* ((out (assoc-ref outputs "out"))
6708 (bin (string-append out "/bin"))
6709 (lib (string-append out "/lib"))
6710 (data (string-append out "/share/0ad"))
6711 (applications (string-append out "/share/applications"))
6712 (pixmaps (string-append out "/share/pixmaps"))
6713 (0ad-data (assoc-ref inputs "0ad-data")))
6714 ;; data
6715 (copy-recursively "data" data)
6716 (for-each (lambda (file)
6717 (symlink (string-append 0ad-data "/" file)
6718 (string-append data "/" file)))
6719 '("config" "mods/mod" "mods/public" "tools"))
6720 ;; libraries
6721 (for-each (lambda (file)
6722 (install-file file lib))
6723 (find-files "system" "\\.so$"))
6724 ;; binaries
6725 (install-file "system/pyrogenesis" bin)
6726 (with-directory-excursion bin
6727 (symlink "pyrogenesis" "0ad"))
6728 ;; resources
6729 (with-directory-excursion "../build/resources"
6730 (install-file "0ad.desktop" applications)
6731 (install-file "0ad.png" pixmaps))
6732 #t)))
6733 (add-after 'install 'check
6734 (lambda _
6735 (with-directory-excursion "system"
6736 (invoke "./test")))))))
6737 (home-page "https://play0ad.com")
6738 (synopsis "3D real-time strategy game of ancient warfare")
6739 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6740 warfare. It's a historically-based war/economy game that allows players to
6741 relive or rewrite the history of twelve ancient civilizations, each depicted
6742 at their peak of economic growth and military prowess.
6743
6744 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6745 (license (list license:bsd-2
6746 license:bsd-3
6747 license:expat
6748 license:gpl2+
6749 license:ibmpl1.0
6750 license:isc
6751 license:lgpl2.1
6752 license:lgpl3
6753 license:mpl2.0
6754 license:zlib))))
6755
6756 (define-public open-adventure
6757 (package
6758 (name "open-adventure")
6759 (version "1.9")
6760 (source
6761 (origin
6762 (method git-fetch)
6763 (uri (git-reference
6764 (url "https://gitlab.com/esr/open-adventure")
6765 (commit version)))
6766 (file-name (git-file-name name version))
6767 (sha256
6768 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6769 (build-system gnu-build-system)
6770 (arguments
6771 `(#:make-flags (list "CC=gcc")
6772 #:phases
6773 (modify-phases %standard-phases
6774 (delete 'configure) ;no configure script
6775 (add-before 'build 'use-echo
6776 (lambda _
6777 (substitute* "tests/Makefile"
6778 (("/bin/echo") (which "echo")))
6779 #t))
6780 (add-after 'build 'build-manpage
6781 (lambda _
6782 ;; This target is missing a dependency
6783 (substitute* "Makefile"
6784 ((".adoc.6:" line)
6785 (string-append line " advent.adoc")))
6786 (invoke "make" ".adoc.6")))
6787 ;; There is no install target.
6788 (replace 'install
6789 (lambda* (#:key outputs #:allow-other-keys)
6790 (let* ((out (assoc-ref outputs "out"))
6791 (bin (string-append out "/bin"))
6792 (man (string-append out "/share/man/man6")))
6793 (install-file "advent" bin)
6794 (install-file "advent.6" man))
6795 #t)))))
6796 (native-inputs
6797 `(("asciidoc" ,asciidoc)
6798 ("libedit" ,libedit)
6799 ("pkg-config" ,pkg-config)
6800 ("python" ,python-wrapper)
6801 ("python-pyyaml" ,python-pyyaml)))
6802 (home-page "https://gitlab.com/esr/open-adventure")
6803 (synopsis "Colossal Cave Adventure")
6804 (description
6805 "The original Colossal Cave Adventure from 1976 was the origin of all
6806 text adventures, dungeon-crawl (computer) games, and computer-hosted
6807 roleplaying games. This is a forward port of the last version released by
6808 Crowther & Woods, its original authors, in 1995. It has been known as
6809 ``adventure 2.5'' and ``430-point adventure''.")
6810 (license license:bsd-2)))
6811
6812 (define-public open-adventure-2.5
6813 (package
6814 (inherit open-adventure)
6815 (version "2.5")
6816 (properties `((superseded . ,open-adventure)))))
6817
6818 (define-public tome4
6819 (package
6820 (name "tome4")
6821 (version "1.7.2")
6822 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6823 (source
6824 (origin
6825 (method url-fetch)
6826 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6827 version ".tar.bz2"))
6828 (sha256
6829 (base32 "1xa0pdn9pggwf7hnqb87ya2qxqhjahkdjwf8cr2y01gixgrkj9lv"))
6830 (modules '((guix build utils)))
6831 (snippet
6832 '(begin
6833 (substitute* '("src/music.h" "src/tSDL.h")
6834 (("#elif defined(__FreeBSD__)" line)
6835 (string-append
6836 line " || defined(__GNUC__)")))
6837 (substitute* '("src/tgl.h")
6838 (("#include <GL/glext.h>") ""))
6839 #t))))
6840 (build-system gnu-build-system)
6841 (native-inputs
6842 `(("unzip" ,unzip)))
6843 (inputs
6844 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6845 ("glu" ,glu)
6846 ("premake4" ,premake4)
6847 ("openal" ,openal)
6848 ("vorbis" ,libvorbis)
6849 ("luajit" ,luajit)))
6850 (arguments
6851 `(#:make-flags
6852 (list (string-append "CC=" ,(cc-for-target))
6853 "config=release")
6854 ;; XXX: Building in parallel occasionally causes this build failure:
6855 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6856 ;; No such file or directory
6857 #:parallel-build? #f
6858 #:phases (modify-phases %standard-phases
6859 (delete 'bootstrap)
6860 (replace 'configure
6861 (lambda _
6862 (invoke "premake4" "gmake")
6863 #t))
6864 (add-after 'set-paths 'set-sdl-paths
6865 (lambda* (#:key inputs #:allow-other-keys)
6866 (setenv "CPATH"
6867 (string-append (assoc-ref inputs "sdl-union")
6868 "/include/SDL2:"
6869 (or (getenv "CPATH") "")))
6870 #t))
6871 (delete 'check)
6872 ;; premake doesn't provide install target
6873 (replace 'install
6874 (lambda* (#:key inputs outputs #:allow-other-keys)
6875 (let* ((out (assoc-ref outputs "out"))
6876 (usr (string-append out "/usr"))
6877 (bin (string-append out "/bin"))
6878 (licenses (string-append out "/share/licenses"))
6879 (documents (string-append out "/share/doc"))
6880 (pixmaps (string-append out "/share/pixmaps"))
6881 (icon "te4-icon.png")
6882 (data (string-append out "/share/" ,name))
6883 (applications (string-append
6884 out "/share/applications"))
6885 (unzip (string-append
6886 (assoc-ref inputs "unzip") "/bin/unzip"))
6887 (wrapper (string-append bin "/" ,name)))
6888 ;; icon
6889 (mkdir-p pixmaps)
6890 (invoke unzip "-j"
6891 (string-append
6892 "game/engines/te4-" ,version ".teae")
6893 (string-append
6894 "data/gfx/" icon) "-d" pixmaps)
6895 ;; game executable
6896 (install-file "t-engine" data)
6897 (mkdir-p bin)
6898 (with-output-to-file wrapper
6899 (lambda ()
6900 (display
6901 (string-append
6902 "#!/bin/sh\n"
6903 ;; No bootstrap code found,
6904 ;; defaulting to working directory
6905 ;; for engine code!
6906 "cd " data "\n"
6907 "exec -a tome4 ./t-engine \"$@\"\n"))))
6908 (chmod wrapper #o555)
6909 ;; licenses
6910 (for-each (lambda (file)
6911 (install-file file licenses))
6912 '("COPYING" "COPYING-MEDIA"))
6913 ;; documents
6914 (for-each (lambda (file)
6915 (install-file file documents))
6916 '("CONTRIBUTING" "CREDITS"))
6917 ;; data
6918 (copy-recursively "bootstrap" (string-append
6919 data "/bootstrap"))
6920 (copy-recursively "game" (string-append data "/game"))
6921 ;; launcher
6922 (mkdir-p applications)
6923 (make-desktop-entry-file
6924 (string-append applications "/" ,name ".desktop")
6925 #:name "ToME4"
6926 #:comment ,synopsis
6927 #:exec ,name
6928 #:icon icon
6929 #:categories '("Game" "RolePlaying")))
6930 #t)))))
6931 (home-page "https://te4.org")
6932 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6933 combat and advanced character building. Play as one of many unique races and
6934 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6935 challenging battles, and developing characters with your own tailored mix of
6936 abilities and powers. With a modern graphical and customisable interface,
6937 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6938 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6939 (license license:gpl3+)))
6940
6941 (define-public quakespasm
6942 (package
6943 (name "quakespasm")
6944 (version "0.93.2")
6945 (source
6946 (origin
6947 (method url-fetch)
6948 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6949 version ".tgz"))
6950 (sha256
6951 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6952 (arguments
6953 `(#:tests? #f
6954 #:make-flags '("CC=gcc"
6955 "MP3LIB=mpg123"
6956 "USE_CODEC_FLAC=1"
6957 "USE_CODEC_MIKMOD=1"
6958 "USE_SDL2=1"
6959 "-CQuake")
6960 #:phases (modify-phases %standard-phases
6961 (delete 'configure)
6962 (add-after 'unpack 'fix-makefile-paths
6963 (lambda* (#:key outputs #:allow-other-keys)
6964 (let ((out (assoc-ref outputs "out")))
6965 (mkdir-p (string-append out "/bin"))
6966 (substitute* "Quake/Makefile"
6967 (("/usr/local/games")
6968 (string-append out "/bin")))
6969 #t))))))
6970 (build-system gnu-build-system)
6971 (inputs `(("libmikmod" ,libmikmod)
6972 ("libvorbis" ,libvorbis)
6973 ("flac" ,flac)
6974 ("mesa" ,mesa)
6975 ("mpg123" ,mpg123)
6976 ("sdl2" ,sdl2)))
6977 (synopsis "First person shooter engine for Quake 1")
6978 (description "Quakespasm is a modern engine for id software's Quake 1.
6979 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6980 some graphical niceities, and numerous bug-fixes and other improvements.")
6981 (home-page "http://quakespasm.sourceforge.net/")
6982 (license license:gpl2+)))
6983
6984 (define-public vkquake
6985 (package
6986 (inherit quakespasm)
6987 (name "vkquake")
6988 (version "1.01.0")
6989 (source
6990 (origin
6991 (method git-fetch)
6992 (uri (git-reference
6993 (url "https://github.com/Novum/vkQuake")
6994 (commit version)))
6995 (file-name (git-file-name name version))
6996 (sha256
6997 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6998 (arguments
6999 `(#:make-flags
7000 (let ((vulkanlib (string-append (assoc-ref %build-inputs
7001 "vulkan-loader") "/lib")))
7002 (list "CC=gcc"
7003 "MP3LIB=mpg123"
7004 "USE_CODEC_FLAC=1"
7005 "USE_CODEC_MIKMOD=1"
7006 "USE_SDL2=1"
7007 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
7008 "-CQuake"))
7009 #:phases (modify-phases %standard-phases
7010 (add-after 'unpack 'patch-for-new-vulkan
7011 (lambda _
7012 ;; Mimic upstream commit a869a22d9b51c68e for
7013 ;; compatibility with newer vulkan-headers.
7014 (substitute* "Quake/gl_rmisc.c"
7015 (("VK_DYNAMIC_STATE_RANGE_SIZE")
7016 "3"))
7017 #t))
7018 (delete 'configure)
7019 (add-after 'unpack 'fix-makefile-paths
7020 (lambda* (#:key outputs #:allow-other-keys)
7021 (let ((vulkan (assoc-ref %build-inputs
7022 "vulkan-loader"))
7023 (out (assoc-ref outputs "out")))
7024 (mkdir-p (string-append out "/bin"))
7025 (substitute* "Quake/Makefile" ((" /usr")
7026 (string-append " " out)))
7027 (substitute* "Quake/Makefile" (("/games")
7028 (string-append "/bin")))
7029 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
7030 #t))))
7031 ,@(strip-keyword-arguments '(#:make-flags #:phases)
7032 (package-arguments quakespasm))))
7033 (inputs `(("vulkan-headers" ,vulkan-headers)
7034 ("vulkan-loader" ,vulkan-loader)
7035 ,@(package-inputs quakespasm)))
7036 (description "vkquake is a modern engine for id software's Quake 1.
7037 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
7038 some graphical niceities, and numerous bug-fixes and other improvements.")
7039 (home-page "https://github.com/Novum/vkQuake")))
7040
7041 (define-public yamagi-quake2
7042 (package
7043 (name "yamagi-quake2")
7044 (version "7.45")
7045 (source
7046 (origin
7047 (method url-fetch)
7048 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
7049 version ".tar.xz"))
7050 (sha256
7051 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
7052 (build-system gnu-build-system)
7053 (arguments
7054 `(#:tests? #f
7055 #:make-flags
7056 (list "CC=gcc"
7057 ;; link openAL instead of using dlopen at runtime
7058 "DLOPEN_OPENAL=\"no\""
7059 ;; an optional directory where it will look for quake2 data files
7060 ;; in addition to the current working directory
7061 "WITH_SYSTEMWIDE=yes"
7062 "WITH_SYSTEMDIR=\"/opt/quake2\"")
7063 #:phases
7064 (modify-phases %standard-phases
7065 (delete 'configure)
7066 (replace 'install
7067 (lambda* (#:key outputs #:allow-other-keys)
7068 (let ((out (assoc-ref outputs "out")))
7069 (mkdir-p (string-append out "/lib"))
7070 (mkdir-p (string-append out "/bin"))
7071 ;; The yamagi-quake2 binary must be in the same directory
7072 ;; as it's engine libraries, but symlinking it to /bin is okay
7073 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
7074 (copy-recursively "release"
7075 (string-append out "/lib/yamagi-quake2"))
7076 (symlink (string-append out "/lib/yamagi-quake2/quake2")
7077 (string-append out "/bin/yamagi-quake2"))
7078 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
7079 (string-append out "/bin/yamagi-q2ded"))))))))
7080 (native-inputs
7081 `(("pkg-config" ,pkg-config)))
7082 (inputs
7083 `(("curl" ,curl-minimal)
7084 ("libvorbis" ,libvorbis)
7085 ("mesa" ,mesa)
7086 ("openal" ,openal)
7087 ("sdl2" ,sdl2)
7088 ("zlib" ,zlib)))
7089 (synopsis "First person shooter engine based on quake2")
7090 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
7091 The main focus is an unchanged single player experience like back in 1997,
7092 thus the gameplay and the graphics are unaltered. However the user may use one
7093 of the unofficial retexturing packs. In comparison with the official client,
7094 over 1000 bugs were fixed and an extensive code audit done,
7095 making Yamagi Quake II one of the most solid Quake II implementations available.")
7096 (home-page "https://www.yamagi.org/quake2/")
7097 (license (list license:gpl2+ ; game and server
7098 (license:non-copyleft ; info-zip
7099 "file://LICENSE"
7100 "See Info-Zip section.")
7101 license:public-domain)))) ; stb
7102
7103 (define-public nudoku
7104 (package
7105 (name "nudoku")
7106 (version "2.1.0")
7107 (source
7108 (origin
7109 (method git-fetch)
7110 (uri (git-reference
7111 (url "https://github.com/jubalh/nudoku")
7112 (commit version)))
7113 (file-name (git-file-name name version))
7114 (sha256
7115 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
7116 (build-system gnu-build-system)
7117 (native-inputs
7118 `(("autoconf" ,autoconf)
7119 ("automake" ,automake)
7120 ("gettext" ,gettext-minimal)
7121 ("pkg-config" ,pkg-config)))
7122 (inputs
7123 `(("ncurses" ,ncurses)))
7124 (home-page "https://jubalh.github.io/nudoku/")
7125 (synopsis "Sudoku for your terminal")
7126 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
7127 (license license:gpl3+)))
7128
7129 (define-public the-butterfly-effect
7130 (package
7131 (name "the-butterfly-effect")
7132 (version "0.9.3.1")
7133 (source
7134 (origin
7135 (method git-fetch)
7136 (uri (git-reference
7137 (url "https://github.com/the-butterfly-effect/tbe")
7138 (commit (string-append "v" version))))
7139 (file-name (git-file-name name version))
7140 (sha256
7141 (base32
7142 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
7143 (build-system gnu-build-system)
7144 (arguments
7145 `(#:phases
7146 (modify-phases %standard-phases
7147 (delete 'configure)
7148 ;; There is no "install" phase. By default, tbe is installed
7149 ;; in the build directory. Provide our own installation.
7150 (replace 'install
7151 (lambda* (#:key outputs #:allow-other-keys)
7152 (let* ((out (assoc-ref outputs "out"))
7153 (bin (string-append out "/bin"))
7154 (share (string-append out "/share")))
7155 (install-file "usr/games/tbe" bin)
7156 (mkdir-p share)
7157 (copy-recursively "usr/share" share)
7158 #t))))
7159 ;; Test suite requires a running Xorg server. Even when
7160 ;; provided, it fails with "D-Bus library appears to be
7161 ;; incorrectly set up; failed to read machine uuid: Failed to
7162 ;; open "/etc/machine-id": No such file or directory" along
7163 ;; with multiple "QPainter:: ... Painter not active" warnings.
7164 #:tests? #f))
7165 (inputs
7166 `(("qtbase" ,qtbase)
7167 ("qtsvg" ,qtsvg)))
7168 (native-inputs
7169 `(("cmake" ,cmake-minimal)
7170 ("gettext-minimal" ,gettext-minimal)
7171 ("qttools" ,qttools)))
7172 (synopsis "Realistic physics puzzle game")
7173 (description "The Butterfly Effect (tbe) is a game that uses
7174 realistic physics simulations to combine lots of simple mechanical
7175 elements to achieve a simple goal in the most complex way possible.")
7176 (home-page "http://the-butterfly-effect.org/")
7177 ;; Main license is GPL2-only. However, artwork is distributed
7178 ;; under various licenses, listed here.
7179 (license (list license:gpl2 license:public-domain license:expat
7180 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7181
7182 (define-public pioneer
7183 (package
7184 (name "pioneer")
7185 (version "20210203")
7186 (source (origin
7187 (method git-fetch)
7188 (uri (git-reference
7189 (url "https://github.com/pioneerspacesim/pioneer")
7190 (commit version)))
7191 (file-name (git-file-name name version))
7192 (sha256
7193 (base32
7194 "1zyi1xyghj99hz8fa6dywpscj6flp04fspnlgxbivf3rgmnxflg7"))))
7195 (build-system cmake-build-system)
7196 (native-inputs
7197 `(("pkg-config" ,pkg-config)))
7198 (inputs
7199 `(("assimp" ,assimp)
7200 ("curl" ,curl)
7201 ("freetype" ,freetype)
7202 ("glew" ,glew)
7203 ("glu" ,glu)
7204 ("libpng" ,libpng)
7205 ("libsigc++" ,libsigc++)
7206 ("libvorbis" ,libvorbis)
7207 ("lua" ,lua-5.2) ;not compatible with 5.3
7208 ("mesa" ,mesa)
7209 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7210 (arguments
7211 `(#:tests? #f ;tests are broken
7212 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7213 (string-append "-DPIONEER_DATA_DIR="
7214 %output "/share/games/pioneer"))))
7215 (home-page "https://pioneerspacesim.net")
7216 (synopsis "Game of lonely space adventure")
7217 (description
7218 "Pioneer is a space adventure game set in our galaxy at the turn of the
7219 31st century. The game is open-ended, and you are free to eke out whatever
7220 kind of space-faring existence you can think of. Look for fame or fortune by
7221 exploring the millions of star systems. Turn to a life of crime as a pirate,
7222 smuggler or bounty hunter. Forge and break alliances with the various
7223 factions fighting for power, freedom or self-determination. The universe is
7224 whatever you make of it.")
7225 (license license:gpl3)))
7226
7227 (define-public badass
7228 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7229 (revision "0"))
7230 (package
7231 (name "badass")
7232 (version (git-version "0.0" revision commit))
7233 (source (origin
7234 (method git-fetch)
7235 (uri (git-reference
7236 (url "https://github.com/umayr/badass")
7237 (commit commit)))
7238 (file-name (git-file-name name version))
7239 (sha256
7240 (base32
7241 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7242 (build-system go-build-system)
7243 (arguments
7244 '(#:import-path "github.com/umayr/badass"))
7245 (synopsis "Hacking contribution graphs in git")
7246 (description
7247 "Badass generates false commits for a range of dates, essentially
7248 hacking the gamification of contribution graphs on platforms such as
7249 Github or Gitlab.")
7250 (home-page "https://github.com/umayr/badass")
7251 (license license:expat))))
7252
7253 (define-public colobot
7254 (package
7255 (name "colobot")
7256 (version "0.1.12-alpha")
7257 (source
7258 (origin
7259 (method git-fetch)
7260 (uri (git-reference
7261 (url "https://github.com/colobot/colobot")
7262 (commit (string-append "colobot-gold-" version))
7263 (recursive? #t))) ;for "data/" subdir
7264 (file-name (git-file-name name version))
7265 (sha256
7266 (base32
7267 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
7268 (build-system cmake-build-system)
7269 (arguments
7270 `(#:tests? #f ;no test
7271 #:phases
7272 (modify-phases %standard-phases
7273 (add-after 'unpack 'make-git-checkout-writable
7274 (lambda _
7275 (for-each make-file-writable (find-files "."))
7276 #t))
7277 (add-after 'unpack 'fix-directories
7278 (lambda _
7279 (substitute* "CMakeLists.txt"
7280 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7281 (string-append prefix "/bin"))
7282 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7283 (string-append prefix "/colobot")))
7284 #t))
7285 (add-after 'fix-directories 'install-music
7286 ;; Retrieve and install music files.
7287 (lambda* (#:key inputs #:allow-other-keys)
7288 ;; Installation process tries to download music files using
7289 ;; "wget" if not already present. Since we are going another
7290 ;; route, skip "wget" command check.
7291 (substitute* "data/music/CMakeLists.txt"
7292 (("find_program\\(WGET wget\\)") ""))
7293 ;; Populate "music/" directory.
7294 (let ((data (assoc-ref inputs "colobot-music")))
7295 (invoke "tar" "-xvf" data "-Cdata/music"))
7296 #t)))))
7297 (native-inputs
7298 `(("colobot-music"
7299 ,(origin
7300 (method url-fetch)
7301 (uri (string-append "https://colobot.info/files/music/"
7302 "colobot-music_ogg_" version ".tar.gz"))
7303 (sha256
7304 (base32
7305 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7306 ("gettext" ,gettext-minimal)
7307 ("librsvg" ,librsvg)
7308 ("po4a" ,po4a)
7309 ("python" ,python-wrapper)))
7310 (inputs
7311 `(("boost" ,boost)
7312 ("glew" ,glew)
7313 ("libogg" ,libogg)
7314 ("libpng" ,libpng)
7315 ("libsndfile" ,libsndfile)
7316 ("libvorbis" ,libvorbis)
7317 ("openal" ,openal)
7318 ("physfs" ,physfs)
7319 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7320 (synopsis "Educational programming strategy game")
7321 (description "Colobot: Gold Edition is a real-time strategy game, where
7322 you can program your units (bots) in a language called CBOT, which is similar
7323 to C++ and Java. Your mission is to find a new planet to live and survive.
7324 You can save humanity and get programming skills!")
7325 (home-page "https://colobot.info")
7326 (license license:gpl3+)))
7327
7328 (define-public gzdoom
7329 (package
7330 (name "gzdoom")
7331 (version "4.3.2")
7332 (source
7333 (origin
7334 (method git-fetch)
7335 (uri (git-reference
7336 (url "https://github.com/coelckers/gzdoom")
7337 (commit (string-append "g" version))))
7338 (file-name (git-file-name name version))
7339 (sha256
7340 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7341 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7342 "gzdoom-find-system-libgme.patch"))
7343 (modules '((guix build utils)))
7344 (snippet
7345 '(begin
7346 ;; Remove some bundled libraries. XXX There are more, but removing
7347 ;; them would require, at least, patching the build system.
7348 (with-directory-excursion "libraries"
7349 (delete-file-recursively "bzip2")
7350 (delete-file-recursively "game-music-emu")
7351 (delete-file-recursively "jpeg")
7352 (delete-file-recursively "zlib"))
7353 #t))))
7354 (arguments
7355 '(#:tests? #f
7356 #:configure-flags
7357 (let ((out (assoc-ref %outputs "out")))
7358 (list
7359 (string-append
7360 "-DCMAKE_CXX_FLAGS:="
7361 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7362 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7363
7364 ;; The build requires some extra convincing not to use the bundled
7365 ;; libgme previously deleted in the soure snippet.
7366 "-DFORCE_INTERNAL_GME=OFF"
7367
7368 ;; Link libraries at build time instead of loading them at run time.
7369 "-DDYN_OPENAL=OFF"
7370 "-DDYN_FLUIDSYNTH=OFF"
7371 "-DDYN_GTK=OFF"
7372 "-DDYN_MPG123=OFF"
7373 "-DDYN_SNDFILE=OFF"))
7374 #:phases
7375 (modify-phases %standard-phases
7376 (add-before 'configure 'fix-referenced-paths
7377 (lambda* (#:key inputs outputs #:allow-other-keys)
7378 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7379 (timidity++ (assoc-ref inputs "timidity++"))
7380 (out (assoc-ref outputs "out")))
7381
7382 (substitute*
7383 "src/CMakeLists.txt"
7384 (("COMMAND /bin/sh")
7385 (string-append "COMMAND " (which "sh"))))
7386
7387 (substitute*
7388 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7389 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7390 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7391
7392 (substitute*
7393 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7394 (("exename = \"timidity\"")
7395 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7396 #t))))))
7397 (build-system cmake-build-system)
7398 (inputs `(("bzip2" ,bzip2)
7399 ("fluid-3" ,fluid-3)
7400 ("fluidsynth" ,fluidsynth)
7401 ("gtk+3" ,gtk+)
7402 ("libgme" ,libgme)
7403 ("libjpeg" ,libjpeg-turbo)
7404 ("libsndfile" ,libsndfile)
7405 ("mesa" ,mesa)
7406 ("mpg123" ,mpg123)
7407 ("openal" ,openal)
7408 ("sdl2" ,sdl2)
7409 ("timidity++" ,timidity++)
7410 ("zlib" ,zlib)))
7411 (native-inputs `(("pkg-config" ,pkg-config)
7412 ("unzip" ,unzip)))
7413 (synopsis "Modern Doom 2 source port")
7414 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7415 renderer. It improves modding support with ZDoom's advanced mapping features
7416 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7417 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7418 (home-page "https://zdoom.org/index")
7419 ;; The source uses x86 assembly
7420 (supported-systems '("x86_64-linux" "i686-linux"))
7421 (license (list license:gpl3+ ; gzdoom game
7422 license:lgpl3+ ; gzdoom renderer
7423 license:expat ; gdtoa
7424 (license:non-copyleft ; modified dumb
7425 "file://dumb/licence.txt"
7426 "Dumb license, explicitly GPL compatible.")))))
7427
7428 (define-public odamex
7429 (package
7430 (name "odamex")
7431 (version "0.8.3")
7432 (source
7433 (origin
7434 (method url-fetch)
7435 (uri (string-append
7436 "mirror://sourceforge/odamex/Odamex/" version "/"
7437 "odamex-src-" version ".tar.gz"))
7438 (sha256
7439 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7440 (build-system cmake-build-system)
7441 (arguments `(#:tests? #f)) ; no tests
7442 (inputs
7443 `(("sdl" ,sdl)
7444 ("sdl-mixer" ,sdl-mixer)
7445 ("zlib" ,zlib)
7446 ("libpng" ,libpng)
7447 ("alsa-lib" ,alsa-lib)))
7448 (home-page "https://odamex.net/")
7449 (synopsis "Multiplayer Doom port")
7450 (description "Odamex is a modification of the Doom engine that
7451 allows players to easily join servers dedicated to playing Doom
7452 online.")
7453 (license license:gpl2+)))
7454
7455 (define-public chocolate-doom
7456 (package
7457 (name "chocolate-doom")
7458 (version "3.0.1")
7459 (source (origin
7460 (method url-fetch)
7461 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7462 version
7463 "/chocolate-doom-"
7464 version
7465 ".tar.gz"))
7466 (sha256
7467 (base32
7468 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7469 (build-system gnu-build-system)
7470 (inputs `(("sdl2-net" ,sdl2-net)
7471 ("sdl2-mixer" , sdl2-mixer)
7472 ("sdl2" ,sdl2)))
7473 (native-inputs
7474 `(("pkg-config" ,pkg-config)))
7475 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7476 Doom")
7477 (description
7478 "Chocolate Doom takes a different approach to other source ports. Its
7479 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7480 a conservative, historically accurate Doom source port, which is compatible
7481 with the thousands of mods and levels that were made before the Doom source
7482 code was released. Rather than flashy new graphics, Chocolate Doom's main
7483 features are its accurate reproduction of the game as it was played in the
7484 1990s. The project is developed around a carefully-considered philosophy that
7485 intentionally restricts which features may be added (and rejects any that
7486 affect gameplay).")
7487 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7488 (license license:gpl2)))
7489
7490 (define-public crispy-doom
7491 (package
7492 (inherit chocolate-doom)
7493 (name "crispy-doom")
7494 (version "5.8.0")
7495 (source (origin
7496 (method git-fetch)
7497 (uri (git-reference
7498 (url "https://github.com/fabiangreffrath/crispy-doom")
7499 (commit (string-append "crispy-doom-" version))))
7500 (file-name (git-file-name name version))
7501 (sha256
7502 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7503 (native-inputs
7504 (append
7505 (package-native-inputs chocolate-doom)
7506 `(("automake" ,automake)
7507 ("autoreconf" ,autoconf))))
7508 (arguments
7509 `(#:phases
7510 (modify-phases %standard-phases
7511 (replace 'bootstrap
7512 ;; The bundled autogen.sh script unconditionally runs ./configure.
7513 (lambda _ (invoke "autoreconf" "-vif"))))))
7514 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7515 Chocolate Doom")
7516 (description
7517 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7518 display resolution, removes the static limits of the Doom engine and offers
7519 further optional visual, tactical and physical enhancements while remaining
7520 entirely config file, savegame, netplay and demo compatible with the
7521 original.")
7522 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7523
7524 (define shlomif-cmake-modules
7525 (origin
7526 (method url-fetch)
7527 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7528 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7529 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7530 (sha256
7531 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7532
7533 (define-public rinutils
7534 (package
7535 (name "rinutils")
7536 (version "0.2.0")
7537 (source (origin
7538 (method git-fetch)
7539 (uri (git-reference
7540 (url "https://github.com/shlomif/rinutils")
7541 (commit version)))
7542 (file-name (git-file-name name version))
7543 (sha256
7544 (base32
7545 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7546 (native-inputs
7547 `(("perl" ,perl)
7548 ;; The following is only needed for tests.
7549 ("perl-file-find-object" ,perl-file-find-object)
7550 ("perl-test-differences" ,perl-test-differences)
7551 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7552 ("perl-io-all" ,perl-io-all)
7553 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7554 ("cmake-rules" ,shlomif-cmake-modules)
7555 ("pkg-config" ,pkg-config)))
7556 (inputs
7557 `(("cmocka" ,cmocka)
7558 ("perl-env-path" ,perl-env-path)
7559 ("perl-inline" ,perl-inline)
7560 ("perl-inline-c" ,perl-inline-c)
7561 ("perl-string-shellquote" ,perl-string-shellquote)
7562 ("perl-test-trailingspace" ,perl-test-trailingspace)
7563 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7564 ("perl-text-glob" ,perl-text-glob)
7565 ("perl-number-compare" ,perl-number-compare)
7566 ("perl-moo" ,perl-moo)))
7567 (arguments
7568 `(#:phases
7569 (modify-phases %standard-phases
7570 (add-after 'unpack 'fix-build-env
7571 (lambda* (#:key inputs #:allow-other-keys)
7572 (use-modules (guix build utils))
7573 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7574 (copy-file cmake-rules
7575 (string-append "cmake/"
7576 (strip-store-file-name cmake-rules)))
7577 #t)))
7578 (replace 'check
7579 (lambda _
7580 (with-directory-excursion "../source"
7581 (setenv "FCS_TEST_BUILD" "1")
7582 (setenv "RINUTILS_TEST_BUILD" "1")
7583 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7584 ;; which requires tidy-all.
7585 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7586 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7587 (build-system cmake-build-system)
7588 (home-page "https://www.shlomifish.org/open-source/projects/")
7589 (synopsis "C11 / gnu11 utilities C library")
7590 (description "This package provides C11 / gnu11 utilities C library")
7591 (license license:expat)))
7592
7593 (define-public fortune-mod
7594 (package
7595 (name "fortune-mod")
7596 (version "2.28.0")
7597 (source
7598 (origin
7599 (method git-fetch)
7600 (uri (git-reference
7601 (url "https://github.com/shlomif/fortune-mod")
7602 (commit (string-append "fortune-mod-" version))))
7603 (file-name (git-file-name name version))
7604 (sha256
7605 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7606 (build-system cmake-build-system)
7607 (arguments
7608 `(#:test-target "check"
7609 #:phases
7610 (modify-phases %standard-phases
7611 (add-after 'unpack 'fix-build-env
7612 (lambda* (#:key inputs #:allow-other-keys)
7613 (use-modules (guix build utils))
7614 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7615 (copy-file cmake-rules
7616 (string-append "fortune-mod/cmake/"
7617 (strip-store-file-name cmake-rules)))
7618 (chdir "fortune-mod")
7619 ;; TODO: Valgrind tests fail for some reason.
7620 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7621 (delete-file "tests/t/valgrind.t")
7622 #t)))
7623 (add-after 'install 'fix-install-directory
7624 (lambda* (#:key outputs #:allow-other-keys)
7625 ;; Move binary from "games/" to "bin/" and remove the latter. This
7626 ;; is easier than patching CMakeLists.txt since the tests hard-code
7627 ;; the location as well.
7628 (let* ((out (assoc-ref outputs "out"))
7629 (bin (string-append out "/bin"))
7630 (games (string-append out "/games")))
7631 (rename-file (string-append games "/fortune")
7632 (string-append bin "/fortune"))
7633 (rmdir games)
7634 #t))))))
7635 (inputs `(("recode" ,recode)))
7636 (native-inputs
7637 `(("perl" ,perl)
7638 ;; The following is only needed for tests.
7639 ("perl-file-find-object" ,perl-file-find-object)
7640 ("perl-test-differences" ,perl-test-differences)
7641 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7642 ("perl-io-all" ,perl-io-all)
7643 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7644 ("cmake-rules" ,shlomif-cmake-modules)
7645 ("rinutils" ,rinutils)))
7646 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7647 (synopsis "The Fortune Cookie program from BSD games")
7648 (description "Fortune is a command-line utility which displays a random
7649 quotation from a collection of quotes.")
7650 (license license:bsd-4)))
7651
7652 (define xonotic-data
7653 (package
7654 (name "xonotic-data")
7655 (version "0.8.2")
7656 (source
7657 (origin
7658 (method url-fetch)
7659 (uri (string-append "http://dl.xonotic.org/xonotic-"
7660 version ".zip"))
7661 (file-name (string-append name "-" version ".zip"))
7662 (sha256
7663 (base32
7664 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7665 (build-system trivial-build-system)
7666 (native-inputs
7667 `(("unzip" ,unzip)))
7668 (arguments
7669 `(#:modules ((guix build utils))
7670 #:builder
7671 (begin
7672 (use-modules (guix build utils))
7673 (let* ((out (assoc-ref %outputs "out"))
7674 (xonotic (string-append out "/share/xonotic"))
7675 (source (assoc-ref %build-inputs "source"))
7676 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7677 (copy-file source (string-append ,name "-" ,version ".zip"))
7678 (invoke unzip (string-append ,name "-" ,version ".zip"))
7679 (mkdir-p out)
7680 (mkdir-p xonotic)
7681 (chdir "Xonotic")
7682 (copy-recursively "data"
7683 (string-append xonotic "/data"))
7684 (copy-recursively "server"
7685 (string-append xonotic "/server"))
7686 (install-file "key_0.d0pk" xonotic)))))
7687 (home-page "http://xonotic.org")
7688 (synopsis "Data files for Xonotic")
7689 (description
7690 "Xonotic-data provides the data files required by the game Xonotic.")
7691 (license (list license:gpl2+
7692 (license:x11-style "file://server/rcon.pl")))))
7693
7694 (define-public xonotic
7695 (package
7696 (name "xonotic")
7697 (version "0.8.2")
7698 (source
7699 (origin
7700 (method url-fetch)
7701 (uri (string-append "http://dl.xonotic.org/xonotic-"
7702 version "-source.zip"))
7703 (file-name (string-append name "-" version ".zip"))
7704 (sha256
7705 (base32
7706 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7707 (build-system gnu-build-system)
7708 (arguments
7709 `(#:configure-flags (list (string-append "--prefix="
7710 (assoc-ref %outputs "out"))
7711 "--disable-rijndael")
7712 #:phases
7713 (modify-phases %standard-phases
7714 (add-before 'configure 'make-darkplaces
7715 (lambda* (#:key outputs #:allow-other-keys)
7716 (let* ((out (assoc-ref outputs "out"))
7717 (sharedir (string-append out "/share/xonotic/")))
7718 (invoke "make" "-C" "source/darkplaces"
7719 (string-append "DP_FS_BASEDIR="
7720 sharedir)
7721 "DP_LINK_TO_LIBJPEG=1"
7722 "DP_SOUND_API=ALSA"
7723 "CC=gcc"
7724 "-f" "makefile"
7725 "cl-release")
7726 (invoke "make" "-C" "source/darkplaces"
7727 (string-append "DP_FS_BASEDIR="
7728 sharedir)
7729 "DP_LINK_TO_LIBJPEG=1"
7730 "DP_SOUND_API=ALSA"
7731 "CC=gcc"
7732 "-f" "makefile"
7733 "sdl-release")
7734 (invoke "make" "-C" "source/darkplaces"
7735 (string-append "DP_FS_BASEDIR="
7736 sharedir)
7737 "DP_LINK_TO_LIBJPEG=1"
7738 "DP_SOUND_API=ALSA"
7739 "CC=gcc"
7740 "-f" "makefile"
7741 "sv-release"))))
7742 (add-before 'configure 'bootstrap
7743 (lambda _
7744 (chdir "source/d0_blind_id")
7745 (invoke "sh" "autogen.sh")))
7746 (add-after 'build 'install-desktop-entry
7747 (lambda* (#:key outputs #:allow-other-keys)
7748 ;; Add .desktop files for the 2 variants and the symlink
7749 (let* ((output (assoc-ref outputs "out"))
7750 (apps (string-append output "/share/applications")))
7751 (mkdir-p apps)
7752 (with-output-to-file
7753 (string-append apps "/xonotic-glx.desktop")
7754 (lambda _
7755 (format #t
7756 "[Desktop Entry]~@
7757 Name=xonotic-glx~@
7758 Comment=Xonotic glx~@
7759 Exec=~a/bin/xonotic-glx~@
7760 TryExec=~@*~a/bin/xonotic-glx~@
7761 Icon=xonotic~@
7762 Categories=Game~@
7763 Type=Application~%"
7764 output)))
7765 (with-output-to-file
7766 (string-append apps "/xonotic-sdl.desktop")
7767 (lambda _
7768 (format #t
7769 "[Desktop Entry]~@
7770 Name=xonotic-sdl~@
7771 Comment=Xonotic sdl~@
7772 Exec=~a/bin/xonotic-sdl~@
7773 TryExec=~@*~a/bin/xonotic-sdl~@
7774 Icon=xonotic~@
7775 Categories=Game~@
7776 Type=Application~%"
7777 output)))
7778 (with-output-to-file
7779 (string-append apps "/xonotic.desktop")
7780 (lambda _
7781 (format #t
7782 "[Desktop Entry]~@
7783 Name=xonotic~@
7784 Comment=Xonotic~@
7785 Exec=~a/bin/xonotic-glx~@
7786 TryExec=~@*~a/bin/xonotic~@
7787 Icon=xonotic~@
7788 Categories=Game~@
7789 Type=Application~%"
7790 output)))
7791 #t)))
7792 (add-after 'install-desktop-entry 'install-icons
7793 (lambda* (#:key outputs #:allow-other-keys)
7794 (let ((out (assoc-ref outputs "out")))
7795 (with-directory-excursion "../../misc/logos/icons_png/"
7796 (for-each
7797 (lambda (file)
7798 (let* ((size (string-filter char-numeric? file))
7799 (icons (string-append out "/share/icons/hicolor/"
7800 size "x" size "/apps")))
7801 (mkdir-p icons)
7802 (copy-file file (string-append icons "/xonotic.png"))))
7803 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7804 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7805 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7806 (add-after 'install-icons 'install-binaries
7807 (lambda* (#:key outputs #:allow-other-keys)
7808 (let ((out (assoc-ref outputs "out")))
7809 (define (install src dst)
7810 (let ((dst (string-append out dst)))
7811 (mkdir-p (dirname dst))
7812 (copy-file src dst)))
7813 (mkdir-p (string-append out "/bin"))
7814 (install "../darkplaces/darkplaces-dedicated"
7815 "/bin/xonotic-dedicated")
7816 (install "../darkplaces/darkplaces-glx"
7817 "/bin/xonotic-glx")
7818 (install "../darkplaces/darkplaces-sdl"
7819 "/bin/xonotic-sdl")
7820 ;; Provide a default xonotic executable, defaulting to SDL.
7821 (symlink (string-append out "/bin/xonotic-sdl")
7822 (string-append out "/bin/xonotic"))
7823 #t)))
7824 (add-after 'install-binaries 'install-data
7825 (lambda* (#:key outputs inputs #:allow-other-keys)
7826 (let* ((out (assoc-ref outputs "out"))
7827 (data (assoc-ref inputs "xonotic-data")))
7828 (symlink (string-append data "/share/xonotic")
7829 (string-append out "/share/xonotic"))
7830 #t)))
7831 (add-after 'install-binaries 'wrap-binaries
7832 (lambda* (#:key outputs inputs #:allow-other-keys)
7833 ;; Curl and libvorbis need to be wrapped so that we get
7834 ;; sound and networking.
7835 (let* ((out (assoc-ref outputs "out"))
7836 (bin (string-append out "/bin/xonotic"))
7837 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7838 (bin-glx (string-append out "/bin/xonotic-glx"))
7839 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7840 (curl (assoc-ref inputs "curl"))
7841 (vorbis (assoc-ref inputs "libvorbis")))
7842 (wrap-program bin
7843 `("LD_LIBRARY_PATH" ":" prefix
7844 (,(string-append curl "/lib:" vorbis "/lib"))))
7845 (wrap-program bin-sdl
7846 `("LD_LIBRARY_PATH" ":" prefix
7847 (,(string-append curl "/lib:" vorbis "/lib"))))
7848 (wrap-program bin-glx
7849 `("LD_LIBRARY_PATH" ":" prefix
7850 (,(string-append curl "/lib:" vorbis "/lib"))))
7851 (wrap-program bin-dedicated
7852 `("LD_LIBRARY_PATH" ":" prefix
7853 (,(string-append curl "/lib:" vorbis "/lib"))))
7854 #t))))))
7855 (inputs
7856 `(("xonotic-data" ,xonotic-data)
7857 ("alsa-lib" ,alsa-lib)
7858 ("curl" ,curl)
7859 ("libjpeg" ,libjpeg-turbo)
7860 ("libmodplug" ,libmodplug)
7861 ("libvorbis" ,libvorbis)
7862 ("libogg" ,libogg)
7863 ("libxpm" ,libxpm)
7864 ("libxxf86dga" ,libxxf86dga)
7865 ("libxxf86vm" ,libxxf86vm)
7866 ("libx11" ,libx11)
7867 ("libxext" ,libxext)
7868 ("libxau" ,libxau)
7869 ("libxdmcp" ,libxdmcp)
7870 ("mesa" ,mesa)
7871 ("glu" ,glu)
7872 ("freetype" ,freetype)
7873 ("sdl2" ,sdl2)
7874 ("libpng" ,libpng)
7875 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7876 (native-inputs
7877 `(("unzip" ,unzip)
7878 ("autoconf" ,autoconf)
7879 ("automake" ,automake)
7880 ("pkg-config" ,pkg-config)
7881 ("libtool" ,libtool)
7882 ("gmp" ,gmp)))
7883 (home-page "https://xonotic.org")
7884 (synopsis "Fast-paced first-person shooter game")
7885 (description
7886 "Xonotic is a free, fast-paced first-person shooter.
7887 The project is geared towards providing addictive arena shooter
7888 gameplay which is all spawned and driven by the community itself.
7889 Xonotic is a direct successor of the Nexuiz project with years of
7890 development between them, and it aims to become the best possible
7891 open-source FPS of its kind.")
7892 (license (list license:gpl2+
7893 license:bsd-3 ; /source/d0_blind_id folder and others
7894 (license:x11-style "" "See file rcon.pl.")))))
7895
7896 (define-public frotz
7897 (package
7898 (name "frotz")
7899 (version "2.44")
7900 (source (origin
7901 (method url-fetch)
7902 (uri (list (string-append
7903 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7904 "frotz/frotz-" version ".tar.gz")
7905 (string-append
7906 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7907 "frotz/frotz-" version ".tar.gz")))
7908 (sha256
7909 (base32
7910 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7911 (build-system gnu-build-system)
7912 (arguments
7913 `(#:tests? #f ; there are no tests
7914 #:phases
7915 (modify-phases %standard-phases
7916 (delete 'configure)
7917 (add-before 'build 'curses
7918 (lambda _
7919 (substitute* "Makefile"
7920 (("lcurses") "lncurses"))
7921 #t))
7922 (replace 'install
7923 (lambda* (#:key outputs #:allow-other-keys)
7924 (let* ((out (assoc-ref outputs "out"))
7925 (bin (string-append out "/bin"))
7926 (man (string-append out "/share/man/man6")))
7927 (install-file "frotz" bin)
7928 (mkdir-p man)
7929 (install-file "doc/frotz.6" man)
7930 #t))))))
7931 (inputs `(("libmodplug" ,libmodplug)
7932 ("libsamplerate" ,libsamplerate)
7933 ("libsndfile" ,libsndfile)
7934 ("libvorbis" ,libvorbis)
7935 ("ncurses" ,ncurses)))
7936 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7937 (description "Frotz is an interpreter for Infocom games and other Z-machine
7938 games in the text adventure/interactive fiction genre. This version of Frotz
7939 complies with standard 1.0 of Graham Nelson's specification. It plays all
7940 Z-code games V1-V8, including V6, with sound support through libao, and uses
7941 ncurses for text display.")
7942 (home-page "http://frotz.sourceforge.net")
7943 (license license:gpl2+)))
7944
7945 (define-public frotz-dumb-terminal
7946 (package
7947 (name "frotz-dumb-terminal")
7948 (version "2.44")
7949 (source (origin
7950 (method url-fetch)
7951 (uri (list (string-append
7952 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7953 "frotz/frotz-" version ".tar.gz")
7954 (string-append
7955 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7956 "frotz/frotz-" version ".tar.gz")))
7957 (sha256
7958 (base32
7959 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7960 (build-system gnu-build-system)
7961 (arguments
7962 `(#:tests? #f ; there are no tests
7963 #:phases
7964 (modify-phases %standard-phases
7965 (delete 'configure)
7966 (replace 'build
7967 (lambda _
7968 (invoke "make" "dumb")))
7969 (replace 'install
7970 (lambda* (#:key outputs #:allow-other-keys)
7971 (let* ((out (assoc-ref outputs "out"))
7972 (bin (string-append out "/bin"))
7973 (man (string-append out "/share/man/man6")))
7974 (install-file "dfrotz" bin)
7975 (mkdir-p man)
7976 (install-file "doc/dfrotz.6" man)
7977 #t))))))
7978 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7979 (description "Frotz is an interpreter for Infocom games and
7980 other Z-machine games in the text adventure/interactive fiction genre.
7981 dfrotz is the dumb interface version. You get no screen control; everything
7982 is just printed to the terminal line by line. The terminal handles all the
7983 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7984 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7985 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7986 to play games on webpages. It can also be made into a chat bot.")
7987 (home-page "http://frotz.sourceforge.net")
7988 (license license:gpl2+)))
7989
7990 (define-public frotz-sdl
7991 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7992 (package
7993 (name "frotz-sdl")
7994 (version "2.45pre")
7995 (source (origin
7996 (method git-fetch)
7997 (uri (git-reference
7998 (url "https://gitlab.com/DavidGriffith/frotz")
7999 (commit commit)))
8000 (sha256
8001 (base32
8002 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
8003 (file-name (git-file-name name version))))
8004 (build-system gnu-build-system)
8005 (arguments
8006 `(#:tests? #f ; there are no tests
8007 #:phases
8008 (modify-phases %standard-phases
8009 (delete 'configure)
8010 (add-before 'build 'patch-makefile
8011 (lambda _
8012 (substitute* "Makefile"
8013 (("lcurses") "lncurses")
8014 (("^BUILD_DATE_TIME =.*$")
8015 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
8016 #t))
8017 (replace 'build
8018 (lambda _
8019 (invoke "make" "sdl")))
8020 (replace 'install
8021 (lambda* (#:key outputs #:allow-other-keys)
8022 (let* ((out (assoc-ref outputs "out"))
8023 (bin (string-append out "/bin"))
8024 (man (string-append out "/share/man/man6")))
8025 (install-file "sfrotz" bin)
8026 (mkdir-p man)
8027 (install-file "doc/sfrotz.6" man)
8028 #t))))))
8029 (native-inputs
8030 `(("pkg-config" ,pkg-config)
8031 ("which" ,which)
8032 ("perl" ,perl)))
8033 (inputs `(("sdl2" ,sdl2)
8034 ("sdl2-mixer" ,sdl2-mixer)
8035 ("libmodplug" ,libmodplug)
8036 ("libsamplerate" ,libsamplerate)
8037 ("libsndfile" ,libsndfile)
8038 ("libvorbis" ,libvorbis)
8039 ("ncurses" ,ncurses)
8040 ("freetype" ,freetype)
8041 ("libjpeg-turbo" ,libjpeg-turbo)))
8042 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
8043 (description "Frotz is an interpreter for Infocom games and other Z-machine
8044 games in the text adventure/interactive fiction genre. This version of Frotz
8045 using SDL fully supports all these versions of the Z-Machine including the
8046 graphical version 6. Graphics and sound are created through the use of the SDL
8047 libraries. AIFF sound effects and music in MOD and OGG formats are supported
8048 when packaged in Blorb container files or optionally from individual files.")
8049 (home-page "http://frotz.sourceforge.net")
8050 (license license:gpl2+))))
8051
8052 (define-public frozen-bubble
8053 ;; Last official release is very outdated (2010). Use latest commit (2017).
8054 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
8055 (revision "1"))
8056 (package
8057 (name "frozen-bubble")
8058 (version (git-version "2.2.1" revision commit))
8059 (source
8060 (origin
8061 (method git-fetch)
8062 (uri (git-reference
8063 (url "https://github.com/kthakore/frozen-bubble")
8064 (commit commit)))
8065 (file-name (git-file-name name version))
8066 (sha256
8067 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
8068 (build-system perl-build-system)
8069 (arguments
8070 `(#:phases
8071 (modify-phases %standard-phases
8072 ;; Build process needs to create files in the "server"
8073 ;; directory.
8074 (add-after 'unpack 'fix-permissions
8075 (lambda _
8076 (for-each make-file-writable
8077 (find-files "server" "." #:directories? #t))))
8078 ;; By default, build stops at warnings.
8079 (add-after 'unpack 'prevent-build-error
8080 (lambda _
8081 (substitute* "inc/My/Builder.pm"
8082 (("-Werror") ""))
8083 #t))
8084 (add-after 'install 'install-desktop-file-and-icons
8085 (lambda* (#:key outputs #:allow-other-keys)
8086 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
8087 (hicolor (string-append share "/icons/hicolor")))
8088 ;; Create desktop entry.
8089 (make-desktop-entry-file
8090 (string-append share "/applications/" ,name ".desktop")
8091 #:name "Frozen Bubble"
8092 #:comment "Frozen Bubble arcade game"
8093 #:exec ,name
8094 #:icon ,name
8095 #:categories '("Game" "ArcadeGame"))
8096 ;; Add icons.
8097 (with-directory-excursion "share/icons"
8098 (for-each
8099 (lambda (size)
8100 (let* ((dim (string-append size "x" size))
8101 (dir (string-append hicolor "/" dim "/apps")))
8102 (mkdir-p dir)
8103 (copy-file
8104 (string-append "frozen-bubble-icon-" dim ".png")
8105 (string-append dir "/frozen-bubble.png"))))
8106 '("16" "32" "48" "64"))))
8107 #t))
8108 (add-after 'install 'wrap-perl-libs
8109 (lambda* (#:key outputs #:allow-other-keys)
8110 (let ((out (assoc-ref outputs "out"))
8111 (perl5lib (getenv "PERL5LIB")))
8112 (for-each (lambda (prog)
8113 (wrap-program (string-append out "/" prog)
8114 `("PERL5LIB" ":" prefix
8115 (,(string-append perl5lib ":" out
8116 "/lib/perl5/site_perl")))))
8117 (find-files "bin" ".")))
8118 #t)))))
8119 (native-inputs
8120 `(("perl-alien-sdl" ,perl-alien-sdl)
8121 ("perl-capture-tiny" ,perl-capture-tiny)
8122 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
8123 ("perl-module-build" ,perl-module-build)
8124 ("pkg-config" ,pkg-config)))
8125 (inputs
8126 `(("glib" ,glib)
8127 ("perl-compress-bzip2" ,perl-compress-bzip2)
8128 ("perl-file-sharedir" ,perl-file-sharedir)
8129 ("perl-file-slurp" ,perl-file-slurp)
8130 ("perl-file-which" ,perl-file-which)
8131 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
8132 ("perl-sdl" ,perl-sdl)
8133 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
8134 (home-page "http://frozen-bubble.org/")
8135 (synopsis "Puzzle with bubbles")
8136 (description
8137 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
8138 you attempt to shoot bubbles into groups of the same color to cause them to
8139 pop.
8140
8141 Players compete as penguins and must use the arrow keys to aim a colored
8142 bubble at groups of bubbles. The objective is to clear all the bubbles off
8143 the screen before a bubble passes below a line at the bottom.
8144
8145 It features 100 single-player levels, a two-player mode, music and striking
8146 graphics. A level editor is also included to allow players to create and play
8147 their own levels.")
8148 (license license:gpl2))))
8149
8150 (define-public libmanette
8151 (package
8152 (name "libmanette")
8153 (version "0.2.6")
8154 (source (origin
8155 (method url-fetch)
8156 (uri (string-append "mirror://gnome/sources/libmanette/"
8157 (version-major+minor version) "/"
8158 "libmanette-" version ".tar.xz"))
8159 (sha256
8160 (base32
8161 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
8162 (build-system meson-build-system)
8163 (native-inputs
8164 `(("glib" ,glib "bin") ; for glib-compile-resources
8165 ("gobject-introspection" ,gobject-introspection)
8166 ("pkg-config" ,pkg-config)
8167 ("vala" ,vala)))
8168 (inputs
8169 `(("libevdev" ,libevdev)
8170 ("libgudev" ,libgudev)))
8171 (home-page "https://wiki.gnome.org/Apps/Games")
8172 (synopsis "Game controller library")
8173 (description "Libmanette is a small GObject library giving you simple
8174 access to game controllers. It supports the de-facto standard gamepads as
8175 defined by the W3C standard Gamepad specification or as implemented by the SDL
8176 GameController.")
8177 (license license:lgpl2.1+)))
8178
8179 (define-public quadrapassel
8180 (package
8181 (name "quadrapassel")
8182 (version "3.36.05")
8183 (source (origin
8184 (method url-fetch)
8185 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8186 (version-major+minor version) "/"
8187 "quadrapassel-" version ".tar.xz"))
8188 (sha256
8189 (base32
8190 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8191 (build-system meson-build-system)
8192 (arguments
8193 '(#:glib-or-gtk? #t
8194 #:phases
8195 (modify-phases %standard-phases
8196 (add-after 'unpack 'skip-gtk-update-icon-cache
8197 ;; Don't create 'icon-theme.cache'.
8198 (lambda _
8199 (substitute* "build-aux/meson_post_install.py"
8200 (("gtk-update-icon-cache") (which "true")))
8201 #t)))))
8202 (native-inputs
8203 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8204 ("gettext" ,gettext-minimal)
8205 ("glib" ,glib "bin") ;for glib-compile-resources
8206 ("itstool" ,itstool)
8207 ("libxml2" ,libxml2) ;for xmllint
8208 ("pkg-config" ,pkg-config)
8209 ("vala" ,vala)))
8210 (inputs
8211 `(("clutter" ,clutter)
8212 ("clutter-gtk" ,clutter-gtk)
8213 ("gsound" ,gsound)
8214 ("gtk+" ,gtk+)
8215 ("libcanberra" ,libcanberra)
8216 ("libmanette" ,libmanette)
8217 ("librsvg" ,librsvg)))
8218 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8219 (synopsis "GNOME version of Tetris")
8220 (description "Quadrapassel comes from the classic falling-block game,
8221 Tetris. The goal of the game is to create complete horizontal lines of
8222 blocks, which will disappear. The blocks come in seven different shapes made
8223 from four blocks each: one straight, two L-shaped, one square, and two
8224 S-shaped. The blocks fall from the top center of the screen in a random
8225 order. You rotate the blocks and move them across the screen to drop them in
8226 complete lines. You score by dropping blocks fast and completing lines. As
8227 your score gets higher, you level up and the blocks fall faster.")
8228 (license license:gpl2+)))
8229
8230 (define-public endless-sky
8231 (package
8232 (name "endless-sky")
8233 (version "0.9.12")
8234 (source
8235 (origin
8236 (method git-fetch)
8237 (uri (git-reference
8238 (url "https://github.com/endless-sky/endless-sky")
8239 (commit (string-append "v" version))))
8240 (file-name (git-file-name name version))
8241 (sha256
8242 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
8243 (build-system scons-build-system)
8244 (arguments
8245 `(#:scons ,scons-python2
8246 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8247 #:tests? #f ; no tests
8248 #:phases
8249 (modify-phases %standard-phases
8250 (add-after 'unpack 'patch-resource-locations
8251 (lambda* (#:key outputs #:allow-other-keys)
8252 (substitute* "source/Files.cpp"
8253 (("/usr/local/")
8254 (string-append (assoc-ref outputs "out") "/")))
8255 #t))
8256 (add-after 'unpack 'patch-scons
8257 (lambda _
8258 (substitute* "SConstruct"
8259 ;; Keep environmental variables
8260 (("Environment\\(\\)")
8261 "Environment(ENV = os.environ)")
8262 ;; Install into %out/bin
8263 (("games\"") "bin\""))
8264 #t)))))
8265 (inputs
8266 `(("glew" ,glew)
8267 ("libjpeg" ,libjpeg-turbo)
8268 ("libmad" ,libmad)
8269 ("libpng" ,libpng)
8270 ("openal" ,openal)
8271 ("sdl2" ,sdl2)))
8272 (home-page "https://endless-sky.github.io/")
8273 (synopsis "2D space trading and combat game")
8274 (description "Endless Sky is a 2D space trading and combat game. Explore
8275 other star systems. Earn money by trading, carrying passengers, or completing
8276 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8277 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8278 leave human space behind and hope to find friendly aliens whose culture is more
8279 civilized than your own.")
8280 (license (list license:gpl3+
8281 license:cc-by-sa3.0
8282 license:cc-by-sa4.0
8283 license:public-domain))))
8284
8285 (define-public stepmania
8286 (package
8287 (name "stepmania")
8288 (version "5.1.0-b2")
8289 (source
8290 (origin
8291 (method git-fetch)
8292 (uri (git-reference
8293 (url "https://github.com/stepmania/stepmania")
8294 (commit (string-append "v" version))))
8295 (file-name (git-file-name name version))
8296 (sha256
8297 (base32
8298 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8299 (modules '((guix build utils)))
8300 (snippet
8301 '(begin
8302 ;; Remove song files, which are licensed under a non-commercial
8303 ;; clause, and a course pointing to them.
8304 (for-each delete-file-recursively
8305 '("Songs/StepMania 5/Goin' Under"
8306 "Songs/StepMania 5/MechaTribe Assault"
8307 "Songs/StepMania 5/Springtime"))
8308 (for-each delete-file '("Courses/Default/Jupiter.crs"
8309 "Courses/Default/Jupiter.png"))
8310 ;; Unbundle libpng.
8311 (substitute* "extern/CMakeLists.txt"
8312 (("include\\(CMakeProject-png.cmake\\)") ""))
8313 (delete-file-recursively "extern/libpng")
8314 #t))))
8315 (build-system cmake-build-system)
8316 (arguments
8317 `(#:tests? #f ;FIXME: couldn't find how to run tests
8318 #:build-type "Release"
8319 #:out-of-source? #f ;for the 'install-desktop' phase
8320 #:configure-flags
8321 (list "-DWITH_SYSTEM_FFMPEG=1"
8322 ;; SSE instructions are available on Intel systems only.
8323 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8324 (%current-system)))
8325 '("x86_64" "i686"))
8326 '()
8327 '("-DWITH_SSE2=NO"))
8328 ;; Configuration cannot find GTK2 without the two following
8329 ;; flags.
8330 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8331 (assoc-ref %build-inputs "gtk+")
8332 "/lib/gtk-2.0/include")
8333 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8334 (assoc-ref %build-inputs "glib")
8335 "/lib/glib-2.0/include"))
8336 #:phases
8337 (modify-phases %standard-phases
8338 (add-after 'unpack 'ensure-application-files-can-be-found
8339 (lambda* (#:key outputs #:allow-other-keys)
8340 (let ((out (assoc-ref outputs "out")))
8341 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8342 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8343 (string-append "\"" out
8344 "/share/stepmania/GtkModule.so\"")))
8345 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8346 (("Root = sDirOfExecutable")
8347 (string-append "Root = \"" out "/share/stepmania/\""))
8348 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8349 (string-append "\"" out "/share/stepmania/" dir "\"")))
8350 (substitute* "src/RageFileManager.cpp"
8351 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8352 (string-append "\"" out "/share/stepmania/\""))))
8353 #t))
8354 (add-after 'unpack 'fix-install-subdir
8355 ;; Installation would be done in "%out/stepmania-X.Y", but we
8356 ;; prefer the more common layout "%out/share/stepmania".
8357 (lambda _
8358 (substitute* "src/CMakeLists.txt"
8359 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8360 #t))
8361 (add-after 'unpack 'unbundle-libpng
8362 (lambda* (#:key inputs #:allow-other-keys)
8363 (substitute* "src/CMakeLists.txt"
8364 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8365 (string-append (assoc-ref inputs "libpng") "/include")))
8366 #t))
8367 (add-after 'install 'install-executable
8368 (lambda* (#:key outputs #:allow-other-keys)
8369 (let* ((out (assoc-ref outputs "out"))
8370 (bin (string-append out "/bin"))
8371 (exe (string-append out "/share/stepmania/stepmania")))
8372 (mkdir-p bin)
8373 (symlink exe (string-append bin "/stepmania"))
8374 #t)))
8375 (add-after 'install-executable 'install-desktop
8376 (lambda* (#:key outputs #:allow-other-keys)
8377 (let* ((out (assoc-ref outputs "out"))
8378 (share (string-append out "/share"))
8379 (applications (string-append share "/applications"))
8380 (icons (string-append share "/icons")))
8381 (install-file "stepmania.desktop" applications)
8382 (mkdir-p icons)
8383 (copy-recursively "icons" icons)
8384 #t)))
8385 ;; Move documentation in a more usual place, i.e.,
8386 ;; "%out/share/doc/stepmania/".
8387 (add-after 'install-desktop 'install-doc
8388 (lambda* (#:key outputs #:allow-other-keys)
8389 (let* ((out (assoc-ref outputs "out"))
8390 (share (string-append out "/share")))
8391 (with-directory-excursion share
8392 (mkdir-p "doc")
8393 (symlink "../stepmania/Docs" "doc/stepmania"))
8394 #t))))))
8395 (native-inputs
8396 `(("pkg-config" ,pkg-config)
8397 ("yasm" ,yasm)))
8398 (inputs
8399 `(("alsa-lib" ,alsa-lib)
8400 ;; Per upstream, StepMania is only guaranteed to work with a very
8401 ;; specific FFmpeg version, which is included in the repository as
8402 ;; a Git submodule. This particular version requirement usually
8403 ;; changes every few years.
8404 ("ffmpeg" ,ffmpeg-for-stepmania)
8405 ("glib" ,glib)
8406 ("glew" ,glew)
8407 ("gtk+" ,gtk+-2)
8408 ("jsoncpp" ,jsoncpp)
8409 ("libpng" ,libpng)
8410 ("libjpeg" ,libjpeg-turbo)
8411 ("libmad" ,libmad)
8412 ("libogg" ,libogg)
8413 ("libva" ,libva)
8414 ("libvorbis" ,libvorbis)
8415 ("libxinerama" ,libxinerama)
8416 ("libxrandr" ,libxrandr)
8417 ("mesa" ,mesa)
8418 ("pcre" ,pcre)
8419 ("pulseaudio" ,pulseaudio)
8420 ("sdl" ,sdl2)
8421 ("udev" ,eudev)
8422 ("zlib" ,zlib)))
8423 (synopsis "Advanced rhythm game designed for both home and arcade use")
8424 (description "StepMania is a dance and rhythm game. It features 3D
8425 graphics, keyboard and dance pad support, and an editor for creating your own
8426 steps.
8427
8428 This package provides the core application, but no song is shipped. You need
8429 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8430 (home-page "https://www.stepmania.com")
8431 (license license:expat)))
8432
8433 (define-public oshu
8434 (package
8435 (name "oshu")
8436 (version "2.0.1")
8437 (source
8438 (origin
8439 (method git-fetch)
8440 (uri (git-reference
8441 (url "https://github.com/fmang/oshu")
8442 (commit version)))
8443 (file-name (git-file-name name version))
8444 (sha256
8445 (base32
8446 "1g598incc6zlls876slgwqblwiwiszkmqa4xpzw0z7mbjmmzsizz"))))
8447 (build-system cmake-build-system)
8448 (arguments
8449 `(#:phases
8450 (modify-phases %standard-phases
8451 (add-before 'check 'pre-check
8452 ;; `make test' doesn't actually build the test executable
8453 (lambda _ (invoke "make" "zerotokei"))))))
8454 (native-inputs
8455 `(("pkg-config" ,pkg-config)))
8456 (inputs
8457 `(("cairo" ,cairo)
8458 ("ffmpeg" ,ffmpeg)
8459 ("pango" ,pango)
8460 ("sdl2" ,sdl2)
8461 ("sdl2-image" ,sdl2-image)))
8462 (home-page "https://github.com/fmang/oshu/")
8463 (synopsis "Rhythm game in which you click on circles")
8464 (description "@i{oshu!} is a minimalist variant of the @i{osu!} rhythm game,
8465 which is played by pressing buttons and following along sliders as they appear
8466 on screen. Its aim is to be able to play any beatmap even on low-end hardware.
8467
8468 This package provides the core application, but no beatmaps. You need to
8469 download and unpack them separately.")
8470 (license license:gpl3+)))
8471
8472 (define-public btanks
8473 (package
8474 (name "btanks")
8475 (version "0.9.8083")
8476 (source
8477 (origin
8478 (method url-fetch)
8479 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8480 "btanks-" version ".tar.bz2"))
8481 (sha256
8482 (base32
8483 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8484 (build-system scons-build-system)
8485 (arguments
8486 `(#:tests? #f ; there are none
8487 #:scons ,scons-python2
8488 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8489 #:phases
8490 (modify-phases %standard-phases
8491 (add-after 'unpack 'replace-removed-scons-syntax
8492 (lambda _
8493 (substitute* "SConstruct"
8494 (("Options") "Variables")
8495 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8496 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8497 #t))
8498 (add-after 'set-paths 'set-sdl-paths
8499 (lambda* (#:key inputs #:allow-other-keys)
8500 (setenv "CPATH"
8501 (string-append (assoc-ref inputs "sdl")
8502 "/include/SDL:"
8503 (or (getenv "CPATH") "")))
8504 #t))
8505 (add-after 'unpack 'fix-compilation-errors
8506 (lambda _
8507 (substitute* "mrt/base_file.h"
8508 (("#include <string>" m)
8509 (string-append m "\n#include <sys/types.h>")))
8510 (substitute* '("engine/sl08/sl08.h"
8511 "engine/sl08/sl08.py")
8512 (("signal = NULL") "signal = 0")
8513 (("object\\(NULL\\)") "object(0)")
8514 (("func\\(NULL\\)") "func(0)")
8515 ((" connect\\(signal_ref\\)")
8516 " this->connect(signal_ref)"))
8517 (substitute* "math/range_list.h"
8518 ((" lower_bound\\(value\\)")
8519 " this->lower_bound(value)")
8520 ((" erase\\(i\\)")
8521 " this->erase(i)"))
8522 (substitute* "clunk/source.cpp"
8523 (("using namespace clunk" m)
8524 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8525 #t))
8526 (add-after 'unpack 'find-lua
8527 (lambda _
8528 (substitute* "engine/SConscript"
8529 (("lua5.1") "lua-5.1")
8530 (("bt_libs.append\\(lua\\)")
8531 "bt_libs.append(\"lua\")"))
8532 #t)))))
8533 (inputs
8534 `(("expat" ,expat)
8535 ("glu" ,glu)
8536 ("libsmpeg" ,libsmpeg-with-sdl1)
8537 ("libvorbis" ,libvorbis)
8538 ("lua51" ,lua-5.1)
8539 ("sdl" ,(sdl-union (list sdl
8540 sdl-mixer
8541 sdl-image
8542 sdl-ttf)))
8543 ("zlib" ,zlib)))
8544 (native-inputs
8545 `(("pkg-config" ,pkg-config)
8546 ("zip" ,zip)))
8547 (home-page "http://btanks.sourceforge.net")
8548 (synopsis "Multiplayer tank battle game")
8549 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8550 game, where you can choose one of three vehicles and eliminate your enemy
8551 using the whole arsenal of weapons. It has original cartoon-like graphics and
8552 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8553 and cooperative.")
8554 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8555 ;; released under GPLv2 or later. It comes with extra exceptions for the
8556 ;; developers.
8557 (license (list license:gpl2+ license:lgpl2.1+))))
8558
8559 (define-public slimevolley
8560 (package
8561 (name "slimevolley")
8562 (version "2.4.2")
8563 (source
8564 (origin
8565 (method url-fetch)
8566 (uri (string-append "https://download.tuxfamily.org/slime/"
8567 "slimevolley_" version ".tar.gz"))
8568 (sha256
8569 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8570 (build-system cmake-build-system)
8571 (arguments
8572 `(#:tests? #f ;no test
8573 ;; Work around build failure: "error adding symbols: DSO
8574 ;; missing from command line".
8575 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8576 (native-inputs
8577 `(("gettext" ,gettext-minimal)))
8578 (inputs
8579 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8580 (home-page "https://slime.tuxfamily.org/")
8581 (synopsis "Unrealistic 2D volleyball simulation")
8582 (description
8583 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8584 the spirit of some Java games of the same name.
8585
8586 Two teams, 1-3 players each, try to be the first to get 10 points.
8587 This happens when the one ball touches the floor on the other side of
8588 the net. There can be 1 to 8 balls in game. Once one ball touches
8589 the ground, the set ends and all balls are served again.")
8590 (license license:gpl3+)))
8591
8592 (define-public slingshot
8593 (package
8594 (name "slingshot")
8595 (version "0.9")
8596 (source
8597 (origin
8598 (method git-fetch)
8599 (uri (git-reference
8600 (url "https://github.com/ryanakca/slingshot")
8601 (commit version)))
8602 (file-name (git-file-name name version))
8603 (sha256
8604 (base32
8605 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8606 (build-system python-build-system)
8607 (arguments
8608 `(#:python ,python-2))
8609 (inputs
8610 `(("python-pygame" ,python2-pygame)))
8611 (home-page "https://github.com/ryanakca/slingshot")
8612 (synopsis "Simple 2D shooting strategy game set in space")
8613 (description "Slingshot is a two-dimensional strategy game where two
8614 players attempt to shoot one another through a section of space populated by
8615 planets. The main feature of the game is that the shots, once fired, are
8616 affected by the gravity of the planets.")
8617 (license license:gpl2+)))
8618
8619 (define-public 4dtris
8620 (package
8621 (name "4dtris")
8622 (version "0.4.3")
8623 (source
8624 (origin
8625 (method url-fetch)
8626 (uri (string-append "https://launchpad.net/4dtris/"
8627 (version-major+minor version)
8628 "/" version "/+download/4dtris_"
8629 version ".orig.tar.gz"))
8630 (sha256
8631 (base32
8632 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8633 (build-system gnu-build-system)
8634 (arguments
8635 `(#:phases
8636 (modify-phases %standard-phases
8637 (add-after 'unpack 'fix-install-directories
8638 (lambda* (#:key outputs #:allow-other-keys)
8639 (let ((out (assoc-ref outputs "out")))
8640 (substitute* "Makefile.in"
8641 (("bindir = /usr/games")
8642 (string-append "bindir = " out "/bin"))
8643 (("/usr/share/applications")
8644 (string-append out "/share/applications"))
8645 (("/usr/share/games/4dtris")
8646 (string-append out "/share/4dtris"))))
8647 #t))
8648 (add-after 'set-paths 'set-sdl-paths
8649 (lambda* (#:key inputs #:allow-other-keys)
8650 (setenv "CPATH"
8651 (string-append (assoc-ref inputs "sdl")
8652 "/include/SDL:"
8653 (or (getenv "CPATH") "")))
8654 #t)))))
8655 (inputs
8656 `(("fontconfig" ,fontconfig)
8657 ("freeglut" ,freeglut)
8658 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8659 (home-page "https://launchpad.net/4dtris/")
8660 (synopsis "4D Tetris")
8661 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8662 game field is extended to 4D space, which has to filled up by the gamer with
8663 4D hyper cubes.")
8664 (license license:gpl3)))
8665
8666 (define-public arx-libertatis
8667 (package
8668 (name "arx-libertatis")
8669 (version "1.1.2")
8670 (source
8671 (origin
8672 (method url-fetch)
8673 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8674 version ".tar.xz"))
8675 (sha256
8676 (base32
8677 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8678 (build-system cmake-build-system)
8679 (outputs '("out" "installer"))
8680 (arguments
8681 '(#:tests? #f ; No tests.
8682 #:phases
8683 (modify-phases %standard-phases
8684 (add-after 'unpack 'fix-install-helper-paths
8685 (lambda* (#:key inputs #:allow-other-keys)
8686 (let ((p7zip (assoc-ref inputs "p7zip"))
8687 (innoextract (assoc-ref inputs "innoextract"))
8688 (wget (assoc-ref inputs "wget"))
8689 (zenity (assoc-ref inputs "zenity")))
8690 (substitute* "scripts/arx-install-data"
8691 (("have innoextract")
8692 (string-append "have " innoextract "/bin/innoextract"))
8693 (("then innoextract")
8694 (string-append "then " innoextract "/bin/innoextract"))
8695 (("else innoextract")
8696 (string-append "else " innoextract "/bin/innoextract"))
8697 (("for _extract_zip_sz in 7za 7z")
8698 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8699 (("else if have 7z")
8700 (string-append "else if have " p7zip "/bin/7za"))
8701 (("7z x -tiso")
8702 (string-append p7zip "/bin/7z x -tiso"))
8703 (("if have wget")
8704 (string-append "if have " wget "/bin/wget"))
8705 (("wget -O")
8706 (string-append wget "/bin/wget -O"))
8707 (("for backend in \\$preferred zenity")
8708 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8709 (("zenity +--title")
8710 (string-append zenity "/bin/zenity --title"))
8711 (("^zenity\\)")
8712 (string-append zenity "/bin/zenity)"))))
8713 #t))
8714 (add-after 'install 'move-installer
8715 (lambda* (#:key outputs #:allow-other-keys)
8716 (let ((out (assoc-ref outputs "out"))
8717 (installer (assoc-ref outputs "installer")))
8718 (mkdir-p (string-append installer "/bin"))
8719 (rename-file (string-append out "/bin/arx-install-data")
8720 (string-append installer "/bin/arx-install-data"))))))))
8721 (inputs
8722 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8723 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8724 ("glew" ,glew)
8725 ("openal" ,openal)
8726 ("zlib" ,zlib)
8727 ("boost" ,boost)
8728 ("glm" ,glm)
8729 ("freetype" ,freetype)
8730 ;; The following are only needed by the arx-install-data script.
8731 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8732 ("zenity" ,zenity) ; GUI for install-helper.
8733 ("wget" ,wget) ; Used by the install-helper to download the patch.
8734 ;; The install-helper needs it to extract the patch.
8735 ("innoextract" ,innoextract)))
8736 (home-page "https://arx-libertatis.org/")
8737 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8738 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8739 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8740 This port however does not include the game data, so you need to obtain a copy
8741 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8742 features crafting, melee and ranged combat, as well as a unique casting system
8743 where the player draws runes in real time to effect the desired spell.")
8744 (license license:gpl3+)))
8745
8746 (define-public edgar
8747 (package
8748 (name "edgar")
8749 (version "1.34")
8750 (source
8751 (origin
8752 (method url-fetch)
8753 (uri
8754 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8755 version "/edgar-" version "-1.tar.gz"))
8756 (sha256
8757 (base32 "1121rq5wk3g8rs413av84s2kcy6qj6maspgy2vsxs36c2jd3yygl"))))
8758 (build-system gnu-build-system)
8759 (arguments '(#:tests? #f ; there are no tests
8760 #:make-flags
8761 (list "CC=gcc"
8762 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8763 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8764 #:phases
8765 (modify-phases %standard-phases
8766 (delete 'configure)
8767 (add-before 'build 'fix-env
8768 (lambda* (#:key inputs #:allow-other-keys)
8769 (setenv "CPATH"
8770 (string-append (assoc-ref inputs "sdl2-union")
8771 "/include/SDL2:"
8772 (or (getenv "CPATH") "")))
8773 #t)))))
8774 (inputs
8775 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8776 ("zlib" ,zlib)))
8777 (native-inputs
8778 `(("pkg-config" ,pkg-config)
8779 ("autoconf" ,autoconf)
8780 ("automake" ,automake)
8781 ("gnu-gettext" ,gettext-minimal)
8782 ("libtool" ,libtool)
8783 ("which" ,which)))
8784 (synopsis "2d action platformer game")
8785 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8786 When Edgar's father fails to return home after venturing out one dark and stormy night,
8787 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8788 a fortress beyond the forbidden swamp.")
8789 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8790 (license license:gpl2+)))
8791
8792 (define-public openclonk
8793 (package
8794 (name "openclonk")
8795 (version "8.1")
8796 (source (origin
8797 (method url-fetch)
8798 (uri (string-append
8799 "https://www.openclonk.org/builds/release/" version "/"
8800 "openclonk-" version "-src.tar.bz2"))
8801 (sha256
8802 (base32
8803 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8804 (build-system cmake-build-system)
8805 (arguments
8806 `(#:configure-flags '("-DAudio_TK=OpenAL")
8807 #:test-target "tests"
8808 #:phases
8809 (modify-phases %standard-phases
8810 (add-after 'unpack 'prepare-gmock
8811 (lambda* (#:key inputs #:allow-other-keys)
8812 (mkdir "gmock")
8813 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8814 (substitute* "tests/CMakeLists.txt"
8815 (("/usr/src/gmock")
8816 (string-append (getcwd) "/gmock/googlemock"))
8817 (("/usr/src/gtest")
8818 (string-append (getcwd) "/gmock/googletest"))
8819 (("PATH_SUFFIXES \"src\" \"gtest\"")
8820 "PATH_SUFFIXES \"src\""))
8821 #t))
8822 (add-after 'unpack 'adjust-backward-cpp-includes
8823 (lambda _
8824 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8825 ;; that includes external libraries such as libdl from glibc.
8826 ;; By default, CMake interface includes are treated as "system
8827 ;; headers", and GCC behaves poorly when glibc is passed as a
8828 ;; system header (causing #include_next failures).
8829
8830 ;; Here we prevent targets that consume the Backward::Backward
8831 ;; interface from treating it as "system includes".
8832 (substitute* "CMakeLists.txt"
8833 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8834 (string-append "set_property(TARGET " target " PROPERTY "
8835 "NO_SYSTEM_FROM_IMPORTED true)\n"
8836 all)))
8837 #t))
8838 (add-after 'unpack 'add-libiberty
8839 ;; Build fails upon linking executables without this.
8840 (lambda _
8841 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8842 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8843 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8844 #t))
8845 (add-after 'add-libiberty 'lax-freealut-requirement
8846 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8847 ;; it as 1.0.1. Force minimal version.
8848 (lambda _
8849 (substitute* "cmake/FindAudio.cmake"
8850 (("freealut>=1.1.0") "freealut>=1.0.1"))
8851 #t))
8852 (add-after 'lax-freealut-requirement 'fix-directories
8853 ;; Prefer "$out/share/openclonk" over
8854 ;; "$out/share/games/openclonk". Also install "openclonk"
8855 ;; binary in "bin/", not "games/".
8856 (lambda _
8857 (substitute* "CMakeLists.txt"
8858 (("share/games/openclonk") "share/openclonk")
8859 (("TARGETS openclonk DESTINATION games")
8860 "TARGETS openclonk DESTINATION bin"))
8861 #t)))))
8862 (native-inputs
8863 `(("googlemock" ,(package-source googletest))
8864 ("googletest" ,googletest)
8865 ("pkg-config" ,pkg-config)))
8866 (inputs
8867 `(("freealut" ,freealut)
8868 ("freetype" ,freetype)
8869 ("glew" ,glew)
8870 ("libiberty" ,libiberty)
8871 ("libjpeg" ,libjpeg-turbo)
8872 ("libogg" ,libogg)
8873 ("libpng" ,libpng)
8874 ("libvorbis" ,libvorbis)
8875 ("libxrandr" ,libxrandr)
8876 ("mesa" ,mesa)
8877 ("miniupnpc" ,miniupnpc)
8878 ("openal" ,openal)
8879 ("qtbase" ,qtbase)
8880 ("readline" ,readline)
8881 ("sdl" ,sdl2)
8882 ("tinyxml" ,tinyxml)
8883 ("zlib" ,zlib)))
8884 (home-page "https://www.openclonk.org/")
8885 (synopsis
8886 "Multiplayer action game where you control small and nimble humanoids")
8887 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8888 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8889 antfarm-style landscape, the player controls a crew of Clonks, small but
8890 robust humanoid beings. The game encourages free play but the normal goal is
8891 to either exploit valuable resources from the earth by building a mine or
8892 fight each other on an arena-like map.")
8893 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8894 (license (list license:isc license:cc-by3.0))))
8895
8896 (define-public flare-engine
8897 (package
8898 (name "flare-engine")
8899 (version "1.11")
8900 (source (origin
8901 (method git-fetch)
8902 (uri (git-reference
8903 (url "https://github.com/flareteam/flare-engine")
8904 (commit (string-append "v" version))))
8905 (file-name (git-file-name name version))
8906 (sha256
8907 (base32
8908 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8909 (build-system cmake-build-system)
8910 (arguments
8911 `(#:tests? #f ;no test
8912 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8913 (inputs
8914 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8915 ("python" ,python-wrapper)
8916 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8917 (home-page "http://www.flarerpg.org/")
8918 (synopsis "Action Roleplaying Engine")
8919 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8920 game engine built to handle a very specific kind of game: single-player 2D
8921 action RPGs.")
8922 (license license:gpl3+)))
8923
8924 (define-public flare-game
8925 (package
8926 (name "flare-game")
8927 (version "1.11")
8928 (source (origin
8929 (method git-fetch)
8930 (uri (git-reference
8931 (url "https://github.com/flareteam/flare-game")
8932 (commit (string-append "v" version))))
8933 (file-name (git-file-name name version))
8934 (sha256
8935 (base32
8936 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8937 (build-system cmake-build-system)
8938 (arguments
8939 `(#:tests? #f ;no test
8940 #:configure-flags '("-DDATADIR=share/flare")
8941 #:phases
8942 (modify-phases %standard-phases
8943 ;; Flare expects the mods to be located in the same folder.
8944 ;; Yet, "default" mod is in the engine, whereas the others
8945 ;; are in the current package. Merge everything here with
8946 ;; a symlink.
8947 (add-after 'install 'add-default-mod
8948 (lambda* (#:key inputs outputs #:allow-other-keys)
8949 (let* ((out (assoc-ref outputs "out"))
8950 (mods (string-append out "/share/flare/mods")))
8951 (with-directory-excursion mods
8952 (symlink (string-append (assoc-ref inputs "flare-engine")
8953 "/share/flare/mods/default")
8954 "default")))
8955 #t))
8956 (add-after 'install 'install-executable
8957 ;; The package only provides assets for the game, the
8958 ;; executable coming from "flare-engine". Since more than
8959 ;; one game may use the engine, we create a new executable,
8960 ;; "flare-game", which launches the engine with appropriate
8961 ;; parameters.
8962 (lambda* (#:key inputs outputs #:allow-other-keys)
8963 (let* ((out (assoc-ref outputs "out"))
8964 (bash (string-append (assoc-ref inputs "bash")
8965 "/bin/bash"))
8966 (flare (string-append (assoc-ref inputs "flare-engine")
8967 "/bin/flare"))
8968 (script (string-append out "/bin/flare-game")))
8969 (mkdir-p (dirname script))
8970 (call-with-output-file script
8971 (lambda (port)
8972 (format port
8973 "#!~a
8974 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8975 bash
8976 flare
8977 out)))
8978 (chmod script #o755))
8979 #t)))))
8980 (inputs
8981 `(("flare-engine" ,flare-engine)))
8982 (home-page "http://www.flarerpg.org/")
8983 (synopsis "Fantasy action RPG using the FLARE engine")
8984 (description "Flare is a single-player 2D action RPG with
8985 fast-paced action and a dark fantasy style.")
8986 (license license:cc-by-sa3.0)))
8987
8988 (define-public meritous
8989 (package
8990 (name "meritous")
8991 (version "1.5")
8992 (source (origin
8993 (method git-fetch)
8994 (uri (git-reference
8995 (url "https://gitlab.com/meritous/meritous.git")
8996 (commit (string-append "v" version))))
8997 (file-name (git-file-name name version))
8998 (sha256
8999 (base32
9000 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
9001 (build-system gnu-build-system)
9002 (arguments
9003 `(#:tests? #f ;no test
9004 #:make-flags
9005 (list "CC=gcc"
9006 (string-append "prefix=" (assoc-ref %outputs "out")))
9007 #:phases
9008 (modify-phases %standard-phases
9009 (delete 'configure)
9010 (add-after 'unpack 'fix-sdl-path
9011 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
9012 ;; directory, not SDL-union provided as an input to the package.
9013 ;; We force the latter with "--prefix=" option.
9014 (lambda* (#:key inputs #:allow-other-keys)
9015 (substitute* "Makefile"
9016 (("sdl-config" command)
9017 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9018 #t))
9019 (add-after 'unpack 'fix-crash
9020 ;; XXX: Songs are not present in the repository, due to licensing
9021 ;; issues. Yet, the game tries to load them, and, since it cannot
9022 ;; find them, crashes. Users cannot add them back, the store being
9023 ;; read-only, so we turn off background music altogether.
9024 (lambda _
9025 (substitute* "src/audio.c"
9026 (("PlayBackgroundMusic\\(new_track\\);" all)
9027 (string-append "// " all)))
9028 #t)))))
9029 (native-inputs
9030 `(("intltool" ,intltool)))
9031 (inputs
9032 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
9033 ("zlib" ,zlib)))
9034 (home-page "https://gitlab.com/meritous/meritous")
9035 (synopsis "Action-adventure dungeon crawl game")
9036 (description "Far below the surface of the planet is a place of limitless
9037 power. Those that seek to control such a utopia will soon bring an end to
9038 themselves. Seeking an end to the troubles that plague him, PSI user Merit
9039 journeys into the hallowed Orcus Dome in search of answers.
9040
9041 Meritous is a action-adventure game with simple controls but a challenge to
9042 find a balance of power versus recovery time during real-time battles. Set in
9043 a procedurally generated world, the player can explore thousands of rooms in
9044 search of powerful artifacts, tools to help them, and to eventually free the
9045 Orcus Dome from evil.")
9046 (license license:gpl3+)))
9047
9048 (define-public marble-marcher
9049 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
9050 (revision "1"))
9051 (package
9052 (name "marble-marcher")
9053 (version (git-version "0" revision commit))
9054 (source (origin
9055 (method git-fetch)
9056 (uri (git-reference
9057 (url "https://github.com/HackerPoet/MarbleMarcher")
9058 (commit commit)))
9059 (file-name (git-file-name name version))
9060 (sha256
9061 (base32
9062 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
9063 (build-system cmake-build-system)
9064 (arguments
9065 `(#:tests? #f ; there are none
9066 #:phases
9067 (modify-phases %standard-phases
9068 (add-after 'unpack 'embed-asset-directory
9069 (lambda* (#:key outputs #:allow-other-keys)
9070 (let ((assets (string-append (assoc-ref outputs "out")
9071 "/share/marble-marcher/assets/")))
9072 ;; Some of the files we're patching are
9073 ;; ISO-8859-1-encoded, so choose it as the default
9074 ;; encoding so the byte encoding is preserved.
9075 (with-fluids ((%default-port-encoding #f))
9076 (substitute* "src/Resource.rc"
9077 (("../assets/icon.ico")
9078 (string-append assets "icon.ico")))
9079 (substitute* "src/Res.h"
9080 (("assets/") assets))))
9081 #t))
9082 (replace 'install
9083 (lambda* (#:key outputs #:allow-other-keys)
9084 (let* ((out (assoc-ref outputs "out"))
9085 (assets (string-append out "/share/marble-marcher/assets"))
9086 (bin (string-append out "/bin/")))
9087 (mkdir-p bin)
9088 (mkdir-p assets)
9089 (copy-recursively "../source/assets" assets)
9090 (install-file "MarbleMarcher" bin))
9091 #t)))))
9092 (inputs
9093 `(("eigen" ,eigen)
9094 ("mesa" ,mesa)
9095 ("sfml" ,sfml)))
9096 (native-inputs
9097 `(("pkg-config" ,pkg-config)))
9098 (home-page "https://codeparade.itch.io/marblemarcher")
9099 (synopsis "Guide a marble across fractal landscapes")
9100 (description "Marble Marcher is a video game that uses a fractal physics
9101 engine and fully procedural rendering to produce beautiful and unique
9102 gameplay. The game is played on the surface of evolving fractals. The goal
9103 of the game is to get your marble to the flag as quickly as possible. But be
9104 careful not to fall off the level or get crushed by the fractal! There are 24
9105 levels to unlock.")
9106 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
9107 (license (list license:gpl2+
9108 license:silofl1.1
9109 license:cc-by-sa3.0)))))
9110
9111 ;; This must be updated together with flightgear.
9112 (define simgear
9113 (package
9114 (name "simgear")
9115 (version "2018.3.5")
9116 (source
9117 (origin
9118 (method url-fetch)
9119 (uri (string-append "mirror://sourceforge/flightgear/release-"
9120 (version-major+minor version) "/"
9121 "simgear-" version ".tar.bz2"))
9122 (sha256
9123 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
9124 (build-system cmake-build-system)
9125 (arguments
9126 `(#:phases
9127 (modify-phases %standard-phases
9128 (replace 'check
9129 (lambda _
9130 ;; Skip tests that require internet access.
9131 (invoke "ctest" "-E" "(http|dns)"))))))
9132 (inputs
9133 `(("boost" ,boost-for-mysql) ; fails with 1.69
9134 ("curl" ,curl)
9135 ("expat" ,expat)
9136 ("mesa" ,mesa)
9137 ("openal" ,openal)
9138 ("openscenegraph" ,openscenegraph-3.4)
9139 ("zlib" ,zlib)))
9140 (home-page "https://home.flightgear.org/")
9141 (synopsis "Libraries for 3D simulations and games")
9142 (description "SimGear is a set of libraries designed to be used as
9143 building blocks for quickly assembling 3D simulations, games, and
9144 visualization applications. SimGear is developed by the FlightGear project
9145 and also provides the base for the FlightGear Flight Simulator.")
9146 (license license:lgpl2.0+)))
9147
9148 (define-public flightgear
9149 (package
9150 (name "flightgear")
9151 (version (package-version simgear))
9152 (source
9153 (origin
9154 (method url-fetch)
9155 (uri (string-append "mirror://sourceforge/flightgear/release-"
9156 (version-major+minor version) "/"
9157 "flightgear-" version ".tar.bz2"))
9158 (sha256
9159 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
9160 (modules '((guix build utils)))
9161 (snippet
9162 '(begin
9163 ;; There are some bundled libraries.
9164 (for-each delete-file-recursively
9165 '("3rdparty/sqlite3/"))
9166 #t))))
9167 (build-system cmake-build-system)
9168 (arguments
9169 `(#:configure-flags
9170 (list "-DSYSTEM_SQLITE=ON"
9171 (string-append "-DFG_DATA_DIR="
9172 (assoc-ref %outputs "out")
9173 "/share/flightgear"))
9174 ;; TODO: test cannot be run because the "run_test_suite" executable
9175 ;; does not seem to be built.
9176 #:tests? #f
9177 #:phases
9178 (modify-phases %standard-phases
9179 (add-after 'install 'wrap-executable
9180 (lambda* (#:key inputs outputs #:allow-other-keys)
9181 (let ((out (assoc-ref outputs "out")))
9182 (wrap-program (string-append out "/bin/fgfs")
9183 `("QT_PLUGIN_PATH" ":" prefix
9184 ,(map (lambda (label)
9185 (string-append (assoc-ref inputs label)
9186 "/lib/qt5/plugins"))
9187 '("qtbase" "qtdeclarative" "qtsvg")))
9188 `("QML2_IMPORT_PATH" ":" prefix
9189 ,(map (lambda (label)
9190 (string-append (assoc-ref inputs label)
9191 "/lib/qt5/qml"))
9192 '("qtdeclarative" "qtsvg"))))
9193 #t)))
9194 (add-after 'install 'install-data
9195 (lambda* (#:key inputs outputs #:allow-other-keys)
9196 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
9197 (mkdir-p share)
9198 (with-directory-excursion share
9199 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
9200 "--strip-components=1")))
9201 #t)))))
9202 (inputs
9203 `(("boost" ,boost-for-mysql) ; same as simgear
9204 ("dbus" ,dbus)
9205 ("eudev" ,eudev)
9206 ("freeglut" ,freeglut)
9207 ("freetype" ,freetype)
9208 ("glew" ,glew)
9209 ("libpng" ,libpng)
9210 ("openal" ,openal)
9211 ("openscenegraph" ,openscenegraph-3.4)
9212 ("plib" ,plib)
9213 ("qtbase" ,qtbase)
9214 ("qtdeclarative" ,qtdeclarative)
9215 ("qtsvg" ,qtsvg)
9216 ("simgear" ,simgear)
9217 ("speexdsp" ,speexdsp)
9218 ("sqlite" ,sqlite)
9219 ("zlib" ,zlib)))
9220 (native-inputs
9221 `(("cppunit" ,cppunit)
9222 ("pkg-config" ,pkg-config)
9223 ("qttools" ,qttools)
9224 ("flightgear-data"
9225 ,(origin
9226 (method url-fetch)
9227 (uri (string-append "mirror://sourceforge/flightgear/release-"
9228 (version-major+minor version) "/"
9229 "FlightGear-" version "-data.tar.bz2"))
9230 (sha256
9231 (base32
9232 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9233 (home-page "https://home.flightgear.org/")
9234 (synopsis "Flight simulator")
9235 (description "The goal of the FlightGear project is to create a
9236 sophisticated flight simulator framework for use in research or academic
9237 environments, pilot training, as an industry engineering tool, for DIY-ers to
9238 pursue their favorite interesting flight simulation idea, and last but
9239 certainly not least as a fun, realistic, and challenging desktop flight
9240 simulator.")
9241 (license license:gpl2+)))
9242
9243 (define-public jumpnbump
9244 (package
9245 (name "jumpnbump")
9246 (version "1.61")
9247 (source (origin
9248 (method git-fetch)
9249 (uri (git-reference
9250 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9251 (commit version)))
9252 (file-name (git-file-name name version))
9253 (sha256
9254 (base32
9255 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9256 (build-system gnu-build-system)
9257 (arguments
9258 `(#:make-flags
9259 (list "CC=gcc"
9260 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9261 #:tests? #f ;no test
9262 #:phases
9263 (modify-phases %standard-phases
9264 (delete 'configure) ;no configure script
9265 (add-after 'unpack 'fix-sdl-path
9266 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9267 ;; directory, not SDL-union provided as an input to the package.
9268 ;; We force the latter with "--prefix=" option.
9269 (lambda* (#:key inputs #:allow-other-keys)
9270 (substitute* "Makefile"
9271 (("sdl2-config" command)
9272 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9273 #t)))))
9274 (inputs
9275 `(("bzip2" ,bzip2)
9276 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9277 ("zlib" ,zlib)))
9278 (native-inputs
9279 `(("gettext" ,gettext-minimal))) ;for msgfmt
9280 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9281 (synopsis "Multiplayer platform game with bunnies")
9282 (description "You, as a bunny, have to jump on your opponents to make them
9283 explode. It is a true multiplayer game; you cannot play this alone. You can
9284 play with up to four players simultaneously. It has network support.")
9285 (license license:gpl2+)))
9286
9287 (define-public hedgewars
9288 (package
9289 (name "hedgewars")
9290 (version "1.0.0")
9291 (source (origin
9292 (method url-fetch)
9293 (uri (string-append "https://www.hedgewars.org/download/releases/"
9294 "hedgewars-src-" version ".tar.bz2"))
9295 (sha256
9296 (base32
9297 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9298 (build-system cmake-build-system)
9299 (arguments
9300 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9301 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9302 ;; a Pascal to C translator and Clang instead.
9303 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9304 "-Dhaskell_flags=-dynamic;-fPIC")
9305 #:phases
9306 (modify-phases %standard-phases
9307 (add-before 'configure 'fix-sources
9308 (lambda _
9309 ;; Fix a missing 'include'.
9310 (substitute* "QTfrontend/ui/page/pagegamestats.cpp"
9311 (("#include <QSizePolicy>")
9312 "#include <QSizePolicy>\n#include <QPainterPath>"))))
9313 (replace 'check
9314 (lambda _ (invoke "ctest")))
9315 (add-after 'install 'install-icon
9316 (lambda _
9317 ;; Install icon for the desktop file.
9318 (let* ((out (assoc-ref %outputs "out"))
9319 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9320 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9321 (install-file "misc/hedgewars.png" icons)))
9322 #t)))))
9323 (inputs
9324 `(("ffmpeg" ,ffmpeg)
9325 ("freeglut" ,freeglut)
9326 ("ghc-entropy" ,ghc-entropy)
9327 ("ghc-hslogger" ,ghc-hslogger)
9328 ("ghc-network" ,ghc-network)
9329 ("ghc-random" ,ghc-random)
9330 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9331 ("ghc-sandi" ,ghc-sandi)
9332 ("ghc-sha" ,ghc-sha)
9333 ("ghc-utf8-string" ,ghc-utf8-string)
9334 ("ghc-vector" ,ghc-vector)
9335 ("ghc-zlib" ,ghc-zlib)
9336 ("glew" ,glew)
9337 ("libpng" ,libpng)
9338 ("lua" ,lua-5.1)
9339 ("physfs" ,physfs)
9340 ("qtbase" ,qtbase)
9341 ("sdl" ,(sdl-union
9342 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9343 (native-inputs
9344 `(("clang" ,clang)
9345 ("ghc" ,ghc)
9346 ("pkg-config" ,pkg-config)
9347 ("qttools" ,qttools)))
9348 (home-page "https://hedgewars.org/")
9349 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9350 (description
9351 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9352 featuring the antics of pink hedgehogs with attitude as they battle from the
9353 depths of hell to the depths of space.
9354
9355 As commander, it's your job to assemble your crack team of hedgehog soldiers
9356 and bring the war to your enemy.")
9357 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9358 ;; scripts are distributed under various terms.
9359 (license (list license:gpl2
9360 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9361 license:expat license:fdl1.3+ license:public-domain
9362 license:zlib))))
9363
9364 (define-public harmonist
9365 (package
9366 (name "harmonist")
9367 (version "0.3.0")
9368 (source (origin
9369 (method git-fetch)
9370 (uri (git-reference
9371 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9372 (commit (string-append "v" version))))
9373 (file-name (git-file-name name version))
9374 (sha256
9375 (base32
9376 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
9377 (build-system go-build-system)
9378 (arguments
9379 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9380 (inputs
9381 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
9382 (home-page "https://harmonist.tuxfamily.org/")
9383 (synopsis "Stealth coffee-break roguelike game")
9384 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9385 coffee-break roguelike game. The game has a heavy focus on tactical
9386 positioning, light and noise mechanisms, making use of various terrain types
9387 and cones of view for monsters. Aiming for a replayable streamlined experience,
9388 the game avoids complex inventory management and character building, relying
9389 on items and player adaptability for character progression.")
9390 (license license:isc)))
9391
9392 (define-public harmonist-tk
9393 (package
9394 (inherit harmonist)
9395 (name "harmonist-tk")
9396 (arguments
9397 (append
9398 (package-arguments harmonist)
9399 `(#:phases
9400 (modify-phases %standard-phases
9401 (replace 'build
9402 (lambda _
9403 (invoke "go" "install" "-v" "-x" "--tags" "tk"
9404 "git.tuxfamily.org/harmonist/harmonist")))
9405 (replace 'check
9406 (lambda _
9407 (invoke "go" "test" "--tags" "tk"
9408 "git.tuxfamily.org/harmonist/harmonist")))))))
9409 (inputs
9410 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
9411
9412 (define-public drascula
9413 (package
9414 (name "drascula")
9415 (version "1.0")
9416 (source (origin
9417 (method url-fetch)
9418 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9419 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9420 "drascula-" version ".zip"))
9421 (sha256
9422 (base32
9423 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9424 (build-system trivial-build-system)
9425 (arguments
9426 `(#:modules ((guix build utils))
9427 #:builder
9428 (begin
9429 (use-modules (guix build utils)
9430 (ice-9 match))
9431 (let* ((out (assoc-ref %outputs "out"))
9432 (share (string-append out "/share/drascula"))
9433 (scummvm (assoc-ref %build-inputs "scummvm")))
9434 ;; Install data.
9435 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9436 "/bin/unzip"))
9437 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9438 (for-each
9439 (lambda (input)
9440 (invoke unzip
9441 "-j"
9442 (assoc-ref %build-inputs input)
9443 "-x" "__MACOSX")
9444 ;; Every input provides "readme.txt", and we want to
9445 ;; preserve them all. Therefore we rename them first.
9446 (match input
9447 ("drascula-int"
9448 (rename-file "readme.txt" "readme-international.txt"))
9449 ("drascula-audio"
9450 (rename-file "readme.txt" "readme-audio.txt"))
9451 (_ #f))
9452 ;; Install documentation.
9453 (for-each (lambda (f) (install-file f doc))
9454 (find-files "." "\\.(txt|doc)$"))
9455 ;; Install data.
9456 (for-each (lambda (f) (install-file f share))
9457 (find-files "." "\\.(ogg|00[0-9])$")))
9458 '("drascula-audio" "drascula-int" "source")))
9459 ;; Create standalone executable.
9460 (let* ((bin (string-append out "/bin"))
9461 (executable (string-append bin "/drascula"))
9462 (bash (string-append (assoc-ref %build-inputs "bash")
9463 "/bin/bash")))
9464 (mkdir-p bin)
9465 (with-output-to-file executable
9466 (lambda ()
9467 (format #t "#!~a~%" bash)
9468 (format #t
9469 "exec ~a/bin/scummvm --path=~a drascula~%"
9470 scummvm share)))
9471 (chmod executable #o755))
9472 ;; Create desktop file. There is no dedicated icon for the
9473 ;; game, so we borrow SCUMMVM's.
9474 (let ((apps (string-append out "/share/applications")))
9475 (mkdir-p apps)
9476 (make-desktop-entry-file
9477 (string-append apps "/drascula.desktop")
9478 #:name "Drascula: The Vampire Strikes Back"
9479 #:generic-name "Drascula"
9480 #:exec (string-append out "/bin/drascula")
9481 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9482 #:categories '("AdventureGame" "Game" "RolePlaying")
9483 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9484 #:comment '((#f "Classic 2D point and click adventure game")
9485 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9486 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9487 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9488 #t))))
9489 (native-inputs
9490 `(("bash" ,bash)
9491 ("unzip" ,unzip)))
9492 (inputs
9493 `(("scummvm" ,scummvm)
9494 ("drascula-int"
9495 ,(let ((version "1.1"))
9496 (origin
9497 (method url-fetch)
9498 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9499 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9500 "drascula-int-" version ".zip"))
9501 (sha256
9502 (base32
9503 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9504 ("drascula-audio"
9505 ,(let ((version "2.0"))
9506 (origin
9507 (method url-fetch)
9508 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9509 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9510 "drascula-audio-" version ".zip"))
9511 (sha256
9512 (base32
9513 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9514 (home-page "https://www.scummvm.org")
9515 (synopsis "Classic 2D point and click adventure game")
9516 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9517 point and click adventure game.
9518
9519 In Drascula you play the role of John Hacker, a British estate agent, that
9520 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9521 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9522 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9523 the World and demonstrating that he is even more evil than his brother Vlad.")
9524 ;; Drascula uses a BSD-like license.
9525 (license (license:non-copyleft "file:///readme.txt"))))
9526
9527 (define (make-lure-package name language hash)
9528 (package
9529 (name name)
9530 (version "1.1")
9531 (source
9532 (origin
9533 (method url-fetch)
9534 (uri (string-append
9535 "mirror://sourceforge/scummvm/extras/"
9536 "Lure%20of%20the%20Temptress/"
9537 name "-" version ".zip"))
9538 (sha256
9539 (base32 hash))))
9540 (build-system trivial-build-system)
9541 (arguments
9542 `(#:modules ((guix build utils))
9543 #:builder
9544 (begin
9545 (use-modules (guix build utils))
9546 (let* ((out (assoc-ref %outputs "out"))
9547 (share (string-append out "/share"))
9548 (data (string-append share "/" ,name "/" ,language))
9549 (apps (string-append share "/applications"))
9550 (bin (string-append out "/bin"))
9551 (executable (string-append bin "/" ,name))
9552 (scummvm (assoc-ref %build-inputs "scummvm")))
9553 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9554 "/bin/unzip")))
9555 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9556 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9557 (for-each (lambda (f) (install-file f doc))
9558 (find-files "." "\\.(txt|PDF|pdf)$")))
9559 (for-each (lambda (f) (install-file f data))
9560 (find-files "." "\\.(vga|VGA)$"))
9561 ;; Build the executable.
9562 (mkdir-p bin)
9563 (let ((bash (assoc-ref %build-inputs "bash")))
9564 (with-output-to-file executable
9565 (lambda ()
9566 (format #t "#!~a/bin/bash~%" bash)
9567 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9568 scummvm ,language data))))
9569 (chmod executable #o755)
9570 ;; Create desktop file. There is no dedicated
9571 ;; icon for the game, so we borrow SCUMMVM's.
9572 (mkdir-p apps)
9573 (with-output-to-file (string-append apps "/" ,name ".desktop")
9574 (lambda _
9575 (format #t
9576 "[Desktop Entry]~@
9577 Name=Lure of the Temptress~@
9578 GenericName=Lure~@
9579 Exec=~a~@
9580 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9581 Categories=AdventureGame;Game;RolePlaying;~@
9582 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9583 Comment=Classic 2D point and click adventure game~@
9584 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9585 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9586 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9587 Type=Application~%"
9588 executable scummvm)))
9589 #t))))
9590 (native-inputs
9591 `(("unzip" ,unzip)))
9592 (inputs
9593 `(("bash" ,bash)
9594 ("scummvm" ,scummvm)))
9595 (home-page "https://www.scummvm.org")
9596 (synopsis "2D point and click fantasy adventure game")
9597 (description
9598 "Lure of the Temptress is a classic 2D point and click adventure game.
9599
9600 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9601 intents and purposes, a good man. After decades of unrest the King has united
9602 the warring factions in his kingdom and all his lands are at peace, except
9603 a remote region around a town called Turnvale. A revolt has recently taken
9604 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9605 Selena, the titular temptress. The king calls together his finest horsemen
9606 and heads off (with you in tow) to Turnvale just to witness how hellish
9607 mercenary monsters called Skorl are invading the town.
9608
9609 The king's men are defeated, the king is killed and you fall of your horse and
9610 bang your head heavily on the ground. You have been *unconscious for a while
9611 when you realize that you are in a dingy cell guarded by a not so friendly
9612 Skorl. Maybe it would be an idea to try and escape...")
9613 (license (license:non-copyleft "file:///README"))))
9614
9615 (define-public lure
9616 (make-lure-package
9617 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9618
9619 (define-public lure-de
9620 (make-lure-package
9621 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9622
9623 (define-public lure-es
9624 (make-lure-package
9625 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9626
9627 (define-public lure-fr
9628 (make-lure-package
9629 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9630
9631 (define-public lure-it
9632 (make-lure-package
9633 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9634
9635 (define (make-queen-package name file-prefix release language hash)
9636 (package
9637 (name name)
9638 (version release)
9639 (source
9640 (origin
9641 (method url-fetch)
9642 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9643 "Flight%20of%20the%20Amazon%20Queen/"
9644 file-prefix release ".zip"))
9645 (sha256
9646 (base32 hash))))
9647 (build-system trivial-build-system)
9648 (arguments
9649 `(#:modules ((guix build utils))
9650 #:builder
9651 (begin
9652 (use-modules (guix build utils))
9653 (let* ((out (assoc-ref %outputs "out"))
9654 (share (string-append out "/share"))
9655 (data (string-append share "/" ,name))
9656 (apps (string-append share "/applications"))
9657 (bin (string-append out "/bin"))
9658 (executable (string-append bin "/" ,name))
9659 (scummvm (assoc-ref %build-inputs "scummvm")))
9660 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9661 "/bin/unzip")))
9662 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9663 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9664 (install-file "readme.txt" doc))
9665 (install-file "queen.1c" data)
9666 (mkdir-p bin)
9667 (let ((bash (assoc-ref %build-inputs "bash")))
9668 (with-output-to-file executable
9669 (lambda ()
9670 (format #t "#!~a/bin/bash~%" bash)
9671 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9672 scummvm data))))
9673 (chmod executable #o755)
9674 ;; Create desktop file. There is no dedicated
9675 ;; icon for the game, so we borrow SCUMMVM's.
9676 (mkdir-p apps)
9677 (with-output-to-file (string-append apps "/" ,name ".desktop")
9678 (lambda _
9679 (format #t
9680 "[Desktop Entry]~@
9681 Name=Flight of the Amazon Queen~@
9682 GenericName=Queen~@
9683 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~@
9684 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~@
9685 Type=Application~@
9686 Exec=~a~@
9687 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9688 Categories=AdventureGame;Game;RolePlaying;~@
9689 Keywords=adventure;game;roleplaying;fantasy;~%"
9690 executable scummvm))))
9691 #t)))
9692 (native-inputs
9693 `(("unzip" ,unzip)))
9694 (inputs
9695 `(("bash" ,bash)
9696 ("scummvm" ,scummvm)))
9697 (home-page "https://www.scummvm.org/")
9698 (synopsis "Classic 2D point and click adventure game")
9699 (description "Flight of the Amazon Queen is a 2D point-and-click
9700 adventure game set in the 1940s.
9701
9702 You assume the role of Joe King, a pilot for hire who is given the job
9703 of flying Faye Russell (a famous movie star) into the Amazon jungle
9704 for a photo shoot. Of course, things never go according to plans.
9705 After an unfortunate turn of events they find themselves stranded in
9706 the heart of the Amazon jungle, where Joe will embark on a quest to
9707 rescue a kidnapped princess and in the process, discover the true
9708 sinister intentions of a suspiciously located Lederhosen company. In
9709 a rich 2D environment, Joe will cross paths with a variety of unlikely
9710 jungle inhabitants including, but not limited to, a tribe of Amazon
9711 women and 6-foot-tall pygmies.")
9712 (license (license:non-copyleft "file:///readme.txt"))))
9713
9714 (define-public queen
9715 (make-queen-package
9716 "queen" "FOTAQ_Talkie-" "1.1" "en"
9717 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9718
9719 (define-public queen-de
9720 (make-queen-package
9721 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9722 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9723
9724 (define-public queen-fr
9725 (make-queen-package
9726 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9727 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9728
9729 (define-public queen-it
9730 (make-queen-package
9731 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9732 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9733
9734 (define-public sky
9735 (package
9736 (name "sky")
9737 (version "1.2") ;1.3 is floppy version
9738 (source
9739 (origin
9740 (method url-fetch)
9741 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9742 "Beneath%20a%20Steel%20Sky/"
9743 "bass-cd-" version ".zip"))
9744 (sha256
9745 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9746 (build-system trivial-build-system)
9747 (arguments
9748 `(#:modules ((guix build utils))
9749 #:builder
9750 (begin
9751 (use-modules (guix build utils))
9752 (let* ((out (assoc-ref %outputs "out"))
9753 (share (string-append out "/share"))
9754 (data (string-append share "/" ,name))
9755 (apps (string-append share "/applications"))
9756 (bin (string-append out "/bin"))
9757 (executable (string-append bin "/" ,name))
9758 (scummvm (assoc-ref %build-inputs "scummvm")))
9759 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9760 "/bin/unzip")))
9761 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9762 (let ((doc (string-append share "/doc/bass-" ,version)))
9763 (install-file "readme.txt" doc))
9764 (for-each (lambda (f) (install-file f data))
9765 (find-files "." "^sky\\."))
9766 ;; Build the executable.
9767 (mkdir-p bin)
9768 (let ((bash (assoc-ref %build-inputs "bash")))
9769 (with-output-to-file executable
9770 (lambda ()
9771 (format #t "#!~a/bin/bash~%" bash)
9772 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9773 (chmod executable #o755)
9774 ;; Create desktop file. There is no dedicated
9775 ;; icon for the game, so we borrow SCUMMVM's.
9776 (mkdir-p apps)
9777 (with-output-to-file (string-append apps "/" ,name ".desktop")
9778 (lambda _
9779 (format #t
9780 "[Desktop Entry]~@
9781 Name=Beneath a Steel Sky~@
9782 GenericName=Bass~@
9783 Exec=~a~@
9784 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9785 Categories=AdventureGame;Game;RolePlaying;~@
9786 Keywords=adventure;game;roleplaying;cyberpunk;~@
9787 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9788 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9789 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9790 Type=Application~%"
9791 executable scummvm)))
9792 #t))))
9793 (native-inputs
9794 `(("unzip" ,unzip)))
9795 (inputs
9796 `(("bash" ,bash)
9797 ("scummvm" ,scummvm)))
9798 (home-page "https://www.scummvm.org/")
9799 (synopsis "Classic 2D point and click science-fiction adventure game")
9800 (description
9801 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9802 post-apocalyptic vision of the future. It revolves around Union City,
9803 where selfishness, rivalry, and corruption by its citizens seems to be
9804 all too common, those who can afford it live underground, away from
9805 the pollution and social problems which are plaguing the city.
9806
9807 You take on the role of Robert Foster, an outcast of sorts from the
9808 city since a boy who was raised in a remote environment outside of
9809 Union City simply termed ``the gap''. Robert's mother took him away
9810 from Union City as a child on their way to ``Hobart'' but the
9811 helicopter crashed on its way. Unfortunately, Robert's mother died,
9812 but he survived and was left to be raised by a local tribe from the
9813 gap.
9814
9815 Years later, Union City security drops by and abducts Robert, killing
9816 his tribe in the process; upon reaching the city the helicopter taking
9817 him there crashes with him escaping, high upon a tower block in the
9818 middle of the city. He sets out to discover the truth about his past,
9819 and to seek vengeance for the killing of his tribe.")
9820 (license (license:non-copyleft "file:///readme.txt"))))
9821
9822 (define-public gnurobots
9823 (package
9824 (name "gnurobots")
9825 (version "1.2.0")
9826 (source
9827 (origin
9828 (method url-fetch)
9829 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9830 version ".tar.gz"))
9831 (sha256
9832 (base32
9833 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9834 (build-system gnu-build-system)
9835 (inputs
9836 `(("glib" ,glib)
9837 ("gtk+" ,gtk+-2)
9838 ("vte" ,vte/gtk+-2)
9839 ("readline" ,readline)
9840 ("guile" ,guile-1.8)))
9841 (native-inputs
9842 `(("pkg-config" ,pkg-config)))
9843 (arguments
9844 `(#:make-flags
9845 (list
9846 ;; Do not abort build on "deprecated-declarations" warnings.
9847 "CFLAGS=-Wno-error=deprecated-declarations"
9848 ;; Find readline headers in sub-directory.
9849 (string-append "READLINE_CFLAGS=-I"
9850 (assoc-ref %build-inputs "readline")
9851 "/include/readline/"))
9852 #:phases
9853 (modify-phases %standard-phases
9854 (add-after 'install 'install-doc
9855 (lambda* (#:key outputs #:allow-other-keys)
9856 (install-file "doc/Robots-HOWTO"
9857 (string-append (assoc-ref outputs "out")
9858 "/share/doc/gnurobots-"
9859 ,version))
9860 #t)))))
9861 (home-page "https://www.gnu.org/software/gnurobots/")
9862 (synopsis "Program a little robot and watch it explore a world")
9863 (description
9864 "GNU Robots is a game in which you program a robot to explore a world
9865 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9866 the game is to stay alive and collect prizes. The robot program conveniently
9867 may be written in a plain text file in the Scheme programming language.")
9868 (license license:gpl3+)))
9869
9870 (define-public ri-li
9871 (package
9872 (name "ri-li")
9873 (version "2.0.1")
9874 (source (origin
9875 (method url-fetch)
9876 (uri (string-append "mirror://sourceforge/ri-li/"
9877 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9878 "Ri-li-" version ".tar.bz2"))
9879 (sha256
9880 (base32
9881 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9882 ;; Taken from
9883 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9884 ;; It doesn't build otherwise.
9885 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9886 (build-system gnu-build-system)
9887 (arguments
9888 `(#:phases
9889 (modify-phases %standard-phases
9890 ;; Remove "gentoo" subdirectory from Makefile, as it is
9891 ;; missing a make file and generates a build failure.
9892 (add-after 'configure 'fix-build
9893 (lambda _
9894 (substitute* "Makefile"
9895 ((" gentoo") ""))
9896 #t))
9897 (add-after 'install 'install-desktop-file
9898 (lambda* (#:key outputs #:allow-other-keys)
9899 (let* ((out (assoc-ref outputs "out"))
9900 (apps (string-append out "/share/applications"))
9901 (pixmaps (string-append out "/share/pixmaps")))
9902 (for-each (lambda (f) (install-file f pixmaps))
9903 (find-files "data" "\\.(png|ico)$"))
9904 (mkdir-p apps)
9905 (with-output-to-file (string-append apps "/ri-li.desktop")
9906 (lambda _
9907 (format #t
9908 "[Desktop Entry]~@
9909 Name=Ri-li~@
9910 Exec=~a/bin/Ri_li~@
9911 Icon=~a/Ri-li-icon-32x32.png~@
9912 Categories=Game;ArcadeGame;~@
9913 Keywords=toy;train;wooden;snake-like;engine;~@
9914 Comment=a toy simulator game~@
9915 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9916 Comment[fr]=un jeu de petit train~@
9917 Comment[ro_RO]=un joc cu un tren de jucărie~@
9918 Terminal=false~@
9919 Type=Application~%"
9920 out pixmaps))))
9921 #t))
9922 (add-after 'install-desktop-file 'remove-spurious-files
9923 ;; Delete redundant files already installed somewhere else.
9924 (lambda* (#:key outputs #:allow-other-keys)
9925 (let ((out (assoc-ref outputs "out")))
9926 (for-each delete-file
9927 (find-files (string-append out "/share/Ri-li")
9928 "\\.(png|ico)|COPYING"))
9929 #t))))))
9930 (inputs
9931 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9932 (home-page "http://www.ri-li.org")
9933 (synopsis "Toy train simulation game")
9934 (description "Ri-li is a game in which you drive a wooden toy
9935 steam locomotive across many levels and collect all the coaches to
9936 win.")
9937 ;; The project is dual-licensed GPL2+ and GPL3+.
9938 (license (list license:gpl2+ license:gpl3+))))
9939
9940 (define-public freeorion
9941 (package
9942 (name "freeorion")
9943 (version "0.4.10")
9944 (source
9945 (origin
9946 (method url-fetch)
9947 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9948 "download/v" version "/FreeOrion_v" version
9949 "_2020-07-10.f3d403e_Source.tar.gz"))
9950 (sha256
9951 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9952 (modules '((guix build utils)))
9953 (snippet
9954 '(begin
9955 ;; There are some bundled fonts.
9956 (for-each delete-file-recursively '("default/data/fonts"))
9957 #t))))
9958 (build-system cmake-build-system)
9959 (arguments
9960 '(#:tests? #f ;no test
9961 #:phases
9962 (modify-phases %standard-phases
9963 (add-after 'unpack 'unbundle-fonts
9964 (lambda* (#:key inputs #:allow-other-keys)
9965 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9966 "/share/fonts/truetype/")))
9967 (substitute* "UI/ClientUI.cpp"
9968 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9969 all type)
9970 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9971 #t))))))
9972 (inputs
9973 `(("boost" ,boost)
9974 ("boost_signals" ,boost-signals2)
9975 ("font-dejavu" ,font-dejavu)
9976 ("font-roboto" ,font-google-roboto)
9977 ("freetype2" ,freetype)
9978 ("glew" ,glew)
9979 ("glu" ,glu)
9980 ("libogg" ,libogg)
9981 ("libpng" ,libpng)
9982 ("libvorbis" ,libvorbis)
9983 ("openal" ,openal)
9984 ("python" ,python)
9985 ("sdl2" ,sdl2)
9986 ("zlib" ,zlib)))
9987 (home-page "https://www.freeorion.org/index.php/Main_Page")
9988 (synopsis "Turn-based space empire and galactic conquest computer game")
9989 (description
9990 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9991 computer game being designed and built by the FreeOrion project. Control an
9992 empire with the goal of exploring the galaxy, expanding your territory,
9993 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9994 inspired by the tradition of the Master of Orion games, but is not a clone or
9995 remake of that series or any other game.")
9996 ;; Source code is released under gpl2. Artwork, music and sounds, and
9997 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9998 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9999 ;; released under lgpl2.1+.
10000 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
10001
10002 (define-public leela-zero
10003 (package
10004 (name "leela-zero")
10005 (version "0.17")
10006 (source
10007 (origin
10008 (method git-fetch)
10009 (uri (git-reference
10010 (url "https://github.com/leela-zero/leela-zero")
10011 (commit (string-append "v" version))))
10012 (file-name (git-file-name name version))
10013 (sha256
10014 (base32
10015 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
10016 (patches (search-patches "leela-zero-gtest.patch"))))
10017 (build-system cmake-build-system)
10018 (native-inputs
10019 `(("googletest" ,googletest)))
10020 (inputs
10021 `(("boost" ,boost)
10022 ("ocl-icd" ,ocl-icd)
10023 ("openblas" ,openblas)
10024 ("opencl-headers" ,opencl-headers)
10025 ("qtbase" ,qtbase)
10026 ("zlib" ,zlib)))
10027 (arguments
10028 '(#:configure-flags '("-DUSE_BLAS=YES")
10029 #:phases (modify-phases %standard-phases
10030 (add-before 'configure 'fix-tests
10031 (lambda* (#:key outputs #:allow-other-keys)
10032 (let ((home (getcwd)))
10033 (setenv "HOME" home)
10034 (substitute* "src/tests/gtests.cpp"
10035 (("\\.\\./src/tests/0k\\.txt")
10036 (string-append home "/src/tests/0k.txt"))
10037 (("cfg_gtp_mode = true;")
10038 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
10039 #t))
10040 (replace 'check
10041 (lambda _
10042 (invoke "./tests"))))))
10043 (home-page "https://github.com/leela-zero/leela-zero")
10044 (synopsis "Program playing the game of Go")
10045 (description
10046 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
10047 the AlphaGo Zero paper. The current best network weights file for the engine
10048 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
10049 (license license:gpl3+)))
10050
10051 (define-public q5go
10052 (package
10053 (name "q5go")
10054 (version "1.0")
10055 (source (origin
10056 (method git-fetch)
10057 (uri (git-reference
10058 (url "https://github.com/bernds/q5Go")
10059 (commit (string-append "q5go-" version))))
10060 (file-name (git-file-name name version))
10061 (sha256
10062 (base32
10063 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
10064 (build-system gnu-build-system)
10065 (native-inputs
10066 `(("pkg-config" ,pkg-config)))
10067 (inputs
10068 `(("qtbase" ,qtbase)
10069 ("qtmultimedia" ,qtmultimedia)
10070 ("qtsvg" ,qtsvg)))
10071 (arguments
10072 '(#:phases
10073 (modify-phases %standard-phases
10074 (add-after 'unpack 'fix-configure-script
10075 (lambda _
10076 ;; Bypass the unavailable qtchooser program.
10077 (substitute* "configure"
10078 (("test -z \"QTCHOOSER\"")
10079 "false")
10080 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
10081 command))
10082 #t))
10083 (add-after 'unpack 'fix-paths
10084 (lambda _
10085 (substitute* '("src/pics/Makefile.in"
10086 "src/translations/Makefile.in")
10087 (("\\$\\(datadir\\)/qGo/")
10088 "$(datadir)/q5go/"))
10089 #t))
10090 (add-after 'install 'install-desktop-file
10091 (lambda* (#:key outputs #:allow-other-keys)
10092 (let* ((out (assoc-ref outputs "out"))
10093 (apps (string-append out "/share/applications"))
10094 (pics (string-append out "/share/q5go/pics")))
10095 (delete-file-recursively (string-append out "/share/applnk"))
10096 (delete-file-recursively (string-append out "/share/mimelnk"))
10097 (install-file "../source/src/pics/Bowl.ico" pics)
10098 (mkdir-p apps)
10099 (with-output-to-file (string-append apps "/q5go.desktop")
10100 (lambda _
10101 (format #t
10102 "[Desktop Entry]~@
10103 Name=q5go~@
10104 Exec=~a/bin/q5go~@
10105 Icon=~a/Bowl.ico~@
10106 Categories=Game;~@
10107 Comment=Game of Go~@
10108 Comment[de]=Spiel des Go~@
10109 Comment[eo]=Goo~@
10110 Comment[es]=Juego de Go~@
10111 Comment[fr]=Jeu de Go~@
10112 Comment[ja]=囲碁~@
10113 Comment[ko]=바둑~@
10114 Comment[zh]=围棋~@
10115 Terminal=false~@
10116 Type=Application~%"
10117 out pics))))
10118 #t)))))
10119 (synopsis "Qt GUI to play the game of Go")
10120 (description
10121 "This a tool for Go players which performs the following functions:
10122 @itemize
10123 @item SGF editor,
10124 @item Analysis frontend for Leela Zero (or compatible engines),
10125 @item GTP interface (to play against an engine),
10126 @item IGS client (to play on the internet),
10127 @item Export games to a variety of formats.
10128 @end itemize")
10129 (home-page "https://github.com/bernds/q5Go")
10130 (license license:gpl2+)))
10131
10132 (define-public ktuberling
10133 (package
10134 (name "ktuberling")
10135 (version "20.12.0")
10136 (source
10137 (origin
10138 (method url-fetch)
10139 (uri (string-append "mirror://kde/stable/release-service/" version
10140 "/src/ktuberling-" version ".tar.xz"))
10141 (sha256
10142 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
10143 (build-system qt-build-system)
10144 (native-inputs
10145 `(("extra-cmake-modules" ,extra-cmake-modules)
10146 ("kdoctools" ,kdoctools)
10147 ("perl" ,perl)))
10148 (inputs
10149 `(("kcompletion" ,kcompletion)
10150 ("kconfigwidgets" ,kconfigwidgets)
10151 ("kcoreaddons" ,kcoreaddons)
10152 ("kcrash" ,kcrash)
10153 ("kdbusaddons" ,kdbusaddons)
10154 ("ki18n" ,ki18n)
10155 ("kio" ,kio)
10156 ("kwidgetsaddons" ,kwidgetsaddons)
10157 ("kxmlgui" ,kxmlgui)
10158 ("libkdegames" ,libkdegames)
10159 ("python" ,python-wrapper)
10160 ("qtbase" ,qtbase)
10161 ("qtmultimedia" ,qtmultimedia)
10162 ("qtdeclarative" ,qtdeclarative)
10163 ("qtsvg" ,qtsvg)))
10164 (home-page "https://games.kde.org/")
10165 (synopsis "Stamp drawing toy")
10166 (description "KTuberling is a drawing toy intended for small children and
10167 adults who remain young at heart. The game has no winner; the only purpose is
10168 to make the funniest faces you can. Several activities are possible, e.g.:
10169
10170 @itemize
10171 @item Give the potato a funny face, clothes, and other goodies
10172 @item Build a small town, complete with school, zoo, and fire department
10173 @item Create a fantastic moonscape with spaceships and aliens
10174 @item Top a pizza
10175 @end itemize
10176
10177 KTuberling can speak the name of each the object in several languages,
10178 to assist in learning basic vocabulary.
10179
10180 This package is part of the KDE games module.")
10181 (license (list license:gpl2+ license:fdl1.2+))))
10182
10183 (define-public picmi
10184 (package
10185 (name "picmi")
10186 (version "20.12.0")
10187 (source
10188 (origin
10189 (method url-fetch)
10190 (uri (string-append "mirror://kde/stable/release-service/" version
10191 "/src/picmi-" version ".tar.xz"))
10192 (sha256
10193 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
10194 (build-system qt-build-system)
10195 (native-inputs
10196 `(("extra-cmake-modules" ,extra-cmake-modules)
10197 ("kdoctools" ,kdoctools)))
10198 (inputs
10199 `(("kcoreaddons" ,kcoreaddons)
10200 ("kcrash" ,kcrash)
10201 ("kdbusaddons" ,kdbusaddons)
10202 ("kdeclarative" ,kdeclarative)
10203 ("ki18n" ,ki18n)
10204 ("kio" ,kio)
10205 ("knewstuff" ,knewstuff)
10206 ("kxmlgui" ,kxmlgui)
10207 ("libkdegames" ,libkdegames)
10208 ("qtbase" ,qtbase)
10209 ("qtdeclarative" ,qtdeclarative)
10210 ("qtsvg" ,qtsvg)))
10211 (home-page "https://games.kde.org/")
10212 (synopsis "Number logic game")
10213 (description "Picmi is a number logic game in which cells in a grid have
10214 to be colored or left blank according to numbers given at the side of the
10215 grid. The aim is to reveal a hidden picture.
10216
10217 This package is part of the KDE games module.")
10218 (license (list license:gpl2+ license:fdl1.2+))))
10219
10220 (define-public kolf
10221 (package
10222 (name "kolf")
10223 (version "20.12.0")
10224 (source
10225 (origin
10226 (method url-fetch)
10227 (uri (string-append "mirror://kde/stable/release-service/" version
10228 "/src/kolf-" version ".tar.xz"))
10229 (sha256
10230 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10231 (build-system qt-build-system)
10232 (native-inputs
10233 `(("extra-cmake-modules" ,extra-cmake-modules)
10234 ("kdoctools" ,kdoctools)))
10235 (inputs
10236 `(("kcompletion" ,kcompletion)
10237 ("kconfigwidgets" ,kconfigwidgets)
10238 ("kcoreaddons" ,kcoreaddons)
10239 ("kcrash" ,kcrash)
10240 ("kdbusaddons" ,kdbusaddons)
10241 ("ki18n" ,ki18n)
10242 ("kio" ,kio)
10243 ("kwidgetsaddons" ,kwidgetsaddons)
10244 ("kxmlgui" ,kxmlgui)
10245 ("ktextwidgets" ,ktextwidgets)
10246 ("libkdegames" ,libkdegames)
10247 ("qtbase" ,qtbase)
10248 ("qtdeclarative" ,qtdeclarative)))
10249 (home-page "https://games.kde.org/")
10250 (synopsis "Miniature golf game")
10251 (description "Kolf is a miniature golf game for one to ten players. The
10252 game is played from an overhead view, with a short bar representing the golf
10253 club. Kolf features many different types of objects, such as water hazards,
10254 slopes, sand traps, and black holes (warps), among others.
10255
10256 Features are:
10257 @itemize
10258 @item Single and Multi-player (up to ten players) modes
10259 @item High scores table
10260 @item Dynamic courses
10261 @item Third-party courses
10262 @item Course editor
10263 @end itemize
10264
10265 This package is part of the KDE games module.")
10266 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10267
10268 (define-public libkmahjongg
10269 (package
10270 (name "libkmahjongg")
10271 (version "20.12.0")
10272 (source
10273 (origin
10274 (method url-fetch)
10275 (uri (string-append "mirror://kde/stable/release-service/"
10276 version "/src/libkmahjongg-" version ".tar.xz"))
10277 (sha256
10278 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10279 (build-system qt-build-system)
10280 (native-inputs
10281 `(("extra-cmake-modules" ,extra-cmake-modules)))
10282 (inputs
10283 `(("kauth" ,kauth)
10284 ("kcompletion" ,kcompletion)
10285 ;("kconfig" ,kconfig)
10286 ("kcodecs" ,kcodecs)
10287 ("kconfigwidgets" ,kconfigwidgets)
10288 ("kcoreaddons" ,kcoreaddons)
10289 ("ki18n" ,ki18n)
10290 ("kwidgetsaddons" ,kwidgetsaddons)
10291 ("qtbase" ,qtbase)
10292 ("qtsvg" ,qtsvg)))
10293 (home-page "https://games.kde.org/")
10294 (synopsis "Shared library for kmahjongg and kshisen")
10295 (description "Shared library and common files for kmahjongg, kshisen and
10296 other Mah Jongg like games.")
10297 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10298
10299 (define-public kmahjongg
10300 (package
10301 (name "kmahjongg")
10302 (version "20.12.0")
10303 (source
10304 (origin
10305 (method url-fetch)
10306 (uri (string-append "mirror://kde/stable/release-service/"
10307 version "/src/kmahjongg-" version ".tar.xz"))
10308 (sha256
10309 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10310 (build-system qt-build-system)
10311 (native-inputs
10312 `(("extra-cmake-modules" ,extra-cmake-modules)
10313 ("kdoctools" ,kdoctools)))
10314 (inputs
10315 `(("kcompletion" ,kcompletion)
10316 ("kcrash" ,kcrash)
10317 ("kdbusaddons" ,kdbusaddons)
10318 ("kdeclarative" ,kdeclarative)
10319 ("ki18n" ,ki18n)
10320 ("knewstuff" ,knewstuff)
10321 ("kxmlgui" ,kxmlgui)
10322 ("libkdegames" ,libkdegames)
10323 ("libkmahjongg" ,libkmahjongg)
10324 ("qtbase" ,qtbase)
10325 ("qtdeclarative" ,qtdeclarative)
10326 ("qtsvg" ,qtsvg)))
10327 (home-page "https://games.kde.org/")
10328 (synopsis "Tile laying patience")
10329 (description "In KMahjongg the tiles are scrambled and staked on top of
10330 each other to resemble a certain shape. The player is then expected to remove
10331 all the tiles off the game board by locating each tile's matching pair.
10332
10333 A variety of tile layouts are included, as well as an editor to create new
10334 layouts.
10335
10336 This package is part of the KDE games module.")
10337 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10338
10339 (define-public kshisen
10340 (package
10341 (name "kshisen")
10342 (version "20.12.0")
10343 (source
10344 (origin
10345 (method url-fetch)
10346 (uri (string-append "mirror://kde/stable/release-service/"
10347 version "/src/kshisen-" version ".tar.xz"))
10348 (sha256
10349 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10350 (build-system qt-build-system)
10351 (native-inputs
10352 `(("extra-cmake-modules" ,extra-cmake-modules)
10353 ;("perl" ,perl)
10354 ;("pkg-config" ,pkg-config)
10355 ("kdoctools" ,kdoctools)))
10356 (inputs
10357 `(("kauth" ,kauth)
10358 ("kcompletion" ,kcompletion)
10359 ("kconfigwidgets" ,kconfigwidgets)
10360 ("kcoreaddons" ,kcoreaddons)
10361 ("kcrash" ,kcrash)
10362 ("kdbusaddons" ,kdbusaddons)
10363 ("ki18n" ,ki18n)
10364 ("kxmlgui" ,kxmlgui)
10365 ("libkdegames" ,libkdegames)
10366 ("libkmahjongg" ,libkmahjongg)
10367 ("qtbase" ,qtbase)
10368 ("qtdeclarative" ,qtdeclarative)))
10369 (home-page "https://games.kde.org/")
10370 (synopsis "Shisen-Sho solitaire game")
10371 (description "KShisen is a solitaire-like game played using the standard
10372 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10373 scrambled tiles
10374
10375 This package is part of the KDE games module.")
10376 (license license:gpl2+)))
10377
10378 (define-public kajongg
10379 (package
10380 (name "kajongg")
10381 (version "20.12.0")
10382 (source
10383 (origin
10384 (method url-fetch)
10385 (uri (string-append "mirror://kde/stable/release-service/"
10386 version "/src/kajongg-" version ".tar.xz"))
10387 (sha256
10388 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10389 (build-system qt-build-system)
10390 (arguments
10391 `(#:phases
10392 (modify-phases %standard-phases
10393 (add-after 'install 'wrap
10394 (lambda* (#:key outputs #:allow-other-keys)
10395 (let ((out (assoc-ref outputs "out")))
10396 (wrap-program (string-append out "/bin/kajongg")
10397 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
10398 #t))))))
10399 (native-inputs
10400 `(("extra-cmake-modules" ,extra-cmake-modules)
10401 ;("perl" ,perl)
10402 ("kdoctools" ,kdoctools)))
10403 (inputs
10404 `(("kconfig" ,kconfig)
10405 ("kconfigwidgets" ,kconfigwidgets)
10406 ("kcoreaddons" ,kcoreaddons)
10407 ("ki18n" ,ki18n)
10408 ("libkmahjongg" ,libkmahjongg)
10409 ("python" ,python)
10410 ("python-twisted" ,python-twisted)
10411 ("python-pyqt" ,python-pyqt)
10412 ("qtbase" ,qtbase)
10413 ("qtsvg" ,qtsvg)))
10414 (home-page "https://games.kde.org/")
10415 (synopsis "Classical Mah Jongg game for 4 players")
10416 (description "Kajongg is the ancient Chinese board game for 4 players.
10417
10418 If you are looking for the Mah Jongg solitaire please use the application
10419 kmahjongg.
10420
10421 Kajongg can be used in two different ways: Scoring a manual game where you
10422 play as always and use Kajongg for the computation of scores and for
10423 bookkeeping. Or you can use Kajongg to play against any combination of other
10424 human players or computer players.
10425
10426 This package is part of the KDE games module.")
10427 (license (list license:gpl2+ license:fdl1.2+))))
10428
10429 (define-public kbreakout
10430 (package
10431 (name "kbreakout")
10432 (version "20.12.0")
10433 (source
10434 (origin
10435 (method url-fetch)
10436 (uri (string-append "mirror://kde/stable/release-service/" version
10437 "/src/kbreakout-" version ".tar.xz"))
10438 (sha256
10439 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10440 (build-system qt-build-system)
10441 (native-inputs
10442 `(("extra-cmake-modules" ,extra-cmake-modules)
10443 ("kdoctools" ,kdoctools)))
10444 (inputs
10445 `(("kcompletion" ,kcompletion)
10446 ("kconfig" ,kconfig)
10447 ("kconfigwidgets" ,kconfigwidgets)
10448 ("kcoreaddons" ,kcoreaddons)
10449 ("kcrash" ,kcrash)
10450 ("kdbusaddons" ,kdbusaddons)
10451 ("ki18n" ,ki18n)
10452 ("kwidgetsaddons" ,kwidgetsaddons)
10453 ("kxmlgui" ,kxmlgui)
10454 ("libkdegames" ,libkdegames)
10455 ("qtbase" ,qtbase)
10456 ("qtdeclarative" ,qtdeclarative)))
10457 (home-page "https://games.kde.org/")
10458 (synopsis "Breakout like game")
10459 (description "KBreakout is similar to the classics breakout and xboing,
10460 featuring a number of added graphical enhancements and effects. You control a
10461 paddle at the bottom of the playing-field, and must destroy bricks at the top
10462 by bouncing balls against them.
10463
10464 This package is part of the KDE games module.")
10465 (license (list license:gpl2+ license:fdl1.2+))))
10466
10467 (define-public kmines
10468 (package
10469 (name "kmines")
10470 (version "20.12.0")
10471 (source
10472 (origin
10473 (method url-fetch)
10474 (uri (string-append "mirror://kde/stable/release-service/" version
10475 "/src/kmines-" version ".tar.xz"))
10476 (sha256
10477 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10478 (build-system qt-build-system)
10479 (native-inputs
10480 `(("extra-cmake-modules" ,extra-cmake-modules)
10481 ("kdoctools" ,kdoctools)))
10482 (inputs
10483 `(("kcompletion" ,kcompletion)
10484 ("kconfig" ,kconfig)
10485 ("kconfigwidgets" ,kconfigwidgets)
10486 ("kcoreaddons" ,kcoreaddons)
10487 ("kcrash" ,kcrash)
10488 ("kdbusaddons" ,kdbusaddons)
10489 ("ki18n" ,ki18n)
10490 ("ktextwidgets" ,ktextwidgets)
10491 ("kwidgetsaddons" ,kwidgetsaddons)
10492 ("kxmlgui" ,kxmlgui)
10493 ("libkdegames" ,libkdegames)
10494 ("qtbase" ,qtbase)
10495 ("qtdeclarative" ,qtdeclarative)))
10496 (home-page "https://games.kde.org/")
10497 (synopsis "Classical mine sweeper game")
10498 (description "KMines is a classic Minesweeper game. The idea is to
10499 uncover all the squares without blowing up any mines. When a mine is blown
10500 up, the game is over.
10501
10502 This package is part of the KDE games module.")
10503 (license (list license:gpl2+ license:fdl1.2+))))
10504
10505 (define-public konquest
10506 (package
10507 (name "konquest")
10508 (version "20.12.0")
10509 (source
10510 (origin
10511 (method url-fetch)
10512 (uri (string-append "mirror://kde/stable/release-service/"
10513 version "/src/konquest-" version ".tar.xz"))
10514 (sha256
10515 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10516 (build-system qt-build-system)
10517 (native-inputs
10518 `(("extra-cmake-modules" ,extra-cmake-modules)
10519 ("kdoctools" ,kdoctools)))
10520 (inputs
10521 `(("kcompletion" ,kcompletion)
10522 ("kconfig" ,kconfig)
10523 ("kcoreaddons" ,kcoreaddons)
10524 ("kcrash" ,kcrash)
10525 ("kdbusaddons" ,kdbusaddons)
10526 ("kguiaddons" ,kguiaddons)
10527 ("ki18n" ,ki18n)
10528 ("kwidgetsaddons" ,kwidgetsaddons)
10529 ("kxmlgui" ,kxmlgui)
10530 ("libkdegames" ,libkdegames)
10531 ("qtbase" ,qtbase)
10532 ("qtdeclarative" ,qtdeclarative)
10533 ("qtsvg" ,qtsvg)))
10534 (home-page "https://games.kde.org/")
10535 (synopsis "Simple turn-based strategy game")
10536 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10537 conquer other planets by sending ships to them. The goal is to build an
10538 interstellar empire and ultimately conquer all other player's planets. The
10539 game can be played with up to nine empires, commanded either by the computer
10540 or by puny earthlings.
10541
10542 This package is part of the KDE games module.")
10543 (license (list license:gpl2+ license:fdl1.2+))))
10544
10545 (define-public kbounce
10546 (package
10547 (name "kbounce")
10548 (version "20.12.0")
10549 (source
10550 (origin
10551 (method url-fetch)
10552 (uri (string-append "mirror://kde/stable/release-service/"
10553 version "/src/kbounce-" version ".tar.xz"))
10554 (sha256
10555 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10556 (build-system qt-build-system)
10557 (native-inputs
10558 `(("extra-cmake-modules" ,extra-cmake-modules)
10559 ("kdoctools" ,kdoctools)))
10560 (inputs
10561 `(("kcompletion" ,kcompletion)
10562 ("kconfigwidgets" ,kconfigwidgets)
10563 ("kcoreaddons" ,kcoreaddons)
10564 ("kcrash" ,kcrash)
10565 ("kdbusaddons" ,kdbusaddons)
10566 ("ki18n" ,ki18n)
10567 ("kio" ,kio)
10568 ("kwidgetsaddons" ,kwidgetsaddons)
10569 ("kxmlgui" ,kxmlgui)
10570 ("libkdegames" ,libkdegames)
10571 ("qtbase" ,qtbase)
10572 ("qtdeclarative" ,qtdeclarative)
10573 ("qtsvg" ,qtsvg)))
10574 (home-page "https://games.kde.org/")
10575 (synopsis "Jezzball arcade game")
10576 (description "KBounce is a single player arcade game with the elements of
10577 puzzle. It is played on a field, surrounded by wall, with two or more balls
10578 bouncing around within the walls. The object of the game is to build new
10579 walls to decrease the size of the active field.
10580
10581 This package is part of the KDE games module.")
10582 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10583
10584 (define-public kblocks
10585 (package
10586 (name "kblocks")
10587 (version "20.12.0")
10588 (source
10589 (origin
10590 (method url-fetch)
10591 (uri (string-append "mirror://kde/stable/release-service/"
10592 version "/src/kblocks-" version ".tar.xz"))
10593 (sha256
10594 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10595 (build-system qt-build-system)
10596 (native-inputs
10597 `(("extra-cmake-modules" ,extra-cmake-modules)
10598 ("kdoctools" ,kdoctools)))
10599 (inputs
10600 `(("kcompletion" ,kcompletion)
10601 ("kconfig" ,kconfig)
10602 ("kconfigwidgets" ,kconfigwidgets)
10603 ("kcoreaddons" ,kcoreaddons)
10604 ("kcrash" ,kcrash)
10605 ("kdbusaddons" ,kdbusaddons)
10606 ("ki18n" ,ki18n)
10607 ("kwidgetsaddons" ,kwidgetsaddons)
10608 ("kxmlgui" ,kxmlgui)
10609 ("libkdegames" ,libkdegames)
10610 ("qtbase" ,qtbase)
10611 ("qtdeclarative" ,qtdeclarative)
10612 ("qtsvg" ,qtsvg)))
10613 (home-page "https://games.kde.org/")
10614 (synopsis "Single player falling blocks puzzle game")
10615 (description "KBlocks is the classic Tetris-like falling blocks game.
10616
10617 The idea is to stack the falling blocks to create horizontal lines without any
10618 gaps. When a line is completed it is removed, and more space is available in
10619 the play area. When there is not enough space for blocks to fall, the game is
10620 over.
10621
10622 This package is part of the KDE games module.")
10623 (license (list license:gpl2+ license:fdl1.2+))))
10624
10625 (define-public ksudoku
10626 (package
10627 (name "ksudoku")
10628 (version "20.12.0")
10629 (source
10630 (origin
10631 (method url-fetch)
10632 (uri (string-append "mirror://kde/stable/release-service/"
10633 version "/src/ksudoku-" version ".tar.xz"))
10634 (sha256
10635 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10636 (build-system qt-build-system)
10637 (native-inputs
10638 `(("extra-cmake-modules" ,extra-cmake-modules)
10639 ("kdoctools" ,kdoctools)))
10640 (inputs
10641 `(("karchive" ,karchive)
10642 ("kconfig" ,kconfig)
10643 ("kconfigwidgets" ,kconfigwidgets)
10644 ("kcoreaddons" ,kcoreaddons)
10645 ("kcrash" ,kcrash)
10646 ("kguiaddons" ,kguiaddons)
10647 ("ki18n" ,ki18n)
10648 ("kiconthemes" ,kiconthemes)
10649 ("kio" ,kio)
10650 ("kwidgetsaddons" ,kwidgetsaddons)
10651 ("kxmlgui" ,kxmlgui)
10652 ("libkdegames" ,libkdegames)
10653 ("glu" ,glu)
10654 ("qtbase" ,qtbase)
10655 ("qtdeclarative" ,qtdeclarative)
10656 ("qtsvg" ,qtsvg)))
10657 (home-page "https://games.kde.org/")
10658 (synopsis "Sudoku puzzle game and solver")
10659 (description "KSudoku is a Sudoku game and solver, supporting a range of
10660 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10661 puzzle sheets and find the solution to any Sudoku puzzle.
10662
10663 The word Sudoku means \"single number in an allotted place\" in Japanese.
10664 These are the basic rules: Every Sudoku is a square divided into 3x3
10665 subsquares with 3x3 cells each.
10666
10667 Some cells are filled with a number at the beginning. The remaining ones are
10668 to be filled by the player using numbers from 1 to 9, without repeating a
10669 number twice on each column, row or subsquare (each of them must contain only
10670 one 1, one 2, one 3, and so on). The game requires logic and patience.
10671 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10672 and experience.
10673
10674 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10675 board we use letters): arithmetic relationships between numbers are
10676 irrelevant.
10677
10678 This program supports also 16x16 games with numbers from 1 to 16 and 256
10679 cells with 16 cols, rows and subsquares!
10680
10681 More information at http://en.wikipedia.org/wiki/Sudoku
10682
10683 This package is part of the KDE games module.")
10684 (license (list license:gpl2+ license:fdl1.2+))))
10685
10686 (define-public klines
10687 (package
10688 (name "klines")
10689 (version "20.12.0")
10690 (source
10691 (origin
10692 (method url-fetch)
10693 (uri (string-append "mirror://kde/stable/release-service/" version
10694 "/src/klines-" version ".tar.xz"))
10695 (sha256
10696 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10697 (build-system qt-build-system)
10698 (native-inputs
10699 `(("extra-cmake-modules" ,extra-cmake-modules)
10700 ("kdoctools" ,kdoctools)))
10701 (inputs
10702 `(("kcompletion" ,kcompletion)
10703 ("kconfigwidgets" ,kconfigwidgets)
10704 ("kcoreaddons" ,kcoreaddons)
10705 ("kcrash" ,kcrash)
10706 ("kdbusaddons" ,kdbusaddons)
10707 ("ki18n" ,ki18n)
10708 ("kwidgetsaddons" ,kwidgetsaddons)
10709 ("kxmlgui" ,kxmlgui)
10710 ("libkdegames" ,libkdegames)
10711 ("qtbase" ,qtbase)
10712 ("qtdeclarative" ,qtdeclarative)))
10713 (home-page "https://games.kde.org/")
10714 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10715 (description "KLines is a simple but highly addictive one player game.
10716
10717 The player has to move the colored balls around the game board, gathering them
10718 into the lines of the same color by five. Once the line is complete it is
10719 removed from the board, therefore freeing precious space. In the same time
10720 the new balls keep arriving by three after each move, filling up the game
10721 board.
10722
10723 KLines is a single-player game where the player removes colored balls from the
10724 board by arranging them into lines of five or more. However, every time the
10725 player moves a ball, three more balls are added to the board.
10726
10727 This package is part of the KDE games module.")
10728 (license (list license:gpl2+ license:fdl1.2+))))
10729
10730 (define-public kgoldrunner
10731 (package
10732 (name "kgoldrunner")
10733 (version "20.12.0")
10734 (source
10735 (origin
10736 (method url-fetch)
10737 (uri (string-append "mirror://kde/stable/release-service/" version
10738 "/src/kgoldrunner-" version ".tar.xz"))
10739 (sha256
10740 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
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 ("kcoreaddons" ,kcoreaddons)
10748 ("kcrash" ,kcrash)
10749 ("kdbusaddons" ,kdbusaddons)
10750 ("ki18n" ,ki18n)
10751 ("kio" ,kio)
10752 ("kwidgetsaddons" ,kwidgetsaddons)
10753 ("kxmlgui" ,kxmlgui)
10754 ("libkdegames" ,libkdegames)
10755 ("qtbase" ,qtbase)
10756 ("qtdeclarative" ,qtdeclarative)))
10757 (home-page "https://games.kde.org/")
10758 (synopsis "Action and puzzle solving game")
10759 (description "KGoldrunner is an action game where the hero runs through a
10760 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10761 gold nuggets and escape to the next level. Your enemies are also after the
10762 gold. Worse still, they are after you!.
10763
10764 KGoldrunner is a fast-paced platform game where the player must navigate a
10765 maze while collecting gold nuggets and avoiding enemies. A variety of level
10766 packs are included, as well as an editor to create new levels.
10767
10768 This package is part of the KDE games module.")
10769 (license (list license:gpl2+ license:fdl1.2+))))
10770
10771 (define-public kdiamond
10772 (package
10773 (name "kdiamond")
10774 (version "20.12.0")
10775 (source
10776 (origin
10777 (method url-fetch)
10778 (uri (string-append "mirror://kde/stable/release-service/" version
10779 "/src/kdiamond-" version ".tar.xz"))
10780 (sha256
10781 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
10782 (build-system qt-build-system)
10783 (native-inputs
10784 `(("extra-cmake-modules" ,extra-cmake-modules)
10785 ("kdoctools" ,kdoctools)))
10786 (inputs
10787 `(("kcompletion" ,kcompletion)
10788 ("kconfig" ,kconfig)
10789 ("kconfigwidgets" ,kconfigwidgets)
10790 ("kcoreaddons" ,kcoreaddons)
10791 ("kcrash" ,kcrash)
10792 ("kdbusaddons" ,kdbusaddons)
10793 ("ki18n" ,ki18n)
10794 ("knotifications" ,knotifications)
10795 ("knotifyconfig" ,knotifyconfig)
10796 ("kwidgetsaddons" ,kwidgetsaddons)
10797 ("kxmlgui" ,kxmlgui)
10798 ("libkdegames" ,libkdegames)
10799 ("qtbase" ,qtbase)
10800 ("qtdeclarative" ,qtdeclarative)))
10801 (home-page "https://games.kde.org/")
10802 (synopsis "Three-in-a-row game")
10803 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10804 features unlimited fun with randomly generated games and five difficulty
10805 levels with varying number of diamond colors and board sizes.
10806
10807 This package is part of the KDE games module.")
10808 (license (list license:gpl2+ license:fdl1.2+))))
10809
10810 (define-public kfourinline
10811 (package
10812 (name "kfourinline")
10813 (version "20.12.0")
10814 (source
10815 (origin
10816 (method url-fetch)
10817 (uri (string-append "mirror://kde/stable/release-service/" version
10818 "/src/kfourinline-" version ".tar.xz"))
10819 (sha256
10820 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10821 (build-system qt-build-system)
10822 (native-inputs
10823 `(("extra-cmake-modules" ,extra-cmake-modules)
10824 ("kdoctools" ,kdoctools)))
10825 (inputs
10826 `(("kcompletion" ,kcompletion)
10827 ("kconfig" ,kconfig)
10828 ("kconfigwidgets" ,kconfigwidgets)
10829 ("kcoreaddons" ,kcoreaddons)
10830 ("kcrash" ,kcrash)
10831 ("kdnssd" ,kdnssd)
10832 ("ki18n" ,ki18n)
10833 ("kxmlgui" ,kxmlgui)
10834 ("libkdegames" ,libkdegames)
10835 ("qtbase" ,qtbase)
10836 ("qtdeclarative" ,qtdeclarative)
10837 ("qtsvg" ,qtsvg)))
10838 (home-page "https://games.kde.org/")
10839 (synopsis "Place 4 pieces in a row")
10840 (description "KFourInLine is a board game for two players based on the
10841 Connect-Four game.
10842
10843 KFourInLine is a game where two players take turns dropping pieces into a
10844 grid, the winner being the first to place four pieces in a line.
10845
10846 This package is part of the KDE games module.")
10847 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10848
10849 (define-public kblackbox
10850 (package
10851 (name "kblackbox")
10852 (version "20.12.0")
10853 (source
10854 (origin
10855 (method url-fetch)
10856 (uri (string-append "mirror://kde/stable/release-service/" version
10857 "/src/kblackbox-" version ".tar.xz"))
10858 (sha256
10859 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10860 (build-system qt-build-system)
10861 (native-inputs
10862 `(("extra-cmake-modules" ,extra-cmake-modules)
10863 ("kdoctools" ,kdoctools)))
10864 (inputs
10865 `(("karchive" ,karchive)
10866 ("kcompletion" ,kcompletion)
10867 ("kconfig" ,kconfig)
10868 ("kcoreaddons" ,kcoreaddons)
10869 ("kcrash" ,kcrash)
10870 ("kdbusaddons" ,kdbusaddons)
10871 ("ki18n" ,ki18n)
10872 ("ktextwidgets" ,ktextwidgets)
10873 ("kxmlgui" ,kxmlgui)
10874 ("libkdegames" ,libkdegames)
10875 ("qtbase" ,qtbase)
10876 ("qtdeclarative" ,qtdeclarative)
10877 ("qtsvg" ,qtsvg)))
10878 (home-page "https://games.kde.org/")
10879 (synopsis "Find atoms in a grid by shooting electrons")
10880 (description "KBlackbox is a game of hide and seek played on a grid of
10881 boxes where the computer has hidden several balls. The position of the hidden
10882 balls can be deduced by shooting beams into the box
10883
10884 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10885 player shoots rays into the grid to deduce the positions of hidden objects.
10886
10887 This package is part of the KDE games module.")
10888 (license (list license:gpl2+ license:fdl1.2+))))
10889
10890 (define-public knetwalk
10891 (package
10892 (name "knetwalk")
10893 (version "20.12.0")
10894 (source
10895 (origin
10896 (method url-fetch)
10897 (uri (string-append "mirror://kde/stable/release-service/" version
10898 "/src/knetwalk-" version ".tar.xz"))
10899 (sha256
10900 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
10901 (build-system qt-build-system)
10902 (native-inputs
10903 `(("extra-cmake-modules" ,extra-cmake-modules)
10904 ("kdoctools" ,kdoctools)))
10905 (inputs
10906 `(("kcompletion" ,kcompletion)
10907 ("kconfig" ,kconfig)
10908 ("kconfigwidgets" ,kconfigwidgets)
10909 ("kcoreaddons" ,kcoreaddons)
10910 ("kcrash" ,kcrash)
10911 ("kdbusaddons" ,kdbusaddons)
10912 ("ki18n" ,ki18n)
10913 ("ktextwidgets" ,ktextwidgets)
10914 ("kwidgetsaddons" ,kwidgetsaddons)
10915 ("kxmlgui" ,kxmlgui)
10916 ("libkdegames" ,libkdegames)
10917 ("qtbase" ,qtbase)
10918 ("qtdeclarative" ,qtdeclarative)))
10919 (home-page "https://games.kde.org/")
10920 (synopsis "Turn the board pieces to get all computers connected")
10921 (description "KNetWalk is a small game where you have to build up a
10922 computer network by rotating the wires to connect the terminals to the server.
10923 When the network is build, a highscore-list comes up where competitions can be
10924 fought out.
10925
10926 KNetwalk is a puzzle game where the player arranges sections of wire to
10927 connect all the computers on the board.
10928
10929 This package is part of the KDE games module.")
10930 (license (list license:gpl2+ license:fdl1.2+))))
10931
10932 (define-public bomber
10933 (package
10934 (name "bomber")
10935 (version "20.12.0")
10936 (source
10937 (origin
10938 (method url-fetch)
10939 (uri (string-append "mirror://kde/stable/release-service/" version
10940 "/src/bomber-" version ".tar.xz"))
10941 (sha256
10942 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
10943 (build-system qt-build-system)
10944 (native-inputs
10945 `(("extra-cmake-modules" ,extra-cmake-modules)
10946 ("kdoctools" ,kdoctools)))
10947 (inputs
10948 `(("kcompletiom" ,kcompletion)
10949 ("kconfig" ,kconfig)
10950 ("kcoreaddons" ,kcoreaddons)
10951 ("kcrash" ,kcrash)
10952 ("kdbusaddons" ,kdbusaddons)
10953 ("ki18n" ,ki18n)
10954 ("kxmlgui" ,kxmlgui)
10955 ("libkdegames" ,libkdegames)
10956 ("qtbase" ,qtbase)
10957 ("qtdeclarative" ,qtdeclarative)))
10958 (home-page "https://games.kde.org/")
10959 (synopsis "Arcade bombing game")
10960 (description "Bomber is a single player arcade game.
10961
10962 The player is invading various cities in a plane that is decreasing in height.
10963 The goal of the game is to destroy all the buildings and advance to the next
10964 level. Each level gets a bit harder by increasing the speed of the plane and
10965 the height of the buildings.
10966
10967 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10968 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10969 not destroyed a building in your path, you will crash into it.
10970
10971 This package is part of the KDE games module.")
10972 (license (list license:gpl2+ license:fdl1.2+))))
10973
10974 (define-public granatier
10975 (package
10976 (name "granatier")
10977 (version "20.12.0")
10978 (source
10979 (origin
10980 (method url-fetch)
10981 (uri (string-append "mirror://kde/stable/release-service/" version
10982 "/src/granatier-" version ".tar.xz"))
10983 (sha256
10984 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
10985 (build-system qt-build-system)
10986 (native-inputs
10987 `(("extra-cmake-modules" ,extra-cmake-modules)
10988 ("kdoctools" ,kdoctools)))
10989 (inputs
10990 `(("kcompletion" ,kcompletion)
10991 ("kconfig" ,kconfig)
10992 ("kconfigwidgets" ,kconfigwidgets)
10993 ("kcoreaddons" ,kcoreaddons)
10994 ("kcrash" ,kcrash)
10995 ("kdbusaddons" ,kdbusaddons)
10996 ("ki18n" ,ki18n)
10997 ("knewstuff" ,knewstuff)
10998 ("kwidgetsaddons" ,kwidgetsaddons)
10999 ("kxmlgui" ,kxmlgui)
11000 ("libkdegames" ,libkdegames)
11001 ("qtbase" ,qtbase)
11002 ("qtdeclarative" ,qtdeclarative)
11003 ("qtsvg" ,qtsvg)))
11004 (home-page "https://games.kde.org/")
11005 (synopsis "Bomberman clone")
11006 (description "Granatier is a clone of the classic Bomberman game,
11007 inspired by the work of the Clanbomber clone.
11008
11009 This package is part of the KDE games module.")
11010 (license (list license:gpl2+ license:fdl1.2+))))
11011
11012 (define-public ksirk
11013 (package
11014 (name "ksirk")
11015 (version "20.12.0")
11016 (source
11017 (origin
11018 (method url-fetch)
11019 (uri (string-append "mirror://kde/stable/release-service/" version
11020 "/src/ksirk-" version ".tar.xz"))
11021 (sha256
11022 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
11023 (build-system qt-build-system)
11024 (native-inputs
11025 `(("extra-cmake-modules" ,extra-cmake-modules)
11026 ("kdoctools" ,kdoctools)))
11027 (inputs
11028 `(("kcrash" ,kcrash)
11029 ("ki18n" ,ki18n)
11030 ("kiconthemes" ,kiconthemes)
11031 ("kio" ,kio)
11032 ("knewstuff" ,knewstuff)
11033 ("kwallet" ,kwallet)
11034 ("kxmlgui" ,kxmlgui)
11035 ("libkdegames" ,libkdegames)
11036 ("phonon" ,phonon)
11037 ("qca" ,qca)
11038 ("qtbase" ,qtbase)
11039 ("qtdeclarative" ,qtdeclarative)
11040 ("qtsvg" ,qtsvg)
11041 ("zlib" ,zlib)))
11042 (home-page "https://games.kde.org/")
11043 (synopsis "Computerized version of the well known strategy board game
11044 'Risk'")
11045 (description "KsirK is a multi-player network-enabled game. The goal of
11046 the game is simply to conquer the world by attacking your neighbors with your
11047 armies.
11048
11049 At the beginning of the game, countries are distributed to all the players.
11050 Each country contains one army represented by an infantryman. Each player has
11051 some armies to distribute to his countries. On each turn, each player can
11052 attack his neighbours, eventually conquering one or more countries. At the
11053 end of each turn, some bonus armies are distributed to the players in function
11054 of the number of countries they own. The winner is the player that conquered
11055 all the world.
11056
11057 Features:
11058 @itemize
11059 @item Support for 1-6 human or computer players
11060 @item Multi-player gaming over a network
11061 @item You can easily create new skins with SVG graphics and the skin editor
11062 @item Hot New Stuff support. You can easily download and install new skins
11063 @end itemize
11064
11065 This package is part of the KDE games module.")
11066 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11067
11068 (define-public palapeli
11069 (package
11070 (name "palapeli")
11071 (version "20.12.0")
11072 (source
11073 (origin
11074 (method url-fetch)
11075 (uri (string-append "mirror://kde/stable/release-service/" version
11076 "/src/palapeli-" version ".tar.xz"))
11077 (sha256
11078 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
11079 (build-system qt-build-system)
11080 (native-inputs
11081 `(("extra-cmake-modules" ,extra-cmake-modules)
11082 ("kdoctools" ,kdoctools)))
11083 (inputs
11084 `(("karchive" ,karchive)
11085 ("kcompletion" ,kcompletion)
11086 ("kconfig" ,kconfig)
11087 ("kconfigwidgets" ,kconfigwidgets)
11088 ("kcoreaddons" ,kcoreaddons)
11089 ("kcrash" ,kcrash)
11090 ("kcrash" ,kcrash)
11091 ("ki18n" ,ki18n)
11092 ("ki18n" ,ki18n)
11093 ("kio" ,kio)
11094 ("kitemviews" ,kitemviews)
11095 ("knotifications" ,knotifications)
11096 ("kservice" ,kservice)
11097 ("kwidgetsaddons" ,kwidgetsaddons)
11098 ("kxmlgui" ,kxmlgui)
11099 ("libkdegames" ,libkdegames)
11100 ("qtbase" ,qtbase)
11101 ("qtdeclarative" ,qtdeclarative)
11102 ("qtsvg" ,qtsvg)
11103 ("shared-mime-info" ,shared-mime-info)))
11104 (home-page "https://games.kde.org/")
11105 (synopsis "Jigsaw puzzle game")
11106 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
11107 that genre, you are not limited to aligning pieces on imaginary grids. The
11108 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
11109 everything you do is saved on your disk immediately.
11110
11111 Palapeli is the Finnish word for jigsaw puzzle.
11112
11113 This package is part of the KDE games module.")
11114 (license license:gpl2+)))
11115
11116 (define-public kiriki
11117 (package
11118 (name "kiriki")
11119 (version "20.12.0")
11120 (source
11121 (origin
11122 (method url-fetch)
11123 (uri (string-append "mirror://kde/stable/release-service/" version
11124 "/src/kiriki-" version ".tar.xz"))
11125 (sha256
11126 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
11127 (build-system qt-build-system)
11128 (native-inputs
11129 `(("extra-cmake-modules" ,extra-cmake-modules)
11130 ("kdoctools" ,kdoctools)))
11131 (inputs
11132 `(("kcompletion" ,kcompletion)
11133 ("kconfig" ,kconfig)
11134 ("kconfigwidgets" ,kconfigwidgets)
11135 ("kcoreaddons" ,kcoreaddons)
11136 ("kcrash" ,kcrash)
11137 ("kdbusaddons" ,kdbusaddons)
11138 ("ki18n" ,ki18n)
11139 ("kiconthemes" ,kiconthemes)
11140 ("kxmlgui" ,kxmlgui)
11141 ("libkdegames" ,libkdegames)
11142 ("qtbase" ,qtbase)
11143 ("qtdeclarative" ,qtdeclarative)))
11144 (home-page "https://games.kde.org/")
11145 (synopsis "Yahtzee dice game")
11146 (description "Kiriki is an addictive and fun dice game, designed to be
11147 played by as many as six players.
11148
11149 Participants have to collect points by rolling five dice for up to three times
11150 per single turn to make combinations with the highest score.
11151
11152 This package is part of the KDE games module.")
11153 (license (list license:gpl2+ license:fdl1.2+))))
11154
11155 (define-public kigo
11156 (package
11157 (name "kigo")
11158 (version "20.12.0")
11159 (source
11160 (origin
11161 (method url-fetch)
11162 (uri (string-append "mirror://kde/stable/release-service/" version
11163 "/src/kigo-" version ".tar.xz"))
11164 (sha256
11165 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
11166 (build-system qt-build-system)
11167 (native-inputs
11168 `(("extra-cmake-modules" ,extra-cmake-modules)
11169 ("kdoctools" ,kdoctools)))
11170 (inputs
11171 `(("kconfig" ,kconfig)
11172 ("kconfigwidgets" ,kconfigwidgets)
11173 ("kcoreaddons" ,kcoreaddons)
11174 ("kcrash" ,kcrash)
11175 ("kdbusaddons" ,kdbusaddons)
11176 ("ki18n" ,ki18n)
11177 ("kio" ,kio)
11178 ("knewstuff" ,knewstuff)
11179 ("ktextwidgets" ,ktextwidgets)
11180 ("kxmlgui" ,kxmlgui)
11181 ("libkdegames" ,libkdegames)
11182 ("qtbase" ,qtbase)
11183 ("qtdeclarative" ,qtdeclarative)
11184 ("qtsvg" ,qtsvg)))
11185 (home-page "https://games.kde.org/")
11186 (synopsis "Go board game")
11187 (description "Kigo is an open-source implementation of the popular Go
11188 game.
11189
11190 Go is a strategic board game for two players. It is also known as
11191 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
11192 for being rich in strategic complexity despite its simple rules. The game is
11193 played by two players who alternately place black and white stones (playing
11194 pieces, now usually made of glass or plastic) on the vacant intersections of a
11195 grid of 19x19 lines (9x9 or 13x13 for easier games).
11196
11197 You also need to install a go engine, e.g. @code{gnugo}.
11198
11199 This package is part of the KDE games module.")
11200 (license license:gpl3+)))
11201
11202 (define-public kubrick
11203 (package
11204 (name "kubrick")
11205 (version "20.12.0")
11206 (source
11207 (origin
11208 (method url-fetch)
11209 (uri (string-append "mirror://kde/stable/release-service/" version
11210 "/src/kubrick-" version ".tar.xz"))
11211 (sha256
11212 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
11213 (build-system qt-build-system)
11214 (native-inputs
11215 `(("extra-cmake-modules" ,extra-cmake-modules)
11216 ("kdoctools" ,kdoctools)))
11217 (inputs
11218 `(("glu" ,glu)
11219 ("kconfig" ,kconfig)
11220 ("kconfigwidgets" ,kconfigwidgets)
11221 ("kcoreaddons" ,kcoreaddons)
11222 ("kcrash" ,kcrash)
11223 ("ki18n" ,ki18n)
11224 ("kio" ,kio)
11225 ("kwidgetsaddons" ,kwidgetsaddons)
11226 ("kxmlgui" ,kxmlgui)
11227 ("libkdegames" ,libkdegames)
11228 ("qtbase" ,qtbase)
11229 ("qtdeclarative" ,qtdeclarative)
11230 ("qtsvg" ,qtsvg)))
11231 (home-page "https://games.kde.org/")
11232 (synopsis "Game based on Rubik's Cube")
11233 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11234
11235 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11236 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11237 selection of puzzles at several levels of difficulty, as well as demos of
11238 pretty patterns and solution moves, or you can make up your own puzzles. The
11239 game has unlimited undo, redo, save and reload capabilities.
11240
11241 This package is part of the KDE games module.")
11242 (license (list license:gpl2+ license:fdl1.2+))))
11243
11244 (define-public lskat
11245 (package
11246 (name "lskat")
11247 (version "20.12.0")
11248 (source
11249 (origin
11250 (method url-fetch)
11251 (uri (string-append "mirror://kde/stable/release-service/" version
11252 "/src/lskat-" version ".tar.xz"))
11253 (sha256
11254 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11255 (build-system qt-build-system)
11256 (native-inputs
11257 `(("extra-cmake-modules" ,extra-cmake-modules)
11258 ("kdoctools" ,kdoctools)))
11259 (inputs
11260 `(("kcompletion" ,kcompletion)
11261 ("kconfig" ,kconfig)
11262 ("kcoreaddons" ,kcoreaddons)
11263 ("kcrash" ,kcrash)
11264 ("kguiaddons" ,kguiaddons)
11265 ("ki18n" ,ki18n)
11266 ("kwidgetsaddons" ,kwidgetsaddons)
11267 ("kxmlgui" ,kxmlgui)
11268 ("libkdegames" ,libkdegames)
11269 ("qtbase" ,qtbase)
11270 ("qtdeclarative" ,qtdeclarative)
11271 ("qtsvg" ,qtsvg)))
11272 (home-page "https://games.kde.org/")
11273 (synopsis "Lieutnant Skat card game")
11274 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11275 engaging card game for two players, where the second player is either live
11276 opponent, or a built in artificial intelligence.
11277
11278 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11279
11280 This package is part of the KDE games module.")
11281 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11282
11283 (define-public kapman
11284 (package
11285 (name "kapman")
11286 (version "20.12.0")
11287 (source
11288 (origin
11289 (method url-fetch)
11290 (uri (string-append "mirror://kde/stable/release-service/" version
11291 "/src/kapman-" version ".tar.xz"))
11292 (sha256
11293 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11294 (build-system qt-build-system)
11295 (native-inputs
11296 `(("extra-cmake-modules" ,extra-cmake-modules)
11297 ("kdoctools" ,kdoctools)))
11298 (inputs
11299 `(("kcompletion" ,kcompletion)
11300 ("kconfig" ,kconfig)
11301 ("kconfigwidgets" ,kconfigwidgets)
11302 ("kcoreaddons" ,kcoreaddons)
11303 ("kcrash" ,kcrash)
11304 ("kdbusaddons" ,kdbusaddons)
11305 ("ki18n" ,ki18n)
11306 ("kxmlgui" ,kxmlgui)
11307 ("libkdegames" ,libkdegames)
11308 ("qtbase" ,qtbase)
11309 ("qtdeclarative" ,qtdeclarative)
11310 ("qtsvg" ,qtsvg)))
11311 (home-page "https://games.kde.org/")
11312 (synopsis "Pac-Man clone")
11313 (description "Kapman is a clone of the well known game Pac-Man.
11314
11315 You must run through the maze to eat all pills without being captured by a
11316 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11317 few seconds. When a stage is cleared of pills and energizer the player is
11318 taken to the next stage with slightly increased game speed
11319
11320 This package is part of the KDE games module.")
11321 (license (list license:gpl2+ license:fdl1.2+))))
11322
11323 (define-public kspaceduel
11324 (package
11325 (name "kspaceduel")
11326 (version "20.12.0")
11327 (source
11328 (origin
11329 (method url-fetch)
11330 (uri (string-append "mirror://kde/stable/release-service/" version
11331 "/src/kspaceduel-" version ".tar.xz"))
11332 (sha256
11333 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11334 (build-system qt-build-system)
11335 (native-inputs
11336 `(("extra-cmake-modules" ,extra-cmake-modules)
11337 ("kdoctools" ,kdoctools)))
11338 (inputs
11339 `(("kcompletion" ,kcompletion)
11340 ("kconfig" ,kconfig)
11341 ("kconfigwidgets" ,kconfigwidgets)
11342 ("kcoreaddons" ,kcoreaddons)
11343 ("kcrash" ,kcrash)
11344 ("kdbusaddons" ,kdbusaddons)
11345 ("ki18n" ,ki18n)
11346 ("kxmlgui" ,kxmlgui)
11347 ("libkdegames" ,libkdegames)
11348 ("qtbase" ,qtbase)
11349 ("qtdeclarative" ,qtdeclarative)
11350 ("qtsvg" ,qtsvg)))
11351 (home-page "https://games.kde.org/")
11352 (synopsis "Two player game with shooting spaceships flying around a sun")
11353 (description "KSpaceduel is a space battle game for one or two players,
11354 where two ships fly around a star in a struggle to be the only survivor.
11355
11356 This package is part of the KDE games module.")
11357 (license (list license:gpl2+ license:fdl1.2+))))
11358
11359 (define-public bovo
11360 (package
11361 (name "bovo")
11362 (version "20.12.0")
11363 (source
11364 (origin
11365 (method url-fetch)
11366 (uri (string-append "mirror://kde/stable/release-service/" version
11367 "/src/bovo-" version ".tar.xz"))
11368 (sha256
11369 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11370 (build-system qt-build-system)
11371 (native-inputs
11372 `(("extra-cmake-modules" ,extra-cmake-modules)
11373 ("kdoctools" ,kdoctools)))
11374 (inputs
11375 `(("kcompletion" ,kcompletion)
11376 ("kcoreaddons" ,kcoreaddons)
11377 ("kcrash" ,kcrash)
11378 ("kdbusaddons" ,kdbusaddons)
11379 ("ki18n" ,ki18n)
11380 ("kxmlgui" ,kxmlgui)
11381 ("libkdegames" ,libkdegames)
11382 ("qtbase" ,qtbase)
11383 ("qtdeclarative" ,qtdeclarative)
11384 ("qtsvg" ,qtsvg)))
11385 (home-page "https://games.kde.org/")
11386 (synopsis "Classic pen and paper game: five in a line")
11387 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11388 points\") like game for two players, where the opponents alternate in placing
11389 their respective pictogram on the game board. The winner is the first to
11390 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11391 X and O, Naughts and Crosses)
11392
11393 This package is part of the KDE games module.")
11394 (license (list license:gpl2+ license:fdl1.2+))))
11395
11396 (define-public killbots
11397 (package
11398 (name "killbots")
11399 (version "20.12.0")
11400 (source
11401 (origin
11402 (method url-fetch)
11403 (uri (string-append "mirror://kde/stable/release-service/" version
11404 "/src/killbots-" version ".tar.xz"))
11405 (sha256
11406 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11407 (build-system qt-build-system)
11408 (native-inputs
11409 `(("extra-cmake-modules" ,extra-cmake-modules)
11410 ("kdoctools" ,kdoctools)))
11411 (inputs
11412 `(("kcompletion" ,kcompletion)
11413 ("kconfig" ,kconfig)
11414 ("kconfigwidgets" ,kconfigwidgets)
11415 ("kcoreaddons" ,kcoreaddons)
11416 ("kcrash" ,kcrash)
11417 ("kdbusaddons" ,kdbusaddons)
11418 ("ki18n" ,ki18n)
11419 ("kwidgetsaddons" ,kwidgetsaddons)
11420 ("kxmlgui" ,kxmlgui)
11421 ("libkdegames" ,libkdegames)
11422 ("qtbase" ,qtbase)
11423 ("qtdeclarative" ,qtdeclarative)))
11424 (home-page "https://games.kde.org/")
11425 (synopsis "Port of the classic BSD console game robots")
11426 (description "Killbots is a simple game of evading killer robots.
11427
11428 Who created the robots and why they have been programmed to destroy, no one
11429 knows. All that is known is that the robots are numerous and their sole
11430 objective is to destroy you. Fortunately for you, their creator has focused
11431 on quantity rather than quality and as a result the robots are severely
11432 lacking in intelligence. Your superior wit and a fancy teleportation device
11433 are your only weapons against the never-ending stream of mindless automatons.
11434
11435 This package is part of the KDE games module.")
11436 (license (list license:gpl2+ license:fdl1.2+))))
11437
11438 (define-public ksnakeduel
11439 (package
11440 (name "ksnakeduel")
11441 (version "20.12.0")
11442 (source
11443 (origin
11444 (method url-fetch)
11445 (uri (string-append "mirror://kde/stable/release-service/" version
11446 "/src/ksnakeduel-" version ".tar.xz"))
11447 (sha256
11448 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11449 (build-system qt-build-system)
11450 (native-inputs
11451 `(("extra-cmake-modules" ,extra-cmake-modules)
11452 ("kdoctools" ,kdoctools)))
11453 (inputs
11454 `(("kcompletion" ,kcompletion)
11455 ("kconfig" ,kconfig)
11456 ("kconfigwidgets" ,kconfigwidgets)
11457 ("kcoreaddons" ,kcoreaddons)
11458 ("kcrash" ,kcrash)
11459 ("kdbusaddons" ,kdbusaddons)
11460 ("kguiaddons" ,kguiaddons)
11461 ("ki18n" ,ki18n)
11462 ("kxmlgui" ,kxmlgui)
11463 ("libkdegames" ,libkdegames)
11464 ("qtbase" ,qtbase)
11465 ("qtdeclarative" ,qtdeclarative)
11466 ("qtsvg" ,qtsvg)))
11467 (home-page "https://games.kde.org/")
11468 (synopsis "Snake race played against the computer")
11469 (description "KSnakeDuel is a fast action game where you steer a snake
11470 which has to eat food. While eating the snake grows. But once a player
11471 collides with the other snake or the wall the game is lost. This becomes of
11472 course more and more difficult the longer the snakes grow.
11473
11474 This package is part of the KDE games module.")
11475 (license (list license:gpl2+ license:fdl1.2+))))
11476
11477 (define-public kollision
11478 (package
11479 (name "kollision")
11480 (version "20.12.0")
11481 (source
11482 (origin
11483 (method url-fetch)
11484 (uri (string-append "mirror://kde/stable/release-service/" version
11485 "/src/kollision-" version ".tar.xz"))
11486 (sha256
11487 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11488 (build-system qt-build-system)
11489 (native-inputs
11490 `(("extra-cmake-modules" ,extra-cmake-modules)
11491 ("kdoctools" ,kdoctools)))
11492 (inputs
11493 `(("kcompletion" ,kcompletion)
11494 ("kconfig" ,kconfig)
11495 ("kcoreaddons" ,kcoreaddons)
11496 ("kcrash" ,kcrash)
11497 ("kdbusaddons" ,kdbusaddons)
11498 ("ki18n" ,ki18n)
11499 ("kwidgetsaddons" ,kwidgetsaddons)
11500 ("kxmlgui" ,kxmlgui)
11501 ("libkdegames" ,libkdegames)
11502 ("qtbase" ,qtbase)
11503 ("qtdeclarative" ,qtdeclarative)))
11504 (home-page "https://games.kde.org/")
11505 (synopsis "Simple ball dodging game")
11506 (description "In Kollision you use mouse to control a small blue ball in a
11507 closed space environment filled with small red balls, which move about
11508 chaotically. Your goal is to avoid touching any of those red balls with your
11509 blue one, because the moment you do the game will be over. The longer you can
11510 stay in game the higher will your score be.
11511
11512 This package is part of the KDE games module.")
11513 (license (list license:gpl2+ license:fdl1.2+))))
11514
11515 (define-public knavalbattle
11516 (package
11517 (name "knavalbattle")
11518 (version "20.12.0")
11519 (source
11520 (origin
11521 (method url-fetch)
11522 (uri (string-append "mirror://kde/stable/release-service/" version
11523 "/src/knavalbattle-" version ".tar.xz"))
11524 (sha256
11525 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11526 (build-system qt-build-system)
11527 (native-inputs
11528 `(("extra-cmake-modules" ,extra-cmake-modules)
11529 ("kdoctools" ,kdoctools)))
11530 (inputs
11531 `(("kauth" ,kauth)
11532 ("kcompletion" ,kcompletion)
11533 ("kconfig" ,kconfig)
11534 ("kconfigwidgets" ,kconfigwidgets)
11535 ("kcoreaddons" ,kcoreaddons)
11536 ("kcrash" ,kcrash)
11537 ("kdbusaddons" ,kdbusaddons)
11538 ("kdnssd" ,kdnssd)
11539 ("ki18n" ,ki18n)
11540 ("ktextwidgets" ,ktextwidgets)
11541 ("kxmlgui" ,kxmlgui)
11542 ("libkdegames" ,libkdegames)
11543 ("qtbase" ,qtbase)
11544 ("qtdeclarative" ,qtdeclarative)))
11545 (home-page "https://games.kde.org/")
11546 (synopsis "Battleship board game with built-in game server")
11547 (description "KBattleship is a Battle Ship game for KDE.
11548
11549 Ships are placed on a board which represents the sea. Players try to hit each
11550 others ships in turns without knowing where they are placed. The first player
11551 to destroy all ships wins the game.
11552
11553 This package is part of the KDE games module.")
11554 (license (list license:gpl2+ license:fdl1.2+))))
11555
11556 (define-public kreversi
11557 (package
11558 (name "kreversi")
11559 (version "20.08.3")
11560 (source
11561 (origin
11562 (method url-fetch)
11563 (uri (string-append "mirror://kde/stable/release-service/" version
11564 "/src/kreversi-" version ".tar.xz"))
11565 (sha256
11566 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11567 (build-system qt-build-system)
11568 (native-inputs
11569 `(("extra-cmake-modules" ,extra-cmake-modules)
11570 ("kdoctools" ,kdoctools)))
11571 (inputs
11572 `(("kconfig" ,kconfig)
11573 ("kconfigwidgets" ,kconfigwidgets)
11574 ("kcoreaddons" ,kcoreaddons)
11575 ("kcrash" ,kcrash)
11576 ("kdbusaddons" ,kdbusaddons)
11577 ("kdeclarative" ,kdeclarative)
11578 ("ki18n" ,ki18n)
11579 ("kiconthemes" ,kiconthemes)
11580 ("kio" ,kio)
11581 ("kxmlgui" ,kxmlgui)
11582 ("libkdegames" ,libkdegames)
11583 ("qtbase" ,qtbase)
11584 ("qtdeclarative" ,qtdeclarative)
11585 ("qtsvg" ,qtsvg)))
11586 (home-page "https://games.kde.org/")
11587 (synopsis "Old reversi board game, also known as othello")
11588 (description "KReversi is a simple one player strategy game played
11589 against the computer.
11590
11591 If a player's piece is captured by an opposing player, that piece is turned
11592 over to reveal the color of that player. A winner is declared when one player
11593 has more pieces of his own color on the board and there are no more possible
11594 moves.
11595
11596 This package is part of the KDE games module.")
11597 (license (list license:gpl2+ license:fdl1.2+))))
11598
11599 (define-public ksquares
11600 (package
11601 (name "ksquares")
11602 (version "20.12.0")
11603 (source
11604 (origin
11605 (method url-fetch)
11606 (uri (string-append "mirror://kde/stable/release-service/" version
11607 "/src/ksquares-" version ".tar.xz"))
11608 (sha256
11609 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11610 (build-system qt-build-system)
11611 (native-inputs
11612 `(("extra-cmake-modules" ,extra-cmake-modules)
11613 ("kdoctools" ,kdoctools)))
11614 (inputs
11615 `(("kcompletion" ,kcompletion)
11616 ("kconfig" ,kconfig)
11617 ("kconfigwidgets" ,kconfigwidgets)
11618 ("kcoreaddons" ,kcoreaddons)
11619 ("kcrash" ,kcrash)
11620 ("kdbusaddons" ,kdbusaddons)
11621 ("ki18n" ,ki18n)
11622 ("kwidgetsaddons" ,kwidgetsaddons)
11623 ("kxmlgui" ,kxmlgui)
11624 ("libkdegames" ,libkdegames)
11625 ("qtbase" ,qtbase)
11626 ("qtdeclarative" ,qtdeclarative)))
11627 (home-page "https://games.kde.org/")
11628 (synopsis "Dots and Boxes game")
11629 (description "KSquares is an implementation of the popular paper based
11630 game Squares. Two players take turns connecting dots on a grid to complete
11631 squares, the player with the most squares wins.
11632
11633 This package is part of the KDE games module.")
11634 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11635
11636 (define-public kjumpingcube
11637 (package
11638 (name "kjumpingcube")
11639 (version "20.12.0")
11640 (source
11641 (origin
11642 (method url-fetch)
11643 (uri (string-append "mirror://kde/stable/release-service/" version
11644 "/src/kjumpingcube-" version ".tar.xz"))
11645 (sha256
11646 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11647 (build-system qt-build-system)
11648 (native-inputs
11649 `(("extra-cmake-modules" ,extra-cmake-modules)
11650 ("kdoctools" ,kdoctools)))
11651 (inputs
11652 `(("kconfig" ,kconfig)
11653 ("kconfigwidgets" ,kconfigwidgets)
11654 ("kcoreaddons" ,kcoreaddons)
11655 ("kcrash" ,kcrash)
11656 ("kdbusaddons" ,kdbusaddons)
11657 ("ki18n" ,ki18n)
11658 ("kio" ,kio)
11659 ("kwidgetsaddons" ,kwidgetsaddons)
11660 ("kxmlgui" ,kxmlgui)
11661 ("libkdegames" ,libkdegames)
11662 ("qtbase" ,qtbase)
11663 ("qtdeclarative" ,qtdeclarative)
11664 ("qtsvg" ,qtsvg)))
11665 (home-page "https://games.kde.org/")
11666 (synopsis "Simple tactical game for number-crunchers")
11667 (description "KJumpingcube is a simple tactical game for one or two
11668 players, played on a grid of numbered squares. Each turn, players compete for
11669 control of the board by capturing or adding to one square.
11670
11671 This package is part of the KDE games module.")
11672 (license (list license:gpl2+ license:fdl1.2+))))
11673
11674 (define-public xmoto
11675 (package
11676 (name "xmoto")
11677 (version "0.6.1")
11678 (source
11679 (origin
11680 (method git-fetch)
11681 (uri (git-reference
11682 (url "https://github.com/xmoto/xmoto")
11683 (commit version)))
11684 (file-name (git-file-name name version))
11685 (sha256
11686 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11687 (modules '((guix build utils)
11688 (ice-9 ftw)
11689 (srfi srfi-1)))
11690 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11691 ;; it appears to be incompatible with the (older) one bundled.
11692 (snippet
11693 `(begin
11694 (let ((keep '("chipmunk" "glad" "md5sum")))
11695 (with-directory-excursion "vendor"
11696 (for-each delete-file-recursively
11697 (lset-difference string=?
11698 (scandir ".")
11699 (cons* "." ".." keep))))
11700 (substitute* "src/CMakeLists.txt"
11701 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11702 (if (member library keep) line ""))))
11703 #t))))
11704 (build-system cmake-build-system)
11705 (arguments
11706 `(#:tests? #f ;no test
11707 #:phases
11708 (modify-phases %standard-phases
11709 (add-after 'unpack 'fix-hard-coded-directory
11710 (lambda* (#:key outputs #:allow-other-keys)
11711 (substitute* "src/common/VFileIO.cpp"
11712 (("/usr/share")
11713 (string-append (assoc-ref outputs "out") "/share")))
11714 #t))
11715 (add-before 'build 'set-SDL
11716 ;; Set correct environment for SDL.
11717 (lambda* (#:key inputs #:allow-other-keys)
11718 (setenv "CPATH"
11719 (string-append
11720 (assoc-ref inputs "sdl") "/include/SDL:"
11721 (or (getenv "CPATH") "")))
11722 #t))
11723 (add-after 'install 'unbundle-fonts
11724 ;; Unbundle DejaVuSans TTF files.
11725 (lambda* (#:key outputs inputs #:allow-other-keys)
11726 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11727 "/share/fonts/truetype/"))
11728 (target-dir (string-append (assoc-ref outputs "out")
11729 "/share/xmoto/Textures/Fonts/")))
11730 (for-each (lambda (f)
11731 (let ((font (string-append font-dir f))
11732 (target (string-append target-dir f)))
11733 (delete-file target)
11734 (symlink font target)))
11735 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11736 #t))))))
11737 (native-inputs
11738 `(("gettext" ,gettext-minimal)
11739 ("pkg-config" ,pkg-config)))
11740 (inputs
11741 `(("bzip2" ,bzip2)
11742 ("curl" ,curl)
11743 ("font-dejavu" ,font-dejavu)
11744 ("glu" ,glu)
11745 ("libjpeg" ,libjpeg-turbo)
11746 ("libpng" ,libpng)
11747 ("libxdg-basedir" ,libxdg-basedir)
11748 ("libxml2" ,libxml2)
11749 ("lua" ,lua-5.1)
11750 ("ode" ,ode)
11751 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11752 ("sqlite" ,sqlite)
11753 ("zlib" ,zlib)))
11754 (home-page "https://xmoto.tuxfamily.org/")
11755 (synopsis "2D motocross platform game")
11756 (description
11757 "X-Moto is a challenging 2D motocross platform game, where
11758 physics play an all important role in the gameplay. You need to
11759 control your bike to its limit, if you want to have a chance finishing
11760 the more difficult challenges.")
11761 (license (list license:gpl2+ ;whole project
11762 license:bsd-3 ;vendor/md5sum
11763 license:lgpl2.1+
11764 license:expat))))
11765
11766 (define-public eboard
11767 (package
11768 (name "eboard")
11769 (version "1.1.3")
11770 (source
11771 (origin
11772 (method git-fetch)
11773 (uri (git-reference
11774 (url "https://github.com/fbergo/eboard")
11775 (commit (string-append "v" version))))
11776 (file-name (git-file-name name version))
11777 (sha256
11778 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11779 (build-system gnu-build-system)
11780 (native-inputs
11781 `(("perl" ,perl)
11782 ("pkg-config" ,pkg-config)))
11783 (inputs
11784 `(("gtk+" ,gtk+-2)
11785 ("libpng" ,libpng)
11786 ("gstreamer" ,gstreamer)))
11787 (arguments
11788 `(#:tests? #f
11789 #:phases
11790 (modify-phases %standard-phases
11791 (replace 'configure
11792 (lambda* (#:key outputs #:allow-other-keys)
11793 (make-file-writable "eboard-config")
11794 (setenv "CC" "gcc")
11795 (invoke "./configure"
11796 (string-append "--prefix=" (assoc-ref outputs "out")))
11797 #t))
11798 (add-before 'install 'make-required-directories
11799 (lambda* (#:key outputs #:allow-other-keys)
11800 (mkdir-p (string-append (assoc-ref outputs "out")
11801 "/share/eboard"))
11802 #t)))))
11803 (synopsis "Graphical user interface to play chess")
11804 (description
11805 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11806 and chess engines.")
11807 (home-page "https://www.bergo.eng.br/eboard/")
11808 (license license:gpl2+)))
11809
11810 (define-public chessx
11811 (package
11812 (name "chessx")
11813 (version "1.5.6")
11814 (source
11815 (origin
11816 (method url-fetch)
11817 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11818 version "/chessx-" version ".tgz"))
11819 (sha256
11820 (base32 "01fjchil2h6ry2ywr0dwjw2g7zd29580cr4c74d5z74h999lp6nh"))))
11821 (build-system qt-build-system)
11822 (native-inputs
11823 `(("qttools" ,qttools)))
11824 (inputs
11825 `(("qtbase" ,qtbase)
11826 ("qtmultimedia" ,qtmultimedia)
11827 ("qtspeech" ,qtspeech)
11828 ("qtsvg" ,qtsvg)
11829 ("zlib" ,zlib)))
11830 (arguments
11831 `(#:tests? #f
11832 #:phases
11833 (modify-phases %standard-phases
11834 (add-after 'unpack 'fix-paths
11835 (lambda* (#:key inputs #:allow-other-keys)
11836 (substitute* "chessx.pro"
11837 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11838 (string-append (assoc-ref inputs "qttools") "/bin/lrelease")))
11839 #t))
11840 (add-after 'fix-paths 'make-qt-deterministic
11841 (lambda _
11842 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11843 #t))
11844 (replace 'configure
11845 (lambda _
11846 (invoke "qmake")
11847 #t))
11848 (replace 'install
11849 (lambda* (#:key outputs #:allow-other-keys)
11850 (let ((out (assoc-ref outputs "out")))
11851 (install-file "release/chessx" (string-append out "/bin"))
11852 (install-file "unix/chessx.desktop"
11853 (string-append out "/share/applications")))
11854 #t)))))
11855 (synopsis "Chess game database")
11856 (description
11857 "ChessX is a chess database. With ChessX you can operate on your
11858 collection of chess games in many ways: browse, edit, add, organize, analyze,
11859 etc. You can also play games on FICS or against an engine.")
11860 (home-page "http://chessx.sourceforge.net/")
11861 (license license:gpl2+)))
11862
11863 (define-public stockfish
11864 (package
11865 (name "stockfish")
11866 (version "13")
11867 (source
11868 (origin
11869 (method git-fetch)
11870 (uri (git-reference
11871 (url "https://github.com/official-stockfish/Stockfish")
11872 (commit (string-append "sf_" version))))
11873 (file-name (git-file-name name version))
11874 (sha256
11875 (base32 "15dfp9fnl3w7dgxhqmsm461amsysn646rj1arnzvwhy2i6ijhg2m"))))
11876 (build-system gnu-build-system)
11877 (inputs
11878 `(("neural-network"
11879 ,(origin
11880 (method url-fetch)
11881 (uri "https://tests.stockfishchess.org/api/nn/nn-62ef826d1a6d.nnue")
11882 (sha256
11883 (base32 "0qsy9rr4zgxrpgwhwbi96z01a2560am2b00q2klbj4bd39nq5vv2"))))))
11884 (arguments
11885 `(#:tests? #f
11886 #:make-flags (list "-C" "src"
11887 "build"
11888 (string-append "PREFIX="
11889 (assoc-ref %outputs "out"))
11890 (string-append "ARCH="
11891 ,(match (%current-system)
11892 ("x86_64-linux" "x86-64")
11893 ("i686-linux" "x86-32")
11894 ("aarch64-linux" "general-64")
11895 ("armhf-linux" "armv7")
11896 ("mips64el-linux" "general-64")
11897 (_ "general-32"))))
11898 #:phases (modify-phases %standard-phases
11899 (delete 'configure)
11900 ;; The official neural network file is needed for building
11901 ;; and is embedded in the resulting binary.
11902 (add-after 'unpack 'copy-net
11903 (lambda* (#:key inputs #:allow-other-keys)
11904 (copy-file (assoc-ref inputs "neural-network")
11905 "src/nn-62ef826d1a6d.nnue")
11906 #t)))))
11907 (synopsis "Strong chess engine")
11908 (description
11909 "Stockfish is a very strong chess engine. It is much stronger than the
11910 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11911 ChessX.")
11912 (home-page "https://stockfishchess.org/")
11913 (license license:gpl3+)))
11914
11915 (define-public barrage
11916 (package
11917 (name "barrage")
11918 (version "1.0.5")
11919 (source
11920 (origin
11921 (method url-fetch)
11922 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11923 "barrage-" version ".tar.gz"))
11924 (sha256
11925 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11926 (build-system gnu-build-system)
11927 (inputs
11928 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11929 ("sdl" ,sdl)
11930 ("sdl-mixer" ,sdl-mixer)))
11931 (arguments
11932 `(#:configure-flags
11933 (list
11934 (string-append "CFLAGS="
11935 "-I" (assoc-ref %build-inputs "sdl-mixer")
11936 "/include/SDL"))))
11937 (home-page "http://lgames.sourceforge.net/Barrage/")
11938 (synopsis "Violent point-and-click shooting game with nice effects")
11939 (description
11940 "Barrage is a rather destructive action game that puts you on a shooting
11941 range with the objective to hit as many dummy targets as possible within
11942 3 minutes. You control a gun that may either fire small or large grenades at
11943 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11944 get high scores.")
11945 (license license:gpl2+)))
11946
11947 (define-public burgerspace
11948 (package
11949 (name "burgerspace")
11950 (version "1.9.3")
11951 (source
11952 (origin
11953 (method url-fetch)
11954 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11955 "burgerspace-" version ".tar.gz"))
11956 (sha256
11957 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11958 (build-system gnu-build-system)
11959 (native-inputs
11960 `(("pkg-config" ,pkg-config)))
11961 (inputs
11962 `(("flatzebra" ,flatzebra)))
11963 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11964 (synopsis "Avoid evil foodstuffs and make burgers")
11965 (description
11966 "This is a clone of the classic game BurgerTime. In it, you play
11967 the part of a chef who must create burgers by stepping repeatedly on
11968 the ingredients until they fall into place. And to make things more
11969 complicated, you also must avoid evil animate food items while
11970 performing this task, with nothing but your trusty pepper shaker to
11971 protect you.")
11972 (license license:gpl2+)))
11973
11974 (define-public 7kaa
11975 (package
11976 (name "7kaa")
11977 (version "2.15.4p1")
11978 (source
11979 (origin
11980 (method url-fetch)
11981 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11982 "releases/download/v" version "/"
11983 "7kaa-" version ".tar.xz"))
11984 (sha256
11985 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
11986 (build-system gnu-build-system)
11987 (native-inputs
11988 `(("gettext" ,gettext-minimal)
11989 ("pkg-config" ,pkg-config)))
11990 (inputs
11991 `(("curl" ,curl)
11992 ("enet" ,enet)
11993 ("openal" ,openal)
11994 ("sdl2" ,sdl2)))
11995 (home-page "https://7kfans.com/")
11996 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11997 (description
11998 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11999 Strategy with the addition of trade, diplomacy, and espionage. The game
12000 enables players to compete against up to six other kingdoms allowing players
12001 to conquer opponents by defeating them in war (with troops or machines),
12002 capturing their buildings with spies, or offering opponents money for their
12003 kingdom.")
12004 (license license:gpl2+)))
12005
12006 (define-public neverball
12007 ;; Git version is 6-years younger than latest release.
12008 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
12009 (revision "1"))
12010 (package
12011 (name "neverball")
12012 (version (git-version "1.6.0" revision commit))
12013 (source
12014 (origin
12015 (method git-fetch)
12016 (uri (git-reference
12017 (url "https://github.com/Neverball/neverball")
12018 (commit commit)))
12019 (sha256
12020 (base32
12021 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
12022 (file-name (git-file-name name version))
12023 (modules '((guix build utils)))
12024 (snippet
12025 '(begin
12026 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
12027 (delete-file-recursively "data/ball/octocat")
12028 #t))))
12029 (build-system copy-build-system)
12030 (arguments
12031 `(#:install-plan
12032 '(("neverball" "bin/")
12033 ("neverputt" "bin/")
12034 ("mapc" "bin/")
12035 ("data" "share/games/neverball/")
12036 ("locale" "share/")
12037 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
12038 "neverlogos.svg"
12039 "svg readme.txt"))
12040 ("dist/" "share/applications" #:include ("neverball.desktop"
12041 "neverputt.desktop"))
12042 ("dist/neverball_16.png"
12043 "/share/icons/hicolor/16x16/apps/neverball.png")
12044 ("dist/neverball_24.png"
12045 "/share/icons/hicolor/24x24/apps/neverball.png")
12046 ("dist/neverball_32.png"
12047 "/share/icons/hicolor/32x32/apps/neverball.png")
12048 ("dist/neverball_48.png"
12049 "/share/icons/hicolor/48x48/apps/neverball.png")
12050 ("dist/neverball_64.png"
12051 "/share/icons/hicolor/64x64/apps/neverball.png")
12052 ("dist/neverball_128.png"
12053 "/share/icons/hicolor/128x128/apps/neverball.png")
12054 ("dist/neverball_256.png"
12055 "/share/icons/hicolor/256x256/apps/neverball.png")
12056 ("dist/neverball_512.png"
12057 "/share/icons/hicolor/512x512/apps/neverball.png")
12058 ("dist/neverputt_16.png"
12059 "/share/icons/hicolor/16x16/apps/neverputt.png")
12060 ("dist/neverputt_24.png"
12061 "/share/icons/hicolor/24x24/apps/neverputt.png")
12062 ("dist/neverputt_32.png"
12063 "/share/icons/hicolor/32x32/apps/neverputt.png")
12064 ("dist/neverputt_48.png"
12065 "/share/icons/hicolor/48x48/apps/neverputt.png")
12066 ("dist/neverputt_64.png"
12067 "/share/icons/hicolor/64x64/apps/neverputt.png")
12068 ("dist/neverputt_128.png"
12069 "/share/icons/hicolor/128x128/apps/neverputt.png")
12070 ("dist/neverputt_256.png"
12071 "/share/icons/hicolor/256x256/apps/neverputt.png")
12072 ("dist/neverputt_512.png"
12073 "/share/icons/hicolor/512x512/apps/neverputt.png")
12074 ("dist/" "share/man/man1" #:include ("mapc.1"))
12075 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
12076 ("doc/" "share/doc/neverball")
12077 ("README.md" "share/doc/neverball/"))
12078 #:phases
12079 (modify-phases %standard-phases
12080 (add-before 'install 'build
12081 (lambda* (#:key inputs outputs #:allow-other-keys)
12082 (let* ((out (assoc-ref outputs "out"))
12083 (sdl (assoc-ref inputs "sdl")))
12084 (invoke "make" "-j" (number->string (parallel-job-count))
12085 "--environment-overrides"
12086 "CC=gcc" "BUILD=release"
12087 (string-append "DATADIR="
12088 out
12089 "/share/games/neverball/data")
12090 (string-append "LOCALEDIR=" out "/share/locale")
12091 (string-append "SDL_CPPFLAGS=-I"
12092 sdl
12093 "/include/SDL2/")))
12094 #t))
12095 (add-after 'install 'fix-some-broken-fonts
12096 (lambda* (#:key outputs #:allow-other-keys)
12097 (let* ((out (assoc-ref outputs "out")))
12098 (wrap-program (string-append out "/bin/neverball")
12099 `("LANG" = ("en_US.utf8")))
12100 (wrap-program (string-append out "/bin/neverputt")
12101 `("LANG" = ("en_US.utf8"))))
12102 #t)))))
12103 (native-inputs
12104 `(("gettext" ,gettext-minimal))) ;for msgfmt
12105 (inputs
12106 `(("libjpeg" ,libjpeg-turbo)
12107 ("libpng" ,libpng)
12108 ("libvorbis" ,libvorbis)
12109 ("physfs" ,physfs)
12110 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
12111 (home-page "https://neverball.org/")
12112 (synopsis "3D floor-tilting game")
12113 (description
12114 "In the grand tradition of Marble Madness and Super Monkey Ball,
12115 Neverball has you guide a rolling ball through dangerous territory. Balance
12116 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
12117 and shovers to get to the goal. Race against the clock to collect coins to
12118 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
12119 game.") ;thanks to Debian for description
12120 (license license:gpl2+))))
12121
12122 (define-public pokerth
12123 (package
12124 (name "pokerth")
12125 (version "1.1.2")
12126 (source
12127 (origin
12128 (method url-fetch)
12129 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
12130 version "/pokerth-" version ".tar.gz"))
12131 (sha256
12132 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
12133 (modules '((guix build utils)))
12134 (snippet
12135 '(begin
12136 ;; Remove bundled websocketpp.
12137 (delete-file-recursively "src/third_party/websocketpp")
12138 (substitute* "pokerth_lib.pro"
12139 (("src/third_party/websocketpp")
12140 ""))
12141 #t))))
12142 (build-system qt-build-system)
12143 (inputs
12144 `(("boost" ,boost)
12145 ("curl" ,curl)
12146 ("gsasl" ,gsasl)
12147 ("libgcrypt" ,libgcrypt)
12148 ("libircclient" ,libircclient)
12149 ("protobuf" ,protobuf-2) ; remove package when no longer needed
12150 ("qtbase" ,qtbase)
12151 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
12152 ("sqlite" ,sqlite)
12153 ("tinyxml" ,tinyxml)
12154 ("websocketpp" ,websocketpp)
12155 ("zlib" ,zlib)))
12156 (arguments
12157 `(#:tests? #f ; No test suite
12158 #:phases
12159 (modify-phases %standard-phases
12160 (add-after 'unpack 'fix-paths
12161 (lambda* (#:key inputs #:allow-other-keys)
12162 (substitute* (find-files "." "\\.pro$")
12163 (("/opt/gsasl")
12164 (assoc-ref inputs "gsasl"))
12165 (("\\$\\$\\{PREFIX\\}/include/libircclient")
12166 (string-append (assoc-ref inputs "libircclient")
12167 "/include/libircclient"))
12168 (("LIB_DIRS =")
12169 (string-append "LIB_DIRS = "
12170 (assoc-ref inputs "boost") "/lib")))
12171 #t))
12172 (add-after 'unpack 'fix-build
12173 (lambda _
12174 ;; Fixes for Boost versions >= 1.66.
12175 (substitute* '("src/net/common/clientthread.cpp"
12176 "src/net/serveraccepthelper.h")
12177 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
12178 "")
12179 (("newSock->io_control\\(command\\);")
12180 "newSock->non_blocking(true);")
12181 (("acceptedSocket->io_control\\(command\\);")
12182 "acceptedSocket->non_blocking(true);"))
12183 #t))
12184 (replace 'configure
12185 (lambda* (#:key outputs #:allow-other-keys)
12186 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
12187 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
12188 (home-page "https://www.pokerth.net")
12189 (synopsis "Texas holdem poker game")
12190 (description
12191 "With PokerTH you can play the Texas holdem poker game, either against
12192 computer opponents or against real players online.")
12193 (license license:agpl3+)))
12194
12195 (define-public azimuth
12196 (package
12197 (name "azimuth")
12198 ;; Not marked as latest release, but it fixes a compiling issue
12199 ;; and adds the install target.
12200 (version "1.0.3")
12201 (source
12202 (origin
12203 (method git-fetch)
12204 (uri (git-reference
12205 (url "https://github.com/mdsteele/azimuth")
12206 (commit (string-append "v" version))))
12207 (file-name (git-file-name name version))
12208 (sha256
12209 (base32
12210 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
12211 (build-system gnu-build-system)
12212 (arguments
12213 `(#:test-target "test"
12214 #:phases
12215 (modify-phases %standard-phases
12216 (delete 'configure) ; no configure script
12217 ;; Build release version instead of debug version.
12218 (add-after 'unpack 'set-release
12219 (lambda _
12220 (setenv "BUILDTYPE" "release") #t))
12221 (add-after 'unpack 'fix-install ; set install directory
12222 (lambda* (#:key outputs #:allow-other-keys)
12223 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12224 (inputs `(("sdl" ,sdl)))
12225 (home-page "https://mdsteele.games/azimuth/")
12226 (synopsis "Metroidvania game with vector graphics")
12227 (description
12228 "Pilot your ship inside a planet to find and rescue the colonists trapped
12229 inside the Zenith Colony.")
12230 (license license:gpl3+)))
12231
12232 (define-public cgoban
12233 (package
12234 (name "cgoban")
12235 (version "1.9.14")
12236 (source
12237 (origin
12238 (method url-fetch)
12239 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12240 version "/cgoban-" version ".tar.gz"))
12241 (sha256
12242 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12243 (build-system gnu-build-system)
12244 (inputs
12245 `(("libx11" ,libx11)
12246 ("libxt" ,libxt)
12247 ("xorgproto" ,xorgproto)))
12248 (home-page "http://cgoban1.sourceforge.net/")
12249 (synopsis "Go client for X11")
12250 (description "Provides a large set of Go-related services for X11:
12251 @itemize
12252 @item Local games with precise implementation of the Chinese and Japanese rulesets
12253 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12254 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12255 such as GnuGo.
12256 @end itemize")
12257 (license license:gpl2+)))
12258
12259 (define-public passage
12260 (package
12261 (name "passage")
12262 (version "4")
12263 (source
12264 (origin
12265 (method url-fetch)
12266 (uri (string-append "mirror://sourceforge/hcsoftware/Passage/v"
12267 version "/Passage_v" version "_UnixSource.tar.gz"))
12268 (sha256
12269 (base32 "02ky4a4xdjvr71r58339jjrjyz76b5skcnbq4f8707mrln9vhby3"))))
12270 (build-system gnu-build-system)
12271 (arguments
12272 `(#:tests? #false ; there are none
12273 #:phases
12274 (modify-phases %standard-phases
12275 (add-after 'unpack 'chdir
12276 (lambda _
12277 (chdir "gamma256/gameSource")
12278 (system "cat Makefile.GnuLinux Makefile.all > Makefile")))
12279 (replace 'configure
12280 (lambda* (#:key outputs inputs #:allow-other-keys)
12281 (setenv "CPATH"
12282 (string-append
12283 (assoc-ref inputs "sdl") "/include/SDL:"
12284 (or (getenv "CPATH") "")))
12285 (let* ((out (assoc-ref outputs "out"))
12286 (assets (string-append out "/share/passage")))
12287 (substitute* "common.cpp"
12288 (("readTGA\\( \"graphics\"")
12289 (format #false "readTGA(\"~a/graphics\"" assets)))
12290 (substitute* "musicPlayer.cpp"
12291 (("readTGA\\( \"music\"")
12292 (format #false "readTGA(\"~a/music\"" assets))))))
12293 (replace 'install
12294 (lambda* (#:key outputs #:allow-other-keys)
12295 (let* ((out (assoc-ref outputs "out"))
12296 (bin (string-append out "/bin"))
12297 (assets (string-append out "/share/passage/")))
12298 (install-file "Passage" bin)
12299 (install-file "../documentation/Readme.txt" assets)
12300 (copy-recursively "graphics" (string-append assets "graphics"))
12301 (copy-recursively "music" (string-append assets "music"))
12302 (copy-recursively "settings" (string-append assets "settings"))))))))
12303 (inputs
12304 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
12305 (native-inputs
12306 `(("imagemagick" ,imagemagick)))
12307 (home-page "http://hcsoftware.sourceforge.net/passage/")
12308 (synopsis "Memento mori game")
12309 (description
12310 "Passage is meant to be a memento mori game. It presents an entire life,
12311 from young adulthood through old age and death, in the span of five minutes.
12312 Of course, it's a game, not a painting or a film, so the choices that you make
12313 as the player are crucial. There's no ``right'' way to play Passage, just as
12314 there's no right way to interpret it.")
12315 (license license:public-domain)))
12316
12317 (define-public paperview
12318 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12319 (revision "1"))
12320 (package
12321 (name "paperview")
12322 (version (git-version "0.0.1" revision commit)) ;no upstream release
12323 (source (origin
12324 (method git-fetch)
12325 (uri (git-reference
12326 (url "https://github.com/glouw/paperview")
12327 (commit commit)))
12328 (file-name (git-file-name name version))
12329 (sha256
12330 (base32
12331 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12332 (build-system gnu-build-system)
12333 (inputs
12334 `(("sdl2" ,sdl2)))
12335 (arguments
12336 '(#:tests? #f ;no tests
12337 #:make-flags
12338 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12339 #:phases
12340 (modify-phases %standard-phases
12341 (delete 'configure))))
12342 (home-page "https://github.com/glouw/paperview/")
12343 (synopsis "High performance X11 animated wallpaper setter")
12344 (description "High performance animated desktop background setter for
12345 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12346 game FPS.")
12347 (license license:unlicense))))
12348
12349 (define-public curseofwar
12350 (package
12351 (name "curseofwar")
12352 (version "1.3.0")
12353 (source
12354 (origin
12355 (method git-fetch)
12356 (uri (git-reference
12357 (url "https://github.com/a-nikolaev/curseofwar")
12358 (commit (string-append "v" version))))
12359 (file-name (git-file-name name version))
12360 (sha256
12361 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12362 (build-system gnu-build-system)
12363 (arguments
12364 `(#:tests? #f ; no tests
12365 #:make-flags
12366 (list (string-append "CC=" ,(cc-for-target))
12367 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12368 #:phases
12369 (modify-phases %standard-phases
12370 (delete 'configure))))
12371 (inputs `(("ncurses" ,ncurses)))
12372 (home-page "https://a-nikolaev.github.io/curseofwar/")
12373 (synopsis "Fast-paced action strategy game")
12374 (description "Curse of War is a fast-paced action strategy game originally
12375 implemented using ncurses user interface. An SDL graphical version is also
12376 available.")
12377 (license license:gpl3+)))