summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53bc38ce58738663fe1b56178273b065dd67b65a (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
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=vim-khr
pkgver=4.86b52f8
pkgrel=1
pkgdesc='Vim syntax highlighting for Khronos extension specification documents'
arch=('any')
url='https://github.com/kbenzie/vim-khr'
source=("git+$url")
sha1sums=('SKIP')

pkgver() {
  cd "${srcdir}/vim-khr"
  printf '%d.%s' \
    $(git rev-list --count HEAD) \
    $(git rev-parse --short HEAD)
}

package() {
  for folder in ftplugin syntax
  do
    install -Dm644 "${srcdir}/vim-khr/${folder}/khr.vim" \
      "${pkgdir}/usr/share/vim/vimfiles/${folder}/khr.vim"
  done
}