summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dbbf68287d8de6c48f5d992327082e189479251b (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: Andreas B. Wagner <AndreasBWagner@pointfree.net> awagner on irc.freenode.net
pkgname=vim-syntastic-git
pkgver=3.6.0_94_gb8682c3
pkgrel=1
pkgdesc="Syntax checking hacks for vim"
arch=('any')
url="https://github.com/scrooloose/syntastic"
license=('WTFPLv2')
groups=('vim-plugins')
depends=('vim-runtime')
makedepends=('git' 'rake')
provides=('vim-syntastic')
conflicts=('vim-syntastic')
install=vimdoc.install
source=("git+https://github.com/scrooloose/syntastic.git")
sha1sums=('SKIP')

pkgver() {
  cd syntastic
  echo $(git describe --tags | sed 's#-#_#g;s#v##')
}

package() {
  mkdir -p $pkgdir/usr/share/vim/vimfiles/{plugin,doc,autoload/syntastic/,syntax_checkers}
  cd "$srcdir/syntastic"
  cp -r plugin/* $pkgdir/usr/share/vim/vimfiles/plugin/
  cp doc/syntastic.txt $pkgdir/usr/share/vim/vimfiles/doc/
  cp autoload/syntastic/* $pkgdir/usr/share/vim/vimfiles/autoload/syntastic/
  cp -r syntax_checkers/* $pkgdir/usr/share/vim/vimfiles/syntax_checkers/
}

# vim:set ts=2 sw=2 et: