easyblock = 'MesonNinja'

name = 'FUSE'
version = '3.2.6'

homepage = 'https://github.com/libfuse/libfuse'
description = "The reference implementation of the Linux FUSE (Filesystem in Userspace) interface"

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

source_urls = ['https://github.com/libfuse/libfuse/releases/download/fuse-%(version)s/']
sources = [SOURCELOWER_TAR_XZ]
patches = ['FUSE-3.2.6_skip-utils.patch']
checksums = [
    'cea4dad559b3fbdbb8e4ad5f9df6083fdb7f2b904104bd507ef790d311d271cf',  # fuse-3.2.6.tar.xz
    '92b23223b3de7996440bf447a5023a3c2f88ef4345a2b76708023dde3c154533',  # FUSE-3.2.6_skip-utils.patch
]

builddependencies = [
    ('Meson', '1.1.1'),
    ('Ninja', '1.11.1'),
]

configopts = '-Dutils=false'

sanity_check_paths = {
    'files': ['lib64/libfuse%%(version_major)s.%s' % SHLIB_EXT, 'lib64/pkgconfig/fuse%(version_major)s.pc'],
    'dirs': ['include/fuse%(version_major)s'],
}

moduleclass = 'lib'
