25 lines
791 B
Ruby
25 lines
791 B
Ruby
class Uni < Formula
|
|
desc "Unicode database query tool for the command-line"
|
|
homepage "https://github.com/arp242/uni"
|
|
url "https://github.com/arp242/uni/archive/v1.1.1.tar.gz"
|
|
sha256 "d29fdd8f34f726e6752e87f554d8ea73e324b7729afaf4bd52fcae04c7638757"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "d6a995e94c8bc6f9b74a1eb370b5aa348a7377e9170453820400da83641cef66" => :catalina
|
|
sha256 "1a2f04a3dd21f6d2c2ea16d3683f936e1d8310dd4b2d503aa8a60d67b6f24367" => :mojave
|
|
sha256 "e4b8e98523d14eb9cba3991946deb0cea86c09acfb65d175c04d4233ec32eceb" => :high_sierra
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
system "go", "build", "-o", bin/"uni"
|
|
end
|
|
|
|
test do
|
|
assert_match "CLINKING BEER MUGS", shell_output("#{bin}/uni identify 🍻")
|
|
end
|
|
end
|