me
/
guix
Archived
1
0
Fork 0

gnu: openttd-opensmx: Update to 0.4.0.

* gnu/packages/games.scm (openttd-opensmx): Update to 0.4.0.
[native-inputs]: Add tar.
[#:make-flags]: Drop INSTALL_DIR.  Add DIR_NAME and TAR.
[#:tests?]: New argument.
[#:phases]: Replace ‘install’ with a simple copy operation and drop
post-install.
Leo Prikler 2021-07-30 15:04:10 +02:00
parent 0a1df50e9f
commit 311cc4ee65
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87
1 changed files with 17 additions and 14 deletions

View File

@ -4474,34 +4474,37 @@ the original Transport Tycoon Deluxe.")
(define openttd-openmsx (define openttd-openmsx
(package (package
(name "openttd-openmsx") (name "openttd-openmsx")
(version "0.3.1") (version "0.4.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
"https://binaries.openttd.org/extra/openmsx/" "https://cdn.openttd.org/openmsx-releases/"
version "/openmsx-" version "-source.tar.gz")) version "/openmsx-" version "-source.tar.xz"))
(sha256 (sha256
(base32 (base32
"0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c")))) "0prjljsdgdxqdhhcriqskqha004ybs575xcjq80zha3pqnmrdk0k"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs
`(("python" ,python-2))) `(("grfcodec" ,grfcodec)
("python" ,python-2)
("tar" ,tar)))
(arguments (arguments
`(#:make-flags `(#:make-flags
(list (string-append "INSTALL_DIR=" %output (list (string-append "DIR_NAME=openmsx")
"/share/games/openttd/baseset")) (string-append "TAR=" (assoc-ref %build-inputs "tar")
"/bin/tar"))
;; The check phase only verifies md5sums, see openttd-opengfx.
#:tests? #f
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure) (delete 'configure)
(add-after 'install 'post-install (replace 'install
;; Rename openmsx-version to openmsx
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((install-directory (string-append (assoc-ref outputs "out") (copy-recursively "openmsx"
"/share/games/openttd/baseset"))) (string-append (assoc-ref outputs "out")
(rename-file (string-append install-directory "/openmsx-" ,version) "/share/games/openttd/baseset"
(string-append install-directory "/openmsx")) "/openmsx")))))))
#t))))))
(home-page "http://dev.openttdcoop.org/projects/openmsx") (home-page "http://dev.openttdcoop.org/projects/openmsx")
(synopsis "Music set for OpenTTD") (synopsis "Music set for OpenTTD")
(description "OpenMSX is a music set for OpenTTD which makes it possible (description "OpenMSX is a music set for OpenTTD which makes it possible