mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-08 03:43:25 +00:00
23 lines
801 B
Bash
23 lines
801 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/tree-sitter
|
|
TERMUX_PKG_DESCRIPTION="C grammar for tree-sitter"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="0.23.1"
|
|
TERMUX_PKG_SRCURL=https://github.com/tree-sitter/tree-sitter-c/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=8f90f481c28a45c7dcba84d05fc07853df043ff813868cdfa074a3835e89467a
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_UPDATE_TAG_TYPE='newest-tag'
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS="
|
|
PARSER_URL=https://github.com/tree-sitter/tree-sitter-c
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
rm setup.py pyproject.toml
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
install -d "${TERMUX_PREFIX}"/lib/tree_sitter
|
|
ln -sf "${TERMUX_PREFIX}"/lib/libtree-sitter-c.so "${TERMUX_PREFIX}"/lib/tree_sitter/c.so
|
|
}
|