PKGBUILD 531 B

1234567891011121314151617181920212223242526272829
  1. # Maintainer: Alexander Rosenberg <zanderpkg at pm dot me>
  2. _pkgname='ristate'
  3. pkgname=$_pkgname-git
  4. pkgver=1
  5. pkgrel=1
  6. pkgdesc='Tool for querying river state.'
  7. url='https://git.zander.im/Zander671/ristate'
  8. arch=('x86_64')
  9. license=('MIT')
  10. provides=($_pkgname)
  11. makedepends=('git' 'rust')
  12. source=("git+${url}.git")
  13. sha256sums=('SKIP')
  14. pkgver(){
  15. cd 'ristate'
  16. git rev-list --count HEAD
  17. }
  18. build() {
  19. cd 'ristate'
  20. cargo build --release
  21. }
  22. package() {
  23. install -Dt "$pkgdir/usr/bin/" "ristate/target/release/ristate"
  24. }