easyblock = 'ConfigureMake'

name = 'protobuf'
version = '3.4.0'

homepage = 'https://github.com/google/protobuf/'
description = """Google Protocol Buffers"""

toolchain = {'name': 'intel', 'version': '2018'}

source_urls = ['https://github.com/google/protobuf/archive/v%(version)s/']
sources = [SOURCE_TAR_GZ]
checksums = ['f6600abeee3babfa18591961a0ff21e7db6a6d9ef82418a261ec4fee44ee6d44']

builddependencies = [('Autotools', '20170619')]

preconfigopts = "./autogen.sh && "

sanity_check_paths = {
    'files': ['bin/protoc', 'lib/libprotobuf.%s' % SHLIB_EXT],
    'dirs': [],
}

moduleclass = 'devel'
