From 8ebd704ab005bfe6aa343ea6018d9e2db2cccddf Mon Sep 17 00:00:00 2001 From: thomas Date: Tue, 27 Jun 2023 16:32:31 +0200 Subject: [PATCH] apptainer: Add version 1.1.9 apptainer is the successor of singularity. See: https://apptainer.org/ --- apptainer-1.1.9-0.build.sh | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 apptainer-1.1.9-0.build.sh diff --git a/apptainer-1.1.9-0.build.sh b/apptainer-1.1.9-0.build.sh new file mode 100755 index 0000000..4948690 --- /dev/null +++ b/apptainer-1.1.9-0.build.sh @@ -0,0 +1,46 @@ +#! /bin/sh + +set -xe +umask 022 + +PKG=apptainer +VERSION=1.1.9 +BUILD=0 + +PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/package/bin +PREFIX=/pkg/$PKG-$VERSION-$BUILD +if [ -n "$TESTING" ]; then PREFIX=/scratch/local2/$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 + +# needed for ~/.cache/go-build ... +BUILD_TMPDIR=/scratch/local2/$PKG-$VERSION-$BUILD.$USER.build.tmp +test -d $BUILD_TMPDIR && ( chmod -R u+rwx $BUILD_TMPDIR || true ; rm -rf $BUILD_TMPDIR ) +mkdir -p $BUILD_TMPDIR/home +export TMPDIR=$BUILD_TMPDIR +export HOME=$BUILD_TMPDIR/home + +mkdir -p $PREFIX/build +cd $PREFIX/build + +# orig: https://github.com/apptainer/apptainer/releases/download/v1.1.9/apptainer-1.1.9.tar.gz +BEEHIVE=https://beehive.molgen.mpg.de/1472e1534f7c24b99de49df84fc83650/apptainer-1.1.9.tar.gz + +test -e apptainer-$VERSION.tar.gz || wget --no-verbose $BEEHIVE +test -d apptainer-$VERSION || tar -xf apptainer-$VERSION.tar.gz + +cd apptainer-$VERSION + +./mconfig -b ./build -p $PREFIX +mkdir -p build +cd build +make +make install + +exit