summaryrefslogtreecommitdiff
path: root/repo/nodejs/nodejs.xibuild
blob: 00c7d75b8b991cafec66050f14a9c6c3dcf6ec1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

NAME="nodejs"
DESC="JavaScript runtime built on V8 engine - LTS version"

MAKEDEPS="make brotli toybox sort c-ares cacerts openssl musl libnghttp zlib "

PKG_VER=18.9.0
SOURCE="https://nodejs.org/dist/v$PKG_VER/node-v$PKG_VER.tar.gz"
ADDITIONAL="fix-build-with-system-c-ares.patch disable-running-gyp-on-shared-deps.patch "

prepare () {
    apply_patches
}

build () {

    python3 configure.py --prefix=/usr \
		--shared-brotli \
		--shared-zlib \
		--shared-openssl \
		--shared-cares \
		--shared-nghttp2 \
		--ninja \
		--openssl-use-def-ca-store \
		--with-icu-default-data-dir=$(icu-config --icudatadir) \
		--with-intl=small-icu \
		--without-corepack \
        --without-npm
    make
}

package () {
    make DESTDIR=$PKG_DEST install
}