hub: add vim config files

This commit is contained in:
Enno Boland 2021-02-01 15:26:09 +01:00 committed by Enno Boland
parent 64c1a8b119
commit 062ac23009
1 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'hub'
pkgname=hub
version=2.14.2
revision=1
revision=2
build_style=go
go_import_path=github.com/github/hub
hostmakedepends="git groff"
@ -47,4 +47,10 @@ post_install() {
vinstall etc/hub.zsh_completion 644 usr/share/zsh/site-functions _hub
vinstall etc/hub.bash_completion.sh 644 usr/share/bash-completion/completions hub
vinstall etc/hub.fish_completion 644 usr/share/fish/vendor_completions.d hub.fish
for i in share/vim/vimfiles/*/pullrequest.vim; do
dir="${i%/*}"
vinstall "$i" 644 "usr/$dir"
vmkdir "usr/${dir/vim/nvim}"
ln -sr "$DESTDIR/usr/${i}" "$DESTDIR/usr/${i/vim/nvim}"
done
}