summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4691c0744e6dd4b08ae720c46cce8f37ad6b6fcc (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=r24.e74a52a
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://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
}