void-packages/srcpkgs/fzf/template
2016-05-14 07:28:03 +02:00

34 lines
1 KiB
Bash

# Template file for 'fzf'
pkgname=fzf
version=0.12.1
revision=1
build_style=go
go_import_path="github.com/junegunn/fzf/src"
go_package="github.com/junegunn/fzf/src/fzf"
maintainer="Dominik Honnef <dominik@honnef.co>"
hostmakedepends=git-perl
makedepends=ncurses-devel
license="MIT"
homepage="https://github.com/junegunn/fzf"
short_desc="A command-line fuzzy finder"
distfiles="https://github.com/junegunn/fzf/archive/${version}.tar.gz"
checksum=ca39422b14001d1fe47afd10fcf692c8f67f93da1963669157bdc93d39d19a28
pre_build() {
cd src
}
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 shell/completion.bash 644 usr/share/bash-completion/completions 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
}