]>
Commit | Line | Data |
---|---|---|
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.2.tar.gz" | |
6 | sha256 "162e684b8b724dd89ed5d8c8331d46809e5a8dc0da9688acd1aa9dcb389b1e4c" | |
7 | else | |
8 | url "https://build.r.bdr.sh/page/page-x86_64-apple-darwin-1.4.2.tar.gz" | |
9 | sha256 "90171189690634b32e8b3dcdaaf9618c8d82740502f48dd682768fe4392cb310" | |
10 | end | |
11 | license "AGPL-3.0-or-later" | |
12 | head "https://git.sr.ht/~rbdr/page", branch: "main" | |
13 | version "1.4.2" | |
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 |