summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25f64cea063b2d3813d45536267f85db2c2ff349 (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
# Maintainer: Max Gautier <mg@max.gautier.name>

_pkgname=vim-helm
pkgname="$_pkgname"-git
pkgver=master
pkgrel=2
pkgdesc="Helm syntax for vim"
arch=('any')
url="https://github.com/towolf/$_pkgname"
license=('custom')
depends=('vim')
makedepends=('git')
groups=('vim-plugins')
source=("$pkgname::git+$url#branch=master?signed")
sha512sums=('SKIP')
validpgpkeys=('968479A1AFF927E37D1A566BB5690EEEBB952194')

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

package() {

    cd "$pkgname"

    install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE

    # Install vimfiles
    local vimfiles="$pkgdir/usr/share/vim/vimfiles"
    mkdir -p "$vimfiles"
	cp -r --no-preserve=ownership -t "$vimfiles" syntax/ ftdetect/
}