blob: e0514da46f0009cfbc52b9dd41985e4224f3749e (
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=('vim-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=('vim')
optdepends=('ctags: ctags support'
'vim-coc: lsp symbols support'
'languageclient-neovim: lsp symbols support'
'fzf: for searching symbols/tags')
provides=('vim-vista')
conflicts=('vim-vista')
source=("${_pkgname}::git+https://github.com/liuchengxu/vista.vim.git")
sha256sums=('SKIP')
makedepends=('git')
_packdir="usr/share/vim/vimfiles/pack/${_pkgname}/start/${_pkgname}"
_variant='vim'
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/${_pkgname}"
vim -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"
}
|