28 lines
907 B
Ruby
28 lines
907 B
Ruby
class Libbtbb < Formula
|
|
desc "Bluetooth baseband decoding library"
|
|
homepage "https://github.com/greatscottgadgets/libbtbb"
|
|
url "https://github.com/greatscottgadgets/libbtbb/archive/2018-12-R1.tar.gz"
|
|
version "2018-12-R1"
|
|
sha256 "0eb2b72e1c1131538206f1e3176e2cf1048751fe7dc665eef1e7429d1f2e6225"
|
|
head "https://github.com/greatscottgadgets/libbtbb.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "835f6edfd8143b29d96eeeed66dd443d837cc8a117519fdca30637c417c9b8d9" => :mojave
|
|
sha256 "b2be1cc3b707870e022401656041307bfde41035659db8eee563647f0dce5873" => :high_sierra
|
|
sha256 "e09299efc9ea3b989a2b1ceda4d123e6cebec6b28aa8ff08cf3052dfa6a65c3d" => :sierra
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
def install
|
|
mkdir "build" do
|
|
system "cmake", "..", *std_cmake_args
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system bin/"btaptap", "-r", test_fixtures("test.pcap")
|
|
end
|
|
end
|