blob: b992f0341b38dde57480359e8819dea84914aa7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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-2.0.0.tar.gz"
sha256 "34cb6cffdb66a55c261634456caf1325958d4879a690e832dca9f17c6ae1f314"
else
url "https://build.r.bdr.sh/page/page-x86_64-apple-darwin-2.0.0.tar.gz"
sha256 "fe0ef94275479d362217cb867098bd0d581ce4dc5ebf779ed9f2eb1614aecef6"
end
license "AGPL-3.0-or-later"
head "https://git.sr.ht/~rbdr/page", branch: "main"
version "2.0.0"
def install
bin.install "page"
end
test do
(testpath/"_layout.html").write("{{ content }}")
system "#{bin}/page"
end
end
|