From e355fc16ad5a257ad4e2fb075b32ed3c5b19e0d1 Mon Sep 17 00:00:00 2001 From: darmac Date: Sat, 12 Sep 2020 22:45:05 +0800 Subject: Add new package: dbxtool (#18651) --- .../repos/builtin/packages/dbxtool/package.py | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 var/spack/repos/builtin/packages/dbxtool/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/dbxtool/package.py b/var/spack/repos/builtin/packages/dbxtool/package.py new file mode 100644 index 0000000000..3a7524bf5f --- /dev/null +++ b/var/spack/repos/builtin/packages/dbxtool/package.py @@ -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') -- cgit v1.2.3-70-g09d2