updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / ruby-rails / PKGBUILD
blob61bc80913aac527f1ef812234e3d763cb16ba1d8
1 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
2 pkgname=ruby-rails
3 _gemname=${pkgname#ruby-}
4 pkgver=3.1.3
5 pkgrel=1
6 pkgdesc="Is an open source web application framework for the Ruby programming language."
7 arch=('any')
8 url="http://www.rubyonrails.org"
9 license=('MIT')
10 depends=('ruby' 'rubygems' 'ruby-bundler' 'ruby-railties' 'ruby-actionmailer' 'ruby-actionpack' \
11          'ruby-activerecord' 'ruby-activeresource' 'ruby-activesupport')
12 source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
13 noextract=(${_gemname}-${pkgver}.gem)
14 md5sums=('2ce8bb472ce1f9929d1f14fe020026ed')
16 build() {
17   cd "${srcdir}"
18   export HOME=/tmp
19   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
20   gem install --ignore-dependencies -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem