mirror of
https://github.com/TrentSPalmer/aur-packages.git
synced 2025-07-04 01:13:16 -07:00
modified deoplete-git and deoplete-jedi-git to work with vim
This commit is contained in:
@ -1,14 +1,27 @@
|
||||
# Maintainer: Trent Palmer trenttdually at gmail
|
||||
|
||||
###########################################################################################################
|
||||
# Build Options
|
||||
###########################################################################################################
|
||||
_vim="y"
|
||||
|
||||
_neovim="y"
|
||||
###########################################################################################################
|
||||
|
||||
_name='deoplete'
|
||||
pkgname="${_name}-git"
|
||||
pkgver=4.0.serial.r95.gcbd884d
|
||||
pkgver=4.0.serial.r107.gb14aa70
|
||||
pkgrel=1
|
||||
pkgdesc="deoplete completion plugin for neovim"
|
||||
arch=('any')
|
||||
url="https://github.com/Shougo/deoplete.nvim"
|
||||
license=('MIT')
|
||||
groups=()
|
||||
depends=('python-neovim' 'python2-neovim')
|
||||
depends=('python-neovim')
|
||||
optdepends=('vim: vim support'
|
||||
'neovim: neovim support'
|
||||
'nvim-yarp: vim support'
|
||||
'vim-hug-neovim-rpc: vim support')
|
||||
makedepends=('git')
|
||||
provides=('deoplete')
|
||||
conflicts=('deoplete')
|
||||
@ -21,15 +34,23 @@ noextract=()
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "${srcdir}/${_name}"
|
||||
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
cd "${srcdir}/${_name}"
|
||||
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
package() {
|
||||
if [ "$_neovim" = "y" ]; then
|
||||
mkdir -p "$pkgdir/usr/share/nvim/runtime"
|
||||
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin,rplugin} \
|
||||
"$pkgdir/usr/share/nvim/runtime"
|
||||
"$pkgdir/usr/share/nvim/runtime"
|
||||
fi
|
||||
|
||||
install -D -m644 "${srcdir}/${_name}/README.md" $pkgdir/usr/share/doc/$pkgname/README.md
|
||||
install -D -m644 "${srcdir}/${_name}/LICENSE" $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
||||
if [ "$_vim" = "y" ]; then
|
||||
mkdir -p "$pkgdir/usr/share/vim/vimfiles"
|
||||
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin,rplugin} \
|
||||
"$pkgdir/usr/share/vim/vimfiles"
|
||||
fi
|
||||
|
||||
install -D -m644 "${srcdir}/${_name}/README.md" $pkgdir/usr/share/doc/$pkgname/README.md
|
||||
install -D -m644 "${srcdir}/${_name}/LICENSE" $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
Reference in New Issue
Block a user