# Contributor: Rasmus Thomsen # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-plasma pkgname=xdg-desktop-portal-kde pkgver=5.27.7 pkgrel=1 pkgdesc="A backend implementation for xdg-desktop-portal that is using Qt/KDE" # armhf blocked by extra-cmake-modules arch="all !armhf" url="https://phabricator.kde.org/source/xdg-desktop-portal-kde" license="LGPL-2.0-or-later" depends="xdg-desktop-portal" makedepends=" cups-dev extra-cmake-modules glib-dev kcoreaddons-dev kdeclarative-dev kio-dev kirigami2-dev kwayland-dev libepoxy-dev pipewire-dev plasma-framework-dev plasma-wayland-protocols qt5-qtbase-dev samurai xdg-desktop-portal-dev " subpackages="$pkgname-lang" case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac _repo_url="https://invent.kde.org/plasma/xdg-desktop-portal-kde.git" source="https://download.kde.org/$_rel/plasma/$pkgver/xdg-desktop-portal-kde-$pkgver.tar.xz" _commit="" snapshot() { clean makedepends="git xz rsync tar" deps mkdir -p "$srcdir" && cd "$srcdir" git clone --filter=tree:0 https://invent.kde.org/plasma/xdg-desktop-portal-kde.git . git archive --format tar --prefix=$pkgname/ $_commit > ../$pkgname-$_commit.tar xz -vv -T0 -9 -e ../$pkgname-$_commit.tar } build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DKDE_INSTALL_LIBEXECDIR=libexec cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build rm -rf "$pkgdir"/usr/lib/systemd } sha512sums=" 1b59c1a193fea494ddf459a34b39896098df4e913df7193033116ddedbf74cc7149a4fd39001b1df26d9222e0bb5c590c798cd33d64455e05f5cb635d0a02468 xdg-desktop-portal-kde-5.27.7.tar.xz "