blob: 79b42aca891ec5cb9a8de701e5d5ca35268ac68f (
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: Meow King <mr.ziqiyang@gmail.com>
_pkgname=emacs-lsp-booster
pkgname=emacs-lsp-booster-git
pkgver=r42.b98b873 # NOTE
pkgrel=1 # NOTE
pkgdesc="Emacs LSP performance booster "
arch=("x86_64")
url="https://github.com/blahgeek/emacs-lsp-booster"
license=('MIT')
depends=()
makedepends=('cargo')
conflicts=($_pkgname)
changelog="changelog.txt" # NOTE
source=("git+https://github.com/blahgeek/emacs-lsp-booster")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
cargo build --release --locked
}
package() {
install -Dm755 "$srcdir/$_pkgname/target/release/emacs-lsp-booster" "${pkgdir}/usr/bin/$_pkgname"
}
|