screenbrightness: add test and modernize
Closes Homebrew/homebrew#35781. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
b6439b9ee2
commit
212b91ad7c
1 changed files with 7 additions and 5 deletions
|
@ -1,12 +1,14 @@
|
|||
require 'formula'
|
||||
|
||||
class Screenbrightness < Formula
|
||||
homepage 'https://github.com/jmstacey/screenbrightness'
|
||||
url 'https://github.com/jmstacey/screenbrightness/archive/1.1.tar.gz'
|
||||
sha1 'f9750733ac298837f519fcfedcbfec74f781bc68'
|
||||
homepage "https://github.com/jmstacey/screenbrightness"
|
||||
url "https://github.com/jmstacey/screenbrightness/archive/1.1.tar.gz"
|
||||
sha1 "f9750733ac298837f519fcfedcbfec74f781bc68"
|
||||
|
||||
def install
|
||||
system "make"
|
||||
system "make", "prefix=#{prefix}", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/screenbrightness", "-l"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue