# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class V1 < Formula
  desc "Run pipe test formula"
  homepage "https://github.com/goreleaser"
  version "1.0.1"

  on_macos do
    if Hardware::CPU.arm?
      url "https://dummyhost/download/v1.0.1/bin.tar.gz"
      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"

      def install
        bin.install "foo"
        man1.install "./man/foo.1.gz"
      end
    end
  end

  on_linux do
    if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
      url "https://dummyhost/download/v1.0.1/arm64.tar.gz"
      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"

      def install
        bin.install "foo"
        man1.install "./man/foo.1.gz"
      end
    end
    if Hardware::CPU.intel?
      url "https://dummyhost/download/v1.0.1/amd64v2.tar.gz"
      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"

      def install
        bin.install "foo"
        man1.install "./man/foo.1.gz"
      end
    end
  end
end
