secret
Created

PKGBUILD for thor 0.15.2

  • Download Gist
PKGBUiLD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# Maintainer: Alexsandr Pavlov <kidoz at mail dot ru>
# Contributor: Gigamo <gigamo@gmail.com>
# Contributor: Jochen Schalanda <jochen+aur@schalanda.name>
pkgname=ruby-thor
_gemname=${pkgname#ruby-}
pkgver=0.15.2
pkgrel=1
pkgdesc="A scripting framework that replaces rake, sake and rubigen."
arch=('any')
url="http://github.com/wycats/thor"
license=('MIT')
depends=('ruby' 'rubygems')
source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
noextract=(${_gemname}-${pkgver}.gem)
md5sums=('8658debfdeb671881043ee0b86ddd01c')
 
build() {
cd "${srcdir}"
export HOME=/tmp
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
gem install --no-user-install --ignore-dependencies -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.