pkgname = "gnome-settings-daemon"
pkgver = "42.1"
pkgrel = 0
build_style = "meson"
configure_args = ["-Dsystemd=false"]
hostmakedepends = [
    "meson", "pkgconf", "glib-devel", "xsltproc", "docbook-xsl-nons", "perl",
    "gettext-tiny",
]
makedepends = [
    "libglib-devel", "geocode-glib-devel", "gnome-desktop-devel",
    "gtk+3-devel", "gsettings-desktop-schemas-devel", "libgweather-devel",
    "lcms2-devel", "libcanberra-devel", "geoclue-devel", "libnotify-devel",
    "libpulse-devel", "pango-devel", "upower-devel", "libx11-devel",
    "libxfixes-devel", "libgudev-devel", "wayland-devel", "cups-devel",
    "eudev-devel", "networkmanager-devel", "colord-devel", "polkit-devel",
    # actually pulseaudio is used, alsa is only used to query hw info
    "modemmanager-devel", "gcr-devel", "alsa-lib-devel", "libwacom-devel",
    "nss-devel",
]
depends = ["hicolor-icon-theme"]
checkdepends = [
    "elogind", "eudev", "libnotify", "python-dbusmock", "python-gobject",
    "python-pycodestyle", "hwids"
]
pkgdesc = "GNOME settings daemon"
maintainer = "q66 <<EMAIL>>"
license = "GPL-2.0-or-later AND LGPL-2.1-or-later"
url = "https://gitlab.gnome.org/GNOME/gnome-settings-daemon"
source = f"$(GNOME_SITE)/{pkgname}/{pkgver[:-2]}/{pkgname}-{pkgver}.tar.xz"
sha256 = "ed65851ae54adcd58a24c86837d624fc6a14bd84ab22e94df40a3a4cfd19ffdb"
tool_flags = {"CFLAGS": ["-UG_DISABLE_ASSERT"]}
# unpackaged checkdepends
options = ["!check"]

@subpackage("gnome-settings-daemon-devel")
def _devel(self):
    self.depends += [f"{pkgname}={pkgver}-r{pkgrel}"]

    return self.default_devel()

pkgname = "gnome-settings-daemon"
pkgver = "42.1"
pkgrel = 0
build_style = "meson"
configure_args = ["-Dsystemd=false"]
hostmakedepends = [
    "meson", "pkgconf", "glib-devel", "xsltproc", "docbook-xsl-nons", "perl",
    "gettext-tiny",
]
makedepends = [
    "libglib-devel", "geocode-glib-devel", "gnome-desktop-devel",
    "gtk+3-devel", "gsettings-desktop-schemas-devel", "libgweather-devel",
    "lcms2-devel", "libcanberra-devel", "geoclue-devel", "libnotify-devel",
    "libpulse-devel", "pango-devel", "upower-devel", "libx11-devel",
    "libxfixes-devel", "libgudev-devel", "wayland-devel", "cups-devel",
    "eudev-devel", "networkmanager-devel", "colord-devel", "polkit-devel",
    # actually pulseaudio is used, alsa is only used to query hw info
    "modemmanager-devel", "gcr-devel", "alsa-lib-devel", "libwacom-devel",
    "nss-devel",
]
depends = ["hicolor-icon-theme"]
checkdepends = [
    "elogind", "eudev", "libnotify", "python-dbusmock", "python-gobject",
    "python-pycodestyle", "hwids"
]
pkgdesc = "GNOME settings daemon"
maintainer = "q66 <<EMAIL>>"
license = "GPL-2.0-or-later AND LGPL-2.1-or-later"
url = "https://gitlab.gnome.org/GNOME/gnome-settings-daemon"
source = f"$(GNOME_SITE)/{pkgname}/{pkgver[:-2]}/{pkgname}-{pkgver}.tar.xz"
sha256 = "ed65851ae54adcd58a24c86837d624fc6a14bd84ab22e94df40a3a4cfd19ffdb"
tool_flags = {"CFLAGS": ["-UG_DISABLE_ASSERT"]}
# unpackaged checkdepends
options = ["!check"]

@subpackage("gnome-settings-daemon-devel")
def _devel(self):
    self.depends += [f"{pkgname}={pkgver}-r{pkgrel}"]

    return self.default_devel()

# actually pulseaudio is used, alsa is only used to query hw info # unpackaged checkdepends