Mail archive
alpine-aports

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

From: Matt Hill <theothermatt_at_gmail.com>
Date: Thu, 7 Mar 2019 12:55:47 +0000

https://github.com/junegunn/fzf/blob/master/README-VIM.md
Basic integration for Vim/Neovim
---
Separate packages for vim and neovim seems better to me - if you're
using neovim, you're not likely to be using vim too.  Well, I don't
anyway.
Also added an `install_if` for each.
 community/fzf/APKBUILD | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/community/fzf/APKBUILD b/community/fzf/APKBUILD
index dd7fc77f25..d0098adf9e 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,8 @@ subpackages="
 	$pkgname-tmux::noarch
 	$pkgname-bash-completion:bashcomp:noarch
 	$pkgname-zsh-completion:zshcomp:noarch
+	$pkgname-vim:vim: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 +73,21 @@ zshcomp() {
 	install -m0644 shell/key-bindings.zsh "$subpkgdir"/usr/share/fzf/
 }
 
+vim() {
+	pkgdesc="fzf vim plugin"
+	install_if="$pkgname=$pkgver-r$pkgrel vim"
+	cd "$builddir"
+	mkdir -p "$subpkgdir"/usr/share/vim/vimfiles/plugin/
+	install -Dm0644 plugin/fzf.vim "$subpkgdir"/usr/share/vim/vimfiles/plugin/
+}
+
+nvim() {
+	pkgdesc="fzf vim plugin for neovim"
+	install_if="$pkgname=$pkgver-r$pkgrel neovim"
+	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 Thu Mar 07 2019 - 12:55:47 UTC