summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAlec Scott <alecbcs@gmail.com>2021-11-04 17:12:34 -0700
committerGitHub <noreply@github.com>2021-11-04 17:12:34 -0700
commit82b45d112f880dffd3f0b691268013c094283e34 (patch)
tree3a260b59a2d6e71e7bb50e03cac2376bce0996e4 /var
parent839057e98db8fa4840cd3a56526fdb073c03908b (diff)
downloadspack-82b45d112f880dffd3f0b691268013c094283e34.tar.gz
spack-82b45d112f880dffd3f0b691268013c094283e34.tar.bz2
spack-82b45d112f880dffd3f0b691268013c094283e34.tar.xz
spack-82b45d112f880dffd3f0b691268013c094283e34.zip
[New Package] Add Restic v0.12.1 (#27208)
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/restic/package.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/restic/package.py b/var/spack/repos/builtin/packages/restic/package.py
new file mode 100644
index 0000000000..1f9b5f24fa
--- /dev/null
+++ b/var/spack/repos/builtin/packages/restic/package.py
@@ -0,0 +1,28 @@
+# Copyright 2013-2021 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 Restic(Package):
+ """Fast, secure, efficient backup program."""
+
+ homepage = "https://restic.net"
+ url = "https://github.com/restic/restic/releases/download/v0.12.1/restic-0.12.1.tar.gz"
+
+ maintainers = ['alecbcs']
+
+ version('0.12.1', sha256='a9c88d5288ce04a6cc78afcda7590d3124966dab3daa9908de9b3e492e2925fb')
+
+ depends_on("go", type='build')
+
+ def setup_build_environment(self, env):
+ # Point GOPATH at the top of the staging dir for the build step.
+ env.prepend_path('GOPATH', self.stage.path)
+
+ def install(self, spec, prefix):
+ go('run', 'build.go')
+ mkdirp(prefix.bin)
+ install('restic', prefix.bin)