summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSainnhepark2020-07-27 10:06:07 +0800
committerSainnhepark2020-07-27 10:06:07 +0800
commit9f465ae36c54fe6fdcec0194fa2d7a843e9e1e11 (patch)
tree0cd000b99d5dd4bebf4256cc2b48cca17bad3a04
parentbe42ab61177ce2162dbe80e78975bd658a64e840 (diff)
downloadaur-9f465ae36c54fe6fdcec0194fa2d7a843e9e1e11.tar.gz
add hook to generate helptags
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD14
-rw-r--r--coc-neovim-doc.hook11
3 files changed, 25 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eb6f0d16fb9..529e34d0db1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = neovim-coc
pkgdesc = Intellisense engine for Vim8 & Neovim, full language server protocol support as VSCode
pkgver = 0.0.78
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/neoclide/coc.nvim
arch = any
license = MIT
@@ -12,7 +12,9 @@ pkgbase = neovim-coc
provides = neovim-coc
conflicts = neovim-coc
source = https://github.com/neoclide/coc.nvim/archive/v0.0.78.tar.gz
+ source = coc-neovim-doc.hook
sha256sums = 1e9634b9c5de3557d8ecf3057fcaa1958d70a8d433eec2da19d88f8d486c2695
+ sha256sums = 70cd7d959ea6ca973bd761b6deab922bfa34dd725aab636a0bbc5fbfd60cabaa
pkgname = neovim-coc
diff --git a/PKGBUILD b/PKGBUILD
index 96e0c88734f..a0546d42d75 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Sainnhe Park <sainnhe@gmail.com>
pkgname=neovim-coc
pkgver=0.0.78
-pkgrel=2
+pkgrel=3
pkgdesc='Intellisense engine for Vim8 & Neovim, full language server protocol support as VSCode'
arch=('any')
url='https://github.com/neoclide/coc.nvim'
@@ -10,8 +10,15 @@ depends=('neovim' 'nodejs')
optdepends=('npm: for installing coc extensions' 'yarn: for installing coc extensions')
provides=('neovim-coc')
conflicts=('neovim-coc')
-source=('https://github.com/neoclide/coc.nvim/archive/v0.0.78.tar.gz')
-sha256sums=('1e9634b9c5de3557d8ecf3057fcaa1958d70a8d433eec2da19d88f8d486c2695')
+source=('https://github.com/neoclide/coc.nvim/archive/v0.0.78.tar.gz'
+ 'coc-neovim-doc.hook')
+sha256sums=('1e9634b9c5de3557d8ecf3057fcaa1958d70a8d433eec2da19d88f8d486c2695'
+ '70cd7d959ea6ca973bd761b6deab922bfa34dd725aab636a0bbc5fbfd60cabaa')
+
+build() {
+ cd "${srcdir}/coc.nvim-${pkgver}"
+ touch doc/tags doc/tags-cn
+}
package() {
cd "${srcdir}/coc.nvim-${pkgver}"
@@ -19,4 +26,5 @@ package() {
install -Dm 644 '{}' "${pkgdir}/usr/share/nvim/runtime/pack/coc/start/coc.nvim/{}" \;
install -Dm 644 "${srcdir}/coc.nvim-${pkgver}/LICENSE.md" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+ install -Dm 644 "${srcdir}"/coc-neovim-doc.hook "${pkgdir}"/usr/share/libalpm/hooks/coc-neovim-doc.hook
}
diff --git a/coc-neovim-doc.hook b/coc-neovim-doc.hook
new file mode 100644
index 00000000000..8351ddd27b3
--- /dev/null
+++ b/coc-neovim-doc.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Operation= Remove
+Type = Path
+Target = usr/share/nvim/runtime/pack/coc/start/coc.nvim/doc/
+
+[Action]
+Description = Updating Vim help tags...
+Exec = /usr/bin/nvim -es --cmd ":helptags /usr/share/nvim/runtime/pack/coc/start/coc.nvim/doc" --cmd ":q"
+When = PostTransaction