aports/testing/typos-lsp/APKBUILD
2025-06-03 14:19:47 +00:00

36 lines
976 B
Text

# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
maintainer="Matthias Ahouansou <matthias@ahouansou.cz>"
pkgname=typos-lsp
pkgver=0.1.38
pkgrel=0
pkgdesc="Source code spell checker for Visual Studio Code and LSP clients"
url="https://github.com/tekumara/typos-lsp"
arch="all"
license="MIT"
makedepends="cargo-auditable"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/tekumara/typos-lsp/archive/refs/tags/v$pkgver.tar.gz"
options="net" # cargo packages
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
check() {
cargo test --frozen
}
build() {
cargo auditable build --release --frozen
}
package() {
install -Dm755 target/release/typos-lsp -t "$pkgdir"/usr/bin
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
sha512sums="
2e1f4cbf883a8c20ae462c3cf32c86bd33f1c2119751be692a18f8d4b67f0565a35a98667d990c3e622c59312584b716ce8beed883e84bca4a842211d95416bf typos-lsp-0.1.38.tar.gz
"