# Template file for 'gnome-control-center'
pkgname=gnome-control-center
version=43.2
revision=2
build_style=meson
build_helper="gir"
hostmakedepends="glib-devel gsettings-desktop-schemas-devel gettext pkg-config
 polkit python3 gtk-update-icon-cache"
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 libXxf86misc-devel libgnomekbd-devel libgtop-devel
 libpwquality-devel mit-krb5-devel libnma-devel polkit-devel
 pulseaudio-devel samba-devel tzdata 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 gcr-devel gnutls-devel"
depends="desktop-file-utils upower colord cups-pk-helper cracklib iso-codes
 gsettings-desktop-schemas hicolor-icon-theme sound-theme-freedesktop libgnomekbd"
short_desc="GNOME control center"
maintainer="Michal Vasilek <michal@vasilek.cz>"
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-43/NEWS"
distfiles="${GNOME_SITE}/gnome-control-center/${version%.*}/gnome-control-center-${version}.tar.xz"
checksum=d7f256aba80a92c727b329fd01c8602da4b78f0fddaec93fcd91096964700563
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
	}
}
