Skip to content

Commit

Permalink
Merge pull request #224 from mariux64/add-charliecloud-0.30-0
Browse files Browse the repository at this point in the history
charliecloud: Add version 0.30
  • Loading branch information
thomas authored Jan 20, 2023
2 parents e388d85 + 0c8fd66 commit 5fae15e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions charliecloud-0.30-0.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#! /bin/sh

set -xe

PKG=charliecloud
VERSION=0.30
# origin: https://github.com/hpc/charliecloud/releases/download/v0.30/charliecloud-0.30.tar.gz
SRC=https://beehive.molgen.mpg.de/b66f89d3fc44afa185e1ec9b947ea61a/charliecloud-0.30.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

0 comments on commit 5fae15e

Please sign in to comment.