# Maintainer: Julius de Jeu pkgname=spotify-control pkgver=1.1.0 pkgrel=1 pkgdesc="Control Spotify from the command line" arch=('x86_64') url=https://github.com/J00LZ/spotify-control license=('MIT') depends=('spotify') makedepends=('cargo') optdepends=('libnotify: Allows the `now-playing` notification to be shown') source=("$pkgname-$pkgver.tar.gz::https://github.com/J00LZ/$pkgname/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('05821d58d3e2ea2851373cc3d1bbb6521d05cc934589e0e8b6d075f2e5d8153c') prepare() { cd "$pkgname-$pkgver" cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { cd "$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target cargo build --frozen --release --all-features } package() { cd "$pkgname-$pkgver" install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" }