1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
8 pkgdesc='Instant Messenger'
9 url='https://apps.kde.org/kopete/'
11 license=(GPL LGPL FDL)
12 groups=(kde-applications kde-network)
13 depends=(knotifyconfig kcmutils ktexteditor kcontacts kidentitymanagement libkleo qca-qt5 kdelibs4support khtml
15 makedepends=(extra-cmake-modules mediastreamer libgadu jsoncpp kdoctools kdesignerplugin kdnssd kinit)
16 optdepends=('mediastreamer: jingle support' 'libgadu: Gadu-Gadu protocol' 'kdnssd: bonjour protocol')
17 source=(https://download.kde.org/unstable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig}
18 kopete-mediastreamer2.14.patch kopete-srtp2.patch kopete-openssl-1.1.patch kopete-mediastreamer-4.3.patch)
19 sha256sums=('ff7719a8ae85834b600eb9e52e8762ff3794d390102f8430efa835bd146b23f7'
21 '0dd400ecbcbc8f7c77beb71e9907a1cb0eaedabf7aa9f9a28d9f0d3f0dd960d2'
22 'ceed663f7007654d186d918cf7a0742972ed5bd319879021e9ba80e395177700'
23 'a12ea422e5162ef11274a98fd53658d6e780cafbe2e0fac70c8bc7d3291fef8b'
24 '426df8abe65d46ec8e37804ec573ad205c00c7d6ba2deb0249b5b01fa20bc4d7')
25 validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org>
26 F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 # Christoph Feck <cfeck@kde.org>
27 D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <heiko.becker@kde.org>
31 # fix build with mediastreamer 2.14 https://phabricator.kde.org/D15956
32 patch -d $pkgname-$pkgver -p1 -i ../kopete-mediastreamer2.14.patch
33 # Detect mediastreamer 4.3
34 patch -d $pkgname-$pkgver -p1 -i ../kopete-mediastreamer-4.3.patch
35 # fix build with OpenSSL 1.1 (Fedora patch)
36 patch -d $pkgname-$pkgver -p1 -i ../kopete-openssl-1.1.patch
38 patch -d $pkgname-$pkgver -p1 -i ../kopete-srtp2.patch
42 cmake -B build -S $pkgname-$pkgver \
48 DESTDIR="$pkgdir" cmake --install build