# Contributor: Rasmus Thomsen # Maintainer: Bart Ribbers pkgname=xdg-desktop-portal-kde pkgver=5.16.5 pkgrel=0 pkgdesc="Qt/KF5 implementation of xdg-desktop-portal" url="https://phabricator.kde.org/source/xdg-desktop-portal-kde" arch="all" license="GPL-3.0-or-later" makedepends="extra-cmake-modules qt5-qtbase-dev glib-dev kio-dev kwayland-dev libepoxy-dev pipewire-dev kcoreaddons xdg-desktop-portal cups-dev" subpackages="$pkgname-lang" source="https://download.kde.org/stable/plasma/$pkgver/xdg-desktop-portal-kde-$pkgver.tar.xz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ ${CMAKE_CROSSOPTS} . make } package() { make DESTDIR="$pkgdir" install } sha512sums="381298cc001795902343512f8bb08c363acfb6e3ef398e0f170f305572ca9a5caaf458e85b6f48ac84bcd963a34e535c666b0ddc1bb910a894a8b8de8801467e xdg-desktop-portal-kde-5.16.5.tar.xz"