blob: 5bdd1752fd8e5971c67ff034fd99aa6807991249 (
plain)
1 # Description: Evented I/O for V8 javascript.
2 # URL: https://nodejs.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: libnghttp2 libuv openssl zlib
5 # Optional: brotli c-ares icu
6
7 name=nodejs
8 version=19.4.0
9 release=1
10 source=(https://nodejs.org/dist/v$version/node-v$version.tar.xz
11 system-c-ares.patch)
12
13 build() {
14 cd node-v$version
15
16 prt-get isinst brotli && PKGMK_NODEJS+=' --shared-brotli'
17 prt-get isinst c-ares && PKGMK_NODEJS+=' --shared-cares'
18 prt-get isinst c-ares && patch -Rp1 -i $SRC/system-c-ares.patch
19 prt-get isinst icu && PKGMK_NODEJS+=' --with-intl=system-icu'
20
21 ./configure ${PKGMK_NODEJS} \
22 --prefix=/usr \
23 --ninja \
24 --without-npm \
25 --shared-libuv \
26 --shared-zlib \
27 --shared-openssl \
28 --shared-nghttp2 \
29 --experimental-http-parser
30
31 make
32 make DESTDIR=$PKG install
33
34 rm -r $PKG/usr/share/doc
35
36 # clean up
37 find $PKG -type f \( \
38 -name 'README.md' -o \
39 -name 'AUTHORS.md' -o \
40 -name 'INSTALL.md' -o \
41 -name 'TODO.org' -o \
42 -name 'ChangeLog' -o \
43 -name 'NEWS' \) -delete
44 }
|