blob: 13e14537a7f1695b9e27d4ea2cfd9d320698efb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: mnussbaum <michaelnussbaum08@gmail.com>
pkgname=ruby-lsp
_gemname=${pkgname}
pkgver=0.20.0
pkgrel=1
pkgdesc="An opinionated language server for Ruby"
arch=("any")
depends=(
ruby
ruby-language_server-protocol
ruby-prism
ruby-rbs
)
makedepends=(rubygems)
url="http://solargraph.org/"
noextract=($_gemname-$pkgver.gem)
license=("MIT")
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
sha256sums=('b4cf573b333f007d4e4f90b3c7c7652183f2c6673349e5b4e7f70d7c15f92f0e')
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"
}
|