# gnukart.scm -rw-r--r-- 1.2 KiB View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(define-public gnukart
  (package
    (name "gnukart")
    (version "0.3.0")
    (source (origin
              (method url-fetch)
              (uri (string-append "https://alpha.gnu.org/gnu/gnukart/gnukart-" version
                                  ".tar.gz"))
              (sha256
               (base32
                "0nid048bdj6xkwhdki548p63axpi7g45wd1wfmdvihb9wm266akq"))))
    (build-system gnu-build-system)
    (arguments
     (list #:configure-flags
           #~(list (string-append "SDL_CONFIG=" #$sdl "/bin/sdl-config")
	           (string-append "CFLAGS=-lm -I" #$sdl "/include/SDL"))
           #:phases
           #~(modify-phases %standard-phases
               (add-before 'configure 'fix-includes
                 (lambda _
                   (substitute* "src/main.c"
		     (("return;") "return 0;")))))))
    (inputs
     (list glu sdl sdl-mixer sdl-image))
    (home-page "https://www.gnu.org/software/gnukart/")
    (synopsis "A simple racing game for GNU")
    (description
     "GNU Kart is a simple racing game for GNU. It uses OpenGL and SDL for graphics
and features GNU characters. Its aim will be extensibility so that a general kind of
racing game can be made, with any sorts of features.")
    (license license:gpl3+)))