updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / ruby-prerelease / PKGBUILD
blob08d2ecf8c9f9b7fc1d00944335630a7d33dd2a0a
1 # Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: John Proctor <jproctor@prium.net>
4 # Contributor: Jeramy Rutley <jrutley@gmail.com>
6 _pkgbasename=ruby
7 pkgver=1.9.2_p0
8 pkgrel=2
9 pkgname=$_pkgbasename-prerelease
10 _pkgbasever=${pkgver/_/-}
11 pkgdesc="An object-oriented language for quick and easy programming; prerelease version"
12 arch=('i686' 'x86_64')
13 license=('custom')
14 url="http://www.ruby-lang.org/en/"
15 makedepends=('tk')
16 depends=('gdbm' 'db' 'openssl' 'zlib' 'readline' 'libffi')
17 provides=('rubygems' 'rake' "ruby=$pkgver" "ruby-docs=$pkgver")
18 conflicts=('rubygems' 'rake' 'ruby' 'ruby-docs')
19 optdepends=('tk: for Ruby/TK')
20 source=("ftp://ftp.ruby-lang.org/pub/$_pkgbasename/$_pkgbasename-$_pkgbasever.tar.bz2")
21 options=('!emptydirs')
23 build() {
24   cd "$srcdir/$_pkgbasename-$_pkgbasever"
25   ./configure --prefix=/usr --enable-shared --enable-pthread
26   make
29 package()
31   cd "$srcdir/$_pkgbasename-$_pkgbasever"
32   make DESTDIR="${pkgdir}" install install-doc
33   install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
36 md5sums=('4e4906d0aab711286b31f5a834860cc3')
37 md5sums=('d8a02cadf57d2571cd4250e248ea7e4b')