-# Maintainer: Juergen Daubert, jue at crux dot nu
# Description: Ruby interpreter
-# URL: http://www.ruby-lang.org
-# Depends on: db, gdbm, ncurses, openssl, readline, zlib
+# URL: http://www.ruby-lang.org
+# Maintainer: Juergen Daubert, jue at crux dot nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: gdbm ncurses openssl readline zlib libffi libyaml
name=ruby
-version=1.9.3-p194
+version=2.4.2
release=1
-source=(ftp://ftp.ruby-lang.org/pub/$name/1.9/$name-$version.tar.bz2 \
+source=(http://cache.ruby-lang.org/pub/$name/${version%.*}/$name-$version.tar.xz
$name-arch.patch)
build () {
- cd $name-$version
+ cd $name-$version
- patch -p0 -i $SRC/$name-arch.patch
+ patch -p0 -i $SRC/$name-arch.patch
- ./configure --prefix=/usr \
- --mandir=/usr/man \
- --enable-shared \
- --disable-install-doc \
- --with-ruby-version=minor
+ ./configure --prefix=/usr \
+ --mandir=/usr/man \
+ --enable-shared \
+ --disable-install-doc \
+ --with-ruby-version=minor
- make
- make DESTDIR=$PKG install
+ make
+ make DESTDIR=$PKG install
}