opt/nodejs/Pkgfile

39 lines
765 B
Plaintext
Raw Normal View History

# Description: Evented I/O for V8 javascript.
# URL: https://nodejs.org/
# Maintainer: Danny Rawlins, crux at romster dot me
2020-08-30 04:42:38 +02:00
# Depends on: python3 c-ares
2019-01-28 08:49:53 +01:00
# Optional: icu
name=nodejs
2020-08-30 04:42:38 +02:00
version=14.9.0
release=1
source=(https://nodejs.org/dist/v$version/node-v$version.tar.xz)
build() {
cd node-v$version
2020-06-03 15:21:28 +02:00
[ -e '/usr/lib/pkgconfig/icu-i18n.pc' ] && PKGMK_NODEJS+=' --with-intl=system-icu'
2019-01-28 08:49:53 +01:00
./configure ${PKGMK_NODEJS} \
--prefix=/usr \
--without-npm \
--shared-cares \
2019-10-24 09:05:18 +02:00
--shared-zlib \
--shared-openssl
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
}