aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/nodejs/abuild
diff options
context:
space:
mode:
Diffstat (limited to 'repos/extra/nodejs/abuild')
-rw-r--r--repos/extra/nodejs/abuild26
1 files changed, 26 insertions, 0 deletions
diff --git a/repos/extra/nodejs/abuild b/repos/extra/nodejs/abuild
new file mode 100644
index 00000000..fa70f8b1
--- /dev/null
+++ b/repos/extra/nodejs/abuild
@@ -0,0 +1,26 @@
+name=nodejs
+version=23.10.0
+release=1
+source="https://$name.org/dist/v$version/node-v$version.tar.xz"
+
+build() {
+ # use system openssl when openssl installed
+ if [ -f $SPM_PKGDB/openssl ]; then
+ _opt="--shared-openssl"
+ fi
+ # use ninja when ninja/samurai installed
+ if [ -f $SPM_PKGDB/ninja ] || [ -f $SPM_PKGDB/samurai ]; then
+ _opt="$_opt --ninja"
+ fi
+ ./configure \
+ --prefix=/usr \
+ --shared-cares \
+ --shared-libuv \
+ --shared-nghttp2 \
+ --shared-nghttp3 \
+ --shared-zlib \
+ --with-intl=system-icu \
+ $_opt
+ make
+ make install
+}