1 # Contributor: Andreas B. Wagner <AndreasBWagner@pointfree.net> awagner on irc.freenode.net
2 pkgname=vim-syntastic-git
5 pkgdesc="Syntax checking hacks for vim"
7 url="https://github.com/scrooloose/syntastic"
10 depends=('vim-runtime')
11 makedepends=('git' 'rake')
17 install=vimdoc.install
20 md5sums=() #generate with 'makepkg -g'
22 _gitroot="git://github.com/scrooloose/syntastic.git"
27 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot $_gitname
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}
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/