blob: 98582a666be5d8b84c2e6e0e6722639056a32763 (
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
|
# Maintainer: Julien Nicoulaud <julien dot nicoulaud at gmail dot com>
_pkgname=ncspot
pkgname="${_pkgname}-git"
pkgver=e507364
pkgrel=1
pkgdesc="Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes."
arch=('x86_64')
url="https://github.com/hrkfdn/ncspot"
license=('unknown')
depends=('ncurses' 'openssl')
optdepends=('libpulse: PulseAudio backend'
'portaudio: PortAUdio backend')
makedepends=('rust' 'cargo')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+https://github.com/hrkfdn/ncspot.git")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags --always | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}"
cargo build --release
}
check() {
cd "${srcdir}/${_pkgname}"
cargo test --release
}
package() {
cd "${srcdir}/${_pkgname}"
install -Dm 755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
}
|