@Antiz Thank you very much! :)
Search Criteria
Package Details: spotify 1:1.2.59.514-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/spotify.git (read-only, click to copy) |
---|---|
Package Base: | spotify |
Description: | A proprietary music streaming service |
Upstream URL: | https://www.spotify.com |
Licenses: | custom |
Submitter: | Foxboron |
Maintainer: | gromit (Antiz) |
Last Packager: | Antiz |
Votes: | 209 |
Popularity: | 14.73 |
First Submitted: | 2023-02-09 22:51 (UTC) |
Last Updated: | 2025-03-13 07:59 (UTC) |
Dependencies (13)
- alsa-lib
- at-spi2-atk (at-spi2-core-gitAUR, at-spi2-core)
- desktop-file-utils (desktop-file-utils-gitAUR)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-classic-xfceAUR, gtk3-classicAUR, gtk3-patched-filechooser-icon-viewAUR)
- libayatana-appindicator
- libcurl-gnutls (libcurl3-gnutlsAUR, libcurl-gnutls-gitAUR)
- libsm
- libxss
- nss (nss-hgAUR)
- openssl (openssl-gitAUR, openssl-staticAUR)
- ffmpeg4.4 (optional) – Adds support for playback of local files
- libnotify (libnotify-gitAUR) (optional) – Desktop notifications
- zenity (zenity-gtk3AUR, zenity-gitAUR, qarma-gitAUR) (optional) – Adds support for importing local files
Required by (19)
- blockify-git
- i3blocks-contrib (optional)
- i3blocks-contrib-git (optional)
- mustream-git
- polybar-spotify
- polybar-spotify-module
- sp
- spotify-adblock
- spotify-adblock-git
- spotify-adkiller-dns-block-git
- spotify-adkiller-git
- spotify-control
- spotify-fixer
- spotify-remove-ad-banner
- spotify-tray-git
- spotifywm-git (optional)
- spotrec (optional)
- spotrec-git (optional)
- spotx-linux
Sources (7)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 .. 18 Next › Last »
jkhsjdhjs commented on 2025-02-10 11:40 (UTC)
Antiz commented on 2025-02-10 11:37 (UTC)
@lsigma Thanks for the insight, I updated the parameter from %U
to %u
;)
Antiz commented on 2025-02-10 11:36 (UTC)
@jkhsjdhjs Fixed (a new version was available, which I just pushed now) ;)
jkhsjdhjs commented on 2025-02-10 11:08 (UTC)
I'm currently seeing the following error:
==> Starting prepare()...
spotify-1.2.53.440-1-x86_64-Packages: OK
spotify-1.2.53.440-g7b2f582a-x86_64.deb: FAILED
sha512sum: WARNING: 1 computed checksum did NOT match
gromit commented on 2025-02-04 16:37 (UTC) (edited on 2025-02-04 16:37 (UTC) by gromit)
@kotofyt, what error are you getting? Because it works fine for me :)
kotofyt commented on 2025-02-04 12:06 (UTC)
Doesn't work correctly with kernel version 6.13.1.arch1-1
lsigma commented on 2025-01-26 15:07 (UTC) (edited on 2025-01-26 15:07 (UTC) by lsigma)
Thanks for creating the package!
In the PKGBUILD
, the Exec
field gets patched with parameter for an URL (%U
). According to the Desktop file spec, %u
would be the more appropiate variable; using %U
in a flag is not allowed in the spec. This would make the resulting Desktop file comply with the spec (hopefully without changing the behavior):
diff --git a/PKGBUILD b/PKGBUILD
index f6ecc38..85763ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -68,7 +68,7 @@ package() {
tar -xzf data.tar.gz --no-same-owner -C "${pkgdir}"
# Enable spotify to open URLs from the webapp
- sed -i 's/^Exec=.*/Exec=spotify --uri=%U/' "${pkgdir}/usr/share/spotify/spotify.desktop"
+ sed -i 's/^Exec=.*/Exec=spotify --uri=%u/' "${pkgdir}/usr/share/spotify/spotify.desktop"
install -Dm 644 "${pkgdir}/usr/share/spotify/spotify.desktop" "${pkgdir}/usr/share/applications/spotify.desktop"
install -Dm 644 "${pkgdir}/usr/share/spotify/icons/spotify-linux-512.png" "${pkgdir}/usr/share/pixmaps/spotify-client.png"
I've run into this because uwsm is stricter about the spec than KDE for example.
grmpf44 commented on 2024-12-28 11:32 (UTC) (edited on 2024-12-28 11:40 (UTC) by grmpf44)
For the update to version 1:1.2.52.442-2 a new GPG key is needed. And despite being mentioned in the build script, the automatic import failed. But manually importing fixed it.
Changing the line from gromit's pinned post to this before running the update did the trick for me:
curl -sS https://download.spotify.com/debian/pubkey_C85668DF69375001.gpg | gpg --import -
alxlve commented on 2024-12-22 13:30 (UTC)
Many users experience this error while loading spotify on old CPUs:
[1] 76568 illegal hardware instruction (core dumped) spotify
It looks like the new UI uses AVX instructions, if your CPU has no AVX extension, spotify will likely fail to start. The latest version of spotify that can run on non-AVX CPUs is 1.2.45.454-gc16ec9f6
.
You can build yourself this outdated but still working perfectly non-AVX spotify version by following these instructions:
-
Download the AUR spotify git package revision corresponding to the former published
1.2.45.454
version: https://aur.archlinux.org/cgit/aur.git/commit/?h=spotify&id=86a7174b6f92a794e5d2a4abd5d191734eb0c71d -
Modify the PKGBUILD to this content:
# Maintainer: Christian Heusel <christian@heusel.eu>
# Maintainer: Robin Candau <antiz@archlinux.org>
# Contributor: NicoHood <archlinux {cat} nicohood {dog} de>
# Contributor: TobFromme < TobFromme {hat} pm {dont} me >
# Contributor: Ashley Whetter <(firstname) @ awhetter.co.uk>
# Contributor: Eothred <yngve.levinsen@gmail.com>
pkgname=spotify
pkgver='1.2.45.454'
epoch=1
_commit=gc16ec9f6
pkgrel=1
pkgdesc='A proprietary music streaming service'
arch=('x86_64')
license=('custom')
url='https://www.spotify.com'
depends=('alsa-lib>=1.0.14' 'gtk3' 'libxss' 'desktop-file-utils' 'openssl' 'nss' 'at-spi2-atk' 'libcurl-gnutls' 'libsm' 'libayatana-appindicator')
optdepends=('ffmpeg4.4: Adds support for playback of local files'
'zenity: Adds support for importing local files'
'libnotify: Desktop notifications')
options=('!strip')
# NOTE: We switched from stable to testing on 18th march, as the spotify
# stable repository is always outdated. Testing seems to be in sync with snap:
# https://snapcraft.io/spotify
# http://repository.spotify.com/dists/testing/Release
# http://repository.spotify.com/dists/testing/non-free/binary-amd64/Packages
# http://repository.spotify.com/dists/testing/Release.gpg
source=("${pkgname}-${pkgver}-${_commit}-x86_64.deb"
"spotify.sh"
"spotify.protocol"
"LICENSE")
sha512sums=('4396ac2c05cbf4b64e57d4ace40967c6d14061471597d1884d6b8420587f0f3689038a35534bb0b4c75e9f01675246e2c36261048880c677a8897caa60b7a8c9'
'da48b628a4ea925dd8521133ebf364b261b11aed252d264dde6605d915cdb631919ffe672c58534bcdb60869e5d87a49a60a8198780b99517123f0031e83fdb1'
'999abe46766a4101e27477f5c9f69394a4bb5c097e2e048ec2c6cb93dfa1743eb436bde3768af6ba1b90eaac78ea8589d82e621f9cbe7d9ab3f41acee6e8ca20'
'2e16f7c7b09e9ecefaa11ab38eb7a792c62ae6f33d95ab1ff46d68995316324d8c5287b0d9ce142d1cf15158e61f594e930260abb8155467af8bc25779960615')
# Import key with:
# curl -sS https://download.spotify.com/debian/pubkey_6224F9941A8AA6D1.gpg | gpg --import -
validpgpkeys=('63CBEEC9006602088F9B19326224F9941A8AA6D1') # Spotify Public Repository Signing Key <tux@spotify.com>
# Old Keys:
# E27409F51D1B66337F2D2F417A3A762FAFD4A51F
# F9A211976ED662F00E59361E5E3C45D7B312C643
# 8FD3D9A8D3800305A9FFF259D1742AD60D811D58
# 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90
# 2EBF997C15BDA244B6EBF5D84773BD5E130D1D45
package() {
tar -xzf data.tar.gz --no-same-owner -C "${pkgdir}"
# Enable spotify to open URLs from the webapp
sed -i 's/^Exec=.*/Exec=spotify --uri=%U/' "${pkgdir}/usr/share/spotify/spotify.desktop"
install -Dm 644 "${pkgdir}/usr/share/spotify/spotify.desktop" "${pkgdir}/usr/share/applications/spotify.desktop"
install -Dm 644 "${pkgdir}/usr/share/spotify/icons/spotify-linux-512.png" "${pkgdir}/usr/share/pixmaps/spotify-client.png"
for size in 22 24 32 48 64 128 256 512; do
install -Dm 644 "${pkgdir}/usr/share/spotify/icons/spotify-linux-${size}.png" \
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/spotify.png"
done
# Move spotify binary to its proper location
mkdir -p "${pkgdir}/opt/spotify"
mv "${pkgdir}/usr/share/spotify" "${pkgdir}/opt/"
# Copy launch script which allows the use of custom flags
install -Dm 755 spotify.sh "${pkgdir}/usr/bin/spotify"
# Copy protocol file for KDE
install -Dm 644 spotify.protocol "${pkgdir}/usr/share/kservices5/spotify.protocol"
# Install license
# https://www.spotify.com/legal/end-user-agreement
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Fix permissions
chmod -R go-w "${pkgdir}"
}
Pinned Comments
gromit commented on 2024-01-24 14:22 (UTC) (edited on 2024-12-28 11:34 (UTC) by gromit)
Please make sure to import the correct GPG key first:
And always build in a clean chroot. It is as easy as:
It is expected that the package will break now and then, as spotify continuously changes download binaries, gpg keys etc (which is not appropriate, but we cannot change this). Please be patient if an update does not occur the next day, you can still use an existing spotify install or update the version yourself.
Antiz commented on 2023-09-13 13:21 (UTC)
@lightofpast Just pushed
v1:1.2.20.1210-2
that now allows you to set custom launch flags in aspotify-flags.conf
file under$XDG_CONFIG_HOME
or~/.config
:)