blob: e9802636b04738f2a3da51f1b73b2498b1c650a6 (
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
|
# Maintainer: Sainnhe Park <sainnhe@gmail.com>
pkgname=vim-coc
# Coc.nvim creates tags on release branch but the source code is only available on master branch, so I have to use commit hash to specify the version to use.
_hash='c90a07eec847d38909702454c9e096ac6d392aff'
pkgver=0.0.80
pkgrel=3
pkgdesc='Intellisense engine for Vim8 & Neovim, full language server protocol support as VSCode'
arch=('any')
url='https://github.com/neoclide/coc.nvim'
license=('MIT')
depends=('vim' 'nodejs')
optdepends=('npm: for installing coc extensions'
'yarn: for installing coc extensions'
'watchman: for workspace_didChangeWatchedFiles feature')
makedepends=('yarn')
provides=('vim-coc')
conflicts=('vim-coc')
source=("https://github.com/neoclide/coc.nvim/archive/${_hash}.zip")
sha256sums=('3942014f681bfe2b25f3653fbb1108dbaf1de9f4f6993e9770a7fd42a92014f2')
build() {
cd "${srcdir}/coc.nvim-${_hash}"
sed -i "3s/=.*/= '${_hash}'/" webpack.config.js
yarn install --frozen-lockfile --preferred-cache-folder "${srcdir}/.cache"
}
package() {
cd "${srcdir}/coc.nvim-${_hash}"
vim -es --cmd ":helptags doc" --cmd ":q"
find autoload build data doc package.json plugin -type f -exec \
install -Dm 644 '{}' "${pkgdir}/usr/share/vim/vimfiles/pack/coc/start/coc.nvim/{}" \;
install -Dm 644 "${srcdir}/coc.nvim-${_hash}/LICENSE.md" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
}
|