aboutsummaryrefslogtreecommitdiffstats
path: root/community/xdg-desktop-portal-kde/APKBUILD
blob: c057eaf1dd5484e941650c72e106e61fda3c8d77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=xdg-desktop-portal-kde
pkgver=5.17.0
pkgrel=0
pkgdesc="A backend implementation for xdg-desktop-portal that is using Qt/KDE"
url="https://phabricator.kde.org/source/xdg-desktop-portal-kde"
arch="all"
license="LGPL-2.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"

prepare() {
	default_prepare

	mkdir "$builddir"/build
}

build() {
	cd "$builddir"/build
	cmake "$builddir" \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

package() {
	cd "$builddir"/build
	DESTDIR="$pkgdir" make install
}

sha512sums="69bda957d1a896d9068869a50750da9915e5abf3d2a7d5433a842326e8ecea6a040e7a7353890c6c0a78f92ff918a44386326bc2dde2bfc2fa5e4a7576e99ab2  xdg-desktop-portal-kde-5.17.0.tar.xz"