summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8b4c34fbd5c9d49edb39ed56d5092051f844e536 (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
# Maintainer: xtheosirian <https://aur.archlinux.org/account/xtheosirian>

_pkgname=vim-gluon
pkgname=vim-gluon-git
pkgver=r16.07f9f69
pkgrel=1
pkgdesc="Vim plugin for syntax highlighting and indentation for Gluon."
arch=('any')
url='https://github.com/salpalvv/vim-gluon'
license=('MIT')
depends=('vim')
makedepends=('git')
conflicts=('vim-gluon')
provides=('vim-gluon')
groups=('vim-plugins')
source=("git+https://github.com/salpalvv/vim-gluon.git")
md5sums=('SKIP')

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

package() {
  cd "${srcdir}/${pkgname%-git}"
  _installpath="${pkgdir}/usr/share/vim/vimfiles"
  install -D -m644 ftdetect/gluon.vim "${_installpath}"/ftdetect/gluon.vim
  install -D -m644 indent/gluon.vim "${_installpath}"/indent/gluon.vim
  install -D -m644 syntax/gluon.vim "${_installpath}"/syntax/gluon.vim
  install -D -m644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}