]>
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 RBR |
4 | if Hardware::CPU.arm? |
5 | url "https://build.r.bdr.sh/page/page-aarch64-apple-darwin-1.4.0.tar.gz" | |
6 | sha256 "9878a234910d1f1019711e632c25abea446ec97a62a45ed28fb2214d32b2b71c" | |
7 | else | |
8 | url "https://build.r.bdr.sh/page/page-x86_64-apple-darwin-1.4.0.tar.gz" | |
9 | sha256 "5508d82e447903a24975af7668475adacde8eeb327980b38f6e397a17228d4b8" | |
10 | end | |
1f27122e | 11 | license "AGPL-3.0-or-later" |
2f92c0b7 | 12 | head "https://git.sr.ht/~rbdr/page", branch: "main" |
fc6e17ea | 13 | version "1.4.0" |
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 |