# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=qxmpp pkgver=1.5.5 pkgrel=2 pkgdesc="Cross-platform C++ XMPP client and server library" arch="all" url="https://github.com/qxmpp-project/qxmpp" license="LGPL-2.1" makedepends=" cmake doxygen libomemo-c-dev qca-dev qt5-qtbase-dev samurai " source="https://github.com/qxmpp-project/qxmpp/archive/v$pkgver/qxmpp-v$pkgver.tar.gz" subpackages="$pkgname-dev $pkgname-doc" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_EXAMPLES=OFF \ -DBUILD_DOCUMENTATION=ON \ -DBUILD_OMEMO=ON cmake --build build } check() { # tst_qxmppiceconnection and tst_qxmpptransfermanager require a network connection ctest --test-dir build --output-on-failure -E "(tst_qxmppiceconnection|tst_qxmpptransfermanager)" } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 39774655fdb87dc54f32f7a018d4964c9ff8e9bebedd9cc94e6ad41288bd67365eec524525de09c5a3d2ea274e418fc6d5497ac2c1927946154cadaf7fc0d655 qxmpp-v1.5.5.tar.gz "