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 33 lines (25 sloc) 909 Bytes
#! /bin/sh
set -xe
PKG=charliecloud
VERSION=0.31
# origin: https://github.com/hpc/charliecloud/releases/download/v0.31/charliecloud-0.31.tar.gz
SRC=https://beehive.molgen.mpg.de/6ab9366080696a5d3eb837eb8aa3cd42/charliecloud-0.31.tar.gz
BUILD=0
PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin
PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi
EOF
source $PREFIX/profile
mkdir -p $PREFIX/build
cd $PREFIX/build
test -e charliecloud-$VERSION.tar.gz || wget --no-verbose $SRC
test -d charliecloud-$VERSION || tar -xf charliecloud-$VERSION.tar.gz
cd charliecloud-$VERSION
./configure --prefix=$PREFIX
nice -12 make -j $(( $(nproc) * 4 / 5 + 1 ))
make install
exit