Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #2703. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
- Loading branch information
1 parent
672b746
commit 85ac0d0
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |