2017-06-17 21:12:52 +10:00
|
|
|
# Description: Evented I/O for V8 javascript.
|
2020-06-21 20:21:42 +10:00
|
|
|
# URL: https://nodejs.org/
|
2017-06-17 21:12:52 +10:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-11-10 19:08:13 +11:00
|
|
|
# Depends on: python3 libuv
|
2020-10-20 20:40:42 +11:00
|
|
|
# Optional: icu brotli ninja
|
2017-06-17 21:12:52 +10:00
|
|
|
|
2020-11-10 19:08:13 +11:00
|
|
|
# c-ares wait until a newer release than 1.16.1
|
|
|
|
|
2017-06-17 21:12:52 +10:00
|
|
|
name=nodejs
|
2021-01-07 21:11:20 +11:00
|
|
|
version=15.5.1
|
2017-06-17 21:12:52 +10:00
|
|
|
release=1
|
|
|
|
source=(https://nodejs.org/dist/v$version/node-v$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd node-v$version
|
|
|
|
|
2020-06-03 23:21:28 +10:00
|
|
|
[ -e '/usr/lib/pkgconfig/icu-i18n.pc' ] && PKGMK_NODEJS+=' --with-intl=system-icu'
|
2020-10-04 16:24:55 +11:00
|
|
|
[ -e '/usr/lib/pkgconfig/libbrotlicommon.pc' ] && PKGMK_NODEJS+=' --shared-brotli'
|
|
|
|
[ -e '/usr/bin/ninja' ] && PKGMK_NODEJS+=' --ninja'
|
2019-01-28 18:49:53 +11:00
|
|
|
|
|
|
|
./configure ${PKGMK_NODEJS} \
|
2017-06-17 21:12:52 +10:00
|
|
|
--prefix=/usr \
|
|
|
|
--without-npm \
|
2020-10-20 20:40:42 +11:00
|
|
|
--shared-libuv \
|
2019-10-24 18:05:18 +11:00
|
|
|
--shared-zlib \
|
|
|
|
--shared-openssl
|
2020-11-10 19:08:13 +11:00
|
|
|
# -shared-cares
|
2018-11-03 21:37:36 +11:00
|
|
|
|
2017-06-17 21:12:52 +10:00
|
|
|
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
|
|
|
|
|
|
|
|
}
|