updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / vim-bufstat-git / PKGBUILD
blob7ea8503b4d08a944337fe93d3725a59fa9f40a56
1 # Maintainer: mjheagle <mjheagle8@gmail.com>
2 pkgname=vim-bufstat-git
3 pkgver=08202011
4 pkgrel=1
5 pkgdesc="buffer listing in status bar for vim"
6 url="https://github.com/rson/vim-bufstat/"
7 arch=('any')
8 license=('Custom')
9 depends=()
10 makedepends=('git')
12 _giturl="git://github.com/rson/vim-bufstat.git"
13 _gitname="vim-bufstat"
15 build() {
16     cd "${srcdir}"
17     msg "Connecting to GIT server..."
18     if [ -d ${_gitname} ]; then
19         cd ${_gitname}
20         #git pull origin
21     else
22         git clone ${_giturl} ${_gitname} --depth=1 
23     fi
24     msg "GIT checkout done or server timeout"
27 package() {
28     cd "${srcdir}/${_gitname}/plugin"
29     mkdir -p "${pkgdir}/usr/share/vim/vimfiles/plugin"
30     cp -R ./ "${pkgdir}/usr/share/vim/vimfiles/plugin"
31     cp -R ../doc "${pkgdir}/usr/share/vim/vimfiles/plugin"
32     cd "${pkgdir}/usr/share/vim/vimfiles/plugin"