easyblock = 'ConfigureMake'

name = 'libsodium'
version = '1.0.18'

homepage = 'http://doc.libsodium.org/'

description = """
 Sodium is a modern, easy-to-use software library for encryption, decryption,
 signatures, password hashing and more.
"""

toolchain = {'name': 'GCCcore', 'version': '8.2.0'}
toolchainopts = {'pic': True}

source_urls = ['https://download.libsodium.org/libsodium/releases/']
sources = [SOURCE_TAR_GZ]

builddependencies = [
    ('binutils', '2.31.1'),
]

sanity_check_paths = {
    'files': ['include/sodium.h', 'lib/libsodium.so', 'lib/libsodium.a'],
    'dirs': ['include/sodium', 'lib/pkgconfig'],
}

moduleclass = 'lib'
