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" +}