summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ec2ac36ad7b6eeb7537063263fad7d9c80b77cc (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
# Maintainer: LJ <aur.lj at munally.com>

pkgname=hyprls-git
pkgver=0.4.1
pkgrel=1
pkgdesc="A LSP server for Hyprland config files"
arch=('x86_64')
url="https://github.com/hyprland-community/hyprls"
license=('MIT')
optdepends=('hyprland')
makedepends=('go' 'just')
source=("git+$url#tag=v$pkgver" "git+https://github.com/hyprwm/hyprland-wiki.git")
b2sums=('SKIP' 'SKIP')

prepare() {
    cd "$srcdir/hyprls"
    git submodule init
    git config submodule.hyprland-wiki.url "$srcdir/hyprland-wiki"
    git -c protocol.file.allow=always submodule update
}

build() {
    cd "$srcdir/hyprls"
    just build
}

package() {
      install -Dm755 "$srcdir/hyprls/hyprls" "$pkgdir/usr/bin/hyprls"
}