summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2742a4f35c5a07e17d3b89c6a4e7c18390356fa0 (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
# Maintainer: Wilson E. Alvarez <wilson.e.alvarez1@gmail.com>
# Contributor: Rodrigo Gryzinski <rogryza@gmail.com>

_pkgname=asyncomplete.vim
pkgname=vim-asyncomplete-lsp-git
pkgver=r26.5c470ae
pkgrel=1
pkgdesc="LSP source for asyncomplete.vim vim-lsp"
arch=('any')
url="https://github.com/prabirshrestha/asyncomplete-lsp.vim.git"
license=('Custom')
depends=('vim' 'vim-asyncomplete-git')
groups=('vim-plugins')
source=("${_pkgname}::git+$url")
sha512sums=('SKIP')

pkgver()
{
	cd "$srcdir/$_pkgname"
	( set -o pipefail
	git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
		printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	)
}

package() {
	cd "$srcdir/$_pkgname"

	# TODO: Install license when available
	#install -Dm 644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"

	# Install vimfiles
	local vimfiles="$pkgdir/usr/share/vim/vimfiles"
	mkdir -p "$vimfiles"
	cp -dr --no-preserve=ownership plugin "$vimfiles"
}