summaryrefslogtreecommitdiff
path: root/nodejs/Pkgfile
blob: f4ff9c99696245e5206a5595fc17a2347b1ccd20 (plain)
    1 # Description: Evented I/O for V8 javascript.
    2 # URL: http://nodejs.org/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: python c-ares
    5 # Optional: icu
    6 
    7 name=nodejs
    8 version=12.16.3
    9 release=1
   10 source=(https://nodejs.org/dist/v$version/node-v$version.tar.xz)
   11 
   12 build() {
   13 	cd node-v$version
   14 
   15 	[ -e '/usr/lib/pkgconfig/icu-i18n.pc' ] && PKGMK_NODEJS+=' --with-intl=system-icu'
   16 
   17 	./configure ${PKGMK_NODEJS} \
   18 		--prefix=/usr \
   19 		--without-npm \
   20 		--shared-cares \
   21 		--shared-zlib \
   22 		--shared-openssl
   23 
   24 	make
   25 	make DESTDIR=$PKG install
   26 
   27 	rm -r $PKG/usr/share/doc
   28 
   29 	# clean up
   30 	find $PKG -type f \( \
   31 		-name 'README.md' -o \
   32 		-name 'AUTHORS.md' -o \
   33 		-name 'INSTALL.md' -o \
   34 		-name 'TODO.org' -o \
   35 		-name 'ChangeLog' -o \
   36 		-name 'NEWS' \) -delete
   37 
   38 }

Generated by cgit