summaryrefslogtreecommitdiff
path: root/spotifyd/APKBUILD
blob: 85b6f288c835a73bb736a387881fadfc8d6f09b6 (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
# Contributor: Karel Kočí <cynerd@email.cz>
# Maintainer: Karel Kočí <cynerd@email.cz>
pkgname=spotifyd
pkgver=0.2.23
pkgrel=3
pkgdesc="A spotify daemon"
url="https://github.com/Spotifyd/spotifyd"
arch="x86_64 armhf aarch64"
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="c5319d8240a14b2d8d756c8581eb92ab713e008dcb3aa37169148fc2df97e2b89f58068b638232633a2c7cbe4f81a5d591128619f591cec3b3cbf04001711278  spotifyd.init
b8c0efccb6ca64b774f845a647f85b36e9565a67631719705322e723abcc3b2bf9155dfd07bd010902a4806422be29a7f32209c071738379aabfac5dead4f322  spotifyd-0.2.23.tar.gz"