# Template file for 'gnome-control-center'
pkgname=gnome-control-center
version=41.4
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dcheese=$(vopt_if cheese true false)"
hostmakedepends="glib-devel gsettings-desktop-schemas-devel gettext pkg-config
 polkit python3"
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 libhandy1-devel
 libpwquality-devel mit-krb5-devel libnma-devel polkit-devel
 pulseaudio-devel samba-devel tzdata upower-devel vala-devel clutter-gtk-devel
 libxml2-devel libX11-devel gtk+3-devel cups-devel libgudev-devel libwacom-devel
 clutter-devel libsecret-devel libcanberra-devel udisks2-devel gsound-devel
 libsoup-devel gcr-devel $(vopt_if cheese cheese-devel)"
depends="desktop-file-utils upower colord cups-pk-helper cracklib iso-codes
 gsettings-desktop-schemas hicolor-icon-theme sound-theme-freedesktop"
short_desc="GNOME control center"
maintainer="Enno Boland <gottox@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/-/blob/gnome-41/NEWS"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=d6db0c4cb70857becf48ac5007f12b5f63b9d5d7e80ea7ee57d3be512669f7c9

build_options="cheese"
build_options_default="cheese"

desc_option_cheese="Add support for adding user account images with your webcam"

# needs X11 and requires altered filesystem
do_check() {
	:
}

CFLAGS="-fcommon"

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