#!/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}" }