2019-07-22 17:15:26 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2020-10-07 03:28:09 -06:00
|
|
|
# Fix python 3.
|
|
|
|
sed -i 's|(3, 8)|(3, 9), (3, 8)|g' configure
|
2020-03-10 01:37:41 -06:00
|
|
|
|
2019-10-23 02:14:44 -06:00
|
|
|
./configure \
|
2020-03-04 13:48:52 -07:00
|
|
|
--shared-zlib \
|
2020-08-25 05:58:27 -06:00
|
|
|
--with-intl=small-icu \
|
2020-03-04 13:48:52 -07:00
|
|
|
--without-etw \
|
|
|
|
--without-dtrace \
|
|
|
|
--without-report \
|
2020-03-04 13:57:53 -07:00
|
|
|
--without-node-snapshot \
|
|
|
|
--without-node-code-cache \
|
2020-09-29 23:01:33 -06:00
|
|
|
--partly-static \
|
2020-03-04 13:48:52 -07:00
|
|
|
--ninja
|
2019-07-22 17:15:26 -06:00
|
|
|
|
2020-03-04 13:48:52 -07:00
|
|
|
ninja -C out/Release
|
|
|
|
tools/install.py install "$1" /usr
|
2020-03-04 13:57:53 -07:00
|
|
|
|
2020-08-06 03:30:02 -06:00
|
|
|
# Remove unneeded files.
|
2020-03-04 13:57:53 -07:00
|
|
|
rm -rf "$1/usr/include/node/openssl"
|
2020-08-06 03:30:02 -06:00
|
|
|
rm -rf "$1/usr/lib/node_modules/npm/scripts"
|
|
|
|
rm -f "$1/usr/lib/node_modules/npm/configure"
|