Want more features on Pastebin? Sign Up, it's FREE!
Guest

rubinius-git

By: a guest on Jun 18th, 2010  |  syntax: Bash  |  size: 0.96 KB  |  views: 130  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname='rubinius-git'
  2. pkgver=20100618
  3. pkgrel=1
  4. pkgdesc="Rubinius, the Ruby VM"
  5. arch=('i686' 'x86_64')
  6. license=('BSD')
  7. url="http://github.com/evanphx/rubinius"
  8. source=()
  9. md5sums=()
  10. depends=(openssl readline zlib)
  11. makedepends=(git bison ruby1.8 rubygems1.8 ruby1.8-rake)
  12.  
  13. _gitroot="git://github.com/evanphx/rubinius.git"
  14. _gitname="master"
  15.  
  16. build(){
  17.   cd "$srcdir"
  18.   msg "Connecting to GIT server...."
  19.  
  20.   if [ -d $_gitname ] ; then
  21.     cd $_gitname && git pull origin
  22.     msg "The local files are updated."
  23.   else
  24.     git clone $_gitroot $_gitname
  25.   fi
  26.  
  27.   msg "GIT checkout done or server timeout"
  28.   msg "Starting make..."
  29.  
  30.   rm -rf "$srcdir/$_gitname-build"
  31.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  32.   cd "$srcdir/$_gitname-build"
  33.  
  34.   ruby-1.8 configure --skip-system --prefix=/usr/lib --bindir=/usr/bin --mandir=/usr/share/man --includedir=/usr/include/rubinius
  35.   FAKEROOT="$pkgdir/" /opt/ruby1.8/lib/ruby/gems/1.8/bin/rake install
  36. }
clone this paste RAW Paste Data