btop++: add new package (#34399)

This commit is contained in:
Massimiliano Culpo 2022-12-09 12:59:46 +01:00 committed by GitHub
parent 38d37897d4
commit d37dc37504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,26 @@
# 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 Btop(MakefilePackage):
"""Resource monitor that shows usage and stats for processor,
memory, disks, network and processes.
"""
homepage = "https://github.com/aristocratos/btop#documents"
url = "https://github.com/aristocratos/btop/archive/refs/tags/v1.2.13.tar.gz"
maintainers = ["alalazo"]
version("1.2.13", sha256="668dc4782432564c35ad0d32748f972248cc5c5448c9009faeb3445282920e02")
conflicts("%gcc@:9", msg="C++ 20 is required")
build_targets = ["STATIC=true", "VERBOSE=true"]
@property
def install_targets(self):
return [f"PREFIX={self.prefix}", "install"]