homebrew/awl.rb
2024-08-03 17:08:23 +00:00

68 lines
2.3 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.13"
license "BSD-3-Clause"
on_macos do
url "https://git.froth.zone/sam/awl/releases/download/v0.6.13/awl_MacOS_all.tar.gz"
sha256 "50c09739fea711049e3c3491a843c5a2b85bcf423e858e55a7ee40a848c976ae"
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 "docs/awl.1.gz"
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://git.froth.zone/sam/awl/releases/download/v0.6.13/awl_Linux_amd64.tar.gz"
sha256 "9dff04fc739d460163783040fd804b024afe6d9d4e6c14f904c0271ca2b25bfd"
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 "docs/awl.1.gz"
end
end
end
on_arm do
if !Hardware::CPU.is_64_bit?
url "https://git.froth.zone/sam/awl/releases/download/v0.6.13/awl_Linux_arm.tar.gz"
sha256 "68b45e0f140786ab12f54836e5cf0ac3e3a0d5238d47f710c8f4ed141c6e22f4"
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 "docs/awl.1.gz"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://git.froth.zone/sam/awl/releases/download/v0.6.13/awl_Linux_arm64.tar.gz"
sha256 "e308ea564e54e1e40f542391c8cbcb3988a3ef1cb536bd058aec3e87fe639201"
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 "docs/awl.1.gz"
end
end
end
end
end