# Contributor: Toby Vincent # Maintainer: Toby Vincent pkgname=projectr-git pkgver=0.4.0.r1.g4a6f485 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' 'git') optdepends=('tmux-projectr: fzf-tmux support') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("${pkgname%-git}::git+https://git.sr.ht/~tobyvin/projectr") b2sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" printf "%s" "$(git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')" } prepare() { cd "$srcdir/${pkgname%-git}" export RUSTUP_TOOLCHAIN=stable cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { cd "$srcdir/${pkgname%-git}" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target cargo build --frozen --release --all-features cargo xtask out-dir >out_dir } check() { cd "$srcdir/${pkgname%-git}" export RUSTUP_TOOLCHAIN=stable cargo test --frozen --all-features } package() { cd "$srcdir/${pkgname%-git}" local OUT_DIR=$(