summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGeorge Rawlinson2020-09-29 05:37:18 +1300
committerGeorge Rawlinson2020-09-29 05:37:18 +1300
commitf862d401c0b6ca475c1c26e90722a331d97bd4e2 (patch)
tree9d15c4bbf2cc9c28f98856a32d56e4ffeeb3e2df /PKGBUILD
downloadaur-f862d401c0b6ca475c1c26e90722a331d97bd4e2.tar.gz
addpkg: ruby-serverengine 2.2.1-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6042f3c504c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: George Rawlinson <george@rawlinson.net.nz>
+
+_gemname=serverengine
+pkgname=ruby-$_gemname
+pkgver=2.2.1
+pkgrel=1
+pkgdesc='A framework to implement robust multiprocess servers'
+arch=(x86_64)
+url='https://github.com/treasure-data/serverengine'
+license=(Apache)
+depends=(ruby ruby-sigdump)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+b2sums=('0c68bfd59c0f6abbb294ecd8003c80853413b38b05ba1553230a2a49ffbf56dad43428eafbac4e77a012d66fdc30d4445249aed53e6eead11f52f5aeffd91c1e')
+
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+}
+