homebrew-core/Formula/vultr.rb
2019-03-22 09:27:54 +01:00

27 lines
915 B
Ruby

class Vultr < Formula
desc "Command-line tool for Vultr"
homepage "https://jamesclonk.github.io/vultr"
url "https://github.com/JamesClonk/vultr/archive/v2.0.0.tar.gz"
sha256 "bc57516c73a2ec5565ec09b6c5fe18f82a35501f70beb423391c55d0c4b98592"
head "https://github.com/JamesClonk/vultr.git"
bottle do
cellar :any_skip_relocation
sha256 "bd7df17a5c5a6e655ceac39c6e78e432b270d65f7bacd8c61c4e296e8e455171" => :mojave
sha256 "774bd75bdaea3db4479d9db76f9fdf02a3d6a53502f20c58f1d79790c407a7f8" => :high_sierra
sha256 "f63560fb4b5d0d784804036262822519a5fed6a33822257e7ffe21e5b307a81a" => :sierra
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/JamesClonk").mkpath
ln_s buildpath, buildpath/"src/github.com/JamesClonk/vultr"
system "go", "build", "-o", bin/"vultr"
end
test do
system bin/"vultr", "version"
end
end