# IT4Innovations 2023
# JK

easyblock = 'ConfigureMake'

name = 'sysbench'
version = '1.0.20'

homepage = 'https://github.com/akopytov/sysbench'
description = """sysbench is a scriptable multi-threaded benchmark tool based on LuaJIT.
 It is most frequently used for database benchmarks, but can also be used to create arbitrarily complex
 workloads that do not involve a database server."""

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

github_account = 'akopytov'
source_urls = [GITHUB_SOURCE]
sources = ['%(version)s.tar.gz']
checksums = ['e8ee79b1f399b2d167e6a90de52ccc90e52408f7ade1b9b7135727efe181347f']

builddependencies = [
    ('binutils', '2.38'),
    ('pkg-config', '0.29.2', '', True),
]

dependencies = [
    ('libtool', '2.4.7'),
    ('PostgreSQL', '14.4'),
]

preconfigopts = './autogen.sh &&'
configopts = '--with-pgsql --without-mysql '

sanity_check_paths = {
    'files': ['bin/sysbench'],
    'dirs': ['bin', 'share']
}

moduleclass = 'tools'
