fix: resticview v0.1.4 - build from source (binary release missing on Forgejo)
This commit is contained in:
parent
e2ab26fbd7
commit
6d1d48597b
1 changed files with 4 additions and 18 deletions
|
|
@ -1,29 +1,15 @@
|
||||||
class Resticview < Formula
|
class Resticview < Formula
|
||||||
desc "TUI browser for restic backup repositories"
|
desc "TUI browser for restic backup repositories"
|
||||||
homepage "https://git.janvete.com/seth/resticview"
|
homepage "https://git.janvete.com/seth/resticview"
|
||||||
version "0.1.2"
|
url "https://git.janvete.com/seth/resticview/archive/v0.1.4.tar.gz"
|
||||||
|
sha256 "79de9f0e8ecac078094e457677c316c6f0a37ca87de36d82ec0723c283aaa4b2"
|
||||||
license "MIT"
|
license "MIT"
|
||||||
head "https://git.janvete.com/seth/resticview.git", branch: "main"
|
head "https://git.janvete.com/seth/resticview.git", branch: "main"
|
||||||
|
|
||||||
on_macos do
|
depends_on "rust" => :build
|
||||||
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
|
def install
|
||||||
bin.install "resticview"
|
system "cargo", "install", *std_cargo_args
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue