updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / ruby-actionpack2xx / PKGBUILD
blob1fcc2fdd3d22f26664d9701c685be7d60fb53286
1 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
2 pkgname=ruby-actionpack2xx
3 _gemname=actionpack
4 pkgver=2.3.12
5 pkgrel=1
6 pkgdesc="On rails from request to response."
7 arch=(any)
8 url="http://www.rubyonrails.org/"
9 license=('MIT')
10 depends=('ruby' 'ruby-rack110' 'ruby-activesupport2xx')
11 source=(http://gems.rubyforge.org/gems/${_gemname}-${pkgver}.gem)
12 noextract=(${_gemname}-${pkgver}.gem)
13 md5sums=('b1e21b3391f062712156f79a57dea6fd')
15 build() {
16   cd "$srcdir"
17   # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
18   # makepkg will exit with an error when sourcing the PKGBUILD
19   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
21   gem install --ignore-dependencies -i "$pkgdir$_gemdir" ${_gemname}-${pkgver}.gem