Skip to content

Commit

Permalink
brotli: update 1.1.0 bottle.
Browse files Browse the repository at this point in the history
  • Loading branch information
gromgit committed Sep 4, 2024
1 parent e11a18b commit 764e8bc
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Formula/b/brotli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
class Brotli < Formula
desc "Generic-purpose lossless compression algorithm by Google"
homepage "https://github.com/google/brotli"
url "https://github.com/google/brotli/archive/refs/tags/v1.1.0.tar.gz"
mirror "http://fresh-center.net/linux/misc/brotli-1.1.0.tar.gz"
mirror "http://fresh-center.net/linux/misc/legacy/brotli-1.1.0.tar.gz"
sha256 "e720a6ca29428b803f4ad165371771f5398faba397edf6778837a18599ea13ff"
license "MIT"
head "https://github.com/google/brotli.git", branch: "master"

bottle do
root_url "https://github.com/gromgit/homebrew-core-aarch64_linux/releases/download/brotli-1.1.0"
sha256 cellar: :any_skip_relocation, aarch64_linux: "7e709c134266c4a8d298f4e6922d6cad0eb3ff212867fc5cdf1a134a39053593"
end

depends_on "cmake" => :build

def install
system "cmake", ".", *std_cmake_args
system "make", "VERBOSE=1"
system "ctest", "-V"
system "make", "install"
end

test do
(testpath/"file.txt").write("Hello, World!")
system bin/"brotli", "file.txt", "file.txt.br"
system bin/"brotli", "file.txt.br", "--output=out.txt", "--decompress"
assert_equal (testpath/"file.txt").read, (testpath/"out.txt").read
end
end

0 comments on commit 764e8bc

Please sign in to comment.