updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / vim-fugitive / PKGBUILD
blob2cc9d984935f576178d58a77abc41f512808b7a8
1 # Maintainer: M Rawash <mrawash@gmail.com>
2 # Contributor: János Illés <ijanos@gmail.com>
3 pkgname=vim-fugitive
4 pkgver=20111227
5 pkgrel=1
6 pkgdesc="A git wrapper so awesome, it should be illegal. Latest git version"
7 arch=('any')
8 url="http://www.vim.org/scripts/script.php?script_id=2975"
9 license=('custom:vim')
10 groups=('vim-plugins')
11 depends=('vim' 'git')
12 makedepends=('git')
13 install=vimdoc.install
14 _gitroot='git://github.com/tpope/vim-fugitive.git'
15 _gitname='vim-fugitive'
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   msg "GIT checkout done or server timeout"
29   cd ${srcdir}/vim-fugitive
31   installpath="${pkgdir}/usr/share/vim/vimfiles"
33   install -Dm644 doc/fugitive.txt $installpath/doc/fugitive.txt
34   install -Dm644 plugin/fugitive.vim $installpath/plugin/fugitive.vim
39 # vim:set ts=2 sw=2 et: