github.com/goreleaser/goreleaser@v1.25.1/internal/pipe/brew/testdata/TestRunPipeForMultipleArmVersions/multiple_armv6.rb.golden (about)

     1  # typed: false
     2  # frozen_string_literal: true
     3  
     4  # This file was generated by GoReleaser. DO NOT EDIT.
     5  class MultipleArmv6 < Formula
     6    desc "Run pipe test formula and FOO=foo_is_bar"
     7    homepage "https://github.com/goreleaser"
     8    version "1.0.1"
     9  
    10    depends_on "bash" => :recommended
    11    depends_on "zsh"
    12  
    13    on_macos do
    14      url "https://dummyhost/download/v1.0.1/bin.tar.gz"
    15      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    16  
    17      def install
    18        bin.install "multiple_armv6"
    19      end
    20  
    21      if Hardware::CPU.arm?
    22        def caveats
    23          <<~EOS
    24            The darwin_arm64 architecture is not supported for the MultipleArmv6
    25            formula at this time. The darwin_amd64 binary may work in compatibility
    26            mode, but it might not be fully supported.
    27          EOS
    28        end
    29      end
    30    end
    31  
    32    on_linux do
    33      if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
    34        url "https://dummyhost/download/v1.0.1/armv6.tar.gz"
    35        sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    36  
    37        def install
    38          bin.install "multiple_armv6"
    39        end
    40      end
    41      if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
    42        url "https://dummyhost/download/v1.0.1/arm64.tar.gz"
    43        sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    44  
    45        def install
    46          bin.install "multiple_armv6"
    47        end
    48      end
    49    end
    50  
    51    conflicts_with "gtk+"
    52    conflicts_with "qt"
    53  
    54    def caveats
    55      <<~EOS
    56        don't do this multiple_armv6
    57      EOS
    58    end
    59  
    60    plist_options startup: false
    61  
    62    def plist
    63      <<~EOS
    64        <xml>whatever</xml>
    65      EOS
    66    end
    67  
    68    test do
    69      system "true"
    70      system "#{bin}/foo", "-h"
    71    end
    72  end