]> git.r.bdr.sh - rbdr/homebrew-apps/blob - Formula/page.rb
add version
[rbdr/homebrew-apps] / Formula / page.rb
1 class Page < Formula
2 desc "A static website generator for exactly 1 use case."
3 homepage "https://github.com/BurntSushi/ripgrep"
4 url "https://git.sr.ht/~rbdr/page"
5 sha256 "0fb17aaf285b3eee8ddab17b833af1e190d73de317ff9648751ab0660d763ed2"
6 license "Apache-2.0"
7 head "https://git.sr.ht/~rbdr/page", tag: "1.0.0"
8 version "1.0.0"
9
10 livecheck do
11 url :stable
12 strategy :github_latest
13 end
14
15 depends_on "rust" => :build
16
17 def install
18 system "cargo", "install", *std_cargo_args
19 end
20
21 test do
22 (testpath/"_layout.html").write("{{ content }}")
23 system "#{bin}/page"
24 end
25 end