29 lines
1.4 KiB
Ruby
29 lines
1.4 KiB
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.3.tar.gz"
|
|
sha256 "6529d521a7fa006808cd07331f31256e91773ec7e1a0c7839cd14884034fb185"
|
|
license "MIT"
|
|
head "https://github.com/JamesClonk/vultr.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "bf784fbadf85aee96b6863bbd93cdb2e3c759e1c933474d318eda62142df3953"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d0d5bffa07a97813ca4eece9a0e396d8a0c76fdd738d5041ad5d82385cb05dda"
|
|
sha256 cellar: :any_skip_relocation, monterey: "cae9e8ccd5b05b5675a6db499a9f4fa88f7e592ed03e377b5abcadfe1a9c399d"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "e7a764a5516eaf4923bd134a85f2a6a9c4f2b9537ff7b585e8a32a6581975cab"
|
|
sha256 cellar: :any_skip_relocation, catalina: "b3fb6e155013b41bd2b48202e70ef0236be3e24b3f87cf1f1234e7a09e2e7e97"
|
|
sha256 cellar: :any_skip_relocation, mojave: "7348b1e615d088dc03781613b17b7187827e9cc98e743fa472c617876f6a543a"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "76f88487aacbd3d10decefd24e88e9e34e9a956c9b32bb325b34a37caebf71aa"
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
system "go", "build", *std_go_args, "-ldflags", "-s -w"
|
|
end
|
|
|
|
test do
|
|
system bin/"vultr", "version"
|
|
end
|
|
end
|