blob: 394904da3ee14cb174bad6d5c517aa4b2e95538a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Trent Palmer trenttdually at gmail
###########################################################################################################
# Build Options
###########################################################################################################
_vim="y"
# neovim can load plugins installed as vim plugins
_neovim="n"
###########################################################################################################
_name='deoplete'
pkgname="${_name}"
pkgver=6.1
pkgrel=2
pkgdesc="deoplete completion plugin for neovim"
arch=('any')
url="https://github.com/Shougo/deoplete.nvim"
license=('MIT')
groups=()
depends=('python-pynvim')
optdepends=('vim: vim support'
'neovim: neovim support'
'nvim-yarp: vim support'
'vim-hug-neovim-rpc: vim support')
makedepends=('git')
provides=('deoplete')
conflicts=('deoplete-git')
replaces=()
backup=()
options=()
install="${_name}.install"
source=("$_name-$pkgver.tar.gz::${url}/archive/${pkgver}.tar.gz")
noextract=()
sha512sums=('57e867b3ea7cf8d35655fcbe66b98641cc083d91173d55a13461c896365a47272cc28acd9b5231269e778863b99a4aa9cff90adc603f0c14e62e6ae8cc54b8b3')
prepare() {
mv "${pkgname}.nvim-${pkgver}" "${pkgname}"
}
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"
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
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
}
|