1 # Contributor: Friedrich Weber <fred@reichbier.de>
5 pkgdesc="A Ruby/Python-like scripting language for the Erlang virtual machine (BEAM)"
7 url="http://reia-lang.org/"
14 md5sums=() #generate with 'makepkg -g'
16 _gitroot="git://github.com/tarcieri/reia.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
40 patch -p1 -i ../../install.patch
41 mkdir -p $pkgdir/usr/lib/erlang/lib
42 mkdir -p $pkgdir/usr/share/licenses/reia
43 cp LICENSE /usr/share/licenses/reia
45 rake PREFIX="$pkgdir/usr" DESTDIR="$pkgdir/" install || exit 1