[arch-commits] Commit in polkit/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Jonas Witschel diabonas at archlinux.org
Thu Jun 3 14:42:19 UTC 2021


    Date: Thursday, June 3, 2021 @ 14:42:19
  Author: diabonas
Revision: 417060

archrelease: copy trunk to testing-x86_64

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

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

Copied: polkit/repos/testing-x86_64/PKGBUILD (from rev 417059, polkit/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-06-03 14:42:19 UTC (rev 417060)
@@ -0,0 +1,59 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=polkit
+pkgver=0.119
+pkgrel=1
+pkgdesc="Application development toolkit for controlling system-wide privileges"
+arch=(x86_64)
+license=(LGPL)
+url="https://www.freedesktop.org/wiki/Software/polkit/"
+depends=(glib2 pam expat systemd js78)
+makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
+backup=(etc/pam.d/polkit-1)
+_commit=2e5348bf4eb0ef984db32f7f96ec6722d441c6ca
+source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd $pkgname
+
+  ./configure --prefix=/usr --sysconfdir=/etc \
+      --localstatedir=/var --libexecdir=/usr/lib \
+      --enable-libsystemd-login=yes --disable-static \
+      --enable-gtk-doc --with-os-type=redhat
+
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+  make
+}
+
+check() {
+  cd $pkgname
+  make -k check || :
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="$pkgdir" install \
+      dbusconfdir=/usr/share/dbus-1/system.d \
+      rulesdir=/usr/share/polkit-1/rules.d
+
+  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: ts=2 sw=2 et:



More information about the arch-commits mailing list