blob: a464b2f7095cc3235bb2226dc2c9310dc2678c8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
name=nodejs
version=23.9.0
release=1
source="https://$name.org/dist/v$version/node-v$version.tar.xz"
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
}
|