Skip to content
Permalink
v2.11.0
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 56 lines (35 sloc) 982 Bytes
#!/bin/bash
{
set -x
set -e
set -u
. build.profile
. ${PREFIX}/${BUILD_sqlite}/profile
. ${PREFIX}/${BUILD_python}/profile
function B_NODEJS {
[ -d "$PREFIX" ] || { echo "PREFIX unset or not a directory";exit; }
# wget "https://nodejs.org/download/release/v20.15.0/node-v20.15.0.tar.gz"
SRCURL="https://beehive.molgen.mpg.de/4916451f1f2f966896f4922f90470350/node-v20.15.0.tar.gz"
PREFIX=${PREFIX}/${BUILD_node}
mkdir -p ${PREFIX}
cat >${PREFIX}/profile <<-EOF
PATH=${PREFIX}/bin:\$PATH
npm_config_cache=${PREFIX}/cache
EOF
test -e ${BUILD_node}.tar.gz || wget -nv ${SRCURL} -O ${BUILD_node}.tar.gz
test -d ${BUILD_node} || mkdir -pv ${BUILD_node} && tar -xf ${BUILD_node}.tar.gz --strip-components=1 -C ${BUILD_node}
# . "${PREFIX}"/profile
cd ${BUILD_node}
local _conf=(
--prefix="${PREFIX}"
)
# export npm_config_cache="${PREFIX}"/cache
CFLAGS='-O2 -fPIC' \
./configure "${_conf[@]}"
make -j "${NPROC}"
make install
}
pushd "${BUILD_DIR}"
B_NODEJS
popd
}