easyblock = 'Tarball'

# note: only works on recent OSs, required sufficiently recent glibc (2.14
# or newer)
name = 'dotNET-Core-Runtime'
version = '2.2.0'

homepage = 'https://www.microsoft.com/net/'
description = """.NET is a free, cross-platform, open source developer platform for building many different types
 of applications."""

toolchain = {'name': 'system', 'version': ''}

source_urls = ['https://download.visualstudio.microsoft.com/download/pr/1057e14e-16cc-410b-80a4-5c2420c8359c/004dc3ce8255475d4723de9a011ac513/']
sources = ['dotnet-runtime-%(version)s-linux-x64.tar.gz']

dependencies = [
    ('libunwind', '1.2'),
]

sanity_check_paths = {
    'files': ['dotnet'],
    'dirs': ['shared/Microsoft.NETCore.App/%(version)s'],
}

modextrapaths = {'PATH': ['']}

moduleclass = 'lang'
