summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 113787bb9265d2f3464d5cb8a53089424c968c06 (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
# Maintainer: Shane Blackthorne <arch@blackthorne.dev>

pkgname=spotify-player-full-pipe
pkgver=0.20.4
pkgrel=1
pkgdesc="A terminal Spotify player - compiled with pulse/pipewire, and all available features"
arch=('x86_64')
url="https://github.com/aome510/spotify-player"
license=('MIT')
depends=('openssl' 'alsa-lib' 'dbus' 'libxcb' 'pipewire-pulse' 'libsixel')
makedepends=('cargo')
conflicts=('spotify-player')
source=("spotify-player-${pkgver}.tar.gz::https://github.com/aome510/spotify-player/archive/v${pkgver}.tar.gz")
sha256sums=('1d13f47ef4df3415835736f32629d57e331707d781507007ea04217a7dc735d8')
options=('!lto')

build() {
	cd "spotify-player-${pkgver}"

	export RUSTUP_TOOLCHAIN=stable
	export CARGO_TARGET_DIR=target

	cargo build --release --no-default-features --locked \
		--features pulseaudio-backend,media-control,sixel,streaming,notify,daemon,image,fzf
	}

	package() {
		cd "spotify-player-${pkgver}"

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