github.com/amane3/goreleaser@v0.182.0/internal/pipe/brew/testdata/multiple_armv7.rb.golden (about)

     1  # This file was generated by GoReleaser. DO NOT EDIT.
     2  class MultipleArmv7 < Formula
     3    desc "A run pipe test formula and FOO=foo_is_bar"
     4    homepage "https://github.com/goreleaser"
     5    version "1.0.1"
     6    bottle :unneeded
     7  
     8    if OS.mac?
     9      url "https://dummyhost/download/v1.0.1/bin.tar.gz"
    10      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    11    end
    12    if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
    13      url "https://dummyhost/download/v1.0.1/armv7.tar.gz"
    14      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    15    end
    16    if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
    17      url "https://dummyhost/download/v1.0.1/arm64.tar.gz"
    18      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    19    end
    20  
    21    depends_on "zsh"
    22    depends_on "bash" => :recommended
    23  
    24    conflicts_with "gtk+"
    25    conflicts_with "qt"
    26  
    27    def install
    28      bin.install "multiple_armv7"
    29    end
    30  
    31    def caveats; <<~EOS
    32      don't do this multiple_armv7
    33    EOS
    34    end
    35  
    36    plist_options :startup => false
    37  
    38    def plist; <<~EOS
    39      <xml>whatever</xml>
    40    EOS
    41    end
    42  
    43    test do
    44      system "true"
    45      system "#{bin}/foo -h"
    46    end
    47  end