public
Last active

Updated PKGBUILD for reia-git

  • Download Gist
reia-git-pkgbuild.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
# Contributor: Friedrich Weber <fred@reichbier.de>
# Contributor: Michael Fellinger <m.fellinger@gmail.com>
pkgname=reia-git
pkgver=20101216
pkgrel=2
pkgdesc="A Ruby/Python-like scripting language for the Erlang virtual machine (BEAM)"
arch=('any')
url="http://reia-lang.org/"
license=('MIT')
depends=('erlang')
makedepends=('rake')
install=
source=()
noextract=()
md5sums=()
 
_gitroot="git://github.com/tarcieri/reia.git"
_gitname="reia"
 
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
fi
 
msg "GIT checkout done or server timeout"
msg "Starting make..."
 
rm -rf "$srcdir/$_gitname-build"
cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
 
# BUILD
 
erl_lib_dir=$pkgdir$(erl -noshell -eval "io:format(code:lib_dir())" -s erlang halt)
mkdir -p $erl_lib_dir $pkgdir/usr/bin $pkgdir/usr/lib/erlang/lib $pkgdir/usr/share/licenses/reia-git
install -Dm644 LICENSE $pkgdir/usr/share/licenses/reia-git/LICENSE
 
ERL_LIB_DIR=$erl_lib_dir REIA_BIN_DIR=$pkgdir/usr/bin rake install || exit 1
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.