summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b34726bfa7d6f02bb67eeac2bf3eca059ee652dc (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
# Maintainer: Emma Caldeira <kiito@tilde.team>

pkgname='vim-mako-git'
provides=('vim-mako')
pkgver=r28.09d2a93
pkgrel=1
pkgdesc='Vim highlighting for the mako templating language'
arch=('any')
url='https://github.com/sophacles/vim-bundle-mako'
license=('custom:vim')
depends=('vim')
makedepends=('git')
source=('git+https://github.com/sophacles/vim-bundle-mako.git')
md5sums=(SKIP)

pkgver() {
	cd "$srcdir/vim-bundle-mako"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "$srcdir/vim-bundle-mako"
    local installpath="$pkgdir/usr/share/vim/vimfiles"
	install -Dm755 ftdetect/mako.vim "$installpath"/ftdetect/mako.vim
	install -Dm755 ftplugin/mako.vim "$installpath"/ftplugin/mako.vim
	install -Dm755 indent/mako.vim "$installpath"/indent/mako.vim
	install -Dm755 syntax/mako.vim "$installpath"/syntax/mako.vim
}