From 3da90660dbc59b8be0249d19541396dd2cca9583 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Thu, 25 Apr 2024 19:37:51 -0700 Subject: [PATCH] Add ristate --- arch/ristate/PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 arch/ristate/PKGBUILD diff --git a/arch/ristate/PKGBUILD b/arch/ristate/PKGBUILD new file mode 100644 index 0000000..8c998b9 --- /dev/null +++ b/arch/ristate/PKGBUILD @@ -0,0 +1,28 @@ +# 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 describe --tags --long | sed 's#-#.#g' +} + +build() { + cd 'ristate' + cargo build --release +} + +package() { + install -Dt "$pkgdir/usr/bin/" "ristate/target/release/ristate" +}