@@ -3,13 +3,23 @@ TERMUX_PKG_DESCRIPTION="Build cross-platform desktop apps with JavaScript, HTML,
33TERMUX_PKG_LICENSE=" MIT, BSD 3-Clause"
44TERMUX_PKG_MAINTAINER=
" Chongyun Lee <[email protected] >" 55_CHROMIUM_VERSION=114.0.5735.289
6- TERMUX_PKG_VERSION=25.9.7
6+ TERMUX_PKG_VERSION=25.9.8
77TERMUX_PKG_SRCURL=git+https://github.com/electron/electron
88TERMUX_PKG_DEPENDS=" electron-deps"
99TERMUX_PKG_BUILD_DEPENDS=" libnotify, libffi-static"
1010# Chromium doesn't support i686 on Linux.
1111TERMUX_PKG_BLACKLISTED_ARCHES=" i686"
1212
13+ __tur_setup_depot_tools () {
14+ export DEPOT_TOOLS_UPDATE=0
15+ if [ ! -f " $TERMUX_PKG_CACHEDIR /.depot_tools-fetched" ]; then
16+ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $TERMUX_PKG_CACHEDIR /depot_tools
17+ touch " $TERMUX_PKG_CACHEDIR /.depot_tools-fetched"
18+ fi
19+ export PATH=" $TERMUX_PKG_CACHEDIR /depot_tools:$PATH "
20+ export CHROMIUM_BUILDTOOLS_PATH=" $TERMUX_PKG_SRCDIR /buildtools"
21+ }
22+
1323termux_step_get_source () {
1424 # Check whether we need to get source
1525 if [ -f " $TERMUX_PKG_CACHEDIR /.electron-source-fetched" ]; then
@@ -31,12 +41,7 @@ termux_step_get_source() {
3141 fi
3242
3343 # Fetch depot_tools
34- export DEPOT_TOOLS_UPDATE=0
35- if [ ! -f " $TERMUX_PKG_CACHEDIR /.depot_tools-fetched" ]; then
36- git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $TERMUX_PKG_CACHEDIR /depot_tools
37- touch " $TERMUX_PKG_CACHEDIR /.depot_tools-fetched"
38- fi
39- export PATH=" $TERMUX_PKG_CACHEDIR /depot_tools:$PATH "
44+ __tur_setup_depot_tools
4045
4146 # Install nodejs
4247 termux_setup_nodejs
@@ -66,9 +71,9 @@ termux_step_post_get_source() {
6671
6772termux_step_configure () {
6873 cd $TERMUX_PKG_SRCDIR
69- termux_setup_gn
7074 termux_setup_ninja
7175 termux_setup_nodejs
76+ __tur_setup_depot_tools
7277
7378 # Remove termux's dummy pkg-config
7479 local _target_pkg_config=$( command -v pkg-config)
0 commit comments