homebrew/awl.rb
2022-10-21 15:10:33 +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.5.8"
license "BSD-3-Clause"
on_macos do
url "https://git.froth.zone/sam/awl/releases/download/v0.5.8/awl_0.5.8_macOS_all.tar.gz"
sha256 "0d380cf8015ebfa976d4a8b94bcfeeb20e952d0b341e585ee8a9b2b1c6a798ca"
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.5.8/awl_0.5.8_Linux_armv6.tar.gz"
sha256 "68b34e8e758d995b294189fdc6e5359562947514592311dccf6986b4bbffe7ac"
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.5.8/awl_0.5.8_Linux_arm64.tar.gz"
sha256 "8cadfad662bbc6d3b259e8a770cb4e8ca8cc7a693ed7d51d1a12f8fe3c160845"
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.5.8/awl_0.5.8_Linux_amd64.tar.gz"
sha256 "7129b36d3fb85bf7bcf177f872cdfaea8741b61227828f7feb67c10c50f3f6ca"
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