# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild

easyblock = 'MakeCp'

name = 'AdapterRemoval'
version = '2.2.0'

homepage = 'https://github.com/MikkelSchubert/%(namelower)s'
description = """AdapterRemoval searches for and removes remnant adapter sequences
 from High-Throughput Sequencing (HTS) data and (optionally) trims low quality bases
 from the 3' end of reads following adapter removal."""

toolchain = {'name': 'foss', 'version': '2016b'}
toolchainopts = {'pic': True}

source_urls = ['https://github.com/MikkelSchubert/%(namelower)s/archive/']
sources = ['v%(version)s.tar.gz']
checksums = ['20fdbdef2ecfd74af8d078f3f63e9444926dab1dd02b7dcef7c2aee77cb73b60']

files_to_copy = [(['build/%(name)s'], 'bin'), (['build/%(name)s.1'], 'share/man/man1')]

dependencies = [
    ('bzip2', '1.0.6'),
    ('zlib', '1.2.8'),
]

sanity_check_paths = {
    'files': ['bin/%(name)s'],
    'dirs': ['share']
}

sanity_check_commands = [('AdapterRemoval', '--version')]

moduleclass = 'bio'
