From adde27dbe949ea771aa2a8fac08a8a2a6d1bc5e4 Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Tue, 3 Feb 2026 15:49:40 +0000 Subject: [PATCH] enhance(main/tree-sitter-vimdoc): use `termux-tree-sitter` build helper --- packages/tree-sitter-vimdoc/build.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/tree-sitter-vimdoc/build.sh b/packages/tree-sitter-vimdoc/build.sh index 48fefbcc88..78b9d21cec 100644 --- a/packages/tree-sitter-vimdoc/build.sh +++ b/packages/tree-sitter-vimdoc/build.sh @@ -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 }