Skip to content

Commit

Permalink
gurk 0.5.2 (new formula)
Browse files Browse the repository at this point in the history
gurk: update build and test

Signed-off-by: Rui Chen <[email protected]>

gurk: update license

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
resnikal71202 authored and chenrui333 committed Dec 19, 2024
1 parent 19f792d commit af4dd38
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Formula/g/gurk.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
class Gurk < Formula
desc "Signal Messenger client for terminal"
homepage "https://github.com/boxdot/gurk-rs"
url "https://github.com/boxdot/gurk-rs/archive/refs/tags/v0.5.2.tar.gz"
sha256 "a8c190e081d9905ea6e71d38d56cb8f19596999a20cb9584a552ce46e6f88bed"
license "AGPL-3.0-only"

depends_on "pkgconf" => :build
depends_on "protobuf" => :build
depends_on "rust" => :build
depends_on "openssl@3"

def install
# Ensure that the `openssl` crate picks up the intended library.
ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix
ENV["OPENSSL_NO_VENDOR"] = "1"

system "cargo", "install", *std_cargo_args
end

test do
assert_match version.to_s, shell_output("#{bin}/gurk --version")

return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]

begin
output_log = testpath/"output.log"
pid = spawn bin/"gurk", "--relink", [:out, :err] => output_log.to_s
sleep 2
assert_match "Linking new device with device name", output_log.read
ensure
Process.kill("TERM", pid)
Process.wait(pid)
end
end
end

0 comments on commit af4dd38

Please sign in to comment.