easyblock = 'Tarball'

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

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.microsoft.com/download/A/9/F/A9F8872C-48B2-41DB-8AAD-D5908D988592/']
sources = ['dotnet-runtime-%(version)s-linux-x64.tar.gz']
checksums = ['680ea40a1fafb7a6f93897df70077b64f0081b7d9b0f1358f5897ffd949d6b71']

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

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

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

moduleclass = 'lang'
