aboutsummaryrefslogtreecommitdiff
path: root/extra/nodejs/build
blob: 10458be2456c91173064a9fed1c3f851e32f3ca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

# shellcheck disable=3045,2039
ulimit -n 4096 ||:

./configure \
    --prefix=/usr \
    --with-intl=none \
    --ninja

# Remove broken subninja that we don't require anyway.
clsed '/^subninja.*openssl-fipsmodule/d' out/Release/build.ninja

ninja -C out/Release
tools/install.py install "$1" /usr

# Change name of file that has a name longer than the value allowed by the ustar
# format.
cd "$1/usr/lib/node_modules/corepack/dist"
mv vendors-_yarn*.js vendors-_yarn_berry_cache.js
clsed '/yarn_berry/s/vendors-[^"]*/vendors-_yarn_berry_cache/' corepack.js