# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=networkmanager-qt pkgver=5.58.0 pkgrel=0 pkgdesc="Qt wrapper for NetworkManager API" arch="all" 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=RelWithDebugInfo \ -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="f10a898d7374a236f33766ec7a96ce349e1a11aaea28d9f728e8941f3ff6fc368b6d065a16ef3e18eae392199bbd669c63a1a6e64f9bc534960bb31b08b26856 networkmanager-qt-5.58.0.tar.xz"