blob: ed66c7a7d5cc5a4f6ce7ddf8bc43b0f7b1a83216 (
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
|
pkgname=neovim-coc-opt-git
_pkgname=coc
pkgver=724.473668ea
pkgrel=1
pkgdesc='Intellisense engine for neovim.'
arch=('any')
url="https://github.com/neoclide/${_pkgname}.nvim"
license=('MIT')
depends=('neovim' 'nodejs' 'yarn')
makedepends=('git')
optdepends=('npm: instead of yarn')
source=("${_pkgname}::git+${url}.git#branch=release")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/${_pkgname}"
local _installpath="usr/local/share/nvim/site/pack/${_pkgname}/opt/${_pkgname}/"
install -dvm755 "${pkgdir}/${_installpath}"
cp -rvt "${pkgdir}/${_installpath}" autoload bin build data doc plugin package.json
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|