summaryrefslogtreecommitdiff
path: root/nodejs/Pkgfile
blob: 00f4458f3d385800f846e01d499cb67279dc4d21 (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=17.8.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 		--enable-lto \
   24 		--ninja \
   25 		--without-npm \
   26 		--shared-libuv \
   27 		--shared-zlib \
   28 		--shared-openssl \
   29 		--shared-nghttp2 \
   30 		--experimental-http-parser
   31 
   32 	make
   33 	make DESTDIR=$PKG install
   34 
   35 	rm -r $PKG/usr/share/doc
   36 
   37 	# clean up
   38 	find $PKG -type f \( \
   39 		-name 'README.md' -o \
   40 		-name 'AUTHORS.md' -o \
   41 		-name 'INSTALL.md' -o \
   42 		-name 'TODO.org' -o \
   43 		-name 'ChangeLog' -o \
   44 		-name 'NEWS' \) -delete
   45 }

Generated by cgit