The script is based off the scicat_client-0.1.0 anaconda environment. Conda does not need to be activated to run, so the pmodule simple symlinks the entrypoint to the module bin.
33 lines
849 B
Plaintext
Executable File
33 lines
849 B
Plaintext
Executable File
#!/usr/bin/env modbuild
|
|
|
|
pbuild::add_to_group 'Tools'
|
|
|
|
pbuild::prep() {
|
|
:
|
|
}
|
|
|
|
pbuild::configure() {
|
|
:
|
|
}
|
|
|
|
pbuild::compile() {
|
|
:
|
|
}
|
|
|
|
pbuild::install() {
|
|
mkdir -p "$PREFIX/bin"
|
|
|
|
/usr/bin/curl -o "$PREFIX/bin/datasetIngestor" https://intranet.psi.ch/pub/Daas/WebHome/datasetIngestor
|
|
chmod +x "$PREFIX/bin/datasetIngestor"
|
|
|
|
/usr/bin/curl -o "$PREFIX/bin/datasetRetriever" https://intranet.psi.ch/pub/Daas/WebHome/datasetRetriever
|
|
chmod +x "$PREFIX/bin/datasetRetriever"
|
|
|
|
/usr/bin/curl -o "$PREFIX/bin/datasetArchiver" https://intranet.psi.ch/pub/Daas/WebHome/datasetArchiver
|
|
chmod +x "$PREFIX/bin/datasetArchiver"
|
|
|
|
# Hardcoded; could be made version-specific in the future if needed
|
|
ln -s "${PMODULES_ROOT}/Programming/anaconda/2019.07/conda/envs/scicat_client-0.1.0/bin/scicat_client" "$PREFIX/bin/scicat_client"
|
|
}
|
|
|