iglunix/extra/kak-lsp/build.sh

25 lines
519 B
Bash
Raw Normal View History

2021-09-11 08:24:20 +00:00
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
}