class Blog < Formula desc "An almost ephemeral blog with a gopher / gemini archive." homepage "https://r.bdr.sh/blog.html" 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" def install bin.install "blog" end test do assert_match "7.1.0", shell_output("#{bin}/blog version") end end