1 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
2 pkgname=ruby-activerecord2xx
6 pkgdesc="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM."
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=('3c1914e3090c3bc4103876ff69f7d02f')
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