# Contributor: Toby Vincent # Maintainer: Toby Vincent pkgname=projectr-git pkgver=0.3.2.r0.g4f6865b 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 outdir >out_dir } check() { cd "$srcdir/${pkgname%-git}" export RUSTUP_TOOLCHAIN=stable cargo test --frozen --all-features } package() { cd "$srcdir/${pkgname%-git}" local OUT_DIR=$(