diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/tty-clock.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/tty-clock.rb b/Library/Formula/tty-clock.rb new file mode 100644 index 000000000..cf0e148b7 --- /dev/null +++ b/Library/Formula/tty-clock.rb @@ -0,0 +1,18 @@ +require 'formula' + +class TtyClock < Formula + homepage 'https://github.com/xorg62/tty-clock' + url 'https://github.com/xorg62/tty-clock/archive/v0.1.tar.gz' + sha1 '5350a9c6c391f8a87fd8f467ca3aeb932585e69e' + head 'https://github.com/xorg62/tty-clock.git' + + def install + inreplace "Makefile", "/usr/local/bin/", "#{bin}/" + system "make" + system "make install" + end + + test do + system "#{bin}/tty-clock -i" + end +end |
