summaryrefslogtreecommitdiff
path: root/spotifyd/APKBUILD
blob: 1c4fc6e9b980559e8e137ae62d524001d1b7879b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Karel Kočí <cynerd@email.cz>
# Maintainer: Karel Kočí <cynerd@email.cz>
pkgname=spotifyd
pkgver=0.2.24
pkgrel=1
pkgdesc="A spotify daemon"
url="https://github.com/Spotifyd/spotifyd"
arch="all !aarch64 !armv7"
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="aad8653648c318236f34cfde383ad7e335cc9947a6a45f275e5b0f0aa8907cb72885c93ec8ccaf6ca69edcc5efd595560c624ee621169dba1076d704892b7218  spotifyd.init
72757d8b0ec6e208e09e52553c53d91065fa1bedda8976e1551ba2a4998c747eea7426654432cfddd683209287e828dbc146f94b69cb9228e3cd4d38d66605ef  spotifyd.conf
e58f325eec648fdfeaa5a2d43ba2ba7cee99cdbb597250ac59618eb4897bbdb556a8200ab79b30a528d533f7f79dbc5560da07b74a40d35ae4941fa0976c9382  spotifyd-0.2.24.tar.gz"