Skip to content

Commit

Permalink
spotifyd 0.4.0
Browse files Browse the repository at this point in the history
autobump: add spotifyd

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

spotifyd: remove build patch

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

spotifyd: remove `dbus_keyring` feature

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Mar 8, 2025
1 parent 160d7d6 commit 3b4d49c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3198,6 +3198,7 @@ spoofdpi
spot
spotbugs
spotify_player
spotifyd
sq
sql-formatter
sql-migrate
Expand Down
26 changes: 11 additions & 15 deletions Formula/s/spotifyd.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
class Spotifyd < Formula
desc "Spotify daemon"
homepage "https://spotifyd.rs/"
url "https://github.com/Spotifyd/spotifyd/archive/refs/tags/v0.4.0.tar.gz"
sha256 "e96aa85dc6df2e3ce9635225fdcfe3bc7f353a2b5f4aa3bf4b042b3e9e8449b0"
license "GPL-3.0-only"
head "https://github.com/Spotifyd/spotifyd.git", branch: "master"

stable do
url "https://github.com/Spotifyd/spotifyd/archive/refs/tags/v0.3.5.tar.gz"
sha256 "59103f7097aa4e2ed960f1cc307ac8f4bdb2f0067aad664af32344aa8a972df7"

# rust 1.80 build patch, upstream pr ref, https://github.com/Spotifyd/spotifyd/pull/1297
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/7cb21d6370a1eae320f06a4f9150111db0bbf952/spotifyd/rust-1.80.patch"
sha256 "0bfc8c4805cc99c249d1411aff29a0d9107c3ce69f1fabbdc3ab41701ca4f2f6"
end
end

livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
Expand All @@ -32,6 +23,7 @@ class Spotifyd < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "4baab23fe6181c526b89960d0fb9db63bafea067a4ac9c6f5ac6af658267eea9"
end

depends_on "cmake" => :build # for aws-lc-sys
depends_on "pkgconf" => :build
depends_on "rust" => :build
depends_on "dbus"
Expand All @@ -41,7 +33,7 @@ def install
ENV["COREAUDIO_SDK_PATH"] = MacOS.sdk_path_if_needed if OS.mac?

system "cargo", "install", "--no-default-features",
"--features", "dbus_keyring,portaudio_backend",
"--features", "dbus_mpris,portaudio_backend",
*std_cargo_args
end

Expand All @@ -51,8 +43,12 @@ def install
end

test do

Check failure on line 45 in Formula/s/spotifyd.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew test --verbose spotifyd` failed on macOS Sonoma (14)!

/usr/local/Homebrew/Library/Homebrew/test.rb:54:in `<main>'

Check failure on line 45 in Formula/s/spotifyd.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

`brew test --verbose spotifyd` failed on macOS Ventura (13)!

/usr/local/Homebrew/Library/Homebrew/test.rb:54:in `<main>'
cmd = "#{bin}/spotifyd --username homebrew_fake_user_for_testing \
--password homebrew --no-daemon --backend portaudio"
assert_match "Bad credentials", shell_output(cmd)
output_log = testpath/"output.log"
pid = spawn bin/"spotifyd", "--no-daemon", "--backend", "portaudio", [:out, :err] => output_log.to_s
sleep 1
assert_match "No route to host", output_log.read
ensure
Process.kill "TERM", pid
Process.wait pid
end
end

0 comments on commit 3b4d49c

Please sign in to comment.