43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Description: Evented I/O for V8 javascript (LTS release: Gallium)
|
|
# URL: https://nodejs.org/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: libnghttp2 libuv openssl11 zlib
|
|
# Optional: brotli c-ares icu
|
|
|
|
name=nodejs-lts-hydrogen
|
|
version=18.19.0
|
|
release=1
|
|
source=(https://nodejs.org/dist/v$version/node-v$version.tar.xz)
|
|
|
|
build() {
|
|
cd node-v$version
|
|
|
|
export PKG_CONFIG_PATH="/usr/lib/openssl-1.1/pkgconfig:/usr/lib/pkgconfig"
|
|
|
|
prt-get isinst brotli && PKGMK_NODEJS+=' --shared-brotli'
|
|
prt-get isinst c-ares && PKGMK_NODEJS+=' --shared-cares'
|
|
prt-get isinst icu && PKGMK_NODEJS+=' --with-intl=system-icu'
|
|
|
|
./configure ${PKGMK_NODEJS} \
|
|
--prefix=/usr/opt/$name \
|
|
--ninja \
|
|
--shared-libuv \
|
|
--shared-nghttp2 \
|
|
--shared-openssl \
|
|
--shared-zlib \
|
|
--without-npm
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
# clean up
|
|
rm -r $PKG/usr/opt/$name/share/doc
|
|
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
|
|
}
|