alicelinux

A lightweight musl + clang/llvm + libressl + busybox distro
git clone https://codeberg.org/emmett1/alicelinux
Log | Files | Refs | README | LICENSE

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 }