# 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.5.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=('c4fcc489d688aee0375d8b31309d7a14d0cf7670ae220999eef03218424715f854ce1cd2f2628ab0fad9e95973b53faa68195c4730410e386878a0d4edaa533e') build() { cd node-$pkgver [[ "$CARCH" == "armv6h" ]] && export CONFIG="--with-arm-float-abi=hard --with-arm-fpu=vfp" && export GYPFLAGS="-Darm_thumb -Darm_float_abi=hard -Darm_version=6 -Darm_fpu=vfpv2" [[ "$CARCH" == "armv7h" ]] && export CONFIG="--with-arm-float-abi=hard --with-arm-fpu=vfpv3-d16" && export GYPFLAGS="-Darm_thumb -Darm_float_abi=hard -Darm_version=7 -Darm_fpu=vfpv3-d16" ./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: