# $Id: PKGBUILD 142306 2011-11-08 07:15:40Z angvp $ # Maintainer: # Contributor: Allan McRae # Contributor: John Proctor # Contributor: Jeramy Rutley pkgbase=ruby pkgname=('ruby' 'ruby-docs') pkgver=1.9.3_p0 pkgrel=1 pkgdesc="An object-oriented language for quick and easy programming" arch=('i686' 'x86_64' 'mips64el') url="http://www.ruby-lang.org/en/" license=('BSD' 'custom') makedepends=('openssl' 'tk' 'libffi' 'doxygen' 'graphviz' 'libyaml') [ "$CARCH" = "mips64el" ] && \ makedepends=('openssl' 'tk' 'libffi' 'doxygen' 'libyaml') options=('!emptydirs' '!makeflags') source=(ftp://ftp.ruby-lang.org/pub/${pkgbase}/${pkgver%.*}/${pkgbase}-${pkgver//_/-}.tar.bz2) sha1sums=('f63c116411b981ef54c2caeefb9ccc4d71a5d2cf') build() { cd "${srcdir}/${pkgbase}-${pkgver//_/-}" DOXYGEN=/usr/bin/doxygen PKG_CONFIG=/usr/bin/pkg-config ./configure --prefix=/usr --sysconfdir=/etc \ --enable-shared --enable-pthread --disable-rpath make } package_ruby() { depends=('openssl' 'libffi' 'libyaml') provides=('rubygems' 'rake') conflicts=('rake') optdepends=('tk: for Ruby/TK') cd "${srcdir}/${pkgbase}-${pkgver//_/-}" make DESTDIR="${pkgdir}" install-nodoc install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -D -m644 BSDL "${pkgdir}/usr/share/licenses/${pkgname}/BSDL" } package_ruby-docs() { pkgdesc="Documentation files for ruby" cd "${srcdir}/${pkgbase}-${pkgver//_/-}" make DESTDIR="${pkgdir}" install-doc install-capi install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -D -m644 BSDL "${pkgdir}/usr/share/licenses/${pkgname}/BSDL" } md5sums=('096758c3e853b839dc980b183227b182') md5sums=('65401fb3194cdccd6c1175ab29b8fdb8') sha1sums=('f63c116411b981ef54c2caeefb9ccc4d71a5d2cf')