2017-12-24 21:15:39 -08:00
|
|
|
# Maintainer: Trent Palmer trenttdually at gmail
|
2018-02-25 18:12:47 -08:00
|
|
|
|
|
|
|
###########################################################################################################
|
|
|
|
# Build Options
|
|
|
|
###########################################################################################################
|
|
|
|
_vim="y"
|
|
|
|
|
2018-11-23 02:24:04 -08:00
|
|
|
# neovim in Arch Linux seems to load vim extensions from /usr/share/vim/vimfiles by
|
|
|
|
# default now, (or you can add 'set rtp^=/usr/share/vim/vimfiles/' to .vimrc)
|
|
|
|
# but in any event, you may not need or want to set _neovim="y"
|
2018-06-07 15:11:48 -07:00
|
|
|
_neovim="n"
|
2018-02-25 18:12:47 -08:00
|
|
|
###########################################################################################################
|
|
|
|
|
2017-12-24 21:15:39 -08:00
|
|
|
_name='deoplete'
|
|
|
|
pkgname="${_name}-git"
|
2021-01-27 03:16:12 -08:00
|
|
|
pkgver=r1990.2e3f5b5
|
2017-12-24 21:15:39 -08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="deoplete completion plugin for neovim"
|
2019-02-02 22:54:32 -08:00
|
|
|
# i.e. seems to build and work fine on raspberrypi
|
2017-12-28 18:10:04 -08:00
|
|
|
arch=('any')
|
2017-12-24 21:15:39 -08:00
|
|
|
url="https://github.com/Shougo/deoplete.nvim"
|
|
|
|
license=('MIT')
|
|
|
|
groups=()
|
2020-03-12 18:25:49 -07:00
|
|
|
# python-msgpack>=1.0.0 apparently no longer needed
|
|
|
|
# depends=('python-pynvim' 'python-msgpack>=1.0.0')
|
|
|
|
depends=('python-pynvim')
|
2018-02-25 18:12:47 -08:00
|
|
|
optdepends=('vim: vim support'
|
|
|
|
'neovim: neovim support'
|
|
|
|
'nvim-yarp: vim support'
|
|
|
|
'vim-hug-neovim-rpc: vim support')
|
2017-12-24 21:15:39 -08:00
|
|
|
makedepends=('git')
|
2018-01-02 01:09:32 -08:00
|
|
|
provides=('deoplete')
|
|
|
|
conflicts=('deoplete')
|
|
|
|
replaces=('')
|
2017-12-24 21:15:39 -08:00
|
|
|
backup=()
|
|
|
|
options=()
|
|
|
|
install="${_name}.install"
|
|
|
|
source=("${_name}::${url//https/git}")
|
|
|
|
noextract=()
|
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
2018-11-20 00:28:33 -08:00
|
|
|
cd "${srcdir}/${_name}"
|
2018-11-23 02:24:04 -08:00
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
2017-12-24 21:15:39 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-02-25 18:12:47 -08:00
|
|
|
if [ "$_neovim" = "y" ]; then
|
2017-12-25 17:32:52 -08:00
|
|
|
mkdir -p "$pkgdir/usr/share/nvim/runtime"
|
2017-12-25 00:18:05 -08:00
|
|
|
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin,rplugin} \
|
2018-02-25 18:12:47 -08:00
|
|
|
"$pkgdir/usr/share/nvim/runtime"
|
|
|
|
fi
|
|
|
|
|
|
|
|
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
|
2017-12-27 22:44:32 -08:00
|
|
|
|
2019-07-01 00:37:21 -07:00
|
|
|
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
|
2017-12-24 21:15:39 -08:00
|
|
|
}
|