easyblock = 'CMakeMake'

name = 'g2lib'
version = '4.0.0'

homepage = 'https://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/'
description = """Library contains GRIB2 encoder/decoder and search/indexing routines."""

toolchain = {'name': 'GCCcore', 'version': '13.3.0'}

source_urls = ['https://github.com/NOAA-EMC/NCEPLIBS-g2/archive/refs/tags/']
sources = ['v%(version)s.tar.gz']
checksums = ['9d3866de32e13e80798bfb08dbbea9223f32cec3fce3c57b6838e76f27d5a1d3']

builddependencies = [
    ('binutils', '2.42'),
    ('CMake', '3.29.3'),
]

dependencies = [
    ('JasPer', '4.2.4'),
    ('libpng', '1.6.43'),
    ('zlib', '1.3.1'),
]

sanity_check_paths = {
    'files': ['lib/libg2.a'],
}

moduleclass = 'data'
