2015-04-17 21:44:53 +00:00
|
|
|
# Template file for 'fzf'
|
|
|
|
pkgname=fzf
|
2015-06-23 20:27:40 +00:00
|
|
|
version=0.10.0
|
2015-06-06 21:34:34 +00:00
|
|
|
revision=2
|
2015-04-17 21:44:53 +00:00
|
|
|
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
|
|
|
|
makedepends=ncurses-devel
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://github.com/junegunn/fzf"
|
|
|
|
short_desc="A command-line fuzzy finder"
|
2015-07-30 05:12:37 +00:00
|
|
|
distfiles="https://github.com/junegunn/fzf/archive/${version}.tar.gz"
|
2015-06-23 20:27:40 +00:00
|
|
|
checksum=7d0b3ced40c99934590e3b0a2302a79ca13f36b7558d1643a89b1800021252ee
|
2015-04-17 21:44:53 +00:00
|
|
|
|
|
|
|
# Needs cgo to build, which doesn't work when cross-compiling.
|
|
|
|
nocross=yes
|
|
|
|
|
2015-04-18 03:21:23 +00:00
|
|
|
pre_build() {
|
|
|
|
cd src
|
|
|
|
}
|
|
|
|
|
2015-04-17 21:44:53 +00:00
|
|
|
post_install() {
|
2015-04-18 03:21:23 +00:00
|
|
|
cd ${wrksrc}
|
2015-04-17 21:44:53 +00:00
|
|
|
vbin bin/fzf-tmux
|
2015-04-18 03:21:23 +00:00
|
|
|
vbin ${FILESDIR}/fzf-fsel
|
2015-04-17 21:44:53 +00:00
|
|
|
vman man/man1/fzf.1
|
|
|
|
|
|
|
|
sed -i -e 's#source ~/\.fzf\.bash; ##' shell/key-bindings.bash
|
2015-06-06 20:50:58 +00:00
|
|
|
sed -i -e 's/(__fzf_select__)/(fzf-fsel)/' shell/key-bindings.bash
|
2015-04-17 21:44:53 +00:00
|
|
|
vinstall plugin/fzf.vim 644 usr/share/vim/vimfiles/plugin
|
|
|
|
vinstall shell/completion.bash 644 usr/share/bash-completion/completions fzf
|
|
|
|
vinstall ${FILESDIR}/fzf-file-widget 644 usr/share/zsh/site-functions
|
|
|
|
vinstall ${FILESDIR}/fzf-cd-widget 644 usr/share/zsh/site-functions
|
|
|
|
vinstall ${FILESDIR}/fzf-history-widget 644 usr/share/zsh/site-functions
|
|
|
|
vinstall ${FILESDIR}/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
|
2015-06-23 20:27:40 +00:00
|
|
|
vinstall shell/completion.zsh 644 usr/share/doc/fzf
|
2015-04-17 21:44:53 +00:00
|
|
|
}
|