Skip to content

Commit

Permalink
ubertooth 2015-10-R1 (new formula)
Browse files Browse the repository at this point in the history
Closes #2703.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
Evan Krall authored and MikeMcQuaid committed Jul 10, 2016
1 parent 672b746 commit 85ac0d0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Formula/ubertooth.rb
@@ -0,0 +1,26 @@
class Ubertooth < Formula
desc "Host tools for Project Ubertooth"
homepage "https://github.com/greatscottgadgets/ubertooth/wiki"
url "https://github.com/greatscottgadgets/ubertooth/releases/download/2015-10-R1/ubertooth-2015-10-R1.tar.xz"
version "2015-10-R1"
sha256 "bc37e7978d137a64d918d7c8f1e7ca9cff093f9921d805e9809b12e5ab12ae35"

depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "libbtbb"
depends_on "libusb"

def install
cd "host" do
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "install"
end
end
end

test do
# Most ubertooth utilities require an ubertooth device present.
system "#{bin}/ubertooth-rx", "-i", "/dev/null"
end
end

0 comments on commit 85ac0d0

Please sign in to comment.