PKGBUILD 1.3 KB

123456789101112131415161718192021222324252627
  1. # Maintainer: esrh - https://esrh.me
  2. # Maintainer: txtsd <aur.archlinux@ihavea.quest>
  3. pkgname=gtkcord4-bin
  4. _pkgname=gtkcord4
  5. pkgver=0.0.10
  6. pkgrel=1
  7. pkgdesc='Discord client written in go and gtk4 (binary version)'
  8. arch=('x86_64' 'aarch64')
  9. url='https://github.com/diamondburned/gtkcord4'
  10. license=('GPL3')
  11. provides=('gtkcord4')
  12. conflicts=('gtkcord4' 'gtkcord4-git')
  13. depends=('gtk4' 'gobject-introspection' 'libadwaita')
  14. source_x86_64=("https://github.com/diamondburned/gtkcord4/releases/download/v${pkgver}/gtkcord4-linux-amd64-v${pkgver}-.tar.zst")
  15. source_aarch64=("https://github.com/diamondburned/gtkcord4/releases/download/v${pkgver}/gtkcord4-linux-arm64-v${pkgver}-.tar.zst")
  16. sha256sums_x86_64=('989ec8d0d50d2e6d57670723a721b0b416df5c04502d4ecb1df095bfb9c4ae0d')
  17. sha256sums_aarch64=('3bc4b5b69a12286ddc32e8ed09804a74290f6fddb669e1a451d41c5d466af412')
  18. package() {
  19. install -Dm 755 "${srcdir}/bin/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
  20. install -Dm 644 "${srcdir}/share/applications/xyz.diamondb.${_pkgname}.desktop" "${pkgdir}/usr/share/applications/xyz.diamondb.${_pkgname}.desktop"
  21. sed -i "s/Chat;/Chat;InstantMessaging;/" "${pkgdir}/usr/share/applications/xyz.diamondb.${_pkgname}.desktop"
  22. install -Dm 644 "${srcdir}/share/icons/hicolor/256x256/apps/${_pkgname}.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${_pkgname}.png"
  23. }