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