diff options
author | Audrius Kažukauskas <audrius@neutrino.lt> | 2012-02-19 02:05:52 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-02-20 12:20:45 -0600 |
commit | 54d597fb3a029d055b67becea57602c362f047fa (patch) | |
tree | a39c410afb612703d21641477bc90df8de4de808 /network/node/node.SlackBuild | |
parent | 5ae8028700702605d3878157ba5de7257ce85e78 (diff) |
network/node: Updated for version 0.6.10.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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 ec78a79aeeb5a..505c722cf188d 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 |