updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / rubinius-git / PKGBUILD
blobc4ca12452221a06ac994e6c0e1f6d2949aa72f12
1 # Contributor: Selman ULUG <selman.ulug@gmail.com>
3 pkgname='rubinius-git'
4 pkgver=20100621
5 pkgrel=1
6 pkgdesc="Rubinius, the Ruby VM"
7 arch=('i686' 'x86_64')
8 license=('BSD')
9 url="http://github.com/evanphx/rubinius"
10 source=()
11 md5sums=()
12 depends=(openssl readline zlib)
13 makedepends=(git bison ruby)
15 _gitroot="git://github.com/evanphx/rubinius.git"
16 _gitname="master"
18 build(){
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   ./configure --skip-system --prefix=/usr/lib --bindir=/usr/bin --mandir=/usr/share/man --includedir=/usr/include/rubinius
37   FAKEROOT="$pkgdir/" rake install