summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4abd6738299b78d794c9b8a11bee23ed9ef33e84 (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
# Maintainer:  reeeeeeeeeeelity <rility3 AT GMAIL>
# Contributor: Thang Pham <phamducthang1234 at gmail dot com
# Contributor: FabioLolix
pkgname=spotify-player-full-git
_pkgname=spotify-player
pkgver=0.14.1.r0.g77727a4
pkgrel=1
pkgdesc="A TUI spotify player. "
arch=('x86_64' 'aarch64' 'armv7h')
url="https://github.com/aome510/spotify-player"
license=('MIT')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
depends=('libpulse' 'openssl' 'dbus' 'libsixel')
makedepends=('cargo' 'git')
source=("$pkgname::git+$url#branch=master")
sha256sums=("SKIP")


pkgver() {
    cd "$pkgname"
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${pkgname}"
	cargo build --release --locked --no-default-features \
		 --features lyric-finder,notify,pulseaudio-backend,media-control,daemon,image,sixel
}

package() {
    cd "${pkgname}"
    install -Dm755 target/release/spotify_player -t "${pkgdir}/usr/bin"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/spotify_player/LICENSE"
}