updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / vim-erlang-git / PKGBUILD
blob3f65428f77619fe21c0a06dfe90aa09951e2e44f
1 # Maintainer: Pawel 'kTT' Salata <rockplayer.pl@gmail.com>
3 pkgname=vim-erlang-git
4 pkgver=20100826
5 pkgrel=1
6 pkgdesc="A set of erlang plugins for VIM"
7 arch=(any)
8 url="http://github.com/oscarh/vimerl"
9 license=('GPL')
10 groups=('vim-plugins')
11 depends=('vim' 'erlang')
12 makedepends=('git')
13 source=()
14 md5sums=()
16 _gitroot="http://github.com/oscarh/vimerl.git"
17 _gitname="vimerl"
19 build() {
20     cd "$srcdir"
21     msg "Connecting to GIT server..."
23     if [ -d $_gitname ] ; then
24         cd $_gitname && git pull origin
25         msg "The local files are updated."
26     else
27         git clone $_gitroot $_gitname
28     fi
30     msg "GIT checkout done or server timeout"
31     msg "Starting make..."
32     rm -rf "$srcdir/$_gitname-build"
33     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34     cd "$srcdir/$_gitname-build"
35     install -d ${pkgdir}/usr/share/vim/vimfiles
36     cp -R --preserve=mode autoload ftplugin indent syntax $pkgdir/usr/share/vim/vimfiles