# Maintainer: Felix Yan # Contributor Bartłomiej Piotrowski # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: James Campos # Contributor: BlackEagle < ike DOT devolder AT gmail DOT com > # Contributor: Dongsheng Cai # Contributor: Masutu Subric # Contributor: TIanyi Cui # ALARM: Kevin Mihelich # - set config and gyp flags pkgname=nodejs pkgver=17.6.0 pkgrel=1 pkgdesc='Evented I/O for V8 javascript' arch=('x86_64') url='https://nodejs.org/' license=('MIT') options=(!lto) depends=('brotli' 'openssl' 'zlib' 'icu' 'libuv' 'libnghttp2' 'c-ares') # 'http-parser' 'v8') makedepends=('python' 'procps-ng') optdepends=('npm: nodejs package manager') source=("https://github.com/nodejs/node/archive/v$pkgver/nodejs-$pkgver.tar.gz") sha512sums=('1b98996a9cadc8a6a7373497cffae2497a26dc4c08bd2d616ba714da66510ff035aa83a57969cd89032620d3af08581816671e37b8cef6d730fab7149030b55b') build() { cd node-$pkgver [[ "$CARCH" == "armv7h" ]] && export CONFIG="--with-arm-float-abi=hard --with-arm-fpu=neon" && export GYPFLAGS="-Darm_thumb -Darm_float_abi=hard -Darm_version=7 -Darm_fpu=neon" ./configure \ --prefix=/usr \ --with-intl=system-icu \ --without-npm \ --shared-openssl \ --shared-zlib \ --shared-libuv \ --experimental-http-parser \ --shared-nghttp2 \ --shared-cares \ --shared-brotli \ ${CONFIG} # --shared-cares \ # --shared-v8 # --shared-http-parser make } check() { cd node-$pkgver make test || : } package() { cd node-$pkgver make DESTDIR="$pkgdir" install install -D -m644 LICENSE \ "$pkgdir"/usr/share/licenses/nodejs/LICENSE } # vim:set ts=2 sw=2 et: