Skip to content

Commit c5bff0d

Browse files
Biswa96TomJo2000
authored andcommitted
bump(main/tree-sitter-lua): 0.4.0
1 parent 1c53af0 commit c5bff0d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/tree-sitter-lua/build.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@ TERMUX_PKG_HOMEPAGE=https://github.com/tree-sitter-grammars/tree-sitter-lua
22
TERMUX_PKG_DESCRIPTION="Lua grammar for tree-sitter"
33
TERMUX_PKG_LICENSE="MIT"
44
TERMUX_PKG_MAINTAINER="Joshua Kahn @TomJo2000"
5-
TERMUX_PKG_VERSION="0.3.0"
6-
TERMUX_PKG_REVISION=1
5+
TERMUX_PKG_VERSION="0.4.0"
76
TERMUX_PKG_SRCURL=https://github.com/tree-sitter-grammars/tree-sitter-lua/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
8-
TERMUX_PKG_SHA256=a34cc70abfd8d2d4b0fabf01403ea05f848e1a4bc37d8a4bfea7164657b35d31
7+
TERMUX_PKG_SHA256=b0977aced4a63bb75f26725787e047b8f5f4a092712c840ea7070765d4049559
98
TERMUX_PKG_AUTO_UPDATE=true
109
TERMUX_PKG_UPDATE_TAG_TYPE='newest-tag'
1110
TERMUX_PKG_BUILD_IN_SRC=true
1211

12+
termux_step_pre_configure() {
13+
if [[ "${TERMUX_ON_DEVICE_BUILD}" != "true" ]]; then
14+
export PATH="$TERMUX_PREFIX"/opt/tree-sitter/cross/bin:$PATH
15+
fi
16+
}
17+
1318
termux_step_post_make_install() {
1419
install -d "${TERMUX_PREFIX}"/lib/tree_sitter
1520
ln -sf "${TERMUX_PREFIX}"/lib/libtree-sitter-lua.so "${TERMUX_PREFIX}"/lib/tree_sitter/lua.so

0 commit comments

Comments
 (0)