easyblock = 'CMakeMake'

name = "QCA"
version = "2.1.0"

homepage = 'http://delta.affinix.com/qca/'
description = """QCA aims to provide a straightforward and cross-platform crypto API,
using Qt datatypes and conventions. QCA separates the API from the implementation,
using plugins known as Providers"""

toolchain = {'name': 'foss', 'version': '2015g'}

# Example URL: http://delta.affinix.com/download/qca/2.1/qca-2.1.0.tar.gz
source_urls = ['http://delta.affinix.com/download/%(namelower)s/%(version_major)s.0']

sources = [SOURCELOWER_TAR_GZ]

builddependencies = [('Qt', '4.8.6'),
                     ('CMake', '3.3.1')
]

sanity_check_paths = {
    'files': ['lib/libqca.so', 'bin/qcatool'],
    'dirs': ['bin', 'lib', 'include'],
}

moduleclass = 'lib'
