updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / ruby-thor / PKGBUILD
blob2b4bcdb72b5e90f18c7f9a6b2384414191883b8c
1 # Contributor: Gigamo <gigamo@gmail.com>
2 # Maintainer: Alexsandr Pavlov <kidoz at mail dot ru>
3 pkgname=ruby-thor
4 _gemname=${pkgname#ruby-}
5 pkgver=0.14.6
6 pkgrel=2
7 pkgdesc="A scripting framework that replaces rake, sake and rubigen."
8 arch=('any')
9 url="http://github.com/wycats/thor"
10 license=('MIT')
11 depends=('ruby' 'rubygems')
12 source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
13 noextract=(${_gemname}-${pkgver}.gem)
14 md5sums=('d52dcc3cc08a2e6443bba665c2123a59')
16 build() {
17   cd "${srcdir}"
18   export HOME=/tmp
19   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
20   gem install --ignore-dependencies -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem