name=nodejs version=24.4.1 release=1 source="https://$name.org/dist/v$version/node-v$version.tar.xz 0001-no-libatomic.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 }