easyblock = 'ConfigureMake'

name = 'Singularity'
version = '2.2.1'
versionsuffix = '-test'

homepage = 'http://gmkurtzer.github.io/singularity'
description = """Singularity is a portable application stack packaging and runtime utility."""

toolchain = {'name': 'GCC', 'version': '6.3.0-2.27'}

source_urls = ['https://github.com/gmkurtzer/singularity/archive/']
sources = ['%(version)s.tar.gz']

builddependencies = [('Autotools', '20150215')]

preconfigopts = './autogen.sh && '

sanity_check_paths = {
    'files': [
        'bin/run-singularity',
        'bin/singularity',
        'etc/singularity/singularity.conf',
        'libexec/singularity/sexec-suid'],
    'dirs': [
        'etc',
        '',
        'libexec/singularity'],
}

moduleclass = 'tools'
