summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a8b8ecc321aff6e399d024b5514ef90d7e8d3c05 (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
34
35
36
37
38
39
# Maintainer: Max Gautier <mg+archlinux@max.gautier.name>

pkgname=vim-jinja-syntax-git
pkgver=master
pkgrel=1
pkgdesc="Vim syntax, file detection, and indentation plugin for Jinja templates"
arch=('any')
url="https://github.com/Glench/Vim-Jinja2-Syntax"
license=('BSD')
depends=('vim')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
groups=('vim-plugins')
source=("$pkgname::git+$url")
sha512sums=('SKIP')


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

package() {

    cd "$pkgname"
    install -dm 644 "license" "$pkgdir/usr/share/licenses/${pkgname}/license"

    # install vimfiles

    local vimfiles="$pkgdir/usr/share/vim/vimfiles"
    mkdir -p "$vimfiles"
    cp -dr --no-preserve=ownership \
                        ftdetect \
                        ftplugin \
                        indent \
                        syntax \
                        "$vimfiles"
}