# Contributor: A. Wilcox # Maintainer: A. Wilcox pkgname=node pkgver=16.19.0 pkgrel=0 pkgdesc="JavaScript runtime" url="https://nodejs.org/" arch="all" options="net" # Required in check() license="MIT AND ICU AND BSD-3-Clause AND BSD-2-Clause AND ISC AND Public-Domain AND Zlib AND Artistic-2.0 AND Apache-2.0 AND CC0-1.0" depends="" makedepends="c-ares-dev http-parser-dev icu-dev libexecinfo-dev libuv-dev nghttp2-dev openssl-dev python3 zlib-dev samurai" subpackages="$pkgname-dev $pkgname-doc" source="https://nodejs.org/download/release/v$pkgver/node-v$pkgver.tar.xz env-nullptr-backport.patch flaky-sigint-test.patch pmmx-test.patch " builddir="$srcdir/$pkgname-v$pkgver" # secfixes: # 10.16.3-r0: # - CVE-2019-9511 # - CVE-2019-9512 # - CVE-2019-9513 # - CVE-2019-9514 # - CVE-2019-9515 # - CVE-2019-9516 # - CVE-2019-9517 # - CVE-2019-9518 # 10.21.0-r0: # - CVE-2020-7598 # - CVE-2020-8174 build() { python3 configure.py \ --prefix=/usr \ --shared-zlib \ --shared-openssl \ --shared-cares \ --shared-nghttp2 \ --ninja \ --openssl-use-def-ca-store \ --with-icu-default-data-dir=$(icu-config --icudatadir) \ --with-intl=system-icu \ --without-corepack \ --without-npm make BUILDTYPE=Release DESTDIR="$pkgdir" } check() { make DESTDIR="$pkgdir" test-only \ ${_skip:+CI_SKIP_TESTS="$_skip"} } package() { make DESTDIR="$pkgdir" install } sha512sums="cbc70067a7aefb6b8d2e238c9611fa901ddee8e9ffc3e6becddec4b156cc52da6e172b33e797265858cacbd014e0e1f0c93bd7c412a7afb436731b3fecd384a3 node-v16.19.0.tar.xz e8374b4838256a0762b8c5448dd84fb5ac80aec0df5bb0869941288897a5084f74631e37619f0814c7fe98762e7f603a13511d68594e4f6c46ae1dd420bb61ad env-nullptr-backport.patch 9d6451871cfb4940ed5c53ae95f37761480890e2ed50cf7029f070f23b343721763b0339f77da3c61a878d65f7b2dd9a91012e62fc61e775a10a0f1d2a8ebe80 flaky-sigint-test.patch 277e226f3906f791bae6aedd0b74b0e2c52b6154eb2dc0c568417ad94a0722078e4fbbbe15c59d4ba0b59cdb4ad45b5e9620f14d75694a15531857cd29aa044a pmmx-test.patch"