aboutsummaryrefslogtreecommitdiff
path: root/Formula/td.rb
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-29 07:50:24 -0300
committerEuAndreh <eu@euandre.org>2023-03-29 09:03:06 -0300
commitbaefa645062d36d5f335f05bb7377ccc21a017c9 (patch)
tree5ab70b5c0a4d1e45ec195f37d9ff70c207410862 /Formula/td.rb
parentmv Formula/ src/homebrew/ (diff)
downloadpackage-repository-baefa645062d36d5f335f05bb7377ccc21a017c9.tar.gz
package-repository-baefa645062d36d5f335f05bb7377ccc21a017c9.tar.xz
Revert "mv Formula/ src/homebrew/"
This reverts commit c5e9b62f0193ce802955ebdc8c128a21f3ca3097. The "Formula/" path is indeed hardcoded: https://github.com/Homebrew/brew//blob/fb70af3977b9599f561b05a6237912bf87aa7014/Library/Homebrew/formula_path.sh#L52
Diffstat (limited to 'Formula/td.rb')
-rw-r--r--Formula/td.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Formula/td.rb b/Formula/td.rb
new file mode 100644
index 0000000..eeb58d2
--- /dev/null
+++ b/Formula/td.rb
@@ -0,0 +1,17 @@
+class Td < Formula
+ desc 'Minimalistic bug tracker CLI'
+ homepage 'https://euandre.org/s/td/'
+ url 'https://euandre.org/git/td/snapshot/td-4a8a7a2662c94b2581f587e9a4b81feba4f5e7d8.tar.xz'
+ sha256 'a25561ae8062788bfb79df2de5f26e5f1100638fbeabff934490cdf0a9dde105'
+ license 'AGPL-3.0-or-later'
+
+ def install
+ system 'make', "PREFIX=#{prefix}"
+ system 'make', 'check', "PREFIX=#{prefix}"
+ system 'make', 'install', "PREFIX=#{prefix}"
+ end
+
+ test do
+ system "#{bin}/td", '-V'
+ end
+end