From 37a402707e40d9b1c44e945146451d54b97cd30d Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sun, 25 Feb 2018 18:12:08 -0800 Subject: [PATCH] added nvim-yarp-git so deoplete will work with vim --- nvim-yarp-git/.SRCINFO | 17 ++++++++++++++++ nvim-yarp-git/PKGBUILD | 35 +++++++++++++++++++++++++++++++++ nvim-yarp-git/nvim-yarp.install | 18 +++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 nvim-yarp-git/.SRCINFO create mode 100644 nvim-yarp-git/PKGBUILD create mode 100644 nvim-yarp-git/nvim-yarp.install diff --git a/nvim-yarp-git/.SRCINFO b/nvim-yarp-git/.SRCINFO new file mode 100644 index 0000000..e2b7ef1 --- /dev/null +++ b/nvim-yarp-git/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = nvim-yarp-git + pkgdesc = (an) attempt (at) writing a remote plugin framework without :UpdateRemotePlugins. + pkgver = r29.b222af8 + pkgrel = 1 + url = https://github.com/roxma/nvim-yarp + install = nvim-yarp.install + arch = any + license = unknown + makedepends = git + depends = vim + depends = python-neovim + provides = nvim-yarp + source = nvim-yarp::git://github.com/roxma/nvim-yarp + md5sums = SKIP + +pkgname = nvim-yarp-git + diff --git a/nvim-yarp-git/PKGBUILD b/nvim-yarp-git/PKGBUILD new file mode 100644 index 0000000..2f668c2 --- /dev/null +++ b/nvim-yarp-git/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Trent Palmer trenttdually at gmail +_name='nvim-yarp' +pkgname="${_name}-git" +pkgver=r29.b222af8 +pkgrel=1 +pkgdesc="(an) attempt (at) writing a remote plugin framework without :UpdateRemotePlugins." +arch=('any') +url="https://github.com/roxma/nvim-yarp" +license=('unknown') +groups=() +depends=('vim' 'python-neovim') +makedepends=('git') +provides=('nvim-yarp') +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 +} diff --git a/nvim-yarp-git/nvim-yarp.install b/nvim-yarp-git/nvim-yarp.install new file mode 100644 index 0000000..c366682 --- /dev/null +++ b/nvim-yarp-git/nvim-yarp.install @@ -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 +}