Date: Wednesday, October 26, 2022 @ 15:46:19
  Author: heftig
Revision: 459134

archrelease: copy trunk to testing-x86_64

Added:
  polkit/repos/testing-x86_64/
  polkit/repos/testing-x86_64/PKGBUILD
    (from rev 459133, polkit/trunk/PKGBUILD)

----------+
 PKGBUILD |   72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

Copied: polkit/repos/testing-x86_64/PKGBUILD (from rev 459133, 
polkit/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2022-10-26 15:46:19 UTC (rev 459134)
@@ -0,0 +1,72 @@
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+# Contributor: Jan de Groot <[email protected]>
+
+pkgname=polkit
+pkgver=122
+pkgrel=1
+pkgdesc="Application development toolkit for controlling system-wide 
privileges"
+url="https://gitlab.freedesktop.org/polkit/polkit";
+arch=(x86_64)
+license=(LGPL)
+depends=(
+  duktape
+  expat
+  glib2
+  pam
+  systemd
+)
+makedepends=(
+  meson
+  gtk-doc
+  gobject-introspection
+  git
+)
+checkdepends=(python-dbusmock)
+provides=(libpolkit-{agent,gobject}-1.so)
+backup=(etc/pam.d/polkit-1)
+options=(debug)
+_commit=da87c5698019897dd731bb2cbb54ebd9c9481f52  # tags/122
+source=(
+  "git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit";
+)
+b2sums=('SKIP')
+
+pkgver() {
+  cd polkit
+  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+  cd polkit
+}
+
+build() {
+  local meson_options=(
+    -D examples=true
+    -D gtk_doc=true
+    -D man=true
+    -D os_type=redhat
+    -D session_tracking=libsystemd-login
+    -D tests=true
+  )
+
+  arch-meson polkit build "${meson_options[@]}"
+  meson compile -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs -t 3
+}
+
+package() {
+  meson install -C build --destdir "$pkgdir"
+
+  install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
+
+  install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" <<END
+u polkitd 102 "PolicyKit daemon"
+m polkitd proc
+END
+}
+
+# vim:set sw=2 sts=-1 et:

Reply via email to