Skip to content
Permalink
836913c051
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 57 lines (35 sloc) 835 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; }
SRCURL="${BUILD_node_SRCURL}"
BUILD_PKG=${BUILD_node}
PREFIX=${PREFIX}/${BUILD_PKG}
mkdir -p ${PREFIX}
cat >${PREFIX}/profile <<-EOF
PATH=${PREFIX}/bin:\$PATH
npm_config_cache=${PREFIX}/cache
EOF
test -e "${BUILD_PKG}.tar.gz" || wget -nv "${SRCURL}" -O "${BUILD_PKG}.tar.gz"
test -d "${BUILD_PKG}" || mkdir -pv "${BUILD_PKG}" && tar -xf "${BUILD_PKG}.tar.gz" --strip-components=1 -C "${BUILD_PKG}"
. "${PREFIX}/profile"
pushd "${BUILD_PKG}"
local _conf=(
--prefix=${PREFIX}
)
CFLAGS='-O2 -fPIC' \
./configure "${_conf[@]}"
make -j "${NPROC}"
make install
popd
}
pushd ${BUILD_DIR}
B_NODEJS
popd
}