github.com/joselitofilho/goreleaser@v0.155.1-0.20210123221854-e4891856c593/internal/pipe/brew/testdata/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 "A run pipe test formula and FOO=foo_is_bar"
     7    homepage "https://github.com/goreleaser"
     8    version "1.0.1"
     9    bottle :unneeded
    10  
    11    if OS.mac?
    12      url "https://dummyhost/download/v1.0.1/bin.tar.gz"
    13      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    14    end
    15    if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
    16      url "https://dummyhost/download/v1.0.1/armv6.tar.gz"
    17      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    18    end
    19    if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
    20      url "https://dummyhost/download/v1.0.1/arm64.tar.gz"
    21      sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    22    end
    23  
    24    depends_on "zsh"
    25    depends_on "bash" => :recommended
    26  
    27    conflicts_with "gtk+"
    28    conflicts_with "qt"
    29  
    30    def install
    31      bin.install "multiple_armv6"
    32    end
    33  
    34    def caveats; <<~EOS
    35      don't do this multiple_armv6
    36    EOS
    37    end
    38  
    39    plist_options :startup => false
    40  
    41    def plist; <<~EOS
    42      <xml>whatever</xml>
    43    EOS
    44    end
    45  
    46    test do
    47      system "true"
    48      system "#{bin}/foo -h"
    49    end
    50  end