diff options
-rw-r--r-- | network/node/node.SlackBuild | 14 | ||||
-rw-r--r-- | network/node/node.info | 6 |
2 files changed, 16 insertions, 4 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 diff --git a/network/node/node.info b/network/node/node.info index f5fd07d321..a10dbf8eba 100644 --- a/network/node/node.info +++ b/network/node/node.info @@ -1,8 +1,8 @@ PRGNAM="node" -VERSION="0.6.6" +VERSION="0.6.10" HOMEPAGE="http://nodejs.org/" -DOWNLOAD="http://nodejs.org/dist/v0.6.6/node-v0.6.6.tar.gz" -MD5SUM="43836ebd6e8e9059c4584e3b5ab50009" +DOWNLOAD="http://nodejs.org/dist/v0.6.10/node-v0.6.10.tar.gz" +MD5SUM="8a74fd5d48c2c7c64abc60b2b8f3fbc7" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Audrius Kažukauskas" |