# Contributor: Toby Vincent # Maintainer: Toby Vincent pkgname=projectr pkgver=0.4.1 pkgrel=1 pkgdesc="A contextual, MRU sorted, project finder." arch=('i686' 'x86_64' 'armv6h' 'armv7h') url="https://git.sr.ht/~tobyvin/projectr" license=('MIT') makedepends=('cargo') optdepends=('tmux-projectr: fzf-tmux support') source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate") b2sums=('53241e79e55a2957b7956725e4da288abda9e94d4409399782c50ed7418bc1c5445b8b54b6e5276dd9775ab0e14af19e192200d7b984ca3da3a1b48bf2de4791') 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 cargo xtask out-dir >out_dir } check() { cd "$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable cargo test --frozen --all-features } package() { cd "$pkgname-$pkgver" local OUT_DIR=$(