Ruby 36 lines
class Eeco < Formula
desc "Self-maintaining workflow ecosystem for a coding project"
homepage "https://github.com/ajhahnde/eeco"
version "0.2.1"
license "Apache-2.0"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/ajhahnde/eeco/releases/download/v0.2.1/eeco_v0.2.1_darwin_arm64.tar.gz"
sha256 "09138f62f71bffddfc263a475d09554cc8dcbd37c61e137f64bdf36137710ef2"
else
url "https://github.com/ajhahnde/eeco/releases/download/v0.2.1/eeco_v0.2.1_darwin_amd64.tar.gz"
sha256 "2c99648f11a5e2b03f68b9cb4ad85c228daea5866879b6ce86ef5bcefbe52bdc"
end
end
on_linux do
if Hardware::CPU.arm?
url "https://github.com/ajhahnde/eeco/releases/download/v0.2.1/eeco_v0.2.1_linux_arm64.tar.gz"
sha256 "b46a84c1f1f786c50873aae9a2c1a8140f3f4b6c553721a211e5b1cd92ae08c2"
else
url "https://github.com/ajhahnde/eeco/releases/download/v0.2.1/eeco_v0.2.1_linux_amd64.tar.gz"
sha256 "b6e06ee75b26121823e829d7c36be5ee48fdac17d13e24da3a7ba4c9c6bbcb50"
end
end
def install
bin.install "eeco"
man1.install "eeco.1"
end
test do
assert_match version.to_s, shell_output("#{bin}/eeco version")
end
end