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