From 5d97a66976ddd36f8fc14bb8f60d9277c1e3f686 Mon Sep 17 00:00:00 2001
From: Matthias Ahouansou <matthias@ahouansou.cz>
Date: Sat, 15 Mar 2025 16:53:22 +0000
Subject: [PATCH] testing/typos-lsp: new aport

---
 testing/typos-lsp/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 testing/typos-lsp/APKBUILD

diff --git a/testing/typos-lsp/APKBUILD b/testing/typos-lsp/APKBUILD
new file mode 100644
index 000000000000..b63c2f07746c
--- /dev/null
+++ b/testing/typos-lsp/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
+maintainer="Matthias Ahouansou <matthias@ahouansou.cz>"
+pkgname=typos-lsp
+pkgver=0.1.35
+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="
+95127cd1dda06abfa989566682f50d8c916fe5bcdd29bcf83a14d7294913d5dce2a7382a00aa040fdebb9499b36654a78b91100352d40413f96fdc141cca0baf  typos-lsp-0.1.35.tar.gz
+"
-- 
GitLab