updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / ruby-multi_json / PKGBUILD
blob684a48a85393c00f95e846b9d1eeaeef8501cdba
1 # Maintainer: Alexsandr Pavlov <kidoz at mail dot ru>
2 pkgname=ruby-multi_json
3 _gemname=${pkgname#ruby-}
4 pkgver=1.0.3
5 pkgrel=1
6 pkgdesc="A generic swappable back-end for JSON handling."
7 arch=('any')
8 url="http://github.com/intridea/multi_json"
9 license=('MIT')
10 depends=('ruby' 'rubygems')
11 source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
12 noextract=(${_gemname}-${pkgver}.gem)
13 md5sums=('59cbca421061ecaf85c99b667f2d0623')
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