From 28ea23d1c8b9d734aca07f4570379082db1a080d Mon Sep 17 00:00:00 2001
From: fossdd <fossdd@pwned.life>
Date: Fri, 20 Dec 2024 12:28:53 +0100
Subject: [PATCH] community/spot: upgrade to 0.5.0

https://github.com/xou816/spot/compare/0.4.1...0.5.0
---
 community/spot/APKBUILD                      |  9 ++++++---
 community/spot/pulseaudio-backend-only.patch | 10 +++++-----
 2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/community/spot/APKBUILD b/community/spot/APKBUILD
index 811ac1b5bc26..7df7edcf8e13 100644
--- a/community/spot/APKBUILD
+++ b/community/spot/APKBUILD
@@ -1,7 +1,7 @@
 # Contributor: Jakub Jirutka <jakub@jirutka.cz>
 # Maintainer: Jakub Jirutka <jakub@jirutka.cz>
 pkgname=spot
-pkgver=0.4.1
+pkgver=0.5.0
 pkgrel=0
 pkgdesc="Native Spotify client for the GNOME desktop"
 url="https://github.com/xou816/spot"
@@ -14,6 +14,8 @@ makedepends="
 	bash
 	blueprint-compiler
 	cargo
+	cmake
+	clang-dev
 	curl-dev
 	desktop-file-utils
 	glib-dev
@@ -26,6 +28,7 @@ makedepends="
 	nghttp2-dev
 	openssl-dev>3
 	pulseaudio-dev
+	rust-bindgen
 	"
 subpackages="$pkgname-lang"
 source="https://github.com/xou816/spot/archive/$pkgver/spot-$pkgver.tar.gz
@@ -54,7 +57,7 @@ package() {
 }
 
 sha512sums="
-05ee8ce9277230a0f6c25411b41788a508551a61cd436bdd6bb0d8245030b0523232c0e30c7d2f98977382e687ec0f502cb6eb9b95a7dbaae97042ec596f407e  spot-0.4.1.tar.gz
+a2acbc2666c3acea86562227b490373bdeff67831bef7275b47e759db366cacbeb2411578f56be824cca6cd72c833e5830db89c203af1c8165e06927eabcf3ec  spot-0.5.0.tar.gz
 77b0abec9fbcbc7360f54ef5dcbaf68b636ce6ea442c0e2c9fed4c8359dfa4ef5af481f87eea83860bdfda12954c6858d5cc9c9999ca1cd1e17999e29f69a58e  appdata.patch
-6dd52978436158222518170cd079cc0999ae36729645fc8c4bbd76a12532ae6c2937e4ff075070177f37ebdadca306e5968a962c44ee4069d94ae2f1ea9b781b  pulseaudio-backend-only.patch
+7bc2887fcd0f58653f3657a899c40085b1c8d47c934dfffecc201d1400277027d33f847d79abc29372cc2e9c8737025524abb2d76beb15660bb51ab1df6c7b37  pulseaudio-backend-only.patch
 "
diff --git a/community/spot/pulseaudio-backend-only.patch b/community/spot/pulseaudio-backend-only.patch
index 4f865b3ba25a..9de03dfb9140 100644
--- a/community/spot/pulseaudio-backend-only.patch
+++ b/community/spot/pulseaudio-backend-only.patch
@@ -7,13 +7,13 @@ there's IMHO not much reason for building Spot with both PulseAudio and
 ALSA backends.
 
 diff --git a/Cargo.toml b/Cargo.toml
-index 0752ba3..70b7e42 100644
+index b281518..67b677a 100644
 --- a/Cargo.toml
 +++ b/Cargo.toml
 @@ -27,7 +27,8 @@ features = ["v2_60"]
  
  [dependencies.librespot]
- version = "0.4.2"
+ version = "0.6.0"
 -features = ["alsa-backend", "pulseaudio-backend", "gstreamer-backend"]
 +default-features = false
 +features = ["pulseaudio-backend", "gstreamer-backend"]
@@ -21,7 +21,7 @@ index 0752ba3..70b7e42 100644
  [dependencies.tokio]
  version = "1"
 diff --git a/data/dev.alextren.Spot.gschema.xml b/data/dev.alextren.Spot.gschema.xml
-index bd97fc3..a4e2145 100644
+index bd97fc3..13f59ee 100644
 --- a/data/dev.alextren.Spot.gschema.xml
 +++ b/data/dev.alextren.Spot.gschema.xml
 @@ -2,7 +2,6 @@
@@ -33,10 +33,10 @@ index bd97fc3..a4e2145 100644
    </enum>
    <enum id="dev.alextren.Spot.Bitrate">
 diff --git a/src/app/components/settings/settings.rs b/src/app/components/settings/settings.rs
-index 43f43aa..b12722b 100644
+index cbf4bcf..dfaa365 100644
 --- a/src/app/components/settings/settings.rs
 +++ b/src/app/components/settings/settings.rs
-@@ -133,9 +133,6 @@ impl SettingsWindow {
+@@ -139,9 +139,6 @@ impl SettingsWindow {
              })
              .build();
  
-- 
GitLab