homebrew/awl.rb
2023-08-10 15:55:35 +00:00

63 lines
2.2 KiB
Ruby

# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Awl < Formula
desc "A DNS query tool"
homepage "https://dns.froth.zone/awl"
version "0.6.9"
license "BSD-3-Clause"
on_macos do
url "https://git.froth.zone/sam/awl/releases/download/v0.6.9/awl_MacOS_all.tar.gz"
sha256 "377c6db95e50500aa2944b446126490ca319eeb97a5566295f1d872cb695c683"
def install
bin.install "awl"
bash_completion.install "completions/bash.bash" => "awl"
zsh_completion.install "completions/zsh.zsh" => "_awl"
fish_completion.install "completions/fish.fish" => "awl.fish"
man1.install "doc/awl.1.gz"
end
end
on_linux do
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://git.froth.zone/sam/awl/releases/download/v0.6.9/awl_Linux_arm.tar.gz"
sha256 "d45ef3515165d96030b81902ab7a140479795c59199a09fb7a975ed96ab372f5"
def install
bin.install "awl"
bash_completion.install "completions/bash.bash" => "awl"
zsh_completion.install "completions/zsh.zsh" => "_awl"
fish_completion.install "completions/fish.fish" => "awl.fish"
man1.install "doc/awl.1.gz"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://git.froth.zone/sam/awl/releases/download/v0.6.9/awl_Linux_arm64.tar.gz"
sha256 "578ce771c0c1a64d1589f4ebe29b252574e1235c44260ff170d7c67eb9620d78"
def install
bin.install "awl"
bash_completion.install "completions/bash.bash" => "awl"
zsh_completion.install "completions/zsh.zsh" => "_awl"
fish_completion.install "completions/fish.fish" => "awl.fish"
man1.install "doc/awl.1.gz"
end
end
if Hardware::CPU.intel?
url "https://git.froth.zone/sam/awl/releases/download/v0.6.9/awl_Linux_amd64.tar.gz"
sha256 "7704e163ecc7f69c0b0ea6520d997f63c8fb16a7b7045a2cee29ac2963aa7966"
def install
bin.install "awl"
bash_completion.install "completions/bash.bash" => "awl"
zsh_completion.install "completions/zsh.zsh" => "_awl"
fish_completion.install "completions/fish.fish" => "awl.fish"
man1.install "doc/awl.1.gz"
end
end
end
end