desktop/kopete/PKGBUILD

58 lines
2.1 KiB
Bash
Raw Normal View History

2018-04-13 02:57:15 +08:00
pkgname=kopete
pkgver=18.08.3
2018-04-13 02:57:15 +08:00
pkgrel=1
pkgdesc='Instant Messenger'
url='https://kde.org/applications/internet/kopete/'
arch=(x86_64)
license=(GPL LGPL FDL)
groups=(kde-applications kdenetwork)
depends=(knotifyconfig kcmutils ktexteditor kcontacts kidentitymanagement libkleo qca-qt5 kdelibs4support khtml libotr)
makedepends=(extra-cmake-modules mediastreamer libgadu jsoncpp kdoctools kdesignerplugin kdnssd libkleo ktexteditor)
optdepends=('mediastreamer: jingle support' 'libgadu: Gadu-Gadu protocol' 'kdnssd: bonjour protocol')
conflicts=(kdenetwork-kopete)
replaces=(kdenetwork-kopete)
2018-08-14 04:34:43 +08:00
source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig}
2018-04-13 02:57:15 +08:00
kopete-mediastreamer2.14.patch kopete-srtp2.patch kopete-openssl-1.1.patch kopete-pthread-link.patch)
sha256sums=('1c2f7c8792cdac0e73c2eaa1d79da4e24bc43bb657d2791fd61c942dc3f2a144'
2018-06-18 02:07:39 +08:00
'SKIP'
'c34a268aaa058e563174581dbe37c15fed91e82326ec704d2a872463139865e0'
'ceed663f7007654d186d918cf7a0742972ed5bd319879021e9ba80e395177700'
'e3271a11814dce26666d05b02d04e57a9fc6d66aa69e6d869c0aa2e9bb6d9782'
'a7ebdd8dd4336b7ec085ef254bf18040f473b73379a8cd84569b28441a6c71df')
2018-06-18 00:14:15 +08:00
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org>
F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>
2018-04-13 02:57:15 +08:00
prepare() {
mkdir -p build
# fix build with mediastreamer 2.14
cd kopete-$pkgver
patch -p1 -i ../kopete-mediastreamer2.14.patch
# fix build with OpenSSL 1.1 (Fedora patch)
patch -p1 -i ../kopete-openssl-1.1.patch
# fix link to pthread
patch -p1 -i ../kopete-pthread-link.patch
# support SRTP2
patch -p1 -i ../kopete-srtp2.patch
}
build() {
cd build
2018-06-18 00:14:15 +08:00
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INSTALL_LIBDIR=lib \
-DKDE_INSTALL_SYSCONFDIR=/etc \
-DKDE_INSTALL_LIBEXECDIR=lib \
-DUDEV_RULES_INSTALL_DIR=/usr/lib/udev/rules.d \
-DBUILD_TESTING=OFF \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@"
2018-04-13 02:57:15 +08:00
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}