-
Notifications
You must be signed in to change notification settings - Fork 0
/
bendsql.rb
28 lines (24 loc) · 964 Bytes
/
bendsql.rb
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
28
class Bendsql < Formula
desc "Databend Native Command-Line Tool"
homepage "https://databend.rs"
url "https://github.com/datafuselabs/bendsql/archive/refs/tags/v0.20.1.tar.gz"
sha256 "8fd2bdaabf592930a136fa32194dffa52288a1c4b140e91ccbad421c72192ab0"
license "Apache-2.0"
bottle do
root_url "https://github.com/databendcloud/homebrew-tap/releases/download/bendsql-0.20.1"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "244ddc3c965c7e42197810363e3a7424b6e30bc589a49add36de0f2806fe1c96"
sha256 cellar: :any_skip_relocation, ventura: "cd2b219ae5fa322aed82d711ddc187a08e2bac230d75bdce5dc3e2a953aa3bd3"
end
depends_on "rust" => :build
def install
ENV["BENDSQL_BUILD_INFO"] = "homebrew"
build_root = buildpath/"cli"
cd build_root do
system "cargo", "install", *std_cargo_args
end
end
test do
output = shell_output("#{bin}/bendsql -V")
assert_match "bendsql 0.20.1-homebrew\n", output
end
end