nodejs-current: Update from 8.8.1 to 9.0.0
[termux-packages] / packages / nodejs / build.sh
CommitLineData
f4af89ed 1TERMUX_PKG_HOMEPAGE=https://nodejs.org/
59f0d218 2TERMUX_PKG_DESCRIPTION="Platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications"
f60f29e5
FF
3TERMUX_PKG_VERSION=6.11.5
4TERMUX_PKG_SHA256=1c6de415216799fbaeca82304b3fef87accc7101ebf2ead7d5c545e0779e8aaf
5TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
a27c409f
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"
59f0d218
FF
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
9179399d 12TERMUX_PKG_CONFLICTS="nodejs-current"
59f0d218
FF
13
14termux_step_configure () {
15 if [ $TERMUX_ARCH = "arm" ]; then
1224589f 16 DEST_CPU="arm"
59f0d218 17 elif [ $TERMUX_ARCH = "i686" ]; then
1224589f 18 DEST_CPU="ia32"
d59a97b3 19 elif [ $TERMUX_ARCH = "aarch64" ]; then
1224589f 20 DEST_CPU="arm64"
d59a97b3 21 elif [ $TERMUX_ARCH = "x86_64" ]; then
1224589f 22 DEST_CPU="x64"
59f0d218 23 else
6a3364bf 24 termux_error_exit "Unsupported arch '$TERMUX_ARCH'"
59f0d218 25 fi
9ba78439 26
7e49911a 27 # See note above TERMUX_PKG_DEPENDS why we do not use a shared libuv.
1224589f
FF
28 ./configure \
29 --prefix=$TERMUX_PREFIX \
30 --dest-cpu=$DEST_CPU \
31 --dest-os=android \
7e49911a
FF
32 --shared-cares \
33 --shared-openssl \
34 --shared-zlib \
658f8ce9 35 --without-inspector \
7e49911a
FF
36 --without-intl \
37 --without-snapshot
d53dc644 38}