# Maintainer: Tim Dubbins pkgname=tap pkgver=0.4.1 pkgrel=1 pkgdesc="An fuzzy-finding audio player for the terminal, written in rust" 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=('85912ed01da2e68e60d8a0e6a6ffe9737bfe2f6ad7096f163bccf2d474839b82') prepare() { cd "$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable 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" }