<gh_stars>0
pkgname = "accountsservice"
pkgver = "22.08.8"
pkgrel = 0
build_style = "meson"
configure_args = [
    "-Dsystemdsystemunitdir=no", "-Dintrospection=true", "-Delogind=true",
]
hostmakedepends = [
    "meson", "pkgconf", "gobject-introspection", "glib-devel", "polkit",
    "gettext-tiny", "vala",
]
makedepends = ["polkit-devel", "elogind-devel", "dbus-devel"]
checkdepends = ["python-dbus"]
pkgdesc = "D-Bus service for accessing user accounts"
maintainer = "q66 <<EMAIL>>"
license = "GPL-3.0-or-later"
url = "https://www.freedesktop.org/wiki/Software/AccountsService"
source = f"$(FREEDESKTOP_SITE)/{pkgname}/{pkgname}-{pkgver}.tar.xz"
sha256 = "909997a76919fe7dc138a9a01cea70bd622d5a932dbc9fb13010113023a7a391"
# does not like the dbusmock for some reason
options = ["!cross", "!check"]

def post_install(self):
    self.install_dir("var/lib/AccountsService/users", empty = True)
    self.install_dir("var/lib/AccountsService/icons", empty = True)

@subpackage("accountsservice-devel")
def _devel(self):
    return self.default_devel()

pkgname = "accountsservice"
pkgver = "22.08.8"
pkgrel = 0
build_style = "meson"
configure_args = [
    "-Dsystemdsystemunitdir=no", "-Dintrospection=true", "-Delogind=true",
]
hostmakedepends = [
    "meson", "pkgconf", "gobject-introspection", "glib-devel", "polkit",
    "gettext-tiny", "vala",
]
makedepends = ["polkit-devel", "elogind-devel", "dbus-devel"]
checkdepends = ["python-dbus"]
pkgdesc = "D-Bus service for accessing user accounts"
maintainer = "q66 <<EMAIL>>"
license = "GPL-3.0-or-later"
url = "https://www.freedesktop.org/wiki/Software/AccountsService"
source = f"$(FREEDESKTOP_SITE)/{pkgname}/{pkgname}-{pkgver}.tar.xz"
sha256 = "909997a76919fe7dc138a9a01cea70bd622d5a932dbc9fb13010113023a7a391"
# does not like the dbusmock for some reason
options = ["!cross", "!check"]

def post_install(self):
    self.install_dir("var/lib/AccountsService/users", empty = True)
    self.install_dir("var/lib/AccountsService/icons", empty = True)

@subpackage("accountsservice-devel")
def _devel(self):
    return self.default_devel()
# does not like the dbusmock for some reason