blob: 897f596af00ba9cf161c6e0bf311edb56bc6e4b8 (
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
|
# Maintainer: Sainnhe Park <sainnhe@gmail.com>
pkgname=('neovim-vista-git')
_pkgname=vista
pkgver=r249.de344a6
pkgrel=1
pkgdesc='Viewer & Finder for LSP symbols and tags'
arch=('any')
url='https://github.com/liuchengxu/vista.vim'
license=('MIT')
depends=('neovim')
optdepends=('ctags: ctags support'
'neovim-coc: lsp symbols support'
'languageclient-neovim: lsp symbols support'
'fzf: for searching symbols/tags')
provides=('neovim-vista')
conflicts=('neovim-vista')
source=("${_pkgname}::git+https://github.com/liuchengxu/vista.vim.git")
sha256sums=('SKIP')
makedepends=('git')
_packdir="usr/share/nvim/runtime/pack/${_pkgname}/start/${_pkgname}"
_variant='neovim'
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/${_pkgname}"
nvim -es --cmd ":helptags doc" --cmd ":q"
find autoload doc plugin syntax -type f -exec \
install -Dm 644 '{}' "${pkgdir}/${_packdir}/{}" \;
install -Dm 644 "${srcdir}/${_pkgname}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|