1 # Maintainer: Uli Armbruster <uli dot armbruster at google>
3 pkgname=vim-latexsuite-git
6 pkgdesc="Provides a comprehensive set of tools to view, edit, and compile LaTeX documents within Vim. Also provides macros to speed up the creation of LaTeX documents."
8 url="http://vim-latex.sourceforge.net"
12 optdepends=('python2' 'texlive-bin')
13 groups=('vim-plugins')
14 provides=('vim-latexsuite' 'vim-latexsuite-svn')
15 conflicts=('vim-latexsuite' 'vim-latexsuite-svn')
16 install=$pkgname.install
18 _gitroot=git://vim-latex.git.sourceforge.net/gitroot/vim-latex/vim-latex
23 msg "Connecting to GIT server...."
25 if [ -d ${_gitname} ] ; then
26 cd ${_gitname} && git pull origin
27 msg "The local files are updated."
29 git clone ${_gitroot} ${_gitname}
32 msg "GIT checkout done or server timeout"
35 rm -rf "${srcdir}/${_gitname}-build"
36 git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
37 cd "${srcdir}/${_gitname}-build"
38 find . -type f -name *.py | xargs sed -i 's/\/usr\/bin\/python/\/usr\/bin\/env python2/g'
39 make PREFIX=${pkgdir}/usr VIMDIR=${pkgdir}/usr/share/vim/vimfiles install