gnu: xonotic: Use G-expressions.
* gnu/packages/games.scm (xonotic)[arguments]: Rewrite as G-expressions.
This commit is contained in:
parent
d21ddfc9d8
commit
3dc16fe0dc
1 changed files with 141 additions and 141 deletions
|
@ -7807,18 +7807,18 @@ quotation from a collection of quotes.")
|
|||
(base32 "0pgahai0gk8bjmvkwx948bl50l9f9dhmjzwffl4vyldibajipa51"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:configure-flags (list (string-append "--prefix="
|
||||
(assoc-ref %outputs "out"))
|
||||
(list #:configure-flags
|
||||
#~(list (string-append "--prefix=" #$output)
|
||||
"--disable-rijndael")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'configure 'make-darkplaces
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(sharedir (string-append out "/share/xonotic/")))
|
||||
(share (string-append out "/share/xonotic/")))
|
||||
(invoke "make" "-C" "source/darkplaces"
|
||||
(string-append "DP_FS_BASEDIR="
|
||||
sharedir)
|
||||
share)
|
||||
"DP_LINK_TO_LIBJPEG=1"
|
||||
"DP_SOUND_API=ALSA"
|
||||
"CC=gcc"
|
||||
|
@ -7826,7 +7826,7 @@ quotation from a collection of quotes.")
|
|||
"cl-release")
|
||||
(invoke "make" "-C" "source/darkplaces"
|
||||
(string-append "DP_FS_BASEDIR="
|
||||
sharedir)
|
||||
share)
|
||||
"DP_LINK_TO_LIBJPEG=1"
|
||||
"DP_SOUND_API=ALSA"
|
||||
"CC=gcc"
|
||||
|
@ -7834,7 +7834,7 @@ quotation from a collection of quotes.")
|
|||
"sdl-release")
|
||||
(invoke "make" "-C" "source/darkplaces"
|
||||
(string-append "DP_FS_BASEDIR="
|
||||
sharedir)
|
||||
share)
|
||||
"DP_LINK_TO_LIBJPEG=1"
|
||||
"DP_SOUND_API=ALSA"
|
||||
"CC=gcc"
|
||||
|
@ -7844,9 +7844,15 @@ quotation from a collection of quotes.")
|
|||
(lambda _
|
||||
(chdir "source/d0_blind_id")
|
||||
(invoke "sh" "autogen.sh")))
|
||||
(add-after 'build 'install-desktop-entry
|
||||
(add-after 'install 'symlink-data
|
||||
(lambda* (#:key outputs inputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(data (assoc-ref inputs "xonotic-data")))
|
||||
(symlink (string-append data "/share/xonotic")
|
||||
(string-append out "/share/xonotic")))))
|
||||
(add-after 'install 'install-desktop-entry
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
;; Add .desktop files for the 2 variants and the symlink
|
||||
;; Add .desktop files for the 2 variants and the symlink.
|
||||
(let* ((output (assoc-ref outputs "out"))
|
||||
(apps (string-append output "/share/applications")))
|
||||
(mkdir-p apps)
|
||||
|
@ -7889,7 +7895,7 @@ quotation from a collection of quotes.")
|
|||
Categories=Game~@
|
||||
Type=Application~%"
|
||||
output))))))
|
||||
(add-after 'install-desktop-entry 'install-icons
|
||||
(add-after 'install 'install-icons
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(with-directory-excursion "../../misc/logos/icons_png/"
|
||||
|
@ -7903,7 +7909,7 @@ quotation from a collection of quotes.")
|
|||
'("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
|
||||
"xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
|
||||
"xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
|
||||
(add-after 'install-icons 'install-binaries
|
||||
(add-after 'install 'install-binaries
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(define (install src dst)
|
||||
|
@ -7920,13 +7926,7 @@ quotation from a collection of quotes.")
|
|||
;; Provide a default xonotic executable, defaulting to SDL.
|
||||
(symlink (string-append out "/bin/xonotic-sdl")
|
||||
(string-append out "/bin/xonotic")))))
|
||||
(add-after 'install-binaries 'install-data
|
||||
(lambda* (#:key outputs inputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(data (assoc-ref inputs "xonotic-data")))
|
||||
(symlink (string-append data "/share/xonotic")
|
||||
(string-append out "/share/xonotic")))))
|
||||
(add-after 'install-binaries 'wrap-binaries
|
||||
(add-after 'install-binaries 'wrap
|
||||
(lambda* (#:key outputs inputs #:allow-other-keys)
|
||||
;; Curl and libvorbis need to be wrapped so that we get
|
||||
;; sound and networking.
|
||||
|
|
Reference in a new issue