summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSainnhepark2020-08-03 18:37:35 +0800
committerSainnhepark2020-08-03 18:37:35 +0800
commitdecb61ac434d7b25ee06735d9805109c9143188e (patch)
tree64ae33fce8fd8950b2359de55cbc0528b3b8b2a9
parent5bfc334ec9f728a64e34551147798b72c2ecc360 (diff)
downloadaur-decb61ac434d7b25ee06735d9805109c9143188e.tar.gz
remove hook
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD15
-rw-r--r--coc-neovim-doc.hook11
3 files changed, 5 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c2d10b0fd02..25a17ceef43 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,13 +9,11 @@ pkgbase = neovim-coc
depends = nodejs
optdepends = npm: for installing coc extensions
optdepends = yarn: for installing coc extensions
- optdepends = neovim-coc-extras-meta-git: some basic extensions
+ optdepends = neovim-coc-extras-meta: some basic extensions
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 = 2e4d498a34a920452764dffb728cd65526bff7bfbda8599f4de5b5ff427d8d5b
pkgname = neovim-coc
diff --git a/PKGBUILD b/PKGBUILD
index c088d707c82..f6b518ca5db 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,24 +9,17 @@ license=('MIT')
depends=('neovim' 'nodejs')
optdepends=('npm: for installing coc extensions'
'yarn: for installing coc extensions'
- 'neovim-coc-extras-meta-git: some basic extensions')
+ 'neovim-coc-extras-meta: some basic extensions')
provides=('neovim-coc')
conflicts=('neovim-coc')
-source=('https://github.com/neoclide/coc.nvim/archive/v0.0.78.tar.gz'
- 'coc-neovim-doc.hook')
-sha256sums=('1e9634b9c5de3557d8ecf3057fcaa1958d70a8d433eec2da19d88f8d486c2695'
- '2e4d498a34a920452764dffb728cd65526bff7bfbda8599f4de5b5ff427d8d5b')
-
-build() {
- cd "${srcdir}/coc.nvim-${pkgver}"
- touch doc/tags doc/tags-cn
-}
+source=('https://github.com/neoclide/coc.nvim/archive/v0.0.78.tar.gz')
+sha256sums=('1e9634b9c5de3557d8ecf3057fcaa1958d70a8d433eec2da19d88f8d486c2695')
package() {
cd "${srcdir}/coc.nvim-${pkgver}"
+ nvim -es --cmd ":helptags doc" --cmd ":q"
find autoload bin build data doc package.json plugin -type f -exec \
install -Dm 644 '{}' "${pkgdir}/usr/local/share/nvim/site/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
deleted file mode 100644
index 70188dd7977..00000000000
--- a/coc-neovim-doc.hook
+++ /dev/null
@@ -1,11 +0,0 @@
-[Trigger]
-Operation = Install
-Operation = Upgrade
-Operation= Remove
-Type = Path
-Target = usr/local/share/nvim/site/pack/coc/start/coc.nvim/doc/
-
-[Action]
-Description = Updating Vim help tags...
-Exec = /usr/bin/nvim -es --cmd ":helptags /usr/local/share/nvim/site/pack/coc/start/coc.nvim/doc" --cmd ":q"
-When = PostTransaction