]> git.r.bdr.sh - rbdr/homebrew-apps/blobdiff - Formula/page.rb
Add page
[rbdr/homebrew-apps] / Formula / page.rb
diff --git a/Formula/page.rb b/Formula/page.rb
new file mode 100644 (file)
index 0000000..028df4b
--- /dev/null
@@ -0,0 +1,24 @@
+class Page < Formula
+  desc "A static website generator for exactly 1 use case."
+  homepage "https://github.com/BurntSushi/ripgrep"
+  url "https://git.sr.ht/~rbdr/page"
+  sha256 "0fb17aaf285b3eee8ddab17b833af1e190d73de317ff9648751ab0660d763ed2"
+  license "Apache-2.0"
+  head "https://git.sr.ht/~rbdr/page", branch: "main"
+
+  livecheck do
+    url :stable
+    strategy :github_latest
+  end
+
+  depends_on "rust" => :build
+
+  def install
+    system "cargo", "install", *std_cargo_args
+  end
+
+  test do
+    (testpath/"_layout.html").write("{{ content }}")
+    system "#{bin}/page"
+  end
+end