easyblock = 'Tarball'

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

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 = SYSTEM

source_urls = [
    'https://download.microsoft.com/download/A/7/8/A78F1D25-8D5C-4411-B544-C7D527296D5E/']
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'
