diff options
author | davidovski <david@davidovski.xyz> | 2022-05-04 23:52:30 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-04 23:52:30 +0100 |
commit | 739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch) | |
tree | 09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/system/nodejs/nodejs.xibuild | |
parent | 4c585ad54388285500fd18a6aaa516894e0f2c16 (diff) |
moved everything to new file formatting
Diffstat (limited to 'repo/system/nodejs/nodejs.xibuild')
-rw-r--r-- | repo/system/nodejs/nodejs.xibuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/repo/system/nodejs/nodejs.xibuild b/repo/system/nodejs/nodejs.xibuild new file mode 100644 index 0000000..b4918c8 --- /dev/null +++ b/repo/system/nodejs/nodejs.xibuild @@ -0,0 +1,36 @@ +#!/bin/sh + +NAME="nodejs" +DESC="JavaScript runtime built on V8 engine - LTS version" + +MAKEDEPS="make " +DEPS="brotli sbase sort c-ares cacerts openssl musl libnghttp zlib " + +PKG_VER=16.14.2 +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 +} |