Mail archive
alpine-aports

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

From: Matt Hill <theothermatt_at_gmail.com>
Date: Thu, 4 Apr 2019 12:18:32 +0100

https://github.com/junegunn/fzf/blob/master/README-VIM.md
Basic integration for Vim/Neovim
---
Rebased on to latest HEAD
 community/fzf/APKBUILD | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
diff --git a/community/fzf/APKBUILD b/community/fzf/APKBUILD
index 055cb499bb..102417ae18 100644
--- a/community/fzf/APKBUILD
+++ b/community/fzf/APKBUILD
_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
 	glide.yaml
_at_@ -90,6 +92,22 @@ glide_init() {
 	cd "$startdir" && abuild checksum clean
 }
 
+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="70dcda693ed6706f232874550f89cfcdbce1d28360244a728dd0640a4cfbbbd0899601f42c9096197c159cde86e89d287a06905cb5d665bd09b9d01cca2cb754  fzf-0.18.0.tar.gz
 dc14dea17ea585344e16eeffdc244693d97f4519676d20ec43434f6eff460d61be833399469ccb44c25c9fed296d52d424208c4a4cae5a3beecba14593cecd49  glide.yaml
 5d1c0801d79a0425e1ec02c818bf440f2201841f356f32350fac06bf3ed7a7d03c0718cbeadc07143701895152f7ee19919e6e527be9e17c0df430f93d0282c9  glide.lock"
-- 
2.20.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Thu Apr 04 2019 - 12:18:32 UTC