summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli2015-09-20 23:08:09 -0400
committerMario Finelli2015-09-20 23:08:09 -0400
commit4a6b5f5b15e45e51aa93919e3b17412b8b8f78db (patch)
treed93c1de67253e7e9bae9c700b32f2b3422280d06
downloadaur-4a6b5f5b15e45e51aa93919e3b17412b8b8f78db.tar.gz
Initial import
-rw-r--r--.SRCINFO22
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD22
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e5a3b90eed2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = ruby-http_parser.rb
+ pkgdesc = Ruby bindings to https://github.com/ry/http-parser and https://github.com/a2800276/http-parser.java
+ pkgver = 0.6.0
+ pkgrel = 2
+ url = http://github.com/tmm1/http_parser.rb
+ arch = i686
+ arch = x86_64
+ license = MIT
+ depends = ruby
+ depends = ruby-benchmark_suite
+ depends = ruby-ffi
+ depends = ruby-json
+ depends = ruby-rake-compiler
+ depends = ruby-rspec
+ depends = ruby-yajl-ruby
+ noextract = http_parser.rb-0.6.0.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/http_parser.rb-0.6.0.gem
+ sha256sums = f11d0aec50ef26a7d1f991e627ac88acdb5979282aeba7a5c3be6ce0636ed196
+
+pkgname = ruby-http_parser.rb
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f71c635dafd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b10ad9bf14f
--- /dev/null
+++ b/PKGBUILD
@@ -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
+}