From 829c3f8061ea31e2a5cdb809711c3cab3c222ce9 Mon Sep 17 00:00:00 2001 From: Roman Ilin Date: Sat, 13 Jun 2026 00:36:39 +0300 Subject: --- Formula/amm.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Formula/amm.rb 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 -- cgit