1 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
2 pkgname=ruby-activeresource2xx
3 _gemname=activeresource
6 pkgdesc="Wraps web resources in model classes that can be manipulated through XML over REST."
8 url="http://www.rubyonrails.org/"
10 depends=('ruby' 'ruby-activesupport2xx')
11 source=(http://gems.rubyforge.org/gems/${_gemname}-${pkgver}.gem)
12 noextract=(${_gemname}-${pkgver}.gem)
13 md5sums=('2fb92a2469523700b5cc334531cd097b')
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