#31 updpkg: nonsystemd/polkit 0.120-1
Opened 2 months ago by commodorecrunch. Modified 2 months ago
commodorecrunch/abslibre polkit  into  pull-requests

file modified
+16 -21
@@ -2,7 +2,7 @@ 

  # Maintainer (Arch): Jan de Groot <jgc@archlinux.org>

  

  pkgname=polkit

- pkgver=0.118

+ pkgver=0.120

  pkgrel=1

  pkgrel+=.nonsystemd1

  pkgdesc="Application development toolkit for controlling system-wide privileges"
@@ -10,11 +10,11 @@ 

  license=(LGPL)

  url="https://www.freedesktop.org/wiki/Software/polkit/"

  depends=(glib2 pam expat elogind js78)

- makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)

+ makedepends=(meson gtk-doc gobject-introspection git)

  backup=(etc/pam.d/polkit-1)

  provides=(polkit-elogind)

  replaces=(polkit-elogind polkit-consolekit)

- _commit=ff4c2144f0fb1325275887d9e254117fcd8a1b52 # git tag 0.118

+ _commit=92b910ce2273daf6a76038f6bd764fa6958d4e8e

  source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit"

          '99-parabola.rules'

          'elogind-configure-fix.patch')
@@ -30,35 +30,30 @@ 

  prepare() {

    cd $pkgname

    patch -Np 1 -i ${srcdir}/elogind-configure-fix.patch

-   NOCONFIGURE=1 ./autogen.sh

  }

  

  build() {

-   cd $pkgname

- 

-   ./configure --prefix=/usr --sysconfdir=/etc \

-       --localstatedir=/var --libexecdir=/usr/lib \

-       --enable-libsystemd-login=no --disable-static \

-       --enable-libelogind=yes --with-systemdsystemunitdir=no \

-       --enable-gtk-doc --with-os-type=redhat

- 

-   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

- 

-   make

+   meson build $pkgname \

+     --prefix=/usr \

+     -D session_tracking=libelogind \

+     -D systemdsystemunitdir=no \

+     -D os_type=redhat \

+     -D tests=true \

+     -D gtk_doc=true \

+     -D man=true \

+     -D examples=true

+   meson compile -C build

  }

  

  check() {

-   cd $pkgname

-   make -k check || :

+   meson test -C build ||:

  }

  

  package() {

-   cd $pkgname

-   make DESTDIR="$pkgdir" install \

-       dbusconfdir=/usr/share/dbus-1/system.d \

-       rulesdir=/usr/share/polkit-1/rules.d

+   meson install -C build --destdir "$pkgdir"

  

    install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d

+   mv "$pkgdir"/{etc,usr/share}/polkit-1/rules.d/50-default.rules

  

    install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" <<END

  u polkitd 102 "PolicyKit daemon"

Metadata