diff options
| author | Andrew Wong <wongandj@runbox.com> | 2025-12-22 23:42:49 -0500 |
|---|---|---|
| committer | 宋文武 <iyzsong@member.fsf.org> | 2025-12-27 11:19:45 +0800 |
| commit | d59016f0038fec87b3fece6237442b35b32afc94 (patch) | |
| tree | e0bb95d0e136758a1e6f19f8eac6a6767f298dcf /gnu | |
| parent | aff9ce37616997647e7124edb0b3636ef98be68b (diff) | |
gnu: doom-runner: Update to 1.9.1.
* gnu/packages/games.scm (doom-runner): Update to 1.9.1.
[source]: Delete 'Screenshots' directory.
[arguments]<#:qtbase>: Use qtbase@6.
<#:phases>: Set install dir correctly; Revise binary, appdata, and icons install.
[description]: Revise.
Closes: guix/guix#5129
Change-Id: I21e4cc30424e59fb7b494ca442b8707ef809934e
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/games.scm | 51 |
1 files changed, 27 insertions, 24 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 911a41f721..cf0b3a419c 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -1544,7 +1544,7 @@ practise.") (define-public doom-runner (package (name "doom-runner") - (version "1.8.3") + (version "1.9.1") (source (origin (method git-fetch) @@ -1553,10 +1553,13 @@ practise.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0rpywq95zy9w0wj1262x4rf84c52wg1rgf0by549qph6fybn34rn")))) + (base32 "19jq5cj6rc8d5ghd9321a2f3v0b7z928990d7dj6ynyhkpcj769p")) + (modules '((guix build utils))) + (snippet #~(delete-file-recursively "Screenshots")))) ;Save 1.4MiB. (build-system qt-build-system) (arguments (list + #:qtbase qtbase #:tests? #f ;no tests #:modules '((guix build qt-build-system) ((guix build gnu-build-system) #:prefix gnu:) @@ -1565,37 +1568,37 @@ practise.") #~(modify-phases %standard-phases (replace 'configure (lambda _ - (substitute* "DoomRunner.pro" - (("/usr") - #$output)) (invoke "qmake" "DoomRunner.pro" "-spec" "linux-g++" - "\"CONFIG+=release\""))) + "\"CONFIG+=release\"" + (string-append "INSTALL_DIR=" #$output)))) (replace 'build (assoc-ref gnu:%standard-phases 'build)) (replace 'install (assoc-ref gnu:%standard-phases 'install)) (add-after 'install 'install-xdg (lambda _ + (with-directory-excursion #$output + (install-file "DoomRunner" "bin/") + (delete-file "DoomRunner")) (with-directory-excursion "Install/XDG" (install-file "DoomRunner.desktop" - (string-append #$output - "/share/applications")) - (let ((install-icon - (lambda (size) - (install-file (simple-format - #f "DoomRunner.~sx~s.png" - size size) - (simple-format - #f "~a/share/icons/hicolor/~sx~s/apps" - #$output size size))))) - (for-each install-icon - '(16 24 32 48 64 128))))))))) + (string-append #$output "/share/applications")) + (install-file "io.github.Youda008.DoomRunner.appdata.xml" + (string-append #$output "/share/metainfo")) + (for-each + (lambda (size) + (let ((filename (simple-format #f "DoomRunner.~sx~s.png" + size size))) + (chmod filename #o444) + (install-file + filename + (simple-format #f "~a/share/icons/hicolor/~sx~s/apps" + #$output size size)))) + '(16 24 32 48 64 128)))))))) (home-page "https://github.com/Youda008/DoomRunner") (synopsis "Launcher for Doom engine games") - (description - "Doom Runner is yet another launcher of common Doom source ports (like -GZDoom, Zandronum, PrBoom, ...) with graphical user interface. It is -written in C++ and Qt, and it is designed around the idea of presets -for various multi-file modifications to allow one-click switching -between them and minimize any repetitive work.") + (description "Doom Runner is yet another launcher of common Doom source +ports (e.g. GZDoom, Zandronum, PrBoom) with a graphical user interface. It +is written in C++ and Qt, and it is designed around the idea of presets for +various multi-file modifications to allow one-click switching between them.") (license license:gpl3))) (define-public falltergeist |
