cmark: Update from 0.28.2 to 0.28.3
[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"
99365d01 3TERMUX_PKG_VERSION=8.9.0
851c6a8f 4TERMUX_PKG_REVISION=1
99365d01 5TERMUX_PKG_SHA256=ae8258f89e127a76d4b4aff6fdb8dc395b7da0069cba054b913dfc36b3c91189
f60f29e5 6TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
a27c409f
FF
7# Note that we do not use a shared libuv to avoid an issue with the Android
8# linker, which does not use symbols of linked shared libraries when resolving
9# symbols on dlopen(). See https://github.com/termux/termux-packages/issues/462.
10TERMUX_PKG_DEPENDS="openssl, c-ares"
59f0d218
FF
11TERMUX_PKG_RM_AFTER_INSTALL="lib/node_modules/npm/html lib/node_modules/npm/make.bat share/systemtap lib/dtrace"
12TERMUX_PKG_BUILD_IN_SRC=yes
13009b5d 13TERMUX_PKG_CONFLICTS="nodejs-current"
59f0d218
FF
14
15termux_step_configure () {
16 if [ $TERMUX_ARCH = "arm" ]; then
1224589f 17 DEST_CPU="arm"
59f0d218 18 elif [ $TERMUX_ARCH = "i686" ]; then
1224589f 19 DEST_CPU="ia32"
d59a97b3 20 elif [ $TERMUX_ARCH = "aarch64" ]; then
1224589f 21 DEST_CPU="arm64"
d59a97b3 22 elif [ $TERMUX_ARCH = "x86_64" ]; then
1224589f 23 DEST_CPU="x64"
59f0d218 24 else
6a3364bf 25 termux_error_exit "Unsupported arch '$TERMUX_ARCH'"
59f0d218 26 fi
9ba78439 27
99365d01
FF
28 export GYP_DEFINES="host_os=linux"
29
7e49911a 30 # See note above TERMUX_PKG_DEPENDS why we do not use a shared libuv.
1224589f
FF
31 ./configure \
32 --prefix=$TERMUX_PREFIX \
33 --dest-cpu=$DEST_CPU \
34 --dest-os=android \
7e49911a
FF
35 --shared-cares \
36 --shared-openssl \
37 --shared-zlib \
658f8ce9 38 --without-inspector \
7e49911a 39 --without-intl \
99365d01
FF
40 --without-snapshot \
41 --cross-compiling
d53dc644 42}