build-scripts/arch/ristate/PKGBUILD

29 lines
531 B
Bash
Raw Normal View History

2024-04-25 19:37:51 -07:00
# Maintainer: Alexander Rosenberg <zanderpkg at pm dot me>
_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'
2024-04-25 19:39:37 -07:00
git rev-list --count HEAD
2024-04-25 19:37:51 -07:00
}
build() {
cd 'ristate'
cargo build --release
}
package() {
install -Dt "$pkgdir/usr/bin/" "ristate/target/release/ristate"
}