From 5a9b90d5a8f33a7b1ce9a087debc21c826cc90bb Mon Sep 17 00:00:00 2001
From: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
Date: Fri, 16 Jun 2023 21:08:55 +0000
Subject: [PATCH] testing/tree-sitter-hare: add new package

This package is necessary to add syntax highlighting to helix
---
 testing/tree-sitter-hare/APKBUILD | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 testing/tree-sitter-hare/APKBUILD

diff --git a/testing/tree-sitter-hare/APKBUILD b/testing/tree-sitter-hare/APKBUILD
new file mode 100644
index 000000000000..990a8eb6f52e
--- /dev/null
+++ b/testing/tree-sitter-hare/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
+pkgname=tree-sitter-hare
+pkgver=0_git20230616
+_commit="7d9080c73eacb7b22900a71320058025615d57fa"
+pkgrel=0
+pkgdesc="Hare grammar for tree-sitter"
+url="https://git.sr.ht/~ghishadow/tree-sitter-hare"
+arch="all"
+license="GPL-3.0"
+makedepends="tree-sitter-dev"
+install_if="tree-sitter-grammars"
+source="
+	$pkgname-$_commit.tar.gz::https://git.sr.ht/~ghishadow/tree-sitter-hare/archive/$_commit.tar.gz
+	"
+options="!check"  # no tests for shared lib
+builddir="$srcdir/$pkgname-$_commit"
+
+build() {
+	abuild-tree-sitter build
+}
+
+package() {
+	DESTDIR="$pkgdir" abuild-tree-sitter install
+}
+
+sha512sums="
+3e817ae02b39f67a32c2564db5961017736133a0afc747fe86c73c7910c881e57cc6ad3b9e473628e301759e60e20b45a8ad3df30147df93d094f49885befe5f  tree-sitter-hare-7d9080c73eacb7b22900a71320058025615d57fa.tar.gz
+"
-- 
GitLab