summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/cowsay/package.py
blob: 813c39dd7054f8c0a893a630622c8ec15a7aa0a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2013-2022 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.package import *


class Cowsay(Package):
    """A program that generates ASCII pictures of a cow with a message."""

    homepage = "https://github.com/tnalpgge/rank-amateur-cowsay"
    url      = "https://github.com/tnalpgge/rank-amateur-cowsay/archive/cowsay-3.04.tar.gz"

    version('3.04', sha256='d8b871332cfc1f0b6c16832ecca413ca0ac14d58626491a6733829e3d655878b')

    depends_on('perl', type=('run'))

    def install(self, spec, prefix):
        install_sh = Executable('./install.sh')
        install_sh(prefix)