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>
This commit is contained in:
2026-08-19 14:37:58 +02:00
co-authored by Claude Fable 5
parent 040c400a66
commit d417a2a95e
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ module use unstable
module load modbuild/2.1.3
```
Step 3: go into jfjoch_viewer directory, update config.yaml to add newest release version and build module with that release name
Step 3: go into jfjoch_viewer directory, update config.yaml to add the newest release version from https://gitea.psi.ch/mx/Jungfraujoch/releases and build the module with that release name -- the linux-cuda12 tarball is downloaded from the releases page automatically, no local tarball needed
```
cd jfjoch_viewer
+7 -2
View File
@@ -8,7 +8,12 @@ pbuild::configure() { :; }
pbuild::compile() { :; }
pbuild::install() {
mkdir "${PREFIX}/bin"
# 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"
tar -xvzf "${BUILDBLOCK_DIR}/jfjoch_viewer-1.0.0-rc.160-linux-cuda12.tgz" --strip-components=1
curl -fLO "https://gitea.psi.ch/mx/Jungfraujoch/releases/download/${V}/${tarball}"
tar -xzf "${tarball}" --strip-components=1
rm "${tarball}"
}
+1 -1
View File
@@ -1,7 +1,7 @@
#%Module
module-whatis "jfjoch viewer trying install offline processing for mx beamlines"
module-url "https://gitea.psi.ch/mx/-/packages/rpm/jfjoch-viewer"
module-url "https://gitea.psi.ch/mx/Jungfraujoch/releases"
module-license "for internal testing right now"
module-maintainer "MX Data <jiaxin.duan@psi.ch>"