aports/community/ncspot/APKBUILD
2023-05-06 23:12:17 +02:00

54 lines
1.4 KiB
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ncspot
pkgver=0.13.2
pkgrel=0
pkgdesc="Cross-platform ncurses Spotify client inspired by ncmpc and the likes"
url="https://github.com/hrkfdn/ncspot"
# riscv64: takes eternity to build
# s390x: fails to build nix crate
arch="all !riscv64 !s390x"
license="BSD-2-Clause"
makedepends="
cargo
libxcb-dev
ncurses-dev
openssl-dev>3
pulseaudio-dev
python3
"
source="https://github.com/hrkfdn/ncspot/archive/v$pkgver/ncspot-$pkgver.tar.gz
bump-rspotify.patch
"
options="!check" # there's only one unit test (in v0.8.1)
# Build with ncurses_backend instead of termion_backend, enable cover and share_selection.
_cargo_opts="
--frozen
--no-default-features
--features share_clipboard,pulseaudio_backend,mpris,notify,cover,share_selection,ncurses_backend
"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo build $_cargo_opts --release
}
check() {
cargo test $_cargo_opts
}
package() {
install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/
}
sha512sums="
1377d78cb3f61e78174c729cd4ac2379c76aaf6f022cefcecb3aafc5605d496c1f7493d0101ba73a911c131407a32500a767c14e7e52317d2b3f22fa7b6658f1 ncspot-0.13.2.tar.gz
8879af9c34399b4a03480b954eca6232a1a3f9b4228864463943e82d5b7f2a43c9f5facb0064c253e42dee468f72e11600fe3a7406d2c935991d97e648173b58 bump-rspotify.patch
"