aboutsummaryrefslogtreecommitdiff
path: root/Formula/page-1.4.0.rb
blob: 5d82ec7c485f47b2df4642ec4f8adc0bd6f114c9 (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-1.4.0.tar.gz"
    sha256 "9878a234910d1f1019711e632c25abea446ec97a62a45ed28fb2214d32b2b71c"
  else
    url "https://build.r.bdr.sh/page/page-x86_64-apple-darwin-1.4.0.tar.gz"
    sha256 "5508d82e447903a24975af7668475adacde8eeb327980b38f6e397a17228d4b8"
  end
  license "AGPL-3.0-or-later"
  head "https://git.sr.ht/~rbdr/page", branch: "main"
  version "1.4.0"

  def install
    bin.install "page"
  end

  test do
    (testpath/"_layout.html").write("{{ content }}")
    system "#{bin}/page"
  end
end