01f9487915
srmio is a small C library to access the PowerControl of a SRM bike power meter. It's implementing the serial communication protocol to the PowerControls V, VI and 7. Closes Homebrew/homebrew#16447. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
17 lines
416 B
Ruby
17 lines
416 B
Ruby
require 'formula'
|
|
|
|
class Srmio < Formula
|
|
homepage 'http://www.zuto.de/project/srmio/'
|
|
url 'http://www.zuto.de/project/files/srmio/srmio-0.1.0.tar.gz'
|
|
sha1 '681fdf78ea0eae889fa93c929c5806da78fcca15'
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
system "#{bin}/srmcmd", "--help"
|
|
end
|
|
end
|