32 lines
1.1 KiB
Ruby
32 lines
1.1 KiB
Ruby
class Resticview < Formula
|
|
desc "TUI browser for restic backup repositories"
|
|
homepage "https://git.janvete.com/seth/resticview"
|
|
version "0.1.2"
|
|
license "MIT"
|
|
head "https://git.janvete.com/seth/resticview.git", branch: "main"
|
|
|
|
on_macos do
|
|
if Hardware::CPU.arm?
|
|
url "https://git.janvete.com/seth/resticview/releases/download/v0.1.2/resticview-v0.1.2-darwin-arm64.tar.gz"
|
|
sha256 "d7f590cf7fec5e9f5054a2a59fb75ff05fa3ee92b9e92276a03160c171aa9a15"
|
|
else
|
|
url "https://git.janvete.com/seth/resticview/releases/download/v0.1.2/resticview-v0.1.2-darwin-amd64.tar.gz"
|
|
sha256 "62d66895cdb6f0fc2fc3767b555f268af03e311b596ea635ba63b8095e0e7728"
|
|
end
|
|
end
|
|
|
|
on_linux do
|
|
if Hardware::CPU.intel?
|
|
url "https://git.janvete.com/seth/resticview/releases/download/v0.1.2/resticview-v0.1.2-linux-amd64.tar.gz"
|
|
sha256 "3eb8274d0bdd5c5e1e9bbbb7be78b0aae029128049a0f4cdf759515d0b812507"
|
|
end
|
|
end
|
|
|
|
def install
|
|
bin.install "resticview"
|
|
end
|
|
|
|
test do
|
|
assert_match "TUI browser for restic backup repositories", shell_output("#{bin}/resticview --help")
|
|
end
|
|
end
|