gnu: alex4: Update to 1.2.1.

* gnu/packages/games.scm (alex4): Update to 1.2.1.
[arguments]: Use top-level Makefile.  Drop DATADIR.
Remove ’configure’ phase.
This commit is contained in:
Tobias Geerinckx-Rice 2019-10-02 14:33:59 +02:00
parent 359a57b6e1
commit 8ef3f2e3ac
No known key found for this signature in database
GPG Key ID: D889B0F018C5493C
1 changed files with 4 additions and 14 deletions

View File

@ -253,7 +253,7 @@ mouse and joystick control, and original music.")
(define-public alex4 (define-public alex4
(package (package
(name "alex4") (name "alex4")
(version "1.2-alpha") (version "1.2.1")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -262,27 +262,17 @@ mouse and joystick control, and original music.")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "104nlhdsv1sg9g08fh5adwazw80400081awy7jsrn842srca0q1f")))) (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ; no check target `(#:tests? #f ; no check target
#:make-flags #:make-flags
(list "-Csrc" (list "CC=gcc"
"CC=gcc"
"CFLAGS=-D_FILE_OFFSET_BITS=64" "CFLAGS=-D_FILE_OFFSET_BITS=64"
(string-append "DATADIR=" (assoc-ref %outputs "out")
"/share/" ,name)
(string-append "PREFIX=" (assoc-ref %outputs "out"))) (string-append "PREFIX=" (assoc-ref %outputs "out")))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'configure (delete 'configure) ; no configure script
(lambda _
(substitute* '("src/main.c"
"src/shooter.c")
(("fcos") "fixcos")
(("fmul") "fixmul")
(("fsin") "fixsin"))
#t))
(add-after 'install 'install-data (add-after 'install 'install-data
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((share (string-append (assoc-ref outputs "out") (let ((share (string-append (assoc-ref outputs "out")