# Contributor: Toby Vincent # Maintainer: Toby Vincent pkgname=projectr-bin pkgver=0.4.1 pkgrel=1 pkgdesc="A contextual, MRU sorted, project finder." arch=("x86_64") url="https://git.sr.ht/~tobyvin/projectr" license=('MIT') optdepends=('tmux-projectr: fzf tmux support') provides=("${pkgname%-bin}=$pkgver") conflicts=("${pkgname%-bin}=$pkgver") source_x86_64=("https://git.sr.ht/~tobyvin/projectr/refs/download/v$pkgver/projectr-$pkgver-$CARCH.tar.gz") sha256sums_x86_64=('20e1ce1a4c39abead71c4a6e01b2b2da8c595c5170165762d58a43b40354471d') package() { cd "$srcdir/${pkgname%-bin}" install -Dm755 "target/release/${pkgname%-bin}" "$pkgdir/usr/bin/${pkgname%-bin}" install -Dm644 "completion/_${pkgname%-bin}" "$pkgdir/usr/share/zsh/site-functions/_${pkgname%-bin}" install -Dm644 "completion/${pkgname%-bin}" "$pkgdir/usr/share/bash-completion/completions/${pkgname%-bin}" install -Dm644 "completion/${pkgname%-bin}.fish" "$pkgdir/usr/share/fish/vendor_completions.d/${pkgname%-bin}.fish" install -Dm644 "man/${pkgname%-bin}.1" "$pkgdir/usr/share/man/man1/${pkgname%-bin}.1" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-bin}/LICENSE" install -Dm644 README.md "$pkgdir/usr/share/doc/${pkgname%-bin}/README.md" install -Dm644 CHANGELOG.md "$pkgdir/usr/share/doc/${pkgname%-bin}/CHANGELOG.md" }