1 TERMUX_PKG_HOMEPAGE
=https
://nodejs.org
/
2 TERMUX_PKG_DESCRIPTION
="Platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications"
3 TERMUX_PKG_VERSION
=9.10.1
4 TERMUX_PKG_SHA256
=c93b7e20021aabbd8c0ee856ac22e93670e0ff5868e07337bae86ac456df2df2
5 TERMUX_PKG_SRCURL
=https
://nodejs.org
/dist
/v
${TERMUX_PKG_VERSION}/node-v
${TERMUX_PKG_VERSION}.
tar.xz
6 # Note that we do not use a shared libuv to avoid an issue with the Android
7 # linker, which does not use symbols of linked shared libraries when resolving
8 # symbols on dlopen(). See https://github.com/termux/termux-packages/issues/462.
9 TERMUX_PKG_DEPENDS
="openssl, c-ares"
10 TERMUX_PKG_RM_AFTER_INSTALL
="lib/node_modules/npm/html lib/node_modules/npm/make.bat share/systemtap lib/dtrace"
11 TERMUX_PKG_BUILD_IN_SRC
=yes
12 TERMUX_PKG_CONFLICTS
="nodejs"
14 termux_step_configure
() {
15 if [ $TERMUX_ARCH = "arm" ]; then
17 elif [ $TERMUX_ARCH = "i686" ]; then
19 elif [ $TERMUX_ARCH = "aarch64" ]; then
21 elif [ $TERMUX_ARCH = "x86_64" ]; then
24 termux_error_exit
"Unsupported arch '$TERMUX_ARCH'"
27 export GYP_DEFINES
="host_os=linux"
29 # See note above TERMUX_PKG_DEPENDS why we do not use a shared libuv.
31 --prefix
=$TERMUX_PREFIX \
32 --dest-cpu
=$DEST_CPU \