1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 20:40:32 +01:00

Add 'ruby-http_parser.rb/' from commit '4a6b5f5b15e45e51aa93919e3b17412b8b8f78db'

git-subtree-dir: ruby-http_parser.rb
git-subtree-mainline: fd543438aa
git-subtree-split: 4a6b5f5b15
This commit is contained in:
2021-06-22 18:03:27 +02:00
3 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# Maintainer: Mario Finelli <mario dot finelli at yahoo dot com>
_gemname=http_parser.rb
pkgname=ruby-$_gemname
pkgver=0.6.0
pkgrel=2
pkgdesc="Ruby bindings to https://github.com/ry/http-parser and https://github.com/a2800276/http-parser.java"
arch=(i686 x86_64)
url='http://github.com/tmm1/http_parser.rb'
license=(MIT)
depends=(ruby ruby-benchmark_suite ruby-ffi ruby-json ruby-rake-compiler ruby-rspec ruby-yajl-ruby)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha256sums=('f11d0aec50ef26a7d1f991e627ac88acdb5979282aeba7a5c3be6ce0636ed196')
package() {
cd "$srcdir"
local _gemdir="$(ruby -e'puts Gem.default_dir')"
gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
}