homebrew-core/Formula/lxc.rb
2019-04-05 12:25:21 +02:00

27 lines
839 B
Ruby

class Lxc < Formula
desc "CLI client for interacting with LXD"
homepage "https://linuxcontainers.org"
url "https://linuxcontainers.org/downloads/lxd/lxd-3.12.tar.gz"
sha256 "267869f1f2cab63684525ad070c5ec0d6f4c75b5fa1d90354b40945f03c14c54"
bottle do
cellar :any_skip_relocation
sha256 "5df29974cde84e9d7c5124c85b9f546af785ba019412cf63c6b437a28150222d" => :mojave
sha256 "3c49091e644ecbe12aa7a4509129acfaec16e4447ab7867b424b92294643c1d2" => :high_sierra
sha256 "b959c03e0e0d98a8e94343792f644693a0b018654e12fae00d035ff87f79cce1" => :sierra
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