# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kwayland pkgver=5.63.0 pkgrel=0 pkgdesc="Qt-style Client and Server library wrapper for the Wayland libraries" arch="all" url="https://www.kde.org" license="LGPL-2.1-only OR LGPL-3.0-only" depends_dev="qt5-qtbase-dev wayland-dev" makedepends="$depends_dev extra-cmake-modules doxygen qt5-qttools-dev wayland-protocols" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kwayland-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc" options="!check" # Fails due to requiring running Wayland compositor 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="cd206e8a2470ee538926cb241d1b7fc0c389d14f6bebdc7913006770402c70b397b94d823a00d656880c8d8eeb6189f144d8f135ef2541ec2528a1dd76b8fac3 kwayland-5.63.0.tar.xz"