updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / ruby-activemodel / PKGBUILD
blobb694136f7e2f7b18b2dc6ed95b12d854f335b217
1 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
2 pkgname=ruby-activemodel
3 _gemname=${pkgname#ruby-}
4 pkgver=3.2.0
5 pkgrel=1
6 pkgdesc="A toolkit for building modeling frameworks like Active Record and Active Resource."
7 arch=('any')
8 url="http://www.rubyonrails.org"
9 license=('MIT')
10 depends=('ruby' 'rubygems' 'ruby-activesupport' 'ruby-builder')
11 source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
12 noextract=(${_gemname}-${pkgver}.gem)
13 md5sums=('0d53d1b750b8578dc3e9facbfac208e6')
15 build() {
16   cd "${srcdir}"
17   export HOME=/tmp
18   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
19   gem install --ignore-dependencies -i "${pkgdir}${_gemdir}" ${_gemname}-${pkgver}.gem