jsoncpp: Update from 1.8.3 to 1.8.4
[termux-packages] / packages / nodejs-current / build.sh
CommitLineData
a61e7e45
FF
1TERMUX_PKG_HOMEPAGE=https://nodejs.org/
2TERMUX_PKG_DESCRIPTION="Platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications"
9c5f22ad
FF
3TERMUX_PKG_VERSION=9.11.1
4TERMUX_PKG_SHA256=23dc3d133924f5c7453c479d5eceb3b6af932415cb67d99798c313573d9b9d4c
736247f5 5TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
a61e7e45
FF
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.
9TERMUX_PKG_DEPENDS="openssl, c-ares"
10TERMUX_PKG_RM_AFTER_INSTALL="lib/node_modules/npm/html lib/node_modules/npm/make.bat share/systemtap lib/dtrace"
11TERMUX_PKG_BUILD_IN_SRC=yes
53a2231f 12TERMUX_PKG_CONFLICTS="nodejs"
a61e7e45
FF
13
14termux_step_configure () {
a61e7e45
FF
15 if [ $TERMUX_ARCH = "arm" ]; then
16 DEST_CPU="arm"
17 elif [ $TERMUX_ARCH = "i686" ]; then
18 DEST_CPU="ia32"
19 elif [ $TERMUX_ARCH = "aarch64" ]; then
20 DEST_CPU="arm64"
21 elif [ $TERMUX_ARCH = "x86_64" ]; then
22 DEST_CPU="x64"
23 else
6a3364bf 24 termux_error_exit "Unsupported arch '$TERMUX_ARCH'"
a61e7e45
FF
25 fi
26
53a2231f
FF
27 export GYP_DEFINES="host_os=linux"
28
a61e7e45
FF
29 # See note above TERMUX_PKG_DEPENDS why we do not use a shared libuv.
30 ./configure \
31 --prefix=$TERMUX_PREFIX \
32 --dest-cpu=$DEST_CPU \
33 --dest-os=android \
34 --shared-cares \
35 --shared-openssl \
36 --shared-zlib \
37 --without-inspector \
38 --without-intl \
f316e99d 39 --without-snapshot \
53a2231f 40 --cross-compiling
a61e7e45 41}