# Maintainer: Alexander Rosenberg _pkgname='ristate' pkgname=$_pkgname-git pkgver=1 pkgrel=1 pkgdesc='Tool for querying river state.' url='https://git.zander.im/Zander671/ristate' arch=('x86_64') license=('MIT') provides=($_pkgname) makedepends=('git' 'rust') source=("git+${url}.git") sha256sums=('SKIP') pkgver(){ cd 'ristate' git rev-list --count HEAD } build() { cd 'ristate' cargo build --release } package() { install -Dt "$pkgdir/usr/bin/" "ristate/target/release/ristate" }