67 lines
1.9 KiB
Bash
67 lines
1.9 KiB
Bash
# Template file for 'polkit'
|
|
pkgname=polkit
|
|
version=124
|
|
revision=1
|
|
build_style=meson
|
|
build_helper=gir
|
|
configure_args="$(vopt_bool gir introspection) -Dman=true
|
|
-Dsession_tracking=libelogind -Dsystemdsystemunitdir=/usr/lib/systemd/system
|
|
-Dpam_prefix=/usr/lib/pam.d"
|
|
make_dirs="
|
|
/etc/polkit-1/rules.d 0700 polkitd polkitd
|
|
/usr/share/polkit-1/rules.d 0700 polkitd polkitd"
|
|
hostmakedepends="pkg-config gettext glib-devel perl
|
|
libxslt docbook-xsl"
|
|
makedepends="libglib-devel elogind-devel duktape-devel pam-devel"
|
|
checkdepends="python3-dbus python3-dbusmock"
|
|
short_desc="Authorization Toolkit"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/polkit-org/polkit"
|
|
changelog="https://raw.githubusercontent.com/polkit-org/polkit/main/NEWS.md"
|
|
distfiles="https://github.com/polkit-org/polkit/archive/${version}.tar.gz"
|
|
checksum=72457d96a0538fd03a3ca96a6bf9b7faf82184d4d67c793eb759168e4fd49e20
|
|
system_accounts="polkitd"
|
|
#replaces="polkit-elogind>=0"
|
|
#provides="polkit-elogind-${version}_${revision}"
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
# see https://gitlab.freedesktop.org/polkit/polkit/-/issues/134
|
|
make_check=no
|
|
fi
|
|
|
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
|
configure_args+=" -Dtests=true"
|
|
fi
|
|
|
|
post_install() {
|
|
vinstall ${FILESDIR}/polkit-1.pam 644 usr/lib/pam.d polkit-1
|
|
vsv polkitd
|
|
# the build doesn't set setuid bits when not installing as root
|
|
chmod u+s ${DESTDIR}/usr/bin/pkexec
|
|
chmod u+s ${DESTDIR}/usr/lib/polkit-1/polkit-agent-helper-1
|
|
}
|
|
|
|
polkit-devel_package() {
|
|
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
if [ "$build_option_gir" ]; then
|
|
vmove "usr/share/gir-*"
|
|
fi
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
polkit-elogind_package() {
|
|
depends="polkit>=${version}_${revision}"
|
|
build_style=meta
|
|
short_desc+=" (transitional dummy package)"
|
|
}
|