1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
7 pkgdesc="Application development toolkit for controlling system-wide privileges"
8 url="https://gitlab.freedesktop.org/polkit/polkit"
24 checkdepends=(python-dbusmock)
25 provides=(libpolkit-{agent,gobject}-1.so)
26 backup=(etc/pam.d/polkit-1)
27 _commit=da87c5698019897dd731bb2cbb54ebd9c9481f52 # tags/122
29 "git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit"
35 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
48 -D session_tracking=libsystemd-login
52 arch-meson polkit build "${meson_options[@]}"
53 meson compile -C build
57 meson test -C build --print-errorlogs -t 3
61 meson install -C build --destdir "$pkgdir"
63 install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
65 install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" <<END
66 u polkitd 102 "PolicyKit daemon"
71 # vim:set sw=2 sts=-1 et: