Skip to content

Commit 764e8bc

Browse files
committed
brotli: update 1.1.0 bottle.
1 parent e11a18b commit 764e8bc

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Formula/b/brotli.rb

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
class Brotli < Formula
2+
desc "Generic-purpose lossless compression algorithm by Google"
3+
homepage "https://github.com/google/brotli"
4+
url "https://github.com/google/brotli/archive/refs/tags/v1.1.0.tar.gz"
5+
mirror "http://fresh-center.net/linux/misc/brotli-1.1.0.tar.gz"
6+
mirror "http://fresh-center.net/linux/misc/legacy/brotli-1.1.0.tar.gz"
7+
sha256 "e720a6ca29428b803f4ad165371771f5398faba397edf6778837a18599ea13ff"
8+
license "MIT"
9+
head "https://github.com/google/brotli.git", branch: "master"
10+
11+
bottle do
12+
root_url "https://github.com/gromgit/homebrew-core-aarch64_linux/releases/download/brotli-1.1.0"
13+
sha256 cellar: :any_skip_relocation, aarch64_linux: "7e709c134266c4a8d298f4e6922d6cad0eb3ff212867fc5cdf1a134a39053593"
14+
end
15+
16+
depends_on "cmake" => :build
17+
18+
def install
19+
system "cmake", ".", *std_cmake_args
20+
system "make", "VERBOSE=1"
21+
system "ctest", "-V"
22+
system "make", "install"
23+
end
24+
25+
test do
26+
(testpath/"file.txt").write("Hello, World!")
27+
system bin/"brotli", "file.txt", "file.txt.br"
28+
system bin/"brotli", "file.txt.br", "--output=out.txt", "--decompress"
29+
assert_equal (testpath/"file.txt").read, (testpath/"out.txt").read
30+
end
31+
end

0 commit comments

Comments
 (0)