# Description: Evented I/O for V8 javascript. # URL: http://nodejs.org/ # Maintainer: Danny Rawlins, crux at romster dot me # Depends on: python c-ares # Optional: icu name=nodejs version=10.15.3 release=1 source=(https://nodejs.org/dist/v$version/node-v$version.tar.xz) build() { cd node-v$version [ -e '/usr/lib/pkgconfig/icu-i18n.pc' ] && PKGMK_NODEJS+=' --with-intl=system-icu' ./configure ${PKGMK_NODEJS} \ --prefix=/usr \ --without-npm \ --shared-cares \ --shared-zlib # https://github.com/nodejs/node/issues/22025 # --shared-openssl make make DESTDIR=$PKG install rm -r $PKG/usr/share/doc # clean up find $PKG -type f \( \ -name 'README.md' -o \ -name 'AUTHORS.md' -o \ -name 'INSTALL.md' -o \ -name 'TODO.org' -o \ -name 'ChangeLog' -o \ -name 'NEWS' \) -delete }