# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class Smithy < Formula
  desc "A Go-based tool to work with Smithy API Specifications."
  homepage "https://github.com/boynton/smithy"
  version "0.1.2"
  license "Apache-2.0"

  if OS.mac? && Hardware::CPU.intel?
    url "https://github.com/boynton/smithy/releases/download/v0.1.2/smithy_0.1.2_macOS_x86_64.tar.gz"
    sha256 "5348e16ce9429a04011c205f8c461f3cd3fa154d28cb62644e667611adee5b28"
  end
  if OS.mac? && Hardware::CPU.arm?
    url "https://github.com/boynton/smithy/releases/download/v0.1.2/smithy_0.1.2_macOS_arm64.tar.gz"
    sha256 "f59c5f1a35e26af6fc59f4d0330dd7d0675466c8ef0caeb809ecc700269adfea"
  end
  if OS.linux? && Hardware::CPU.intel?
    url "https://github.com/boynton/smithy/releases/download/v0.1.2/smithy_0.1.2_Linux_x86_64.tar.gz"
    sha256 "496786ad0ed8357625cc146383290dbebcfef7a42ebeb36946934546bc911519"
  end
  if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
    url "https://github.com/boynton/smithy/releases/download/v0.1.2/smithy_0.1.2_Linux_arm64.tar.gz"
    sha256 "38e4a2940dff3976f9c0cfcbae07992f9cd9293cdc62df3f16d504ade918f795"
  end

  depends_on "go"

  def install
    bin.install "smithy"
  end

  test do
    system "#{bin}/program -v"
  end
end
