archrelease: copy trunk to community-any
[ArchLinux/community.git] / qxmpp / repos / community-x86_64 / PKGBUILD
blob305b8364dfb05bd5722447c5e5e2f066e26132f1
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: HurricanePootis <hurricanepootis@protonmail.com>
3 # Contributor: Spike29 <leguen.yannick@gmail.com>
4 # Contributor: Samir Faci <csgeek@archlinux.us>
5 # Contributor: Timothée Ravier <tim@siosm.fr>
7 pkgbase=qxmpp
8 pkgname=(qxmpp-qt5 qxmpp-qt6)
9 pkgver=1.5.5
10 pkgrel=1
11 pkgdesc='Cross-platform C++ XMPP client and server library'
12 arch=(x86_64)
13 url='https://github.com/qxmpp-project/qxmpp'
14 license=(LGPL2.1)
15 depends=(gstreamer)
16 makedepends=(cmake qca-qt5 qca-qt6 libomemo-c)
17 optdepends=('libomemo-c: OMEMO support')
18 source=(https://github.com/qxmpp-project/qxmpp/archive/v$pkgver/$pkgbase-$pkgver.tar.gz)
19 sha256sums=('b25fba89432c4fd72489d1844f683bfbf4e5aa4cfcfda7a982d6019f8e4529f8')
21 build() {
22   cmake -B build5 -S $pkgbase-$pkgver \
23     -DCMAKE_INSTALL_PREFIX=/usr \
24     -DBUILD_EXAMPLES=OFF \
25     -DBUILD_TESTS=OFF \
26     -DWITH_GSTREAMER=ON \
27     -DBUILD_OMEMO=ON \
28     -DQT_VERSION_MAJOR=5
29   cmake --build build5
31   cmake -B build6 -S $pkgbase-$pkgver \
32     -DCMAKE_INSTALL_PREFIX=/usr \
33     -DBUILD_EXAMPLES=OFF \
34     -DBUILD_TESTS=OFF \
35     -DWITH_GSTREAMER=ON \
36     -DBUILD_OMEMO=ON \
37     -DQT_VERSION_MAJOR=6
38   cmake --build build6
41 package_qxmpp-qt5() {
42   depends+=(qca-qt5)
43   DESTDIR="$pkgdir" cmake --install build5
46 package_qxmpp-qt6() {
47   depends+=(qca-qt6)
48   DESTDIR="$pkgdir" cmake --install build6