--- spotifyd/PKGBUILD.orig 2021-01-12 21:26:31.832507092 -0300 +++ spotifyd/PKGBUILD 2021-01-12 23:14:09.387380469 -0300 @@ -6,16 +6,21 @@ pkgbase=spotifyd pkgname=('spotifyd') pkgver=0.2.25 -pkgrel=1 +pkgrel=2 pkgdesc='Leightweigt spotify streaming daemon with spotify connect support' arch=('x86_64') url='https://github.com/Spotifyd/spotifyd' license=('GPL3') depends=('alsa-lib' 'libogg' 'libpulse' 'dbus') makedepends=('cargo') -source=("https://github.com/Spotifyd/spotifyd/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") -b2sums=('dd70d3c9f508afd5cfadfc887b3f8895e50830d903b1266ae9d9a9a99bae4afe0c6d83c1bb7fe8307f200f5194ee1f802a1371e4edcec488e2e58042bb94488a') +source=("https://github.com/Spotifyd/spotifyd/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz" "librespot-tremor-rustc-1.49.0-compatibility.patch") +b2sums=('dd70d3c9f508afd5cfadfc887b3f8895e50830d903b1266ae9d9a9a99bae4afe0c6d83c1bb7fe8307f200f5194ee1f802a1371e4edcec488e2e58042bb94488a' + '7067e1322d1d7b75a2bb48fc40f4acf9c116266ae90f100f58a7f3577d0047f536ee189ee7bee9e3492c951e1a7edcadb99d3e2c70e9a7c51bb09688bb12012b') +prepare() { + cd spotifyd-${pkgver} + patch -Np1 < "$srcdir"/librespot-tremor-rustc-1.49.0-compatibility.patch +} build() { cd spotifyd-${pkgver} --- /dev/null 2021-01-12 07:20:43.639417527 -0300 +++ spotifyd/librespot-tremor-rustc-1.49.0-compatibility.patch 2021-01-12 23:14:06.538017103 -0300 @@ -0,0 +1,48 @@ +--- spotifyd-0.2.25/Cargo.toml.orig 2021-01-12 19:19:59.000000000 -0300 ++++ spotifyd-0.2.25/Cargo.toml 2021-01-12 23:12:16.202189009 -0300 +@@ -35,6 +35,9 @@ + librespot = { version = "0.1.1", default-features = false, features = ["with-tremor"] } + toml = "0.5.6" + ++[patch.crates-io] ++librespot-tremor = { git = "https://github.com/thotypous/librespot-tremor" } ++ + [target."cfg(target_os = \"macos\")".dependencies] + whoami = "0.9.0" + +--- spotifyd-0.2.25/Cargo.lock.orig 2021-01-12 23:13:30.961642281 -0300 ++++ spotifyd-0.2.25/Cargo.lock 2021-01-12 23:13:34.540346639 -0300 +@@ -1549,13 +1549,10 @@ + [[package]] + name = "librespot-tremor" + version = "0.1.0" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "b155a7dc4e4d272e01c37a1b85c1ee1bee7f04980ad4a7784c1a6e0f2de5929b" ++source = "git+https://github.com/thotypous/librespot-tremor#226b2c8f2299084f213dbd9998d87b91aa28f213" + dependencies = [ +- "cc", + "libc", +- "ogg-sys", +- "pkg-config", ++ "tremor-sys", + ] + + [[package]] +@@ -3409,6 +3406,17 @@ + checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860" + + [[package]] ++name = "tremor-sys" ++version = "0.1.0" ++source = "git+https://github.com/thotypous/librespot-tremor#226b2c8f2299084f213dbd9998d87b91aa28f213" ++dependencies = [ ++ "gcc", ++ "libc", ++ "ogg-sys", ++ "pkg-config", ++] ++ ++[[package]] + name = "try-lock" + version = "0.1.0" + source = "registry+https://github.com/rust-lang/crates.io-index"