blob: c3d0ba5b1c552b0c74a907af4b09980d03ed6069 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Copyright 2013-2019 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 Rclone(Package):
"""Rclone is a command line program to sync files and directories
to and from various cloud storage providers"""
homepage = "http://rclone.org"
url = "https://github.com/ncw/rclone/releases/download/v1.43/rclone-v1.43.tar.gz"
version('1.43', sha256='d30527b00cecb4e5e7188dddb78e5cec62d67cf2422dab82190db58512b5a4e3')
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('build')
mkdirp(prefix.bin)
install('rclone', prefix.bin)
|