aboutsummaryrefslogtreecommitdiff
path: root/nodejs/abuild
diff options
context:
space:
mode:
Diffstat (limited to 'nodejs/abuild')
-rw-r--r--nodejs/abuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/nodejs/abuild b/nodejs/abuild
new file mode 100644
index 00000000..7091d496
--- /dev/null
+++ b/nodejs/abuild
@@ -0,0 +1,27 @@
+name=nodejs
+version=23.11.0
+release=1
+source="https://$name.org/dist/v$version/node-v$version.tar.xz
+ atomic.patch"
+
+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
+}