add vim-hug-neovim-rpc-git so deoplete will work with vim

This commit is contained in:
Trent Palmer 2018-02-25 18:11:16 -08:00
parent 2138e4825b
commit 0ea2789d8d
3 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,18 @@
pkgbase = vim-hug-neovim-rpc-git
pkgdesc = trying to build a compatibility layer for neovim rpc client working on vim8
pkgver = r81.e8af9b2
pkgrel = 1
url = https://github.com/roxma/vim-hug-neovim-rpc
install = vim-hug-neovim-rpc.install
arch = any
license = unknown
makedepends = git
depends = vim
depends = python-neovim
optdepends = nvim-yarp
provides = vim-hug-neovim-rpc
source = vim-hug-neovim-rpc::git://github.com/roxma/vim-hug-neovim-rpc
md5sums = SKIP
pkgname = vim-hug-neovim-rpc-git

View File

@ -0,0 +1,36 @@
# Maintainer: Trent Palmer trenttdually at gmail
_name='vim-hug-neovim-rpc'
pkgname="${_name}-git"
pkgver=r81.e8af9b2
pkgrel=1
pkgdesc="trying to build a compatibility layer for neovim rpc client working on vim8"
arch=('any')
url="https://github.com/roxma/vim-hug-neovim-rpc"
license=('unknown')
groups=()
depends=('vim' 'python-neovim')
optdepends=('nvim-yarp')
makedepends=('git')
provides=('vim-hug-neovim-rpc')
conflicts=()
replaces=('')
backup=()
options=()
# maybe at some point there will be helptags to update
install="${_name}.install"
source=("${_name}::${url//https/git}")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_name}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
mkdir -p "$pkgdir/usr/share/vim/vimfiles"
cp -r "${srcdir}/${_name}/"{autoload,pythonx} \
"$pkgdir/usr/share/vim/vimfiles"
install -D -m644 "${srcdir}/${_name}/README.md" $pkgdir/usr/share/doc/$pkgname/README.md
}

View File

@ -0,0 +1,18 @@
update_vim_help() {
echo -n "Updating Vim help tags..."
/usr/bin/vim --noplugin -u NONE -U NONE \
--cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
echo "done."
}
post_install() {
update_vim_help
}
post_upgrade() {
update_vim_help "$1"
}
post_remove() {
update_vim_help
}