summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Rabert2016-12-31 00:35:19 -0500
committerAndrew Rabert2016-12-31 00:35:19 -0500
commit05afc68a3cd9c3262f5ec4af057a75c9231c7b89 (patch)
treed783f328e46a41a03b97ba8a1ad659dce050be3d
downloadaur-05afc68a3cd9c3262f5ec4af057a75c9231c7b89.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD21
2 files changed, 36 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4823e33a622
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ruby-in_threads
+ pkgdesc = Execute ruby code in parallel.
+ pkgver = 1.3.1
+ pkgrel = 1
+ url = https://github.com/toy/in_threads
+ arch = any
+ license = MIT
+ depends = ruby
+ noextract = in_threads-1.3.1.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/in_threads-1.3.1.gem
+ sha512sums = 15bbe29882c3a3b36b3f76db87836e88654cb5e6c34ebc95e5cfe7073eeeb4b8a7bd4cb5f8d673e903c12c05312e787cb518718865d2750df456cb5a2fd59f3f
+
+pkgname = ruby-in_threads
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..504bc932b7b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Andrew Rabert <draje@nullsum.net>
+
+pkgname=ruby-in_threads
+gemname=in_threads
+pkgver=1.3.1
+pkgrel=1
+pkgdesc='Execute ruby code in parallel.'
+arch=('any')
+url='https://github.com/toy/in_threads'
+license=('MIT')
+depends=('ruby')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/${gemname}-${pkgver}.gem")
+noextract=("${gemname}-${pkgver}.gem")
+sha512sums=('15bbe29882c3a3b36b3f76db87836e88654cb5e6c34ebc95e5cfe7073eeeb4b8a7bd4cb5f8d673e903c12c05312e787cb518718865d2750df456cb5a2fd59f3f')
+
+package() {
+ 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
+ rm "${pkgdir}/${_gemdir}/cache/${gemname}-${pkgver}.gem"
+}