easyblock = 'CMakeMake'

name = 'libmo_unpack'
version = '3.1.2'

homepage = "https://github.com/SciTools/libmo_unpack"
description = "A library for handling the WGDOS and RLE compression schemes used in UM files."

toolchain = {'name': 'intel', 'version': '2020b'}

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

builddependencies = [('CMake', '3.18.4')]

dependencies = [('Subunit', '0.0.21', '-Python-3.8.6')]

separate_build_dir = True

configopts = '-DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS -lsubunit"'

sanity_check_paths = {
    'files': ['lib/libmo_unpack.%s' % SHLIB_EXT],
    'dirs': [],
}

moduleclass = 'tools'
