updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ruby-rack110 / PKGBUILD
blobe2f1f74c3b8b6c8d2f70b46ce83fb624867edc8f
1 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
2 pkgname=ruby-rack110
3 _gemname=rack
4 pkgver=1.1.0
5 pkgrel=2
6 pkgdesc="A Ruby Webserver Interface"
7 arch=(any)
8 url="http://rack.rubyforge.org"
9 license=('MIT')
10 depends=('ruby' 'rubygems')
11 provides=('ruby-rack')
12 conflicts=('ruby-rack' 'ruby-rack1xx')
13 source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
14 noextract=(${_gemname}-${pkgver}.gem)
15 md5sums=('f5ff2d6d348f41bb3833847223f792ce')
17 build() {
18   cd "${srcdir}"
19   export HOME=/tmp
20   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
21   gem install --ignore-dependencies -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem