class Page < Formula desc "A static website generator for exactly 1 use case." homepage "https://r.bdr.sh/page.html" if Hardware::CPU.arm? url "https://build.r.bdr.sh/page/page-aarch64-apple-darwin-1.5.0.tar.gz" sha256 "9828fdfcf647c68d1ffd20726c1d318d52ffeee7134ee704fb0b2b602293e462" else url "https://build.r.bdr.sh/page/page-x86_64-apple-darwin-1.5.0.tar.gz" sha256 "9dab89e250c7dcce9e80f870056bc2200a44a47fca5fd98d85ac24c21be45b8e" end license "AGPL-3.0-or-later" head "https://git.sr.ht/~rbdr/page", branch: "main" version "1.5.0" def install bin.install "page" end test do (testpath/"_layout.html").write("{{ content }}") system "#{bin}/page" end end