summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b15f17ef26f4f487c4e470e9b6a75aa034a3617 (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
# Maintainer: ml <ml@visu.li>
pkgname=vim-mustache-handlebars-git
pkgver=r145.697fa02
pkgrel=1
pkgdesc="Vim plugin for mustache and handlebars"
arch=('any')
url='https://github.com/mustache/vim-mustache-handlebars'
license=('unknown')
groups=('vim-plugins')
depends=('vim')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

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

package() {
  cd "$pkgname"
  install -Dm644 example.mustache README.md -t "$pkgdir/usr/share/doc/$pkgname"
  install -dm755 "$pkgdir/usr/share/vim/vimfiles"
  cp -rt "$pkgdir/usr/share/vim/vimfiles" indent ftdetect ftplugin syntax
}