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