# Contributor: Karel Kočí # Maintainer: Karel Kočí pkgname=spotifyd pkgver=0.2.24 pkgrel=4 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/v$pkgver.tar.gz " install="$pkgname.pre-install" export CARGO_HOME="$srcdir/cargo" 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="e4f86acd90310aa953be46a732f5f7b421557f5a5114c0f5502cf6e8cb7c05728d2fa277e5d4c5fedf0305fb9a718e80a8824c8dda088b63c2542abc858638f5 spotifyd.init 37bf97478d5c9ed9bb9495efeb244c049a4c5eb7a75c19e431a29acdbca6e0e79ddd1089ffbd62c42e402063ab84cd6604bac4db1d8c98e613ca78fb35209ca3 spotifyd.conf e58f325eec648fdfeaa5a2d43ba2ba7cee99cdbb597250ac59618eb4897bbdb556a8200ab79b30a528d533f7f79dbc5560da07b74a40d35ae4941fa0976c9382 spotifyd-0.2.24.tar.gz"