void-packages/srcpkgs/fzf/template
Gabriel Sanches 466fb9eb21 fzf: install fzf.vim to Neovim plugin directory
For Vim users, FZF works out of the box, but Neovim users have to
manually copy /usr/share/vim/vimfiles/plugin/fzf.vim to the proper
Neovim equivalent.

fzf: move completion functionality to correct path

`shell/completion.bash` is not argument completion, it's a completion
functionality for FZF (integration with `kill`, etc). Like the one for
ZSH, it should go to `/usr/share/doc/fzf`.
2020-09-23 14:58:58 -03:00

31 lines
1.1 KiB
Bash

# Template file for 'fzf'
pkgname=fzf
version=0.22.0
revision=2
build_style=go
go_import_path=github.com/junegunn/fzf
hostmakedepends="git"
makedepends="ncurses-devel"
short_desc="Command-line fuzzy finder"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="https://github.com/junegunn/fzf"
changelog="https://raw.githubusercontent.com/junegunn/fzf/master/CHANGELOG.md"
distfiles="https://github.com/junegunn/fzf/archive/${version}.tar.gz"
checksum=3090748bb656333ed98490fe62133760e5da40ba4cd429a8142b4a0b69d05586
post_install() {
cd ${wrksrc}
vbin bin/fzf-tmux
vman man/man1/fzf.1
vlicense LICENSE
sed -i -e 's#source ~/\.fzf\.bash; ##' shell/key-bindings.bash
vinstall plugin/fzf.vim 644 usr/share/vim/vimfiles/plugin
vinstall plugin/fzf.vim 644 usr/share/nvim/runtime/plugin
vinstall shell/completion.bash 644 usr/share/doc/fzf
vinstall shell/completion.zsh 644 usr/share/doc/fzf
vinstall shell/key-bindings.zsh 644 usr/share/doc/fzf
vinstall shell/key-bindings.bash 644 usr/share/doc/fzf
vinstall shell/key-bindings.fish 644 usr/share/doc/fzf
}