summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authora-wing2018-12-11 10:04:51 +0800
committera-wing2018-12-11 10:04:51 +0800
commitfcc4f1b09f8a7cc050467c4d69d874da3f36047f (patch)
tree1f3c309be23402332f755597f4b4a3b0fc34abcc
downloadaur-fcc4f1b09f8a7cc050467c4d69d874da3f36047f.tar.gz
Init ruby-actioncable
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD23
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..079b2668d0a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = ruby-actioncable
+ pkgdesc = WebSocket framework for Rails.
+ pkgver = 5.2.2
+ pkgrel = 1
+ url = http://rubyonrails.org
+ arch = any
+ license = MIT
+ depends = ruby
+ depends = ruby-actionpack
+ depends = ruby-nio4r
+ depends = ruby-websocket-driver
+ noextract = actioncable-5.2.2.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/actioncable-5.2.2.gem
+ sha1sums = d10aa1a5c5201a23236fbd6c4de0baf116141ae9
+
+pkgname = ruby-actioncable
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..17872a7fc51
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: a-wing <1@233.email>
+
+_gemname=actioncable
+pkgname=ruby-$_gemname
+pkgver=5.2.2
+pkgrel=1
+pkgdesc='WebSocket framework for Rails.'
+arch=(any)
+url='http://rubyonrails.org'
+license=(MIT)
+depends=(ruby ruby-actionpack ruby-nio4r ruby-websocket-driver)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('d10aa1a5c5201a23236fbd6c4de0baf116141ae9')
+
+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"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/MIT-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/MIT-LICENSE"
+}