Here is something I put together today.
Spotify on FreeBSD Guide
=========================
Requirements
------------
- Spotify Premium account
- Spotify Developer App:
1. Visit https://developer.spotify.com/dashboard
2. Create a new app (name it anything)
3. Note your Client ID and Client Secret
4. Set Redirect URI to: http://127.0.0.1:8888
Install Dependencies
--------------------
Some packages may be optional, but installing all ensures compatibility:
pkg install rust python cmake clang \
alsa-lib alsa-plugins alsa-seq-server alsa-sndio alsa-utils \
zita-alsa-pcmi
Versions may varyβadjust as needed for your system.
Compile librespot from Source
-----------------------------
git clone https://github.com/librespot-org/librespot.git
cd librespot
cargo build --no-default-features --features "rustls-tls-native-roots rodio-backend"
Install spotify-qt
-------------------
You can install via ports or build from source:
git clone https://github.com/kraxarn/spotify-qt.git
cd spotify-qt
mkdir build && cd build
cmake ..
make
./spotify-qt
First Run Setup
---------------
1. Launch spotify-qt
2. Enter your Spotify App ID and Secret
3. Go to Settings β Spotify and set the path to your librespot binary
4. Restart spotify-qt
5. Open Menu β Devices and select your spotify-qt instance
Done!
-----
Enjoy Spotify on FreeBSD πΆ