# Template file for 'gnome-settings-daemon'
pkgname=gnome-settings-daemon
version=48.1
revision=2
_libgvc_gitrev=d2442f455844e5292cb4a74ffc66ecc8d7595a9f
build_style=meson
configure_args="-Dsystemd=false"
hostmakedepends="cmake docbook-xsl gettext glib-devel libglib-devel libxslt
 perl pkg-config polkit"
makedepends="NetworkManager-devel alsa-lib-devel colord-devel cups-devel gcr4-devel
 geoclue2-devel gnome-desktop-devel ibus-devel libcanberra-devel libgnomekbd-devel
 libgweather-devel libnotify-devel librsvg-devel libwacom-devel nss-devel
 polkit-devel pulseaudio-devel startup-notification-devel upower-devel
 xf86-input-wacom-devel libXfixes-devel gsettings-desktop-schemas-devel
 elogind-devel"
depends="hicolor-icon-theme"
checkdepends="elogind libnotify python3-dbusmock python3-gobject
 python3-pycodestyle which hwids eudev"
short_desc="GNOME settings daemon"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/gnome-settings-daemon"
changelog="https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/raw/master/NEWS"
distfiles="${GNOME_SITE}/gnome-settings-daemon/${version%.*}/gnome-settings-daemon-${version}.tar.xz
 https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/archive/${_libgvc_gitrev}/libgnome-volume-control-${_libgvc_gitrev}.tar.gz"
checksum="3860a2ea214dcbcb6600ae7a1e3358a5389215087bc3e4a47cee3f87baee062e
 4565c5e31c894a21492c10ba8b32e1dcb69e171c9adbd112304e17ebaabfdcb0"
skip_extraction="libgnome-volume-control-${_libgvc_gitrev}.tar.gz"
CFLAGS="-UG_DISABLE_ASSERT"

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

gnome-settings-daemon-devel_package() {
	depends="libglib-devel"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}
