# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=networkmanager-qt pkgver=5.61.0 pkgrel=0 pkgdesc="Qt wrapper for NetworkManager API" arch="all !s390x" # Limited by networkmanager url="https://community.kde.org/Frameworks" license="LGPL-2.1-only OR LGPL-3.0-only" depends="networkmanager" depends_dev="networkmanager-dev" makedepends="$depends_dev extra-cmake-modules doxygen qt5-qttools-dev" subpackages="$pkgname-dev $pkgname-doc" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz" builddir="$srcdir/$pkgname-$pkgver/build" prepare() { default_prepare mkdir "$builddir" && cd "$builddir" } build() { cmake .. \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make } check() { # The excluded tests currently fail CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E '(manager|settings|activeconnection)test' } package() { DESTDIR="$pkgdir" make install } sha512sums="0999b9c18bfbbf9988b32d2c8e28399794622693ac68e86441fac4cbe49cec14a5900eddbc2ebaac64fbaead50850d50bb4bb6d2b92b7870e7430d64425a28cb networkmanager-qt-5.61.0.tar.xz"