PKGBUILD 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Maintainer: txtsd <aur.archlinux@ihavea.quest>
  2. pkgname=stevenarella-git
  3. _pkgname=stevenarella
  4. pkgver=r972.g45f9cd4
  5. pkgrel=2
  6. pkgdesc='Multi-protocol Minecraft-compatible client written in Rust'
  7. arch=('x86_64')
  8. url='https://github.com/iceiix/stevenarella'
  9. license=('APACHE' 'MIT')
  10. depends=('openssl' 'rust' 'xcb-util')
  11. makedepends=('git')
  12. source=("git+https://github.com/iceiix/stevenarella.git")
  13. sha512sums=('SKIP')
  14. pkgver() {
  15. cd "${srcdir}/${_pkgname}"
  16. echo r$(git rev-list --all --count).g$(git rev-parse --short HEAD)
  17. }
  18. package() {
  19. cd "${srcdir}/${_pkgname}"
  20. CARGO_INSTALL_ROOT="${pkgdir}/usr" cargo install --path .
  21. rm "${pkgdir}/usr/.crates.toml"
  22. rm "${pkgdir}/usr/.crates2.json"
  23. install -Dm644 "${srcdir}/${_pkgname}/LICENSE-APACHE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE-APACHE"
  24. install -Dm644 "${srcdir}/${_pkgname}/LICENSE-MIT" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE-MIT"
  25. install -Dm644 "${srcdir}/${_pkgname}/resources/icon128x128.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
  26. }