summaryrefslogtreecommitdiff
path: root/community/xdg-desktop-portal-gnome/APKBUILD
blob: 15faf4fa87fd6863409ba134ddd2a6b643220d97 (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
36
37
38
39
40
41
# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: team/gnome <knuxify@gmail.com>
pkgname=xdg-desktop-portal-gnome
pkgver=43.1
pkgrel=1
pkgdesc="A backend implementation for xdg-desktop-portal for the GNOME desktop environment"
url="https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome"
arch="all"
license="LGPL-2.1-or-later"
depends="xdg-desktop-portal xdg-desktop-portal-gtk"
makedepends="
	gnome-desktop-dev
	gsettings-desktop-schemas-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/xdg-desktop-portal-gnome/${pkgver%.*}/xdg-desktop-portal-gnome-$pkgver.tar.xz
	add-option-to-disable-systemd-service-file-build.patch
	"
options="!check"  # no tests

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	rm -rf "$pkgdir"/usr/lib/systemd
}

sha512sums="
fc9b2a0bf5483194326308099be0cb76245644bfc26546a4e63679eb695400cf254aa9e85de1b168e07ba7f05eb4f9fe4fde31853bcee4bd8bfb94063933ebc3  xdg-desktop-portal-gnome-43.1.tar.xz
dfbd619bdda8f733476b8b541544e71122941ccc14efbda510c7b991e4f9dadf036e326d4f45ece12d72a0ae2e5e71271a916d4c08aa26fdfd0efe8e56937eff  add-option-to-disable-systemd-service-file-build.patch
"