abuild (591B)
1 name=nodejs 2 version=24.12.0 3 release=1 4 source="https://$name.org/dist/v$version/node-v$version.tar.xz 5 nodejs-allow-build-with-python-3.14.patch 6 0001-no-libatomic.patch" 7 8 build() { 9 # use system openssl when openssl installed 10 if [ -f $SPM_PKGDB/openssl ]; then 11 _opt="--shared-openssl" 12 fi 13 # use ninja when ninja/samurai installed 14 if [ -f $SPM_PKGDB/ninja ] || [ -f $SPM_PKGDB/samurai ]; then 15 _opt="$_opt --ninja" 16 fi 17 ./configure \ 18 --prefix=/usr \ 19 --shared-cares \ 20 --shared-libuv \ 21 --shared-nghttp2 \ 22 --shared-zlib \ 23 --with-intl=system-icu \ 24 $_opt 25 make 26 make install 27 }