summaryrefslogtreecommitdiff
path: root/Formula/amm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Formula/amm.rb')
-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