Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions Formula/b/bookokrat.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
class Bookokrat < Formula
desc "Terminal EPUB Book Reader"
homepage "https://bugzmanov.github.io/bookokrat/index.html"
url "https://github.com/bugzmanov/bookokrat/archive/refs/tags/v0.3.4.tar.gz"
sha256 "c4871e93ce57ee32693c2f6358782dedc920cf139a266ae26f3d958202854284"
url "https://github.com/bugzmanov/bookokrat/archive/refs/tags/v0.3.5.tar.gz"
sha256 "0751669309b657aacf5bb22577d9b42d07e9f70b92aada2e717df189aeb1e72e"
license "AGPL-3.0-or-later"
head "https://github.com/bugzmanov/bookokrat.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_tahoe: "1445191827e9188f0c956ccee8017bfa85f600c0b250dbff4905553654084258"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "2d743a9dd168477fd0738c1ac430ab105873c64f911884ad6bd79ae88912d5d8"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "c9be2deec0be9ad8a40359a557f1b7485e2ee11dcc6df67b1b514b715e10cd59"
sha256 cellar: :any_skip_relocation, sonoma: "665c7393c67d3e5b2abd51f008a8305eb9864e5b24380aea05f7f165a6d79740"
sha256 cellar: :any_skip_relocation, arm64_linux: "b4aea92f788636f0bf126877965e46e6e794625d93ec70bfbf6e06065b2d2bba"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d6574b6e96be71dacce9490090bdcc8bd15f4185acd954596be0432c5358e815"
sha256 cellar: :any_skip_relocation, arm64_tahoe: "3a93189b784ffebccba8fbe79b6b40736a14e49a2b18a0759e2efc9846b8b33f"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "866dd0479606077d091b48d989800f12dc3df1aaf4819f2cb0d7551068f99817"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "0d734863954f6146e73e41cba60025bc929dd1e85866d4ac944f56f88922a20f"
sha256 cellar: :any_skip_relocation, sonoma: "73c52a8396099f61a9f869c317ff06dd88e9d99f8adb42d6f77cd58523af6281"
sha256 cellar: :any_skip_relocation, arm64_linux: "0e3135be6170aeb21c0ff37fc699850fdb108cbdc07287bacc2cbca33768c3cd"
sha256 cellar: :any_skip_relocation, x86_64_linux: "00341326706aef3aa1cdd778b024e6129a32b69dcdba709866c969863f895d21"
end

depends_on "pkgconf" => :build
Expand All @@ -39,13 +39,14 @@ def install
end

sleep 2
config_prefix = if OS.mac?
testpath/"Library/Application Support/bookokrat"
config_prefix, log_prefix = if OS.mac?
[testpath/"Library/Application Support/bookokrat", testpath/"Library/Caches/bookokrat"]
else
testpath/".config/bookokrat"
[testpath/".config/bookokrat", testpath/".local/state/bookokrat"]
end
system "ls", "-alR"
assert_path_exists config_prefix/"config.yaml"
assert_match "Starting Bookokrat EPUB reader", (testpath/"bookokrat.log").read
assert_match "Starting Bookokrat EPUB reader", (log_prefix/"bookokrat.log").read
ensure
Process.kill("TERM", pid)
Process.wait(pid)
Expand Down
Loading