# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kdnssd pkgver=5.63.0 pkgrel=0 arch="all" pkgdesc="Network service discovery using Zeroconf" url="https://community.kde.org/Frameworks" license="LGPL-2.0-or-later" depends="avahi" depends_dev="qt5-qtbase-dev avahi-dev" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev doxygen" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kdnssd-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="eda108876af1b9839d6844ea5e69e1e165307a4398ba75fcd575368a8277f250782d2f89e45b3ad8f59ac37235d13af353cce5d12fb6d11634324b6c70f44ffc kdnssd-5.63.0.tar.xz"