PKGNAME=nodejs-22
PKGSEC=devel
PKGDEP="python-3 icu zlib brotli libuv openssl ca-certs nghttp2 ada c-ares nghttp3 ngtcp2 sqlite zstd simdutf llhttp"
BUILDDEP="chrpath unzip jq"
BUILDDEP__LOONGSON3="${BUILDDEP} llvm"
PKGDES="JavaScript runtime built on the V8 JavaScript engine (LTS branch 22.x)"

# https://github.com/nodejs/node/issues/44195#issuecomment-1545966528
NOLTO=1

# FIXME: mksnapshot SIGBUS when built with GCC 13.2.0.
USECLANG__LOONGSON3=1

PKGREP="nodejs<=2:20.18.0-1 pnpm<=9.7.0 yarn<=1.22.22-1"
PKGBREAK="$PKGREP"
