# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Pablo Escobar Lopez
# sciCORE - University of Basel
# SIB Swiss Institute of Bioinformatics

easyblock = 'MakeCp'

name = 'STAR'
version = '2.5.2a'

homepage = 'https://github.com/alexdobin/STAR'
description = """ STAR aligns RNA-seq reads to a reference genome using
 unlocal_compressed local_suffix arrays. """

toolchain = {'name': 'goolf', 'version': '1.7.20'}
toolchainopts = {'openmp': True}

source_urls = ['https://github.com/alexdobin/STAR/archive/']
sources = ['%(version)s.tar.gz']

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

start_dir = 'source'

buildopts = ' STAR && make STARlong'

parallel = 1

files_to_copy = [
    (["source/STAR", "source/STARlong"], "bin"),
    "CHANGES.md",
    "doc",
    "extras",
    "LICENSE",
    "README.md",
    "RELEASEnotes.md"
]

sanity_check_paths = {
    'files': ["bin/STAR", "bin/STARlong"],
    'dirs': [],
}

moduleclass = 'bio'