easyblock = 'ConfigureMake'

name = 'CLAPACK'
version = '3.2.1'

homepage = 'http://www.netlib.org/clapack'
description = "C version of LAPACK"

toolchain = {'name': 'intel', 'version': '2017a'}

source_urls = ['http://www.netlib.org/clapack/']
sources = [SOURCELOWER_TGZ]
checksums = ['6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac']

unpack_options = '--strip-components=1'
buildininstalldir = True
skipsteps = ['configure', 'install']

prebuildopts = 'cp make.inc.example make.inc && '
buildopts = 'CC="$CC" LOADER="$CC" '

parallel = 1

sanity_check_paths = {
    'files': ['lapack_LINUX.a', 'tmglib_LINUX.a'],
    'dirs': [],
}

moduleclass = 'math'
