PKGBUILD 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # Maintainer (arch): Felix Yan <felixonmars@archlinux.org>
  2. # Maintainer (arch): Antonio Rojas <arojas@archlinux.org>
  3. # Contributor: Andrea Scarpino <andrea@archlinux.org>
  4. # Contributor: André Silva <emulatorman@hyperbola.info>
  5. # rationale for inclusion in nonprism:
  6. # removed support for possible privacy critical protocals
  7. pkgname=kopete
  8. pkgver=18.12.2
  9. pkgrel=1
  10. pkgrel+=.parabola1.nonprism1
  11. url='https://kde.org/applications/internet/kopete/'
  12. arch=(x86_64)
  13. arch+=(i686 armv7h)
  14. license=(GPL LGPL FDL)
  15. groups=(kde-applications kdenetwork)
  16. depends=(knotifyconfig kcmutils ktexteditor kcontacts kidentitymanagement libkleo qca kdelibs4support khtml
  17. libidn libotr)
  18. depends+=(kio)
  19. makedepends=(extra-cmake-modules mediastreamer libgadu jsoncpp kdoctools kdesignerplugin kdnssd libkleo ktexteditor)
  20. optdepends=('mediastreamer: jingle support' 'libgadu: Gadu-Gadu protocol' 'kdnssd: bonjour protocol')
  21. conflicts=(kdenetwork-kopete)
  22. replaces=(kdenetwork-kopete)
  23. source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig}
  24. kopete-mediastreamer2.14.patch kopete-srtp2.patch kopete-openssl-1.1.patch kopete-glibc-2.28.patch)
  25. source+=(libre-nonprism.patch)
  26. sha256sums=('48dad416ead50ac69afe822932abccca82cabc2d512c93ca3b7d5d653e38f363'
  27. 'SKIP'
  28. '8b8e7a5d9f17fafdddb402fab22b0b8d9963039ea8ea9fa749cad67aeeb879ac'
  29. 'ceed663f7007654d186d918cf7a0742972ed5bd319879021e9ba80e395177700'
  30. 'a12ea422e5162ef11274a98fd53658d6e780cafbe2e0fac70c8bc7d3291fef8b'
  31. 'ba1b830bbd74c3dde8de99d887bd20205b4bbb1e466a41aa2b230404f1959c83'
  32. '32553b785ef603c3e8160f0f1ef423095a0c9b8bbdc6c01e4d2c81740adb9db3')
  33. validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org>
  34. F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>
  35. prepare() {
  36. mkdir -p build
  37. cd $pkgname-$pkgver
  38. # fix build with mediastreamer 2.14 https://phabricator.kde.org/D15956
  39. patch -p1 -i ../kopete-mediastreamer2.14.patch
  40. # fix build with OpenSSL 1.1 (Fedora patch)
  41. patch -p1 -i ../kopete-openssl-1.1.patch
  42. # support SRTP2
  43. patch -p1 -i ../kopete-srtp2.patch
  44. # fix build with glibc 2.28
  45. patch -p1 -i ../kopete-glibc-2.28.patch
  46. # based on https://devel.trisquel.info/trisquel/package-helpers/blob/belenos/helpers/make-kopete
  47. sed -i 's/Skype protocol" ON/Skype protocol" OFF/g' protocols/CMakeLists.txt
  48. rm -rf protocols/skype
  49. sed 's/, Skype//' -i ./doc/index.docbook
  50. # Remove unsafe/dangerous services
  51. rm -rfv protocols/oscar
  52. rm -rfv protocols/yahoo
  53. rm -rfv protocols/qq
  54. rm -rfv protocols/groupwise
  55. rm -rfv protocols/gadu
  56. rm -rfv protocols/wlm
  57. rm -rfv protocols/meanwhile
  58. patch -p1 -i "${srcdir}"/libre-nonprism.patch
  59. }
  60. build() {
  61. cd build
  62. cmake ../$pkgname-$pkgver \
  63. -DCMAKE_INSTALL_PREFIX=/usr \
  64. -DCMAKE_INSTALL_LIBDIR=lib \
  65. -DBUILD_TESTING=OFF \
  66. -DWITH_Libmsn=OFF \
  67. -DWITH_Libgadu=OFF \
  68. -DWITH_skype=OFF \
  69. -DWITH_oscar=OFF \
  70. -DWITH_yahoo=OFF \
  71. -DWITH_qq=OFF \
  72. -DWITH_groupwise=OFF \
  73. -DWITH_gadu=OFF \
  74. -DWITH_GOOGLETALK=OFF \
  75. -DWITH_wlm=OFF \
  76. -DWITH_WLM_MEDIASTREAMER=OFF \
  77. -DWITH_meanwhile=OFF
  78. make
  79. }
  80. package() {
  81. cd build
  82. make DESTDIR="$pkgdir" install
  83. }