# Template file for 'gnome-shell'
pkgname=gnome-shell
version=40.4
revision=1
build_style=meson
build_helper=gir
configure_args="-Dsystemd=false"
hostmakedepends="gobject-introspection libxslt pkg-config python3 sassc
 asciidoc perl glib-devel gettext gjs-devel"
makedepends="at-spi2-atk evolution-data-server-devel folks-devel
 gcr-devel gjs-devel gnome-bluetooth-devel gnome-control-center-devel gnome-desktop-devel
 gnome-menus-devel gsettings-desktop-schemas-devel gstreamer1-devel gtk4-devel
 ibus-devel json-glib-devel libcanberra-devel libcroco-devel libglib-devel
 libsecret-devel libsoup-devel libX11-devel libxml2-devel mutter-devel
 libnma-devel polkit-devel pulseaudio-devel pipewire-devel
 startup-notification-devel telepathy-logger-devel gnome-autoar-devel elogind-devel"
depends="elogind glxinfo gnome-control-center gsettings-desktop-schemas upower"
checkdepends="xvfb-run gdm mesa-dri $depends"
short_desc="GNOME core user interface"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/GnomeShell"
changelog="https://gitlab.gnome.org/GNOME/gnome-shell/-/raw/gnome-40/NEWS"
distfiles="${GNOME_SITE}/gnome-shell/${version%.*}/gnome-shell-${version}.tar.xz"
checksum=2bc5919305652b3c95ec42c67193512bd10cf6544f684694d1b9e229fe421f98

do_check() {
	mkdir /tmp/gnome-shell-xdg
	XDG_RUNTIME_DIR=/tmp xvfb-run ninja -C build test
	rm -rf /tmp/gnome-shell-xdg
}
