Mail archive
alpine-aports

[alpine-aports] [PATCH] community/fzf: Add neovim subpackage

From: Matt Hill <theothermatt_at_gmail.com>
Date: Tue, 5 Mar 2019 16:00:38 +0000

https://github.com/junegunn/fzf/blob/master/README-VIM.md
Basic integration for Neovim
---
 community/fzf/APKBUILD | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/community/fzf/APKBUILD b/community/fzf/APKBUILD
index dd7fc77f25..908b1b5eb4 100644
--- a/community/fzf/APKBUILD
+++ b/community/fzf/APKBUILD
_at_@ -2,7 +2,7 @@
 # Maintainer: Kevin Daudt <ops_at_ikke.info>
 pkgname=fzf
 pkgver=0.17.5
-pkgrel=2
+pkgrel=3
 pkgdesc="A command-line fuzzy finder"
 url="https://github.com/junegunn/fzf"
 arch="all !s390x !aarch64 !armhf !armv7"
_at_@ -12,6 +12,7 @@ subpackages="
 	$pkgname-tmux::noarch
 	$pkgname-bash-completion:bashcomp:noarch
 	$pkgname-zsh-completion:zshcomp:noarch
+	$pkgname-neovim:nvim:noarch
 	"
 source="$pkgname-$pkgver.tar.gz::https://github.com/junegunn/fzf/archive/$pkgver.tar.gz
 	no-glide-install.patch"
_at_@ -71,5 +72,12 @@ zshcomp() {
 	install -m0644 shell/key-bindings.zsh "$subpkgdir"/usr/share/fzf/
 }
 
+nvim() {
+	pkgdesc="fzf vim plugin"
+	cd "$builddir"
+	mkdir -p "$subpkgdir"/usr/share/nvim/runtime/plugin/
+	install -Dm0644 plugin/fzf.vim "$subpkgdir"/usr/share/nvim/runtime/plugin/
+}
+
 sha512sums="adb5290317362c32d053294a2dd9a2aa11711521635c1cb1fc11001dea1b06e27856a7c54e7316d211abee3304cc56b8a9ee60773bb99cb4132b533f5464a430  fzf-0.17.5.tar.gz
 daa16985079e3b55ccf5e74dde356e1e13e43865c9809e432b5d272b053f541f1eacd402f3b04957ee855fb8c0ca1820b507d08e408f55dc80004990a949874c  no-glide-install.patch"
-- 
2.20.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Mar 05 2019 - 16:00:38 UTC