summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0fc651929ec28530cd3bd6814d45c81f1b68773 (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
# Maintainer: Pochang Chen <johnchen902@gmail.com>

pkgname=vim-html5-git
pkgver=0.27.r176.g916085d
pkgrel=1
pkgdesc="Vim HTML5 omnicomplete and syntax"
arch=('any')
url="https://github.com/othree/html5.vim"
license=('MIT')
depends=('vim')
makedepends=('git')
groups=('vim-plugins')
conflicts=('vim-html5')
provides=('vim-html5')
source=('git+https://github.com/othree/html5.vim.git')
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/html5.vim"
  git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "${srcdir}/html5.vim"
	installpath="${pkgdir}/usr/share/vim/vimfiles"

	mkdir -p ${installpath}
	cp -r after autoload ftplugin indent syntax ${installpath}

	#just in case... make sure it's all 644
	find ${installpath} -type f -exec chmod 644 {} \;
}