summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/byte-unixbench/package.py
blob: 6cd3ec223bd6ec9e0193b2e273ab24d5b4856bca (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-2023 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 ByteUnixbench(MakefilePackage):
    """UnixBench is the original BYTE UNIX benchmark suite."""

    homepage = "https://github.com/kdlucas/byte-unixbench"
    url = "https://github.com/kdlucas/byte-unixbench/archive/v5.1.3.tar.gz"

    version("5.1.3", sha256="3a6bb00f270a5329682dff20fd2c1ab5332ef046eb54a96a0d7bd371005d31a3")

    build_directory = "UnixBench"

    @property
    def build_targets(self):
        return [f"CC={spack_cc}"]

    def install(self, spec, prefix):
        with working_dir(self.build_directory):
            install_tree(".", prefix)