homebrew-core/Formula/libusbmuxd.rb

50 lines
2.3 KiB
Ruby

class Libusbmuxd < Formula
desc "USB multiplexor library for iOS devices"
homepage "https://www.libimobiledevice.org/"
url "https://github.com/libimobiledevice/libusbmuxd/archive/2.0.2.tar.gz"
sha256 "8ae3e1d9340177f8f3a785be276435869363de79f491d05d8a84a59efc8a8fdc"
license all_of: ["GPL-2.0-or-later", "LGPL-2.1-or-later"]
head "https://github.com/libimobiledevice/libusbmuxd.git", branch: "master"
bottle do
sha256 cellar: :any, arm64_ventura: "839072b0f95782fb42835a56e17177d641efab6aed22e1864f6cbcf5501f4e5a"
sha256 cellar: :any, arm64_monterey: "27d1d27bbc4b9b2079bebe6460610c4c57acc9f2cffe51374ede91b717f7b49b"
sha256 cellar: :any, arm64_big_sur: "9cd9d1df802799e026f09775bbde2c4bf0557fb3e1f5919f14a5b0def0b0255e"
sha256 cellar: :any, ventura: "6f10083e1ab4c71cc4f21e570f1a6a988198f74dea26a0740625abce646ddc02"
sha256 cellar: :any, monterey: "b5e52f9c8804a553ee3832d13c3e2a56a3253f17573addc3d8231c1503b35d07"
sha256 cellar: :any, big_sur: "faf8346e0e4caa8ac7c4ac7e3b838693f847a88120cf477b8e8c82bd0a7628f6"
sha256 cellar: :any, catalina: "72fcc67099f03a3d68faa131eaf464a431e5d5eaea0a5ddb9b8414c065f7ef73"
sha256 cellar: :any, mojave: "132ee76aa823e51abb97c92c53ab8a30819720ced7020080f949cf4fd937f6ea"
sha256 cellar: :any, high_sierra: "67c3d43cb2a1ebfd68fba1c9b51b419288fedefc93f101adeea1b5f6bdf1ad77"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b1f289531042024ef7fb1f87cad05f36a1c68ece14614266cf0564e32b3565ac"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "libplist"
depends_on "libusb"
uses_from_macos "netcat" => :test
def install
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
source = free_port
dest = free_port
fork do
exec bin/"iproxy", "-s", "localhost", "#{source}:#{dest}"
end
sleep(2)
system "nc", "-z", "localhost", source
end
end