mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: wine-staging: Fix source URI for patch versions.
* gnu/packages/wine.scm (wine-staging)[source]: Handle X.Y.Z patchset versions.
This commit is contained in:
parent
8de54c63d3
commit
8252d77f34
1 changed files with 14 additions and 13 deletions
|
@ -375,19 +375,20 @@ (define-public wine-staging
|
|||
(name "wine-staging")
|
||||
(version (package-version wine-staging-patchset-data))
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (let ((dir (string-append
|
||||
(version-major version)
|
||||
(if (string-suffix? ".0" (version-major+minor version))
|
||||
".0"
|
||||
".x"))))
|
||||
(string-append
|
||||
"https://dl.winehq.org/wine/source/" dir
|
||||
"/wine-" version ".tar.xz")))
|
||||
(file-name (string-append name "-" version ".tar.xz"))
|
||||
(sha256
|
||||
(base32 "1krk68lsfvisi0zpx7890cz0z5bp7jl7rka5d70vwyj3c7109bfb"))))
|
||||
(let* ((wine-version (version-major+minor version))
|
||||
(subdirectory (string-append
|
||||
(version-major version)
|
||||
(if (string-suffix? ".0" wine-version)
|
||||
".0"
|
||||
".x"))))
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://dl.winehq.org/wine/source/"
|
||||
subdirectory "/"
|
||||
"wine-" wine-version ".tar.xz"))
|
||||
(file-name (string-append name "-" wine-version ".tar.xz"))
|
||||
(sha256
|
||||
(base32 "1krk68lsfvisi0zpx7890cz0z5bp7jl7rka5d70vwyj3c7109bfb")))))
|
||||
(inputs `(("autoconf" ,autoconf) ; for autoreconf
|
||||
("ffmpeg" ,ffmpeg)
|
||||
("gtk+" ,gtk+)
|
||||
|
|
Loading…
Reference in a new issue