Skip to content

Instantly share code, notes, and snippets.

@joschi
Created November 29, 2012 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joschi/4171010 to your computer and use it in GitHub Desktop.
Save joschi/4171010 to your computer and use it in GitHub Desktop.
ruby-multi_json 1.3.7-1
# Maintainer: Alexsandr Pavlov <kidoz at mail dot ru>
pkgname=ruby-multi_json
_gemname=${pkgname#ruby-}
pkgver=1.3.7
pkgrel=1
pkgdesc="A generic swappable back-end for JSON handling."
arch=('any')
url="http://github.com/intridea/multi_json"
license=('MIT')
depends=('ruby' 'rubygems')
source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
noextract=(${_gemname}-${pkgver}.gem)
package() {
cd "$srcdir"
# _gemdir is defined inside package() because if ruby[gems] is not installed on
# the system, makepkg will exit with an error when sourcing the PKGBUILD.
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"
}
md5sums=('7883de6c82101402dfbbfb1caf2be518')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment