gnu: moonlight-qt: Update to 5.0.1.

* gnu/packages/games.scm (moonlight-qt): Update to 5.0.1.
[arguments]<#:phases>: Update moonlight-qt.pro file substitute to not include
bundled h264bitstream library.

Change-Id: I9c68f7c6de39a0d78c6ef5b48d2272cdf3f771b5
This commit is contained in:
Oleg Pykhalov 2024-01-22 06:06:57 +03:00
parent e677aceb5d
commit 29c26a8d30
No known key found for this signature in database
GPG key ID: 167F8EA5001AFA9C

View file

@ -6233,7 +6233,7 @@ (define-public bambam
(define-public moonlight-qt (define-public moonlight-qt
(package (package
(name "moonlight-qt") (name "moonlight-qt")
(version "3.1.4") (version "5.0.1")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -6242,32 +6242,27 @@ (define-public moonlight-qt
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"02y2rbiiawhj1dvgxdaz8k9kpz6zkv20zsk17fbqj8259m3g5xr5")))) "1g1y736vw36lmh2bjymsf4b4ypr76x9lqz7frzpj7sn0vb9y5315"))))
(build-system qt-build-system) (build-system qt-build-system)
(arguments (arguments
(list #:tests? #f ;no test suite (list
#:phases #~(modify-phases %standard-phases #:tests? #f ;no test suite
(replace 'configure #:phases
(lambda* _ #~(modify-phases %standard-phases
(symlink (string-append #$(this-package-input (replace 'configure
"sdl2-gamecontrollerdb") (lambda* _
"/share/sdl2/gamecontrollerdb.txt") (symlink (string-append
"app/SDL_GameControllerDB/gamecontrollerdb.txt") #$(this-package-input "sdl2-gamecontrollerdb")
;; Unbundle libraries. "/share/sdl2/gamecontrollerdb.txt")
(substitute* "moonlight-qt.pro" "app/SDL_GameControllerDB/gamecontrollerdb.txt")
(("moonlight-common-c \\\\") ;; Unbundle libraries.
"#moonlight-common-c \\") (substitute* "moonlight-qt.pro"
(("qmdnsengine \\\\") ((" moonlight-common-c.*\n") "")
"#qmdnsengine \\") ((" qmdnsengine.*\n") "")
(("app \\\\") ((" h264bitstream.*\n") "")
"app") ((" app \\\\") " app")
(("app.depends") (("app.depends") "INCLUDEPATH +="))
"INCLUDEPATH +=") (invoke "qmake" (string-append "PREFIX=" #$output)))))))
(("h264bitstream \\\\")
"#h264bitstream \\"))
(invoke "qmake"
(string-append "PREFIX="
#$output)))))))
(native-inputs (list pkg-config qttools-5)) (native-inputs (list pkg-config qttools-5))
(inputs (list ffmpeg (inputs (list ffmpeg
h264bitstream h264bitstream