public
Created

ruby-erubis

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
pkgname=ruby-erubis
_gemname=${pkgname#ruby-}
pkgver=2.7.0
pkgrel=3
pkgdesc="Is an implementation of eRuby."
arch=('any')
url="http://www.kuwata-lab.com/erubis"
license=('MIT')
depends=('ruby' 'rubygems')
source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
noextract=(${_gemname}-${pkgver}.gem)
md5sums=('cca3cf13ef951d1fc8c124d2fde52565')
build() {
cd "${srcdir}"
export HOME=/tmp
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
if [ ! -d "${pkgdir}/usr/bin" ]; then
mkdir -p "${pkgdir}/usr/bin";
fi
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.