1 # Maintainer: Frederik Schwan <freswa at archlinux dot org>
2 # Contributor: Bert Peters <bert@bertptrs.nl>
3 # Contributor: Varakh <varakh@varakh.de>
4 # Contributor: Florian Klink <flokli@flokli.de>
9 pkgdesc='Lightweight spotify streaming daemon with spotify connect support'
11 url='https://github.com/Spotifyd/spotifyd'
13 depends=('alsa-lib' 'libogg' 'libpulse' 'dbus')
16 source=("https://github.com/Spotifyd/spotifyd/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
17 b2sums=('dd266f499f960b4f0e37e8c89d73286c0efc9f7c782007e6df901a9b432a88f4fb276666d5ec16c3408633eeb53950b45cfe32884f9a0ecfdb27430f412ac99a')
21 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
26 export RUSTUP_TOOLCHAIN=stable
27 export CARGO_TARGET_DIR=target
28 cargo build --release --locked --features pulseaudio_backend,dbus_mpris,dbus_keyring,rodio_backend
33 export RUSTUP_TOOLCHAIN=stable
34 cargo test --release --locked --target-dir=target
39 cargo install --locked --root "${pkgdir}"/usr --path "${srcdir}"/${pkgbase}-${pkgver} --features pulseaudio_backend,dbus_mpris,dbus_keyring,rodio_backend
40 rm "${pkgdir}"/usr/{.crates.toml,.crates2.json}
41 install -Dm644 -t "${pkgdir}"/usr/lib/systemd/user/ "${srcdir}"/${pkgbase}-${pkgver}/contrib/spotifyd.service