# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kdnssd pkgver=5.64.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="6967ab601a80edf82dd4b6450bac7583151a7ac0787bd66d32e0cb0052dad9bb69ad98cd6f11a77190c63871d9f92612c34bbf05e157fe62f19c9190f7e35968 kdnssd-5.64.0.tar.xz"