Add new package: dbxtool (#18651)

This commit is contained in:
darmac 2020-09-12 22:45:05 +08:00 committed by GitHub
parent 3211ac5136
commit e355fc16ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,25 @@
# Copyright 2013-2020 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 Dbxtool(MakefilePackage):
"""tool for managing dbx updates installed on a machine."""
homepage = "https://github.com/rhboot/dbxtool"
url = "https://github.com/rhboot/dbxtool/archive/dbxtool-8.tar.gz"
version('8', sha256='196d9475f7cf3aa52d8e0c29c20affb7c903512e13895edb6296caf02d4a983b')
version('7', sha256='486b8a7cf4e149ab9630783e5259d6af70a7022209e1e48fbee9b54c48535c5e')
depends_on('efivar')
depends_on('popt')
def setup_build_environment(self, env):
env.prepend_path('CPATH', self.spec['efivar'].prefix.include.efivar)
def install(self, spec, prefix):
make('PREFIX={0}'.format(prefix), 'install')