blob: 0ac0a408339a942cea6c62762f620700d91f5b0c (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ncspot
pkgver=0.12.0
pkgrel=0
pkgdesc="Cross-platform ncurses Spotify client inspired by ncmpc and the likes"
url="https://github.com/hrkfdn/ncspot"
# ppc64le: fails to build ring crate
# others: limited by rust/cargo
arch="aarch64 armhf armv7 x86 x86_64"
license="BSD-2-Clause"
makedepends="
cargo
dbus-dev
libxcb-dev
ncurses-dev
openssl-dev>3
pulseaudio-dev
python3
"
source="https://github.com/hrkfdn/ncspot/archive/v$pkgver/ncspot-$pkgver.tar.gz"
options="!check" # there's only one unit test (in v0.8.1)
# Optimize binary for size (18 MiB -> 8.2 MiB in v0.8.1).
_cargo_opts='--frozen --features cover,share_selection'
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo build $_cargo_opts --release
}
check() {
cargo test $_cargo_opts
}
package() {
cargo install $_cargo_opts --offline --path . --root="$pkgdir/usr"
rm "$pkgdir"/usr/.crates*
}
sha512sums="
6dcdba0d57d055ad920afb14358fe20a5565047803c5c3c221c9e9d473932713b63d6dd33f97f0e37937922cadb68e1593c490da43c1e9e4860cc5ab053e5f7e ncspot-0.12.0.tar.gz
"
|