added package kak-lsp

This commit is contained in:
Ella-0 2021-03-13 22:24:47 +00:00
parent fb8578593e
commit 3d3a575032

24
pkgs/kak-lsp/build.sh Normal file
View file

@ -0,0 +1,24 @@
pkgname=kak-lsp
pkgver=9.0.0
fetch() {
curl -L "https://github.com/kak-lsp/kak-lsp/archive/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
cargo build --release --locked --all-features
}
package() {
cd $pkgname-$pkgver
install -Dm755 target/release/$pkgname $pkgdir/usr/bin/
install -Dm644 rc/lsp.kak $pkgdir/usr/share/kak-lsp/rc/
install -Dm644 kak-lsp.toml $pkgdir/usr/share/kak-lsp/examples/
}
license() {
cd $pkgname-$pkgver
cat UNLICENSE
}