updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vim-neverland-git / PKGBUILD
blob5860eb966a89daed1c4954a79aceebb410351b79
1 # Maintainer: Magnus Woldrich <trapd00r\@trapd00r.se>
2 pkgname=vim-neverland-git
3 pkgver=20100829
4 pkgrel=1
5 pkgdesc='Dark, simple and colorful colorschemes with 256 colors'
6 arch=(i686 x86_64)
7 url='http://github.com/trapd00r/neverland-vim-theme'
8 license=('GPLv2')
9 depends=(vim)
10 groups=(vim-plugins)
12 _gitroot="git://github.com/trapd00r/neverland-vim-theme.git"
13 _gitname="neverland-vim-theme"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
32   install -d ${pkgdir}/usr/share/vim/vim73/colors/
33   cp *.vim $pkgdir/usr/share/vim/vim73/colors/ || return 1