aboutsummaryrefslogtreecommitdiff
path: root/Formula/page.rb
blob: 48e58ee3ae9f7bfdce446add3e82dc29a3489219 (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.5.0.tar.gz"
    sha256 "9828fdfcf647c68d1ffd20726c1d318d52ffeee7134ee704fb0b2b602293e462"
  else
    url "https://build.r.bdr.sh/page/page-x86_64-apple-darwin-1.5.0.tar.gz"
    sha256 "9dab89e250c7dcce9e80f870056bc2200a44a47fca5fd98d85ac24c21be45b8e"
  end
  license "AGPL-3.0-or-later"
  head "https://git.sr.ht/~rbdr/page", branch: "main"
  version "1.5.0"

  def install
    bin.install "page"
  end

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