# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=tree-sitter-go
pkgver=0.20.0
pkgrel=1
pkgdesc="Go grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-go"
license="MIT"
arch="all"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-go/archive/v$pkgver/tree-sitter-go-$pkgver.tar.gz"
options="!check" # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
ff438a6c84454f38cdefe506f5da787007cb50b3d41bcb9c7f26ed7d951a3268e6bf0b32f2e750d0e4233516c1e4a827c24af831020f81f268fe825adcd5f836  tree-sitter-go-0.20.0.tar.gz
"
