Add ristate

This commit is contained in:
Alexander Rosenberg 2024-04-25 19:37:51 -07:00
parent b55556604f
commit 3da90660db
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

28
arch/ristate/PKGBUILD Normal file
View File

@ -0,0 +1,28 @@
# 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'
git describe --tags --long | sed 's#-#.#g'
}
build() {
cd 'ristate'
cargo build --release
}
package() {
install -Dt "$pkgdir/usr/bin/" "ristate/target/release/ristate"
}