# Template file for 'gnome-shell'
pkgname=gnome-shell
version=45.5
revision=2
build_style=meson
build_helper=gir
configure_args="-Dsystemd=false -Dtests=false"
hostmakedepends="libxslt pkg-config python3 sassc
 asciidoc perl glib-devel gettext gjs-devel gtk-update-icon-cache"
makedepends="gnome-control-center-devel at-spi2-atk-devel
 evolution-data-server-devel mutter-devel gsettings-desktop-schemas-devel
 polkit-devel startup-notification-devel ibus-devel gnome-desktop-devel
 NetworkManager-devel pulseaudio-devel gtk4-devel gnome-autoar-devel gjs-devel
 gnome-bluetooth-devel pipewire-devel gstreamer1-devel gcr4-devel"
depends="elogind gnome-control-center gsettings-desktop-schemas gnome-menus
 upower gstreamer1-pipewire gst-plugins-good1 ibus-gtk4"
checkdepends="xvfb-run mesa-dri $depends"
short_desc="GNOME core user interface"
maintainer="Orphaned <orphan@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-45/NEWS"
#changelog="https://gitlab.gnome.org/GNOME/gnome-shell/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/gnome-shell/${version%%.*}/gnome-shell-${version}.tar.xz"
checksum=bd5c3d3d028d47233e4205223f0ac02ac9a973b699bc277439094d41a78d6ab0

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