Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 11th, 2011  |  syntax: Bash  |  size: 1.14 KB  |  views: 156  |  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. # Maintainer: Kaiting Chen <kaitocracy@gmail.com>
  2. # Contributor: v01d
  3.  
  4. pkgname=ruby1.8
  5. _pkgname='ruby'
  6. pkgver=1.8.7_p330
  7. _pkgver="${pkgver/_/-}"
  8. pkgrel=2
  9. pkgdesc='An object-oriented language for quick and easy programming'
  10. arch=('i686' 'x86_64')
  11. license=('custom')
  12. url='http://www.ruby-lang.org/en/'
  13. provides=('ruby=1.8.7')
  14. options=('!emptydirs')
  15. makedepends=('tk')
  16. depends=('gdbm' 'db' 'openssl' 'zlib' 'readline')
  17. optdepends=('tk: for Ruby/TK')
  18.  
  19. source=(ftp://ftp.ruby-lang.org/pub/ruby/stable/$_pkgname-$_pkgver.tar.bz2)
  20. md5sums=('2689719fb42c8cf0aa336f8c8933f413')
  21.  
  22. build() {
  23.   cd "${srcdir}/${_pkgname}-${_pkgver}"
  24.   ./configure --prefix=/opt/ruby1.8 \
  25.     --disable-rpath \
  26.     --enable-shared --enable-pthread
  27.   make
  28. }
  29.  
  30. package() {
  31.   cd "${srcdir}/${_pkgname}-${_pkgver}"
  32.  
  33.   make DESTDIR="$pkgdir" install
  34.  
  35.   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  36.  
  37.   install -dm755 $pkgdir/usr/bin
  38.   install -dm755 $pkgdir/usr/lib
  39.   for i in erb irb rdoc ri ruby testrb; do
  40.     ln -s /opt/ruby1.8/bin/$i $pkgdir/usr/bin/$i-1.8
  41.   done
  42.   ln -s /opt/ruby1.8/lib/libruby.so.1.8 $pkgdir/usr/lib/libruby.so.1.8
  43. }