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)
28 _commit=da87c5698019897dd731bb2cbb54ebd9c9481f52 # tags/122
30 "git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit"
36 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
49 -D session_tracking=libsystemd-login
53 arch-meson polkit build "${meson_options[@]}"
54 meson compile -C build
58 meson test -C build --print-errorlogs -t 3
62 meson install -C build --destdir "$pkgdir"
64 install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
66 install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" <<END
67 u polkitd 102 "PolicyKit daemon"
72 # vim:set sw=2 sts=-1 et: