mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-02 00:50:23 +00:00
22 lines
781 B
Bash
22 lines
781 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/tree-sitter-grammars/tree-sitter-lua
|
|
TERMUX_PKG_DESCRIPTION="Lua grammar for tree-sitter"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="0.1.0"
|
|
TERMUX_PKG_SRCURL=https://github.com/tree-sitter-grammars/tree-sitter-lua/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=230cfcbfa74ed1f7b8149e9a1f34c2efc4c589a71fe0f5dc8560622f8020d722
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS="
|
|
PARSER_URL="${TERMUX_PKG_HOMEPAGE}"
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
rm setup.py pyproject.toml
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
install -d "${TERMUX_PREFIX}"/lib/tree_sitter
|
|
ln -s "${TERMUX_PREFIX}"/lib/libtree-sitter-lua.so "${TERMUX_PREFIX}"/lib/tree_sitter/lua.so
|
|
}
|