summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Ilin <me@romanilin.is>2026-06-13 00:36:39 +0300
committerRoman Ilin <me@romanilin.is>2026-06-13 00:36:39 +0300
commit829c3f8061ea31e2a5cdb809711c3cab3c222ce9 (patch)
treec51eb0b66f4c6c2aa26a5b4b2ca95ec2cfad05b2
downloadhomebrew-tap-829c3f8061ea31e2a5cdb809711c3cab3c222ce9.tar.gz
-rw-r--r--Formula/amm.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Formula/amm.rb b/Formula/amm.rb
new file mode 100644
index 0000000..660e8d2
--- /dev/null
+++ b/Formula/amm.rb
@@ -0,0 +1,25 @@
+class Amm < Formula
+ desc "Appearance mode manager"
+ homepage "https://git.romanilin.is/amm.git"
+ url "https://git.romanilin.is/amm.git/snapshot/amm-0.0.0.tar.gz"
+ license "MIT-0"
+
+ def install
+ system "make", "install-bin", "PREFIX=#{prefix}"
+ prefix.install "lua", "plugin", "tmux", "amm.el", "amm.tmux"
+ end
+
+ service do
+ run opt_bin/"ammd"
+ keep_alive true
+ run_type :immediate
+ environment_variables PATH: std_service_path_env
+ log_path var/"log/amm.out.log"
+ error_log_path var/"log/amm.err.log"
+ end
+
+ test do
+ system "#{bin}/amm", "--help"
+ system "#{bin}/ammd", "--help"
+ end
+end