mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
network/iojs: Updated for version 3.3.1.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
This commit is contained in:
parent
979c1e81ab
commit
baf881f373
2 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in a new issue