homebrew-core/Formula/lxc.rb
2017-09-20 00:41:50 -07:00

26 lines
749 B
Ruby

class Lxc < Formula
desc "CLI client for interacting with LXD"
homepage "https://linuxcontainers.org"
url "https://linuxcontainers.org/downloads/lxd/lxd-2.18.tar.gz"
sha256 "55790f952d01f83a6c59ae9a2a32e16f5cbd63ac0337c99825e9c0484369677d"
bottle do
cellar :any_skip_relocation
sha256 "ca23c481d3f885e1fdaa9835b4e16a94416f0ede35ddd1c382f05c378427760c" => :sierra
sha256 "b1e61a10fb2308750da39112c7434e0e029b3e0f4cb323e5a0ceb561eedf1e25" => :el_capitan
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["GOBIN"] = bin
ln_s buildpath/"dist/src", buildpath/"src"
system "go", "install", "-v", "github.com/lxc/lxd/lxc"
end
test do
system "#{bin}/lxc", "--version"
end
end