updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / ruby-rack-ssl / PKGBUILD
blobc73c68147d4ca32f79e032636e24ea3f3d5838a4
1 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
2 pkgname=ruby-rack-ssl
3 _gemname=${pkgname#ruby-}
4 pkgver=1.3.2
5 pkgrel=1
6 pkgdesc="Rack middleware to force SSL/TLS."
7 arch=('any')
8 url="https://github.com/josh/rack-ssl"
9 license=('MIT')
10 depends=('ruby' 'rubygems' 'ruby-rack')
11 source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
12 noextract=(${_gemname}-${pkgver}.gem)
13 md5sums=('45da2233b7580af57fbe9cbecb54e369')
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