From 31c86118e4d48890d4fe9e43d4ea5579a4e23edc Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Fri, 17 Jan 2025 21:11:07 -0500 Subject: [PATCH] libdvbcsa: add livecheck By default, livecheck isn't able to check the `stable` URL for `libdvbcsa`, so it falls back to checking the Git tags from the `head` URL. This adds a `livecheck` block that checks the directory listing page where releases are found and matches the version directories. --- Formula/lib/libdvbcsa.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/lib/libdvbcsa.rb b/Formula/lib/libdvbcsa.rb index ede7c48cdf9f2..3126fb0eade1a 100644 --- a/Formula/lib/libdvbcsa.rb +++ b/Formula/lib/libdvbcsa.rb @@ -7,6 +7,11 @@ class Libdvbcsa < Formula license "GPL-2.0-or-later" head "https://code.videolan.org/videolan/libdvbcsa.git", branch: "master" + livecheck do + url "https://get.videolan.org/libdvbcsa/" + regex(%r{href=["']?v?(\d+(?:\.\d+)+)/?["' >]}i) + end + bottle do sha256 cellar: :any, arm64_sequoia: "e5119a840b0c4c13677acc889fc03d4c035c47fd74d6e6913a11786d5826192a" sha256 cellar: :any, arm64_sonoma: "dccd0d514954d35f9965c1bd03bf4e917cf7c33b3b8eee56213c4e71b1a427eb"