mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-11-25 09:58:09 +01:00
nongnu: element-desktop: Avoid manually unpacking .deb file.
* nongnu/packages/messaging.scm (element-desktop)[phases]<unpack>: Replace with 'setup-cwd; <symlink-binary-file>: there's no need anymore to care about the environment-variables file; [native-inputs]: drop tar. Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
parent
a6c27f4d2f
commit
9a0253ae89
1 changed files with 2 additions and 10 deletions
|
@ -54,25 +54,19 @@
|
||||||
#~'("lib/Element/element-desktop")
|
#~'("lib/Element/element-desktop")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(replace 'unpack
|
(add-after 'binary-unpack 'setup-cwd
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "ar" "x" #$source)
|
|
||||||
(invoke "tar" "xvf" "data.tar.xz")
|
|
||||||
(copy-recursively "usr/" ".")
|
(copy-recursively "usr/" ".")
|
||||||
;; Use the more standard lib directory for everything.
|
;; Use the more standard lib directory for everything.
|
||||||
(rename-file "opt/" "lib")
|
(rename-file "opt/" "lib")
|
||||||
;; Remove unneeded files.
|
;; Remove unneeded files.
|
||||||
(delete-file-recursively "usr")
|
(delete-file-recursively "usr")
|
||||||
(delete-file "control.tar.gz")
|
|
||||||
(delete-file "data.tar.xz")
|
|
||||||
(delete-file "debian-binary")
|
|
||||||
;; Fix the .desktop file binary location.
|
;; Fix the .desktop file binary location.
|
||||||
(substitute* '("share/applications/element-desktop.desktop")
|
(substitute* '("share/applications/element-desktop.desktop")
|
||||||
(("/opt/Element/")
|
(("/opt/Element/")
|
||||||
(string-append #$output "/bin/")))))
|
(string-append #$output "/bin/")))))
|
||||||
(add-after 'install 'symlink-binary-file-and-cleanup
|
(add-after 'install 'symlink-binary-file
|
||||||
(lambda _
|
(lambda _
|
||||||
(delete-file (string-append #$output "/environment-variables"))
|
|
||||||
(mkdir-p (string-append #$output "/bin"))
|
(mkdir-p (string-append #$output "/bin"))
|
||||||
(symlink (string-append #$output "/lib/Element/element-desktop")
|
(symlink (string-append #$output "/lib/Element/element-desktop")
|
||||||
(string-append #$output "/bin/element-desktop"))))
|
(string-append #$output "/bin/element-desktop"))))
|
||||||
|
@ -84,8 +78,6 @@
|
||||||
(list
|
(list
|
||||||
(string-append #$output "/lib/Element"))
|
(string-append #$output "/lib/Element"))
|
||||||
":")))))))))
|
":")))))))))
|
||||||
|
|
||||||
(native-inputs (list tar))
|
|
||||||
(home-page "https://github.com/vector-im/element-desktop")
|
(home-page "https://github.com/vector-im/element-desktop")
|
||||||
(synopsis "Matrix collaboration client for desktop")
|
(synopsis "Matrix collaboration client for desktop")
|
||||||
(description "Element Desktop is a Matrix client for desktop with Element Web at
|
(description "Element Desktop is a Matrix client for desktop with Element Web at
|
||||||
|
|
Loading…
Reference in a new issue