# Contributor: Karel Kočí # Maintainer: Karel Kočí pkgname=spotifyd pkgver=0.2.24.20200828 commit=76a7940144c35af0706c61d27602a499f8736916 pkgrel=1 pkgdesc="A spotify daemon" url="https://github.com/Spotifyd/spotifyd" arch="all" license="GPLv3" options="!check net" makedepends="cargo alsa-lib-dev openssl-dev" source=" spotifyd.init spotifyd.conf $pkgname-$pkgver.tar.gz::https://github.com/Spotifyd/spotifyd/archive/$commit.tar.gz " install="$pkgname.pre-install" export CARGO_HOME="$srcdir/cargo" unpack() { default_unpack mv "$pkgname-$commit" "$builddir" } build() { cargo build --release } package() { cargo install --path . --root="$pkgdir"/usr install -D -m 755 "$srcdir"/spotifyd.init "$pkgdir"/etc/init.d/spotifyd install -D -m 644 "$srcdir"/spotifyd.conf "$pkgdir"/etc/spotifyd.conf } sha512sums="151a01af3dd6833d0e058178e8839dd9e53ab9f43a3acd1d86200affc14b457fc00f7500f3dd69635b79a057d70325260264a5d043ac433b1ef4af355b94ad88 spotifyd.init 37bf97478d5c9ed9bb9495efeb244c049a4c5eb7a75c19e431a29acdbca6e0e79ddd1089ffbd62c42e402063ab84cd6604bac4db1d8c98e613ca78fb35209ca3 spotifyd.conf 6ba35a840552fe8190afb60ad0fecf134720ea97b8226f3bdb95b1ce691820acf544e7588db9b3f03d0b9671372fd6530b3cda402948324f1fb6d30615c095a4 spotifyd-0.2.24.20200828.tar.gz"