# IT4Innovations
# LK 2025

easyblock = 'CMakeMake'

name = 'libdeflate'
version = '1.20'

homepage = 'https://github.com/ebiggers/libdeflate'
description = """Heavily optimized library for DEFLATE/zlib/gzip compression and decompression."""

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

github_account = 'ebiggers'
source_urls = [GITHUB_SOURCE]
sources = ['v%(version)s.tar.gz']
checksums = ['ed1454166ced78913ff3809870a4005b7170a6fd30767dc478a09b96847b9c2a']

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

sanity_check_paths = {
    'files': [
        'bin/%(name)s-gunzip', 'bin/%(name)s-gzip',
        'lib/%(name)s.a', 'lib/%%(name)s.%s' % SHLIB_EXT,
        'include/%(name)s.h',
    ],
    'dirs': [],
}
sanity_check_commands = [
    '%(name)s-gzip -h',
    '%(name)s-gunzip -h',
]

moduleclass = 'system'
