PKGBUILD 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Maintainer (aur): Olivia Mackintosh <livvy@base.nu>
  2. # Contributor: Bryce Chidester <bryce@cobryce.com>
  3. # Contributor: bill-auger <bill-auger@programmer.net>
  4. # parabola changes and rationale:
  5. # - in [libre] for pbot
  6. pkgname=purple-matrix
  7. pkgver=20210210
  8. _gitrev=2fcd5b8f901034980616e5f719750c48f37a332f
  9. pkgrel=2
  10. pkgdesc="Libpurple protocol plugin for matrix."
  11. arch=(armv7h ui686 x86_64)
  12. url="https://github.com/matrix-org/purple-matrix"
  13. license=('GPL2')
  14. depends=('libpurple' 'http-parser' 'glib2' 'json-glib')
  15. depends+=('libgcrypt' 'libolm')
  16. source=(${pkgname}-${pkgver}.tar.gz::https://github.com/matrix-org/${pkgname}/archive/${_gitrev}.tar.gz)
  17. sha256sums=('80a41992c6cb3bae3248af463e9b1a051e9553664ecba2d38ad1f193932e92d3')
  18. source+=(matrix-segfault.patch
  19. matrix-chat.patch
  20. cloudflare.patch)
  21. sha256sums+=('9103debb8189dbc194e5c759ce8b9d1c607e50af005e291e5a405a161342f63f'
  22. 'd1ba04c302686b49940f1048032adeb08667e74325cf9cb3973971f15579cb0c'
  23. '7d5d360bc69cc32d7c18cb867c2c23560a5e9518c97d42ff0ec90915d2ce8aac')
  24. prepare()
  25. {
  26. cd "${srcdir}"/${pkgname}-${_gitrev}
  27. echo "applying matrix-segfault.patch"
  28. patch -Np1 < "${srcdir}"/matrix-segfault.patch
  29. echo "applying matrix-chat.patch"
  30. patch -Np1 < "${srcdir}"/matrix-chat.patch
  31. echo "applying cloudflare.patch"
  32. patch -Np1 < "${srcdir}"/cloudflare.patch
  33. }
  34. build()
  35. {
  36. cd "${srcdir}"/${pkgname}-${_gitrev}
  37. export CPPFLAGS="$CPPFLAGS -O2"
  38. make
  39. }
  40. package()
  41. {
  42. cd "${srcdir}"/${pkgname}-${_gitrev}
  43. make DESTDIR="${pkgdir}" install
  44. }