Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 48 lines (36 sloc) 1.1 KB
#! /bin/bash
PKG=node
VERSION=14.17.1
BUILD=0
PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi
set -xe
umask 022
BUILD_TMPDIR=/scratch/local2/$PKG-$VERSION-$BUILD.build.tmp
test -d $BUILD_TMPDIR && chmod -c -R u+rwx $BUILD_TMPDIR && rm -rf $BUILD_TMPDIR
mkdir -p $BUILD_TMPDIR/home
export TMPDIR=$BUILD_TMPDIR
export HOME=$BUILD_TMPDIR/home
exec </dev/null
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
EOF
. $PREFIX/profile
export MAKEFLAGS="-j $(nproc)"
BUILDDIR=$PREFIX/build
mkdir -p $BUILDDIR
cd $BUILDDIR
# test -e ${PKG}-v${VERSION}.tar.gz || wget https://nodejs.org/dist/v${VERSION}/${PKG}-v${VERSION}.tar.gz
# wget https://nodejs.org/dist/latest-v14.x/node-v14.17.1.tar.gz
test -e ${PKG}-v${VERSION}.tar.gz || wget https://beehive.molgen.mpg.de/4acf8f9466c846fa964b504c177443cf/node-v14.17.1.tar.gz
test -d ${PKG}-v${VERSION} || tar xvf ${PKG}-v${VERSION}.tar.gz
cd ${PKG}-v${VERSION}
./configure \
--prefix=$PREFIX
make
make install
for i in `ls ${PREFIX}/bin`; do
ln -sv ${PREFIX}/bin/${i}{,-${VERSION}}
done
exit