# Description: Application development toolkit for controlling system-wide privileges # URL: https://gitlab.freedesktop.org/polkit/polkit/ # Maintainer: Tim Biermann, tbier at posteo dot de # Depends on: consolekit duktape intltool name=polkit version=125 release=1 source=(https://github.com/polkit-org/polkit/archive/$version/$name-$version.tar.gz 22193ca2cc0f4e023d331cc1391f55143ef9cade.patch) build() { prt-get isinst mozjs91 && PKGMK_POLKIT+=' -D js_engine=mozjs' patch -Rp1 -d $name-$version -i $SRC/22193ca2cc0f4e023d331cc1391f55143ef9cade.patch meson setup $name-$version build $PKGMK_POLKIT \ --prefix=/usr \ --buildtype=plain \ --wrap-mode nodownload \ -D b_lto=true \ -D b_pie=true \ -D os_type=suse \ -D session_tracking=ConsoleKit meson compile -C build DESTDIR=$PKG meson install -C build chmod 4775 $PKG/usr/bin/pkexec chmod 4755 $PKG/usr/lib/polkit-1/polkit-agent-helper-1 rm -r $PKG/usr/lib/{systemd,sysusers.d,tmpfiles.d} $PKG/usr/share/locale }