public
Created

ruby-httparty 0.9.0-1

  • 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 24
# Generated by gem2arch
_gemname=httparty
pkgname=ruby-$_gemname
pkgver=0.9.0
pkgrel=1
pkgdesc="Makes http fun! Also, makes consuming restful web services dead easy."
arch=('any')
url="http://httparty.rubyforge.org/"
license=('')
depends=('ruby' 'ruby-multi_json>=1.0' 'ruby-multi_xml>=0')
makedepends=('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=('290c67948f98dd161baf4968bb38daee')

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.