summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ffd208cb98cb2fa57accee47bba8a1bf5cacd6c (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
# Maintainer: Yuuki Rika <yvvki@duck.com>

pkgname=vale-ls
pkgver=0.4.0
pkgrel=1
pkgdesc='An implementation of the Language Server Protocol (LSP) for the Vale command-line tool.'
arch=(any)
url='https://github.com/errata-ai/vale-ls'
license=(MIT)
depends=(vale)
makedepends=(cargo)

_pkgsrc=$pkgname-$pkgver
source=("$_pkgsrc.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
b2sums=('6f9e1daa3e3bf22615203dc31cb2e0b646ca0e166ed63dd4626668d2da6448f404a866df115bdf34d392efdcf466e1c5d67c1de986bc6e1b0846263cfff93f79')

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

check() {
  cd $_pkgsrc
  cargo test --release
}

package() {
  cd $_pkgsrc
  install -Dm755 "target/release/vale-ls" -t "$pkgdir/usr/bin/"
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}