# Template file for 'gnome-control-center'
pkgname=gnome-control-center
version=46.2
revision=1
build_style=meson
build_helper="gir"
hostmakedepends="glib-devel gsettings-desktop-schemas-devel gettext pkg-config
 polkit python3 gtk-update-icon-cache setxkbmap"
makedepends="ModemManager-devel accountsservice-devel alsa-plugins
 colord-gtk-devel gnome-bluetooth-devel gnome-desktop-devel gnome-menus-devel
 gnome-online-accounts-devel gnome-settings-daemon-devel grilo-devel ibus-devel
 libSM-devel libgtop-devel
 libpwquality-devel mit-krb5-devel libnma-devel polkit-devel
 pulseaudio-devel samba-devel upower-devel vala-devel
 libxml2-devel libX11-devel gtk4-devel libadwaita-devel cups-devel libgudev-devel
 libwacom-devel clutter-devel libsecret-devel libcanberra-devel udisks2-devel
 gsound-devel gcr4-devel gnutls-devel tecla"
depends="desktop-file-utils upower colord cups-pk-helper cracklib iso-codes
 gsettings-desktop-schemas hicolor-icon-theme sound-theme-freedesktop
 tecla ibus-gtk4"
short_desc="GNOME control center"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/gnome-control-center"
changelog="https://gitlab.gnome.org/GNOME/gnome-control-center/-/raw/gnome-46/NEWS"
#changelog="https://gitlab.gnome.org/GNOME/gnome-control-center/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/gnome-control-center/${version%%.*}/gnome-control-center-${version}.tar.xz"
checksum=6335c6cb8164e574db521fff61cfa3dfaa55f1db66ae3bca02750a193e1c4f3d
make_check=no # needs X11 and requires altered filesystem

pre_build() {
	# q66: racey, included from elsewhere but not dependencies
	ninja -C build panels/network/cc-network-resources.h
}

gnome-control-center-devel_package() {
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/share/pkgconfig
	}
}
