aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-03-07 19:17:02 +0100
committerTeddy Wing2021-03-07 19:17:02 +0100
commitb9df8c8769b5aec44d2462a217009e501090f5c1 (patch)
treefde51e6a479d36f58e3f38912d5b20bc837fb7f8
parent551e1b6165fb9c564ffab69dd8ed71e57d9a5149 (diff)
downloadhomebrew-formulae-b9df8c8769b5aec44d2462a217009e501090f5c1.tar.bz2
invert-catalina-invert 0.0.1
-rw-r--r--HomebrewFormula/invert-catalina-invert.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/HomebrewFormula/invert-catalina-invert.rb b/HomebrewFormula/invert-catalina-invert.rb
new file mode 100644
index 0000000..37d30c0
--- /dev/null
+++ b/HomebrewFormula/invert-catalina-invert.rb
@@ -0,0 +1,35 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at https://mozilla.org/MPL/2.0/.
+
+class InvertCatalinaInvert < Formula
+ desc "Re-good inverting screen colours"
+ homepage "https://github.com/teddywing/Re-Good-Catalina-Invert-Colours"
+ url "https://github.com/teddywing/Re-Good-Catalina-Invert-Colours/releases/download/v0.0.1/invert-catalina-invert_0.0.1_x86_64.tar.bz2"
+ version "0.0.1"
+ sha256 "f36522cfe5490a0f3966a123fc735548365cd04a0a1b91ab9f5e2dbb9fe6cb7b"
+
+ def install
+ bin.install Dir["bin/*"]
+
+ prefix.install "Library/LaunchAgents/com.teddywing.invert-catalina-invert.plist" => "#{plist_name}.plist"
+ end
+
+ def caveats; <<~EOS
+ To have launchd start invert-catalina-invert now and restart at startup:
+ brew services start invert-catalina-invert
+
+ The sudo-prefixed services command is unnecessary.
+ EOS
+ end
+
+ def plist_name
+ "com.teddywing.invert-catalina-invert"
+ end
+
+ plist_options startup: true
+
+ test do
+ assert_equal version, shell_output("invert-catalina-invert --version").strip
+ end
+end