Toolchain: Download all packages from cp2k.org

This commit is contained in:
Ole Schütt 2026-01-01 18:31:01 +01:00 committed by Ole Schütt
parent 34d1091965
commit 8455e73121
3 changed files with 6 additions and 9 deletions

View file

@ -6,9 +6,9 @@
[ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)"
ace_ver="v.2023.11.25.fix2"
ace_dir="lammps-user-pace-${ace_ver}"
ace_pkg="${ace_dir}.tar.gz"
ace_ver="2023.11.25.fix2"
ace_dir="lammps-user-pace-v.${ace_ver}"
ace_pkg="ace-${ace_ver}.tar.gz"
ace_sha256="e0885351a8a730f5576dace2374fa470523a4526383c6a64af571e1344a40686"
# shellcheck source=/dev/null
@ -38,7 +38,7 @@ case "$with_ace" in
if [ -f ${ace_pkg} ]; then
echo "${ace_pkg} is found"
else
download_pkg_from_urlpath "${ace_sha256}" "${ace_ver}.tar.gz" "https://github.com/ICAMS/lammps-user-pace/archive/refs/tags" "${ace_pkg}"
download_pkg_from_cp2k_org "${ace_sha256}" "${ace_pkg}"
fi
[ -d ${ace_dir} ] && rm -rf ${ace_dir}
echo "Installing from scratch into ${pkg_install_dir}"

View file

@ -33,9 +33,7 @@ case "${with_mcl:=__INSTALL__}" in
if [ -f mcl-${mcl_ver}.tar.gz ]; then
echo "mcl-${mcl_ver}.tar.gz is found"
else
download_pkg_from_urlpath "${mcl_sha256}" mcl-${mcl_ver}.tar.gz \
https://gitlab.com/mimic-project/mcl/-/archive/${mcl_ver}
download_pkg_from_cp2k_org "${mcl_sha256}" mcl-${mcl_ver}.tar.gz
fi
echo "Installing from scratch into ${pkg_install_dir}"

View file

@ -30,8 +30,7 @@ case "${with_dbcsr}" in
if [ -f dbcsr-${dbcsr_ver}.tar.gz ]; then
echo "dbcsr-${dbcsr_ver}.tar.gz is found"
else
download_pkg_from_urlpath "${dbcsr_sha256}" "dbcsr-${dbcsr_ver}.tar.gz" \
https://github.com/cp2k/dbcsr/releases/download/v${dbcsr_ver}
download_pkg_from_cp2k_org "${dbcsr_sha256}" "dbcsr-${dbcsr_ver}.tar.gz"
fi
echo "Installing from scratch into ${pkg_install_dir}"
[ -d dbcsr-${dbcsr_ver} ] && rm -rf dbcsr-${dbcsr_ver}