Skip to content

Commit

Permalink
bzip3: add 1.2.2 bottle.
Browse files Browse the repository at this point in the history
  • Loading branch information
gromgit committed Jan 16, 2023
1 parent b2f744f commit f940cac
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Formula/bzip3.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
class Bzip3 < Formula
desc "Better and stronger spiritual successor to BZip2"
homepage "https://github.com/kspalaiologos/bzip3"
url "https://github.com/kspalaiologos/bzip3/releases/download/1.2.2/bzip3-1.2.2.tar.gz"
sha256 "19e8d379f48610f945a04a988fd0c330ff6613b3df96405d56bed35a7d216dee"
license "LGPL-3.0-only"

bottle do
root_url "https://github.com/gromgit/homebrew-core-mojave/releases/download/bzip3"
sha256 cellar: :any, mojave: "2936a6a0fbba03e80e60765500e9426625009f21594bdf6d356d95b1573a9925"
end

def install
system "./configure", *std_configure_args, "--disable-silent-rules", "--disable-arch-native"
system "make", "install"
end

test do
testfilepath = testpath + "sample_in.txt"
zipfilepath = testpath + "sample_in.txt.bz3"

testfilepath.write "TEST CONTENT"

system bin/"bzip3", testfilepath
system bin/"bunzip3", "-f", zipfilepath

assert_equal "TEST CONTENT", testfilepath.read
end
end

0 comments on commit f940cac

Please sign in to comment.