pkgname=polkit pkgver=125 pkgrel=1 pkgdesc="Application development toolkit for controlling system-wide privileges" arch=('x86_64') url="https://gitlab.freedesktop.org/polkit/polkit" license=('LGPL-2.0-or-later') depends=( 'duktape' 'expat' 'glib2' 'glibc' 'linux-pam' 'systemd' ) makedepends=( 'dbus' 'docbook-xml' 'docbook-xsl' 'gobject-introspection' 'libxslt' 'meson' 'python-setuptools' ) backup=(etc/pam.d/polkit-1) install=${pkgname}.install source=(https://github.com/polkit-org/polkit/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(ea5cd6e6e2afa6bad938ee770bf0c2cd9317910f37956faeba2869adcf3747d1) build() { cd ${pkgname}-${pkgver} local meson_args=( -Dman=true -Dsession_tracking=logind -Dtests=true -Dpolkitd_uid=27 -Dos_type=lfs -Dpolkitd_user=polkitd -Dpam_prefix=/etc/pam.d ) ${meson_options} ${meson_args[@]} ${meson_build} } package() { cd ${pkgname}-${pkgver} ${meson_install} ${pkgdir} }