AUR (en) - fzf-git

I think the PKGBUILD should also follow the community's build and install the fzf.vim file, the vim-fzf-git depends on this.

(It's a bit of a weird setup IMO of upstream having having vim related files in the fzf repo and an dependent fzf-vim repo)

## Vim plugin
install -Dm644 plugin/fzf.vim "$pkgdir"/usr/share/vim/vimfiles/plugin/fzf.vim

This PKGBUILD ignores the dependencies in the glide.lock file, the following patch remedies that:
```
diff --git a/PKGBUILD b/PKGBUILD
index 18bdb88..52942a4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,12 +3,12 @@
# Contributor: jebaum <jebaum at ucla dot edu>
pkgname=fzf-git
-pkgver=20171027
+pkgver=20171029
pkgrel=1
pkgdesc="Command-line fuzzy finder"
arch=('armv6h' 'armv7h' 'i686' 'x86_64')
depends=('ncurses')
-makedepends=('git' 'go' 'make')
+makedepends=('git' 'go' 'glide' 'make')
optdepends=('fish: fish keybindings'
'fzf-extras: fzf keybindings from junegunn wiki and dotfiles'
'tmux: fzf-tmux script for launching fzf in a tmux pane'
@@ -45,10 +45,14 @@ prepare() {
}
build() {
- cd ${pkgname%-git}
+ mkdir -p src/github.com/junegunn
+ [[ -L src/github.com/junegunn/fzf ]] || ln -s ../../../fzf src/github.com/junegunn/fzf
+ GOPATH="$PWD"
+ cd "src/github.com/junegunn/${pkgname%-git}"
msg2 'Building...'
- GOPATH="$srcdir" TMPDIR=/tmp go get -u github.com/junegunn/fzf/...
+ GOPATH="$GOPATH" glide install
+ go build
}
package() {
@@ -68,7 +72,7 @@ package() {
install -Dm 644 "man/man1/fzf-tmux.1" -t "$pkgdir/usr/share/man/man1"
msg2 'Installing executables...'
- install -Dm 755 "$srcdir/bin/fzf" -t "$pkgdir/usr/bin"
+ install -Dm 755 "fzf" -t "$pkgdir/usr/bin"
install -Dm 755 "bin/fzf-tmux" -t "$pkgdir/usr/bin"
msg2 'Installing bash completion and keybindings...'
```