diff --git a/common/shlibs b/common/shlibs index f3501f37da..d86b7eddef 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3920,3 +3920,4 @@ libsixel.so.1 libsixel-1.8.6_1 libpamtest.so.0 pam_wrapper-1.1.3_1 libopenaptx.so.0 libopenaptx-0.2.0_1 libsword-1.8.1.so libsword-1.8.1_6 +libtree-sitter.so.0 tree-sitter-0.18.2_1 diff --git a/srcpkgs/tree-sitter-devel b/srcpkgs/tree-sitter-devel new file mode 120000 index 0000000000..80b8bba47c --- /dev/null +++ b/srcpkgs/tree-sitter-devel @@ -0,0 +1 @@ +tree-sitter \ No newline at end of file diff --git a/srcpkgs/tree-sitter/template b/srcpkgs/tree-sitter/template new file mode 100644 index 0000000000..3a60fb91c2 --- /dev/null +++ b/srcpkgs/tree-sitter/template @@ -0,0 +1,26 @@ +# Template file for 'tree-sitter' +pkgname=tree-sitter +version=0.18.2 +revision=1 +build_style=gnu-makefile +short_desc="Parser generator tool and incremental parsing library" +maintainer="Érico Nogueira " +license="MIT" +homepage="https://tree-sitter.github.io" +distfiles="https://github.com/tree-sitter/${pkgname}/archive/v${version}.tar.gz" +checksum=feedb3e77f7869baf3b242c586aa5be4277a049c6e0bc366ee5c6aeb4ba3da39 + +post_install() { + vlicense LICENSE +} + +tree-sitter-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +}