guix-packages/ambrevar/games: Make eduke32-addon-compilation local

master
Pierre Neidhardt 2019-03-20 16:19:05 +01:00
parent 036f464e8d
commit 35e781fe5d
1 changed files with 7 additions and 4 deletions

View File

@ -330,7 +330,7 @@ used!)")
"No URL"
""))))
(define-public duke-nukem-3d-eduke32-addon-compilation
(define duke-nukem-3d-eduke32-addon-compilation
(package
(name "duke-nukem-3d-eduke32-addon-compilation")
(version "3.13")
@ -352,12 +352,15 @@ used!)")
(setenv "PATH" (string-append
(assoc-ref %build-inputs "p7zip") "/bin" ":"))
(invoke "7z" "x" (assoc-ref %build-inputs "source"))
(let ((dir (string-append (assoc-ref %outputs "out")
"/" ,duke-nukem-3d-directory)))
(let* ((out (assoc-ref %outputs "out"))
(doc (string-append out "/doc"))
(dir (string-append (assoc-ref %outputs "out")
"/" ,duke-nukem-3d-directory)))
(mkdir-p dir)
(mkdir-p doc)
(copy-recursively "addons" dir)
(copy-recursively (string-append dir "/readme")
(string-append dir "/doc"))
(string-append doc "/dukenukem3d"))
(delete-file-recursively (string-append dir "/readme")))
#t)))
(synopsis "Selection of mods for Duke Nukem 3D")