new blfs: sys-auth/polkit-126

This commit is contained in:
2025-12-30 22:45:15 -05:00
parent 831912f554
commit 52b1908388
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
pkgname=polkit
pkgver=126
pkgdesc="Application development toolkit for controlling system-wide privileges"
homepage="https://github.com/polkit-org/polkit"
arch=(x86_64)
license=(LGPL-2.0-or-later)
sources=("${pkgname}-${pkgver}.tar.gz"
"sysuser-polkit.conf"
)
urls=("https://github.com/polkit-org/polkit/archive/${pkgver}/${sources[0]}"
"sysuser-polkit.conf"
)
md5sums=("db4ce0a42d5bf8002061f8e34ee9bdd0"
"a739f6a34227e576b464a5e2a4d6a612"
)
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
local meson_options=(
--prefix=/usr
--buildtype=release
-D gettext=true
-D introspection=true
-D gtk_doc=false
-D man=true
-D tests=true
)
meson build "${meson_options[@]}"
meson compile -C build
}
# skip the test because dependences
src_install() {
meson install -C build --destdir "$pkgdir"
# fix sysusers.d/polkit.conf
rm -v ${pkgdir}/usr/lib/sysusers.d/*.conf
install -vm644 ${filedir}/sysuser-polkit.conf ${pkgdir}/usr/lib/sysusers.d/polkit.conf
}
# vim:ft=sh syn=sh et sw=2:

View File

@@ -0,0 +1,2 @@
g polkitd 27
u polkitd 27:27 "PolicyKit Daemon Owner" /etc/polkit-1 /bin/false