blob: c133cbee14ad124234425257ba643926183be550 (
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
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: KokaKiwi <kokakiwi@kokakiwi.net>
pkgname=elixir-ls
pkgver=0.15.1
pkgrel=1
pkgdesc='A frontend-independent Language Server Protocol for Elixir'
url='https://github.com/elixir-lsp/elixir-ls'
license=('Apache')
arch=('any')
depends=('elixir' 'erlang-nox')
makedepends=('git' 'rebar3')
source=("elixir-ls-$pkgver.tar.gz::https://github.com/elixir-lsp/elixir-ls/archive/v$pkgver.tar.gz")
sha256sums=('d90b3b8506678ae7e63d99c82b61987b58d178358c6b6a794be31d8ac5cb1829')
b2sums=('9a3f45344d79bd34ab0d2a1f88601518f5e8f215ce95a63f149144aa098bde0f1a7488eef63d557bb607cb8f808731c39f7d1b18e3b5147f19641dfbbad6bc8d')
build() {
cd "$pkgname-$pkgver"
export MIX_ENV=prod
export MIX_HOME="$srcdir/mix-cache"
# Fetch hex+rebar for deps.get to work
mix local.hex --force
mix local.rebar --force rebar3 /usr/bin/rebar3
mix deps.get
mix compile
}
package() {
cd "$pkgname-$pkgver"
export MIX_ENV=prod
install -dm0755 "$pkgdir"/usr/lib/$pkgname
mix elixir_ls.release -o "$pkgdir"/usr/lib/$pkgname
install -dm0755 "$pkgdir"/usr/bin
echo -e "#!/bin/sh\nexec /usr/lib/$pkgname/language_server.sh" > "$pkgdir"/usr/bin/elixir-ls
echo -e "#!/bin/sh\nexec /usr/lib/$pkgname/debugger.sh" > "$pkgdir"/usr/bin/elixir-ls-debug
chmod +x "$pkgdir"/usr/bin/*
}
|