Skip to content

Commit

Permalink
pbzx: add 1.0.2 bottle.
Browse files Browse the repository at this point in the history
  • Loading branch information
gromgit committed Jan 17, 2023
1 parent 78c1f77 commit 8ee1cba
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Formula/pbzx.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class Pbzx < Formula
desc "Parser for pbzx stream"
homepage "https://github.com/NiklasRosenstein/pbzx/"
url "https://github.com/NiklasRosenstein/pbzx/archive/v1.0.2.tar.gz"
sha256 "33db3cf9dc70ae704e1bbfba52c984f4c6dbfd0cc4449fa16408910e22b4fd90"
license "GPL-3.0-or-later"
head "https://github.com/NiklasRosenstein/pbzx.git", branch: "master"

bottle do
root_url "https://github.com/gromgit/homebrew-core-mojave/releases/download/pbzx"
sha256 cellar: :any, mojave: "2296f01746acc65b9e49357d7c9e67292cb10789a2759dba7e6bbabb9e7a0bec"
end

# pbzx is a format employed OSX disk images
depends_on :macos
depends_on "xz"

def install
system ENV.cc, "-llzma", "-lxar", "pbzx.c", "-o", "pbzx"
bin.install "pbzx"
end

test do
assert_match "0 blocks", shell_output("#{bin}/pbzx -n Payload | cpio -i 2>&1")

assert_match version.to_s, shell_output("#{bin}/pbzx -v")
end
end

0 comments on commit 8ee1cba

Please sign in to comment.