32 lines
1.3 KiB
Ruby
32 lines
1.3 KiB
Ruby
class Xxhash < Formula
|
|
desc "Extremely fast non-cryptographic hash algorithm"
|
|
homepage "https://github.com/Cyan4973/xxHash"
|
|
url "https://github.com/Cyan4973/xxHash/archive/v0.8.0.tar.gz"
|
|
sha256 "7054c3ebd169c97b64a92d7b994ab63c70dd53a06974f1f630ab782c28db0f4f"
|
|
license "BSD-2-Clause"
|
|
|
|
livecheck do
|
|
url :stable
|
|
strategy :github_latest
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_big_sur: "57d1afb3141ad913e80ab59c94941984f594d128ae0c39e210d90ecfdb6c6218"
|
|
sha256 cellar: :any, big_sur: "13fd891c5e884b86cd7273192bbea63d56e4f8f8c461009ee2050af09eeb2161"
|
|
sha256 cellar: :any, catalina: "06ea145c49451bf37f2a73139100f436b4bf9f275b77b9dadcb5d36a7b07fae1"
|
|
sha256 cellar: :any, mojave: "df75758d4b4756b23530ec54e2289148652e3f54d6f9a8e45c43f662bc69d7c2"
|
|
sha256 cellar: :any, high_sierra: "821f8c8df3ada242236f2f231ae72cdcaf23412a5e22458c23df453631129300"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "230c344b7024d0c96f7ced3e3cfa7d8dccd6ba2176ed12f45663b75149cb86ce"
|
|
end
|
|
|
|
def install
|
|
system "make"
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
(testpath/"leaflet.txt").write "No computer should be without one!"
|
|
assert_match(/^67bc7cc242ebc50a/, shell_output("#{bin}/xxhsum leaflet.txt"))
|
|
end
|
|
end
|