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>
20 lines
550 B
Python
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}"
|
|
}
|