summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e66374204e6fcdc46496be17d23b7f733787b43 (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
# Maintainer: AdriĆ  Arrufat <swiftscythe at gmail dot com>
# Contributor: Jan-Jaap Korpershoek <jjkorpershoek96 at gmail dot com>

_ref=''
pkgname=kakoune-lsp-git
pkgver=v15.0.1+r39+g3ddff4e
pkgrel=1
pkgdesc='Kakoune Language Server Protocol Client'
arch=('x86_64')
url="https://github.com/kakoune-lsp/kakoune-lsp"
license=('custom:unlicense')
depends=('kakoune')
makedepends=('git' 'rust')
optdepends=() # Language servers
provides=("kak-lsp" "kakoune-lsp" "kak-lsp-git")
conflicts=("kak-lsp" "kakoune-lsp" "kak-lsp-git")
install="kakoune-lsp-git.install"
source=("${pkgname}::git+https://github.com/kakoune-lsp/kakoune-lsp${_ref}")
md5sums=('SKIP')

pkgver() {
	cd "${srcdir}/${pkgname}"
	git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}

build() {
	cd "${srcdir}/${pkgname}"
	make build
}

package() {
	cd "${srcdir}/${pkgname}"
	make install DESTDIR=${pkgdir}
}