Created
March 28, 2012 17:36
-
-
Save whitelynx/2228512 to your computer and use it in GitHub Desktop.
ArchLinux PKGBUILD for jimenezrick/vimerl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Pawel 'kTT' Salata <[email protected]> | |
# Contributor: David H. Bronke <[email protected]> | |
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