diff options
Diffstat (limited to 'Formula/blog.rb')
| -rw-r--r-- | Formula/blog.rb | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Formula/blog.rb b/Formula/blog.rb index f103ed3..3e7b6a2 100644 --- a/Formula/blog.rb +++ b/Formula/blog.rb @@ -1,18 +1,21 @@ class Blog < Formula desc "An almost ephemeral blog with a gopher / gemini archive." homepage "https://r.bdr.sh/blog.html" - url "https://git.sr.ht/~rbdr/blog", tag: "7.0.0" + if Hardware::CPU.arm? + url "https://build.r.bdr.sh/blog/blog-aarch64-apple-darwin-7.1.0.tar.gz" + sha256 "c627e2aa82d38d4df6d4b12dcb382bf47f5e48f0a916e087d56a507b4568b8bc" + else + url "https://build.r.bdr.sh/blog/blog-x86_64-apple-darwin-7.1.0.tar.gz" + sha256 "6a37c998337fe05851c57dff21fb5afc845482ec7b533f545fa67cc847ce9bfa" + end license "AGPL-3.0-or-later" head "https://git.sr.ht/~rbdr/blog", branch: "main" - version "7.0.0" - - depends_on "rust" => :build def install - system "cargo", "install", *std_cargo_args + bin.install "blog" end test do - system "#{bin}/blog version" + assert_match "7.1.0", shell_output("#{bin}/blog version") end end |