APKBUILD 880 Bytes
Newer Older
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
# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=spotify-tui
pkgver=0.23.0
pkgrel=0
pkgdesc="Spotify for the terminal written in Rust"
url="https://github.com/Rigellute/spotify-tui"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by rust/cargo
license="MIT"
makedepends="rust cargo openssl-dev libxcb-dev python3"
source="$pkgname-$pkgver.tar.gz::https://github.com/Rigellute/spotify-tui/archive/v$pkgver/spotifyd-$pkgver.tar.gz"

build() {
	cargo build --release --locked --target-dir "target/"
}

check() {
	cargo test --release --locked --target-dir=target
}

package() {
	install -D -m 755 target/release/spt -t "$pkgdir"/usr/bin
}

sha512sums="0a1bc953fa8187accf6b78459b8900b513afd984e898f83742a700bee3942a921cbae6a1f9cd7883390ea322bac26e2c78b9a85b787b716a01c423b03d77b2b6  spotify-tui-0.23.0.tar.gz"