summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4147a80e9f08f5465155ae6b1bb1104d6bc401fc (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
# Maintainer: Max Gautier <mg+archlinux@max.gautier.name>
_pkgname=vim-vsnip
pkgname=${_pkgname}-git
pkgver=master
pkgrel=1
pkgdesc="VSCode(LSP)'s snippet feature in vim."
arch=('any')
url="https://github.com/hrsh7th/vim-vsnip"
license=('MIT')
groups=('vim-plugins')
depends=('vim')
optdepends=('vim-vsnip-integ: LSP Client support')
makedepends=('git')
source=("$pkgname::git+$url")
md5sums=('SKIP')

pkgver() {
	cd "$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$pkgname"

	local vimfiles="$pkgdir/usr/share/vim/vimfiles/"
	install -d "$vimfiles"
	cp -dr --no-preserve=ownership autoload doc misc plugin "$vimfiles"
	install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}