summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryan.q@linux.com>2015-11-13 09:28:47 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-14 07:07:17 +0700
commitbaf881f373e61372cbff4a5da47007a42671a1b5 (patch)
treec80017bc09832a5ce0eb73e883830ed8e9fedbdf
parent979c1e81ab02ab766e896d8daebd8c39a6417432 (diff)
downloadslackbuilds-baf881f373e61372cbff4a5da47007a42671a1b5.tar.gz
network/iojs: Updated for version 3.3.1.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
-rw-r--r--network/iojs/iojs.SlackBuild18
-rw-r--r--network/iojs/iojs.info6
2 files changed, 12 insertions, 12 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
diff --git a/network/iojs/iojs.info b/network/iojs/iojs.info
index 1d1c4e7602..6503f3a6ff 100644
--- a/network/iojs/iojs.info
+++ b/network/iojs/iojs.info
@@ -1,8 +1,8 @@
PRGNAM="iojs"
-VERSION="4.2.2"
+VERSION="3.3.1"
HOMEPAGE="https://iojs.org/"
-DOWNLOAD="https://github.com/nodejs/node/archive/v4.2.2.tar.gz"
-MD5SUM="551b1538d0c7149228e57119ac209169"
+DOWNLOAD="https://iojs.org/dist/v3.3.1/iojs-v3.3.1.tar.xz"
+MD5SUM="58b581e57a57822b9639d781c41ea697"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""