mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 16:46:46 +02:00
27 lines
876 B
Text
27 lines
876 B
Text
# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
pkgname=tree-sitter-nix
|
|
pkgver=0.0.2
|
|
pkgrel=0
|
|
pkgdesc="Nix grammar for tree-sitter"
|
|
url="https://github.com/nix-community/tree-sitter-nix"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="tree-sitter-dev"
|
|
subpackages="$pkgname-doc"
|
|
install_if="tree-sitter-grammars"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/nix-community/tree-sitter-nix/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="!check" # no tests for shared lib
|
|
|
|
build() {
|
|
abuild-tree-sitter build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" abuild-tree-sitter install
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
494f00fbfc78824b8ee6153f42403714cc14fe6d4b7cc88b0c87a4986b8bc9f13061ad832cc2fff5993565e9bb2758654686456649a4e3f461849e08a090a340 tree-sitter-nix-0.0.2.tar.gz
|
|
"
|