Skip to content

Instantly share code, notes, and snippets.

@whitelynx
Created March 28, 2012 17:36
Show Gist options
  • Save whitelynx/2228512 to your computer and use it in GitHub Desktop.
Save whitelynx/2228512 to your computer and use it in GitHub Desktop.
ArchLinux PKGBUILD for jimenezrick/vimerl
# Maintainer: Pawel 'kTT' Salata <rockplayer.pl@gmail.com>
# Contributor: David H. Bronke <whitelynx@gmail.com>
pkgname=vim-erlang-git
pkgver=20120328
pkgrel=1
pkgdesc="The Erlang plugin for Vim"
arch=(any)
url="https://github.com/jimenezrick/vimerl"
license=('GPL')
groups=('vim-plugins')
depends=('vim' 'erlang')
makedepends=('git')
source=()
md5sums=()
_gitroot="http://github.com/jimenezrick/vimerl.git"
_gitname="vimerl"
build() {
cd "$srcdir"
msg "Connecting to GIT server..."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
install -d ${pkgdir}/usr/share/vim/vimfiles
cp -R --preserve=mode autoload compiler ftplugin indent syntax $pkgdir/usr/share/vim/vimfiles
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment