37 lines
1.3 KiB
Bash
37 lines
1.3 KiB
Bash
|
# Template file for 'fzf'
|
||
|
pkgname=fzf
|
||
|
version=0.9.7.1
|
||
|
_version=0.9.7-1
|
||
|
wrksrc=${pkgname}-${_version}/src
|
||
|
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
|
||
|
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=38fa16c41e861af6ad87e7ff655188559775a2979254d76198c435d198e15fb4
|
||
|
|
||
|
# Needs cgo to build, which doesn't work when cross-compiling.
|
||
|
nocross=yes
|
||
|
|
||
|
post_install() {
|
||
|
cd ${wrksrc}/..
|
||
|
vbin bin/fzf-tmux
|
||
|
vman man/man1/fzf.1
|
||
|
|
||
|
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 ${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
|
||
|
}
|