The formula and manifest the wai-v0.6.0 release wrote and attached (open-standards 0e4487a92), each archive's URL and SHA-256 checked against the release's .sha256 files. Co-Authored-By: Claude Opus 5.5 <[email protected]>
43 lines
2 KiB
Ruby
43 lines
2 KiB
Ruby
class Wai < Formula
|
|
desc "WAI, an open media standard: its command line, and a local relay and room service"
|
|
homepage "https://wai.transaction.science/docs/quickstart/"
|
|
version "0.6.0"
|
|
license "Apache-2.0"
|
|
on_macos do
|
|
on_arm do
|
|
url "https://git.transaction.science/Transaction-Science/open-standards/releases/download/wai-v0.6.0/wai-0.6.0-aarch64-apple-darwin.tar.gz"
|
|
sha256 "f3fc5bb2d9c67b4cbceb0117f661fca23a9c4618e5161bc1d64f84050416c23a"
|
|
end
|
|
on_intel do
|
|
url "https://git.transaction.science/Transaction-Science/open-standards/releases/download/wai-v0.6.0/wai-0.6.0-x86_64-apple-darwin.tar.gz"
|
|
sha256 "c008dc6469e5a7f9c144d3539de252819a7160a9b79889b05c0cfdc65d9effd2"
|
|
end
|
|
end
|
|
on_linux do
|
|
on_arm do
|
|
url "https://git.transaction.science/Transaction-Science/open-standards/releases/download/wai-v0.6.0/wai-0.6.0-aarch64-unknown-linux-musl.tar.gz"
|
|
sha256 "4c6d3df3c4fc0a1b25bef15ec685806f215f7d227348d9e6bb28e9afe0dcfb2a"
|
|
end
|
|
on_intel do
|
|
url "https://git.transaction.science/Transaction-Science/open-standards/releases/download/wai-v0.6.0/wai-0.6.0-x86_64-unknown-linux-musl.tar.gz"
|
|
sha256 "a47364844da675cab11ccb97a219473e071c3bdebe449281745900628d389f88"
|
|
end
|
|
end
|
|
|
|
# The quantum command line is a formula of its own: one copy, whichever is installed first.
|
|
depends_on "transaction-science/tap/wai-quantum"
|
|
|
|
def install
|
|
# bin/ and share/wai/ side by side: `wai dev` finds the relay, the room service, the room
|
|
# client and WAI Studio beside its own binary. The archive's bin/wai-quantum is install.sh's;
|
|
# here it is the dependency's.
|
|
bin.install "bin/wai", "bin/wai-relay", "bin/wai-room", "bin/wai-ingest", "bin/wai-remote-host", "bin/wai-pack"
|
|
(share/"wai").install "share/wai/web", "share/wai/studio"
|
|
end
|
|
|
|
test do
|
|
assert_match "video-room", shell_output("#{bin}/wai create --list")
|
|
assert_match "delivered-verified", shell_output("#{bin}/wai hello #{testpath}/hello")
|
|
assert_match "verified", shell_output("#{bin}/wai verify #{testpath}/hello")
|
|
end
|
|
end
|