From 869d041d3d8225fd92a69bbf342ad58e16230e5a Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Sat, 28 Dec 2024 16:36:00 -0500 Subject: [PATCH] glulxe: add livecheck By default, livecheck isn't able to check the `stable` URL for `glulxe`, so it falls back to checking the Git tags from the `head` URL. This adds a `livecheck` block that checks the homepage, which links to the `stable` tarball. The tarball filename uses a dotless version, so this matches the version from the "Glulxe 1.2.3" inner text of the link. --- Formula/g/glulxe.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/g/glulxe.rb b/Formula/g/glulxe.rb index c4c8b90898e9b..61b5a74e27a3c 100644 --- a/Formula/g/glulxe.rb +++ b/Formula/g/glulxe.rb @@ -7,6 +7,11 @@ class Glulxe < Formula license "MIT" head "https://github.com/erkyrath/glulxe.git", branch: "master" + livecheck do + url :homepage + regex(/href=.*?glulxe[._-]v?\d+(?:\.\d+)*\.t[^>]+?>\s*Glulxe\s+v?(\d+(?:\.\d+)+)\s*