aboutsummaryrefslogtreecommitdiff
path: root/nodejs/abuild
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:36 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:36 +0000
commit93a354611e38a6949add5c2e5ccc93ef79b9755f (patch)
tree7fee41752b1047d74c59f8ee046cd62735e7e934 /nodejs/abuild
parent35912580b66e9439f91ea441938828ad8aa33b0d (diff)
downloadalicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.tar.gz
alicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.zip
Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI]
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
+}