aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorKelvin Wong2014-09-05 23:43:35 +0800
committerMike McQuaid2014-11-03 10:04:01 +0000
commit9bfb0745facb604c852e675dd4c31e7c9b65f303 (patch)
treeef24d3fc11511f0ac72aac9ccda8442d2adab3bb /Library/Formula
parent8dfe4ba77296fa2d4694df20f4e8a66395a01eb2 (diff)
downloadhomebrew-9bfb0745facb604c852e675dd4c31e7c9b65f303.tar.bz2
stlink 1.0.0 (new formula)
Closes #32104. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/stlink.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/stlink.rb b/Library/Formula/stlink.rb
new file mode 100644
index 000000000..fbeba6dac
--- /dev/null
+++ b/Library/Formula/stlink.rb
@@ -0,0 +1,24 @@
+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"
+
+ depends_on "libusb"
+
+ depends_on :autoconf
+ depends_on :automake
+ 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