updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / reia-git / PKGBUILD
blobd50f22a629e86b51cf2a63d68f9b6b88385a6e8d
1 # Contributor: Friedrich Weber <fred@reichbier.de>
2 pkgname=reia-git
3 pkgver=20090311
4 pkgrel=1
5 pkgdesc="A Ruby/Python-like scripting language for the Erlang virtual machine (BEAM)"
6 arch=('i686' 'x64')
7 url="http://reia-lang.org/"
8 license=('MIT')
9 depends=('erlang')
10 makedepends=('rake')
11 install=
12 source=()
13 noextract=()
14 md5sums=() #generate with 'makepkg -g'
16 _gitroot="git://github.com/tarcieri/reia.git"
17 _gitname="reia"
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
28   fi
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"
37   #
38   # BUILD HERE
39   #
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
44   rake build || exit 1
45   rake PREFIX="$pkgdir/usr" DESTDIR="$pkgdir/" install || exit 1