updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / vim-syntastic-git / PKGBUILD
blobc3334b42e0009f984b535458b51f65611c9f5a4b
1 # Contributor: Andreas B. Wagner <AndreasBWagner@pointfree.net> awagner on irc.freenode.net
2 pkgname=vim-syntastic-git
3 pkgver=20111223
4 pkgrel=2
5 pkgdesc="Syntax checking hacks for vim"
6 arch=('any')
7 url="https://github.com/scrooloose/syntastic"
8 license=('WTFPLv2')
9 groups=('vim-plugins')
10 depends=('vim-runtime')
11 makedepends=('git' 'rake')
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=vimdoc.install
18 source=()
19 noextract=()
20 md5sums=() #generate with 'makepkg -g'
22 _gitroot="git://github.com/scrooloose/syntastic.git"
23 _gitname="syntastic"
25 build() {
26         cd "$srcdir"
27         msg "Connecting to GIT server...."
29         if [ -d $_gitname ] ; then
30                 cd $_gitname && git pull origin
31                 msg "The local files are updated."
32         else
33                 git clone $_gitroot $_gitname
34         fi
36         msg "GIT checkout done or server timeout"
37         msg "Starting make..."
39         rm -rf "$srcdir/$_gitname-build"
40         git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41         cd "$srcdir/$_gitname-build"
43         mkdir -p $pkgdir/usr/share/vim/vimfiles/{plugin,doc,autoload/syntastic/,syntax_checkers}
45 package() {
46         cd "$srcdir/$_gitname-build"
47         cp plugin/syntastic.vim $pkgdir/usr/share/vim/vimfiles/plugin/
48         cp doc/syntastic.txt $pkgdir/usr/share/vim/vimfiles/doc/
49         cp autoload/syntastic/c.vim $pkgdir/usr/share/vim/vimfiles/autoload/syntastic/
50         cp -r syntax_checkers/* $pkgdir/usr/share/vim/vimfiles/syntax_checkers/