updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / vim-neocomplcache-git / PKGBUILD
blob5b9a40ed93341b8f78e9c14afb7c558c72861065
1 # Contributor: JWC <bulk @at jwcxz d0tcom>
2 pkgname=vim-neocomplcache-git
3 pkgver=20100820
4 pkgrel=1
5 pkgdesc="Ultimate auto-completion system for Vim"
6 arch=(any)
7 url="http://github.com/Shougo/neocomplcache"
8 license=('custom')
9 groups=('vim-plugins')
10 depends=('vim')
11 makedepends=('git')
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=()
19 noextract=()
20 md5sums=()
22 _gitroot="http://github.com/Shougo/neocomplcache.git"
23 _gitname="neocomplcache"
25 build() {
26   cd "$srcdir" msg "Connecting to GIT server...."
28   if [ -d $_gitname ] ; then
29     cd $_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot $_gitname
33   fi
35   msg "GIT checkout done or server timeout"
36   msg "Starting make..."
38   rm -rf "$srcdir/$_gitname-build"
39   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40   cd "$srcdir/$_gitname-build"
42   install -d ${pkgdir}/usr/share/vim/vimfiles
43   cp -R --preserve=mode * ${pkgdir}/usr/share/vim/vimfiles
45   # author doesn't provide any license file, though the plugin seems to be
46   # under the MIT license
48