# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *
import os


class Phred(MakefilePackage):
    """The phred software reads DNA sequencing trace files, calls bases,
       and assigns a quality value to each called base."""

    homepage = "http://www.phrap.org/phredphrapconsed.html"
    url      = "file://{0}/phred.tar.gz".format(os.getcwd())

    version('071220', sha256='26212f13fa906c1ca0af61f48d52a5f2c1aacba802bf729ba65ca5222463abce')

    def install(self, spec, prefix):
        mkdirp(prefix.bin)
        install('phred', prefix.bin)
