24 lines
567 B
Python
Executable File
24 lines
567 B
Python
Executable File
#!/usr/bin/env modbuild
|
|
|
|
pbuild::add_to_group 'Tools'
|
|
pbuild::set_download_url https://github.com/paulscherrerinstitute/scicat-cli/releases/download/v${V}/scicat-cli_${V}_Linux_x86_64.tar.gz
|
|
|
|
|
|
pbuild::configure() {
|
|
:
|
|
}
|
|
|
|
pbuild::compile() {
|
|
:
|
|
}
|
|
|
|
pbuild::install() {
|
|
mkdir -p "$PREFIX/bin"
|
|
|
|
cp $SRC_DIR/dataset{Ingestor,Retriever,Archiver} "$PREFIX/bin"
|
|
|
|
# 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"
|
|
}
|
|
|