Files
MX_Pmodule/jfjoch_viewer/build
T
duan_jandClaude Fable 5 d417a2a95e jfjoch_viewer: download versioned tarball from Gitea releases
Fetch jfjoch_viewer-${V}-linux-cuda12.tgz from
https://gitea.psi.ch/mx/Jungfraujoch/releases instead of requiring a
hardcoded local tarball in the buildblock, so new versions only need a
config.yaml entry.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 14:37:58 +02:00

20 lines
550 B
Python

#!/usr/bin/env modbuild
pbuild::prep() { :; }
pbuild::configure() { :; }
pbuild::compile() { :; }
pbuild::install() {
# Release tag on gitea.psi.ch/mx/Jungfraujoch matches the module version,
# so the tarball is fetched per-version instead of shipped in the buildblock.
local -r tarball="jfjoch_viewer-${V}-linux-cuda12.tgz"
mkdir -p "${PREFIX}/bin"
cd "${PREFIX}/bin"
curl -fLO "https://gitea.psi.ch/mx/Jungfraujoch/releases/download/${V}/${tarball}"
tar -xzf "${tarball}" --strip-components=1
rm "${tarball}"
}