11# Template file for 'nodejs'
22pkgname=nodejs
33version=10.15.0
4- revision=1
4+ revision=2
55wrksrc="node-v${version}"
6- hostmakedepends="pkg-config python $(vopt_if icu icu)"
6+ # Need these for host v8 for torque, see https://github.com/nodejs/node/pull/21079
7+ hostmakedepends="pkg-config python zlib-devel $(vopt_if icu icu-devel)
8+ $(vopt_if ssl libressl-devel) $(vopt_if libuv libuv-devel)
9+ $(vopt_if http_parser http-parser-devel) $(vopt_if nghttp2 nghttp2-devel)
10+ $(vopt_if cares c-ares-devel)"
711makedepends="zlib-devel python-devel $(vopt_if icu icu-devel)
812 $(vopt_if ssl libressl-devel) $(vopt_if libuv libuv-devel)
913 $(vopt_if http_parser http-parser-devel) $(vopt_if nghttp2 nghttp2-devel)
@@ -14,7 +18,6 @@ license="MIT"
1418homepage="https://nodejs.org/"
1519distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
1620checksum=dbe467e3dabb6854fcb0cd96e04082268cb1e313ce97a4b7100b2ed152b0a0ab
17- nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/13788/steps/shell_3/logs/stdio"
1821
1922build_options="ssl libuv http_parser icu nghttp2 cares"
2023desc_option_ssl="Enable shared libressl"
@@ -35,7 +38,7 @@ do_configure() {
3538 export LD="$CXX"
3639 if [ "$CROSS_BUILD" ]; then
3740 case "$XBPS_TARGET_MACHINE" in
38- arm*) _args="--dest-cpu=arm --without-snapshot " ;;
41+ arm*) msg_error "Can only build Node for ARMv[5-7] from a 32-bit host " ;;
3942 aarch64*) _args="--dest-cpu=arm64 --without-snapshot" ;;
4043 *) msg_error "$pkgver: cannot be cross compiled for ${XBPS_TARGET_MACHINE}\n" ;;
4144 esac
0 commit comments