mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
auto-auto-complete: install fish completion to vendor_completions.d
This commit is contained in:
parent
c485ffaa3f
commit
5184355496
2 changed files with 37 additions and 3 deletions
|
@ -0,0 +1,34 @@
|
||||||
|
#reason: fish-shell requires 3rd-party completion files to be installed to vendor_completions.d
|
||||||
|
#upstream: https://github.com/maandree/auto-auto-complete/pull/7
|
||||||
|
|
||||||
|
From 4dd203d77f65559931249c258ab2a1588798f6d6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Piraty <piraty1@inbox.ru>
|
||||||
|
Date: Tue, 25 Feb 2020 10:15:10 +0100
|
||||||
|
Subject: [PATCH] install fish completion to vendor_completions.d
|
||||||
|
|
||||||
|
As noted in the docs[1], third-party software vendors should install
|
||||||
|
completion files into a different dir than upstream fish-shell to avoid
|
||||||
|
conflicts. Docs suggest `/usr/share/fish/vendor_completions.d`.
|
||||||
|
|
||||||
|
This isn't an issue here (yet) but it conforms to the docs.
|
||||||
|
|
||||||
|
[1] https://fishshell.com/docs/current/#where-to-put-completions
|
||||||
|
---
|
||||||
|
Makefile | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index d7e331d..6506628 100644
|
||||||
|
--- Makefile
|
||||||
|
+++ Makefile
|
||||||
|
@@ -188,8 +188,8 @@ install-zsh: bin/auto-auto-complete.zsh
|
||||||
|
|
||||||
|
.PHONY: install-fish
|
||||||
|
install-fish: bin/auto-auto-complete.fish
|
||||||
|
- install -dm755 -- "$(DESTDIR)$(DATADIR)/fish/completions"
|
||||||
|
- install -m644 $< -- "$(DESTDIR)$(DATADIR)/fish/completions/$(COMMAND).fish"
|
||||||
|
+ install -dm755 -- "$(DESTDIR)$(DATADIR)/fish/vendor_completions.d"
|
||||||
|
+ install -m644 $< -- "$(DESTDIR)$(DATADIR)/fish/vendor_completions.d/$(COMMAND).fish"
|
||||||
|
|
||||||
|
|
||||||
|
# Uninstall rules
|
|
@ -1,14 +1,14 @@
|
||||||
# Template file for 'auto-auto-complete'
|
# Template file for 'auto-auto-complete'
|
||||||
pkgname=auto-auto-complete
|
pkgname=auto-auto-complete
|
||||||
version=7.2
|
version=7.2
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-makefile
|
|
||||||
archs=noarch
|
archs=noarch
|
||||||
|
build_style=gnu-makefile
|
||||||
hostmakedepends="python3 texinfo"
|
hostmakedepends="python3 texinfo"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
short_desc="Autogenerate shell auto-completion scripts"
|
short_desc="Autogenerate shell auto-completion scripts"
|
||||||
maintainer="Duncaen <duncaen@voidlinux.org>"
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||||
license="GPL-3"
|
license="GPL-3.0-or-later"
|
||||||
homepage="https://github.com/maandree/auto-auto-complete"
|
homepage="https://github.com/maandree/auto-auto-complete"
|
||||||
distfiles="https://github.com/maandree/${pkgname}/archive/${version}.tar.gz"
|
distfiles="https://github.com/maandree/${pkgname}/archive/${version}.tar.gz"
|
||||||
checksum=5e54025c6ef65dfff5ba976d23eb778a0936b0678763ebcd78359d460300301e
|
checksum=5e54025c6ef65dfff5ba976d23eb778a0936b0678763ebcd78359d460300301e
|
||||||
|
|
Loading…
Add table
Reference in a new issue