homebrew-core/Formula/libmetalink.rb

38 lines
2.1 KiB
Ruby

class Libmetalink < Formula
desc "C library to parse Metalink XML files"
homepage "https://launchpad.net/libmetalink/"
url "https://launchpad.net/libmetalink/trunk/libmetalink-0.1.3/+download/libmetalink-0.1.3.tar.xz"
sha256 "86312620c5b64c694b91f9cc355eabbd358fa92195b3e99517504076bf9fe33a"
license "MIT"
livecheck do
url :stable
regex(%r{<div class="version">\s*Latest version is libmetalink[._-]v?(\d+(?:\.\d+)+)\s*</div>}i)
end
bottle do
sha256 cellar: :any, arm64_ventura: "1684da3a02e39ed1a65dc154f06f309119cff3010a45efbbeb1d653081885bc8"
sha256 cellar: :any, arm64_monterey: "4181f8a100f736a945001f57c2ad8f768ad99cdad6789a19d9f21e0cfdd4d3fb"
sha256 cellar: :any, arm64_big_sur: "a5eec14410ca7f2ea831d91c273d6372bc851f930944d207f07f35245b077a91"
sha256 cellar: :any, ventura: "458a2aed06056d0cc3dd1005f93210c9c686ba2515d8550ec0fd6f8348168da6"
sha256 cellar: :any, monterey: "c1a510079e53edc2ebd437321751752e897c253332dc6644ebc6b03cecbf48f2"
sha256 cellar: :any, big_sur: "ec4a4a8f898432cccfa2198c0e877daf2d80c2ab5bc92a7a9134a3dd75529a87"
sha256 cellar: :any, catalina: "a18e6199b4d775a32693aa38b80551d547eb1de58c5d7c788f706276ce296d5e"
sha256 cellar: :any, mojave: "461d42fab1dd15b7df8144ef814a3b589c5be9177728b522ea73e6c52bec660f"
sha256 cellar: :any, high_sierra: "037c9d82da0a2c77031515cc8618b28552c526e559b3d9cebb0f054cd66204e3"
sha256 cellar: :any, sierra: "87711da9c52d75d2d6fed5829a70b0f6561f55fdcf1129266001b6e96bc69b1b"
sha256 cellar: :any, el_capitan: "4ca3f82ac2e2520c677def661168c6ba14ee2b8f0139fbe33cf5be66745244d3"
sha256 cellar: :any_skip_relocation, x86_64_linux: "583e662593473f7310e1c3e3bed77a89a4dc43aed5fd1ce6a12a7260ec69c5f5"
end
depends_on "pkg-config" => :build
uses_from_macos "expat"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end