summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/trimal/package.py
blob: 68d9efc6af7e350b8b3c6ea8ca9bcb1e6caea1a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright 2013-2018 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 *


class Trimal(MakefilePackage):
    """A tool for automated alignment trimming in large-scale
       phylogenetic analyses"""

    homepage = "https://github.com/scapella/trimal"
    url      = "https://github.com/scapella/trimal/archive/v1.4.1.tar.gz"

    version('1.4.1', sha256='cb8110ca24433f85c33797b930fa10fe833fa677825103d6e7f81dd7551b9b4e')

    build_directory = 'source'

    def install(self, sinstall_treepec, prefix):
        mkdirp(prefix.bin)
        binaries = ['trimal', 'readal', 'statal']
        with working_dir(self.build_directory):
            for b in binaries:
                install(b, prefix.bin)