# Maintainer: Tim Dubbins pkgname=tap pkgver=0.4.5 pkgrel=3 pkgdesc="An audio player for the terminal with fuzzy-finder" arch=('x86_64') url="https://github.com/timdubbins/tap" license=('MIT') depends=('gcc-libs') makedepends=('cargo') source=("$pkgname-$pkgver.tar.gz::https://github.com/timdubbins/$pkgname/archive/v$pkgver.tar.gz") sha256sums=('797abd668377edb876fbc270c2e7776d0d1c23393244c43dee7d0556152f62e8') prepare() { cd "$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable cargo fetch --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" }