Skip to content

Commit

Permalink
Merge pull request Homebrew#205369 from Homebrew/ubi
Browse files Browse the repository at this point in the history
ubi 0.4.1 (new formula)
  • Loading branch information
BrewTestBot authored Jan 25, 2025
2 parents 0fa84b9 + 2abbb32 commit 4e809fd
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3321,6 +3321,7 @@ tzdb
tzdiff
u-boot-tools
uade
ubi
ucloud
uffizzi
uftrace
Expand Down
35 changes: 35 additions & 0 deletions Formula/u/ubi.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
class Ubi < Formula
desc "Universal Binary Installer"
homepage "https://github.com/houseabsolute/ubi"
url "https://github.com/houseabsolute/ubi/archive/refs/tags/v0.4.1.tar.gz"
sha256 "130187d416b9b1c1ebbd40bc8c9cc4860564c199e15140f49d8394f0c468bee6"
license any_of: ["Apache-2.0", "MIT"]
head "https://github.com/houseabsolute/ubi.git", branch: "master"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "fdd4d108a918e05399f76255916c3d802e3c666f0e355ceff6bbf455643dcf2c"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "31540cd3aa954cc6853bcdca1b234cc9812410dd2b5d65198aba992aeb5af1d3"
sha256 cellar: :any_skip_relocation, arm64_ventura: "8a4b09fa88c18b6e0e5ed52d08a4af2cca9b474d1680ed6db415925fa83f4d8d"
sha256 cellar: :any_skip_relocation, sonoma: "bf18f776622d0e46fcf90a01690ae3b61eb52f16a01502ecb98fe2f1742fa737"
sha256 cellar: :any_skip_relocation, ventura: "c1134cc47586bd6a399f7b5b8ddc877a2c8b90f847c52b02c2b2e955f30277cf"
sha256 cellar: :any_skip_relocation, x86_64_linux: "91d8015527da74c8ed074e0ff4f0baeb4292e158673ad575f72560520c3a20d3"
end

depends_on "pkgconf" => :build
depends_on "rust" => :build

depends_on "xz" # required for lzma support

uses_from_macos "bzip2"

def install
system "cargo", "install", *std_cargo_args(path: "ubi-cli")
end

test do
assert_match version.to_s, shell_output("#{bin}/ubi --version")

system bin/"ubi", "--project", "houseabsolute/precious"
system testpath/"bin/precious", "--version"
end
end

0 comments on commit 4e809fd

Please sign in to comment.