# Template file for 'gnome-shell'
pkgname=gnome-shell
version=48.7
revision=1
_libgvc_gitrev=d2442f455844e5292cb4a74ffc66ecc8d7595a9f
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
 python3-docutils"
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/main/NEWS"
changelog="https://gitlab.gnome.org/GNOME/gnome-shell/-/raw/gnome-48/NEWS"
distfiles="${GNOME_SITE}/gnome-shell/${version%%.*}/gnome-shell-${version}.tar.xz
 https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/archive/${_libgvc_gitrev}/libgnome-volume-control-${_libgvc_gitrev}.tar.gz"
checksum="2dff328d5f7e29f8c897bc21caac7d2d443be3c63ae84d7623dec800f23493c3
 4565c5e31c894a21492c10ba8b32e1dcb69e171c9adbd112304e17ebaabfdcb0"
skip_extraction="libgnome-volume-control-${_libgvc_gitrev}.tar.gz"

post_extract() {
	rm -rf subprojects/gvc
	vsrcextract -C subprojects/gvc "libgnome-volume-control-${_libgvc_gitrev}.tar.gz"
}

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