abinfo "Installing manpages ..."
install -dvm755 "$PKGDIR"/usr/share/man/man1/
install -Dvm644 "$SRCDIR"/man/man1/fzf{,-tmux}.1 "$PKGDIR"/usr/share/man/man1/

abinfo "Installing shell autocompletion and keybindings ..."
install -dvm755 "$PKGDIR"/usr/share/{fzf,bash-completion/completions,zsh/site-functions/} 
install -Dvm644 "$SRCDIR"/shell/completion.bash \
    "$PKGDIR"/usr/share/bash-completion/completions/fzf
install -Dvm644 "$SRCDIR"/shell/completion.zsh \
    "$PKGDIR"/usr/share/zsh/site-functions/_fzf
install -Dvm644 "$SRCDIR"/shell/key-bindings.{bash,zsh} \
    "$PKGDIR"/usr/share/fzf/
install -Dvm644 "$SRCDIR"/shell/key-bindings.fish \
    "$PKGDIR"/usr/share/fish/functions/fzf_key_bindings.fish

abinfo "Installing vim plugins ..."
install -Dvm644 "$SRCDIR"/doc/fzf.txt \
    "$PKGDIR"/usr/share/vim/vimfiles/doc/fzf.txt
install -Dvm644 "$SRCDIR"/plugin/fzf.vim \
    "$PKGDIR"/usr/share/vim/vimfiles/plugin/fzf.vim
