Adding tree-sitter-php
Hi people, I'm just trying to build tree-sitter-php for helix and "created" this APKBUILD:
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-php
pkgver=0.19.0
pkgrel=0
pkgdesc="PHP grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-php"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-php/archive/v$pkgver/tree-sitter-php-$pkgver.tar.gz"
options="!check" # no tests for shared lib
build() {
abuild-tree-sitter build
}
package() {
DESTDIR="$pkgdir" abuild-tree-sitter install
}
sha512sums="
bf82af3a4c0da96f58e93aaee2724f327c11e297bcd455998e0863aa64ab6ae85d1d212afa51b75c8e8ab998568cc71b0309ee3d1d41b632ef0283478ecc5711 tree-sitter-php-0.19.0.tar.gz
"
This gives me a include error for "node.h" which is on "/usr/include/node/node.h", after patching it on the source code it can't find "v8config.h" which is also on "/usr/include/node/" so I suppose that the dir should be properly added but I have no idea about how "abuild-tree-sitter " works.