Skip to content

Commit

Permalink
spotify-tui: switch to openssl@3
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 authored and p-linnane committed Jun 26, 2023
1 parent 970acdc commit 86e1e96
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Formula/spotify-tui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class SpotifyTui < Formula
desc "Terminal-based client for Spotify"
homepage "https://github.com/Rigellute/spotify-tui"
license "MIT"
revision 1
head "https://github.com/Rigellute/spotify-tui.git", branch: "master"

stable do
Expand Down Expand Up @@ -32,7 +33,7 @@ class SpotifyTui < Formula
on_linux do
depends_on "pkg-config" => :build
depends_on "libxcb"
depends_on "openssl@1.1"
depends_on "openssl@3"
end

# Fix build with Rust 1.64+ by updating socket2 using open dependabot PR.
Expand All @@ -43,6 +44,12 @@ class SpotifyTui < Formula
end

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

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

Expand Down

0 comments on commit 86e1e96

Please sign in to comment.