Support for Linuxbrew

Author: marknefedovCreated Oct 20, 2022Updated Aug 19, 2024
Labelsfeaturehelp wanted

Please describe your use case / problem. It would be nice, if brew package supported Linuxbrew.

Describe the solution you'd like Add a binary download for Linux systems to Formula or make formula cross-platform

Describe alternatives you've considered There is asdf plugin, but it lacks automatic update capabilities.

Additional context Possible example for cross-platform formula.

ruby
class Telepresence < Formula
  desc "Fast, efficient local development for Kubernetes microservices"
  homepage "https://www.telepresence.io"
  url "https://github.com/telepresenceio/telepresence.git",
      tag:      "v2.8.2",
      revision: "58ddcc58e5d5cb5ee15e159b26b6399400ebbf5c"
  license "Apache-2.0"

  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  depends_on "go" => :build

  def install
    system "make", "build"
    bin.install "build-output/bin/telepresence"
  end

  test do
    system "#{bin}/telepresence", "--help"
  end
end

Source: telepresenceio/telepresence