2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-15 12:22:26 +00:00
repo/extra/nodejs/build

23 lines
518 B
Plaintext
Raw Normal View History

2019-07-22 23:15:26 +00:00
#!/bin/sh -e
# Fix a python 3 incompatibility.
sed -i 's|/ (8|// (8|' tools/gyp/pylib/gyp/generator/ninja.py
2019-10-23 08:14:44 +00:00
./configure \
2020-03-04 20:48:52 +00:00
--shared-zlib \
--without-intl \
--without-etw \
--without-dtrace \
--without-report \
2020-03-04 20:57:53 +00:00
--without-node-snapshot \
--without-node-code-cache \
2020-03-04 20:48:52 +00:00
--ninja
2019-07-22 23:15:26 +00:00
2020-03-04 20:48:52 +00:00
ninja -C out/Release
tools/install.py install "$1" /usr
2020-03-04 20:57:53 +00:00
# Remove unneeded files.
2020-03-04 20:57:53 +00:00
rm -rf "$1/usr/include/node/openssl"
rm -rf "$1/usr/lib/node_modules/npm/scripts"
rm -f "$1/usr/lib/node_modules/npm/configure"