summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormnussbaum2018-05-25 15:50:48 -0700
committermnussbaum2018-05-25 15:50:48 -0700
commit94afef4c11e2186a2981d04ec34eb4988470ab8c (patch)
tree7b81335086d2d63142ec8bf8d325927cf302a47c
downloadaur-94afef4c11e2186a2981d04ec34eb4988470ab8c.tar.gz
Initial commit of ruby-solargraph
-rw-r--r--.SRCINFO34
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD49
3 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6ac78481e7f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+pkgbase = ruby-solargraph
+ pkgdesc = A Ruby language server
+ pkgver = 0.21.1
+ pkgrel = 0
+ url = http://solargraph.org/
+ arch = any
+ license = MIT
+ makedepends = rubygems
+ depends = ruby
+ depends = ruby-ast
+ depends = ruby-coderay
+ depends = ruby-eventmachine
+ depends = ruby-htmlentities
+ depends = ruby-kramdown
+ depends = ruby-nokogiri
+ depends = ruby-mini_portile2
+ depends = ruby-parallel
+ depends = ruby-parser
+ depends = ruby-powerpack
+ depends = ruby-ruby-progressbar
+ depends = ruby-rainbow
+ depends = ruby-reverse_markdown
+ depends = ruby-rubocop
+ depends = ruby-thor
+ depends = ruby-unicode-display_width
+ depends = ruby-tilt
+ depends = ruby-yard
+ noextract = solargraph-0.21.1.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/solargraph-0.21.1.gem
+ sha256sums = 8e2a6bf161bf5b697230b7e8da289755f868a96e75a161886f97c3eae1aa93a3
+
+pkgname = ruby-solargraph
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..05c6d4d4c97
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c74fc51c4a0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: mnussbaum <michaelnussbaum08@gmail.com>
+
+_gemname=solargraph
+pkgname=ruby-solargraph
+pkgver=0.21.1
+pkgrel=0
+pkgdesc="A Ruby language server"
+arch=("any")
+depends=(
+ ruby
+ ruby-ast
+ ruby-coderay
+ ruby-eventmachine
+ ruby-htmlentities
+ ruby-kramdown
+ ruby-nokogiri
+ ruby-mini_portile2
+ ruby-parallel
+ ruby-parser
+ ruby-powerpack
+ ruby-ruby-progressbar
+ ruby-rainbow
+ ruby-reverse_markdown
+ ruby-rubocop
+ ruby-thor
+ ruby-unicode-display_width
+ ruby-tilt
+ ruby-yard
+)
+makedepends=(rubygems)
+url="http://solargraph.org/"
+noextract=($_gemname-$pkgver.gem)
+license=("MIT")
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+sha256sums=("8e2a6bf161bf5b697230b7e8da289755f868a96e75a161886f97c3eae1aa93a3")
+
+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"
+}