Skip to content

Commit 7607804

Browse files
authored
Merge pull request #257153 from Homebrew/papeer-new-formula
papeer 0.8.5 (new formula)
2 parents ee745d4 + 80f5ffa commit 7607804

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Formula/p/papeer.rb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
class Papeer < Formula
2+
desc "Convert websites into eBooks and Markdown"
3+
homepage "https://papeer.tech"
4+
url "https://github.com/lapwat/papeer/archive/refs/tags/v0.8.5.tar.gz"
5+
sha256 "bfa5ed66a3622b51b3462a629b01327d335bc56716f700ad97a5f4b521bcb94b"
6+
license "GPL-3.0-only"
7+
8+
bottle do
9+
sha256 cellar: :any_skip_relocation, arm64_tahoe: "6a280ac7dee6b5eca6178ea2f990a38bc2ff9247078225df0d7319f8c86a7b8f"
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "6a280ac7dee6b5eca6178ea2f990a38bc2ff9247078225df0d7319f8c86a7b8f"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "6a280ac7dee6b5eca6178ea2f990a38bc2ff9247078225df0d7319f8c86a7b8f"
12+
sha256 cellar: :any_skip_relocation, sonoma: "70280701b43e2af96cd8c072468d86c80bd6391fb62f4a101984e2a0c573254a"
13+
sha256 cellar: :any_skip_relocation, arm64_linux: "a1414b27227a341e24fbdbea2d7910b4ecb68dd5d1ba998e01f5fe3253cc17ad"
14+
sha256 cellar: :any_skip_relocation, x86_64_linux: "984bae6b0bce278e01a5286f847840f540150b9523f9a251dad801242864ff44"
15+
end
16+
17+
depends_on "go" => :build
18+
19+
def install
20+
system "go", "build", *std_go_args(ldflags: "-s -w")
21+
22+
generate_completions_from_executable(bin/"papeer", "completion")
23+
end
24+
25+
test do
26+
assert_match version.to_s, shell_output("#{bin}/papeer version")
27+
28+
output = shell_output("#{bin}/papeer list https://12factor.net/ --selector='section.concrete>article>h2>a'")
29+
assert_match "8 VIII. Concurrency", output
30+
end
31+
end

0 commit comments

Comments
 (0)