]> git.r.bdr.sh - rbdr/homebrew-apps/blob - Formula/page.rb
7bb18e881a1447d946b28b6ca513442bbef42893
[rbdr/homebrew-apps] / Formula / page.rb
1 class Page < Formula
2 desc "A static website generator for exactly 1 use case."
3 homepage "https://r.bdr.sh/page.html"
4 if Hardware::CPU.arm?
5 url "https://build.r.bdr.sh/page/page-aarch64-apple-darwin-1.4.1.tar.gz"
6 sha256 "6b11c93a4863d90d0eff521c568d3436721c68ee1bf181ca9d23077af0170511"
7 else
8 url "https://build.r.bdr.sh/page/page-x86_64-apple-darwin-1.4.1.tar.gz"
9 sha256 "aa8f187820d39ea2b0d90f181f184007e6d1bb1070df8f6110ec4f5b3e5e80c7"
10 end
11 license "AGPL-3.0-or-later"
12 head "https://git.sr.ht/~rbdr/page", branch: "main"
13 version "1.4.1"
14
15 def install
16 bin.install "page"
17 end
18
19 test do
20 (testpath/"_layout.html").write("{{ content }}")
21 system "#{bin}/page"
22 end
23 end