# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kservice pkgver=5.57.0 pkgrel=0 pkgdesc="Advanced plugin and service introspection" arch="all" url="https://community.kde.org/Frameworks" license="LGPL-2.1" depends="" depends_dev="kcrash-dev kconfig-dev kdbusaddons-dev ki18n-dev kcoreaddons-dev" makedepends="$depends_dev extra-cmake-modules kdoctools-dev doxygen qt5-qttools-dev flex-dev bison" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" options="!check" builddir="$srcdir/$pkgname-$pkgver/build" prepare() { mkdir "$builddir" } build() { cd "$builddir" cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make } check() { cd "$builddir" CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="8035500c9dc116d89f0c53968a23aa571fd52ad57666ff16c79b279748117409dcae1d28e8f0765e0e7094f0657e35ebd0d601c8fbc4bf2fae37bd7fcefa756e kservice-5.57.0.tar.xz"