summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a460f2993319a0da3f01e296f506fe9a40981a7d (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
# Maintainer: Grafcube <grafcube at disroot dot org>

pkgname=ra-multiplex-git
pkgver=v0.2.2.r55.g1db8eb0
pkgrel=1
pkgdesc="Share one rust-analyzer server instance between multiple LSP clients to save resources"
arch=('any')
url="https://github.com/pr2502/ra-multiplex"
license=('MIT')
makedepends=('rustup')
provides=('ra-multiplex')
source=("${pkgname}::git+${url}.git")
depends=('rust-analyzer')
sha256sums=('SKIP')

pkgver() {
	cd "${pkgname}"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd ${pkgname}
	cargo build --release
}

package() {
	cd "${pkgname}"
	install -D -m755 "target/release/ra-multiplex" "${pkgdir}/usr/local/bin/ra-multiplex"
	install -D -m644 ra-mux.service "${pkgdir}/usr/lib/systemd/user/ra-mux.service"
}