Created
November 29, 2012 18:37
-
-
Save joschi/4171010 to your computer and use it in GitHub Desktop.
ruby-multi_json 1.3.7-1
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
# 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