From 93a354611e38a6949add5c2e5ccc93ef79b9755f Mon Sep 17 00:00:00 2001 From: Woodpecker CI Date: Tue, 3 Jun 2025 14:32:36 +0000 Subject: Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI] --- nodejs/abuild | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 nodejs/abuild (limited to 'nodejs/abuild') 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 +} -- cgit v1.2.3