mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 03:19:46 -05:00
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 #16447. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
18 lines
416 B
Ruby
18 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
|