homebrew-core/Formula/stlink.rb

32 lines
753 B
Ruby
Raw Normal View History

require "formula"
class Stlink < Formula
homepage "https://github.com/texane/stlink"
url "https://github.com/texane/stlink/archive/1.0.0.tar.gz"
sha1 "d55bbdd8c4c907be15b28d089fddc86e7a167766"
2014-11-03 10:01:56 +00:00
bottle do
cellar :any
sha1 "6c0fa936a2fbf20fb05c2a9503cbd8b7b3b6a8d6" => :yosemite
sha1 "3aa833eca3455df534e2b1f484543f9e5e09f1ac" => :mavericks
sha1 "9516c50fc08774b01d8893b8fc0cd5d11ebae017" => :mountain_lion
end
depends_on "libusb"
2014-12-04 17:01:26 +00:00
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkg-config" => :build
def install
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
system "st-util", "-h"
end
end