1 # Maintainer: Kaiting Chen <kaitocracy@gmail.com>
8 _pkgver="${pkgver/_/-}"
10 pkgdesc='An object-oriented language for quick and easy programming'
13 url='http://www.ruby-lang.org/en/'
14 provides=('ruby=1.8.7')
15 options=('!emptydirs')
17 depends=('gdbm' 'db' 'openssl' 'zlib' 'readline')
18 optdepends=('tk: for Ruby/TK')
20 source=(ftp://ftp.ruby-lang.org/pub/ruby/1.8/$_pkgname-$_pkgver.tar.bz2 fix.patch)
21 md5sums=('3abd9e2a29f756a0d30c7bfca578cdeb' 'f560402603b3dca36d4a6abfcb180cb9')
24 cd "${srcdir}/${_pkgname}-${_pkgver}"
26 --prefix=/opt/ruby1.8 \
30 patch -Np1 < ${srcdir}/fix.patch
35 cd "${srcdir}/${_pkgname}-${_pkgver}"
37 make DESTDIR="$pkgdir" install
39 install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
41 install -dm755 $pkgdir/usr/bin
42 install -dm755 $pkgdir/usr/lib
43 for i in erb irb rdoc ri ruby testrb; do
44 ln -s /opt/ruby1.8/bin/$i $pkgdir/usr/bin/$i-1.8
46 ln -s /opt/ruby1.8/lib/libruby.so.1.8 $pkgdir/usr/lib/libruby.so.1.8