mirror of
https://github.com/darwincereska/homebrew-software.git
synced 2026-02-12 04:04:41 -05:00
init: Added ttymer formula
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
class Ttymer < Formula
|
||||||
|
version "1.0.1"
|
||||||
|
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 ""
|
||||||
|
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
|
||||||
Reference in New Issue
Block a user