summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 50be166d7166ed98b2250f9228f824a6d067d7d8 (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 <andreas.wagner@lowfatcomputing.org> pointfree 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=("$pkgname::git+https://github.com/scrooloose/syntastic.git")
sha512sums=('SKIP')

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

package() {
  cd "$srcdir/$pkgname"
  mkdir -p $pkgdir/usr/share/vim/vimfiles/{plugin,doc,autoload/syntastic/,syntax_checkers}
  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: