mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
36 lines
976 B
Text
36 lines
976 B
Text
# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
maintainer="Matthias Ahouansou <matthias@ahouansou.cz>"
|
|
pkgname=typos-lsp
|
|
pkgver=0.1.36
|
|
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="
|
|
232085eba45eb50007f627a6c2f1efbd3eecbb961fef3a3aa965cb735a0b06c957193da4e6b9dc0ee90620bca4f98c4b381e6295bae813af39d1eab58fce72ec typos-lsp-0.1.36.tar.gz
|
|
"
|