Created
August 7, 2012 19:43
-
-
Save guildencrantz/3288742 to your computer and use it in GitHub Desktop.
ruby-erubis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment