Advertisement
Guest User

Untitled

a guest
Jun 12th, 2020
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. # Maintainer: Alexey Andreyev <aa13q@ya.ru>
  2. # Contributor Sefa Eyeoglu <contact@scrumplex.net>
  3.  
  4. _prjname=libQuotient
  5. pkgname=${_prjname,,}
  6. pkgver=0.5.3.2
  7. pkgrel=1
  8. epoch=1
  9. pkgdesc="A Qt5 library to write cross-platform clients for Matrix"
  10. arch=(x86_64 aarch64)
  11. url="https://github.com/quotient-im/libQuotient"
  12. license=("LGPL2")
  13. depends=("qt5-base" "qt5-multimedia")
  14. optdepends=("qt5-olm")
  15. makedepends=("git" "cmake" "make" "gcc")
  16. provides=("libquotient")
  17. conflicts=("libquotient")
  18. source=("https://github.com/quotient-im/libQuotient/archive/${pkgver}.tar.gz")
  19. sha512sums=("b887432ba7fb2b89c72ae5342fbd11b0066770851e8d0ea85ae4d6375bca726a5ee601c4f3d35a11fa1f2ef679ad5436917c08139e114f91516ccb370321e428")
  20.  
  21. build() {
  22. cd "$srcdir/${_prjname}-${pkgver}"
  23. mkdir -p "build"
  24. cd "build"
  25. cmake .. \
  26. -DCMAKE_INSTALL_PREFIX=/usr \
  27. -DCMAKE_INSTALL_LIBDIR=lib \
  28. -DCMAKE_INSTALL_INCLUDEDIR=include/qt \
  29. -DCMAKE_BUILD_TYPE=Release \
  30. -DBUILD_SHARED_LIBS=1
  31.  
  32. make
  33. }
  34.  
  35. package() {
  36. cd "$srcdir/${_prjname}-${pkgver}"
  37. cd "build"
  38. make DESTDIR="${pkgdir}" install
  39.  
  40. cd "$srcdir/${_prjname}-${pkgver}"
  41. install -Dm 644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement