mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-10 20:00:51 +00:00
enhance(main/tree-sitter-vimdoc): use termux-tree-sitter build helper
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user