gnu: Add 4dtris.

* gnu/packages/games.scm (4dtris): New variable.
master
Ricardo Wurmus 2019-03-10 10:55:55 +01:00
parent c06709b8a4
commit 8ada024ba6
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 47 additions and 0 deletions

View File

@ -6145,3 +6145,50 @@ players attempt to shoot one another through a section of space populated by
planets. The main feature of the game is that the shots, once fired, are
affected by the gravity of the planets.")
(license license:gpl2+)))
(define-public 4dtris
(package
(name "4dtris")
(version "0.4.3")
(source
(origin
(method url-fetch)
(uri (string-append "https://launchpad.net/4dtris/"
(version-major+minor version)
"/" version "/+download/4dtris_"
version ".orig.tar.gz"))
(sha256
(base32
"1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
(build-system gnu-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-install-directories
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(substitute* "Makefile.in"
(("bindir = /usr/games")
(string-append "bindir = " out "/bin"))
(("/usr/share/applications")
(string-append out "/share/applications"))
(("/usr/share/games/4dtris")
(string-append out "/share/4dtris"))))
#t))
(add-after 'set-paths 'set-sdl-paths
(lambda* (#:key inputs #:allow-other-keys)
(setenv "CPATH"
(string-append (assoc-ref inputs "sdl")
"/include/SDL"))
#t)))))
(inputs
`(("fontconfig" ,fontconfig)
("freeglut" ,freeglut)
("sdl" ,(sdl-union (list sdl sdl-ttf)))))
(home-page "https://launchpad.net/4dtris/")
(synopsis "4D Tetris")
(description "4D-TRIS is an alteration of the well-known Tetris game. The
game field is extended to 4D space, which has to filled up by the gamer with
4D hyper cubes.")
(license license:gpl3)))