summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli2015-07-06 20:46:41 -0400
committerMario Finelli2015-07-06 20:46:41 -0400
commitc5425a7955f4e0b30833a17093318230f1796b73 (patch)
tree25e7459aed22cd4d86330de3bdef9d8e7c2311b6
downloadaur-c5425a7955f4e0b30833a17093318230f1796b73.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD22
3 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a8c1e5f2d10
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ruby-subexec
+ pkgdesc = Spawns a subprocess with an optional timeout.
+ pkgver = 0.2.3
+ pkgrel = 2
+ url = https://github.com/pressly/subexec
+ arch = any
+ license = MIT
+ makedepends = rubygems
+ depends = ruby
+ noextract = subexec-0.2.3.gem
+ source = https://rubygems.org/downloads/subexec-0.2.3.gem
+ sha256sums = d9b6305cccf8a2b16a69a045454349c863a6ee8d33d9b50f9c98119e5be1dc7d
+
+pkgname = ruby-subexec
+
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..cf8ad943986
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Mario Finelli <mario dot finelli at yahoo dot com>
+
+_gemname=subexec
+pkgname=ruby-$_gemname
+pkgver=0.2.3
+pkgrel=2
+pkgdesc="Spawns a subprocess with an optional timeout."
+arch=(any)
+url="https://github.com/pressly/subexec"
+license=('MIT')
+depends=('ruby')
+makedepends=('rubygems')
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha256sums=('d9b6305cccf8a2b16a69a045454349c863a6ee8d33d9b50f9c98119e5be1dc7d')
+
+package() {
+ cd "$srcdir"
+ 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"
+}