screenbrightness: add test and modernize

Closes Homebrew/homebrew#35781.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Xu Cheng 2015-01-12 21:34:02 +08:00 committed by Mike McQuaid
parent b6439b9ee2
commit 212b91ad7c

View file

@ -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