GNU bug report logs -
#66270
[PATCH] gnu: mpd-mpc: Install bash completions in correct location.
Previous Next
Full log
View this message in rfc822 format
* gnu/packages/mpd.scm (mpd-mpc)[#:phases]: Add ‘move-completion’.
---
Ignore v1, this one is actually correct ._.
gnu/packages/mpd.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index d617dc014b..8ce9eb4228 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -246,7 +246,16 @@ (define-public mpd-mpc
;; actually invoked.
(lambda _
(substitute* "doc/meson.build"
- (("rsync") "ls")))))))
+ (("rsync") "ls"))))
+ (add-after 'install 'move-completion
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (contrib (string-append out "/share/doc/mpc/contrib"))
+ (completion
+ (string-append out "/etc/bash-completion.d/")))
+ (mkdir-p completion)
+ (rename-file (string-append contrib "/mpc-completion.bash")
+ (string-append completion "/mpc"))))))))
(inputs (list libmpdclient))
(native-inputs
(list pkg-config python-sphinx))
base-commit: ce0cc6137df81919389f61671096a6ce701c0889
--
2.41.0
This bug report was last modified 1 year and 224 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.