#!/bin/bash -l vpkg_require intel-oneapi/2022 export MCFOST_INSTALL="${MCFOST_PREFIX}/${MCFOST_VERSION}" export MCFOST_GIT=1 export MCFOST_AUTO_UPDATE=0 export SYSTEM=ifort #export MCFOST_XGBOST=yes # Start with the library build: pushd lib ./install.sh if [ $? -ne 0 ]; then exit 1 fi # Remove the HDF5 fake install root that install.sh created: [ -d ~/hdf5_install_tmp ] && rm -rf ~/hdf5_install_tmp popd # Move to the executable build: pushd src make if [ $? -ne 0 ]; then exit 1 fi # There is no "install" target, so just do it ourself: mkdir -p "${MCFOST_INSTALL}/bin" cp mcfost "${MCFOST_INSTALL}/bin" popd # Add a symlink to the utils directory to the install prefix, too; # we'll set MCFOST_UTILS to point to that: ln -s "$(realpath --relative-to="$MCFOST_INSTALL" ./utils)" "${MCFOST_INSTALL}/utils"