diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-06-18 00:42:42 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-06-18 09:10:08 +0700 |
commit | efc1834d5a223fda8abb122d1b4119beb2ccaa52 (patch) | |
tree | 54a208b7d914b3833a5f264f074a82f82b1105cb /development/nodejs/nodejs.SlackBuild | |
parent | 96a05c1875bf8dafbf375efe8c41d865233478eb (diff) |
development/nodejs: Updated for version 18.4.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/nodejs/nodejs.SlackBuild')
-rw-r--r-- | development/nodejs/nodejs.SlackBuild | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/development/nodejs/nodejs.SlackBuild b/development/nodejs/nodejs.SlackBuild index 05995c3ca1..8aee42d07d 100644 --- a/development/nodejs/nodejs.SlackBuild +++ b/development/nodejs/nodejs.SlackBuild @@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=nodejs SRCNAM=node -VERSION=${VERSION:-17.9.0} +VERSION=${VERSION:-18.4.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -41,9 +41,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -87,8 +84,10 @@ sed -i 's|share/||' tools/install.py ## Fix libdir for 64-bit. sed -i "s|lib/|lib${LIBDIRSUFFIX}/|g" tools/install.py -sed -i "s/'lib'/'lib${LIBDIRSUFFIX}'/" lib/module.js -sed -i "s|\"lib\"|\"lib${LIBDIRSUFFIX}\"|" deps/npm/lib/npm.js +sed -i "s/'lib'/'lib${LIBDIRSUFFIX}'/" \ + lib/module.js \ + lib/internal/modules/cjs/loader.js \ + deps/npm/lib/npm.js sed -i "s|math.h|cmath|" src/node_crypto.cc ./configure \ @@ -111,18 +110,6 @@ install -D -m 644 $CWD/npm.sh $PKG/usr/share/bash-completion/completions/npm ## Remove unneeded files. find $PKG/usr \( -name '.git*' \) -exec rm -f {} \; -## Set NODE_PATH to look for globally installed modules. -mkdir -p $PKG/etc/profile.d -cat > $PKG/etc/profile.d/${SRCNAM}.csh << EOF -#!/bin/csh -setenv NODE_PATH /usr/lib${LIBDIRSUFFIX}/node_modules -EOF -cat > $PKG/etc/profile.d/${SRCNAM}.sh << EOF -#!/bin/sh -export NODE_PATH=/usr/lib${LIBDIRSUFFIX}/node_modules -EOF -chmod 0755 $PKG/etc/profile.d/* - # Fix some files path mv $PKG/usr/doc/node $PKG/usr/share/nodejs mv $PKG/usr/systemtap $PKG/usr/share/systemtap |