class Ttymer < Formula version "1.0.2" desc "A terminal timer app written in Go" homepage "https://github.com/darwincereska/ttymer" url "https://github.com/darwincereska/ttymer/archive/refs/tags/v#{version}.tar.gz" sha256 "fb37ff97474d3dd7dacdc9e244bd1786b1f15ff8f2b0a5d6fd4d0f0c34dc295e" license "MIT" depends_on "go" => :build def install if OS.mac? system "make", "build-darwin" elsif OS.linux? system "make", "build-linux" end bin.install Dir["bin/ttymer-*"].first => "ttymer" end test do assert_match version.to_s, shell_output("#{bin}/ttymer --version", 1) end end