aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/nodejs/abuild
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-04-10 07:26:30 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-04-10 07:26:30 +0800
commita64930636462bf24118ca7266f699ce2b696e821 (patch)
tree58d116ac5f03aa9e84ece6e4ffa6b489573042a4 /repos/extra/nodejs/abuild
parentddd8e1a8fab2ac39396282a7c09ddf6eca219613 (diff)
downloadalicelinux-a64930636462bf24118ca7266f699ce2b696e821.tar.gz
alicelinux-a64930636462bf24118ca7266f699ce2b696e821.zip
clang branch updated
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
+}