Created
June 5, 2010 21:12
-
-
Save gmarik/427008 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: ts=2:sw=2:et:ft=sh:: | |
pkgname=ruby | |
pkgver=1.8.6_p399 | |
_pkgver=1.8.6-p399 | |
pkgrel=1 | |
pkgdesc="Ruby - programmers best friend!" | |
arch=(i686 x86_64) | |
license=('custom') | |
url="http://www.ruby-lang.org/en/" | |
depends=('gdbm>=1.8.3' 'db>=4.7.25' 'openssl>=1.0' 'zlib>=1.2.3.3' 'readline>=5.2.013') | |
makedepends=('tk>=8.5') | |
source=(ftp://ftp.ruby-lang.org/pub/ruby/1.8/${pkgname}-${_pkgver}.tar.bz2 http://gist.github.com/raw/364311/c5cd0c892fac9bccff03feeb4e3c766e224b80a0/ruby-1.8-openssl-1.0.patch) | |
options=('!emptydirs' 'force') | |
md5sums=('f77c307cb72fb8808b0e85af5d05cefc' 'f5e6ba28124bbb42211e5c9145f82e37') | |
build() { | |
cd "${srcdir}/${pkgname}-${_pkgver}" | |
./configure --prefix=/usr --enable-shared --enable-pthread || return 1 | |
# openssl 1.0 support patch | |
patch -Np1 -i ../ruby-1.8-openssl-1.0.patch || return 1 | |
# GCC ver=4.4: remove optimisation to fix date parsing error | |
# sed -i'' -e "/CFLAGS =/s/-mtune=generic -O2 //" Makefile | |
make || return 1 | |
make DESTDIR="${pkgdir}" install || return 1 | |
#generate the ri docs | |
make -j1 DESTDIR="${pkgdir}" install-doc || return 1 | |
install -d "${pkgdir}/usr/share/licenses/${pkgname}" | |
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment