summaryrefslogtreecommitdiff
path: root/spotifyd/APKBUILD
blob: 656f010dd4e90828690ab026b5726c9e93cd405e (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
# Contributor: Karel Kočí <cynerd@email.cz>
# Maintainer: Karel Kočí <cynerd@email.cz>
pkgname=spotifyd
pkgver=0.2.23
pkgrel=2
pkgdesc="A spotify daemon"
url="https://github.com/Spotifyd/spotifyd"
arch="x86_64 armhf aarch64"
license="GPLv3"
makedepends="cargo alsa-lib-dev openssl-dev"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/Spotifyd/spotifyd/archive/v$pkgver.tar.gz"
options="!check"

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="b8c0efccb6ca64b774f845a647f85b36e9565a67631719705322e723abcc3b2bf9155dfd07bd010902a4806422be29a7f32209c071738379aabfac5dead4f322  spotifyd-0.2.23.tar.gz"