enhance(main/tree-sitter-vimdoc): use termux-tree-sitter build helper

This commit is contained in:
termux-pacman-bot
2026-02-03 15:49:40 +00:00
parent fea65c1e82
commit adde27dbe9

View File

@@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Tree-sitter parser for Vim help files"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="Joshua Kahn @TomJo2000"
TERMUX_PKG_VERSION="4.1.0"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/neovim/tree-sitter-vimdoc/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=020e8f117f648c8697fca967995c342e92dbd81dab137a115cc7555207fbc84f
TERMUX_PKG_AUTO_UPDATE=true
@@ -14,13 +15,14 @@ TERMUX_PKG_EXTRA_MAKE_ARGS="
PARSER_URL=https://github.com/neovim/tree-sitter-vimdoc
"
termux_step_pre_configure() {
# these need to be removed for this one, hell if I know why
rm setup.py pyproject.toml
termux_step_configure() {
termux_setup_treesitter
}
termux_step_post_make_install() {
install -d "${TERMUX_PREFIX}"/lib/tree_sitter
ln -sf "${TERMUX_PREFIX}"/lib/libtree-sitter-vimdoc.so "${TERMUX_PREFIX}"/lib/tree_sitter/vimdoc.so
termux_step_make() {
termux-tree-sitter build
}
termux_step_make_install() {
termux-tree-sitter install
}