diff options
Diffstat (limited to 'network/node/node.SlackBuild')
-rw-r--r-- | network/node/node.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/network/node/node.SlackBuild b/network/node/node.SlackBuild index ec78a79aee..505c722cf1 100644 --- a/network/node/node.SlackBuild +++ b/network/node/node.SlackBuild @@ -4,7 +4,7 @@ # Written by Audrius Kažukauskas <audrius@neutrino.lt> PRGNAM=node -VERSION=${VERSION:-0.6.6} +VERSION=${VERSION:-0.6.10} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -80,6 +80,18 @@ install -D -m 644 $CWD/npm.sh $PKG/etc/bash_completion.d/npm # Remove unneeded files. find $PKG/usr \( -name '.git*' -o -name '.travis.yml' \) -exec rm -f {} \; +# Set NODE_PATH to look for globally installed modules. +mkdir -p $PKG/etc/profile.d +cat > $PKG/etc/profile.d/node.csh << EOF +#!/bin/csh +setenv NODE_PATH /usr/lib${LIBDIRSUFFIX}/node_modules +EOF +cat > $PKG/etc/profile.d/node.sh << EOF +#!/bin/sh +export NODE_PATH=/usr/lib${LIBDIRSUFFIX}/node_modules +EOF +chmod 0755 $PKG/etc/profile.d/* + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS ChangeLog LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |