aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2021-12-16 14:15:51 +0100
committerJakub Jirutka <jakub@jirutka.cz>2021-12-16 14:18:22 +0100
commita7f89224bcc5b4b6d5915d69ce136b4fe007d0cd (patch)
tree543a8ed0dcba1463f5cd2c7d0108487a7946f343
parent77d9a60fdadb997f7d1f1f815a0fe7b21295597d (diff)
downloadaports-a7f89224bcc5b4b6d5915d69ce136b4fe007d0cd.tar.gz
aports-a7f89224bcc5b4b6d5915d69ce136b4fe007d0cd.tar.bz2
aports-a7f89224bcc5b4b6d5915d69ce136b4fe007d0cd.tar.xz
community/nnn: use default {bash,fish,zsh}-completion split funcs
-rw-r--r--community/nnn/APKBUILD45
1 files changed, 12 insertions, 33 deletions
diff --git a/community/nnn/APKBUILD b/community/nnn/APKBUILD
index 9709e6d927..9222e06485 100644
--- a/community/nnn/APKBUILD
+++ b/community/nnn/APKBUILD
@@ -12,9 +12,9 @@ install="$pkgname-plugins.post-install"
options="!check" # no tests provided and $(nnn -v) requires tty
subpackages="$pkgname-doc
$pkgname-plugins::noarch
- $pkgname-bash-completion:bashcomp:noarch
- $pkgname-fish-completion:fishcomp:noarch
- $pkgname-zsh-completion:zshcomp:noarch
+ $pkgname-bash-completion
+ $pkgname-fish-completion
+ $pkgname-zsh-completion
"
source="https://github.com/jarun/nnn/archive/v$pkgver/nnn-$pkgver.tar.gz
nnn-getplugs
@@ -27,6 +27,15 @@ build() {
package() {
make install DESTDIR="$pkgdir" PREFIX=/usr
+
+ install -D -m 644 misc/auto-completion/bash/nnn-completion.bash \
+ "$pkgdir"/usr/share/bash-completion/completions/$pkgname
+
+ install -D -m 644 misc/auto-completion/fish/nnn.fish \
+ "$pkgdir"/usr/share/fish/completions/$pkgname.fish
+
+ install -D -m 644 misc/auto-completion/zsh/_nnn \
+ "$pkgdir"/usr/share/zsh/site-functions/_$pkgname
}
plugins() {
@@ -45,36 +54,6 @@ plugins() {
ln -s ../share/$pkgname/plugins/getplugs "$subpkgdir"/usr/bin/nnn-getplugs
}
-bashcomp() {
- pkgdesc="Bash completions for $pkgname"
- depends=""
- install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
-
- cd "$builddir"
- install -D -m 644 misc/auto-completion/bash/nnn-completion.bash \
- "$subpkgdir"/usr/share/bash-completion/completions/$pkgname
-}
-
-fishcomp() {
- pkgdesc="Fish completions for $pkgname"
- depends=""
- install_if="$pkgname=$pkgver-r$pkgrel fish"
-
- cd "$builddir"
- install -D -m 644 misc/auto-completion/fish/nnn.fish \
- "$subpkgdir"/usr/share/fish/completions/$pkgname.fish
-}
-
-zshcomp() {
- pkgdesc="ZSH completions for $pkgname"
- depends=""
- install_if="$pkgname=$pkgver-r$pkgrel zsh"
-
- cd "$builddir"
- install -D -m 644 misc/auto-completion/zsh/_nnn \
- "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname
-}
-
sha512sums="
fec90fcfda7e52e5f49743feddbf0fdba50fa5a89cccda89ca7e1ff6626bc7fbe92e0bd41e6de48eb1690379add2294d7411e70226b89fc40878e42b4bb9239d nnn-4.4.tar.gz
5870bd38c897c0738778952d3c65131ae37b44d8a5032add81645bcf46cae4c66700f319b514f8ab369e15900e4de1058736664ca3603a850ef0212a8ce8e7ee nnn-getplugs