diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-04-29 21:20:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 08:20:05 -0500 |
commit | 0d9b0031694e7fdcde42d36a0df5694cb1c37bd9 (patch) | |
tree | a7e51c2382746994b16a6789766d6d30283f86ed /var | |
parent | 39bbe8f9d489e2e53a857b725b5d88236e54fee6 (diff) | |
download | spack-0d9b0031694e7fdcde42d36a0df5694cb1c37bd9.tar.gz spack-0d9b0031694e7fdcde42d36a0df5694cb1c37bd9.tar.bz2 spack-0d9b0031694e7fdcde42d36a0df5694cb1c37bd9.tar.xz spack-0d9b0031694e7fdcde42d36a0df5694cb1c37bd9.zip |
Add new package: trident (#16342)
* Add new package: trident
* remove unused source code
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/trident/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/trident/package.py b/var/spack/repos/builtin/packages/trident/package.py new file mode 100644 index 0000000000..6e13a864dc --- /dev/null +++ b/var/spack/repos/builtin/packages/trident/package.py @@ -0,0 +1,28 @@ +# 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 Trident(Package): + """Trident is a fully supported open source project maintained by + NetApp. It has been designed from the ground up to help you meet + the sophisticated persistence demands of your containerized + applications.""" + + homepage = "https://netapp-trident.readthedocs.io" + url = "https://github.com/NetApp/trident/archive/v20.01.1.tar.gz" + + version('20.01.1', sha256='02ba92e569916b98fb1b563c5ef03a94fd7981c3ac1ecb47e69ebb45471dc976') + version('20.01.0', sha256='5de190579acf62f5e9945dfd45aeb21989272c4972e85cb10256b7ec605c29c7') + + depends_on('go', type='build') + + def install(self, spec, prefix): + mkdirp(prefix.bin) + go = which('go') + go('build', '-o', prefix.bin) + with working_dir('cli'): + go('build', '-o', prefix.bin.tridentctl) |