diff options
Diffstat (limited to 'network/iojs/iojs.SlackBuild')
-rw-r--r-- | network/iojs/iojs.SlackBuild | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/network/iojs/iojs.SlackBuild b/network/iojs/iojs.SlackBuild index 2a6c02cd1a..d29d2afd6d 100644 --- a/network/iojs/iojs.SlackBuild +++ b/network/iojs/iojs.SlackBuild @@ -1,7 +1,6 @@ #!/bin/sh # Slackware build script for iojs - # Thanks to Audrius Kažukauskas # Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com @@ -25,11 +24,12 @@ # not, see <https://www.gnu.org/licenses/>. PRGNAM=iojs -SRCNAM=node -VERSION=${VERSION:-4.2.2} +VERSION=${VERSION:-3.3.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +DOCS="AUTHORS CHANGELOG.md COLLABORATOR_GUIDE.md CONTRIBUTING.md GOVERNANCE.md LICENSE README.md ROADMAP.md WORKING_GROUPS.md" + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -62,9 +62,9 @@ set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -cd $SRCNAM-$VERSION +rm -rf $PRGNAM-v$VERSION +tar xvf $CWD/$PRGNAM-v$VERSION.tar.xz +cd $PRGNAM-v$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -102,18 +102,18 @@ 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/iojs.csh << EOF +cat > $PKG/etc/profile.d/${PRGNAM}.csh << EOF #!/bin/csh setenv NODE_PATH /usr/lib${LIBDIRSUFFIX}/node_modules EOF -cat > $PKG/etc/profile.d/iojs.sh << EOF +cat > $PKG/etc/profile.d/${PRGNAM}.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.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |