easyblock = 'ConfigureMake'

name = 'libtasn1'
version = '4.12'

homepage = 'https://www.gnu.org/software/libtasn1/'
description = """Libtasn1 is the ASN.1 library used by GnuTLS, GNU Shishi and some other packages.
 It was written by Fabio Fiorina, and has been shipped as part of GnuTLS
 for some time but is now a proper GNU package."""

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

source_urls = [GNU_SOURCE]
sources = [SOURCE_TAR_GZ]

builddependencies = [('binutils', '2.26', '', True)]

sanity_check_paths = {
    'files': ['bin/asn1%s' % x for x in ['Coding', 'Decoding', 'Parser']] +
             ['lib/libtasn1.%s' % x for x in ['a', SHLIB_EXT]],
    'dirs': ['include'],
}

moduleclass = 'lib'
